:root {
  color-scheme: dark;
  --bg: #02050a;
  --panel: rgba(5, 13, 24, .76);
  --panel2: rgba(8, 22, 38, .88);
  --line: rgba(125, 211, 252, .2);
  --text: #eef8ff;
  --muted: #8ca8b8;
  --cyan: #22d3ee;
  --green: #65f2a8;
  --gold: #facc15;
  --red: #fb7185;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, .2), transparent 30%),
    radial-gradient(circle at 80% 14%, rgba(101, 242, 168, .12), transparent 28%),
    linear-gradient(180deg, #02050a, #050b13 48%, #02050a);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
#particle-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.market-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(125, 211, 252, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(125, 211, 252, .14);
  background: rgba(2, 5, 10, .72);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #001018;
  box-shadow: 0 0 36px rgba(34, 211, 238, .45);
}
nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 800; }
nav a:hover { color: var(--cyan); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr);
  gap: 38px;
  align-items: center;
  padding: 86px clamp(18px, 5vw, 72px) 62px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.03;
  letter-spacing: 0;
}
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.16; margin-bottom: 14px; }
h3 { font-size: 23px; margin: 12px 0; }
.hero-text {
  max-width: 740px;
  color: #bad0dd;
  font-size: 18px;
  line-height: 1.9;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.hero-stats div,
.terminal-card,
.principle-grid article,
.market-grid article,
.basis-board,
.system-tile {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(8, 22, 38, .86), rgba(3, 8, 16, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 80px rgba(0,0,0,.35);
}
.hero-stats div { border-radius: 12px; padding: 16px; }
.hero-stats span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.hero-stats strong { color: var(--gold); font-size: 20px; }
.terminal-card {
  min-height: 500px;
  border-radius: 20px;
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.terminal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 35%, rgba(34,211,238,.09) 45%, transparent 55% 100%);
  animation: scan 5.5s linear infinite;
}
.terminal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); }
.terminal-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.terminal-head span:nth-child(2) { background: var(--gold); }
.terminal-head span:nth-child(3) { background: var(--green); }
.terminal-head b { margin-left: auto; color: #cdefff; }
.spread-chart { position: relative; height: 420px; border-radius: 16px; background: rgba(0,0,0,.22); overflow: hidden; }
.spread-chart svg { width: 100%; height: 100%; display: block; }
.axis, .gridline { fill: none; stroke: rgba(148,163,184,.25); stroke-width: 1; }
.band { stroke-width: 2; stroke-dasharray: 8 8; }
.upper { stroke: rgba(251,113,133,.72); }
.lower { stroke: rgba(101,242,168,.72); }
.mean { stroke: rgba(250,204,21,.72); stroke-width: 2; }
.area { fill: url(#area); }
.curve {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgba(34,211,238,.75));
  stroke-dasharray: 920;
  animation: drawline 4.2s ease-in-out infinite alternate;
}
.candle-group rect, .candle-group line { fill: rgba(101,242,168,.55); stroke: rgba(101,242,168,.8); }
.candle-group rect:nth-of-type(even) { fill: rgba(251,113,133,.5); stroke: rgba(251,113,133,.8); }
.chart-label {
  position: absolute;
  left: 22px;
  padding: 6px 10px;
  border: 1px solid rgba(125,211,252,.18);
  border-radius: 999px;
  background: rgba(1,8,18,.75);
  color: #dbeafe;
  font-size: 12px;
}
.chart-label.l1 { top: 72px; }
.chart-label.l2 { top: 184px; }
.chart-label.l3 { bottom: 70px; }
.section { padding: 58px clamp(18px, 5vw, 72px); }
.section-title { max-width: 900px; margin-bottom: 26px; }
.section-title p:not(.eyebrow) { color: #a9bfcd; font-size: 17px; line-height: 1.85; }
.principle-grid, .market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.principle-grid article, .market-grid article {
  min-height: 250px;
  border-radius: 18px;
  padding: 24px;
  overflow: hidden;
}
.principle-grid article span, .market-grid article span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}
.principle-grid p, .market-grid p { color: #a9bfcd; line-height: 1.75; }
.mini-wave, .layer-bars {
  height: 72px;
  margin-top: 22px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(34,211,238,.75) 18% 21%, transparent 21% 42%, rgba(101,242,168,.8) 42% 45%, transparent 45% 70%, rgba(250,204,21,.85) 70% 73%, transparent 73%);
  filter: drop-shadow(0 0 12px rgba(34,211,238,.35));
}
.mini-wave.down { transform: scaleY(-1); }
.layer-bars { display: flex; align-items: end; gap: 10px; padding: 12px; background: rgba(1,8,18,.55); }
.layer-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), rgba(34,211,238,.14)); }
.layer-bars i:nth-child(1) { height: 34%; }
.layer-bars i:nth-child(2) { height: 58%; }
.layer-bars i:nth-child(3) { height: 78%; }
.layer-bars i:nth-child(4) { height: 46%; }
.basis-board {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 20px;
  border-radius: 22px;
  padding: 22px;
}
.basis-chart {
  position: relative;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(125,211,252,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,211,252,.1) 1px, transparent 1px),
    rgba(1,8,18,.55);
  background-size: 42px 42px;
}
.basis-line {
  position: absolute;
  left: 34px;
  right: 34px;
  height: 4px;
  border-radius: 999px;
  color: #dff8ff;
  font-weight: 900;
}
.basis-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 18px currentColor;
}
.basis-line.spot {
  top: 210px;
  background: var(--green);
}
.basis-line.futures {
  top: 108px;
  background: var(--cyan);
  animation: converge 5s ease-in-out infinite alternate;
}
.basis-gap {
  position: absolute;
  border-left: 1px dashed rgba(250,204,21,.75);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  padding-left: 10px;
}
.basis-gap.g1 { left: 25%; top: 118px; height: 92px; }
.basis-gap.g2 { right: 12%; top: 156px; height: 54px; }
.basis-notes { display: grid; gap: 12px; }
.basis-notes div {
  padding: 18px;
  border: 1px solid rgba(125,211,252,.16);
  border-radius: 14px;
  background: rgba(1,8,18,.55);
}
.basis-notes b { display: block; margin-bottom: 6px; font-size: 18px; }
.basis-notes span { color: var(--muted); line-height: 1.65; }
.system-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.system-tile {
  position: relative;
  min-height: 230px;
  border-radius: 22px;
  padding: 28px;
  overflow: hidden;
}
.system-tile::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 70%);
}
.system-tile.active { border-color: rgba(101,242,168,.45); }
.system-tile span { position: relative; color: var(--cyan); font-size: 12px; font-weight: 900; }
.system-tile strong { position: relative; display: block; margin: 18px 0 12px; font-size: 30px; }
.system-tile p { position: relative; color: #a9bfcd; line-height: 1.8; max-width: 520px; }
@keyframes drawline { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes scan { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes converge { from { top: 108px; } to { top: 170px; } }
@media (max-width: 980px) {
  nav { display: none; }
  .hero, .basis-board { grid-template-columns: 1fr; }
  .hero-stats, .principle-grid, .market-grid, .system-showcase { grid-template-columns: 1fr; }
  .terminal-card { min-height: auto; }
}
