/* =========================================================
   免费赛场 · Site Kit 共享样式
   夜场看台数据感 × 展览画册式节奏
   ========================================================= */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --night: #06140F;
  --panel: #0B2118;
  --raised: #123127;
  --cream: #EDE6D6;
  --paper-hi: #F7F3E7;
  --mint: #4BFFC4;
  --red: #FF4D3D;
  --yellow: #FFC53D;
  --brown: #1E140F;
  --muted: #9DB3A8;
  --bright: #F4F7F0;

  --line: rgba(157, 179, 168, 0.20);
  --line-soft: rgba(157, 179, 168, 0.12);
  --line-strong: rgba(157, 179, 168, 0.38);
  --mint-line: rgba(75, 255, 196, 0.42);

  --font-display: "Barlow Condensed", "Arial Narrow", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "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, "Courier New", monospace;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 0 rgba(244, 247, 240, 0.04),
    0 24px 48px -32px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(90% 58% at 78% -12%, rgba(18, 49, 39, 0.55), transparent 65%),
    radial-gradient(70% 46% at 0% 100%, rgba(11, 33, 24, 0.55), transparent 70%);
  background-repeat: no-repeat;
  color: var(--bright);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong { font-weight: 600; color: var(--bright); }

::selection { background: var(--mint); color: var(--night); }

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

#main-content {
  padding-top: clamp(104px, 13vh, 132px);
  scroll-margin-top: clamp(88px, 11vh, 112px);
}

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

.section { padding-block: clamp(48px, 7vw, 96px); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.visually-hidden {
  position: absolute !important;
  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;
}

/* ---------- 5. Typographic indexes ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ---------- 6. Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(18, 49, 39, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.chip--mint {
  border-color: var(--mint-line);
  background: rgba(75, 255, 196, 0.08);
  color: var(--mint);
}

.chip--red {
  border-color: rgba(255, 77, 61, 0.5);
  background: rgba(255, 77, 61, 0.08);
  color: var(--red);
}

.chip--yellow {
  border-color: rgba(255, 197, 61, 0.5);
  background: rgba(255, 197, 61, 0.08);
  color: var(--yellow);
}

/* ---------- 7. Panels & paper ---------- */
.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.paper {
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--brown);
  box-shadow: 0 30px 60px -50px rgba(0, 0, 0, 0.95);
}

.paper--hi { background: var(--paper-hi); }

.paper h2,
.paper h3 { color: var(--brown); }

.paper p { color: #3A2A22; }

.paper a { color: #0B5D45; text-underline-offset: 3px; }

.paper .eyebrow { color: #8A2E1E; }

/* ---------- 8. Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

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

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

.crumbs__link:hover { color: var(--mint); }

.crumbs__sep { color: rgba(157, 179, 168, 0.45); }

.crumbs__current { color: var(--bright); }

/* ---------- 9. Media frames ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image:
    repeating-linear-gradient(90deg, rgba(157, 179, 168, 0.08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(157, 179, 168, 0.08) 0 1px, transparent 1px 48px),
    linear-gradient(160deg, #0B2118 0%, #06140F 100%);
}

.media__frame {
  position: relative;
  aspect-ratio: var(--media-ratio, 16 / 9);
  overflow: hidden;
}

.media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(6, 20, 15, 0.55);
  pointer-events: none;
}

.media__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 10px;
  border: 1px solid var(--mint-line);
  border-radius: var(--radius-pill);
  background: rgba(6, 20, 15, 0.82);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 10. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--bright);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--btn-line);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
}

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

.btn--mint {
  --btn-bg: var(--mint);
  --btn-fg: #06140F;
  --btn-line: var(--mint);
  box-shadow: 0 0 0 0 rgba(75, 255, 196, 0.28);
}

.btn--mint:hover { box-shadow: 0 0 0 5px rgba(75, 255, 196, 0.16); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bright);
  --btn-line: var(--line-strong);
}

.btn--ghost:hover {
  --btn-line: var(--mint-line);
  --btn-fg: var(--mint);
  background: rgba(75, 255, 196, 0.06);
}

.btn--paper {
  --btn-bg: var(--brown);
  --btn-fg: var(--cream);
  --btn-line: var(--brown);
}

.btn--paper:hover { --btn-bg: #2C1E17; }

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- 11. Header ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 220;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--night);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  pointer-events: auto;
  transform: translate(-50%, -190%);
  transition: transform 0.16s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--maxw);
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(18, 49, 39, 0.96), rgba(11, 33, 24, 0.97));
  box-shadow: 0 24px 56px -36px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(244, 247, 240, 0.06);
  pointer-events: auto;
  transition: padding 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-header[data-scrolled="true"] .site-header__inner {
  padding: 6px 10px 6px 16px;
  border-color: var(--line-strong);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--bright);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--mint-line);
  border-radius: 9px;
  background: linear-gradient(150deg, #16382C, #08180F);
  box-shadow: inset 0 0 12px rgba(75, 255, 196, 0.18);
}

.brand__mark::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 7px;
  right: 13px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.brand__mark::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 13px;
  right: 7px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bright);
  white-space: nowrap;
}

.brand__sub {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand--footer .brand__name { font-size: 17px; }

/* Navigation */
.primary-nav {
  margin-left: auto;
  min-width: 0;
  pointer-events: auto;
}

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

.nav-link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav-link:hover {
  color: var(--bright);
  background: var(--raised);
}

.nav-link[aria-current="page"] {
  background: var(--mint);
  color: var(--night);
  font-weight: 600;
}

.nav-link:focus-visible { outline-offset: 2px; }

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--bright);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

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

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

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), width 0.18s var(--ease);
}

.nav-toggle__bar:first-child { width: 16px; }

.nav-toggle__bar:last-child { width: 11px; }

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.site-header[data-open="true"] .nav-toggle {
  border-color: var(--mint);
  color: var(--mint);
}

.site-header[data-open="true"] .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bar:last-child {
  width: 16px;
  transform: translateY(-3px) rotate(-45deg);
}

/* Scroll progress */
.scroll-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 4px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(75, 255, 196, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.site-header[data-scrolled="true"] .scroll-progress { opacity: 1; }

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(75, 255, 196, 0.4), var(--mint));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  transition: transform 0.08s linear;
}

/* Header notice */
.site-header__notice {
  max-width: var(--maxw);
  overflow: hidden;
  padding: 6px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(6, 20, 15, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background-image:
    radial-gradient(120% 80% at 12% 0%, rgba(18, 49, 39, 0.75), transparent 60%),
    linear-gradient(180deg, #081B14, #06140F 72%);
  color: var(--bright);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 72px);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.site-footer__line {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--bright);
}

.site-footer__note {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  min-width: 0;
}

.footer-col { min-width: 0; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s var(--ease);
}

.footer-link:hover { color: var(--bright); }

.footer-link:hover::after { transform: scaleX(1); }

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.9;
  color: var(--bright);
}

.contact-line { display: block; overflow-wrap: anywhere; }

.contact-line[data-label]::before {
  content: attr(data-label) " / ";
  color: rgba(157, 179, 168, 0.7);
  letter-spacing: 0.1em;
}

.contact-line--soft { color: var(--muted); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line-soft);
}

.site-footer__legal,
.site-footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.site-footer__meta { color: rgba(157, 179, 168, 0.75); }

/* ---------- 13. Reveal protocol ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 40ms);
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  #main-content { padding-top: clamp(84px, 11vh, 104px); }

  .site-header { padding: 10px var(--gutter) 0; }

  .site-header__inner {
    padding: 8px 10px 8px 14px;
    gap: 10px;
  }

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

  .site-header__notice { display: none; }

  .primary-nav {
    position: fixed;
    right: var(--gutter);
    bottom: calc(var(--gutter) * 0.85);
    left: var(--gutter);
    z-index: 99;
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: rgba(11, 33, 24, 0.98);
    box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0.2s var(--ease);
  }

  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  body { font-size: 15px; }

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

  .site-footer__brand { gap: 12px; }

  .site-footer__note { max-width: none; }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }

  .brand__name { font-size: 16px; letter-spacing: 0.1em; }

  .brand__mark { width: 26px; height: 26px; border-radius: 8px; }

  .brand__mark::before { top: 7px; left: 6px; right: 11px; }

  .brand__mark::after { bottom: 7px; left: 11px; right: 6px; }

  .nav-toggle { padding: 9px 11px; }

  .nav-toggle__label { display: none; }

  .btn--sm {
    padding: 8px 13px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .site-footer__base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 15. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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

  .scroll-progress__bar { transition: none; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link { display: none !important; }

  body {
    background: #fff;
    color: #1E140F;
  }

  #main-content { padding-top: 0; }
}
