/* ==========================================================================
   浩瀚赛场 · 共享 Site Kit
   路径：/assets/site.css
   ========================================================================== */

:root {
  --ink: #0B1B33;
  --ink-deep: #071223;
  --ink-brown: #1A120E;
  --graphite: #2B3440;
  --paper: #F2E9D8;
  --ice: #F7FAFC;
  --cyan: #2BE0D0;
  --teal: #0E6F76;
  --lava: #FF5A1F;
  --press: #C0392B;
  --mist: #8A97A6;

  --line: rgba(247, 250, 252, 0.13);
  --line-strong: rgba(247, 250, 252, 0.26);
  --line-paper: rgba(26, 18, 14, 0.16);

  --font-display: "Archivo Narrow", "Oswald", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-fast: 140ms ease;
  --t-mid: 180ms ease;
  --shell-w: 1280px;
  --header-h: 72px;
}

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

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

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

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

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

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

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

/* ---------- base type ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ice);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ice);
}

p { max-width: 68ch; }

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

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

/* ---------- utility ---------- */
.shell {
  width: min(var(--shell-w), 100% - 48px);
  margin-inline: auto;
}

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

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ice);
}

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

.data-figure {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ice);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transform: translateY(-140%);
  transition: transform var(--t-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- header : command bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 27, 51, 0.96);
  border-bottom: 1px solid var(--line);
  color: var(--ice);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-shell {
  width: min(1440px, 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 28px);
  min-height: var(--header-h);
  transition: min-height var(--t-mid);
}

.site-header[data-scrolled] .header-shell {
  min-height: 52px;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 2px;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}

.brand-mark i {
  display: block;
  width: 4px;
  background: var(--cyan);
  border-radius: 1px 1px 0 0;
  transition: height var(--t-mid);
}

.brand-mark i:nth-child(1) { height: 10px; opacity: 0.55; }
.brand-mark i:nth-child(2) { height: 16px; opacity: 0.8; }
.brand-mark i:nth-child(3) { height: 22px; background: var(--lava); }

.site-header[data-scrolled] .brand-mark i:nth-child(1) { height: 8px; }
.site-header[data-scrolled] .brand-mark i:nth-child(2) { height: 13px; }
.site-header[data-scrolled] .brand-mark i:nth-child(3) { height: 18px; }

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--ice);
}

.brand-note {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* round status */
.round-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}

.round-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 224, 208, 0.16);
}

.round-round { color: var(--ice); }

.round-detail {
  color: var(--mist);
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--paper);
  opacity: 0.82;
  transition: color var(--t-fast), background-color var(--t-fast), opacity var(--t-fast);
}

.nav-list a::before {
  content: attr(data-index);
  margin-right: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color var(--t-fast);
}

.nav-list a:hover {
  opacity: 1;
  color: var(--cyan);
  background-color: rgba(43, 224, 208, 0.08);
}

.nav-list a:hover::before { color: var(--cyan); }

.nav-list a[aria-current="page"] {
  opacity: 1;
  color: var(--cyan);
}

.nav-list a[aria-current="page"]::before { color: var(--lava); }

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 1px;
  height: 2px;
  background: var(--cyan);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn--primary {
  background: var(--lava);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: #FF7343;
  transform: translateY(-2px);
}

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

.btn--cyan:hover {
  background: #63ECE0;
  transform: translateY(-2px);
}

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

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

.header-cta {
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: border-color var(--t-fast), color var(--t-fast);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: top var(--t-fast), transform var(--t-fast);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 4.25px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 4.25px;
  transform: rotate(-45deg);
}

/* scroll progress */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lava));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 80ms linear;
}

/* ---------- side rail ---------- */
.side-rail {
  position: fixed;
  top: 50%;
  right: max(16px, calc((100vw - 1440px) / 2));
  z-index: 150;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 74px;
  padding: 12px 8px;
  background: rgba(26, 18, 14, 0.9);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.side-rail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -1px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--lava));
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: none;
  line-height: 1.15;
}

.rail-key {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.rail-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ice);
}

.rail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lava);
  margin-bottom: 3px;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-brown);
  color: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0 22%, var(--teal) 22% 42%, var(--lava) 42% 54%, var(--graphite) 54% 100%);
}

.footer-shell {
  width: min(var(--shell-w), 100% - 48px);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) 0 28px;
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 48px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.brand--footer .brand-name {
  font-size: 22px;
  color: var(--paper);
}

.footer-summary {
  max-width: 46ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3.5vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
}

.footer-col-title {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.footer-list li { margin: 0; }

.footer-list a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--mist);
  transition: color var(--t-fast), transform var(--t-fast);
}

.footer-list a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-contact {
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.footer-contact-line {
  max-width: none;
  padding: 2px 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.footer-note {
  max-width: 34ch;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.footer-meta-item {
  max-width: none;
  margin: 0;
}

/* ---------- shared content components ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--lava);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--cyan);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}

.chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chip[aria-pressed="true"],
.chip[data-active] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(43, 224, 208, 0.1);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--cyan);
}

.tag--lava {
  border-color: var(--lava);
  color: var(--lava);
  background: rgba(255, 90, 31, 0.12);
}

.panel {
  padding: clamp(16px, 2vw, 24px);
  background: var(--graphite);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.panel:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.paper-panel {
  padding: clamp(16px, 2vw, 28px);
  background: var(--paper);
  color: var(--ink-brown);
  border: 1px solid var(--line-paper);
  box-shadow: 6px 6px 0 rgba(7, 18, 35, 0.45);
}

.paper-panel h1,
.paper-panel h2,
.paper-panel h3,
.paper-panel p,
.paper-panel li { color: var(--ink-brown); }

.paper-panel .section-label { color: var(--press); }

.rule-divider {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  margin: clamp(24px, 4vw, 48px) 0;
  background: var(--line-strong);
}

.rule-divider::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 56px;
  height: 1px;
  background: var(--lava);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--graphite);
}

.breadcrumbs a {
  color: var(--mist);
  transition: color var(--t-fast);
}

.breadcrumbs a:hover { color: var(--cyan); }

.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- image containers (page stage) ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--graphite);
  border: 1px solid var(--line-strong);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(43, 224, 208, 0.22);
  pointer-events: none;
}

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

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .round-detail { display: none; }
  .nav-list a { padding: 8px 7px; font-size: 13px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 10px 20px 22px;
    margin-left: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 48px -28px rgba(0, 0, 0, 0.9);
  }

  .site-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .nav-list li + li { border-top: 1px solid var(--line); }

  .nav-list a {
    justify-content: flex-start;
    padding: 14px 2px;
    font-size: 15px;
    opacity: 0.95;
  }

  .nav-list a::before { margin-right: 10px; }

  .nav-list a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 2px;
    height: auto;
  }

  .header-cta {
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .footer-body { grid-template-columns: 1fr; }

  .footer-contact {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .side-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: auto;
    padding: 10px 16px;
    border: 0;
    border-top: 1px solid var(--line);
    background: rgba(11, 27, 51, 0.97);
  }

  .side-rail::before {
    inset: -1px 0 auto 0;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--lava));
  }

  .rail-item {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .rail-key { font-size: 9px; }
  .rail-val { font-size: 13px; }
  .rail-dot { margin-bottom: 0; }

  .site-footer { padding-bottom: 68px; }
}

@media (max-width: 640px) {
  .shell,
  .footer-shell { width: 100% - 32px; width: calc(100% - 32px); }

  .header-shell { width: calc(100% - 28px); }

  .brand-note { display: none; }

  .brand-name { font-size: 17px; }

  .round-chip { padding: 4px 8px; font-size: 10px; }

  .nav-toggle-label { display: none; }

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

  .footer-meta { justify-content: flex-start; }

  .display { font-size: clamp(40px, 13vw, 64px); }
}

/* ---------- 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;
  }

  .header-progress-bar { transition: none; }

  .btn:hover,
  .panel:hover,
  .footer-list a:hover { transform: none; }
}
