/* ===================================================================
   浩瀚体育官网 · 共享站务样式 /assets/site.css
   深空蓝转播控制室基调：冷底 + 荧光青结构线 + 电光橙热点
   =================================================================== */

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

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

main { display: block; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --ink: #07131F;
  --ink-2: #0D2436;
  --console: #1B2A36;
  --stone: #6F7B84;
  --paper: #F4EFE4;
  --cyan: #43F0D0;
  --orange: #FF8A3B;
  --moss: #7E9B7A;
  --clay: #C07A5A;
  --deep: #03070B;

  --paper-78: rgba(244, 239, 228, .78);
  --paper-70: rgba(244, 239, 228, .70);
  --paper-52: rgba(244, 239, 228, .52);
  --paper-30: rgba(244, 239, 228, .30);
  --rule: rgba(244, 239, 228, .14);
  --rule-soft: rgba(244, 239, 228, .07);
  --rule-strong: rgba(244, 239, 228, .26);

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", ui-monospace, monospace;

  /* 尺度 */
  --shell: 1240px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 460px at 84% -8%, rgba(67, 240, 208, .10), transparent 62%),
    radial-gradient(680px 400px at 6% 0%, rgba(255, 138, 59, .07), transparent 66%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--paper);
}

h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: .015em;
}

h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.3rem); }

p { color: var(--paper-78); }

strong { color: var(--paper); font-weight: 700; }

small { font-size: 13px; color: var(--stone); }

::selection { background: var(--cyan); color: var(--ink); }

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

/* ---------- 4. 工具骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.stack > * + * { margin-top: 1rem; }

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss);
}

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

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #180B02;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #FFA465;
  border-color: #FFA465;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(67, 240, 208, .48);
  color: var(--cyan);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(67, 240, 208, .12);
  border-color: var(--cyan);
}

.btn-outline {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--paper);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--stone);
}

.breadcrumb a {
  color: var(--paper-70);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--paper-30);
}

/* ---------- 7. 正文块 ---------- */
.prose { max-width: 70ch; }

.prose p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: var(--paper-78);
  margin-bottom: 1.1em;
}

.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  margin: 2em 0 .7em;
  padding-top: .8em;
  border-top: 1px solid var(--rule);
}

.prose h3 { margin: 1.6em 0 .5em; }

.prose ul,
.prose ol {
  margin-bottom: 1.1em;
  padding-left: 1.1em;
  list-style: disc;
  color: var(--paper-78);
}

.prose li { margin-bottom: .4em; }

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 240, 208, .38);
}

/* ---------- 8. 图片容器基础 ---------- */
.media-figure { margin: 0; }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(150deg, var(--console) 0%, var(--ink-2) 55%, var(--deep) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(67, 240, 208, .16) 0 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(180deg, rgba(255, 138, 59, .10), transparent 45%);
  opacity: .5;
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame--skew {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.media-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--stone);
}

/* ---------- 9. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .25s var(--ease);
}

.site-header.is-condensed {
  box-shadow: 0 14px 34px -22px rgba(3, 7, 11, .95);
}

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--cyan);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* 阅读进度 */
.progress-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(244, 239, 228, .06);
  z-index: 5;
}

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

/* 数据带 */
.data-band {
  background: var(--deep);
  border-bottom: 1px solid var(--rule-soft);
  color: var(--paper-70);
}

.data-band-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 7px var(--gutter);
  transition: padding .25s var(--ease);
}

.data-band-note {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--paper-70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-dot {
  flex: 0 0 auto;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--orange);
  animation: livePulse 2.8s var(--ease) infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 138, 59, .55); }
  60%  { box-shadow: 0 0 0 7px rgba(255, 138, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 59, 0); }
}

.data-band-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cyan);
  text-align: center;
  white-space: nowrap;
}

.data-band-link {
  justify-self: end;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(67, 240, 208, .42);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.data-band-link:hover,
.data-band-link:focus-visible {
  background: var(--cyan);
  color: var(--ink);
}

/* 刊头 */
.masthead { background: var(--ink); }

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(14px, 2.2vw, 24px) var(--gutter);
  transition: padding .25s var(--ease);
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.edition-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--clay);
  background: rgba(192, 122, 90, .10);
  border: 1px solid rgba(192, 122, 90, .55);
  border-radius: var(--radius);
  white-space: nowrap;
}

.brand-tagline {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--stone);
  white-space: nowrap;
}

.brand-lockup {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--paper);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: .16em;
  text-indent: .16em;
  transition: font-size .25s var(--ease);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--stone);
  transition: opacity .25s var(--ease), height .25s var(--ease);
}

.brand-lockup:hover .brand-name,
.brand-lockup:focus-visible .brand-name { color: var(--cyan); }

.masthead-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  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 {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color .2s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 导航条 */
.site-nav {
  background: var(--ink-2);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1.6vw, 22px);
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: block;
  padding: 13px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--paper-70);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 9px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .22s var(--ease);
}

.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 滚动收窄状态 */
.site-header.is-condensed .masthead-inner { padding-block: 7px; }
.site-header.is-condensed .brand-name { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
.site-header.is-condensed .brand-sub { opacity: 0; height: 0; overflow: hidden; }
.site-header.is-condensed .data-band-inner { padding-block: 4px; }
.site-header.is-condensed .brand-tagline { display: none; }
.site-header.is-condensed .nav-link { padding-block: 10px; }

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  color: var(--paper);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--deep) 100%);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 240, 208, .65), rgba(255, 138, 59, .5), transparent);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(18px, 2.5vw, 30px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(26px, 4vw, 56px);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: .14em;
  color: var(--paper);
}

.footer-brand-line {
  margin: 10px 0 20px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .05em;
  color: var(--stone);
}

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

.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--moss);
  border-bottom: 1px solid var(--rule);
}

.footer-links li + li { margin-top: 9px; }

.footer-links a {
  display: inline-block;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--paper-70);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  transform: translateX(3px);
}

/* 可撕取联系卡 */
.footer-contact {
  position: relative;
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(16px, 2.4vw, 26px);
  background: rgba(3, 7, 11, .45);
  border: 1px dashed var(--rule-strong);
  border-radius: 3px;
}

.footer-contact::before,
.footer-contact::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--deep);
  border: 1px dashed var(--rule-strong);
}

.footer-contact::before { left: -6px; }
.footer-contact::after { right: -6px; }

.footer-contact-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--clay);
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-78);
  border-bottom: 1px solid var(--rule-soft);
}

.contact-key {
  flex: 0 0 auto;
  min-width: 76px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--stone);
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--stone);
}

/* 页脚底部 */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
}

.footer-copy,
.footer-icp { margin: 0; color: var(--stone); }

.footer-icp { font-family: var(--font-mono); letter-spacing: .1em; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links a {
  color: var(--paper-52);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible { color: var(--cyan); }

/* ---------- 11. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1100px) {
  .brand-tagline { display: none; }
  .site-header.is-condensed .edition-badge { display: none; }
}

@media (max-width: 900px) {
  .data-band-inner {
    grid-template-columns: 1fr auto;
  }

  .data-band-status { display: none; }

  .masthead-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }

  .masthead-meta { display: none; }

  .masthead-cta { display: none; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--ink-2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 26px 40px -28px rgba(3, 7, 11, .95);
    transition: max-height .3s var(--ease), visibility .3s var(--ease);
  }

  .site-nav[data-open="true"] {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    visibility: visible;
  }

  .nav-inner { padding-inline: 0; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }

  .nav-item + .nav-item { border-top: 1px solid var(--rule-soft); }

  .nav-link {
    padding: 15px var(--gutter);
    font-size: 15px;
    letter-spacing: .12em;
  }

  .nav-link::after {
    left: var(--gutter);
    right: auto;
    width: 26px;
    bottom: 11px;
  }

  .grid--7-5,
  .grid--5-7,
  .grid--8-4 { grid-template-columns: minmax(0, 1fr); }

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

@media (max-width: 640px) {
  .data-band-note { font-size: 10px; letter-spacing: .1em; }
  .data-band-link { font-size: 10px; padding: 3px 9px; }
  .brand-sub { letter-spacing: .3em; text-indent: .3em; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-key { min-width: 100%; }
}

/* ---------- 13. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .live-dot { animation: none; box-shadow: 0 0 0 3px rgba(255, 138, 59, .18); }
  .progress-bar { transition: none; }
}
