/* ============================================================
   乐宝体育 · 数据看台  共享样式表  /assets/site.css
   ============================================================ */

:root {
  --night: #0B1B2B;
  --stand: #12293F;
  --turf: #1E6B45;
  --turf-lift: #5FC08C;
  --moss: #6F8B62;
  --amber: #F2B233;
  --amber-lift: #FFC44D;
  --rose: #C2456B;
  --cyan: #2FA3B5;
  --clay: #B4643C;
  --rock: #3A4149;
  --paper: #F3EFE6;
  --paper-edge: #DCD3C4;
  --field: #F7FAF8;

  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1360px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius-pill: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--field);
  background-color: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; }

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

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

a { color: var(--turf-lift); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }

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

::selection { background: var(--amber); color: var(--night); }

/* ---------- 排版基元 ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--amber);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--night); }

/* ============================================================
   头部：悬浮胶囊导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px clamp(10px, 2.4vw, 26px) 0;
}

.site-header__shell {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  min-height: 64px;
  padding: 8px 10px 8px 12px;
  background-color: rgba(11, 27, 43, 0.9);
  border: 1px solid rgba(242, 178, 51, 0.24);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.95);
  transition: min-height 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.site-header.is-condensed .site-header__shell {
  min-height: 54px;
  background-color: rgba(11, 27, 43, 0.97);
  border-color: rgba(242, 178, 51, 0.38);
}

/* --- 品牌 --- */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--field);
}
.brand:hover { color: var(--field); }

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background-color: var(--amber);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.01em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: background-color 0.2s ease;
}
.brand:hover .brand__mark { background-color: var(--amber-lift); }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--field);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--moss);
  white-space: nowrap;
}

/* --- 移动导航按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  background-color: rgba(30, 107, 69, 0.5);
  border: 1px solid rgba(111, 139, 98, 0.55);
  border-radius: var(--radius-pill);
  color: var(--field);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.nav-toggle:hover { background-color: rgba(30, 107, 69, 0.75); }

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

.nav-toggle__label { white-space: nowrap; }

/* --- 主导航 --- */
.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.5vw, 8px);
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 9px 13px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(247, 250, 248, 0.78);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.site-nav__link:hover {
  color: var(--field);
  background-color: rgba(30, 107, 69, 0.45);
}
.site-nav__link[aria-current="page"] {
  color: var(--night);
  background-color: var(--amber);
  border-color: var(--amber);
  font-weight: 600;
}
.site-nav__link[aria-current="page"]:hover {
  color: var(--night);
  background-color: var(--amber-lift);
}

/* --- 头部工具 --- */
.header-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(6px, 1vw, 14px);
  border-left: 1px solid rgba(220, 211, 196, 0.16);
}

.header-tools__link {
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(247, 250, 248, 0.68);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease;
}
.header-tools__link:hover { color: var(--amber); }

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--amber {
  background-color: var(--amber);
  color: var(--night);
  font-weight: 600;
}
.btn--amber:hover { background-color: var(--amber-lift); color: var(--night); }

.btn--ghost {
  border-color: rgba(220, 211, 196, 0.42);
  color: var(--paper);
  background-color: transparent;
}
.btn--ghost:hover {
  background-color: rgba(243, 239, 230, 0.1);
  border-color: var(--paper);
  color: var(--paper);
}

.btn--sm { padding: 8px 14px; font-size: 12px; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 132px);
  background-color: var(--night);
  color: rgba(247, 250, 248, 0.78);
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--amber) 0 26px,
    transparent 26px 54px
  );
  opacity: 0.55;
}

.site-footer__shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 5vw, 72px);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background-color: var(--amber);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: var(--field);
}

.footer-brand__desc {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(247, 250, 248, 0.62);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

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

.footer-col__list a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 15px;
  color: rgba(247, 250, 248, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-col__list a:hover {
  color: var(--amber);
  border-bottom-color: rgba(242, 178, 51, 0.5);
}

.site-footer__meta {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter) 36px;
  border-top: 1px solid rgba(220, 211, 196, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(247, 250, 248, 0.58);
}

.footer-meta__item { white-space: nowrap; }

/* ============================================================
   通用布局组件
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 8vw, 110px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
}
.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background-color: var(--amber);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  color: var(--moss);
  white-space: nowrap;
}
.tag--amber { color: var(--amber); }
.tag--turf { color: var(--turf-lift); }
.tag--rose { color: var(--rose); }
.tag--cyan { color: var(--cyan); }

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(247, 250, 248, 0.82);
}
.prose p { margin-bottom: 1.15em; }
.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--field);
  letter-spacing: 0.02em;
  margin: 1.6em 0 0.6em;
  line-height: 1.2;
}
.prose h2 { font-size: clamp(24px, 3vw, 32px); }
.prose h3 { font-size: 20px; }
.prose ul,
.prose ol { margin: 0 0 1.15em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--amber); font-weight: 600; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  list-style: none;
  color: rgba(247, 250, 248, 0.5);
}
.breadcrumb__list li { display: inline-flex; align-items: center; }
.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(242, 178, 51, 0.65);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb li[aria-current="page"] { color: var(--amber); }

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: var(--stand);
  background-image: linear-gradient(140deg, var(--stand) 0%, var(--night) 58%, #07131f 100%);
  border: 1px solid rgba(220, 211, 196, 0.16);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.media-frame > img,
.media-frame > video,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }

/* ---------- 显示 / 显现 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 滚动进度与返回顶部（由 JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--turf-lift) 0%, var(--amber) 58%, var(--rose) 100%);
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background-color: var(--amber);
  color: var(--night);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  border: none;
  border-radius: 50% 50% 50% 6px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 16px 30px -14px rgba(242, 178, 51, 0.7);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background-color: var(--amber-lift); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .brand__tagline { display: none; }
}

@media (max-width: 1020px) {
  html { scroll-padding-top: 92px; }

  .nav-toggle { display: inline-flex; }
  .header-tools { display: none; }
  .site-nav { margin-left: 0; }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    background-color: rgba(18, 41, 63, 0.98);
    border: 1px solid rgba(242, 178, 51, 0.22);
    border-radius: 22px;
    box-shadow: 0 28px 52px -28px rgba(0, 0, 0, 0.95);
  }

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

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }

  .site-nav__link {
    padding: 13px 15px;
    font-size: 15px;
    border-radius: 14px;
  }

  .site-footer__shell { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .site-header { padding-top: 10px; }
  .site-header__shell { padding: 7px 8px 7px 10px; }
  .brand__mark { width: 36px; height: 36px; font-size: 17px; }
  .brand__name { font-size: 15.5px; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__meta { flex-direction: column; gap: 6px; }
  .footer-meta__item { white-space: normal; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 11px 13px; }
}

/* ============================================================
   动效降级
   ============================================================ */
@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; }
  .to-top { transition: opacity 0.001ms linear, visibility 0.001ms linear; }
}
