/* =========================================================
   浩瀚体育主站 · 共享样式 /assets/site.css
   分区：reset → 变量 → 中文排版 → 头部 → 页脚 → 通用组件
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  --ink-900: #050B1C;
  --ink-800: #0B1830;
  --ink-700: #0E2A2A;
  --ink-600: #3A1030;
  --cyan: #19E3D1;
  --orange: #FF6B2C;
  --gold: #FFD36B;
  --paper: #F2F6FF;
  --muted: #9FB3D9;
  --line: #1F2B45;
  --blue: #4C7DFF;

  --rail-w: 236px;
  --bar-h: 44px;
  --gutter: clamp(16px, 3vw, 40px);
  --measure: 1180px;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --glow-cyan: 0 0 12px rgba(25, 227, 209, .55);
  --shadow-panel: 0 18px 44px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .7, .28, 1);
}

/* ---------- 中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--paper);
  background:
    radial-gradient(1100px 560px at 80% -12%, rgba(25, 227, 209, .10), transparent 62%),
    radial-gradient(900px 520px at 4% 108%, rgba(255, 107, 44, .08), transparent 64%),
    var(--ink-900);
  transition: padding-left .26s var(--ease);
}

h1, h2, h3, h4 { line-height: 1.24; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(30px, 5.2vw, 76px); }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
p { color: rgba(242, 246, 255, .88); }

::selection { background: var(--cyan); color: #04211F; }

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

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .02em;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04211F;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 头部外壳 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
  padding-inline: var(--gutter);
  background: linear-gradient(120deg, rgba(11, 24, 48, .96), rgba(5, 11, 28, .96));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.masthead__brand { flex: 0 1 auto; }
.footer__brand { margin-bottom: 4px; }
.rail__brand { padding-bottom: 16px; border-bottom: 1px solid var(--line); }

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--cyan), var(--blue) 55%, var(--orange));
  box-shadow: var(--glow-cyan);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px 5px;
  border-radius: 2px;
  background: var(--ink-900);
  transform: skewX(-14deg);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.brand__sub { font-size: 10px; color: var(--muted); letter-spacing: .18em; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 24, 48, .85);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(25, 227, 209, .5); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

/* 赛季状态条 */
.season-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  height: 36px;
  padding-inline: var(--gutter);
  overflow: hidden;
  font-size: 11px;
  background: linear-gradient(90deg, rgba(11, 24, 48, .96), rgba(14, 42, 42, .88) 46%, rgba(58, 16, 48, .88));
  border-bottom: 1px solid var(--line);
}
.season-bar__pulse {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: season-pulse 2.6s infinite;
}
@keyframes season-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 227, 209, .55); }
  70% { box-shadow: 0 0 0 10px rgba(25, 227, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 227, 209, 0); }
}
.season-bar__cell { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.season-bar__label { font-size: 10px; }
.season-bar__value { font-size: 12px; color: var(--paper); }
.season-bar__cta {
  margin-left: auto;
  padding: 6px 13px;
  font-size: 12px;
}
.season-bar__cell--sync { display: none; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* 侧边轨道导航 */
.rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(84vw, 336px);
  padding: 22px 18px;
  background: var(--ink-800);
  border-right: 1px solid var(--line);
}
.rail__title { color: var(--muted); }
.rail__list { display: flex; flex-direction: column; gap: 6px; }
.rail__item { min-width: 0; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(242, 246, 255, .78);
  font-size: 15px;
  font-weight: 600;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav-link:hover { background: rgba(25, 227, 209, .09); color: var(--paper); }
.nav-link__index { font-size: 11px; color: var(--muted); }
.nav-link__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(25, 227, 209, .20), rgba(25, 227, 209, 0));
  border-color: rgba(25, 227, 209, .38);
  color: var(--paper);
}
.nav-link[aria-current="page"] .nav-link__index { color: var(--cyan); }
.nav-link[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rail-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.rail-toggle:hover { color: var(--cyan); border-color: rgba(25, 227, 209, .4); }
.rail-toggle__icon { display: inline-block; color: var(--cyan); transition: transform .24s var(--ease); }
.rail-toggle__text { white-space: nowrap; }
.rail__meta { font-size: 11px; line-height: 1.7; color: var(--muted); }

.nav-scrim { display: none; }

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

/* ---------- 移动端布局（<1024px） ---------- */
@media (max-width: 1023px) {
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    height: 100dvh;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform .3s var(--ease);
    box-shadow: 24px 0 60px rgba(0, 0, 0, .55);
  }
  .rail[data-open] { transform: translateX(0); }
  .rail-toggle { display: none; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(5, 11, 28, .76);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s var(--ease);
  }
  .nav-scrim[data-open] { opacity: 1; pointer-events: auto; }
}

/* ---------- 桌面端布局（>=1024px） ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); padding-top: var(--bar-h); }

  .site-header { position: static; background: none; border-bottom: 0; }
  .masthead { display: none; }
  .nav-scrim { display: none; }

  .season-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    height: var(--bar-h);
    font-size: 12px;
  }
  .season-bar__cell--sync { display: flex; }

  .rail {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    z-index: 110;
    width: var(--rail-w);
    overflow-y: auto;
    transition: width .26s var(--ease), padding .26s var(--ease);
  }

  :root[data-rail="collapsed"] { --rail-w: 84px; }
  :root[data-rail="collapsed"] .rail { padding-inline: 12px; }
  :root[data-rail="collapsed"] .brand__text,
  :root[data-rail="collapsed"] .rail__title,
  :root[data-rail="collapsed"] .rail__meta,
  :root[data-rail="collapsed"] .rail-toggle__text,
  :root[data-rail="collapsed"] .nav-link__text { display: none; }
  :root[data-rail="collapsed"] .rail__brand { justify-content: center; }
  :root[data-rail="collapsed"] .nav-link { justify-content: center; padding-inline: 0; }
  :root[data-rail="collapsed"] .nav-link[aria-current="page"]::after { display: none; }
  :root[data-rail="collapsed"] .rail-toggle { justify-content: center; }
  :root[data-rail="collapsed"] .rail-toggle__icon { transform: rotate(180deg); }
  :root[data-rail="collapsed"] .rail__foot { align-items: center; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter);
}
.footer__col { min-width: 0; }
.footer__col--brand { max-width: 40ch; }
.footer__tagline {
  margin-top: 16px;
  color: rgba(242, 246, 255, .86);
  font-size: 15px;
  line-height: 1.72;
  max-width: 30ch;
}
.footer__note { margin-top: 10px; font-size: 11px; line-height: 1.7; color: var(--muted); max-width: 34ch; }
.footer__title { margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(242, 246, 255, .82);
  transition: color .2s var(--ease);
}
.footer__link:hover { color: var(--cyan); }
.footer__link--archive { color: var(--gold); }
.footer__link--archive:hover { color: #FFE6A8; }
.footer__link--legal { font-size: 12px; color: var(--muted); }
.footer__link--legal:hover { color: var(--cyan); }

.footer__contact { display: flex; flex-direction: column; gap: 2px; }
.footer__key { font-size: 10px; }
.footer__val { font-size: 14px; color: rgba(242, 246, 255, .86); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 28, .6);
  font-size: 12px;
}
.footer__copy { color: var(--muted); font-size: 12px; }
.footer__icp { color: var(--muted); font-size: 12px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.25fr; }
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn--signal {
  background: linear-gradient(120deg, var(--orange), #FF9558);
  color: #1B0A02;
  box-shadow: 0 10px 26px rgba(255, 107, 44, .32);
}
.btn--signal:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255, 107, 44, .42); }
.btn--ghost {
  background: rgba(11, 24, 48, .8);
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover { border-color: rgba(25, 227, 209, .5); color: var(--cyan); }
.btn--quiet { background: transparent; color: var(--cyan); padding-inline: 6px; }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item:not(:last-child)::after { content: "/"; color: var(--line); }
.breadcrumbs__link { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumbs__link:hover { color: var(--cyan); }
.breadcrumbs__item[aria-current="page"] { color: rgba(242, 246, 255, .9); }

/* ---------- 容器 / 栅格 / 板块 ---------- */
.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: clamp(48px, 7vw, 112px); }
.prose { max-width: 68ch; color: rgba(242, 246, 255, .86); }
.prose p + p { margin-top: 1em; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* 珠宝色分区 */
.zone { padding-block: clamp(44px, 6.5vw, 96px); }
.zone--indigo { background: linear-gradient(180deg, rgba(11, 24, 48, .92), rgba(5, 11, 28, .8)); }
.zone--deepgreen { background: linear-gradient(160deg, var(--ink-700), rgba(5, 11, 28, .92) 72%); }
.zone--berry { background: linear-gradient(160deg, var(--ink-600), rgba(5, 11, 28, .92) 74%); }

/* 框景窗口 */
.frame {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(11, 24, 48, .92), rgba(5, 11, 28, .9));
  box-shadow: var(--shadow-panel);
}
.frame::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 6px;
  background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 16px);
  pointer-events: none;
}
.frame__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.frame__index { color: var(--cyan); font-size: 12px; }
.frame__meta { color: var(--muted); font-size: 11px; }
.frame__body { min-width: 0; }

/* 面板卡 */
.card {
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(11, 24, 48, .92), rgba(5, 11, 28, .86));
}
.card--organic { border-radius: 26px 8px 26px 8px; }

/* 响应式图片容器 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--ink-800), var(--ink-900));
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--strip { aspect-ratio: 21 / 9; }
.media__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(5, 11, 28, .72);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* 徽章 / 数据 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
}
.badge--cyan { color: var(--cyan); background: rgba(25, 227, 209, .1); }
.badge--gold { color: var(--gold); background: rgba(255, 211, 107, .12); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.1;
}
.stat__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* 筛选组 */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 24, 48, .7);
  color: rgba(242, 246, 255, .8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-chip:hover { border-color: rgba(25, 227, 209, .5); color: var(--paper); }
.filter-chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04211F;
  box-shadow: var(--glow-cyan);
}

/* 显现动效 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 无障碍与降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
