/* ============================================================
   必一赛场 · 共享站点样式 /assets/site.css
   框架：深空蓝指挥中心 + 奶油纸编辑部
   ============================================================ */

:root {
  --ink: #081A33;
  --ink-2: #102A4D;
  --paper: #F3E9D2;
  --white: #FCF7EC;
  --brown: #241A12;
  --cyan: #31F2CF;
  --orange: #FF6B35;
  --gold: #D8B46A;
  --haze: #8EA3BE;
  --deep: #052827;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --max: 1440px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 220ms;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-stretch: 92%;
}

h1 { font-size: clamp(38px, 6vw, 84px); }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: clamp(20px, 2.4vw, 27px); }

strong { font-weight: 700; }

::selection { background: var(--cyan); color: var(--ink); }

/* ---------- utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.index-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--haze);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-200%);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform 160ms var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--signal {
  background: var(--orange);
  color: #1b0c03;
}
.btn--signal:hover { background: #ff8559; }

.btn--cyan {
  background: var(--cyan);
  color: var(--ink);
}
.btn--cyan:hover { background: #6ff9e0; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(252, 247, 236, .38);
}
.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn--sm {
  padding: 9px 17px;
  font-size: 13px;
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid rgba(142, 163, 190, .5);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
  color: inherit;
}

.tag--cyan {
  background: rgba(49, 242, 207, .18);
  border-color: rgba(49, 242, 207, .6);
  color: #0b6557;
}

.tag--orange {
  background: rgba(255, 107, 53, .16);
  border-color: rgba(255, 107, 53, .58);
  color: #a53a12;
}

.tag--gold {
  background: rgba(216, 180, 106, .22);
  border-color: rgba(216, 180, 106, .62);
  color: #7a5a17;
}

/* ---------- status ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}

.status__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: statusPulse 2.6s var(--ease) infinite;
}

.status--alert .status__dot {
  background: var(--orange);
  animation-name: statusPulseAlert;
}

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(49, 242, 207, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(49, 242, 207, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 242, 207, 0); }
}

@keyframes statusPulseAlert {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 53, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* ---------- panels ---------- */
.panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(36, 26, 18, .1);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.panel--dark {
  background: var(--ink-2);
  border-color: rgba(49, 242, 207, .22);
  color: var(--white);
}

.panel--dark .tag--cyan { color: var(--cyan); }
.panel--dark .tag--orange { color: var(--orange); }
.panel--dark .tag--gold { color: var(--gold); }
.panel--dark .index-no { color: var(--haze); }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background-color: var(--ink-2);
  background-image:
    radial-gradient(120% 120% at 18% 0%, rgba(49, 242, 207, .2), transparent 62%),
    radial-gradient(90% 90% at 100% 100%, rgba(216, 180, 106, .24), transparent 66%);
  isolation: isolate;
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }

.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(8, 26, 51, .78);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
}

/* ---------- reveal ---------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--haze);
}

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

.breadcrumb__sep {
  opacity: .55;
  user-select: none;
}

/* ============================================================
   HEADER · 指挥台框架
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(216, 180, 106, .24);
}

.hd-frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.hd-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 0;
}

.hd-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
}

.hd-brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(49, 242, 207, .42);
  border-radius: 12px;
  background: linear-gradient(140deg, var(--ink-2), var(--deep));
}

.hd-brand__mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 7px;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(-45deg);
}

.hd-brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(49, 242, 207, .18);
}

.hd-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
  min-width: 0;
}

.hd-brand__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
}

.hd-brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--gold);
}

.hd-descriptor {
  padding-left: 14px;
  border-left: 1px solid rgba(142, 163, 190, .34);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--haze);
  white-space: nowrap;
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 15px;
  border: 1px solid rgba(49, 242, 207, .45);
  border-radius: var(--radius-pill);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

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

.nav-toggle__label { line-height: 1; }

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  counter-reset: nav;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 13px;
  border-radius: var(--radius-pill);
  color: rgba(252, 247, 236, .76);
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav__link::before {
  counter-increment: nav;
  content: "0" counter(nav);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(142, 163, 190, .8);
  transition: color var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--white);
  background: rgba(49, 242, 207, .1);
}

.site-nav__link:hover::before { color: var(--cyan); }

.site-nav__link[aria-current="page"] {
  background: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

.site-nav__link[aria-current="page"]::before {
  color: rgba(8, 26, 51, .62);
}

.site-nav__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: clamp(12px, 2vw, 22px);
  border-left: 1px solid rgba(142, 163, 190, .26);
}

.hd-notice {
  max-width: 148px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--haze);
}

.hd-lang {
  padding: 4px 10px;
  border: 1px solid rgba(216, 180, 106, .42);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gold);
  white-space: nowrap;
}

/* scroll progress */
.hd-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(142, 163, 190, .18);
}

.hd-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 58%, var(--orange));
  transition: width 90ms linear;
}

/* ============================================================
   FOOTER · 赛场底板
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--ink);
  color: rgba(252, 247, 236, .84);
  border-top: 1px solid rgba(216, 180, 106, .3);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(49, 242, 207, .055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(49, 242, 207, .045) 0 1px, transparent 1px 96px);
  -webkit-mask-image: radial-gradient(125% 75% at 12% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(125% 75% at 12% 0%, #000 0%, transparent 78%);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, .16), transparent 68%);
}

.ft-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: clamp(28px, 5vw, 64px);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(24px, 4vw, 40px);
}

.ft-brand__link {
  display: inline-block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}

.ft-brand__link:hover { color: var(--cyan); }

.ft-brand__blurb {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--haze);
}

.ft-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 13px;
  border: 1px solid rgba(216, 180, 106, .45);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold);
}

.ft-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.ft-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.ft-col__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ft-col__list a {
  display: inline-block;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  color: rgba(252, 247, 236, .8);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.ft-col__list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.ft-col__line {
  font-size: 14px;
  line-height: 1.7;
  color: var(--haze);
  word-break: break-word;
}

.ft-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(142, 163, 190, .2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--haze);
}

.ft-copy { margin-right: auto; }

.ft-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ft-legal__link {
  color: rgba(252, 247, 236, .78);
  transition: color var(--dur) var(--ease);
}

.ft-legal__link:hover { color: var(--cyan); }

.ft-icp { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .hd-descriptor { display: none; }
  .hd-notice { display: none; }
  .site-nav__link { font-size: 14px; padding: 9px 10px; }
}

@media (max-width: 980px) {
  body { font-size: 16px; }

  .hd-frame { flex-wrap: wrap; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 10px var(--gutter) 22px;
    background: var(--ink-2);
    border-top: 1px solid rgba(49, 242, 207, .22);
    border-bottom: 1px solid rgba(49, 242, 207, .22);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 280ms var(--ease),
      opacity 200ms var(--ease),
      visibility 280ms var(--ease);
  }

  .site-nav[data-open] {
    max-height: 78vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    width: 100%;
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .site-nav__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 10px;
    padding: 16px 14px 0;
    border-left: 0;
    border-top: 1px solid rgba(142, 163, 190, .22);
  }

  .hd-notice {
    display: block;
    max-width: none;
  }

  .site-nav__meta .btn { width: 100%; }

  .ft-top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hd-brand__name { font-size: 17px; }
  .hd-brand__mark { width: 34px; height: 34px; border-radius: 10px; }

  .ft-cols { grid-template-columns: 1fr; gap: 26px; }

  .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ft-copy { margin-right: 0; }
  .ft-legal { gap: 14px; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .has-js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status__dot { animation: none; }

  .hd-progress__bar { transition: none; }

  .skip-link { transition: none; }

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