/* ============================================================
   Index · Swiss Engineer Redesign v3 (2026-04)
   作用域：body.page-index
   设计原则：
     - 全页统一底色 + 淡网格，不 flip
     - 每段 .screen 高度 ≥ 一屏，内容垂直居中
     - 段间靠大留白 + 无 border 衔接，不画黑横边
     - 每段有清晰的自身结构（Hero data footer / HOW 流程带 / WHY QA 对答 / REVIEWS 跑马灯），
       避免"3 卡大数字"结构在不同段重复
   ============================================================ */

.main-content { padding-bottom: 0; }

/* ============================================================
   Page canvas · 统一底色 + 淡网格（全页贯通）
   ============================================================ */
body.page-index {
  background: var(--sw-bg);
  background-image:
    linear-gradient(var(--sw-line-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sw-line-grid) 1px, transparent 1px);
  background-size: var(--sw-grid-cell) var(--sw-grid-cell);
  color: var(--sw-ink);
  font-family: var(--sw-sans);
}

/* 每段独立一屏（nav 约 84px 高）。min-height 不强制撑满，padding 兜底留白 */
body.page-index .screen {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 10vh, 120px) clamp(20px, 4vw, 48px);
  position: relative;
}

body.page-index .screen-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Section head 共用 */
body.page-index .section-head {
  max-width: 760px;
  margin: 0 0 clamp(40px, 6vh, 64px);
  text-align: left;
}
body.page-index .section-kicker {
  font-family: var(--sw-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sw-accent); margin: 0 0 10px;
}
body.page-index .section-kicker-dash {
  color: var(--sw-ink); font-weight: 700; margin-right: 6px;
}
body.page-index .section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sw-ink);
  margin: 0 0 12px;
  line-height: 1.12;
}
body.page-index .section-lede {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--sw-ink-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   [1] HERO · 单焦点 + data footer
   ============================================================ */

body.page-index .hero {
  /* hero 特殊：上下都要大气，底部贴着 data footer，不需要垂直居中 */
  justify-content: flex-start;
  padding-top: clamp(72px, 14vh, 160px);
  padding-bottom: 0;
}

body.page-index .hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: clamp(48px, 6vh, 80px);
}

body.page-index .hero-kicker {
  font-family: var(--sw-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sw-accent);
  margin: 0 0 28px;
}
body.page-index .hero-kicker-dash {
  color: var(--sw-ink); font-weight: 700; margin-right: 8px;
}
body.page-index .hero-kicker strong {
  color: var(--sw-accent); font-weight: 700; font-family: var(--sw-mono);
}

body.page-index .hero-title {
  font-size: clamp(44px, 8vw, 86px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--sw-ink);
  margin: 0 0 24px;
}
body.page-index .hero-accent { color: var(--sw-accent); }

/* PE.33 · hero 副标题：单行循环打字机（打字→停→删→打下一条→循环）
   - min-height 锁行高，防止打字/删除过程中下方 CTA 位置跳动
   - 光标一直闪烁（不再有 is-done fade，因为永远在循环）
   - reduced-motion：fallback 为静态第一条，不循环 */
body.page-index .hero-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  color: var(--sw-ink-soft);
  margin: 0 0 40px;
  min-height: calc(1.5em);
}

body.page-index .hero-subtitle[data-typewriter-loop] .tw-txt {
  white-space: pre-wrap;
}
body.page-index .hero-subtitle[data-typewriter-loop] .tw-dot {
  color: var(--sw-accent);
  font-weight: 700;
  padding: 0 2px;
}
body.page-index .hero-subtitle[data-typewriter-loop] .tw-caret {
  display: inline-block;
  width: 0.55em; height: 1em;
  background: var(--sw-ink);
  vertical-align: -0.15em;
  margin-left: 3px;
  animation: sw-caret-blink 0.7s steps(2, start) infinite;
}
@keyframes sw-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-index .hero-subtitle[data-typewriter-loop] .tw-caret { display: none; }
}

body.page-index .hero-cta-row {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(12px, 2vw, 24px); flex-wrap: wrap;
  margin: 0;
}
body.page-index .hero-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sw-ink); color: #fff;
  padding: 14px 22px; font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid var(--sw-ink);
  transition: background var(--transition-fast);
}
body.page-index .hero-cta-primary:hover { background: #222; }
body.page-index .hero-cta-arrow { font-family: var(--sw-mono); font-weight: 600; }
body.page-index .hero-cta-secondary {
  color: var(--sw-ink); font-size: 14px;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
body.page-index .hero-cta-secondary:hover { color: var(--sw-accent); }

/* ---- Hero data footer · 吸收 SERVICE STATUS ---- */
body.page-index .hero-data {
  width: 100%;
  background: transparent;
  padding: clamp(20px, 3vh, 32px) 0;
  margin-top: auto;
}
body.page-index .hero-data-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
body.page-index .hero-data-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
body.page-index .hero-data-label {
  font-family: var(--sw-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sw-ink-soft);
}
body.page-index .hero-data-dash { color: var(--sw-ink); font-weight: 700; margin-right: 6px; }
body.page-index .hero-data-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sw-mono); font-size: 10px;
  letter-spacing: 0.15em; color: var(--sw-ok);
}
body.page-index .hero-data-live-dot {
  width: 6px; height: 6px; background: var(--sw-ok);
  border-radius: 0; animation: sw-blink 1.6s infinite;
}
@keyframes sw-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.3; } }

/* Proof 4-col */
body.page-index .hero-proof {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 32px);
  font-family: var(--sw-mono);
}
body.page-index .hero-proof li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 4px 0;
  border-left: 2px solid var(--sw-ink);
  padding-left: 12px;
}
body.page-index .hero-proof b {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800; letter-spacing: -0.01em;
  color: var(--sw-ink);
}
body.page-index .hero-proof span {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sw-ink-soft);
}

/* PE.35 · 限时优惠价排版：主价大且红，原价小且灰划线 */
body.page-index .hero-proof-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
body.page-index .hero-proof-price .price-current {
  font-size: 1.15em;        /* 继承 b 的 22px 再放大 15% ≈ 25px */
  font-weight: 800;
  color: var(--sw-accent);  /* 红色主价，视觉冲击 */
  letter-spacing: -0.02em;
}
body.page-index .hero-proof-price .price-original {
  font-size: 0.5em;         /* ≈ 11px，与主价形成明显字号对比 */
  font-weight: 400;
  color: var(--sw-ink-soft);
  text-decoration: line-through;
  letter-spacing: 0;
}

/* Ticker bar · PE.38 · LIVE + 活动文案作为整体居中 */
body.page-index .hero-ticker-bar {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  border-top: 1px dashed var(--sw-line-soft);
  padding-top: 12px;
  overflow: hidden;
  font-family: var(--sw-mono);
}
body.page-index .hero-ticker-label {
  flex: 0 0 auto;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sw-accent);
  font-weight: 700;
}

/* PE.36 · live activity 单行消息（轮播覆盖同一元素）
   切换时加 .is-enter class 重触发动画（JS 先 remove 再 add 即可）
   PE.38 · 不再 flex:1 撑满宽度，而是自适应宽度配合外层 justify-content:center */
body.page-index .hero-ticker-message {
  flex: 0 1 auto; min-width: 0;
  font-family: var(--sw-mono); font-size: 12px;
  color: var(--sw-ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}
body.page-index .hero-ticker-message.is-enter {
  animation: sw-live-activity-fade 0.45s ease-out;
}
body.page-index .hero-ticker-message b {
  color: var(--sw-ink); font-weight: 700;
}
@keyframes sw-live-activity-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.page-index .hero-ticker-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 24px; overflow: hidden;
  flex: 1; min-width: 0;
}
body.page-index .hero-ticker-list .hero-status-recent-item {
  display: inline-flex; align-items: baseline; gap: 8px;
  flex: 0 0 auto;
  font-family: var(--sw-mono); font-size: 11px;
  color: var(--sw-ink-soft);
  white-space: nowrap;
  animation: sw-ticker-fade .4s ease-out;
}
body.page-index .hero-ticker-list .hero-status-recent-phone {
  color: var(--sw-ink); font-weight: 700;
}
body.page-index .hero-ticker-list .hero-status-recent-time {
  color: var(--sw-ink-soft); font-size: 10px; letter-spacing: 0.05em;
}
body.page-index .hero-ticker-list .hero-status-recent-badge {
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--sw-ok);
}
@keyframes sw-ticker-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

body.page-index .hero-ticker[hidden] { display: none; }

/* ============================================================
   [1.5] WHAT · 4 格利益点（已合并到 #why 上半屏）
   复用 Hero data-footer 的数据网格视觉：
     - 桌面 4 列等宽、移动 2×2
     - 左侧 2px 墨线 + mono 字体
   ============================================================ */

body.page-index .what-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 40px);
  font-family: var(--sw-mono);
}

body.page-index .what-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--sw-ink);
}

body.page-index .what-cell-title {
  font-family: var(--sw-sans);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.25;
  color: var(--sw-ink);
  letter-spacing: -0.005em;
}

body.page-index .what-cell-desc {
  font-size: clamp(12px, 1.15vw, 14px);
  color: var(--sw-ink-muted, #6b6b6b);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  body.page-index .what-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  body.page-index .what-grid { gap: 20px; }
}

/* ============================================================
   [2] HOW · 流程带 · 横向 3 步
   ============================================================ */

body.page-index .how .section-head { margin-bottom: clamp(48px, 7vh, 80px); }

body.page-index .flow {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  position: relative;
}

/* 步骤之间的连接线 */
body.page-index .flow::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 8%; right: 8%;
  height: 1px;
  background: var(--sw-ink);
  z-index: 0;
}
body.page-index .flow-step {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.88);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
body.page-index .flow-step-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
body.page-index .flow-num {
  font-family: var(--sw-mono); font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--sw-ink);
  line-height: 1; padding: 4px 10px;
  background: #fff; border: 1px solid var(--sw-ink);
}
body.page-index .flow-tag {
  font-family: var(--sw-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sw-ink-soft);
  padding: 3px 8px; border: 1px solid var(--sw-line-soft);
  background: #fff;
}
body.page-index .flow-step:first-child .flow-tag {
  color: var(--sw-accent);
  border-color: var(--sw-accent);
}
body.page-index .flow-title {
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.02em; margin: 0;
  color: var(--sw-ink);
}
body.page-index .flow-ext {
  font-family: var(--sw-mono); font-weight: 700;
  color: var(--sw-accent); margin-left: 4px;
}
body.page-index .flow-desc {
  font-size: 14px; line-height: 1.65;
  color: var(--sw-ink-soft); margin: 0;
  flex: 1;
}
body.page-index .flow-desc b {
  color: var(--sw-ink); font-weight: 700;
}
body.page-index .flow-action { margin-top: auto; }
body.page-index .flow-cta-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sw-ink); color: #fff;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  font-family: var(--sw-sans); letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid var(--sw-ink);
  transition: background var(--transition-fast);
}
body.page-index .flow-cta-primary:hover { background: #222; }
body.page-index .flow-ext-arrow {
  font-family: var(--sw-mono); font-weight: 600;
  color: #fff;
}
body.page-index .flow-cta-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--sw-ink); font-size: 13px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  font-family: var(--sw-sans);
}
body.page-index .flow-cta-secondary:hover { color: var(--sw-accent); }
body.page-index .flow-hint {
  font-family: var(--sw-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--sw-ink-soft);
}

/* ============================================================
   [3] WHY · 合并屏 · 上半 what-grid / 下半 紧凑 QA
   ============================================================ */

/* what-grid 与下方 QA 的间距（只在 #why 内生效） */
body.page-index .why .section-head { margin-bottom: clamp(28px, 4vh, 44px); }
body.page-index .why .what-grid { margin-bottom: clamp(40px, 6vh, 64px); }

/* 中间的轻量分隔标题 */
body.page-index .why-qa-mini-head {
  font-family: var(--sw-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sw-ink-soft);
  margin: 0 0 clamp(16px, 2vh, 24px) 0;
  display: flex; align-items: center; gap: 10px;
}
body.page-index .why-qa-mini-dash {
  display: inline-block; width: 28px; height: 1px;
  background: var(--sw-ink-soft); flex-shrink: 0;
}

/* 紧凑 QA：Q/A 同一行或紧邻两行；整体高度压到原来的一半左右 */
body.page-index .qa-list.qa-compact {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--sw-ink);
  margin: 0; padding: 0;
}
body.page-index .qa-list.qa-compact .qa {
  display: block;               /* 覆盖默认两栏 grid */
  padding: clamp(14px, 2.2vh, 20px) 0;
  border-bottom: 1px solid var(--sw-line-soft);
  margin: 0;
}
body.page-index .qa-list.qa-compact .qa:last-child {
  border-bottom: 1px solid var(--sw-ink);
}
body.page-index .qa-list.qa-compact .qa-q {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--sw-ink);
  margin: 0 0 4px 0;
  letter-spacing: -0.005em;
}
body.page-index .qa-list.qa-compact .qa-a {
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.65;
  color: var(--sw-ink-soft);
  margin: 0;
}

/* ============================================================
   [3-legacy] QA · 原双栏对答式（保留给其它页或将来使用）
   ============================================================ */

body.page-index .qa-list {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--sw-ink);
}
body.page-index .qa {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 4vh, 40px) 0;
  border-bottom: 1px solid var(--sw-line-soft);
}
body.page-index .qa:last-child { border-bottom: 1px solid var(--sw-ink); }
body.page-index .qa-q {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700; line-height: 1.35;
  color: var(--sw-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
body.page-index .qa-q-mark {
  font-family: var(--sw-mono); font-weight: 800;
  color: var(--sw-accent); margin-right: 8px;
  letter-spacing: 0.05em;
}
body.page-index .qa-a {
  font-size: 15px; line-height: 1.75;
  color: var(--sw-ink-soft); margin: 0;
}
body.page-index .qa-a-mark {
  font-family: var(--sw-mono); font-weight: 800;
  color: var(--sw-ink); margin-right: 8px;
  letter-spacing: 0.05em;
}
body.page-index .qa-a strong { color: var(--sw-ink); font-weight: 700; }

/* ============================================================
   [4] REVIEWS · 跑马灯
   ============================================================ */
body.page-index .reviews {
  padding-left: 0; padding-right: 0;
}
body.page-index .reviews-head-wrap {
  padding: 0 clamp(20px, 4vw, 48px);
}

body.page-index .reviews-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-bottom: 20px;
}
body.page-index .reviews-marquee:last-child { margin-bottom: 0; }
body.page-index .reviews-marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: sw-marquee-ltr linear infinite;
  animation-duration: 48s;
}
body.page-index .reviews-marquee-rtl .reviews-marquee-track {
  animation-name: sw-marquee-rtl;
  animation-duration: 40s;
}
@keyframes sw-marquee-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes sw-marquee-rtl {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.page-index .reviews-marquee-track,
  body.page-index .hero-data-live-dot { animation: none; }
}

body.page-index .review-card {
  flex: 0 0 auto; width: 320px;
  background: #fff; border: 1px solid var(--sw-ink);
  padding: 20px;
  font-family: var(--sw-sans);
}
body.page-index .review-stars {
  font-family: var(--sw-mono); color: var(--sw-accent);
  letter-spacing: 0.1em; font-size: 13px; margin-bottom: 12px;
}
body.page-index .review-text {
  font-size: 14px; line-height: 1.6;
  color: var(--sw-ink); margin: 0 0 16px;
}
body.page-index .review-meta {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px dashed var(--sw-line-soft);
}
body.page-index .review-avatar {
  width: 32px; height: 32px; background: var(--sw-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sw-mono); font-size: 12px; font-weight: 700;
}
body.page-index .review-who {
  display: flex; flex-direction: column; gap: 2px; font-size: 12px;
}
body.page-index .review-name { font-weight: 700; color: var(--sw-ink); }
body.page-index .review-role { color: var(--sw-ink-soft); }
body.page-index .review-tag {
  margin-left: auto;
  font-family: var(--sw-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sw-ink-soft);
  background: transparent; padding: 0;
}
body.page-index .review-tag.badge,
body.page-index .review-tag[class*="badge-"] {
  background: transparent;
  border-radius: 0;
  color: var(--sw-ink-soft);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  body.page-index .flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body.page-index .flow::before { display: none; }
  body.page-index .flow-step { background: #fff; border: 1px solid var(--sw-ink); }

  body.page-index .hero-proof {
    grid-template-columns: repeat(2, 1fr);
  }
  body.page-index .qa {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 640px) {
  body.page-index .hero-title { font-size: 44px; letter-spacing: -0.03em; }
  body.page-index .section-title { font-size: clamp(28px, 8vw, 36px); }
  body.page-index .hero-proof { grid-template-columns: 1fr 1fr; }
  body.page-index .hero-ticker-bar {
    flex-direction: column; align-items: flex-start; gap: 8px;
  }
  body.page-index .hero-ticker-list { gap: 16px; }
}
