:root {
  --bg: #0b1016;
  --desk: #101820;
  --panel: #141d27;
  --panel-hi: #1a2532;
  --line: #2a3848;
  --line-soft: #223040;
  --text: #e7eef6;
  --muted: #8d9aab;
  --up: #1ec98b;
  --up-dim: rgba(30, 201, 139, 0.14);
  --down: #ef4b5a;
  --down-dim: rgba(239, 75, 90, 0.14);
  --amber: #e8b339;
  --amber-dim: rgba(232, 179, 57, 0.16);
  --focus: #4aa3ff;
  --wrap: 1140px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "Segoe UI", monospace;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(30, 201, 139, 0.04), transparent 18%),
    linear-gradient(180deg, transparent 70%, rgba(239, 75, 90, 0.04)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(42, 56, 72, 0.28) 79px,
      rgba(42, 56, 72, 0.28) 80px
    ),
    var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--up);
  text-underline-offset: 3px;
}

a:hover {
  color: #7ee8bf;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 90;
  background: var(--panel-hi);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tape {
  background: #0e151d;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.tape-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
}

.tape-track {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

.lamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lamp i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.lamp-up i {
  background: var(--up);
  animation: pulse-up 1.8s ease-in-out infinite;
}

.lamp-down i {
  background: var(--down);
  animation: pulse-down 1.8s ease-in-out infinite;
}

.lamp-hold i {
  background: var(--amber);
}

@keyframes pulse-up {
  50% { box-shadow: 0 0 0 5px var(--up-dim); }
}

@keyframes pulse-down {
  50% { box-shadow: 0 0 0 5px var(--down-dim); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 16, 22, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--desk);
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.nav-panel ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.75rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.94rem;
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  color: var(--text);
  background: var(--panel-hi);
}

.nav-panel a.cta {
  background: var(--up);
  color: #062117;
  font-weight: 750;
}

.nav-panel a.cta:hover {
  background: #2ad49a;
  color: #062117;
}

.hero,
.page-hero,
section {
  padding: 4.2rem 0;
}

.hero {
  padding-top: 3.2rem;
}

.hero-grid,
.detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--mono);
}

.tag.up {
  border-color: rgba(30, 201, 139, 0.4);
  color: var(--up);
  background: var(--up-dim);
}

.tag.down {
  border-color: rgba(239, 75, 90, 0.4);
  color: #ff8b96;
  background: var(--down-dim);
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin: 0.7rem 0 0.8rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.button,
.button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
}

.button {
  background: var(--up);
  color: #062117;
}

.button:hover {
  background: #2ad49a;
  color: #062117;
}

.button-alt {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button-alt:hover {
  border-color: var(--up);
  color: var(--up);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.metric:nth-child(1)::before,
.metric:nth-child(3)::before {
  background: var(--up);
}

.metric:nth-child(2)::before {
  background: var(--amber);
}

.metric strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.board-frame {
  background: var(--desk);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.45rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.board-dots {
  display: flex;
  gap: 6px;
}

.board-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.board-dots i:first-child { background: var(--down); }
.board-dots i:nth-child(2) { background: var(--amber); }
.board-dots i:last-child { background: var(--up); }

.board-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 880 / 700;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}

.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.quote {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
}

.quote strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.quote.up { color: var(--up); }
.quote.down { color: #ff8b96; }
.quote span { color: var(--muted); font-weight: 500; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0.9rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card,
.platform,
.entry,
.instrument {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  position: relative;
}

.card p,
.platform p,
.entry p,
.instrument p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.kicker,
.anno {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 0.4rem;
}

.card.up-rail::before,
.platform.up-rail::before,
.entry.up-rail::before,
.instrument.up-rail::before,
.card.down-rail::before,
.platform.down-rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
}

.up-rail::before { background: var(--up); }
.down-rail::before { background: var(--down); }

.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin: 0.7rem 0 0.2rem;
}

.spark b {
  display: block;
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--up);
  opacity: 0.85;
}

.spark.down b { background: var(--down); }

.spark b:nth-child(1) { height: 40%; }
.spark b:nth-child(2) { height: 62%; }
.spark b:nth-child(3) { height: 48%; }
.spark b:nth-child(4) { height: 78%; }
.spark b:nth-child(5) { height: 55%; }
.spark b:nth-child(6) { height: 90%; }
.spark b:nth-child(7) { height: 70%; }

.entry {
  text-decoration: none;
  color: inherit;
  display: block;
}

.entry:hover {
  border-color: #3d5368;
  background: var(--panel-hi);
}

.entry h3 {
  color: var(--text);
}

.instrument-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.book-col {
  background: var(--desk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.book-col header {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.book-col.bid header { color: var(--up); background: var(--up-dim); }
.book-col.ask header { color: #ff8b96; background: var(--down-dim); }

.book-col ol {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.book-col li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.book-col li strong {
  color: var(--text);
  font-weight: 650;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.tick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0 0.6rem;
  border-radius: 6px;
  background: var(--desk);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.figure img {
  display: block;
  width: 100%;
  aspect-ratio: 880 / 700;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.checklist {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.3rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
}

.note,
.warn {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.note {
  background: var(--amber-dim);
  border: 1px solid rgba(232, 179, 57, 0.28);
  color: #e8d6a2;
}

.warn {
  background: var(--down-dim);
  border: 1px solid rgba(239, 75, 90, 0.28);
  color: #ffc4c9;
}

.crumbs {
  color: var(--muted);
  font-size: 0.88rem;
}

.crumbs a {
  color: var(--muted);
}

.page-hero {
  padding-bottom: 1.6rem;
}

.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.path a,
.path span.pin {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
}

.path a:hover,
.path .is-here {
  border-color: rgba(30, 201, 139, 0.45);
  background: var(--panel-hi);
}

.path .step-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--up);
  margin-bottom: 0.25rem;
}

.path .step-name {
  display: block;
  font-weight: 700;
}

.path .step-hint {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 1rem;
  margin-bottom: 0.6rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

footer {
  padding: 3rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: #080c11;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.6rem;
}

footer h3 {
  font-size: 0.92rem;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  margin: 0.35rem 0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--up);
}

footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.logo-block img {
  width: 42px;
  height: 42px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #6d7b8b;
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .detail,
  .book,
  .instrument-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .metrics,
  .path {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-panel {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    background: var(--desk);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.6rem;
  }

  .nav-panel.is-open {
    display: block;
  }

  .nav-panel ul {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .metrics,
  .path,
  .quote-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .legal,
  .tape-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  section {
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
