/* ============================================================
   雅博体育 · 共享样式 /assets/site.css
   基础：reset → tokens → 排版 → 通用组件 → 头部 → 导航 → 页脚
   ============================================================ */

/* ---------- 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, p, ul, ol, dl, dd, figure, blockquote {
  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 { max-width: 100%; display: block; }

/* ---------- tokens ---------- */
:root {
  --ink-950: #061A13;
  --ink-900: #082018;
  --panel: #0C2A20;
  --rail: #123A2C;

  --mint: #3DFFB0;
  --mint-press: #19B87A;
  --amber: #FFB84D;
  --coral: #FF6B5E;

  --paper: #EAF7F0;
  --grey: #8FB8A8;
  --line: #2A5A47;

  --rail-w: 272px;
  --shell-max: 1280px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-1: 0 10px 26px rgba(0, 0, 0, .38);
  --shadow-2: 0 22px 54px rgba(0, 0, 0, .5);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image:
    linear-gradient(rgba(42, 90, 71, .15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 90, 71, .15) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.012em;
}

h1 { font-size: clamp(30px, 5.4vw, 56px); }
h2 { font-size: clamp(22px, 3.2vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }

p { max-width: 68ch; }

::selection {
  background: rgba(61, 255, 176, .28);
  color: var(--paper);
}

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

#main-content { display: block; }

/* ---------- 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

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

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 44px);
}

.section { padding-block: clamp(28px, 5vw, 64px); }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(18px, 3vw, 30px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mint);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: .72em 1.15em;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(18, 58, 44, .55);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-align: center;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(61, 255, 176, .1);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--mint);
  border-color: var(--mint);
  color: #04241A;
}

.btn-solid:hover {
  background: var(--mint-press);
  border-color: var(--mint-press);
  color: #032018;
}

.btn-ghost { background: transparent; }

/* ---------- 标签 / 面板 / 网格 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(18, 58, 44, .5);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--grey);
  white-space: nowrap;
}

.tag--mint { color: var(--mint); border-color: rgba(61, 255, 176, .5); background: rgba(61, 255, 176, .1); }
.tag--amber { color: var(--amber); border-color: rgba(255, 184, 77, .5); background: rgba(255, 184, 77, .1); }
.tag--coral { color: var(--coral); border-color: rgba(255, 107, 94, .5); background: rgba(255, 107, 94, .1); }

.panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: 1fr;
}

.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--grey);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li { display: flex; align-items: center; gap: 8px; }

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
  font-family: var(--font-mono);
}

.breadcrumbs a { color: var(--grey); transition: color .18s var(--ease); }
.breadcrumbs a:hover { color: var(--mint); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 图片容器基座（页面阶段放占位图） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(160deg, #0F3527 0%, #0A241B 55%, #071B14 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(143, 184, 168, .22) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: .45;
  pointer-events: none;
}

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

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

.media-frame__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: rgba(6, 26, 19, .82);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mint);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: .62em 1em;
  border-radius: 2px;
  background: var(--mint);
  color: #04241A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* ---------- 头部（移动优先：sticky 顶栏） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  color: var(--paper);
  background: linear-gradient(180deg, #0E3125 0%, #0A241B 58%, #071C15 100%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}

.site-header[data-scrolled] { box-shadow: var(--shadow-1); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 90, 71, .55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(150deg, #1A5540, #0B2A20);
  box-shadow: inset 0 0 0 1px rgba(61, 255, 176, .14);
  color: var(--mint);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(143, 184, 168, .85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.site-header .btn {
  padding: .62em .95em;
  font-size: 13px;
}

.header-actions .btn-solid { display: none; }

/* 联赛快捷条 */
.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(42, 90, 71, .55);
  background: rgba(6, 26, 19, .5);
  overflow: hidden;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 184, 77, .45);
  border-radius: 2px;
  background: rgba(255, 184, 77, .08);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.2;
  white-space: nowrap;
  max-width: none;
}

.channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 94, .16);
}

.league-strip {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.league-strip::-webkit-scrollbar { display: none; }

.league-list {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.league-chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(18, 58, 44, .62);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--grey);
}

.league-chip.is-on {
  background: var(--mint);
  border-color: var(--mint);
  color: #04241A;
  font-weight: 700;
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(18, 58, 44, .6);
  color: var(--paper);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.nav-toggle-bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
}

/* ---------- 导航（移动：右侧抽屉） ---------- */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(86vw, 340px);
  padding: 68px 20px 28px;
  overflow-y: auto;
  background: linear-gradient(180deg, #14402F 0%, #0A241B 62%, #071B14 100%);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s var(--ease);
}

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

.nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--grey);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.nav-close:hover { color: var(--mint); border-color: var(--mint); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(3, 13, 9, .74);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.site-nav[data-open] + .nav-scrim {
  opacity: 1;
  visibility: visible;
}

.site-nav__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--grey);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: var(--grey);
  font-size: 15px;
  letter-spacing: .04em;
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(143, 184, 168, .55);
  transition: color .18s var(--ease);
}

.nav-text { line-height: 1.3; }

.nav-link:hover {
  color: var(--paper);
  background: rgba(61, 255, 176, .07);
  border-left-color: var(--mint);
  transform: translateX(3px);
}

.nav-link:hover .nav-index { color: var(--mint); }

.nav-link[aria-current="page"] {
  color: var(--mint);
  font-weight: 700;
  border-left-color: var(--mint);
  background: linear-gradient(90deg, rgba(61, 255, 176, .18), rgba(61, 255, 176, 0) 86%);
}

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

.site-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.site-nav__foot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(143, 184, 168, .7);
  max-width: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #071C15 0%, #04120D 62%);
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 44px);
}

.footer-brand .brand { flex: 0 1 auto; }

.footer-tagline {
  margin-top: 14px;
  max-width: 34ch;
  color: rgba(234, 247, 240, .72);
  font-size: 14px;
  line-height: 1.75;
}

.footer-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mint);
  max-width: none;
}

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

.footer-col__title {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--paper);
}

.footer-col__title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 9px;
  background: var(--mint);
}

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

.footer-link {
  display: inline-block;
  color: rgba(143, 184, 168, .92);
  font-size: 14px;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-link:hover {
  color: var(--mint);
  transform: translateX(2px);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.contact-label {
  padding-top: 2px;
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(143, 184, 168, .8);
}

.contact-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--paper);
  font-size: 14px;
  word-break: break-all;
}

.copy-btn {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--grey);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.copy-btn:hover {
  color: var(--mint);
  border-color: var(--mint);
  background: rgba(61, 255, 176, .08);
}

.copy-status {
  min-height: 1.2em;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mint);
  max-width: none;
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: rgba(143, 184, 168, .75);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 16px clamp(16px, 4vw, 44px);
  border-top: 1px solid rgba(42, 90, 71, .7);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(143, 184, 168, .8);
  max-width: none;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links .footer-link { font-size: 12px; }

/* ---------- 滚动进度条（JS 注入） ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  background: rgba(42, 90, 71, .45);
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--amber));
  transition: transform .1s linear;
}

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

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

html.is-nav-open { overflow: hidden; }

/* ---------- 断点：平板及以上 ---------- */
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 399px) {
  .brand-sub { display: none; }
}

@media (min-width: 720px) {
  .header-bar { padding: 14px 20px; }
  .header-actions .btn { padding: .68em 1.05em; font-size: 13px; }
  .footer-bottom { padding-inline: clamp(20px, 4vw, 44px); }
}

/* ---------- 断点：桌面端侧边轨道 ---------- */
@media (min-width: 1080px) {
  html { scroll-padding-top: 0; }

  body {
    padding-left: var(--rail-w);
  }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    border-right: 1px solid var(--line);
    border-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
  }

  .site-header[data-scrolled] { box-shadow: none; }

  .header-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 18px 16px;
    border-bottom: 0;
  }

  .brand { width: 100%; flex: 0 0 auto; }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .header-actions .btn-solid { display: inline-flex; }

  .header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .league-strip { width: 100%; overflow: visible; }

  .league-list {
    flex-wrap: wrap;
    white-space: normal;
    gap: 6px;
  }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    transform: none;
    visibility: visible;
    width: auto;
    flex: 1 1 auto;
    gap: 10px;
    padding: 18px 14px 22px;
    overflow: visible;
    background: transparent;
    border-left: 0;
    box-shadow: none;
  }

  .nav-close { display: none; }

  .nav-scrim { display: none; }

  .site-nav__cta { display: none; }

  .site-nav__label { padding-left: 12px; }

  .nav-link { font-size: 15px; padding: 11px 12px; }

  .scroll-meter { left: var(--rail-w); }

  .footer-grid {
    grid-template-columns: 1.5fr .85fr .95fr 1.25fr;
    gap: 36px;
    max-width: var(--shell-max);
    margin-inline: auto;
  }

  .footer-brand { grid-column: auto; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .scroll-meter__bar { transition: none; }

  .btn:hover,
  .nav-link:hover,
  .footer-link:hover { transform: none; }
}
