/* ===========================================================
   安博体育 · 数据主场 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   =========================================================== */

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--cool);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, 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; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }
abbr[title] { text-decoration: none; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --night:      #071A24;
  --deep:       #0E3A4F;
  --ridge:      #156A8A;
  --signal:     #4FD1E0;
  --amber:      #FF6A2B;
  --spot:       #D8321F;
  --lime:       #B9F227;
  --cool:       #E6EEF3;
  --cool-mid:   #8A9BA6;
  --paper:      #F2EFE6;

  --font-serif:  "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans:   "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-narrow: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono:   ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Roboto Mono", monospace;

  --step-12: 12px;
  --step-14: 14px;
  --step-16: 16px;
  --step-20: 20px;

  --radius:  2px;
  --radius-organic: 22px 4px 22px 4px;
  --header-h: 104px;
}

@media (max-width: 640px) {
  :root { --header-h: 96px; }
}

/* ---------- 3. 中文排版与容器 ---------- */
.shell {
  width: min(1440px, 100% - 48px);
  margin-inline: auto;
}

.site-main {
  display: block;
  padding-top: calc(var(--header-h) + 8px);
}

.section { padding-block: 72px; }
.section + .section { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--cool-mid);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--lime);
}

.title-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--cool);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
}

.lead {
  max-width: 68ch;
  color: var(--cool-mid);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  line-height: 1.8;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--ridge), rgba(21, 106, 138, 0));
  border: 0;
}

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

/* ---------- 4. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  color: var(--cool);
  background: linear-gradient(180deg, rgba(7, 26, 36, 0.92) 0%, rgba(7, 26, 36, 0.62) 62%, rgba(7, 26, 36, 0) 100%);
  border-bottom: 1px solid rgba(21, 106, 138, 0);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled] {
  background: linear-gradient(180deg, var(--deep) 0%, #0A2530 100%);
  border-bottom-color: rgba(21, 106, 138, 0.85);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.95);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

.status-bar {
  border-bottom: 1px solid rgba(21, 106, 138, 0.45);
  background: rgba(7, 26, 36, 0.55);
}
.site-header[data-scrolled] .status-bar { background: rgba(7, 26, 36, 0.35); }

.status-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  padding: 7px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--cool-mid);
}

.status-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  display: inline-block;
}
.dot--lime   { background: var(--lime);   box-shadow: 0 0 0 3px rgba(185, 242, 39, 0.14); }
.dot--signal { background: var(--signal); box-shadow: 0 0 0 3px rgba(79, 209, 224, 0.14); }
.dot--amber  { background: var(--amber);  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.16); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0 13px;
}

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

.brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--signal);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 22%, rgba(79, 209, 224, 0.26), rgba(79, 209, 224, 0) 64%);
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: rgba(79, 209, 224, 0.72);
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(79, 209, 224, 0.55);
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cool);
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--signal);
}

.header-bar__tagline {
  max-width: 210px;
  padding-left: 18px;
  border-left: 1px solid rgba(21, 106, 138, 0.75);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--cool-mid);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.site-nav__list a {
  position: relative;
  display: block;
  padding: 9px 13px;
  font-family: var(--font-narrow);
  font-size: 14px;
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: 0.1em;
  color: var(--cool-mid);
  transition: color 0.2s ease;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.site-nav__list a:hover { color: var(--cool); }
.site-nav__list a:hover::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"] { color: var(--amber); }
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
}

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 70;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(79, 209, 224, 0.42);
  border-radius: var(--radius);
  font-family: var(--font-narrow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cool);
}
.nav-toggle:hover { border-color: var(--signal); }

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
  flex: none;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--signal);
  transition: top 0.24s ease, bottom 0.24s ease, transform 0.24s ease;
}
.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { bottom: 1px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: 5px; transform: rotate(-45deg); }

.rail-scale {
  position: relative;
  height: 9px;
  border-top: 1px solid rgba(21, 106, 138, 0.55);
  background-image:
    repeating-linear-gradient(90deg, rgba(79, 209, 224, 0.46) 0 1px, rgba(0, 0, 0, 0) 1px 22px),
    repeating-linear-gradient(90deg, rgba(79, 209, 224, 0.2) 0 1px, rgba(0, 0, 0, 0) 1px 5.5px);
  background-size: 100% 9px, 100% 5px;
  background-position: 0 0, 0 0;
  background-repeat: repeat-x, repeat-x;
  transition: background-color 0.3s ease;
}
.site-header[data-scrolled] .rail-scale { background-color: rgba(7, 26, 36, 0.55); }

.rail-scale__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(79, 209, 224, 0.9), var(--amber));
  opacity: 0.92;
  will-change: transform;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  padding: 76px 0 34px;
  background: linear-gradient(180deg, #0A2530 0%, var(--night) 62%);
  border-top: 1px solid rgba(21, 106, 138, 0.6);
  color: var(--cool);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--lime) 0 3px, rgba(0, 0, 0, 0) 3px 44px);
  opacity: 0.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.15fr 0.85fr;
  gap: 40px 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-brand__note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--cool-mid);
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(21, 106, 138, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cool-mid);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cool-mid);
}
.footer-col__list a {
  color: var(--cool);
  transition: color 0.2s ease;
}
.footer-col__list a:hover { color: var(--signal); }

.footer-rule {
  height: 1px;
  margin: 54px 0 20px;
  background: linear-gradient(90deg, rgba(21, 106, 138, 0.9), rgba(21, 106, 138, 0.05));
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 30px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cool-mid);
}
.footer-meta__line { font-family: var(--font-mono); letter-spacing: 0.03em; }
.footer-meta__line--dim { color: rgba(138, 155, 166, 0.78); }

/* ---------- 6. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-narrow);
  font-size: 14px;
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: 0.09em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--amber {
  background: var(--amber);
  color: #06141C;
}
.btn--amber:hover { background: #FF8A55; }

.btn--ghost {
  border-color: rgba(79, 209, 224, 0.5);
  color: var(--signal);
}
.btn--ghost:hover {
  border-color: var(--signal);
  background: rgba(79, 209, 224, 0.08);
  color: var(--cool);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--cool-mid);
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__item + .crumbs__item::before {
  content: "/";
  color: rgba(21, 106, 138, 0.95);
}
.crumbs a { transition: color 0.2s ease; }
.crumbs a:hover { color: var(--signal); }
.crumbs [aria-current="page"] { color: var(--cool); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.tag--lime  { color: var(--lime);   background: rgba(185, 242, 39, 0.09); }
.tag--amber { color: var(--amber);  background: rgba(255, 106, 43, 0.1); }
.tag--spot  { color: var(--spot);   background: rgba(216, 50, 31, 0.12); }

.card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid rgba(21, 106, 138, 0.45);
  border-radius: var(--radius-organic);
  background: linear-gradient(160deg, rgba(14, 58, 79, 0.9), rgba(9, 32, 44, 0.94));
}
.card--paper {
  background: var(--paper);
  border-color: rgba(14, 58, 79, 0.22);
  color: var(--deep);
}
.card--paper .title-serif,
.card--paper a { color: var(--deep); }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(21, 106, 138, 0.45);
  border-radius: var(--radius-organic);
  background:
    linear-gradient(148deg, rgba(14, 58, 79, 0.92) 0%, rgba(21, 106, 138, 0.4) 46%, rgba(7, 26, 36, 0.96) 100%);
}
.media > img,
.media > svg,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide   { aspect-ratio: 21 / 9; }
.media--tall   { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(79, 209, 224, 0.14) 0 1px, rgba(0, 0, 0, 0) 1px 52px),
    repeating-linear-gradient(0deg, rgba(79, 209, 224, 0.1) 0 1px, rgba(0, 0, 0, 0) 1px 52px);
}

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

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table { font-size: 14px; }
.data-table caption {
  padding-bottom: 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cool-mid);
}
.data-table th {
  padding: 11px 12px;
  text-align: left;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cool-mid);
  border-bottom: 1px solid var(--ridge);
}
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(21, 106, 138, 0.28);
  line-height: 1.6;
}
.data-table tbody tr { transition: background-color 0.16s ease; }
.data-table tbody tr:hover { background: rgba(21, 106, 138, 0.16); }

[data-section-link] {
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 2px solid rgba(21, 106, 138, 0.5);
  font-family: var(--font-narrow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cool-mid);
  transition: color 0.2s ease, border-color 0.2s ease;
}
[data-section-link]:hover { color: var(--cool); }
[data-section-link][aria-current="true"] {
  color: var(--amber);
  border-left-color: var(--amber);
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.has-js [data-reveal][data-visible] {
  opacity: 1;
  transform: none;
}

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .header-bar__tagline { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 55;
    margin: 0;
    padding: 128px 24px 44px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B2E3E 0%, var(--night) 48%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__list li { border-bottom: 1px solid rgba(21, 106, 138, 0.35); }
  .site-nav__list a {
    padding: 17px 4px;
    font-size: 19px;
    letter-spacing: 0.08em;
    color: var(--cool);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current="page"] { color: var(--amber); }

  .nav-cta {
    align-self: flex-start;
    margin-top: 28px;
  }

  body.nav-open { overflow: hidden; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 28px; }
  .site-footer { padding-top: 60px; }
}

@media (max-width: 720px) {
  .status-bar__item--version { display: none; }
  .section { padding-block: 54px; }
  .site-footer { margin-top: 66px; }
}

@media (max-width: 560px) {
  .shell { width: min(1440px, 100% - 32px); }
  .status-bar__item--update { display: none; }
  .status-bar__inner { font-size: 11px; letter-spacing: 0.05em; }
  .brand__name { font-size: 17px; }
  .brand__line { font-size: 10px; letter-spacing: 0.2em; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-meta { flex-direction: column; gap: 6px; }
}

/* ---------- 8. 减少动态效果 ---------- */
@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;
  }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-scale__fill { transition: none !important; }
}
