/* ==========================================================
   云体育·竞界 — 全站共享样式 /assets/site.css
   ========================================================== */

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

/* --- 变量 --- */
:root {
  --bg-deep: #0B0F1A;
  --bg-surface: #1E2533;
  --bg-border: #2E3A4A;
  --text-primary: #F4F7FB;
  --text-secondary: #C6D0DD;
  --accent-cyan: #34D8C4;
  --accent-green: #63C132;
  --accent-orange: #FF6B35;
  --accent-purple: #8A6FFF;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, sans-serif;
  --font-body: "Source Sans Pro", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", ui-sans-serif, sans-serif;
  --font-data: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --header-h: 66px;
  --container-w: 1200px;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --ease: 0.2s ease;
}

/* --- 基础排版 --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-border) var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--accent-purple);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

/* --- 焦点可见 --- */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- 跳转链接 --- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 2000;
  background: var(--accent-green);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 0 0 6px 6px;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--bg-deep);
}

/* --- 主体容器 --- */
#main-content {
  display: block;
  min-height: 55vh;
  outline: none;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrap {
  padding: 44px 0 72px;
}

/* ==========================================================
   头部
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 26, 0.92);
  border-bottom: 1px solid var(--bg-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

@supports (backdrop-filter: blur(6px)) {
  .site-header {
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(8px);
  }
}

.scroll-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
  z-index: 101;
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.brand:hover {
  color: var(--text-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
  color: var(--bg-deep);
  font-size: 17px;
  font-weight: 900;
  font-family: var(--font-body);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  margin-top: 2px;
}

/* 联赛切换 */
.league-wrap {
  position: relative;
}

.league-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.league-trigger:hover {
  background: rgba(99, 193, 50, 0.12);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.league-glyph {
  font-size: 12px;
  color: var(--accent-green);
  line-height: 1;
}

.league-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-secondary);
  transition: transform var(--ease), border-top-color var(--ease);
}

.league-trigger[aria-expanded="true"] .league-caret {
  transform: rotate(180deg);
  border-top-color: var(--accent-green);
}

.league-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 176px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-top: 2px solid var(--accent-green);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}

.league-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.league-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 6px;
}

.league-head-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.league-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(46, 58, 74, 0.35);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-secondary);
  position: relative;
  transition: background var(--ease), color var(--ease), padding-left var(--ease);
}

.league-item:last-child {
  border-bottom: none;
}

.league-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease);
}

.league-item:hover {
  background: rgba(99, 193, 50, 0.08);
  color: var(--text-primary);
  padding-left: 16px;
}

.league-item.is-active {
  color: var(--accent-green);
  background: rgba(99, 193, 50, 0.06);
}

.league-item.is-active::before {
  transform: scaleY(1);
}

/* 导航命令栏 */
.site-nav {
  flex: 1 1 auto;
  margin-left: 24px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(52, 216, 196, 0.06);
  border-bottom-color: var(--accent-purple);
}

.nav-link[aria-current="page"] {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
  background: linear-gradient(to top, rgba(99, 193, 50, 0.1), transparent 85%);
}

.nav-index {
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  line-height: 1;
  font-weight: 500;
}

.nav-marker {
  display: block;
  width: 3px;
  height: 14px;
  background: var(--accent-green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease);
}

.nav-link:hover .nav-marker,
.nav-link[aria-current="page"] .nav-marker {
  transform: scaleY(1);
}

/* 头部右区 */
.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-left: 2px solid var(--accent-orange);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
  white-space: nowrap;
}

.score-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-orange);
}

.score-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: live-pulse 2s ease infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.score-match {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.score-match em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-green);
  margin: 0 3px;
}

.score-time {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.9;
}

/* 移动导航开关 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  cursor: pointer;
  padding: 0;
}

.toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--ease), opacity var(--ease);
}

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

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

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

/* ==========================================================
   页脚
   ========================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-border);
  position: relative;
}

/* 滚动比分条 */
.ticker-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--bg-border);
  background:
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 12px,
      rgba(99, 193, 50, 0.05) 12px,
      rgba(99, 193, 50, 0.05) 24px),
    var(--bg-deep);
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-move 40s linear infinite;
}

.ticker-group {
  display: flex;
  gap: 48px;
  padding-right: 48px;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--accent-green);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.ticker-score {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.ticker-tag {
  font-size: 10px;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 1px;
}

/* 页脚框体 */
.footer-frame {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.footer-brand:hover {
  color: var(--text-primary);
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent-green);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 900;
  font-family: var(--font-body);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 360px;
}

.footer-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0.7;
  border-left: 2px solid var(--accent-green);
  padding-left: 10px;
  max-width: 360px;
}

.footer-coord {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  opacity: 0.6;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.title-bar {
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--accent-green);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 3px 0;
  transition: color var(--ease), padding-left var(--ease);
}

.footer-links a::before {
  content: "›";
  color: var(--accent-green);
  font-family: var(--font-data);
  line-height: 1;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

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

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-label {
  flex: 0 0 auto;
  min-width: 52px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 2px;
}

/* 底栏 */
.footer-bottom {
  border-top: 1px solid var(--bg-border);
  padding: 16px 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-copy {
  white-space: nowrap;
}

.footer-icp {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.footer-icp a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-icp a:hover {
  color: var(--accent-green);
}

/* 返回顶部 */
.top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  background: var(--accent-green);
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease), background var(--ease);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-deep);
}

/* ==========================================================
   共享基础组件
   ========================================================== */

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-secondary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 30px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb-sep {
  color: var(--bg-border);
  font-size: 12px;
}

/* 区块标题 */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bg-border);
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 56px;
  background: var(--accent-green);
}

.section-index {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

.section-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

/* 网格 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-green);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: #7AD54E;
  color: var(--bg-deep);
}

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

.btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* 图片框 */
.img-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  overflow: hidden;
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(99, 193, 50, 0.35);
  z-index: 1;
  pointer-events: none;
}

.img-frame::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--accent-green);
  z-index: 1;
}

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

.img-frame .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 16px,
      rgba(46, 58, 74, 0.25) 16px,
      rgba(46, 58, 74, 0.25) 32px),
    var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 扫描线卡片 */
.card-scan {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.card-scan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0;
  transition: opacity var(--ease);
  z-index: 1;
}

.card-scan::after {
  content: "";
  position: absolute;
  top: -80%;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, rgba(52, 216, 196, 0.07), transparent);
  transition: top 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.card-scan:hover {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 1px rgba(99, 193, 50, 0.25);
}

.card-scan:hover::before {
  opacity: 1;
}

.card-scan:hover::after {
  top: 120%;
}

.card-scan:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan);
}

/* ==========================================================
   响应式
   ========================================================== */

@media (max-width: 1199px) {
  .nav-link {
    padding: 8px 9px;
    font-size: 13px;
  }

  .nav-index {
    font-size: 9px;
  }

  .score-mini {
    padding: 4px 8px;
    font-size: 11px;
  }
}

@media (max-width: 991px) {
  :root {
    --header-h: 58px;
  }

  .header-inner {
    gap: 10px;
    padding: 0 16px;
  }

  .brand-en {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .league-text {
    display: none;
  }

  .league-trigger {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .league-glyph {
    font-size: 13px;
  }

  .score-time,
  .score-tag {
    display: none;
  }

  .score-mini {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* 导航切换为移动端抽屉 */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--bg-border);
    box-shadow: var(--shadow-lg);
    padding: 14px 16px 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
    z-index: 50;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .nav-item {
    display: block;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(46, 58, 74, 0.45);
    border-left: 3px solid transparent;
  }

  .nav-link:hover {
    background: rgba(52, 216, 196, 0.06);
    border-left-color: var(--accent-purple);
    border-bottom-color: rgba(46, 58, 74, 0.45);
  }

  .nav-link[aria-current="page"] {
    background: rgba(99, 193, 50, 0.1);
    border-left-color: var(--accent-green);
    border-bottom-color: rgba(46, 58, 74, 0.45);
  }

  .nav-marker {
    height: 14px;
  }

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

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

  .footer-frame {
    padding: 32px 20px 0;
  }

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

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-desc,
  .footer-note {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .brand-name {
    font-size: 14px;
  }

  .league-wrap {
    display: none;
  }

  .score-mini {
    font-size: 11px;
    padding: 3px 6px;
  }

  .score-match em {
    margin: 0 1px;
  }

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

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

  .footer-brand-col {
    grid-column: auto;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==========================================================
   无障碍：减少动效
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none;
  }

  .score-pulse {
    animation: none;
  }

  .card-scan:hover::after {
    display: none;
  }

  .btn:hover {
    transform: none;
  }

  .brand:hover .brand-mark {
    transform: none;
  }
}
