/* =========================================================
   亚博看台 · 共享外壳样式 /assets/site.css
   深空夜战 + 竞技橙光带 + 荧光青绿数据高亮
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 2. Design tokens ---------- */
:root {
  --ink-900: #060A14;
  --ink-800: #0C1630;
  --ink-700: #16203A;
  --line: #26304D;

  --orange: #FF6B1F;
  --orange-soft: #FF8B4D;
  --clay: #E0763C;
  --mint: #2EF2B8;
  --ice: #7FD3F2;

  --text: #EDEFF6;
  --muted: #98A3BC;
  --stone: #A9A395;

  --font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --rail-w: 84px;
  --rail-top: 68px;
  --rail-space: 108px;

  --shell: 1240px;
  --pad: clamp(18px, 4vw, 44px);
}

/* ---------- 3. Base typography ---------- */
.display {
  font-family: var(--font-sans);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--text);
}

.h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--stone);
}

.lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.prose {
  max-width: 68ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  color: var(--text);
  line-height: 1.3;
}

.prose h2 {
  font-size: 26px;
  font-weight: 700;
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ice);
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 1.1em 0 0;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose blockquote {
  border-left: 2px solid var(--clay);
  padding-left: 18px;
  color: var(--stone);
  font-style: normal;
}

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(40px, 6vw, 88px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid--12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ---------- 5. Components ---------- */
.panel {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 28px);
  color: var(--text);
}

.panel--deep {
  background: var(--ink-800);
}

.panel--flush {
  padding: 0;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #140800;
  box-shadow: 0 12px 30px -16px rgba(255, 107, 31, 0.95);
}

.btn--primary:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(22, 32, 58, 0.72);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--ice);
  color: var(--ice);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 31, 0.45);
  background: rgba(255, 107, 31, 0.12);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  white-space: nowrap;
}

.chip--mint {
  border-color: rgba(46, 242, 184, 0.42);
  background: rgba(46, 242, 184, 0.1);
  color: var(--mint);
}

.meter {
  position: relative;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(38, 48, 77, 0.72);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--ice));
  transition: width 0.9s var(--ease);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #14203C 0%, #0A1122 58%, #101B32 100%);
  aspect-ratio: 16 / 10;
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb {
  padding-top: 20px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--ice);
}

/* ---------- 6. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--mint));
  pointer-events: none;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: relative;
  z-index: 90;
  color: var(--text);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: #04120D;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.22s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

.topline {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: rgba(6, 10, 20, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topline__brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topline__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.topline__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(46, 242, 184, 0.5);
  animation: dot-pulse 2.4s var(--ease) infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 242, 184, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(46, 242, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 242, 184, 0); }
}

.topline__ver {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--orange);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 31, 0.4);
  background: rgba(255, 107, 31, 0.1);
}

.nav-toggle {
  position: fixed;
  top: 11px;
  right: 12px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--ink-700);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

.rail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(88vw, 340px);
  padding: 70px 18px 30px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(180deg, #101A34 0%, #0A1122 100%);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateX(102%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.34s var(--ease), opacity 0.3s ease, visibility 0.34s;
}

.rail::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.rail[data-open="true"] {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--text);
}

.rail__brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--orange), var(--clay));
  color: #160800;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rail__brand-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
  opacity: 1;
  transition: max-width 0.3s var(--ease), opacity 0.22s ease;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail__item {
  display: block;
}

.rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), padding 0.3s var(--ease);
}

.rail__link:hover {
  background: rgba(22, 32, 58, 0.9);
  color: var(--text);
}

.rail__index {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 22, 48, 0.9);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--stone);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.rail__link:hover .rail__index {
  border-color: var(--ice);
  color: var(--ice);
}

.rail__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
  opacity: 1;
  transition: max-width 0.3s var(--ease), opacity 0.22s ease;
}

.rail__link[aria-current="page"] {
  background: rgba(255, 107, 31, 0.12);
  color: var(--text);
}

.rail__link[aria-current="page"] .rail__index {
  border-color: var(--orange);
  background: rgba(255, 107, 31, 0.16);
  color: var(--orange);
}

.rail__cta {
  flex: none;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--orange), var(--clay));
  color: #160800;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 32px -18px rgba(255, 107, 31, 0.95);
  transition: background 0.24s var(--ease), transform 0.24s var(--ease);
}

.rail__cta:hover {
  background: linear-gradient(120deg, var(--orange-soft), var(--orange));
  transform: translateY(-1px);
}

.rail__cta-arrow {
  font-size: 14px;
  line-height: 1;
}

.rail__cta-text {
  overflow: hidden;
  max-width: 200px;
  opacity: 1;
  transition: max-width 0.3s var(--ease), opacity 0.22s ease;
}

/* ---------- 8. Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 112px);
  background: linear-gradient(180deg, #0A1226 0%, #060A14 100%);
  border-top: 1px solid var(--line);
}

.footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--pad) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.footer__brand {
  min-width: 0;
}

.footer__mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer__tag {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 26ch;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 31, 0.55);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease);
}

.footer__cta:hover {
  background: var(--orange);
  color: #160800;
}

.footer__col {
  min-width: 0;
}

.footer__col-title {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--stone);
}

.footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list--plain {
  gap: 8px;
}

.footer__link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__link:hover {
  color: var(--ice);
}

.footer__item {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  word-break: break-word;
}

.footer__bottom {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--pad) 30px;
  border-top: 1px solid rgba(38, 48, 77, 0.72);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  color: var(--muted);
}

.footer__legal {
  line-height: 1.9;
}

.footer__legal .footer__link {
  font-size: 12px;
}

.footer__icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

/* ---------- 9. Motion / reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal]:not(.is-visible) .meter__fill {
  width: 0;
}

/* ---------- 10. Focus ---------- */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.rail__link:focus-visible,
.rail__cta:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ---------- 11. Tablet ---------- */
@media (max-width: 1023px) {
  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .grid--12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .span-3,
  .span-4 {
    grid-column: span 3;
  }

  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 6;
  }
}

/* ---------- 12. Mobile ---------- */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .topline {
    padding-inline: 16px 108px;
  }

  .topline__brand {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .topline__date {
    display: none;
  }

  .grid--12 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer__brand,
  .footer__col--contact {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- 13. Desktop rail ---------- */
@media (min-width: 1024px) {
  #main-content,
  .site-footer {
    margin-left: var(--rail-space);
  }

  .topline {
    padding-left: calc(var(--rail-space) + 14px);
  }

  .nav-toggle {
    display: none;
  }

  .rail {
    top: var(--rail-top);
    left: 12px;
    right: auto;
    bottom: 12px;
    width: var(--rail-w);
    padding: 16px 9px;
    border-right: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: width 0.34s var(--ease);
  }

  .rail:hover,
  .rail:focus-within {
    width: 250px;
  }

  .rail__link {
    justify-content: center;
    padding: 10px 0;
  }

  .rail:hover .rail__link,
  .rail:focus-within .rail__link {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .rail__brand {
    justify-content: center;
    padding: 6px 0;
  }

  .rail:hover .rail__brand,
  .rail:focus-within .rail__brand {
    justify-content: flex-start;
    padding: 6px 4px;
  }

  .rail__label,
  .rail__brand-text,
  .rail__cta-text {
    max-width: 0;
    opacity: 0;
  }

  .rail:hover .rail__label,
  .rail:focus-within .rail__label,
  .rail:hover .rail__brand-text,
  .rail:focus-within .rail__brand-text,
  .rail:hover .rail__cta-text,
  .rail:focus-within .rail__cta-text {
    max-width: 180px;
    opacity: 1;
  }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    transform: scaleX(0);
  }
}
