/* ──────────────────────────────────────────────
   TradeBuddy 落地页
   深色科技风：网格底 + 玻璃面板 + 青绿主色
   零外部依赖（无 CDN、无字体请求），纯静态托管即可
   ────────────────────────────────────────────── */

:root {
  --bg: #05070f;
  --bg-2: #080c18;
  --panel: rgba(255, 255, 255, 0.038);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(140, 170, 255, 0.13);
  --line-bright: rgba(140, 200, 255, 0.3);
  --ink: #eaf1ff;
  --ink-dim: #b9c4de;
  --muted: #8492b4;
  --brand: #4be3c6;
  --brand-2: #5b8cff;
  --brand-3: #a88bff;
  --warn: #ffb15b;
  --up: #ff6b6b;      /* 涨用红（中式习惯） */
  --down: #4be3c6;    /* 跌用绿 */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(120, 170, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: #cfe4ff;
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 120;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  box-shadow: 0 0 14px rgba(75, 227, 198, 0.55);
  transition: width 0.1s linear;
}

/* ───────── 导航 ───────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(5, 7, 15, 0.86);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 3px 12px rgba(47, 107, 255, 0.35));
}
.brand-word { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--brand);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* ───────── 语言切换 ───────── */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  color: var(--ink);
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.06);
}
.lang-toggle svg { flex: none; opacity: 0.85; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  min-width: 152px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 28, 0.96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  display: none;
}
.lang-menu.open { display: block; }
.lang-opt {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-opt:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.lang-opt[aria-selected="true"] { color: var(--brand); }
.lang-opt::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}
.lang-opt[aria-selected="true"]::after { opacity: 1; }


/* ───────── 按钮 ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid var(--line-bright);
  color: var(--ink);
  background: transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #6cf7dd, #33d9bf 48%, #3fa9e8);
  color: #04201c;
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(75, 227, 198, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 16px 40px -12px rgba(75, 227, 198, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-ghost { background: var(--panel); backdrop-filter: blur(8px); color: var(--ink-dim); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; }

/* ───────── HERO ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 132px clamp(18px, 4vw, 44px) 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: -10%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.075) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 34%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 68% 58% at 50% 34%, #000 12%, transparent 72%);
  animation: grid-drift 26s linear infinite;
}
@keyframes grid-drift {
  to { transform: translate3d(62px, 62px, 0); }
}

.hero-orb { position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.orb-a {
  width: 720px; height: 720px;
  top: -240px; left: -160px;
  background: radial-gradient(circle, rgba(59, 108, 255, 0.36), transparent 66%);
}
.orb-b {
  width: 640px; height: 640px;
  right: -180px; bottom: -220px;
  background: radial-gradient(circle, rgba(75, 227, 198, 0.22), transparent 68%);
}

.cursor-glow {
  position: absolute;
  width: 520px; height: 520px;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 160, 255, 0.16), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
  will-change: transform;
}
.hero:hover .cursor-glow { opacity: 1; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: rgba(75, 227, 198, 0.08);
  border: 1px solid rgba(75, 227, 198, 0.24);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(75, 227, 198, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(75, 227, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 227, 198, 0); }
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 26px;
}
.grad {
  background: linear-gradient(100deg, #9bffec 4%, #4be3c6 32%, #6fa8ff 66%, #b79bff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: grad-shift 9s ease-in-out infinite;
}
@keyframes grad-shift {
  50% { background-position: 100% 0; }
}

.lede {
  max-width: 34em;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.15vw, 1.09rem);
  line-height: 1.78;
  margin-bottom: 34px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }

.hero-meta {
  display: flex;
  gap: clamp(20px, 3.4vw, 46px);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-meta dt { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.hero-meta dd { margin: 0; font-size: 1.12rem; font-weight: 650; color: var(--ink); }

/* ───────── 3D 立方体 ───────── */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  min-height: 400px;
  --cube: clamp(158px, 15vw, 212px);
}

.cube-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.cube-aura {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 227, 198, 0.2), rgba(59, 108, 255, 0.1) 55%, transparent 72%);
  filter: blur(28px);
  animation: aura-breathe 6s ease-in-out infinite;
}
@keyframes aura-breathe {
  50% { transform: scale(1.1); opacity: 0.75; }
}

.cube {
  position: relative;
  width: var(--cube, 200px);
  height: var(--cube, 200px);
  transform-style: preserve-3d;
  /* 左右摆动而不是整圈旋转：整圈旋转会周期性转到正面，
     那时左右两个侧面与视线平行、完全消失，盒子看着像一堵墙。 */
  animation: cube-sway 15s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes cube-sway {
  0%   { transform: rotateX(-17deg) rotateY(-34deg); }
  50%  { transform: rotateX(-24deg) rotateY(34deg); }
  100% { transform: rotateX(-17deg) rotateY(-34deg); }
}

.face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(130, 200, 255, 0.26);
  background: linear-gradient(158deg, rgba(70, 130, 255, 0.2), rgba(9, 18, 46, 0.66));
  box-shadow: inset 0 0 40px rgba(90, 150, 255, 0.12);
}
.face-top {
  background: linear-gradient(158deg, rgba(108, 247, 221, 0.5), rgba(24, 130, 150, 0.34));
  border-color: rgba(150, 255, 235, 0.5);
  box-shadow: inset 0 0 50px rgba(75, 227, 198, 0.32), 0 0 40px rgba(75, 227, 198, 0.18);
}
.face-bottom { opacity: 0.35; }

/* 立方体内部的核心光球：透过半透明玻璃面散出来 */
.core {
  position: absolute;
  left: 50%; top: 50%;
  width: 44%; height: 44%;
  transform: translate(-50%, -50%) translateZ(0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 255, 235, 0.9), rgba(75, 227, 198, 0.45) 42%, transparent 70%);
  filter: blur(10px);
  animation: core-breathe 4.5s ease-in-out infinite;
}
@keyframes core-breathe {
  50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.18); }
}

.face-top    { transform: rotateX(90deg)  translateZ(calc(var(--cube, 200px) / 2)); }
.face-bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube, 200px) / 2)); }
.face-front  { transform: translateZ(calc(var(--cube, 200px) / 2)); }
.face-back   { transform: rotateY(180deg) translateZ(calc(var(--cube, 200px) / 2)); }
.face-left   { transform: rotateY(-90deg) translateZ(calc(var(--cube, 200px) / 2)); }
.face-right  { transform: rotateY(90deg)  translateZ(calc(var(--cube, 200px) / 2)); }

.scanline {
  position: absolute;
  left: 50%;
  width: 300px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(108, 247, 221, 0.85), transparent);
  filter: blur(0.5px);
  animation: scan 4.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0%, 100% { top: 26%; opacity: 0; }
  15% { opacity: 1; }
  50% { top: 74%; opacity: 0.9; }
  85% { opacity: 0; }
}

.chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: rgba(10, 16, 34, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.9);
  font-size: 0.78rem;
  animation: float 7s ease-in-out infinite;
}
.chip-k { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.05em; }
.chip-v { color: var(--ink); font-weight: 600; }
.chip-1 { top: 8%; left: 2%; }
.chip-2 { top: 44%; right: -2%; animation-delay: 1.6s; }
.chip-3 { bottom: 12%; left: 8%; animation-delay: 3.1s; }
@keyframes float {
  50% { transform: translateY(-9px); }
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* ───────── 通用区块 ───────── */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) clamp(18px, 4vw, 44px);
}
.section-alt {
  max-width: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(60, 110, 255, 0.09), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
  opacity: 0.9;
}
.sec-head h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.sec-sub { color: var(--muted); font-size: 1rem; }

/* ───────── 能力卡片 ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 0%, rgba(75, 227, 198, 0.16), transparent 58%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  top: -1px; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 240, 255, 0.75), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-bright);
  box-shadow: 0 24px 60px -28px rgba(60, 120, 255, 0.55);
}
.card:hover::before, .card:hover::after { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  margin-bottom: 18px;
  color: var(--brand);
  background: rgba(75, 227, 198, 0.09);
  border: 1px solid rgba(75, 227, 198, 0.2);
}
.card h3 { font-size: 1.09rem; font-weight: 650; margin-bottom: 9px; }
.card p { color: var(--ink-dim); font-size: 0.93rem; line-height: 1.7; }
.card-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ───────── 工作流 ───────── */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-step { position: relative; padding: 30px 24px 30px 0; }
.flow-step::before {
  content: "";
  position: absolute;
  top: 53px; left: 58px; right: 8px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-bright), var(--line));
}
/* 最后一段线一路延伸到终点硬币，并从青色渐变到金色，让硬币像是「接住」这条时间轴 */
.flow-step:last-child::before {
  right: 0;
  background: linear-gradient(90deg, var(--line-bright), rgba(255, 203, 106, 0.55));
}
.flow-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: #0b1226;
  border: 1px solid rgba(75, 227, 198, 0.34);
  box-shadow: 0 0 26px -8px rgba(75, 227, 198, 0.6);
  margin-bottom: 20px;
}
.flow-step h4 { font-size: 1.02rem; font-weight: 650; margin-bottom: 8px; }
.flow-step p { color: var(--muted); font-size: 0.9rem; max-width: 24em; }

/* 时间轴终点：一枚美元硬币，接在 04 那条虚线的末端。
   纵向对齐第 53px（= 步骤内边距 30 + 圆点半径 23），和四个数字圆点同一条轴线。 */
.flow-wrap { position: relative; }
.flow-end {
  position: absolute;
  right: 0;
  top: 53px;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
  color: #FFD177;
  background: radial-gradient(circle at 34% 26%, rgba(255, 216, 132, 0.26), rgba(11, 18, 38, 0.94) 64%);
  border: 1px solid rgba(255, 203, 106, 0.52);
  box-shadow:
    0 0 30px -6px rgba(255, 194, 80, 0.5),
    inset 0 0 18px -7px rgba(255, 214, 140, 0.65);
  animation: coin-glow 3.6s ease-in-out infinite;
}
@keyframes coin-glow {
  50% {
    box-shadow:
      0 0 44px -4px rgba(255, 194, 80, 0.62),
      inset 0 0 22px -5px rgba(255, 214, 140, 0.8);
  }
}

/* ───────── 界面预览 ───────── */
.mock-wrap { position: relative; }
.mock {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #070b16;
  box-shadow:
    0 50px 120px -50px rgba(50, 100, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
}
.tl { width: 10px; height: 10px; border-radius: 50%; opacity: 0.85; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.mock-title { margin-left: 12px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em; }

.mock-body { display: grid; grid-template-columns: 186px minmax(0, 1fr); min-height: 380px; }
.mock-side {
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.014);
}
.ms-item { padding: 7px 11px; border-radius: 8px; font-size: 0.82rem; color: var(--muted); }
.ms-item.active {
  color: var(--ink);
  background: rgba(75, 227, 198, 0.1);
  border: 1px solid rgba(75, 227, 198, 0.22);
}
.ms-item.sub { font-size: 0.78rem; padding-left: 18px; }
.ms-sep { height: 1px; background: var(--line); margin: 10px 6px; }
.ms-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(132, 146, 180, 0.65);
  padding: 4px 11px;
}

.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--line);
}
.sc-k { font-size: 0.73rem; color: var(--muted); }
.sc-v { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.sc-d { font-size: 0.74rem; font-weight: 600; }
.sc-d.up { color: var(--up); }
.sc-d.down { color: var(--down); }

.mm-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 118px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}
.bar {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, rgba(59, 108, 255, 0.28), rgba(91, 140, 255, 0.6));
  transform-origin: bottom;
  animation: bar-in 1s var(--ease) both;
}
.bar.hi {
  background: linear-gradient(to top, rgba(75, 227, 198, 0.35), rgba(108, 247, 221, 0.85));
  box-shadow: 0 0 26px -6px rgba(75, 227, 198, 0.7);
}
@keyframes bar-in { from { transform: scaleY(0); } }

.mm-list { display: flex; flex-direction: column; gap: 7px; }
.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.8rem;
}
.sku { font-family: ui-monospace, "SF Mono", monospace; color: var(--ink-dim); font-size: 0.76rem; }
.pill { font-size: 0.68rem; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; }
.pill.ok { color: var(--brand); background: rgba(75, 227, 198, 0.1); border-color: rgba(75, 227, 198, 0.24); }
.pill.warn { color: var(--warn); background: rgba(255, 177, 91, 0.1); border-color: rgba(255, 177, 91, 0.26); }
.num { font-weight: 650; color: var(--ink); }

.mock-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.06);
  transform: rotate(-16deg);
  user-select: none;
}
.mock-note { margin-top: 16px; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* ───────── 下载 ───────── */
.section-dl { overflow: hidden; }
.dl-glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(75, 227, 198, 0.16), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
/* 只给「内容」抬层级，不能写成 `.section-dl > *`：
   那会把 .dl-glow 的 position:absolute 覆盖成 relative，光晕回落到普通流里
   白占 520px 高，标题被推到首屏视口之外 —— 表现就是锚点跳过来后一大片空白。 */
.section-dl > :not(.dl-glow) { position: relative; z-index: 1; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.dl-card:hover {
  transform: translateY(-5px);
  border-color: rgba(75, 227, 198, 0.5);
  box-shadow: 0 30px 70px -34px rgba(75, 227, 198, 0.6);
}
.dl-os {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
  font-weight: 650;
  color: var(--ink);
}
.dl-badge {
  display: inline-block;
  margin-left: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(75, 227, 198, 0.14);
  border: 1px solid rgba(75, 227, 198, 0.4);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
}
.dl-name { font-size: 0.86rem; color: var(--ink-dim); }
.dl-meta { font-size: 0.78rem; color: var(--muted); display: flex; gap: 8px; }
.dl-ver { color: var(--brand); font-weight: 600; }
.dl-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--brand);
}
.dl-go svg { transition: transform 0.25s var(--ease); }
.dl-card:hover .dl-go svg { transform: translateY(2px); }

.dl-sub {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.dl-date { letter-spacing: 0.02em; }
.dl-count-wrap { display: inline-flex; gap: 4px; align-items: baseline; }
.dl-count {
  color: var(--ink-dim);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dl-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.note h5 { font-size: 0.9rem; font-weight: 650; margin-bottom: 7px; }
.note p { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }

/* ───────── 页脚 ───────── */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px clamp(18px, 4vw, 44px) 26px;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 34px;
}
.foot-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
.foot-cols { display: flex; gap: clamp(32px, 6vw, 80px); }
.foot-cols > div { display: flex; flex-direction: column; gap: 9px; font-size: 0.85rem; color: var(--muted); }
.foot-cols h6 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(132, 146, 180, 0.7);
  font-weight: 600;
  margin-bottom: 3px;
}
.foot-cols a { transition: color 0.2s; }
.foot-cols a:hover { color: var(--brand); }
.foot-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(132, 146, 180, 0.75);
}

/* ───────── 进场动画 ───────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ───────── 响应式 ───────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 320px; max-width: 380px; margin: 0 auto 12px; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .flow-step { padding: 26px 0; }
  .flow-step::before { display: none; }
  /* 连线在小屏就没了，终点硬币跟着收起来，免得孤零零飘在文案上 */
  .flow-end { display: none; }
}

@media (max-width: 560px) {
  .nav { gap: 12px; }
  /* 窄屏隐藏导航里的「开始使用」，页内首屏已有同名按钮，避免横向溢出 */
  .nav > .btn-sm { display: none; }
  .mm-row { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 18px; }
  .chip-2 { right: 0; }
  .dl-card, .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
