/* =========================================================
   大嬴体育 · 共享样式 /assets/site.css
   框架式导航 + 数据竞技场视觉系统
   ========================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--paper);
  padding-top: var(--statusbar-h);
  padding-left: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, dl, dd, dt, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --deep: #0B1F1A;
  --panel: #12332B;
  --cyan: #26F0D0;
  --cyan-soft: #9BF7E6;
  --gold: #F2A93B;
  --paper: #F2EFE9;
  --white: #FBFAF7;
  --text-dark: #1A1F1D;
  --muted: #6B7873;
  --alert: #E4573D;
  --ok: #2FB27A;

  --line-dark: rgba(155, 247, 230, 0.18);
  --line-dark-strong: rgba(38, 240, 208, 0.34);
  --line-light: rgba(26, 31, 29, 0.12);
  --rule: rgba(26, 31, 29, 0.10);

  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(155, 247, 230, 0.22);

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --statusbar-h: 48px;
  --frame-w: 232px;
  --radius: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-nav="collapsed"] { --frame-w: 72px; }

/* ---------- 3. 中文排版与工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-tag::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.display {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--deep);
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.rule {
  height: 1px;
  border: 0;
  background: var(--line-dark);
}

.wrap {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--sidebar { grid-template-columns: 1fr; }

@media (min-width: 1024px) {
  .grid--sidebar { grid-template-columns: 264px minmax(0, 1fr); gap: 2rem; }
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 200;
  transform: translateY(-220%);
  background: var(--gold);
  color: #161006;
  padding: 0.55em 0.95em;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.16s var(--ease);
}

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

/* ---------- 5. 头部骨架 ---------- */
.site-header {
  position: relative;
  z-index: 50;
}

.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--statusbar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.9rem 0 1rem;
  background: var(--deep);
  border-bottom: 1px solid var(--line-dark-strong);
  color: var(--cyan-soft);
}

.status-bar__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.status-bar__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
}

.status-bar__key {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: rgba(155, 247, 230, 0.58);
}

.status-bar__val {
  font-size: 0.8125rem;
  color: var(--cyan-soft);
}

.status-bar__val--alert {
  color: var(--alert);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0.4em 0.7em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan-soft);
  background: transparent;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(38, 240, 208, 0.12); }

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 14px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* 滚动进度线 */
.progress-rail {
  position: fixed;
  top: calc(var(--statusbar-h) - 1px);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 65;
  background: rgba(38, 240, 208, 0.14);
  pointer-events: none;
}

.progress-rail__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ---------- 6. 框架式导航 ---------- */
.frame {
  background: var(--deep);
  color: var(--cyan-soft);
  border-right: 1px solid var(--line-dark);
  background-image: linear-gradient(180deg, rgba(38, 240, 208, 0.07), transparent 42%);
}

.frame__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}

.brand__mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1.5px solid var(--cyan);
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 1.5px 62% no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 62% 1.5px no-repeat;
}

.brand__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.frame__collapse {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  color: var(--cyan-soft);
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}

.frame__collapse:hover { background: rgba(38, 240, 208, 0.12); }

.frame__collapse-glyph {
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(1px, -1px);
  transition: transform 0.2s var(--ease);
}

body[data-nav="collapsed"] .frame__collapse-glyph {
  transform: rotate(225deg) translate(1px, -1px);
}

.site-nav { padding-bottom: 0.5rem; }

.site-nav__index {
  margin: 0 1.25rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(155, 247, 230, 0.45);
}

.site-nav__list { display: block; }

.site-nav__item { display: block; }

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(155, 247, 230, 0.8);
  border-left: 2px solid transparent;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--white);
  background: rgba(38, 240, 208, 0.07);
}

.site-nav__link[aria-current="page"] {
  color: var(--white);
  background: rgba(38, 240, 208, 0.1);
  border-left-color: var(--cyan);
}

.site-nav__num {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(38, 240, 208, 0.55);
}

.site-nav__link[aria-current="page"] .site-nav__num { color: var(--cyan); }

.frame__actions {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem 0;
  border-top: 1px solid var(--line-dark);
}

/* 折叠态 */
body[data-nav="collapsed"] .site-nav__text,
body[data-nav="collapsed"] .site-nav__index,
body[data-nav="collapsed"] .brand__name,
body[data-nav="collapsed"] .btn__label { display: none; }

body[data-nav="collapsed"] .btn__short { display: inline; }

body[data-nav="collapsed"] .frame__head {
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding-inline: 0.4rem;
}

body[data-nav="collapsed"] .site-nav__link {
  justify-content: center;
  padding-inline: 0.4rem;
  gap: 0;
}

body[data-nav="collapsed"] .frame__actions { padding-inline: 0.4rem; }

body[data-nav="collapsed"] .frame__actions .btn {
  padding: 0.7em 0.3em;
  font-size: 0.75rem;
}

/* 移动端抽屉 */
@media (max-width: 899px) {
  .frame {
    position: fixed;
    top: var(--statusbar-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--statusbar-h));
    overflow-y: auto;
    padding: 1.1rem 0 1.4rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark-strong);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.45);
    z-index: 58;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
      visibility 0.18s var(--ease);
  }

  .frame[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .frame__collapse { display: none; }
  .frame__head { border-bottom: 0; margin-bottom: 0.4rem; }

  .status-bar__item:nth-child(n + 3) { display: none; }

  .site-nav__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0 0.5rem;
  }

  .site-nav__link { border-left-width: 0; border-bottom: 2px solid transparent; }

  .site-nav__link[aria-current="page"] { border-left-color: transparent; border-bottom-color: var(--cyan); }
}

/* 桌面固定侧栏 */
@media (min-width: 900px) {
  body {
    padding-left: var(--frame-w);
    transition: padding-left 0.24s var(--ease);
  }

  .nav-toggle { display: none; }

  .frame {
    position: fixed;
    top: var(--statusbar-h);
    left: 0;
    bottom: 0;
    width: var(--frame-w);
    display: flex;
    flex-direction: column;
    padding: 1.4rem 0 1.2rem;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 55;
    transition: width 0.24s var(--ease);
  }

  .frame::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 132px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    opacity: 0.85;
  }

  .frame__head { padding: 0 1.25rem 1rem; }
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.15em;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cyan-soft);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn:hover { background: rgba(38, 240, 208, 0.14); color: var(--white); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #161006;
}

.btn--gold:hover { background: #FFC061; border-color: #FFC061; color: #161006; }

.btn--ghost { background: transparent; border-color: var(--line-dark-strong); }

.btn--ghost:hover { border-color: var(--cyan); background: rgba(38, 240, 208, 0.12); }

.btn--quiet {
  border-color: var(--line-light);
  color: var(--deep);
  background: transparent;
}

.btn--quiet:hover { background: rgba(11, 31, 26, 0.06); color: var(--deep); }

.btn__short { display: none; }

.copy-btn {
  margin-left: 0.45rem;
  padding: 0.12em 0.5em;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  color: var(--cyan-soft);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.copy-btn:hover { background: rgba(38, 240, 208, 0.14); }

.copy-btn[data-copied] {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- 8. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.crumbs a:hover { color: var(--deep); border-bottom-color: var(--cyan); }

.crumbs__sep { color: rgba(107, 120, 115, 0.5); }

/* ---------- 9. 容器与材质 ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
}

.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.card--dark {
  background: var(--panel);
  border-color: var(--line-dark);
  color: var(--paper);
}

.card--dark .card__title { color: var(--white); }

.card__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--deep);
}

.card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 10. 状态点 ---------- */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 8px;
}

.dot--live { background: var(--cyan); }
.dot--soon { background: var(--gold); }
.dot--done { background: var(--muted); }
.dot--alert { background: var(--alert); }
.dot--ok { background: var(--ok); }

/* ---------- 11. 图片容器 ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(38, 240, 208, 0.12), rgba(11, 31, 26, 0) 62%),
    var(--panel);
}

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

.figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  background: linear-gradient(0deg, rgba(11, 31, 26, 0.88), rgba(11, 31, 26, 0));
}

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--banner { aspect-ratio: 21 / 9; }

/* ---------- 12. 手风琴 ---------- */
.accordion { border-top: 1px solid var(--rule); }

.accordion__item { border-bottom: 1px solid var(--rule); }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--deep);
  cursor: pointer;
}

.accordion__icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.accordion__icon::after { transform: translateY(-50%) rotate(90deg); }

.accordion__item[data-open] .accordion__icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.18s var(--ease);
}

.accordion__item[data-open] .accordion__panel { grid-template-rows: 1fr; }

.accordion__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.accordion__panel-inner > * {
  padding-bottom: 1.4rem;
  max-width: 62em;
  color: var(--muted);
}

/* ---------- 13. 过滤 ---------- */
.field { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.field__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.62em 0.85em;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--deep);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color 0.16s var(--ease);
}

.field__input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 2px rgba(38, 240, 208, 0.28); }

.filter__empty {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.75rem 0;
}

.is-hidden { display: none !important; }

/* ---------- 14. 显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ---------- 15. 页脚 ---------- */
.site-footer {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: 3rem 0 1.4rem;
  background: var(--deep);
  color: rgba(155, 247, 230, 0.76);
  border-top: 1px solid var(--line-dark-strong);
}

.site-footer__inner {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .site-footer__inner {
    grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

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

.footer-col__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.brand--footer { margin-bottom: 0.85rem; }

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(155, 247, 230, 0.68);
  margin-bottom: 1.25rem;
  max-width: 24em;
}

.footer-contact { display: grid; gap: 0.6rem; }

.footer-contact__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8125rem;
}

.footer-contact__key {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: rgba(155, 247, 230, 0.5);
}

.footer-contact__val {
  color: var(--cyan-soft);
  word-break: break-all;
}

.footer-links { display: grid; gap: 0.55rem; }

.footer-links a {
  font-size: 0.875rem;
  text-decoration: none;
  color: rgba(155, 247, 230, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-links a:hover { color: var(--white); border-bottom-color: var(--cyan); }

.site-footer__base {
  width: min(1240px, calc(100% - 2.5rem));
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(155, 247, 230, 0.55);
}

.site-footer__note { max-width: 42em; }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }

.site-footer__sep { opacity: 0.5; }

/* ---------- 16. 降级 ---------- */
@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;
  }
}
