/* =========================================================
   三亿赛场 · 共享样式 /assets/site.css
   夜间赛场指挥中心：侧边品牌轨道 + 右上悬浮胶囊 + 连续画布
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
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%; }

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

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

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

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

/* ---------- 2. Design tokens ---------- */
:root {
  /* 色板 */
  --bg:          #07120F;
  --bg-2:        #0E1F1A;
  --panel:       #123028;
  --line:        #1B4A3C;
  --line-soft:   rgba(27, 74, 60, .55);
  --cyan:        #00E5C0;
  --cyan-soft:   #7CF7DE;
  --orange:      #FF6B2C;
  --white:       #E8F4F0;
  --muted:       #9DB5AE;
  --dim:         #4D6A62;

  /* 排版 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num:  "JetBrains Mono", ui-monospace, "SF Mono", "Roboto Mono",
               Menlo, Consolas, monospace;

  /* 尺寸 */
  --rail:   236px;
  --shell:  1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --gap:    24px;

  /* 层级 */
  --z-head: 60;
  --z-skip: 200;
}

/* ---------- 3. 全局底纹 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 100% -10%, rgba(0, 229, 192, .085), transparent 62%),
    radial-gradient(900px 540px at 55% 112%, rgba(255, 107, 44, .055), transparent 60%),
    repeating-linear-gradient(112deg, rgba(27, 74, 60, .17) 0 1px, transparent 1px 92px);
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
  padding-top: clamp(80px, 8vw, 104px);
}

#main-content { scroll-margin-top: 24px; }

/* ---------- 4. 排版基础 ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
}

h1 { font-size: clamp(44px, 6vw, 84px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.4; }

p { max-width: 68ch; }
small { font-size: 12px; }

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .03em;
}

.num--xl {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.02em;
  color: var(--cyan);
}

/* ---------- 5. 无障碍跳转条 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  pointer-events: auto;
  padding: 12px 20px;
  border-radius: 2px;
  background: var(--cyan);
  color: #04120E;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform .22s ease;
}

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

/* ---------- 6. 页头：固定浮层 ---------- */
.site-head {
  position: fixed;
  inset: 0;
  z-index: var(--z-head);
  pointer-events: none;
}

/* 6.1 左侧品牌轨道 */
.brand-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 34px 24px 30px;
  pointer-events: auto;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 229, 192, .07), transparent 26%),
    linear-gradient(180deg, #0A1713 0%, #08150F 55%, #07120F 100%);
  overflow: hidden;
}

.brand-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(27, 74, 60, .3) 0 1px, transparent 1px 34px);
  opacity: .5;
  pointer-events: none;
}

.brand-rail > * { position: relative; z-index: 1; }

.brand-rail__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.brand__glyph {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  flex: 0 0 auto;
}

.brand__glyph i {
  display: block;
  width: 3px;
  background: var(--cyan);
  border-radius: 1px;
}

.brand__glyph i:nth-child(1) { height: 9px;  opacity: .45; }
.brand__glyph i:nth-child(2) { height: 15px; opacity: .7; }
.brand__glyph i:nth-child(3) { height: 22px; opacity: 1; }

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

.brand:hover .brand__name { color: var(--cyan-soft); }

.brand__tagline {
  max-width: none;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: .02em;
}

.brand-rail__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  align-self: center;
  flex: 1 1 auto;
  width: 12px;
  padding-block: 8px;
}

.rail-rule {
  width: 1px;
  flex: 1 1 auto;
  min-height: 26px;
  background: linear-gradient(180deg, transparent, var(--line) 22%, var(--line) 78%, transparent);
}

.rail-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 192, .55);
  animation: rail-pulse 2.4s ease-out infinite;
  flex: 0 0 auto;
}

@keyframes rail-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 229, 192, .5); }
  70%  { box-shadow: 0 0 0 13px rgba(0, 229, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 192, 0); }
}

.brand__status {
  max-width: none;
  font-family: var(--font-num);
  font-size: 11.5px;
  line-height: 1.95;
  letter-spacing: .02em;
  color: var(--dim);
}

.brand__status b {
  color: var(--cyan);
  font-weight: 600;
}

/* 6.2 右上悬浮胶囊 */
.nav-dock {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.nav {
  display: flex;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(27, 74, 60, .95);
  background: rgba(10, 26, 21, .82);
  box-shadow:
    0 22px 48px -28px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(124, 247, 222, .07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

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

.nav__item { display: block; }

.nav__link {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.nav__link:hover { color: var(--white); background: rgba(0, 229, 192, .1); }

.nav__link[aria-current="page"] {
  color: #04120E;
  background: var(--cyan);
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(0, 229, 192, .55),
    0 0 24px -6px rgba(0, 229, 192, .8);
}

/* 6.3 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(27, 74, 60, .95);
  background: rgba(10, 26, 21, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--white);
  transition: border-color .2s ease, color .2s ease;
}

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

.nav-toggle__label {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .16em;
}

.nav-toggle__bar {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: background-color .2s ease;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .26s ease, top .26s ease;
}

.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after  { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 7. 页脚 ---------- */
.site-foot {
  margin-top: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 340px at 0% 0%, rgba(0, 229, 192, .07), transparent 62%),
    repeating-linear-gradient(90deg, rgba(27, 74, 60, .28) 0 1px, transparent 1px 96px),
    #091612;
}

.site-foot__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foot-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--white);
  transition: color .2s ease;
}

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

.foot-brand__note {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.foot-brand__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--cyan);
}

.foot-link { color: var(--cyan); }
.foot-sep  { color: var(--dim); }

.foot-brand__addr {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
}

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

.foot-nav__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.foot-nav__title {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--dim);
  text-transform: uppercase;
}

.foot-nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease, transform .2s ease;
}

.foot-nav__link::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--line);
  transition: width .2s ease, background-color .2s ease;
}

.foot-nav__link:hover { color: var(--cyan-soft); transform: translateX(3px); }
.foot-nav__link:hover::before { width: 18px; background: var(--cyan); }

.site-foot__base {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
}

.foot-legal { max-width: none; }
.foot-copy  { max-width: none; }

/* ---------- 8. 通用布局与内容组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.rule {
  display: block;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), transparent 78%);
}

/* 8.1 索引标签 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: .6;
}

/* 8.2 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--dim);
}

.crumbs a { color: var(--muted); transition: color .2s ease; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span[aria-current="page"] { color: var(--white); }

/* 8.3 战术板面板 */
.board {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 229, 192, 0) 65%);
  opacity: .55;
}

.board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

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

.board__meta {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--dim);
}

/* 8.4 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
}

.tag--live {
  border-color: rgba(0, 229, 192, .55);
  color: var(--cyan);
  background: rgba(0, 229, 192, .09);
}

.tag--warn {
  border-color: rgba(255, 107, 44, .55);
  color: var(--orange);
  background: rgba(255, 107, 44, .1);
  font-size: 13px;
  letter-spacing: .08em;
}

.tag--muted {
  border-color: var(--line-soft);
  color: var(--dim);
}

/* 8.5 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 1.4;
  transition: background-color .22s ease, border-color .22s ease,
              color .22s ease, transform .22s ease;
}

.btn:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120E;
  font-weight: 700;
}

.btn--solid:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  color: #04120E;
}

.btn--ghost {
  border-color: transparent;
  padding-inline: 4px;
  color: var(--muted);
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 12.5px;
}

/* 8.6 图片容器基础规则 */
.media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(0, 229, 192, .1), transparent 60%),
    var(--panel);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1.04);
}

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

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: linear-gradient(180deg, transparent, rgba(7, 18, 15, .92));
}

/* ---------- 9. 交互状态（JS 协议） ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease-out, transform .4s ease-out;
}

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

[data-filter-key] {
  transition: opacity .28s ease, transform .28s ease;
}

[data-filter-key].is-filtered {
  opacity: .2;
  transform: scale(.985);
  pointer-events: none;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1280px) {
  .nav__link { padding: 8px 12px; font-size: 12.5px; }
}

@media (max-width: 1080px) {
  :root { --rail: 0px; }

  body { padding-left: 0; padding-top: 64px; }

  main { padding-top: 30px; }

  #main-content { scroll-margin-top: 78px; }

  .brand-rail {
    position: fixed;
    inset: 0 0 auto 0;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0 108px 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 18, 15, .93);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overflow: visible;
  }

  .brand-rail::after { display: none; }

  .brand-rail__top { flex-direction: row; align-items: center; gap: 12px; width: auto; }

  .brand__tagline { display: none; }

  .brand-rail__mid,
  .brand__status { display: none; }

  .brand__name { font-size: 17px; }

  .nav-dock {
    position: fixed;
    top: 11px;
    right: 12px;
    gap: 8px;
  }

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

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: block;
    padding: 10px 12px 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: rgba(9, 22, 18, .97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s ease, visibility .24s;
  }

  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav__item { width: 100%; }

  .nav__link {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 15px;
    color: var(--muted);
  }

  .nav__link[aria-current="page"] { border-radius: 6px; }

  .site-foot__inner { grid-template-columns: 1fr; }

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

@media (max-width: 720px) {
  .site-foot__inner { padding-top: 40px; }

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

  .site-foot__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

@media (max-width: 460px) {
  .foot-nav { grid-template-columns: 1fr; }
  .nav-dock { gap: 6px; }
  .nav-toggle { padding: 0 13px; }
}

/* ---------- 11. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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