/* ============================================================
   万博体育站 — 共享样式 /assets/site.css
   夜间赛场指挥中心：深底、电光青数据、信号橙行动
   ============================================================ */

:root {
  /* 色彩体系 */
  --night: #060B0A;
  --ink: #0B1512;
  --panel: #12201C;
  --line: #23332E;
  --cyan: #35E8D0;
  --orange: #FF6A2B;
  --white: #EDF4F2;
  --mint: #8FA9A2;
  --glow: #1C5F58;
  --light: #DDE5E2;

  /* 形状 */
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;

  /* 尺度 */
  --gutter: clamp(16px, 4vw, 44px);
  --measure: min(100% - var(--gutter) * 2, 1320px);
  --header-h: 74px;

  /* 字体 */
  --font-sans: "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "SFMono-Regular", ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-panel: 0 24px 60px rgba(0, 0, 0, .45);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--white);
  background-color: var(--night);
  background-image:
    radial-gradient(1120px 640px at 88% -8%, rgba(28, 95, 88, .42), transparent 62%),
    radial-gradient(760px 520px at -6% 12%, rgba(53, 232, 208, .10), transparent 66%),
    radial-gradient(720px 520px at 62% 108%, rgba(255, 106, 43, .07), transparent 68%),
    linear-gradient(180deg, #060B0A 0%, #0B1512 46%, #0E1613 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 战术板栅格雾层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
  background-image:
    linear-gradient(to right, rgba(53, 232, 208, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 232, 208, .055) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(120% 92% at 50% 0%, #000 0%, transparent 78%);
}

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

ul, ol { margin: 0; padding: 0; }

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

img { height: auto; }

a { color: var(--cyan); text-decoration: none; }

a:hover { color: var(--white); }

button { font-family: inherit; }

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

::selection {
  background: rgba(53, 232, 208, .28);
  color: var(--white);
}

#main-content {
  position: relative;
  z-index: 1;
  scroll-margin-top: calc(var(--header-h) + 16px);
  display: block;
}

.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;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--night);
}

/* ---------- 顶部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 10, .93);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  width: var(--measure);
  margin-inline: auto;
  padding-block: 11px;
  min-height: var(--header-h);
}

/* 品牌轨道 */
.brand-rail {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  padding-right: clamp(12px, 2vw, 28px);
  border-right: 1px solid var(--line);
  min-height: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover { color: var(--white); }

.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
  height: 26px;
}

.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--cyan);
}

.brand-mark i:nth-child(1) { height: 11px; opacity: .7; }
.brand-mark i:nth-child(2) { height: 19px; background: var(--orange); }
.brand-mark i:nth-child(3) { height: 26px; }

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
}

.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: .22em;
  line-height: 1.4;
  color: var(--mint);
  text-transform: uppercase;
}

/* 轮次小牌 */
.round-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid rgba(53, 232, 208, .34);
  border-radius: var(--r-pill);
  background: rgba(53, 232, 208, .07);
}

.round-badge__label {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--mint);
  text-transform: uppercase;
}

.round-badge__num {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(18, 32, 28, .92);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover { border-color: rgba(53, 232, 208, .5); }

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

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

.site-header[data-open] .nav-toggle {
  border-color: rgba(53, 232, 208, .6);
  color: var(--cyan);
}

.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 导航与行动区 */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 28px);
  min-width: 0;
}

.primary-nav { display: block; min-width: 0; }

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

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  color: var(--mint);
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.nav-link__index {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(143, 169, 162, .62);
  transition: color .2s var(--ease);
}

.nav-link__label { display: inline-block; }

.nav-link:hover {
  color: var(--white);
  background: rgba(53, 232, 208, .08);
}

.nav-link:hover .nav-link__index { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(53, 232, 208, .13);
  box-shadow: inset 0 0 0 1px rgba(53, 232, 208, .45);
}

.nav-link[aria-current="page"] .nav-link__index { color: var(--cyan); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(255, 106, 43, .26);
}

.btn--primary:hover {
  background: #ff7f47;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 106, 43, .34);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(18, 32, 28, .8);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: rgba(53, 232, 208, .55);
  color: var(--cyan);
}

/* 阅读进度条 */
.header-progress {
  height: 2px;
  background: rgba(35, 51, 46, .9);
  overflow: hidden;
}

.header-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width .12s linear;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 21, 18, .55), rgba(6, 11, 10, .96));
}

.footer-frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  width: var(--measure);
  margin-inline: auto;
  padding-block: clamp(36px, 5vw, 64px);
}

.footer-brand { max-width: 40ch; }

.footer-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mint);
  letter-spacing: .02em;
}

.footer-note--small {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(143, 169, 162, .78);
}

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

.footer-contact div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer-contact dt {
  padding-top: 2px;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(143, 169, 162, .68);
  text-transform: uppercase;
}

.footer-contact dd {
  font-size: 13px;
  line-height: 1.65;
  color: var(--mint);
  word-break: break-word;
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
}

.footer-links a {
  color: var(--mint);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: var(--measure);
  margin-inline: auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-legal__line {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(143, 169, 162, .82);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  font-size: 12px;
}

.footer-legal__links a {
  color: var(--mint);
  text-decoration: none;
  transition: color .2s var(--ease);
}

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

/* ---------- 通用布局 ---------- */
.container {
  width: var(--measure);
  margin-inline: auto;
}

.section { padding-block: clamp(36px, 6vw, 88px); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 64ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.display {
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--mint);
  max-width: 36em;
}

.muted { color: var(--mint); }

.stack {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.split {
  display: grid;
  gap: clamp(20px, 3vw, 44px);
}

/* ---------- 面板与标签 ---------- */
.panel {
  padding: clamp(18px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(18, 32, 28, .94), rgba(11, 21, 18, .94));
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.panel:hover {
  border-color: rgba(53, 232, 208, .45);
  box-shadow: inset 0 0 0 1px rgba(53, 232, 208, .16), 0 22px 48px rgba(0, 0, 0, .42);
}

.panel--light {
  background: var(--light);
  border-color: transparent;
  color: var(--ink);
}

.panel--light .muted { color: #3F5A53; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(18, 32, 28, .82);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--mint);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(53, 232, 208, .42);
  background: rgba(53, 232, 208, .08);
}

.tag--orange {
  color: #FFB08A;
  border-color: rgba(255, 106, 43, .46);
  background: rgba(255, 106, 43, .1);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.num {
  font-family: var(--font-num);
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.num--xl {
  font-size: clamp(48px, 9vw, 120px);
  line-height: .92;
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, rgba(28, 95, 88, .55), rgba(11, 21, 18, .96)),
    repeating-linear-gradient(90deg, rgba(53, 232, 208, .12) 0 1px, transparent 1px 44px);
}

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

.media-frame > picture { display: block; }

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

.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 12px;
  border: 1px solid rgba(53, 232, 208, .3);
  border-radius: var(--r-pill);
  background: rgba(6, 11, 10, .78);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mint);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "›";
  color: rgba(143, 169, 162, .5);
}

.crumbs a {
  color: var(--mint);
  text-decoration: none;
}

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

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

/* ---------- 可展开内容组 ---------- */
.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 32, 28, .74);
  overflow: hidden;
  transition: border-color .24s var(--ease);
}

.disclosure + .disclosure { margin-top: 10px; }

.disclosure:hover { border-color: rgba(53, 232, 208, .3); }

.disclosure[data-open] {
  border-color: rgba(53, 232, 208, .42);
  background: linear-gradient(160deg, rgba(18, 32, 28, .96), rgba(11, 21, 18, .96));
}

.disclosure__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  background: none;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}

.disclosure__marker {
  flex: 0 0 auto;
  width: 3px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--line);
  transition: background-color .24s var(--ease), box-shadow .24s var(--ease);
}

.disclosure[data-open] .disclosure__marker {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 232, 208, .8);
}

.disclosure__label { flex: 1 1 auto; min-width: 0; }

.disclosure__trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
  transition: transform .24s var(--ease);
}

.disclosure[data-open] .disclosure__trigger::after { content: "−"; }

.disclosure__panel {
  display: none;
  padding: 0 20px 20px 37px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mint);
}

.disclosure[data-open] .disclosure__panel { display: block; }

/* ---------- 延伸链接 ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform .2s var(--ease);
}

.link-arrow:hover { color: var(--white); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 入场动效 ---------- */
[data-reveal] {
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}

[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(12px);
}

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

/* ---------- 平板 ---------- */
@media (min-width: 720px) {
  .footer-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .split--reverse { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
}

@media (min-width: 1080px) {
  .footer-frame { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* ---------- 移动端折叠导航 ---------- */
@media (max-width: 999px) {
  .header-frame {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 9px;
  }

  .brand-rail {
    border-right: 0;
    padding-right: 0;
    min-height: 40px;
  }

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

  .header-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: linear-gradient(180deg, rgba(11, 21, 18, .99), rgba(14, 22, 19, .99));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  }

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

  .primary-nav { display: block; }

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

  .nav-link {
    width: 100%;
    padding: 14px 14px;
    border-radius: var(--r-md);
    font-size: 16px;
  }

  .nav-link[aria-current="page"] {
    background: rgba(53, 232, 208, .12);
    box-shadow: inset 3px 0 0 0 var(--cyan);
  }

  .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .header-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .round-badge { display: none; }
  .brand-name { font-size: 16px; }
}

/* ---------- 减弱动效 ---------- */
@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],
  [data-reveal].is-armed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header-progress__bar { transition: none; }
}

@media (max-width: 899px) {
  body { background-attachment: scroll; }
}
