/* ==========================================================================
   浩瀚体育 · 全站共享样式 /assets/site.css
   深空蓝底 + 暖纸档案卡 + 青柠/信号橙数据强调
   ========================================================================== */

:root {
  --ink: #0B1B2B;
  --graphite: #12161C;
  --slate: #1E2A38;
  --paper: #F3EAD8;
  --paper-line: #E2D6BE;
  --lime: #B8F14A;
  --orange: #FF7A3C;
  --ice: #D8E4F0;
  --fog: #8A99A8;
  --teal: #17414A;

  --hairline: rgba(226, 214, 190, 0.14);
  --hairline-soft: rgba(226, 214, 190, 0.08);

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --header-h: 68px;
  --rail-w: 220px;
  --maxw: 1280px;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(4, 10, 18, 0.35);
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--ice);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

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

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

::selection { background: var(--lime); color: var(--graphite); }

/* --------------------------------------------------------------------------
   中文排版
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 900;
  color: var(--ice);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(38px, 7vw, 84px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 800; letter-spacing: 0.02em; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.mono {
  font-family: var(--mono);
  font-size: 0.94em;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   布局容器
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.main-content { display: block; padding-top: var(--header-h); }
.main-content--flush { padding-top: 0; }

.grid { display: grid; gap: 24px; }
.grid-3-9, .grid-5-7 { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 768px) {
  .container { padding-inline: 28px; }
}

@media (min-width: 960px) {
  .grid { gap: 28px; }
  .grid-3-9 { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
  .grid-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
}

@media (min-width: 1200px) {
  .container { padding-inline: 40px; }
}

/* --------------------------------------------------------------------------
   跳转链接
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   页头
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  color: var(--ice);
  background-image: linear-gradient(180deg, rgba(11, 27, 43, 0.94) 0%, rgba(11, 27, 43, 0.72) 55%, rgba(11, 27, 43, 0) 100%);
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled] {
  background-color: var(--graphite);
  background-image: none;
  box-shadow: 0 1px 0 rgba(226, 214, 190, 0.16), 0 12px 30px rgba(3, 8, 15, 0.5);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 10px 20px;
}

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

.brand-mark {
  flex: 0 0 auto;
  width: 13px;
  height: 26px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 0 100%);
}

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

.brand-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ice);
  white-space: nowrap;
}

.brand-tagline {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fog);
  white-space: nowrap;
}

@media (min-width: 560px) {
  .brand-tagline { display: block; }
}

/* 主导航：窄屏为下拉面板 */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 16px 20px 28px;
  background: var(--graphite);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 18px 36px rgba(3, 8, 15, 0.55);
}

.site-nav[data-open] { display: flex; }

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 12px 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ice);
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-link[aria-current="page"] {
  color: var(--lime);
  border-left-color: var(--lime);
}

.nav-panel-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

/* 桌面工具栏：窄屏隐藏 */
.header-utility {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.util-link {
  font-size: 13.5px;
  color: var(--fog);
  text-decoration: underline;
  text-decoration-color: rgba(138, 153, 168, 0.45);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.util-link:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.util-button {
  padding: 6px 11px;
  background: transparent;
  border: 1px solid rgba(226, 214, 190, 0.24);
  border-radius: var(--radius);
  color: var(--fog);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.util-button:hover,
.util-button[aria-pressed="true"] {
  color: var(--lime);
  border-color: rgba(184, 241, 74, 0.6);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid rgba(226, 214, 190, 0.28);
  border-radius: var(--radius);
  color: var(--ice);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover { color: var(--lime); border-color: rgba(184, 241, 74, 0.6); }

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

@media (min-width: 960px) {
  .brand-name { font-size: 19px; }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border-top: 0;
    box-shadow: none;
  }

  .nav-list { flex-direction: row; align-items: center; gap: 2px; }

  .nav-link {
    padding: 8px 12px;
    font-size: 14.5px;
    letter-spacing: 0.04em;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .nav-link[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--lime);
  }

  .nav-panel-extra { display: none; }

  .header-utility { display: flex; }

  .nav-toggle { display: none; }
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(138, 153, 168, 0.16);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header[data-scrolled] .scroll-progress { opacity: 1; }

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--lime);
  color: var(--graphite);
}

.btn-primary:hover { background: #cdf66f; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ice);
  border-color: rgba(226, 214, 190, 0.35);
}

.btn-ghost:hover { color: var(--lime); border-color: rgba(184, 241, 74, 0.65); }

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

/* --------------------------------------------------------------------------
   内容基础组件
   -------------------------------------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.section-label::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.card {
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.card:hover { border-color: rgba(184, 241, 74, 0.4); }

.paper-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 24px;
  color: #232C36;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--shadow);
}

.paper-card h1, .paper-card h2, .paper-card h3 { color: #12161C; }
.paper-card p { color: #3A424D; }
.paper-card .data-note { color: #5A6673; border-left-color: var(--paper-line); }
.paper-card .source { color: #5A6673; text-decoration-color: rgba(90, 102, 115, 0.5); }
.paper-card .source:hover { color: #1B2027; text-decoration-color: #1B2027; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(226, 214, 190, 0.24);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ice);
}

.tag-lime { color: var(--lime); border-color: rgba(184, 241, 74, 0.5); }
.tag-orange { color: var(--orange); border-color: rgba(255, 122, 60, 0.5); }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: status-breathe 1.6s ease-in-out infinite;
}

@keyframes status-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.78); }
}

.timestamp {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--orange);
}

.data-note {
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 2px solid var(--teal);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--fog);
}

.source {
  font-size: 13px;
  font-style: italic;
  color: var(--fog);
  text-decoration: underline;
  text-decoration-color: rgba(138, 153, 168, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.source:hover { color: var(--lime); text-decoration-color: var(--lime); }

/* 面包屑 */
.breadcrumb { margin: 0 0 22px; font-size: 13px; color: var(--fog); }

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item { display: flex; align-items: center; gap: 8px; }

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(138, 153, 168, 0.5);
}

.breadcrumb-item a { color: var(--fog); transition: color 0.2s ease; }
.breadcrumb-item a:hover { color: var(--lime); }
.breadcrumb-item[aria-current="page"] { color: var(--ice); }

/* 图片容器（供页面阶段放置图片） */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--slate) 0%, var(--ink) 72%);
}

.media-frame--tall { aspect-ratio: 4 / 5; }
.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: linear-gradient(180deg, rgba(11, 27, 43, 0) 48%, rgba(11, 27, 43, 0.58) 100%);
}

.media-figure { margin: 0; }

.media-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--fog);
}

/* 左侧轮次索引列 */
.index-rail { display: none; }

html[data-index="off"] .index-rail { display: none !important; }

.index-rail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.index-rail-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-left: 1px solid rgba(226, 214, 190, 0.18);
  font-size: 13.5px;
  color: var(--fog);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.index-rail-link .mono { color: rgba(138, 153, 168, 0.75); }
.index-rail-link:hover { color: var(--ice); border-left-color: rgba(184, 241, 74, 0.6); }

.index-rail-link[aria-current="true"] {
  color: var(--lime);
  border-left-color: var(--lime);
  background: rgba(184, 241, 74, 0.07);
}

@media (min-width: 1100px) {
  .index-rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    width: var(--rail-w);
    max-height: calc(100vh - var(--header-h) - 56px);
    overflow-y: auto;
  }
}

/* 滚动显现 */
.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
}

.reveal { transition: opacity 0.12s ease, transform 0.12s ease; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  padding: 56px 0 30px;
  background: var(--graphite);
  color: var(--fog);
  border-top: 1px solid var(--hairline);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 96px;
  height: 2px;
  background: var(--lime);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.footer-brand-name {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.footer-closing {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--paper);
  max-width: 26ch;
}

.footer-note {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--fog);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

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

.footer-column-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fog);
}

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

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--ice);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover { color: var(--lime); padding-left: 4px; }

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

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fog);
  opacity: 0.8;
}

.contact-value {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ice);
  word-break: break-word;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-legal p { margin: 0; max-width: none; }
.footer-legal-line { color: var(--fog); }
.footer-correction { color: rgba(138, 153, 168, 0.85); }

@media (min-width: 600px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-inline: 28px; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1.05fr 1.55fr 0.9fr;
    gap: 48px;
    padding-inline: 40px;
  }
  .footer-contact { grid-column: auto; }
  .site-footer { padding-top: 68px; }
}

/* --------------------------------------------------------------------------
   动效与无障碍降级
   -------------------------------------------------------------------------- */
@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;
  }

  .js-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .status-dot { animation: none; }
}
