:root {
  --bg: #071018;
  --bg-lift: #0b1720;
  --panel: #10232c;
  --panel-2: #16343c;
  --ink: #e8f5ef;
  --muted: #8eaea4;
  --line: #21464c;
  --green: #16c48c;
  --green-dim: #0c7d5a;
  --amber: #e8b03a;
  --warn: #e07a3d;
  --danger: #d4544a;
  --max: 1120px;
  --radius: 16px;
  --font: system-ui, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.can-move {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7fe8c0;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--green);
  color: #04120c;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 顶栏：高速下载入口 */
.speed-rail {
  background: linear-gradient(90deg, #061014, #0c2a24 42%, #102018);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.speed-rail-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.speed-rail b {
  color: var(--amber);
  font-weight: 700;
}

.lane-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-right: 8px;
}

.lane-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.lane-dots i:nth-child(2) { opacity: 0.7; }
.lane-dots i:nth-child(3) { opacity: 0.4; }

/* 导航 */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 16, 24, 0.92);
  border-bottom: 1px solid transparent;
}

.mast.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--panel);
}

.site-nav a.cta {
  background: var(--green);
  color: #04140d;
  font-weight: 700;
  padding-inline: 16px;
}

.site-nav a.cta:hover {
  background: #2bd6a0;
  color: #04140d;
}

body.nav-lock {
  overflow: hidden;
}

/* Hero 高速入口 */
.hero-lane {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background:
    radial-gradient(900px 280px at 80% 0%, rgba(22, 196, 140, 0.16), transparent 60%),
    linear-gradient(180deg, #08151c, var(--bg));
}

.speed-track {
  position: absolute;
  inset: 18% -8% auto;
  height: 120px;
  background: repeating-linear-gradient(
    110deg,
    transparent 0 18px,
    rgba(22, 196, 140, 0.07) 18px 22px
  );
  pointer-events: none;
  opacity: 0.7;
}

html.can-move .speed-track {
  animation: lane-shift 18s linear infinite;
}

@keyframes lane-shift {
  from { transform: translateX(0); }
  to { transform: translateX(-80px); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
}

.chip.is-on {
  border-color: rgba(22, 196, 140, 0.45);
  color: #baf8de;
  background: rgba(22, 196, 140, 0.12);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.arrow-mark {
  width: 18px;
  height: 18px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.btn-go,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.btn-go {
  background: linear-gradient(180deg, #24d49a, var(--green-dim));
  color: #03140c;
  box-shadow: 0 10px 24px rgba(22, 196, 140, 0.22);
}

.btn-go:hover {
  color: #03140c;
  filter: brightness(1.06);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--green);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  color: var(--green);
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.fetch-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.fetch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0c1d24;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.fetch-panel figure {
  margin: 0;
  position: relative;
}

.fetch-panel figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.badge-wait {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(7, 16, 24, 0.82);
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.file-ticket {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px dashed var(--line);
}

.ticket-cell {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.ticket-cell dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.ticket-cell dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 0.9rem;
}

section {
  padding: 56px 0;
}

.head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.head p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 14px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.entry-tile,
.feat-card,
.plat-card,
.note-card,
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.entry-tile {
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 100%;
}

.entry-tile:hover,
.feat-card:hover,
.plat-card:hover {
  border-color: rgba(22, 196, 140, 0.45);
}

.entry-tile .meta,
.idx {
  display: inline-block;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.entry-tile h3,
.feat-card h3,
.plat-card h3,
.note-card h3,
.step-card h3 {
  font-size: 1.05rem;
}

.entry-tile p,
.feat-card p,
.plat-card p,
.note-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.icon-lane {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(22, 196, 140, 0.12);
  color: var(--green);
  margin-bottom: 10px;
}

.icon-lane svg {
  width: 20px;
  height: 20px;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.checks {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green);
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 4px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 14px;
  color: var(--muted);
}

.page-hero {
  padding: 36px 0 12px;
  background: linear-gradient(180deg, #0b1c22, var(--bg));
}

.crumbs {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 12px;
}

.crumbs a {
  color: var(--muted);
}

.cues {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cue {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.cue .n {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.78rem;
}

.cue .t {
  font-weight: 700;
}

.cue .h {
  color: var(--muted);
  font-size: 0.82rem;
}

.cue.is-live {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.warn-mod,
.risk-mod {
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
}

.warn-mod {
  background: rgba(224, 122, 61, 0.1);
  border-color: rgba(224, 122, 61, 0.4);
}

.risk-mod {
  background: rgba(212, 84, 74, 0.1);
  border-color: rgba(212, 84, 74, 0.4);
}

.warn-mod h3,
.risk-mod h3 {
  font-size: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: #0c1d24;
  color: var(--muted);
  font-size: 0.82rem;
}

tbody th {
  color: var(--ink);
}

td {
  color: var(--muted);
}

.desk {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.desk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0c1d24;
  border-bottom: 1px solid var(--line);
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.slot {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
}

.slot p {
  color: var(--muted);
  font-size: 0.92rem;
}

.hash-ghost {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  color: #5f8076;
  background: #071018;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
}

.cmd-box {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  background: #071018;
  border-radius: 8px;
  padding: 10px;
  color: #c6e6d8;
}

.cite {
  margin-top: 18px;
  color: var(--muted);
}

[data-rise] {
  opacity: 1;
  transform: none;
}

html.can-move [data-rise] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.can-move [data-rise].is-in {
  opacity: 1;
  transform: none;
}

.station-foot {
  background: #061016;
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 24px;
}

.station-foot h3 {
  font-size: 0.92rem;
  color: var(--muted);
}

.station-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.station-foot li {
  margin: 6px 0;
}

.station-foot p {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .duo,
  .grid-4,
  .cues,
  .foot-grid,
  .metric-row,
  .slot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 72px 12px auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-grid,
  .duo,
  .grid-4,
  .grid-3,
  .grid-2,
  .cues,
  .foot-grid,
  .metric-row,
  .slot-grid,
  .file-ticket {
    grid-template-columns: 1fr;
  }

  .head {
    flex-direction: column;
    align-items: start;
  }

  .speed-rail-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html.can-move {
    scroll-behavior: auto;
  }

  html.can-move .speed-track,
  html.can-move [data-rise] {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
