/* ============================================================
   Akali TRON靓号 — 基础层
   令牌 / 字体 / 重置 / 通用元素 / 导航 / 首屏 / 走马灯
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- 令牌 ---------- */
:root {
  /* 黑白单色系统 */
  --paper: #F4F4F4;
  --surface: #FFFFFF;
  --surface-2: #EAEAEA;
  --ink: #0A0A0A;
  --ink-soft: #4A4A4A;
  --ink-faint: #8F8F8F;
  --line: #E0E0E0;
  --line-strong: #C8C8C8;
  --signal: #0A0A0A;
  --signal-deep: #000000;
  --signal-soft: #EFEFEF;
  --gold: #0A0A0A;
  --gold-soft: #E6E6E6;
  --silver: #767676;
  --silver-soft: #EDEDED;
  --terra: #A3A3A3;
  --terra-soft: #F3F3F3;
  --ok: #0A0A0A;

  /* 警示/强调色（提示条用） */
  --accent: #F97316;
  --danger: #EF4444;

  --font-display: "Space Grotesk", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, 0.16);
  --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, 0.26);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--signal); color: var(--paper); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.only-mobile { display: none; }

/* ---------- 通用元素 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow-line { width: 34px; height: 2px; background: var(--signal); display: inline-block; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.35s var(--ease-out);
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-signal { background: var(--signal); color: #FFFFFF; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45); }
.btn-signal:hover { background: var(--signal-deep); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.5); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface-2); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none; }
.btn-arrow { transition: transform 0.35s var(--ease-out); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 125%; }
.btn-ghost::after { background: linear-gradient(105deg, transparent, rgba(0, 0, 0, 0.16), transparent); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s var(--ease-out);
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-2); transform: translateY(-1px); }
.copy-btn.copied { border-color: var(--ok); color: var(--surface); background: var(--ink); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(244, 244, 244, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  animation: navSlideDown 0.7s var(--ease-out-expo) both;
}
.nav-inner {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--signal);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.5); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.logo-dot { color: var(--signal); }
.logo-text em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-faint); margin-left: 4px; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-contact { display: none; }
@media (min-width: 720px) { .nav-contact { display: inline-flex; } }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.nav-burger span { width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile {
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-2);
  transform-origin: top;
}
.nav-mobile.open { display: flex; animation: navDrop 0.4s var(--ease-out) both; }
.nav-mobile a { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a { opacity: 0; transform: translateY(-6px); }
.nav-mobile.open a { animation: fadeUp 0.45s var(--ease-out-expo) both; }
.nav-mobile.open a:nth-child(1) { animation-delay: 0.05s; }
.nav-mobile.open a:nth-child(2) { animation-delay: 0.1s; }
.nav-mobile.open a:nth-child(3) { animation-delay: 0.15s; }
.nav-mobile.open a:nth-child(4) { animation-delay: 0.2s; }
.nav-mobile.open a:nth-child(5) { animation-delay: 0.25s; }
.nav-mobile.open a:nth-child(6) { animation-delay: 0.3s; }
.nav-mobile .btn { margin-top: 10px; justify-content: center; }

/* ---------- 首屏 ---------- */
.hero {
  padding: calc(var(--nav-h) + 72px) 0 64px;
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(0, 0, 0, 0.07), transparent 60%),
    radial-gradient(900px 380px at -10% 20%, rgba(0, 0, 0, 0.05), transparent 55%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 460px at 30% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 460px at 30% 30%, #000 30%, transparent 78%);
  animation: gridDrift 16s linear infinite;
  pointer-events: none;
}
.hero-inner {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 22px;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.12s both;
}
.hero-title .accent { color: var(--signal); position: relative; white-space: nowrap; display: inline-block; }
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 12px;
  background: rgba(0, 0, 0, 0.09);
  z-index: -1;
  border-radius: 3px;
  transform-origin: left;
  animation: accentDraw 1.1s var(--ease-out-expo) 0.55s both;
}
.hero-sub {
  font-size: clamp(15.5px, 1.6vw, 17.5px); color: var(--ink-soft); max-width: 560px; margin-bottom: 34px;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.26s both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.9s var(--ease-out-expo) 0.4s both; }
.hero-side { display: flex; flex-direction: column; gap: 40px; animation: fadeUp 0.9s var(--ease-out-expo) 0.55s both; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.stat {
  padding: 24px 14px; text-align: center; border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface-2); }
.stat-num { display: block; font-family: var(--font-mono); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; color: var(--signal-deep); }
.stat-label { font-size: 12px; color: var(--ink-faint); margin-top: 6px; display: block; }
.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  animation: fadeUp 0.9s var(--ease-out-expo) 0.7s both;
  position: relative;
}
.hero-note::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(0, 0, 0, 0.06) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}
.hero-note-tag { font-size: 12px; background: var(--gold-soft); color: var(--gold); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.dot-sep { color: var(--line-strong); }

/* ---------- 走马灯 ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-item .mq-dot { color: var(--signal); font-size: 9px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 区块通用 ---------- */
.section { padding: 96px 0; width: 100%; }
.section-alt { background: var(--surface-2); }
.section-head { width: min(1200px, 100% - 48px); margin-inline: auto; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; color: var(--ink-soft); max-width: 620px; font-size: 15.5px; }

/* ---------- 动效 keyframes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes navSlideDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}
@keyframes accentDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}
@keyframes scanline {
  0% { top: -10%; }
  100% { top: 110%; }
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 提示气泡（所有页面共用） ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  box-shadow: var(--shadow-3);
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 进入动效（所有页面共用） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.card.reveal {
  transition:
    opacity 0.6s var(--ease-out) calc(var(--i, 0) * 55ms),
    transform 0.6s var(--ease-out) calc(var(--i, 0) * 55ms),
    box-shadow 0.45s var(--ease-out) 0s,
    border-color 0.45s var(--ease-out) 0s;
  will-change: opacity, transform;
}
.card.reveal.in-view { opacity: 1; transform: translateY(0); }
.card.reveal:hover {
  transition-delay: 0s, 0s, 0s, 0s;
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--ink);
}
.faq-item.reveal {
  transition:
    opacity 0.6s var(--ease-out) calc(var(--i, 0) * 70ms),
    transform 0.6s var(--ease-out) calc(var(--i, 0) * 70ms);
}
.faq-item.reveal.in-view { opacity: 1; transform: translateY(0); }
.section-head.reveal {
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

/* 注：动画为本页面核心视觉，不随系统减弱动效设置而关闭 */
