/* ============================================
   服务与案例页样式（暗色 · 目录索引式）
   ============================================ */

/* ============ 目录索引 ============ */
.svc-index {
  position: relative;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: visible;
}

/* 编辑式头部：左对齐 + eyebrow 数据行 */
.svc-index-head {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.svc-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}

.svc-eyebrow .kicker {
  margin-bottom: 0;
}

.svc-count {
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line-strong);
}

.svc-count b {
  color: var(--primary);
  font-weight: 700;
}

.svc-index-title {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 1.22;
}

.svc-index-sub {
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* 大编号目录行 */
.svc-index-list {
  border-top: 1px solid var(--line);
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  padding: clamp(1.35rem, 2.8vw, 2rem) 0.8rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    background 0.45s var(--ease-out),
    padding-left 0.45s var(--ease-out);
}

.svc-row:hover,
.svc-row:focus-visible {
  background: linear-gradient(90deg, rgba(129, 136, 255, 0.07), transparent 72%);
  padding-left: 1.8rem;
  outline: none;
}

.svc-row .sr-no {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(129, 136, 255, 0.4);
  transition: -webkit-text-stroke-color 0.4s;
  line-height: 1;
}

.svc-row:hover .sr-no {
  -webkit-text-stroke-color: var(--accent);
}

.svc-row .sr-name {
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  font-weight: 700;
  transition: color 0.3s;
}

.svc-row:hover .sr-name {
  color: var(--primary);
}

.svc-row .sr-tag {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-3);
}

/* 行内展开详情 */
.svc-row .sr-detail {
  grid-column: 2 / -1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.6s var(--ease-out),
    opacity 0.4s ease 0.06s;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.svc-row.open .sr-detail {
  max-height: 7em;
  opacity: 1;
  margin-top: 0.7rem;
}

.svc-row .sr-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.svc-row .sr-points span {
  font-size: 0.78rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: var(--surface);
}

/* 行尾箭头 */
.svc-row .sr-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border: 1.5px solid var(--line);
  transition: all 0.4s var(--ease-out);
}

.svc-row:hover .sr-arrow,
.svc-row.open .sr-arrow {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  transform: rotate(45deg);
  box-shadow: var(--glow-primary);
}

.svc-row.open .sr-arrow {
  transform: rotate(90deg);
}

@media (max-width: 640px) {
  .svc-row {
    grid-template-columns: 56px 1fr;
  }
  .svc-row .sr-arrow {
    display: none;
  }
  .svc-row .sr-detail {
    grid-column: 1 / -1;
  }
}

/* ============ 案例墙 ============ */
.case-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

/* ---------- Case Items 大字头部 ---------- */
.case-hero-head {
  margin-bottom: clamp(2.6rem, 6vw, 4.2rem);
}

.case-hero-title {
  display: flex;
  align-items: baseline;
  gap: clamp(0.8rem, 2.4vw, 1.8rem);
  line-height: 1;
  font-size: clamp(3.4rem, 9.5vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Case —— 实体：品牌渐变（加深一档） + 微光 */
.cht-solid .split-line {
  background: linear-gradient(120deg, #7d82ff 0%, #a78bfa 62%, #ff8a5c 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(109, 114, 255, 0.32));
}

/* Items —— 描边空心：亮色勾边 + 底部光晕呼吸 */
.cht-hollow .split-line {
  color: transparent;
  -webkit-text-stroke: 2px rgba(167, 139, 250, 0.72);
  text-shadow: 0 0 22px rgba(124, 101, 242, 0.32);
  animation: hollowBreath 3.6s ease-in-out infinite;
}

@keyframes hollowBreath {
  0%, 100% {
    text-shadow: 0 0 18px rgba(124, 101, 242, 0.25);
    -webkit-text-stroke-color: rgba(167, 139, 250, 0.65);
  }
  50% {
    text-shadow: 0 0 34px rgba(124, 101, 242, 0.5);
    -webkit-text-stroke-color: rgba(196, 181, 253, 0.92);
  }
}

/* 空心字悬浮：描边点亮 */
.cht-hollow:hover .split-line {
  -webkit-text-stroke-color: rgba(238, 240, 255, 0.85);
}

.case-hero-sub {
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}

@media (prefers-reduced-motion: reduce) {
  .cht-hollow .split-line {
    animation: none;
  }
}

@media (max-width: 640px) {
  .case-hero-title {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
    -webkit-text-stroke-width: 1.5px;
  }
  .case-hero-title .cht-hollow .split-line {
    -webkit-text-stroke-width: 1.5px;
  }
}

.case-wall {
  display: flex;
  flex-direction: column;
  /* 案例之间横线分隔 */
}

.case-wall .case-row {
  padding: clamp(2.4rem, 5vw, 3.8rem) 0;
  border-bottom: 1px solid var(--line);
}

.case-wall .case-row:first-child {
  padding-top: 0;
}

.case-wall .case-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}

.case-row:nth-child(even) .case-media {
  order: 2;
}

.case-media {
  position: relative;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  transition: transform 0.55s var(--ease-out);
}

/* 本地实拍图：带细边框 */
.case-media .case-thumb {
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
  background: #0a0d1f;
}

.case-media .img-box {
  aspect-ratio: 16 / 10;
  border-radius: inherit;
}

.case-media .img-box img {
  opacity: 0.85;
  transition: opacity 0.5s, transform 0.7s var(--ease-out);
}

.case-media:hover .img-box img {
  opacity: 1;
  transform: scale(1.05);
}

.case-year {
  position: absolute;
  top: -14px;
  right: 18px;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: var(--grad-warm);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--glow-warm);
  z-index: 2;
}

.case-info .case-tag {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--bg-mist);
  padding: 0.22rem 0.7rem;
  border-radius: 6px;
  display: inline-block;
}

.case-info h3 {
  margin-top: 0.9rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.case-info p {
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.case-points {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.case-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.case-points span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--grad-warm);
  flex: none;
}

.case-info .go {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

.case-info .go .arr {
  transition: transform 0.3s var(--ease-out);
}

.case-info .go:hover .arr {
  transform: translateX(5px);
}

@media (max-width: 860px) {
  .case-row {
    grid-template-columns: 1fr;
  }
  .case-row:nth-child(even) .case-media {
    order: 0;
  }
}

