/* ============================================================
   三亿体育 · 共享样式表  /assets/site.css
   深空蓝底 · 荧光青与活力橙 · 编辑部目录气质
   ============================================================ */

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

html,
body,
h1, h2, h3, h4, h5, h6,
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; }

/* ---------- 2. 变量 ---------- */
:root {
  --bg: #060D1F;
  --panel: #0E1E3C;
  --panel-soft: rgba(14, 30, 60, .72);
  --grid: #1C3560;
  --grid-soft: rgba(28, 53, 96, .42);

  --cyan: #2BE7D2;
  --cyan-deep: #12A99A;
  --orange: #FF6B2C;
  --amber: #FFC24B;

  --ink: #EAF2FF;
  --muted: #93A7C9;
  --paper: #F4EFE6;

  --line: rgba(147, 167, 201, .18);
  --line-soft: rgba(147, 167, 201, .12);
  --line-cyan: rgba(43, 231, 210, .3);
  --line-amber: rgba(255, 194, 75, .38);

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

  --wrap: 1280px;
  --gutter: clamp(16px, 3.2vw, 32px);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
  background-size: 76px 76px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 78% at 50% -12%, rgba(43, 231, 210, .07), transparent 62%);
}

@media (min-width: 1400px) { body { font-size: 17px; } }

#main-content { scroll-margin-top: 150px; position: relative; z-index: 1; }

.mono { font-family: var(--font-mono); letter-spacing: .02em; }

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. 可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -140px;
  left: var(--gutter);
  z-index: 200;
  padding: 12px 20px;
  background: var(--paper);
  color: #0B1A2E;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  border-radius: 2px;
  box-shadow: 5px 5px 0 rgba(43, 231, 210, .35);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-bottom: 2px;
  background: linear-gradient(
    180deg,
    rgba(8, 17, 42, .98) 0%,
    rgba(6, 13, 31, .95) 68%,
    rgba(6, 13, 31, .88) 100%
  );
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .24s var(--ease);
}

.site-header[data-condensed] {
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, .95);
}

.progress-rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(147, 167, 201, .14);
  overflow: hidden;
}

.progress-rail__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-deep) 55%, var(--orange) 100%);
  transition: width .1s linear;
}

/* --- 刊头 --- */
.masthead {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.masthead__release {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: opacity .22s var(--ease), visibility .22s var(--ease);
}

.masthead__aside {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: opacity .22s var(--ease), visibility .22s var(--ease);
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  border-radius: 2px;
  white-space: nowrap;
}

.meta-tag__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 231, 210, .16);
  animation: tagPulse 2.6s var(--ease) infinite;
}

@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(43, 231, 210, .16); }
  50% { box-shadow: 0 0 0 6px rgba(43, 231, 210, .04); }
}

.meta-tag--season {
  border-color: var(--line-amber);
  color: var(--amber);
  letter-spacing: .1em;
}

/* --- 品牌 --- */
.brand {
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  transition: opacity .18s var(--ease);
}
.brand:hover { opacity: .92; }

.brand__word {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 3.3vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  transition: font-size .24s var(--ease);
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 1.08em;
  height: 1.08em;
  font-family: var(--font-mono);
  font-size: .4em;
  font-weight: 700;
  letter-spacing: 0;
  color: #04121A;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  border-radius: 2px;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity .2s var(--ease), height .2s var(--ease);
}

/* 紧凑态 */
.site-header[data-condensed] .masthead { padding-top: 12px; padding-bottom: 8px; }
.site-header[data-condensed] .brand__word { font-size: clamp(20px, 2.3vw, 26px); }
.site-header[data-condensed] .brand__tag { opacity: 0; height: 0; overflow: hidden; }
.site-header[data-condensed] .masthead__release,
.site-header[data-condensed] .masthead__aside { opacity: 0; visibility: hidden; }

/* --- 导航条 --- */
.nav-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-nav { grid-column: 2; justify-self: center; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.7vw, 24px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 4px 11px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  transition: color .18s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 5px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* --- 快速入口标签条 --- */
.dock {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
  white-space: nowrap;
}

.dock__list { display: flex; align-items: center; gap: 6px; }

.dock__link {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  border-radius: 2px;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease),
    background-color .18s var(--ease);
}

.dock__link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(43, 231, 210, .08);
}

/* --- 移动栏目按钮 --- */
.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .14em;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 120px);
  background: linear-gradient(180deg, rgba(14, 30, 60, .42) 0%, rgba(4, 9, 22, .98) 42%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent);
  opacity: .55;
  pointer-events: none;
}

.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 48px);
}

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

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--cyan);
}

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

.footer-col__link {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: color .16s var(--ease), transform .16s var(--ease);
}
.footer-col__link:hover { color: var(--cyan); }

.footer-col__link--inline {
  color: var(--ink);
  border-bottom: 1px dashed var(--line-cyan);
}
.footer-col__link--inline:hover { color: var(--cyan); }

.footer-col__contact { display: grid; gap: 12px; }

.footer-col__contact li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-col__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.footer-col__val {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer-col__text {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}

.footer-col__text--tight { margin-top: 12px; }

/* 印刷米白叠层卡片 */
.paper-card {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--paper);
  color: #16233A;
  border-radius: 2px;
  box-shadow: 7px 7px 0 rgba(43, 231, 210, .16);
}

.paper-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px;
  height: 26px;
  background: rgba(22, 35, 58, .1);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.paper-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #0C5A54;
  background: rgba(43, 231, 210, .22);
  border-radius: 2px;
}

.paper-card__text {
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #24344F;
}

/* 底部条 */
.footer-base {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter) 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

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

.footer-base__icp { letter-spacing: .06em; }

.footer-base__legal { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-base__legal a {
  color: var(--muted);
  transition: color .16s var(--ease);
}
.footer-base__legal a:hover { color: var(--cyan); }

/* ---------- 7. 版心与章节 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0;
}

.section__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--cyan);
}

.section__title {
  margin: 12px 0 18px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
}

.section__lead {
  max-width: 64ch;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 8. 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }

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

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

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
    color .18s var(--ease), border-color .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #0B0F14;
}
.btn--primary:hover {
  background: #FF8348;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--ghost:hover { background: rgba(43, 231, 210, .1); }

.btn--quiet {
  background: var(--panel-soft);
  border-color: var(--line);
  color: var(--ink);
}
.btn--quiet:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm { padding: 9px 15px; font-size: 12.5px; letter-spacing: .1em; }

/* ---------- 10. 标签与面包屑 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-cyan);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.tag--amber { border-color: var(--line-amber); color: var(--amber); }
.tag--orange { border-color: rgba(255, 107, 44, .42); color: var(--orange); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

.crumbs a { color: var(--muted); transition: color .16s var(--ease); }
.crumbs a:hover { color: var(--cyan); }

.crumbs__sep { color: var(--grid); }

/* ---------- 11. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(140deg, #0E1E3C 0%, #081328 58%, #050B18 100%);
}

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

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 231, 210, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 231, 210, .06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.media-frame__tag {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  padding: 6px 15px 6px 11px;
  background: var(--paper);
  color: #12203A;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 16px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(6, 13, 31, .92));
}

/* ---------- 12. 旁注 ---------- */
.aside-note {
  padding: 18px 20px;
  background: var(--paper);
  color: #16233A;
  border-radius: 2px;
  font-size: 14.5px;
  line-height: 1.72;
  box-shadow: 8px 8px 0 rgba(43, 231, 210, .14);
}

.aside-note__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: #0C6A62;
}

/* ---------- 13. 动效钩子 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}

[data-reveal][data-visible] {
  opacity: 1;
  transform: none;
}

[data-back-index] {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 70;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-cyan);
  border-radius: 2px;
  background: rgba(14, 30, 60, .92);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

[data-back-index]:hover {
  background: rgba(43, 231, 210, .12);
  border-color: var(--cyan);
}

/* ---------- 14. 断点 ---------- */
@media (max-width: 1080px) {
  .dock__label { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px var(--gutter) 10px;
    gap: 12px;
  }

  .masthead__release { display: none; }
  .masthead__aside { display: none; }
  .brand { justify-self: center; }
  .brand__tag { font-size: 10px; letter-spacing: .18em; }

  .nav-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 0 8px;
    gap: 10px;
  }

  .nav-toggle { grid-column: 2; display: inline-flex; }

  .dock { display: none; }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s var(--ease);
  }

  .site-nav[data-open] {
    max-height: min(72vh, 560px);
    overflow: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 20px;
    border-top: 1px solid var(--line);
  }

  .site-nav__link {
    display: block;
    padding: 15px 2px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }

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

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__mark { width: 1.15em; height: 1.15em; }
  .meta-tag { padding: 5px 10px; font-size: 11px; }
}

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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