/* =========================================================
   /assets/site.css — 必赢437赛场 共享样式
   深空底 + 奶油纸面 + 竞技橙 / 荧光青 / 信号洋红
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --void: #060B18;
  --deep: #0F1B36;
  --cream: #F2E6D2;
  --bright: #FBF6EC;
  --orange: #FF6A16;
  --cyan: #29E0D0;
  --magenta: #FF2E7E;
  --umber: #241610;
  --slate: #93A2C0;
  --line: #22304F;

  --shell: 1280px;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --gap: 24px;
  --cut: 22px;

  --font-display: "Noto Sans SC", "Source Han Sans", "Inter Tight", system-ui, sans-serif;
  --font-body: "PingFang SC", "Source Han Sans", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

/* ---------- base ---------- */
body {
  background: var(--void);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection { background: var(--orange); color: var(--void); }

/* ---------- utilities ---------- */
.shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h-slant { transform: skewX(-2deg); display: inline-block; }
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.label--orange { color: var(--orange); }
.label--magenta { color: var(--magenta); }
.label--umber { color: var(--umber); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-cyan 2.4s var(--ease) infinite;
}
@keyframes pulse-cyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41, 224, 208, 0.55); }
  60% { box-shadow: 0 0 0 8px rgba(41, 224, 208, 0); }
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transform: translateY(-120%);
  background: var(--orange);
  color: var(--void);
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--void);
  border-bottom: 1px solid var(--line);
}

.status-rail {
  background: linear-gradient(90deg, var(--void) 0%, var(--deep) 62%, #142murky 100%);
  background: linear-gradient(90deg, var(--void) 0%, var(--deep) 62%, var(--deep) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  max-height: 44px;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), border-color 0.3s;
}
.status-rail__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 34px;
  padding-block: 0.25rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--slate);
}
.status-rail__pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-cyan 2.4s var(--ease) infinite;
}
.status-rail__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-rail__time { color: var(--bright); }
.status-rail__tag {
  flex: 0 0 auto;
  padding: 0.15rem 0.5rem;
  color: var(--cyan);
  border: 1px solid rgba(41, 224, 208, 0.4);
  font-size: 11px;
}
.site-header.is-condensed .status-rail {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.command-bar {
  position: relative;
  z-index: 90;
  background: var(--deep);
}
.command-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  transition: min-height 0.35s var(--ease);
}
.site-header.is-condensed .command-bar__inner { min-height: 54px; }

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}
.brand__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--void);
  background: var(--orange);
  padding: 0.42rem 0.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 74% 100%, 0 100%);
}
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--bright);
  line-height: 1.2;
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
  line-height: 1.3;
}

/* nav */
.nav { margin-inline: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  transition: color 0.18s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--bright);
  border-color: var(--line);
  transform: translateY(-2px);
}
.nav__link[aria-current="page"] {
  color: var(--void);
  background: var(--orange);
  border-color: var(--orange);
}
.nav__link[aria-current="page"] .nav__idx { color: rgba(6, 11, 24, 0.62); }
.nav__foot { display: none; }

/* actions + badge */
.command-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.badge-gnd9 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px dashed rgba(41, 224, 208, 0.55);
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.badge-gnd9::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.badge-gnd9:hover { border-color: var(--cyan); color: var(--bright); }

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 10px;
  flex: 0 0 auto;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease), bottom 0.25s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: 4px; transform: rotate(-45deg); }

/* scroll progress */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-rail__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange) 55%, var(--magenta));
  transition: width 0.12s linear;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.3rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--void); }
.btn--primary:hover { background: #ff8135; }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--sm { padding: 0.55rem 0.95rem; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- breadcrumbs ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.crumbs__list li { display: flex; align-items: center; gap: 0.45rem; }
.crumbs__list li + li::before {
  content: "›";
  color: var(--line);
}
.crumbs a { border-bottom: 1px solid transparent; transition: color 0.18s var(--ease), border-color 0.18s var(--ease); }
.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--bright); }

/* ---------- layout primitives ---------- */
main { display: block; }
.section { padding-block: clamp(2.5rem, 7vw, 6rem); }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.stack > * + * { margin-top: 1rem; }

.panel {
  position: relative;
  background: var(--deep);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.panel--cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.panel--paper { background: var(--cream); color: var(--umber); border-color: rgba(36, 22, 16, 0.2); }
.panel--paper .label { color: var(--orange); }

.rule-slant {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 18%, var(--line) 82%, transparent 100%);
  transform: skewY(-0.6deg);
}

/* ---------- media frames ---------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, #101c38 0%, #0a1428 60%, #060b18 100%);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.figure--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.figure--16-9 { aspect-ratio: 16 / 9; }
.figure--4-3 { aspect-ratio: 4 / 3; }
.figure--3-4 { aspect-ratio: 3 / 4; }
.figure--1-1 { aspect-ratio: 1 / 1; }
.figure__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(41, 224, 208, 0.16), transparent 55%),
    linear-gradient(112deg, rgba(255, 106, 22, 0.12) 0%, transparent 42%, rgba(255, 46, 126, 0.12) 100%);
}
.figure__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.4rem 0.85rem;
  background: var(--orange);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- toc ---------- */
.toc__list { display: grid; gap: 0.15rem; }
.toc__link {
  display: block;
  padding: 0.4rem 0 0.4rem 0.85rem;
  border-left: 2px solid var(--line);
  font-size: 13px;
  color: var(--slate);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.toc__link:hover { color: var(--bright); border-left-color: var(--slate); }
.toc__link[aria-current="true"] {
  color: var(--orange);
  border-left-color: var(--orange);
  padding-left: 1.1rem;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 7rem);
}
.footer-slant {
  height: clamp(2.2rem, 6vw, 4.5rem);
  background: linear-gradient(to bottom right, transparent 0 49.6%, var(--cream) 49.8%);
}
.footer-body {
  background: var(--cream);
  color: var(--umber);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.footer__brand { display: grid; gap: 1rem; align-content: start; }
.brand--footer .brand__name { color: var(--umber); }
.brand--footer .brand__line { color: rgba(36, 22, 16, 0.66); }
.footer__summary {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(36, 22, 16, 0.86);
  max-width: 34ch;
}
.footer__trust {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(36, 22, 16, 0.62);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(36, 22, 16, 0.16);
  max-width: 38ch;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(36, 22, 16, 0.55);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.footer__links { display: grid; gap: 0.55rem; }
.footer__links a {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--umber);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer__links a:hover { border-bottom-color: var(--orange); transform: translateX(3px); }

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-block: 1.1rem;
  border-top: 1px dashed rgba(36, 22, 16, 0.28);
  border-bottom: 1px dashed rgba(36, 22, 16, 0.28);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--umber);
}
.footer__contact-item { display: flex; align-items: baseline; gap: 0.6rem; }
.footer__contact-key {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(36, 22, 16, 0.5);
  text-transform: uppercase;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.75rem;
  padding-block: 1.2rem 1.6rem;
  font-size: 12.5px;
  color: rgba(36, 22, 16, 0.62);
}
.footer__icp { font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer__legal { flex: 1 1 24ch; text-align: right; }

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 2rem);
  bottom: clamp(0.9rem, 3vw, 2rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  background: var(--deep);
  color: var(--cyan);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--cyan); color: var(--bright); }
.to-top__arrow { color: var(--orange); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 0.5rem; font-size: 13px; }
  .nav__idx { display: none; }
  .command-bar__actions .badge-gnd9 { display: none; }
}

@media (max-width: 1020px) {
  .command-bar__actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    margin: 0;
    padding: 6.5rem var(--gutter) 2.5rem;
    background: var(--void);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 1.05rem 0.25rem;
    font-size: 1.25rem;
    color: var(--cream);
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__idx { display: inline; color: var(--cyan); font-size: 11px; }
  .nav__link:hover { transform: none; border-color: var(--line); }
  .nav__link[aria-current="page"] {
    background: transparent;
    color: var(--orange);
    border-bottom-color: var(--orange);
  }
  .nav__link[aria-current="page"] .nav__idx { color: var(--orange); }
  .nav__foot {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { text-align: left; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; --cut: 16px; }
  body { font-size: 16px; }
  .status-rail__tag { display: none; }
  .brand__line { display: none; }
  .brand__mark { font-size: 1.1rem; padding: 0.36rem 0.44rem; }
  .brand__name { font-size: 14px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .to-top__text { display: none; }
  .to-top { padding: 0.7rem 0.85rem; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }
  .dot, .status-rail__pulse { animation: none; }
  .btn:hover, .nav__link:hover, .footer__links a:hover { transform: none; }
}
