/* =========================================================
   博奥体育 · site.css
   共享样式：reset / tokens / 排版 / 头部页脚 / 基础组件
   ========================================================= */

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

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

body,
h1, h2, h3, h4, p,
ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul, ol { list-style: none; padding: 0; }

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

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

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

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

::selection {
  background: var(--accent-bright);
  color: var(--bg-primary);
}

/* ---------- 2. Design tokens ---------- */
:root {
  --bg-primary: #1a1a2e;
  --bg-deep: #16213e;
  --bg-footer: #1e1e2f;
  --line-ocean: #0f3460;
  --accent-bright: #00ff87;
  --accent-deep: #00b566;
  --accent-warm: #ff9a00;
  --accent-warm-deep: #ff7a00;
  --text-primary: #e0e0e0;
  --text-highlight: #ffffff;

  --font-headline: 'Impact', 'Anton', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;

  --container: 1180px;
  --container-narrow: 880px;
  --header-offset: 92px;
  --space-section: clamp(3.5rem, 8vw, 7rem);
  --space-block: clamp(1.5rem, 3vw, 2.5rem);

  --border-color: var(--line-ocean);
  --border-w: 2px;
  --radius-block: 12px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- 3. Base typography ---------- */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-offset);
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; }

#main-content {
  min-height: 60vh;
  scroll-margin-top: 116px;
}

/* ---------- 4. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

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

/* ---------- 5. Text utilities ---------- */
.mono { font-family: var(--font-mono); }

.tilt {
  display: inline-block;
  transform: skewX(-5deg);
}

.index-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid rgba(0, 255, 135, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
}

.index-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- 6. Breadcrumbs & page head ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(224, 224, 224, 0.55);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: rgba(224, 224, 224, 0.7);
  transition: color 0.15s ease;
}

.breadcrumbs a:hover { color: var(--accent-bright); }
.breadcrumbs [aria-hidden="true"] { color: var(--accent-warm); }

.page-head { margin-bottom: var(--space-block); }

.page-title {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 8px 0 12px;
}

.page-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(224, 224, 224, 0.6);
}

/* ---------- 7. Buttons & tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn--solid {
  background: var(--accent-bright);
  color: var(--bg-primary);
  box-shadow: 4px 4px 0 var(--accent-deep);
}

.btn--solid:hover {
  background: var(--text-highlight);
  box-shadow: 6px 6px 0 var(--accent-bright);
  transform: translate(-2px, -2px);
}

.btn--ghost {
  border-color: var(--line-ocean);
  color: var(--text-highlight);
}

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

.btn--warm {
  background: var(--accent-warm);
  color: var(--bg-primary);
  box-shadow: 4px 4px 0 var(--accent-warm-deep);
}

.btn--warm:hover {
  background: var(--accent-warm-deep);
  color: var(--text-highlight);
  transform: translate(-2px, -2px);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border: 1px solid var(--line-ocean);
  border-radius: 999px;
  color: var(--text-primary);
  background: var(--bg-deep);
}

/* ---------- 8. Panels / data cards / lists ---------- */
.panel {
  background: var(--bg-deep);
  border: 2px solid var(--line-ocean);
  border-radius: var(--radius-block);
  padding: clamp(20px, 3vw, 32px);
}

.panel--glow {
  border-color: rgba(0, 255, 135, 0.3);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.08), var(--shadow-card);
}

.data-card {
  background: var(--bg-deep);
  border: 2px solid var(--line-ocean);
  border-radius: var(--radius-block);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.data-card:hover {
  border-color: var(--accent-bright);
  transform: translateY(-3px);
}

.data-card__value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1;
}

.data-card__label {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.data-card__delta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-warm);
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-ocean);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.data-row:last-child { border-bottom: 0; }

.data-row__key { color: var(--text-primary); }
.data-row__value { color: var(--text-highlight); font-weight: 700; }

.quote-block {
  border-left: 4px solid var(--accent-warm);
  padding: 4px 0 4px 20px;
  font-size: 1.05rem;
  color: var(--text-primary);
  max-width: 68ch;
  margin: 1.5em 0;
}

.list-dash li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid rgba(15, 52, 96, 0.6);
}

.list-dash li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-family: var(--font-mono);
}

/* ---------- 9. Image frames ---------- */
.image-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border: 2px solid var(--line-ocean);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.image-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(0, 255, 135, 0.28);
  border-radius: 6px;
  z-index: 1;
  pointer-events: none;
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame__meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent-bright);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ---------- 10. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 14px 24px 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1400;
  padding: 8px 16px;
  background: var(--accent-bright);
  color: var(--bg-primary);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1300;
  pointer-events: none;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent-warm));
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.7);
}

.header-capsule {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--container);
  min-height: 60px;
  margin-inline: auto;
  padding: 8px 12px 8px 18px;
  background: rgba(22, 33, 62, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 255, 135, 0.35);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-capsule:hover {
  transform: scale(1.01);
  background: rgba(22, 33, 62, 0.96);
  border-color: rgba(0, 255, 135, 0.65);
  box-shadow: 0 12px 36px rgba(0, 255, 135, 0.12);
}

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

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-bright);
  text-shadow: 0 0 14px rgba(0, 255, 135, 0.55);
  border: 1.5px solid rgba(0, 255, 135, 0.5);
  border-radius: 6px;
  padding: 4px 7px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-highlight);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--accent-bright);
  opacity: 0.75;
}

.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-bright);
  opacity: 0.7;
}

.nav-link:hover {
  background: rgba(0, 255, 135, 0.14);
  color: var(--text-highlight);
}

.nav-link[aria-current="page"] {
  background: var(--accent-bright);
  color: var(--bg-primary);
  box-shadow: 0 4px 18px rgba(0, 255, 135, 0.3);
}

.nav-link[aria-current="page"] .nav-index {
  color: inherit;
  opacity: 0.8;
}

.nav-toggle { display: none; }

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-footer);
  border-top: 3px solid var(--line-ocean);
  margin-top: var(--space-section);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent-warm) 60%, transparent);
  opacity: 0.85;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(0, 255, 135, 0.03) 14px 16px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--container);
  margin-inline: auto;
  padding: 56px 24px 40px;
}

.brand--footer .brand-mark {
  font-size: 1.5rem;
  padding: 6px 9px;
}

.brand--footer .brand-text { font-size: 1.35rem; }

.footer-motto {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-top: 16px;
  border-left: 3px solid var(--accent-warm);
  padding-left: 12px;
}

.footer-icp {
  margin-top: 16px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(224, 224, 224, 0.5);
  letter-spacing: 0.08em;
}

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

.footer-col--contact {
  border-left: 1px solid var(--line-ocean);
  padding-left: 20px;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.footer-heading::before {
  content: "//";
  color: var(--accent-warm);
  font-size: 0.85rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-bright);
  padding-left: 4px;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  border-top: 1px dashed rgba(15, 52, 96, 0.7);
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent-warm);
}

.footer-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(15, 52, 96, 0.8);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(224, 224, 224, 0.55);
}

.footer-legal p { margin: 0; }
.footer-legal-note { color: rgba(224, 224, 224, 0.4); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 960px) {
  body { padding-top: 78px; }

  .site-header { padding: 10px 12px 0; }

  .header-capsule {
    position: relative;
    min-height: 56px;
    border-radius: 24px;
    padding: 8px 14px;
  }

  .site-header .brand-domain { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-radius: 999px;
    color: var(--text-highlight);
    transition: border-color 0.15s ease, background-color 0.15s ease;
  }

  .nav-toggle:hover {
    border-color: var(--accent-bright);
    background: rgba(0, 255, 135, 0.1);
  }

  .nav-toggle-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .nav-toggle-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 14px;
  }

  .nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--accent-bright);
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    background: rgba(15, 32, 58, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 135, 0.35);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 14px;
    margin: 0;
  }

  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

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

  .nav-item { width: 100%; }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav-index {
    order: 2;
    margin-left: auto;
    opacity: 0.8;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 44px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-col--contact {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-legal { flex-direction: column; }
}

/* ---------- 13. Focus & reduced motion ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 255, 135, 0.18);
  border-radius: 4px;
}

.nav-link:focus-visible,
.nav-toggle:focus-visible,
.brand:focus-visible { border-radius: 999px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--line-ocean); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-bright); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-reveal].is-prehidden {
    opacity: 1 !important;
    transform: none !important;
  }
}
