/* =========================================================
   天宝博体育 — 共享站点样式 /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, dl, dt, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1F1A;
  --ink-2: #12362D;
  --ink-3: #0d2721;
  --cyan: #45F0C2;
  --amber: #F3B84B;
  --coral: #FF6B5E;
  --paper: #F4EBDC;
  --mist: #9AB5AA;
  --graphite: #141A17;
  --white: #FFFFFF;
  --body-text: #DCE9E3;
  --body-dim: #C8DBD3;
  --line: rgba(69, 240, 194, 0.18);
  --line-soft: rgba(69, 240, 194, 0.10);
  --line-strong: rgba(69, 240, 194, 0.38);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.28);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 150px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(69, 240, 194, 0.035) 0 1px, transparent 1px 128px),
    radial-gradient(120% 70% at 50% -10%, rgba(69, 240, 194, 0.08), transparent 60%);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { display: block; }

#main-content { scroll-margin-top: calc(var(--header-h) + 8px); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.22;
  color: var(--white);
}

p { max-width: 78ch; }

strong { font-weight: 700; color: var(--white); }

::selection {
  background: var(--cyan);
  color: var(--graphite);
}

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

/* ---------- 4. 骨架与容器 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container--narrow { max-width: 820px; }

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

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

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

/* ---------- 5. 文字零件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-title {
  font-size: clamp(24px, 3.6vw, 42px);
  color: var(--white);
}

.section-lead {
  margin-top: 12px;
  font-size: 16px;
  color: var(--mist);
  max-width: 62ch;
}

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 6. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: rgba(69, 240, 194, 0.10);
  transform: translateY(-2px);
}

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

.btn--primary:hover { background: #6df7d2; color: var(--graphite); }

.btn--amber {
  border-color: rgba(243, 184, 75, 0.55);
  color: var(--amber);
}

.btn--amber:hover { background: var(--amber); color: var(--graphite); }

.btn--ghost { color: var(--body-text); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--cyan);
}

.tag--coral { color: var(--coral); border-color: rgba(255, 107, 94, 0.5); }
.tag--amber { color: var(--amber); border-color: rgba(243, 184, 75, 0.5); }

/* ---------- 7. 面板与卡片 ---------- */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 28px);
}

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.card--paper {
  background: var(--paper);
  color: var(--graphite);
  border-color: rgba(20, 26, 23, 0.14);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--white);
}

.card--paper .card-title { color: var(--graphite); }

.card-body {
  margin-top: 8px;
  font-size: 15px;
  color: var(--body-dim);
}

.card--paper .card-body { color: #333B34; }

.surface-paper {
  background: var(--paper);
  color: var(--graphite);
  border-block: 1px solid rgba(20, 26, 23, 0.14);
}

.surface-paper h2,
.surface-paper h3,
.surface-paper h4 { color: var(--graphite); }

.surface-paper .section-lead,
.surface-paper .note,
.surface-paper p { color: #3A423B; }

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb-item { display: inline-flex; align-items: center; }

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-inline: 8px;
  color: rgba(154, 181, 170, 0.45);
}

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

/* ---------- 9. 图片容器（供页面阶段放图） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 6; }
.media--landscape { aspect-ratio: 16 / 9; }

.media--halftone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(10, 31, 26, 0.55) 1px, transparent 1.4px);
  background-size: 4px 4px;
  opacity: 0.5;
}

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 10. 标签页与渐显协议 ---------- */
.tabs { position: relative; }

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

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

.tab[aria-selected="true"] {
  color: var(--amber);
  background: rgba(69, 240, 194, 0.06);
  border-color: var(--line-strong);
}

.tab-panel { padding-top: 18px; }
.tab-panel[hidden] { display: none; }

[data-reveal].is-visible {
  animation: reveal-in 0.5s var(--ease) both;
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 11. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(69, 240, 194, 0.045) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #0A1F1A 0%, #0d251f 100%);
  border-bottom: 1px solid var(--line);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 120;
  padding: 9px 16px;
  background: var(--cyan);
  color: var(--graphite);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(69, 240, 194, 0.12);
  overflow: hidden;
}

.header-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 10px rgba(69, 240, 194, 0.6);
}

.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-top: 2px;
}

.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.meta-issue { color: var(--amber); }
.meta-descriptor { color: var(--mist); }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-block: 12px 14px;
}

.masthead-note {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  max-width: none;
}

.brand {
  justify-self: center;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--white);
  transition: color 0.2s var(--ease);
}

.brand::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.55;
}

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

.masthead-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.masthead-cta {
  padding: 8px 14px;
  border: 1px solid rgba(243, 184, 75, 0.5);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.masthead-cta:hover { background: var(--amber); color: var(--graphite); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.nav-toggle-text { display: inline-block; }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: currentColor;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: rotate(-90deg);
}

.site-nav {
  border-top: 1px solid var(--line-soft);
}

.nav-list {
  counter-reset: nav-counter;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 2.2vw, 34px);
}

.nav-item { counter-increment: nav-counter; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 4px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--body-text);
}

.nav-link::before {
  content: counter(nav-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(154, 181, 170, 0.65);
  transition: color 0.18s var(--ease);
}

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

.nav-link:hover { color: var(--white); }
.nav-link:hover::before { color: var(--cyan); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

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

/* ---------- 12. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(69, 240, 194, 0.035) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, #0A1F1A 0%, #071612 100%);
  border-top: 1px solid var(--line-strong);
  color: var(--body-text);
}

.footer-inner {
  padding-block: clamp(36px, 5vw, 72px) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(20px, 3vw, 48px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--white);
  max-width: none;
}

.footer-tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  max-width: none;
}

.footer-return {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(243, 184, 75, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-return:hover { color: var(--white); border-color: var(--white); }

.footer-col { min-width: 0; }

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.footer-list a {
  font-size: 14px;
  color: var(--body-dim);
  transition: color 0.18s var(--ease);
}

.footer-list a:hover { color: var(--amber); }

.footer-contact { display: grid; gap: 12px; }

.contact-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: start;
}

.contact-row dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.contact-row dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--body-text);
  overflow-wrap: anywhere;
}

.footer-note {
  padding-block: 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 76ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.footer-icp { max-width: none; color: var(--body-dim); }

.footer-copy { max-width: none; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 118px; }

  .masthead {
    grid-template-columns: 1fr auto;
    padding-block: 10px 12px;
  }

  .masthead-note { display: none; }
  .masthead-cta { display: none; }
  .brand { justify-self: start; text-indent: 0.1em; letter-spacing: 0.1em; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    padding-block: 4px 12px;
  }

  .site-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }

  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    width: 100%;
    padding: 13px 4px;
    font-size: 16px;
  }

  .nav-link::after { left: 0; right: auto; width: 28px; bottom: 10px; }

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

@media (max-width: 700px) {
  .masthead-meta { font-size: 10px; letter-spacing: 0.08em; }
  .meta-descriptor { display: none; }

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

  .footer-top { grid-template-columns: 1fr; }
  .footer-col:last-child { grid-column: auto; }

  .footer-note { font-size: 12px; }

  .footer-bottom {
    justify-content: flex-start;
    font-size: 10px;
  }

  .section { padding-block: clamp(32px, 7vw, 56px); }
}

@media (max-width: 420px) {
  .brand { font-size: 20px; }
  .nav-toggle { padding: 7px 10px; letter-spacing: 0.08em; }
}

/* ---------- 14. 无障碍与动效偏好 ---------- */
@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;
  }

  .card:hover,
  .btn:hover { transform: none; }
}
