/* ============================================================
   PRISM X · 棱镜量化
   Design tokens
   ============================================================ */
:root {
  --bg: #06060a;
  --bg-soft: #0a0a12;
  --surface: #0d0d17;
  --surface-2: #12121f;
  --line: rgba(167, 139, 250, 0.14);
  --line-soft: rgba(167, 139, 250, 0.07);

  --violet-900: #4c1d95;
  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --violet-300: #c4b5fd;
  --cyan-300: #67e8f9;

  --text: #f2f0fa;
  --text-dim: #b3afc6;
  --text-faint: #8b87a0;

  --spectrum: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 30%, #a78bfa 55%, #c4b5fd 78%, #67e8f9 100%);

  --font-display: "Unbounded", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --maxw: 1180px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 加载探针：index/admin 用它检测本文件是否成功加载 */
.css-probe { height: 7px !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   Interactive background canvas
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
}
.bg-glow--a { top: -25vw; right: -20vw; background: #5b21b6; }
.bg-glow--b { bottom: -30vw; left: -22vw; background: #312e81; }

main, header, footer { position: relative; z-index: 1; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(6, 6, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.brand-name em {
  font-style: normal;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-cn {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.3em;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--spectrum);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-admin {
  font-size: 12px;
  color: var(--text-faint) !important;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
  transition: border-color 0.25s, color 0.25s;
}
.nav-admin:hover { border-color: var(--violet-500); color: var(--violet-300) !important; }
.nav-admin::after { display: none; }

.nav-toggle { display: none; background: none; border: none; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 28px 90px;
  overflow: hidden;
}
/* G17 hero canvases */
.hero-bg, .hero-wall {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-wall { z-index: 1; }
.hero-vig {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(6,6,10,0.5), transparent 72%);
}
.hero-center {
  position: relative;
  z-index: 5;
  text-align: center;
  width: min(92vw, 660px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--violet-300);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 28px;
  background: rgba(10,10,18,0.5);
  backdrop-filter: blur(4px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 10px var(--violet-400);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #f4f2fb;
}
.hero h1 .x {
  font-weight: 600;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-cn {
  margin-top: 18px;
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: 0.6em;
  margin-left: 0.6em;
  color: var(--text-dim);
  font-weight: 300;
}
.hero-desc {
  margin: 24px auto 0;
  max-width: 460px;
  color: #cdc8de;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
}
.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
  color: #fff;
  box-shadow: 0 0 0 rgba(139, 92, 246, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text-dim);
}
.btn-ghost:hover { border-color: var(--violet-500); color: var(--text); }

.hero-stats {
  margin-top: 50px;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
}
.hero-stat .num b {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.hero-stat .lab { font-size: 13px; color: var(--text-faint); letter-spacing: 0.1em; margin-top: 2px; }

/* ============================================================
   Hero visual：实盘净值仪表盘
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--spectrum);
  z-index: 60;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
}

.hero-visual { position: relative; display: flex; justify-content: center; perspective: 1100px; }
.dash-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.dash-card {
  position: relative;
  background: linear-gradient(165deg, rgba(24, 23, 41, 0.92), rgba(13, 13, 23, 0.86));
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 20px;
  padding: 26px 28px 22px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}
.dash-spectrum-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--spectrum);
  opacity: 0.9;
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dash-id { display: flex; align-items: center; gap: 12px; }
.dash-mark { width: 34px; height: 34px; flex: none; }
.dash-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--violet-300);
}
.dash-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.07);
  padding: 5px 13px;
  border-radius: 100px;
}
.dash-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 9px #4ade80;
  animation: pulse 1.8s infinite;
}
.dash-live.is-paused { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.dash-live.is-paused i { background: #fbbf24; box-shadow: 0 0 9px #fbbf24; }

.dash-metric { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.dash-metric-num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(100deg, #c4b5fd, #8b5cf6 55%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.35));
}
.dash-metric-label { font-size: 13px; color: var(--text-faint); letter-spacing: 0.08em; }

.dash-chart-wrap { position: relative; height: 190px; margin: 6px -6px 14px; }
#equityChart { width: 100%; height: 100%; display: block; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  gap: 10px;
}
.dash-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.dash-stat b.is-dd { color: #f87171; }
.dash-stat span { font-size: 12px; color: var(--text-faint); letter-spacing: 0.05em; }
.dash-foot {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* 浮动信任标签 */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: rgba(18, 18, 31, 0.85);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: chipFloat 5s ease-in-out infinite;
  white-space: nowrap;
  z-index: 2;
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 8px var(--violet-400);
}
.chip-a { top: -16px; left: -22px; animation-delay: 0s; }
.chip-b { bottom: 26%; right: -30px; animation-delay: -1.7s; }
.chip-c { bottom: -14px; left: 10%; animation-delay: -3.2s; }
.chip-c .chip-dot { background: var(--cyan-300); box-shadow: 0 0 8px var(--cyan-300); }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ============================================================
   为何算法交易（对比区）
   ============================================================ */
.section-tight { padding-top: 40px; }
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: stretch;
}
.vs-col {
  border-radius: var(--radius);
  padding: 34px 36px;
  border: 1px solid var(--line-soft);
}
.vs-human {
  background: linear-gradient(180deg, rgba(30, 18, 24, 0.55), rgba(13, 13, 23, 0.4));
}
.vs-algo {
  background: linear-gradient(180deg, rgba(35, 28, 64, 0.6), rgba(17, 14, 33, 0.5));
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.12), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.vs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.vs-head h3 { font-size: 18px; font-weight: 600; }
.vs-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: none;
}
.vs-human .vs-icon { color: #f87171; border: 1px solid rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }
.vs-human .vs-head h3 { color: #d8c9cf; }
.vs-algo .vs-icon { color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.08); }
.vs-col ul { list-style: none; }
.vs-col li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
}
.vs-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 21px;
  width: 8px; height: 1.5px;
}
.vs-human li::before { background: rgba(248, 113, 113, 0.6); }
.vs-human li { color: #a39aa6; }
.vs-algo li::before { background: var(--violet-400); }
.vs-algo li { color: #cfc9e4; }
.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-divider span {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}

/* ============================================================
   CTA — 双栏布局
   ============================================================ */
.cta-section { padding-bottom: 130px; }
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 24px;
  padding: 64px 56px;
  background: linear-gradient(135deg, rgba(27, 22, 51, 0.55) 0%, rgba(13, 13, 23, 0.6) 100%);
  overflow: hidden;
  align-items: center;
}
.cta-glow {
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.cta-left { position: relative; z-index: 1; }
.cta-left .section-tag { margin-bottom: 20px; }
.cta-left h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.cta-left > p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-lg { padding: 15px 36px; font-size: 15px; }
.cta-trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--violet-300);
  opacity: 0.85;
}

.cta-right { position: relative; z-index: 1; }
.cta-right .contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 0;
}
.cta-right .contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 20px 18px;
  background: rgba(139, 92, 246, 0.04);
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
}
.cta-right .contact-card:hover {
  border-color: var(--violet-500);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.cc-icon {
  width: 22px; height: 22px;
  color: var(--violet-400);
  flex: none;
}
.cc-icon svg { width: 100%; height: 100%; display: block; }
.cta-right .contact-card b {
  display: block;
  color: var(--violet-300);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  margin-top: 2px;
}

@media (max-width: 960px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 36px; }
  .cta-left { text-align: center; }
  .cta-left > p { max-width: 100%; }
  .cta-left .section-tag { justify-content: center; }
  .cta-actions { justify-content: center; }
  .cta-trust { justify-content: center; }
}

@media (max-width: 480px) {
  .cta-inner { padding: 36px 18px; border-radius: 18px; gap: 32px; }
  .cta-left h2 { font-size: clamp(22px, 6vw, 28px); }
  .cta-left > p { font-size: 14px; margin-bottom: 24px; }
  .cta-right .contact-methods { grid-template-columns: 1fr; gap: 8px; }
  .cta-right .contact-card { flex-direction: row; align-items: center; padding: 14px 16px; border-radius: 12px; font-size: 12.5px; }
  .cta-right .contact-card b { display: inline; margin-top: 0; margin-left: 4px; }
  .cc-icon { width: 18px; height: 18px; }
  .btn-lg { padding: 13px 28px; font-size: 14px; }
  #how { padding-top: 36px; padding-bottom: 20px; }
  #accounts { padding-top: 0; }
  #contact { padding-top: 16px; }
}

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(var(--violet-400), transparent);
  animation: drip 2s infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: 110px 28px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { margin-bottom: 64px; max-width: 640px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--violet-400);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-tag::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--spectrum);
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.section-head h2 .en {
  font-family: var(--font-display);
  display: block;
  font-size: 0.5em;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  margin-top: 8px;
  font-weight: 400;
}
.section-head p { margin-top: 18px; color: var(--text-dim); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Philosophy
   ============================================================ */
.phil-screens { display: flex; flex-direction: column; }

/* 每个理念为一段（内容驱动高度，段间留白克制） */
.phil-screen {
  display: flex;
  align-items: center;
  position: relative;
  padding: 50px 0;
  overflow: hidden;
}
/* 不沿用通用 .reveal 的整块淡入，改为内部元素分层浮现 */
.phil-screen.reveal { opacity: 1; transform: none; }

/* 收紧核心理念区块上下边界（与相邻区块的大留白） */
#why { padding-bottom: 48px; }
#philosophy { padding-top: 56px; padding-bottom: 30px; }
#how { padding-top: 56px; padding-bottom: 32px; }
#accounts { padding-top: 0; }
#contact { padding-top: 24px; }

/* 每屏环境流光（按光谱色），呼应棱镜分光 */
.phil-screen::before {
  content: "";
  position: absolute;
  top: 50%; right: 2%;
  width: 640px; height: 640px;
  transform: translateY(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #8b5cf6) 18%, transparent), transparent 68%);
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.phil-screen-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4px;
}

/* 巨型描边字母（SVG 文本 + stroke-linejoin:round，内缘圆滑；滚动到该屏时填色） */
.phil-letter {
  display: block;
  width: clamp(160px, 24vw, 320px);
  height: auto;
  overflow: visible;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent, #8b5cf6) 26%, transparent));
}
.phil-letter-text {
  font-family: "Poppins", var(--font-display);
  font-weight: 700;
  font-size: 220px;
  fill: transparent;
  stroke: var(--accent, #8b5cf6);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke;
  transition: fill 1.2s ease 0.15s;
}
.phil-screen.visible .phil-letter-text {
  fill: color-mix(in srgb, var(--accent, #8b5cf6) 92%, transparent);
}

/* 波长 / 编号 眉标 */
.phil-screen .phil-wave {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent, var(--violet-400));
  margin-bottom: 18px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s ease 0.1s, transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.1s;
}
.phil-screen .phil-wave::before {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--accent, #8b5cf6), transparent);
}

/* 渐变标题 + 中文 */
.phil-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.12;
  background: linear-gradient(45deg, #ffffff, var(--accent, #8b5cf6));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease 0.22s, transform 1s cubic-bezier(0.25,0.46,0.45,0.94) 0.22s;
}
.phil-title .cn {
  -webkit-text-fill-color: var(--accent, var(--violet-400));
  color: var(--accent, var(--violet-400));
  font-family: var(--font-body);
  font-size: 0.4em;
  font-weight: 400;
  letter-spacing: 0.4em;
  margin-left: 0.55em;
}

/* 大段描述 + 左侧光谱引导线 */
.phil-lead {
  position: relative;
  padding-left: 22px;
  max-width: 690px;
  color: #c9c4dd;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease 0.34s, transform 1s cubic-bezier(0.25,0.46,0.45,0.94) 0.34s;
}
.phil-lead::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent, #8b5cf6), transparent);
}

.phil-screen.visible .phil-wave,
.phil-screen.visible .phil-title,
.phil-screen.visible .phil-lead { opacity: 1; transform: none; }

/* 三张玻璃卡片（依次浮起） */
.phil-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.phil-point {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent, #8b5cf6) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #8b5cf6) 26%, transparent);
  border-radius: 18px;
  padding: 26px 24px;
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.35s, box-shadow 0.35s;
}
.phil-point::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.phil-point:hover {
  border-color: var(--accent, #8b5cf6);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent, #8b5cf6) 22%, transparent);
  transform: translateY(-4px);
}
.phil-point:hover::before { transform: scaleX(1); }
.phil-point h4 {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; margin-bottom: 9px; color: var(--text);
}
.phil-point h4::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, #8b5cf6);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, #8b5cf6) 80%, transparent);
}
.phil-point span { font-size: 14px; color: #9c98b2; line-height: 1.75; display: block; }

.phil-screen.visible .phil-point { opacity: 1; transform: none; }
.phil-screen.visible .phil-point:nth-child(1) { transition-delay: 0.46s; }
.phil-screen.visible .phil-point:nth-child(2) { transition-delay: 0.6s; }
.phil-screen.visible .phil-point:nth-child(3) { transition-delay: 0.74s; }

/* per-screen spectral hue (prism dispersion) */
.phil-screen[data-hue="0"] { --accent: #7c3aed; }
.phil-screen[data-hue="1"] { --accent: #8b5cf6; }
.phil-screen[data-hue="2"] { --accent: #a78bfa; }
.phil-screen[data-hue="3"] { --accent: #c4b5fd; }
.phil-screen[data-hue="4"] { --accent: #67e8f9; }

/* 减少动态偏好：内容直接可见、字母直接填色 */
@media (prefers-reduced-motion: reduce) {
  .phil-screen .phil-wave,
  .phil-screen .phil-title,
  .phil-screen .phil-lead,
  .phil-screen .phil-point { opacity: 1; transform: none; }
  .phil-letter-text { fill: color-mix(in srgb, var(--accent, #8b5cf6) 92%, transparent); }
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--violet-500) 12%, var(--violet-500) 88%, transparent);
  opacity: 0.35;
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: flex-start;
  margin-bottom: 56px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-year {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 600;
  color: var(--violet-400);
  text-align: right;
  padding-right: 0;
  line-height: 1.1;
}
.tl-item:nth-child(even) .tl-year { grid-column: 3; text-align: left; }
.tl-item:nth-child(even) .tl-content { grid-column: 1; grid-row: 1; text-align: right; }
.tl-item:nth-child(even) .tl-content .tl-card { border-left: none; border-right: 2px solid var(--violet-500); }
.tl-node {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-top: 12px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--violet-400);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.6);
  position: relative;
  z-index: 1;
}
.tl-content { grid-column: 1; grid-row: 1; }
.tl-item:nth-child(odd) .tl-content { grid-column: 3; }
.tl-item:nth-child(odd) .tl-year { grid-column: 1; }
.tl-card {
  background: rgba(13, 13, 23, 0.6);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--violet-500);
  border-radius: 10px;
  padding: 24px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.tl-card:hover { border-color: var(--line); transform: translateY(-2px); }
.tl-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--violet-300); }
.tl-card p { font-size: 14.5px; color: #aba7bf; line-height: 1.9; }

/* ============================================================
   Accounts
   ============================================================ */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.acct-card {
  background: linear-gradient(180deg, rgba(18, 18, 31, 0.7), rgba(13, 13, 23, 0.5));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.acct-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.acct-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.acct-name { font-size: 18px; font-weight: 600; }
.acct-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}
.acct-badge.running { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.07); }
.acct-badge.paused { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.acct-badge.closed { color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); background: rgba(148, 163, 184, 0.06); }
.acct-strategy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet-400);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.acct-desc { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 22px; min-height: 50px; }
.acct-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.acct-stat .v { font-family: var(--font-mono); font-size: 19px; font-weight: 600; }
.acct-stat .v.pos { color: #4ade80; }
.acct-stat .v.neg { color: #f87171; }
.acct-stat .k { font-size: 12px; color: var(--text-faint); letter-spacing: 0.06em; margin-top: 2px; }
.acct-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.acct-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--violet-300);
  letter-spacing: 0.04em;
}
.acct-link:hover { text-decoration: underline; }
.accounts-empty {
  text-align: center;
  color: var(--text-faint);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 60px 20px;
  grid-column: 1 / -1;
}
.accounts-note {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 28px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-inner p { font-size: 13px; color: var(--text-faint); }
.footer-disclaimer {
  max-width: var(--maxw);
  margin: 22px auto 0;
  font-size: 12px;
  color: var(--text-faint);
  opacity: 0.7;
  line-height: 1.8;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-center { width: min(94vw, 560px); }
  .vs-grid { grid-template-columns: 1fr; gap: 18px; }
  .vs-divider { padding: 4px 0; }
  .phil-screen { padding: 32px 0; }
  .phil-screen::before { width: 380px; height: 380px; right: -12%; opacity: 0.32; }
  .phil-letter { width: clamp(130px, 42vw, 210px); margin-bottom: 10px; }
  .phil-points { grid-template-columns: 1fr; gap: 14px; }
  .phil-screen.visible .phil-point { transition-delay: 0.3s; }
  .phil-point { padding: 22px 20px; }
  .phil-point h4 { font-size: 15px; }
  .phil-point span { font-size: 13px; }

  .timeline::before { left: 7px; }
  .tl-item,
  .tl-item:nth-child(even) { display: block; padding-left: 36px; position: relative; }
  .tl-node { position: absolute; left: 1px; top: 14px; margin: 0; }
  .tl-year,
  .tl-item:nth-child(even) .tl-year { text-align: left; font-size: 28px; margin-bottom: 10px; }
  .tl-item:nth-child(even) .tl-content { text-align: left; }
  .tl-item:nth-child(even) .tl-content .tl-card { border-right: none; border-left: 2px solid var(--violet-500); }
  .tl-card { padding: 20px 22px; }
  .tl-card h3 { font-size: 16px; }
  .tl-card p { font-size: 13.5px; }
  .tl-item { margin-bottom: 40px; }

  .accounts-grid { grid-template-columns: 1fr; gap: 18px; }
  .acct-card { padding: 24px; }
  .acct-name { font-size: 17px; }
  .acct-stats { gap: 12px 16px; }
  .acct-stat .v { font-size: 17px; }

  .section-head { margin-bottom: 48px; }
  .section-head h2 { font-size: clamp(26px, 5vw, 38px); }
  .section { padding: 80px 22px; }
  #how { padding-top: 48px; padding-bottom: 28px; }
  #accounts { padding-top: 0; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(6, 6, 10, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 28px;
    gap: 22px;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .brand-cn { display: none; }
  .brand-name { font-size: 14px; }

  .section { padding: 64px 18px; }
  .hero { padding: 100px 16px 72px; min-height: auto; }
  .hero-center { width: 100%; padding: 0 4px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.16em; }
  .hero h1 { font-size: clamp(40px, 14vw, 60px); }
  .hero-cn { font-size: 14px; letter-spacing: 0.4em; margin-left: 0.4em; }
  .hero-desc { font-size: 14px; max-width: 92%; line-height: 1.75; padding: 0 8px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 280px; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; font-size: 14px; padding: 13px 24px; }
  .hero-stats { gap: 20px; margin-top: 36px; }
  .hero-stat .num { font-size: 24px; }
  .hero-stat .lab { font-size: 11px; }
  .scroll-hint { bottom: 18px; font-size: 10px; }
  .hero-vig { background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(6,6,10,0.72), transparent 78%); }

  .phil-title { font-size: clamp(28px, 7vw, 42px); }
  .phil-lead { font-size: 14.5px; max-width: 100%; padding-left: 16px; margin-bottom: 32px; }
  .phil-point { padding: 18px 16px; border-radius: 14px; }
  .phil-point h4 { font-size: 14px; }
  .phil-point span { font-size: 12.5px; }

  .tl-item { margin-bottom: 34px; }
  .tl-card { padding: 18px 18px; }
  .tl-card h3 { font-size: 15px; }
  .tl-card p { font-size: 13px; }

  .acct-card { padding: 20px 18px; border-radius: 12px; }
  .acct-stats { grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
  .acct-stat .v { font-size: 16px; }
  .acct-meta { flex-direction: column; gap: 4px; }
  #how { padding-top: 40px; padding-bottom: 24px; }
  #accounts { padding-top: 0; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; height: 60px; }
  .nav-links { top: 60px; padding: 22px 18px; gap: 18px; }
  .brand-mark { width: 22px; height: 22px; }
  .brand-name { font-size: 13px; }

  .section { padding: 52px 14px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(24px, 7vw, 32px); line-height: 1.25; }
  .section-head h2 .en { font-size: 0.55em; margin-top: 6px; }
  .section-head p { font-size: 14px; }
  .section-tag { font-size: 11px; }

  .hero { padding: 88px 12px 60px; }
  .hero h1 { font-size: clamp(34px, 12vw, 52px); }
  .hero-cn { font-size: 13px; letter-spacing: 0.3em; }
  .hero-desc { font-size: 13px; line-height: 1.7; }
  .hero-actions { max-width: 260px; }
  .hero-actions .btn { font-size: 13px; padding: 11px 20px; }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 22px; }
  .hero-stat .lab { font-size: 10px; }

  .vs-grid { gap: 14px; }
  .vs-col { padding: 22px 16px; border-radius: 12px; }
  .vs-col ul li { font-size: 13px; padding: 8px 0 8px 22px; }
  .vs-col h3 { font-size: 16px; }

  .phil-screen { padding: 24px 0; }
  .phil-letter { width: clamp(100px, 34vw, 160px); }
  .phil-title { font-size: clamp(24px, 6.5vw, 34px); margin-bottom: 12px; }
  .phil-title .cn { font-size: 0.45em; letter-spacing: 0.3em; }
  .phil-lead { font-size: 13.5px; padding-left: 14px; margin-bottom: 26px; }
  .phil-wave { font-size: 11px; margin-bottom: 12px; }
  .phil-points { gap: 10px; }
  .phil-point { padding: 16px 14px; border-radius: 12px; }
  .phil-point h4 { font-size: 13.5px; }
  .phil-point span { font-size: 12px; }

  .tl-item { margin-bottom: 28px; padding-left: 30px; }
  .tl-year { font-size: 24px; }
  .tl-card { padding: 16px 14px; border-radius: 8px; }
  .tl-card h3 { font-size: 14px; }
  .tl-card p { font-size: 12.5px; line-height: 1.75; }

  .acct-card { padding: 18px 14px; }
  .acct-name { font-size: 16px; }
  .acct-badge { font-size: 10px; padding: 3px 10px; }
  .acct-stats { gap: 8px 12px; padding-top: 16px; }
  .acct-stat .v { font-size: 15px; }
  .acct-stat .k { font-size: 10px; }

  footer { padding: 36px 16px; }
  .footer-inner { gap: 12px; }
  .footer-disclaimer { font-size: 11px; line-height: 1.7; }
}

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

/* visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}
