/* ========================================
   案例详情页样式
======================================== */

/* ============ Hero ============ */
.case-hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.case-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: caseHeroZoom 12s linear forwards;
}
@keyframes caseHeroZoom {
  to { transform: scale(1.0); }
}

.case-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(20, 17, 15, 0.55) 0%, rgba(20, 17, 15, 0.20) 30%, rgba(20, 17, 15, 0.35) 60%, rgba(20, 17, 15, 0.95) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(20, 17, 15, 0.55) 100%);
}

.case-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 12vh;
}

.case-back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--white-60);
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.case-back:hover {
  border-color: var(--warm);
  color: var(--cream);
  transform: translateX(-4px);
}

.case-cat-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--warm);
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 16px;
  border: 1px solid var(--warm);
  border-radius: 100px;
  margin-bottom: 24px;
  background: rgba(200, 149, 109, 0.10);
}

.case-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.case-hero-excerpt {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--white-60);
  line-height: 1.7;
  max-width: 720px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ============ Stats ============ */
.case-stats {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}
.case-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.case-stat {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.case-stat:last-child { border-right: none; }
.case-stat-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--warm);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}
.case-stat-value {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}

/* ============ 内容区通用 ============ */
.case-h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.case-h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}
.case-p {
  font-size: 15px;
  color: var(--white-60);
  line-height: 1.7;
  margin-top: 16px;
}

.case-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* ============ 亮点列表 ============ */
.case-highlights {
  background: var(--bg);
}
.case-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-highlights-list li {
  position: relative;
  padding: 24px 28px 24px 64px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warm);
  border-radius: 6px;
  font-size: 16px;
  color: var(--cream);
  line-height: 1.7;
  transition: all 0.4s var(--ease);
}
.case-highlights-list li:hover {
  background: var(--bg-3);
  border-left-color: var(--amber);
  transform: translateX(4px);
}
.case-highlights-list li::before {
  content: '✓';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--warm);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* ============ 图集 ============ */
.case-gallery {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.case-gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.5s var(--ease);
  background: var(--bg-3);
}
.case-gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.case-gallery-img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

/* ============ 挑战 ============ */
.case-challenges {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.case-challenges-list {
  list-style: none;
  counter-reset: challenge;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-challenges-list li {
  position: relative;
  counter-increment: challenge;
  padding: 24px 28px 24px 80px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  color: var(--white-60);
  line-height: 1.7;
}
.case-challenges-list li::before {
  content: counter(challenge, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 24px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--warm);
  opacity: 0.6;
  line-height: 1;
}
.case-challenges-list li strong {
  color: var(--cream);
  font-weight: 500;
}

/* ============ 成果 ============ */
.case-results {
  background:
    radial-gradient(ellipse at center, rgba(200, 149, 109, 0.12) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.case-results-wrap {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.case-results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}
.case-results-list li {
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--cream);
  line-height: 1.5;
  text-align: left;
  position: relative;
  padding-left: 64px;
}
.case-results-list li::before {
  content: '★';
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 24px;
}

/* ============ 其他案例 ============ */
.case-other {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.case-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.case-other-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.case-other-card:hover {
  transform: translateY(-4px);
  border-color: var(--warm);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.case-other-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.case-other-info {
  padding: 20px 24px;
}
.case-other-info .case-cat-tag {
  margin-bottom: 8px;
  font-size: 10px;
  padding: 4px 12px;
}
.case-other-info h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 4px;
}
.case-other-info p {
  font-size: 12px;
  color: var(--white-60);
  letter-spacing: 0.04em;
}

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .case-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .case-stat { border-bottom: 1px solid var(--border); }
  .case-stat:nth-child(3) { border-right: none; }
  .case-stat:nth-child(4), .case-stat:nth-child(5) { border-bottom: none; }
  .case-split { grid-template-columns: 1fr; }
  .case-other-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .case-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case-stat { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border); }
  .case-stat:nth-child(2n) { border-right: none !important; }
  .case-stat:nth-child(5) { grid-column: 1 / -1; border-right: none !important; }
  .case-gallery-grid { grid-template-columns: 1fr; }
  .case-other-grid { grid-template-columns: 1fr; }
  .case-hero { min-height: 500px; }
  .case-hero-content { padding-bottom: 80px; }
  .case-highlights-list li, .case-challenges-list li { padding-left: 60px; }
  .case-results-list li { padding-left: 56px; }
}