/* ============================================================
   五量度 · services 页 Apple 流体视觉层（2026-10-26）
   依赖 home-apple.css 的 .ah 设计令牌与基础组件（body 同时挂 ah / svpage）。
   区块：首屏 / 服务矩阵 / 服务流程 / 派单带 / 交付物对照 / 品牌 / 现场 / FAQ / CTA
   注意：不使用旧 style.css 的 .svc/.faq/.scene 等类名，全部以 .sv- 前缀隔离。
   ============================================================ */

/* ============ 首屏：竖版主图 + 玻璃报修卡 ============ */
.svpage .ah-stage-photo { aspect-ratio: 4 / 5; border-radius: 28px; }
.svpage .ah-glass { width: min(310px, 88%); }
.svpage .ah-badge-live { left: auto; right: 16px; }
.sv-chans { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sv-chans li {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 13px;
  background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.9);
  transition: transform .5s var(--ah-spring), background .3s;
}
.sv-chans li:hover { transform: translateX(3px); background: #fff; }
.sv-chan-ico {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(22,166,199,.16), rgba(22,166,199,.05)); color: var(--ah-brand-deep);
}
.sv-chan-ico svg { width: 15px; height: 15px; }
.sv-chans b { display: block; font-size: 13px; color: var(--ah-ink); line-height: 1.35; }
.sv-chans em { display: block; font-style: normal; font-size: 11.5px; color: var(--ah-ink-3); margin-top: 1px; }

/* ============ 服务矩阵：六张实景卡 ============ */
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sv-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: #fff; border: 1px solid var(--ah-line); box-shadow: var(--ah-shadow-1);
  transition: transform .6s var(--ah-spring), box-shadow .5s, border-color .3s;
}
.sv-card:hover { transform: translateY(-6px); box-shadow: var(--ah-shadow-2); border-color: rgba(22,166,199,.32); }
.sv-card-pic { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #eef3f7; }
.sv-card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.15s var(--ah-ease); }
.sv-card:hover .sv-card-pic img { transform: scale(1.06); }
.sv-card-pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,24,38,.14) 0%, rgba(6,24,38,0) 34%, rgba(6,24,38,.34) 100%);
}
.sv-card-ico {
  position: absolute; z-index: 2; left: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: var(--ah-brand-deep);
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(8,26,42,.14);
}
.sv-card-ico svg { width: 20px; height: 20px; }
.sv-card-no {
  position: absolute; z-index: 2; right: 14px; top: 14px; font-size: 12px; font-weight: 700;
  color: #fff; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px;
  background: rgba(8,26,42,.42); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sv-card-body { padding: 17px 19px 19px; display: flex; flex-direction: column; flex: 1 1 auto; }
.sv-card-body h3 { margin: 0; font-size: 17px; color: var(--ah-ink); letter-spacing: -.01em; }
.sv-card-body p { margin: 8px 0 0; font-size: 13.5px; color: var(--ah-ink-2); line-height: 1.78; }
.sv-card-body .tags { margin-top: 13px; }
.sv-card-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 12.5px; font-weight: 600; color: var(--ah-brand-deep);
}
.sv-card-more i { font-style: normal; transition: transform .45s var(--ah-spring); }
.sv-card:hover .sv-card-more i { transform: translateX(4px); }
.sv-grid-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 20px; padding: 16px 20px; border-radius: 16px;
  background: var(--ah-paper-2); border: 1px solid var(--ah-line-soft);
}
.sv-grid-note p { margin: 0; font-size: 13.5px; color: var(--ah-ink-2); line-height: 1.75; }
.sv-grid-note b { color: var(--ah-ink); }

/* ============ 服务流程：五步stepper（滚动点亮） ============ */
.sv-flow { position: relative; margin-top: clamp(26px, 3vw, 40px); }
.sv-flow-rail { position: absolute; left: 26px; right: 26px; top: 21px; height: 2px; background: var(--ah-line); border-radius: 2px; overflow: hidden; }
.sv-flow-rail i {
  display: block; height: 100%; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--ah-brand), #3fbfb2);
  transition: width .25s linear;
}
.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.sv-step { position: relative; text-align: center; padding: 0 4px; }
.sv-step-n {
  position: relative; z-index: 2; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--ah-ink-3);
  background: #fff; border: 2px solid var(--ah-line);
  transition: transform .55s var(--ah-spring-soft), border-color .4s, background .4s, color .4s, box-shadow .4s;
}
.sv-step h3 { margin: 0; font-size: 15px; color: var(--ah-ink); letter-spacing: -.01em; transition: color .4s; }
.sv-step p { margin: 7px 0 0; font-size: 12.5px; color: var(--ah-ink-3); line-height: 1.7; }
.sv-step.on .sv-step-n {
  border-color: var(--ah-brand); background: var(--ah-brand); color: #fff;
  transform: scale(1.12); box-shadow: 0 8px 20px rgba(22,166,199,.32);
}
.sv-step.on h3 { color: var(--ah-brand-deep); }
/* 有 JS 才启用渐入；无 JS 全部可见 */
.sv-steps--js .sv-step { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ah-ease), transform .55s var(--ah-ease); }
.sv-steps--js .sv-step.on { opacity: 1; transform: none; }
.sv-flow-cta { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.sv-flow-cta p { margin: 0; font-size: 13px; color: var(--ah-ink-3); }

/* ============ 派单带：复用 ah-band（左图右文 / 深色数字） ============ */
.svpage .ah-band { align-items: center; }
.svpage .ah-band-fig { aspect-ratio: 21 / 10; border-radius: 22px; }
.svpage .ah-band-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ 交付物对照表 ============ */
.sv-table-wrap {
  margin-top: clamp(22px, 2.6vw, 34px); border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--ah-line); box-shadow: var(--ah-shadow-1);
}
.sv-table-scroll { overflow-x: auto; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 780px; }
.sv-table th {
  background: linear-gradient(135deg, #eaf7fa, #e8f0ff); color: #1f3a6d;
  padding: 13px 16px; text-align: left; font-weight: 700; font-size: 13.5px;
  border-bottom: 2px solid #d4e4ec; white-space: nowrap;
}
.sv-table td { padding: 13px 16px; border-bottom: 1px solid #eef2f6; vertical-align: top; line-height: 1.78; color: var(--ah-ink-2); }
.sv-table tbody tr:last-child td { border-bottom: none; }
.sv-table td:first-child { font-weight: 700; color: #16324f; white-space: nowrap; }
.sv-table tbody tr { transition: background .3s; }
.sv-table tbody tr:hover td { background: #f7fbfd; }
.sv-table-note { margin: 14px 2px 0; font-size: 12.5px; color: var(--ah-ink-3); }

/* ============ 品牌带：现场照片 + 双轨 logo 走马灯 ============ */
.sv-brands { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 3.4vw, 52px); align-items: center; }
.sv-brands-fig { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: #e7eef4; box-shadow: var(--ah-shadow-2); }
.sv-brands-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-brands-fig figcaption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 36px 18px 15px; color: #fff;
  font-size: 13px; background: linear-gradient(180deg, rgba(6,24,38,0), rgba(6,24,38,.72));
}
.sv-brands-side .ah-head { margin: 0 0 20px; text-align: left; }
.sv-brands-side .ah-head p { margin-left: 0; }
.sv-brands-wall { margin-top: clamp(24px, 3vw, 38px); display: grid; gap: 12px; }
.sv-brands-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px;
  margin-top: 16px; padding: 13px 18px; border-radius: 14px;
  background: var(--ah-paper-2); border: 1px solid var(--ah-line-soft);
}
.sv-brands-note span { font-size: 12.5px; color: var(--ah-ink-3); }

/* ============ 服务现场：bento ============ */
.sv-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sv-bento-wide { grid-column: 1 / -1; aspect-ratio: 16 / 7.6; }
.sv-cell {
  position: relative; display: block; overflow: hidden; border-radius: 20px;
  background: #e7eef4; box-shadow: var(--ah-shadow-1);
  transition: transform .6s var(--ah-spring), box-shadow .5s;
}
.sv-cell:hover { transform: translateY(-5px); box-shadow: var(--ah-shadow-2); }
.sv-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ah-ease); }
.sv-cell:hover img { transform: scale(1.05); }
.sv-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,24,38,0) 46%, rgba(6,24,38,.62) 100%); }
.sv-cell-cap {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 13px; color: #fff;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.sv-cell-cap b { font-size: 14.5px; letter-spacing: -.01em; }
.sv-cell-cap span { font-size: 12px; color: rgba(255,255,255,.84); }
.sv-bento-wide .sv-cell-cap { left: 22px; right: 22px; bottom: 18px; }
.sv-bento-wide .sv-cell-cap b { font-size: 17px; }
.sv-bento-wide .sv-cell-cap span { font-size: 12.5px; }
.sv-bento-cell { aspect-ratio: 4 / 3; }

/* ============ FAQ：分组手风琴 ============ */
.sv-faq-intro { max-width: 760px; margin: 0 auto clamp(24px, 3vw, 36px); text-align: center; }
.sv-faq-intro p { margin: 12px 0 0; font-size: 14px; color: var(--ah-ink-2); line-height: 1.85; }
.sv-faq-group { max-width: 880px; margin: 0 auto; }
.sv-faq-group + .sv-faq-group { margin-top: clamp(26px, 3vw, 38px); }
.sv-faq-group h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 15.5px; color: var(--ah-ink); letter-spacing: -.01em;
}
.sv-faq-group h3::before {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 3px;
  background: linear-gradient(150deg, var(--ah-brand), #3fbfb2);
}
.sv-faq-group h3 em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ah-ink-3); margin-left: auto; letter-spacing: .04em; }

/* ============ CTA 深色带 ============ */
.sv-cta {
  position: relative; overflow: hidden; border-radius: 26px; margin-top: clamp(30px, 4vw, 52px);
  background: linear-gradient(135deg, #0b2f45 0%, #10465c 55%, #0e6f7e 100%);
  color: #fff; padding: clamp(34px, 4.4vw, 60px) clamp(24px, 4vw, 56px);
  box-shadow: var(--ah-shadow-3);
}
.sv-cta::before, .sv-cta::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none;
}
.sv-cta::before { width: 340px; height: 340px; right: -90px; top: -120px; background: rgba(63,191,178,.28); }
.sv-cta::after { width: 260px; height: 260px; left: -70px; bottom: -110px; background: rgba(22,166,199,.24); }
.sv-cta-in { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 36px; }
/* 显式白色：旧 style.css 的 bare h2 {color:var(--c-deep)} 会盖掉继承色 */
.sv-cta h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; line-height: 1.3; color: #fff; }
.sv-cta p { margin: 9px 0 0; font-size: 14px; color: rgba(255,255,255,.78); max-width: 560px; line-height: 1.8; }
.sv-cta-tel { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.sv-cta-tel b { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.sv-cta-tel span { font-size: 12.5px; color: rgba(255,255,255,.72); }
.sv-cta-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.sv-cta .ah-btn--glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.34); }
.sv-cta .ah-btn--glass:hover { background: rgba(255,255,255,.22); }
.sv-cta .ah-btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.sv-cta .ah-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-brands { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sv-brands-fig { max-width: 620px; }
  .svpage .ah-band-fig { aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .sv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .sv-flow-rail { display: none; }
  .sv-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .svpage .ah-stage-photo { border-radius: 20px; }
  .sv-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sv-card { border-radius: 18px; }
  .sv-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sv-step { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; text-align: left; padding: 0; }
  .sv-step-n { margin: 0; }
  .sv-step h3 { padding-top: 2px; }
  .sv-bento { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sv-bento-wide { aspect-ratio: 16 / 10; }
  .sv-bento-cell { aspect-ratio: 4 / 3; }
  .sv-cta { border-radius: 20px; }
  .sv-cta-in { flex-direction: column; align-items: flex-start; }
  .sv-table { font-size: 12.5px; }
  .sv-table th, .sv-table td { padding: 11px 12px; }
}

/* ============ 无障碍：减弱动效 ============ */
@media (prefers-reduced-motion: reduce) {
  .sv-flow-rail i { transition: none; }
  .sv-steps--js .sv-step { opacity: 1 !important; transform: none !important; }
  .sv-step-n, .sv-card, .sv-card-pic img, .sv-cell, .sv-cell img, .sv-chans li { transition-duration: .001ms !important; }
}
