/* ============================================================
   版本赛事 · 共享样式表 /assets/site.css
   深空数据面板基底 + 悬浮胶囊浮岛导航 + 展览标签式组件
   ============================================================ */

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

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

body { margin: 0; }

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

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

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

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

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

/* ---------- 变量 ---------- */
:root {
  --deep: #070C1B;
  --panel: #0E1730;
  --raise: #16223F;
  --line: #24345C;
  --signal: #FF6A1A;
  --signal-soft: #FFA96B;
  --cyan: #2FE3D2;
  --cyan-mist: #9CF3EA;
  --text: #EAF0FB;
  --text-dim: #9AA9C9;
  --text-mute: #63729A;
  --live: #4FD08A;

  --font-heading: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --shell-w: 1200px;
  --shell-w-wide: 1340px;
  --shell-w-narrow: 780px;
  --radius: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--deep);
  background-image:
    radial-gradient(920px 480px at 10% -10%, rgba(47, 227, 210, .075), transparent 70%),
    radial-gradient(820px 440px at 94% 2%, rgba(255, 106, 26, .065), transparent 72%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: clamp(82px, 8.4vw, 96px);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .005em;
  color: var(--text);
}

::selection { background: rgba(255, 106, 26, .32); color: #fff; }

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

/* ---------- 跳至正文 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--signal);
  color: #1c0a01;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  transform: translateY(-190%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 头部：悬浮胶囊浮岛 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px clamp(12px, 3vw, 30px);
  transition: padding .22s var(--ease);
  pointer-events: none;
}

.header-shell {
  position: relative;
  pointer-events: auto;
  max-width: var(--shell-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 1.6vw, 22px);
  padding: 9px 10px 9px 18px;
  background: rgba(14, 23, 48, .78);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    padding .22s var(--ease),
    background-color .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease);
}

.site-header.is-condensed { padding-top: 7px; padding-bottom: 7px; }

.site-header.is-condensed .header-shell {
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(9, 15, 33, .95);
  border-color: #2d4070;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 1);
}

/* 品牌字标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.brand-glyph {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid var(--signal);
  border-radius: 1px;
  background: linear-gradient(135deg, var(--signal) 0 50%, transparent 50% 100%);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, .1);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.brand:hover .brand-glyph {
  box-shadow: 0 0 0 5px rgba(255, 106, 26, .16);
  transform: rotate(90deg);
}

.brand-word {
  display: inline-flex;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.24rem;
  line-height: 1;
  letter-spacing: -.015em;
}

.brand-word__main { color: var(--text); }
.brand-word__suffix { color: var(--signal); }

/* 主导航 */
.header-nav { justify-self: center; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, .5vw, 8px);
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--raise);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 头部工具区 */
.header-utility {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.round-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 12, 27, .62);
}

.round-chip__label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--text-mute);
}

.round-chip__value {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--signal);
  display: inline-block;
}

.round-chip__value.is-pulse { animation: round-pulse .42s var(--ease); }

@keyframes round-pulse {
  0% { opacity: 1; transform: translateY(0); }
  42% { opacity: .3; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.round-chip__steps { display: inline-flex; gap: 2px; }

.round-chip__step {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--raise);
  color: var(--text-dim);
  font-size: .82rem;
  line-height: 1;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}

.round-chip__step:hover { background: var(--signal); color: #1c0a01; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raise);
  color: var(--text-dim);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
}

.nav-toggle__bars {
  display: inline-grid;
  gap: 4px;
  width: 16px;
}

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

.nav-toggle[aria-expanded="true"] {
  color: var(--signal);
  border-color: rgba(255, 106, 26, .55);
}

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color .18s var(--ease),
    color .18s var(--ease),
    border-color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.btn--accent {
  background: var(--signal);
  color: #1c0a01;
  box-shadow: 0 12px 28px -16px rgba(255, 106, 26, .9);
}
.btn--accent:hover { background: var(--signal-soft); }

.btn--cyan {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(47, 227, 210, .45);
}
.btn--cyan:hover {
  background: rgba(47, 227, 210, .12);
  color: var(--cyan-mist);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--text); border-color: var(--signal); }

.btn--compact { padding: 8px 15px; font-size: .85rem; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.container--wide { max-width: var(--shell-w-wide); }
.container--narrow { max-width: var(--shell-w-narrow); }

.grid { display: grid; gap: clamp(14px, 2.4vw, 26px); }
.grid--split { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.grid--half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--matrix { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- 小节标题 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  line-height: 1.2;
}

.section-head__title {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
}

.section-head__note {
  flex: 1 1 100%;
  font-size: .92rem;
  color: var(--text-dim);
}

/* ---------- 面板与标签 ---------- */
.surface {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 24px);
  transition:
    border-color .18s var(--ease),
    background-color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.surface--raise { background: var(--raise); }

.surface--hoverable:hover {
  border-color: rgba(255, 106, 26, .55);
  box-shadow: 0 22px 42px -32px rgba(255, 106, 26, .75);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  line-height: 1.5;
  color: var(--text-dim);
}

.tag--signal {
  color: var(--signal);
  border-color: rgba(255, 106, 26, .42);
  background: rgba(255, 106, 26, .08);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(47, 227, 210, .36);
  background: rgba(47, 227, 210, .08);
}

.tag--live {
  color: var(--live);
  border-color: rgba(79, 208, 138, .42);
  background: rgba(79, 208, 138, .08);
}

/* ---------- 数据块 ---------- */
.stat-block { display: flex; flex-direction: column; gap: 5px; }

.stat-block__value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--signal);
}

.stat-block__value--cyan { color: var(--cyan); }

.stat-block__label {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--text-dim);
}

/* ---------- 横向通栏 ---------- */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(14, 23, 48, .92) 0%, rgba(7, 12, 27, .38) 100%);
  padding: clamp(20px, 3vw, 34px) 0;
}

/* ---------- 分隔线 ---------- */
.rule { height: 1px; border: 0; background: var(--line); }
.rule--dashed { height: 0; background: none; border-top: 1px dashed var(--line); }
.rule--cyan {
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .6;
}

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.prose h2, .prose h3, .prose h4 {
  color: var(--text);
  line-height: 1.2;
  margin: 1.8em 0 .6em;
}
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); }
.prose h3 { font-size: 1.22rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose p { margin: 0 0 1.05em; }

.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.15em; }

.prose ul li { position: relative; margin-bottom: .45em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: .72em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: .45em; }

.prose a {
  color: var(--cyan-mist);
  border-bottom: 1px solid rgba(47, 227, 210, .35);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.prose a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

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

/* ---------- 面包屑 ---------- */
.breadcrumbs { margin-bottom: clamp(18px, 3vw, 30px); }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--text-mute);
}

.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before { content: "/"; color: #2c3f6c; }

.breadcrumb-link { transition: color .16s var(--ease); }
.breadcrumb-link:hover { color: var(--signal); }
.breadcrumb-current { color: var(--cyan-mist); }

/* ---------- 图片容器（基础规则，页面阶段放图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  aspect-ratio: 16 / 9;
}

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

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

.media-frame__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(36, 52, 92, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 52, 92, .55) 1px, transparent 1px);
  background-size: 36px 36px;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-dim);
  background: linear-gradient(0deg, rgba(7, 12, 27, .92), rgba(7, 12, 27, 0));
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--deep);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 227, 210, .7), transparent);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 32px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
}

.brand--footer .brand-word { font-size: 1.4rem; }

.footer-tagline {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--text-mute);
  white-space: nowrap;
}

.footer-contact__value {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-dim);
  word-break: break-word;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan-mist);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.footer-list { display: grid; gap: 10px; }

.footer-link {
  position: relative;
  display: inline-block;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text-dim);
  transition: color .18s var(--ease);
}

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

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

.footer-bottom {
  margin-top: clamp(32px, 5vw, 56px);
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .03em;
  line-height: 1.7;
  color: var(--text-mute);
}

.footer-meta--dim { color: var(--text-mute); opacity: .72; }

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-hidden { opacity: 0; transform: translateY(16px); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 响应式：平板 ---------- */
@media (max-width: 1020px) {
  .grid--split,
  .grid--half,
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }

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

  .header-shell { grid-template-columns: auto 1fr; }

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

  .round-chip { display: none; }

  .header-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    bottom: auto;
    left: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    background: rgba(9, 15, 33, .97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 34px 64px -34px rgba(0, 0, 0, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
      opacity .18s var(--ease),
      transform .18s var(--ease),
      visibility .18s var(--ease),
      max-height .22s var(--ease),
      padding .22s var(--ease);
  }

  .header-nav[data-open] {
    padding: 10px;
    max-height: min(72vh, 520px);
    overflow: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .98rem;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--text);
    background: var(--raise);
    box-shadow: inset 2px 0 0 var(--signal);
  }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 620px) {
  html { scroll-padding-top: 96px; }

  body { padding-top: 78px; }

  .site-header { padding: 8px 10px; }

  .header-shell {
    padding: 8px 8px 8px 14px;
    gap: 8px;
    border-radius: 22px;
  }

  .brand-word { font-size: 1.1rem; }

  .btn--compact { padding: 8px 12px; font-size: .8rem; }

  .nav-toggle { padding: 8px 10px; }
  .nav-toggle__label { display: none; }

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

  .footer-contact__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

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

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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