/*! 蒙西现货电价预测平台 · Apple AirPods Pro 风产品展示页
   法则：Big Type / 高对比黑-白 / 克制配色 / Bento / Sticky / Physics / Hairlines
   避免：SaaS 模板、蓝紫渐变、过度阴影、emoji、千篇一律卡片、Apple 资源
*/
:root {
  --text: #1d1d1f;
  --note: #86868b;
  --bg: #ffffff;
  --ink: #f5f5f7;
  --black: #000000;
  --accent: #0a84ff;
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-light: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --radius-pill: 999px;
  --spring: cubic-bezier(0.25, 1, 0.5, 1);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ===== 全局导航 ===== */
.gnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--spring), border-color 0.3s var(--spring);
}
.gnav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--hairline);
}
.gnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.gnav-brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.gnav-menu {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  font-size: 14px;
  color: var(--text);
}
.gnav-menu a { opacity: 0.85; transition: opacity 0.2s var(--spring); }
.gnav-menu a:hover { opacity: 1; }
.gnav-cta {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.gnav-burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.gnav-burger span { width: 20px; height: 1.5px; background: var(--text); display: block; }
.gnav-mobile {
  padding: 8px 24px 16px;
  border-top: 1px solid var(--hairline);
  background: rgba(255,255,255,0.96);
}
.gnav-mobile[hidden] { display: none !important; }
.gnav-mobile a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--hairline); }
.gnav-mobile a:last-child { border-bottom: 0; }

/* ===== 产品子导航 ===== */
.pnav {
  position: sticky;
  top: 52px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.pnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 46px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pnav-inner::-webkit-scrollbar { display: none; }
.pnav-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pnav-links { display: flex; gap: 22px; font-size: 13px; white-space: nowrap; }
.pnav-links a { color: var(--note); transition: color 0.2s var(--spring); }
.pnav-links a:hover { color: var(--text); }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500;
  transition: transform 0.12s var(--spring), background 0.2s var(--spring), box-shadow 0.2s var(--spring), opacity 0.2s var(--spring);
  cursor: pointer;
}
.btn-fill { background: var(--accent); color: #fff; }
.btn-fill:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(10, 132, 255, 0.32); }
.btn-fill:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--hairline); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.btn-lg { height: 60px; padding: 0 40px; font-size: 19px; font-weight: 500; }

/* ===== Hero ===== */
.hero {
  background: var(--black);
  color: var(--ink);
  min-height: 92vh;
  padding: 160px 24px 100px;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}
/* 中文断行防护：防止任何回退字体或扩展让汉字强制每字换行 */
.hero,
.hero * { word-break: keep-all; overflow-wrap: normal; -webkit-line-break: strict; }
.hero-copy { max-width: 720px; padding-left: max(0px, calc((100vw - var(--maxw)) / 2)); }
.hero-eyebrow {
  font-size: 17px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.01em; margin: 0 0 20px;
  white-space: nowrap;
}
.hero-title {
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-title-line { display: block; white-space: nowrap; }
.hero-sub {
  font-size: clamp(19px, 1.6vw, 22px);
  color: rgba(245, 245, 247, 0.62);
  margin: 0 0 36px;
  max-width: 30em;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-actions .btn { border-radius: 980px; }
.hero-link {
  color: var(--accent);
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s var(--spring), gap 0.25s var(--spring);
}
.hero-link .arrow {
  display: inline-block;
  font-size: 21px;
  line-height: 1;
  font-weight: 300;
  transition: transform 0.25s var(--spring);
}
.hero-link:hover { color: #5e9bff; gap: 8px; }
.hero-link:hover .arrow { transform: translateX(2px); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual .wave { width: 100%; max-width: 540px; height: auto; }
.wave-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--spring) 0.3s forwards; }
.wave-area { opacity: 0; animation: fade 1.2s ease 1.6s forwards; }
.wave-dot { opacity: 0; animation: pop 0.5s var(--spring) 2.4s forwards; }
.wave-grid line { animation: fade 1.5s ease 0.4s forwards; opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; } }
.hero-chip {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1); border: 1px solid var(--hairline-light);
  font-size: 13px; color: var(--ink); white-space: nowrap;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.25); }

/* ===== 特性章 ===== */
.feature {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 132px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* 全宽背景 + 内容限宽 1120 居中。
   注意：不能靠 max-width:100% 铺满后让子元素自己居中——
   .feature 的 grid 是 1fr 1fr，section 铺满视口时两列会跟着变宽，
   内容左边缘会贴到 24px，而其他章节在 184px，错位 160px。
   正确做法（与 .showcase 一致）：背景全宽，用对称 padding 把内容区压回 1120。 */
.feature-light {
  background: linear-gradient(180deg, #fafafa, #f2f2f7);
  max-width: 100%;
  padding-left: max(24px, calc((100% - var(--maxw)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--maxw)) / 2 + 24px));
}
.feature-dark {
  background: var(--black);
  color: var(--ink);
  max-width: 100%;
  padding-left: max(24px, calc((100% - var(--maxw)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--maxw)) / 2 + 24px));
}
.feature-copy { max-width: 460px; }
.feature-kicker { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 14px; letter-spacing: 0.01em; }
.feature-kicker.light { color: #5e9bff; }
.feature-title {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.feature-title.light { color: var(--ink); }
.feature-text { font-size: 18px; line-height: 1.6; color: var(--note); margin: 0 0 24px; }
.feature-text.light { color: rgba(245, 245, 247, 0.7); }
.feature-metric { font-size: 17px; color: var(--text); }
.feature-metric.light { color: var(--ink); }
.feature-metric b { font-size: 28px; font-weight: 700; }

/* 七路集成图（响应式：原固定 320x320，在 320px 视口可用宽仅 272px 会溢出） */
.feature-media { display: flex; align-items: center; justify-content: center; min-width: 0; }
.ensemble { position: relative; width: min(320px, 100%); aspect-ratio: 1 / 1; height: auto; }
.ensemble-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(120px, 37%); aspect-ratio: 1 / 1; height: auto;
  border-radius: 50%;
  background: var(--black); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-size: 18px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.ensemble .node {
  position: absolute; padding: 8px 14px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--hairline);
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.ensemble .n1 { top: 6%; left: 50%; transform: translateX(-50%); }
.ensemble .n2 { top: 30%; right: 0; }
.ensemble .n3 { bottom: 8%; right: 12%; }
.ensemble .n4 { bottom: 8%; left: 12%; }
.ensemble .n5 { top: 30%; left: 0; }
.ensemble .n6 { top: 50%; right: 0; transform: translateY(-50%); }
.ensemble .n7 { top: 50%; left: 0; transform: translateY(-50%); }
.ensemble-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.ensemble-links line { stroke: var(--hairline); stroke-width: 1; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bento-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px 26px;
  min-width: 0;
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--spring);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1); }
.bento-card.span2 { grid-column: span 2; }
.bento-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.bento-card p { margin: 0; font-size: 14px; color: var(--note); }

/* 实时监控脉冲 */
/* 实时监控脉冲（同样改为响应式，避免窄屏溢出） */
.pulse { position: relative; width: min(240px, 100%); aspect-ratio: 1 / 1; height: auto; display: grid; place-items: center; }
.pulse-ring {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(10, 132, 255, 0.18);
  animation: pulse 2.6s var(--spring) infinite;
}
.pulse-ring.d2 { animation-delay: 0.6s; }
.pulse-ring.d3 { animation-delay: 1.2s; }
.pulse-core {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; letter-spacing: 0.06em;
  box-shadow: 0 0 40px rgba(10, 132, 255, 0.5);
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ===== Sticky 演示章 ===== */
.showcase { background: #f5f5f7; }
.showcase-sticky {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.showcase-visual { position: sticky; top: 120px; height: 70vh; display: grid; place-items: center; }
.showcase-stage {
  width: 100%; max-width: 460px; aspect-ratio: 4 / 3;
  background: var(--black); border-radius: var(--radius);
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.stage-panel {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: #fff;
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.5s var(--spring), transform 0.5s var(--spring);
}
.stage-panel.active { opacity: 1; transform: scale(1); }
.showcase-steps { padding: 80px 24px; }
.step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; }
.step-no { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.step h3 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.025em; margin: 12px 0 16px; }
.step p { font-size: 18px; color: var(--note); max-width: 26em; margin: 0; }

/* ===== 规格 ===== */
.specs { max-width: var(--maxw); margin: 0 auto; padding: 110px 24px; }
.specs-title { font-size: clamp(34px, 4vw, 50px); font-weight: 700; letter-spacing: -0.025em; text-align: center; margin: 0 0 56px; }
.specs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.spec-card { min-width: 0;
  border: 1px solid var(--hairline); border-radius: 22px;
  padding: 38px 28px; text-align: center;
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--spring);
}
.spec-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09); }
.spec-card b { display: block; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.spec-card span { font-size: 14px; color: var(--note); }

/* ===== CTA ===== */
.cta { background: var(--black); color: var(--ink); padding: 120px 24px; }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 0 0 20px; }
.cta-inner p { font-size: 18px; color: rgba(245, 245, 247, 0.7); margin: 0 0 36px; }

/* ===== 页脚 ===== */
.footer { background: #f5f5f7; padding: 64px 24px 40px; border-top: 1px solid var(--hairline); }
.footer-cols {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-col h4 { font-size: 14px; font-weight: 600; margin: 0 0 14px; color: var(--text); }
.footer-col a { display: block; font-size: 13px; color: var(--note); padding: 6px 0; transition: color 0.2s var(--spring); }
.footer-col a:hover { color: var(--text); }
.footer-legal {
  max-width: var(--maxw); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--note);
}

/* ===== 滚动揭示 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--spring), transform 0.8s var(--spring); }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式（移动端重新排版，非缩放） ===== */
@media (max-width: 640px) {
  .pnav-title { display: none; }
  .pnav-inner { gap: 18px; padding: 0 18px; }
  .pnav-links { gap: 18px; }
}
/* ===== 极窄屏兜底（iPhone SE / 小屏安卓，320px）=====
   320px 下 56px 字号 × 6 字 = 321px > 可用宽 272px，
   nowrap 会把「台」字硬切掉（overflow-x:clip 还不产生滚动条，更隐蔽）。
   这里收窄字号 + 解除 nowrap，宁可换行也绝不裁字。 */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(40px, 11vw, 96px); }
  .hero-title-line { white-space: normal; }
  .pnav-inner { gap: 12px; padding: 0 14px; }
  .pnav-links { gap: 12px; font-size: 12px; }
}
@media (max-width: 900px) {
  .gnav-menu { display: none; }
  .gnav-cta { display: none; }
  .gnav-burger { display: flex; }
  .gnav-mobile { display: flex; flex-direction: column; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: auto; gap: 48px; }
  .hero-copy { padding-left: 0; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 72px 24px; }
  .feature-light, .feature-dark { grid-template-columns: 1fr; }
  .feature-copy { order: 1; }
  .feature-media { order: 2; }
  .feature-dark .feature-media { order: 2; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span2 { grid-column: span 1; }
  .showcase-sticky { grid-template-columns: 1fr; }
  .showcase-visual { position: relative; top: 0; height: auto; margin-bottom: 24px; }
  .showcase-stage { max-width: 100%; }
  .step { min-height: auto; padding: 40px 0; }
  .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== 减少动态 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .wave-line { stroke-dashoffset: 0; }
  .wave-area, .wave-dot, .wave-grid line { opacity: 1; }
}
