/* ==========================================================================
   万博手机 · 共享样式表 /assets/site.css
   夜间球场 × 数据终端 · 碳黑底 + 深墨绿分区 + 青柠高亮 + 1px 精密网格
   ========================================================================== */

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

html {
  -webkit-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; }

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

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

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

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

/* ---------- 变量 ---------- */
:root {
  --carbon: #0A0F0D;
  --deep: #0F2A22;
  --card: #14382D;
  --lime: #C6FF3D;
  --cyan: #2FD4C6;
  --mint: #3DE8A0;
  --amber: #FFB020;
  --amber-deep: #7A4A00;
  --warm: #F2F5EF;
  --sage: #7E8C85;

  --line: rgba(126, 140, 133, 0.28);
  --line-strong: rgba(126, 140, 133, 0.52);
  --line-lime: rgba(198, 255, 61, 0.4);

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

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-28: 28px;
  --fs-44: 44px;
  --fs-64: 64px;

  --shell: 1180px;
  --gutter: 20px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--carbon);
  background-image:
    repeating-linear-gradient(90deg, rgba(126, 140, 133, 0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(126, 140, 133, 0.035) 0 1px, transparent 1px 72px);
  color: var(--warm);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.3; letter-spacing: 0.01em; }

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

:target { scroll-margin-top: 150px; }

#main-content { display: block; scroll-margin-top: 150px; }

::selection { background: var(--lime); color: var(--carbon); }

/* ---------- 容器与通用工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) 64px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -140%);
  padding: 12px 22px;
  background: var(--lime);
  color: var(--carbon);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 15, 13, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 18px 14px;
  transition: padding 0.3s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--warm);
  transition: font-size 0.3s var(--ease), color 0.2s var(--ease);
}

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

.brand__tag {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  color: var(--cyan);
  white-space: nowrap;
  transition: font-size 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--warm);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 16px;
  height: 11px;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--lime);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease), bottom 0.25s var(--ease);
}

.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { bottom: 0; }

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

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

/* 导航条 */
.site-nav {
  position: relative;
  background: var(--deep);
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-list__item + .nav-list__item { border-left: 1px solid var(--line); }

.nav-list__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sage);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-list__link:hover {
  color: var(--warm);
  background: rgba(198, 255, 61, 0.06);
}

.nav-list__link[aria-current="page"] { color: var(--lime); }

.nav-list__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 6px;
  height: 2px;
  background: var(--lime);
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  pointer-events: none;
}

/* 页头收拢态 */
.site-header[data-condensed] .masthead { padding-block: 7px; }
.site-header[data-condensed] .brand__name { font-size: var(--fs-20); }
.site-header[data-condensed] .brand__tag { font-size: 10px; letter-spacing: 0.16em; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
}

.footer-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--line);
}

.footer-masthead__brand {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--warm);
  transition: color 0.2s var(--ease);
}

.footer-masthead__brand:hover { color: var(--lime); }

.footer-masthead__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-masthead__note {
  flex: 1 1 280px;
  min-width: 220px;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--sage);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 36px 0 46px;
}

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sage);
}

.footer-list li + li { margin-top: 2px; }

.footer-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: var(--fs-14);
  color: var(--warm);
  transition: color 0.2s var(--ease);
}

.footer-list a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}

.footer-list a:hover { color: var(--lime); }
.footer-list a:hover::before { width: 18px; background: var(--lime); }

.footer-contact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
  font-size: var(--fs-12);
  line-height: 1.7;
}

.footer-contact__key {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--sage);
}

.footer-contact__value {
  color: var(--warm);
  word-break: break-word;
}

.footer-base {
  background: var(--carbon);
  border-top: 1px solid var(--line);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding: 18px 0;
  font-size: var(--fs-12);
  color: var(--sage);
}

.footer-base__meta { letter-spacing: 0.04em; }

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.footer-base__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--sage);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-base__links a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--warm);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--carbon);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--carbon);
}

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

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

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 22px 0 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--sage);
}

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

.breadcrumb__list li + li::before {
  content: "";
  width: 6px;
  height: 1px;
  background: var(--line-strong);
}

.breadcrumb__item a { color: var(--sage); transition: color 0.2s var(--ease); }
.breadcrumb__item a:hover { color: var(--cyan); }
.breadcrumb__item a[aria-current="page"] { color: var(--warm); }

/* ---------- 正文 ---------- */
.lede {
  max-width: 62ch;
  font-size: var(--fs-18);
  line-height: 1.75;
  color: var(--sage);
}

.prose {
  max-width: 74ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--warm);
}

.prose > * + * { margin-top: 18px; }

.prose h2 {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  line-height: 1.35;
  color: var(--warm);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 30px;
  font-size: var(--fs-20);
  font-weight: 600;
  color: var(--warm);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(47, 212, 198, 0.4);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.prose a:hover { color: var(--lime); border-bottom-color: var(--lime); }

.prose li {
  position: relative;
  padding-left: 18px;
}

.prose li + li { margin-top: 8px; }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.prose strong { color: var(--lime); font-weight: 600; }

.prose blockquote {
  padding-left: 18px;
  border-left: 2px solid var(--lime);
  color: var(--sage);
}

.prose code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ---------- 章节带 ---------- */
.section { padding: 54px 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section__heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--warm);
}

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 资料卡 ---------- */
.card {
  position: relative;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--lime);
}

.card:hover {
  border-color: rgba(198, 255, 61, 0.34);
  transform: translateY(-2px);
}

.card__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.card__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 600;
  line-height: 1.4;
  color: var(--warm);
}

.card__body {
  margin-top: 10px;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--sage);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--sage);
  white-space: nowrap;
}

.tag--lime {
  color: var(--lime);
  border-color: var(--line-lime);
  background: rgba(198, 255, 61, 0.08);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(47, 212, 198, 0.4);
  background: rgba(47, 212, 198, 0.08);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 176, 32, 0.42);
  background: rgba(122, 74, 0, 0.28);
}

/* ---------- 数据指标 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: var(--fs-28);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--lime);
}

.stat__label {
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--sage);
}

.stat--amber .stat__value { color: var(--amber); }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--deep);
  background-image:
    linear-gradient(135deg, rgba(15, 42, 34, 0.92), rgba(10, 15, 13, 0.92)),
    repeating-linear-gradient(90deg, rgba(126, 140, 133, 0.14) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(126, 140, 133, 0.1) 0 1px, transparent 1px 40px);
}

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

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

/* ---------- 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--carbon); }

  .masthead {
    justify-content: space-between;
    padding-block: 12px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .brand__name { font-size: var(--fs-20); letter-spacing: 0.06em; }

  .brand__tag {
    padding-left: 0;
    border-left: 0;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .site-nav[data-open] {
    max-height: 74vh;
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 16px;
  }

  .nav-list__item + .nav-list__item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav-list__link {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 2px;
    font-size: var(--fs-16);
  }

  .nav-list__link[aria-current="page"]::after {
    left: 2px;
    right: auto;
    bottom: 10px;
    width: 16px;
  }

  .footer-list a { min-height: 44px; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }

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

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

  .footer-masthead { padding-top: 32px; }
  .footer-masthead__brand { font-size: var(--fs-20); }

  .footer-base__links { margin-left: 0; }

  .section { padding: 40px 0; }
  .section__title { font-size: var(--fs-20); }
  .prose h2 { font-size: var(--fs-20); }
  .stat__value { font-size: var(--fs-20); }
}

/* ---------- 降低动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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