/* ============================================
   浩瀚体育竞界 — 全站共享样式
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #F0F4F8;
  background: #0A1428;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: #F0F4F8;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #C5FF3E;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #C5FF3E;
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: #C5FF3E;
  color: #0A1428;
}

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0A1428;
  --bg-card: #13213A;
  --bg-data: #0B1420;
  --accent-live: #C5FF3E;
  --accent-injury: #FF6B3D;
  --text-main: #F0F4F8;
  --text-aux: #A4B4C4;
  --border-color: #33415C;
  --border-thick: 3px;
  --border-thin: 1px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 18px 50px rgba(0, 0, 0, 0.6);
  --radius: 2px;
  --radius-sm: 0;
  --header-height: 72px;
  --rail-width: 56px;
  --content-max: 1320px;
  --transition-fast: 200ms ease;
  --transition-slow: 300ms ease;
  --font-data: "Roboto Mono", "Courier New", monospace;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  background: var(--accent-live);
  color: #0A1428;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 2px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-card);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- 页面滚动进度条 ---------- */
.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--accent-live);
  z-index: 9998;
  box-shadow: 0 0 12px rgba(197, 255, 62, 0.6);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-progress {
    display: none;
  }
}

/* ---------- 框架式头部 ---------- */
.site-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  pointer-events: none;
}

.frame-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.92) 0%, rgba(10, 20, 40, 0.78) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  pointer-events: all;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-frame.scrolled .frame-dim {
  background: rgba(10, 20, 40, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.frame-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--rail-width);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 950;
}

.rail-mark {
  width: 10px;
  height: 10px;
  background: var(--accent-live);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(197, 255, 62, 0.8);
  animation: rail-pulse 2.4s ease-in-out infinite;
}

.rail-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--accent-live), transparent);
  margin: 12px 0;
}

.rail-label {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--text-aux);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

@keyframes rail-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(197, 255, 62, 0.4); opacity: 0.7; }
  50% { box-shadow: 0 0 22px rgba(197, 255, 62, 0.95); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-mark, .status-dot {
    animation: none;
  }
}

/* ---------- 顶部状态条 ---------- */
.top-status {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 56px) 0 calc(clamp(16px, 4vw, 56px) + var(--rail-width));
  pointer-events: all;
  border-bottom: 1px solid rgba(51, 65, 92, 0.55);
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-aux);
  background: rgba(10, 20, 40, 0.4);
}

.status-clock {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-live);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(197, 255, 62, 0.9);
  animation: rail-pulse 1.8s ease infinite;
}

.status-ticker {
  font-weight: 700;
}

.status-contact {
  color: var(--text-aux);
  font-weight: 400;
}

.status-contact:hover {
  color: var(--accent-live);
}

/* ---------- 头部主体 ---------- */
.header-main {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 56px) 0 calc(clamp(16px, 4vw, 56px) + var(--rail-width));
  gap: clamp(16px, 3vw, 48px);
  pointer-events: all;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  position: relative;
  display: block;
  background: var(--accent-live);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(197, 255, 62, 0.3);
}

.mark-square {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border: 3px solid #0A1428;
  border-radius: 1px;
}

.mark-line {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 3px;
  background: #0A1428;
  transform: translateY(-50%);
}

.mark-dot {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent-injury);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 107, 61, 0.8);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-main);
  white-space: nowrap;
  line-height: 1.2;
}

.brand-sub {
  color: var(--accent-live);
  margin-left: 2px;
}

.brand-mark--footer {
  width: 36px;
  height: 36px;
}

.brand-mark--footer .mark-square {
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
}

.brand-mark--footer .mark-line {
  left: 6px;
  right: 6px;
}

.brand-mark--footer .mark-dot {
  bottom: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
}

/* ---------- 主导航 ---------- */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-aux);
  border: 2px solid transparent;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-live);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover::after {
  width: 40%;
}

.nav-link[aria-current="page"] {
  color: var(--text-main);
  background: rgba(197, 255, 62, 0.08);
  border-color: rgba(197, 255, 62, 0.3);
}

.nav-link[aria-current="page"]::after {
  width: 100%;
  background: var(--accent-live);
}

.nav-link[aria-current="page"]:hover::after {
  width: 100%;
}

/* ---------- 头部操作区 ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.legacy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-injury);
  color: #0A1428;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(255, 107, 61, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.legacy-link:hover {
  background: #ff8158;
  color: #0A1428;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 61, 0.5);
}

.legacy-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-color);
  border-radius: 2px;
  background: rgba(19, 33, 58, 0.8);
  padding: 6px;
}

.toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-main);
  border-radius: 1px;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.toggle-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-aux);
  text-transform: uppercase;
}

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

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent-live);
}

/* ---------- 移动端导航抽屉 ---------- */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 88vw);
  height: 100vh;
  background: var(--bg-card);
  border-left: 3px solid var(--border-color);
  pointer-events: all;
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 960;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 32px 48px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.nav-panel[data-open="true"] {
  transform: translateX(0);
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 4px;
}

.panel-link {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.panel-link:hover {
  color: var(--accent-live);
}

.panel-index {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--text-aux);
  letter-spacing: 0.1em;
}

.panel-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 2px solid var(--border-color);
  padding-top: 24px;
}

.panel-meta-item {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-aux);
  text-transform: uppercase;
}

/* 抽屉遮罩 */
.site-frame::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 940;
}

.site-frame.nav-open::after {
  opacity: 1;
  pointer-events: all;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-data);
  border-top: 3px solid var(--border-color);
  padding: 64px clamp(20px, 5vw, 72px) 28px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-live) 0%, var(--accent-live) 35%, var(--accent-injury) 35%, var(--accent-injury) 38%, var(--border-color) 38%, var(--border-color) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.footer-tagline {
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--accent-live);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  font-size: 0.92rem;
  color: var(--text-aux);
}

.footer-contact-item a {
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1px;
}

.footer-contact-item a:hover {
  color: var(--accent-live);
  border-color: var(--accent-live);
}

.footer-side {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-aux);
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.footer-link::before {
  content: "→";
  color: var(--accent-injury);
  font-family: var(--font-data);
}

.footer-link:hover {
  color: var(--accent-live);
  transform: translateX(4px);
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-note {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-trust {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-aux);
  border-left: 3px solid var(--accent-live);
  padding-left: 14px;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--text-aux);
  letter-spacing: 0.02em;
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 48px auto 0;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--text-aux);
  letter-spacing: 0.04em;
}

.footer-icp {
  color: var(--text-aux);
}

.footer-version {
  margin-left: auto;
  color: var(--accent-live);
  letter-spacing: 0.08em;
}

/* ---------- 通用排版与正文容器 ---------- */
.main-content {
  padding: calc(var(--header-height) + 34px) 0 0 var(--rail-width);
  min-height: 100vh;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.container--wide {
  max-width: 1560px;
}

.page-header {
  padding: 48px 0 24px;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 72px;
  height: 6px;
  background: var(--accent-live);
  border-radius: 1px;
}

.page-intro {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-aux);
  max-width: 780px;
  margin-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--text-aux);
  margin-bottom: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
  color: var(--text-aux);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb-sep {
  color: var(--border-color);
}

.breadcrumb-current {
  color: var(--accent-live);
  font-weight: 700;
}

/* ---------- 通用网格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--aside {
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* ---------- 档案夹卡片 ---------- */
.doc-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--bcard-accent, var(--accent-live));
  opacity: 0.7;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: rgba(197, 255, 62, 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-index {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-aux);
  background: var(--bg-data);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 1px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
}

.card-body {
  color: var(--text-aux);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---------- 等宽数据块 ---------- */
.data-block {
  background: var(--bg-data);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-live);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font-data);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-main);
  overflow-x: auto;
}

.data-block--injury {
  border-left-color: var(--accent-injury);
}

.data-block--simple {
  border-left: none;
  border: 1px solid var(--border-color);
}

/* ---------- 标签系统 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  background: var(--bg-data);
  border: 1px solid var(--border-color);
  color: var(--text-aux);
}

.tag--live {
  background: rgba(197, 255, 62, 0.12);
  border-color: rgba(197, 255, 62, 0.5);
  color: var(--accent-live);
}

.tag--live::before {
  content: "●";
  font-size: 0.55rem;
  animation: rail-pulse 1.4s ease infinite;
}

.tag--injury {
  background: rgba(255, 107, 61, 0.12);
  border-color: rgba(255, 107, 61, 0.5);
  color: var(--accent-injury);
}

.tag--injury::before {
  content: "▲";
  font-size: 0.6rem;
}

.tag--meta {
  background: transparent;
  border-style: dashed;
}

/* ---------- 斜切分割线 ---------- */
.slash-divider {
  height: 4px;
  background: linear-gradient(135deg, var(--accent-live) 0%, var(--accent-live) 30%, var(--border-color) 30%, var(--border-color) 50%, var(--accent-injury) 50%, var(--accent-injury) 70%, var(--border-color) 70%);
  border: none;
  margin: 32px 0;
}

/* ---------- 图片容器基础 ---------- */
.img-frame {
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-frame--wide {
  aspect-ratio: 16 / 9;
}

.img-frame--tall {
  aspect-ratio: 3 / 4;
}

.img-frame--fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(197, 255, 62, 0.06) 0 6px,
    transparent 6px 12px
  );
  pointer-events: none;
  transition: background 0.3s ease;
}

.img-frame:hover::after {
  background: repeating-linear-gradient(
    -45deg,
    rgba(197, 255, 62, 0.1) 0 6px,
    transparent 6px 12px
  );
}

/* 数据扫描线背景 */
.scan-bg {
  position: relative;
}

.scan-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 40px,
    rgba(197, 255, 62, 0.03) 40px 41px,
    transparent 41px 80px
  );
  pointer-events: none;
}

.scan-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(197, 255, 62, 0.05), transparent);
  transform: skewX(-25deg);
  animation: scan-sweep 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-sweep {
  0%, 60% { left: -100%; }
  100% { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-bg::after {
    animation: none;
    display: none;
  }
}

/* ---------- 数据滚动条 ---------- */
[data-marquee] {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 12px 0;
}

[data-marquee] .marquee-track {
  display: inline-block;
  animation: marquee-scroll 36s linear infinite;
  will-change: transform;
}

[data-marquee] .marquee-track span {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--text-aux);
  margin-right: 48px;
  letter-spacing: 0.06em;
}

[data-marquee] .marquee-track span em {
  color: var(--accent-live);
  font-style: normal;
  font-weight: 700;
}

[data-marquee] .marquee-track span i {
  color: var(--accent-injury);
  font-style: normal;
  font-weight: 700;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  [data-marquee] .marquee-track {
    animation: none;
    white-space: normal;
  }

  [data-marquee] .marquee-track span {
    display: inline;
    margin-right: 12px;
  }
}

/* ---------- 筛选交互 ---------- */
[data-filter-group] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

[data-filter] {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-aux);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 1px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

[data-filter]:hover {
  border-color: var(--accent-live);
  color: var(--text-main);
}

[data-filter][data-active="true"],
[data-filter].is-active {
  background: var(--accent-live);
  color: #0A1428;
  border-color: var(--accent-live);
  font-weight: 900;
}

[data-category].is-hidden {
  display: none !important;
}

/* 筛选渐入过渡 */
[data-category] {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

[data-category].filter-entering {
  animation: filter-in 0.3s ease both;
}

@keyframes filter-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn--live {
  background: var(--accent-live);
  color: #0A1428;
  box-shadow: 0 6px 24px rgba(197, 255, 62, 0.35);
}

.btn--live:hover {
  background: #d4ff66;
  color: #0A1428;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(197, 255, 62, 0.45);
}

.btn--injury {
  background: var(--accent-injury);
  color: #0A1428;
  box-shadow: 0 6px 24px rgba(255, 107, 61, 0.3);
}

.btn--injury:hover {
  background: #ff8158;
  color: #0A1428;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 107, 61, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn--ghost:hover {
  border-color: var(--accent-live);
  color: var(--accent-live);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- 分节标题 ---------- */
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.section-kicker {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--accent-live);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
}

.section-more {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--text-aux);
  white-space: nowrap;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 1px;
  transition: all 0.2s ease;
}

.section-more:hover {
  color: #0A1428;
  background: var(--accent-live);
  border-color: var(--accent-live);
}

/* ---------- 响应式断点 ---------- */

/* 平板 1024px */
@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }

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

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--2, .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机 640px */
@media (max-width: 640px) {
  :root {
    --header-height: 60px;
    --rail-width: 0px;
  }

  .main-content {
    padding-left: 0;
  }

  .header-main {
    height: var(--header-height);
    padding: 0 16px;
  }

  .top-status {
    padding: 0 16px;
    font-size: 0.65rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark .mark-square {
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
  }

  .brand-mark .mark-line {
    left: 6px;
    right: 6px;
  }

  .brand-mark .mark-dot {
    bottom: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
  }

  .legacy-link {
    padding: 8px 12px;
  }

  .legacy-text {
    display: none;
  }

  .legacy-icon {
    font-size: 1.2rem;
  }

  .frame-rail {
    display: none;
  }

  .nav-panel {
    padding-top: 100px;
    width: 92vw;
  }

  .panel-link {
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }

  .grid--aside {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    font-size: 0.68rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-version {
    margin-left: 0;
    margin-top: 4px;
  }

  .site-footer {
    padding: 48px 20px 24px;
  }

  .section-heading {
    flex-direction: column;
    gap: 12px;
  }
}

/* 超小屏 380px */
@media (max-width: 380px) {
  .brand-name {
    font-size: 0.9rem;
  }

  .top-status .status-contact {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }
}

/* ---------- 打印/减少动效 ---------- */
@media print {
  .site-frame, .site-progress, .nav-panel, .frame-rail {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* 为 JS data-progress 预留可访问性 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .doc-card {
    transition: none;
  }

  .btn, .legacy-link, .footer-link {
    transition: none;
  }

  .status-dot,
  .rail-mark {
    animation: none !important;
  }

  [data-marquee],
  [data-marquee] .marquee-track,
  [data-marquee] .marquee-track span {
    animation: none !important;
    white-space: normal;
  }
}

/* 动态扫描斜切背景装饰 */
.slash-sweep {
  position: relative;
  background: linear-gradient(135deg, transparent 0%, transparent 30%, rgba(197, 255, 62, 0.05) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: slash-move 8s ease-in-out infinite alternate;
}

@keyframes slash-move {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .slash-sweep {
    animation: none;
    background-size: 100% 100%;
  }
}

/* 信息密度控制 */
.aux-text {
  font-size: 0.82rem;
  color: var(--text-aux);
}

.mono {
  font-family: var(--font-data);
}

.highlight-live {
  color: var(--accent-live);
}

.highlight-injury {
  color: var(--accent-injury);
}

/* 内容区主布局适配 */
#main-content {
  position: relative;
  z-index: 1;
}

/* 通用分隔 */
.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 32px 0;
}

.divider--live {
  border-top-color: rgba(197, 255, 62, 0.4);
}
