/* =========================================================
   天空体育 · Site Kit 共享样式
   文件位置 /assets/site.css
   包含：设计令牌、基础排版、通用组件、页头、页脚
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --sky-blue: #00A3FF;
  --neon-green: #39FF14;
  --neon-green-deep: #2ECC71;
  --deep-space: #1A1A2E;
  --white: #FFFFFF;
  --light-mist: #F5F7FA;
  --sky-soft: #E0F4FF;
  --ink: #0F172A;
  --score-red: #FF3355;
  --glass-white: rgba(255, 255, 255, 0.6);

  --font-headline: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --header-w: 288px;
  --container-w: 1200px;
  --radius: 2px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: var(--sky-blue);
  text-decoration: none;
}

a:hover {
  color: var(--sky-blue);
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--neon-green);
}

#main-content {
  scroll-margin-top: 16px;
}

#main-content:focus {
  outline: none;
}

/* ---------- 3. 工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.text-muted {
  color: rgba(15, 23, 42, 0.62);
}

.text-green {
  color: var(--neon-green-deep);
}

/* ---------- 4. 标题与正文 ---------- */
.display-title {
  font-family: var(--font-headline);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead-text {
  font-size: 20px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.78);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-blue);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--neon-green-deep);
}

.page-header {
  padding: 48px 0 24px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 40px;
}

.page-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.page-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.72);
  max-width: 640px;
  margin-top: 8px;
}

.section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

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

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

.btn-primary {
  background: var(--sky-blue);
  border-color: var(--sky-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #0091e0;
  border-color: #0091e0;
  color: var(--white);
}

.btn-accent {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--deep-space);
}

.btn-accent:hover {
  background: #2ee60c;
  border-color: #2ee60c;
  color: var(--deep-space);
}

.btn-ghost {
  background: transparent;
  border-color: var(--sky-blue);
  color: var(--sky-blue);
}

.btn-ghost:hover {
  background: var(--sky-soft);
  color: var(--sky-blue);
}

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
}

.breadcrumb-list {
  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: var(--sky-soft);
  font-family: var(--font-mono);
}

.breadcrumb-link {
  color: var(--sky-blue);
  font-weight: 500;
}

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

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

.grid-tight {
  gap: 16px;
}

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

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

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

/* ---------- 8. 卡片与标签 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--sky-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--sky-blue);
}

.card-header {
  padding: 18px 20px 0;
}

.card-title {
  font-size: 18px;
  font-weight: 900;
}

.card-body {
  padding: 14px 20px 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 18px;
}

.card-glass {
  background: var(--glass-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius);
  background: var(--sky-soft);
  color: #0070b0;
}

.tag-accent {
  background: rgba(57, 255, 20, 0.15);
  color: #0c8a00;
}

.tag-dark {
  background: var(--deep-space);
  color: var(--neon-green);
  font-family: var(--font-mono);
}

/* ---------- 9. 数据组件 ---------- */
.stat {
  padding: 16px;
  background: var(--light-mist);
  border-left: 3px solid var(--sky-blue);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.6);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.5);
  border-bottom: 2px solid var(--ink);
  padding: 10px 12px;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--sky-soft);
  font-variant-numeric: tabular-nums;
}

.data-table tr:hover td {
  background: var(--light-mist);
}

.divider {
  display: block;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--sky-blue), var(--neon-green), transparent);
  margin: 32px 0;
}

.glass-panel {
  background: var(--glass-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

/* ---------- 10. 图片占位容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sky-soft), var(--light-mist) 60%, #d9ebfa);
  border: 1px solid var(--sky-soft);
}

.media-frame::before {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  background: var(--glass-white);
  border-left: 3px solid var(--sky-blue);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, transparent 40%, rgba(0, 163, 255, 0.08) 55%, transparent 75%),
    repeating-linear-gradient(-45deg, rgba(26, 26, 46, 0.03) 0 1px, transparent 1px 12px);
  pointer-events: none;
}

.media-wide {
  aspect-ratio: 21 / 9;
}

.media-square {
  aspect-ratio: 1 / 1;
}

.media-portrait {
  aspect-ratio: 3 / 4;
}

/* ---------- 11. 主体布局 ---------- */
.site-main {
  margin-left: var(--header-w);
  min-height: 100vh;
}

/* ---------- 12. 页头：悬浮终端栏 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: var(--header-w);
  height: 100vh;
  background: var(--deep-space);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.2);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--sky-blue), var(--neon-green));
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 36px);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: top var(--transition);
}

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

.site-header-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--sky-blue) 55%, var(--neon-green) 55%, var(--neon-green) 100%);
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 900;
  color: var(--deep-space);
  box-shadow: 0 0 0 2px rgba(0, 163, 255, 0.2);
}

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

.brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--neon-green);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sky-blue);
  transition: transform var(--transition), opacity var(--transition);
}

.site-header[data-open] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 13. 导航 ---------- */
.site-nav {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 12px;
}

.site-nav::-webkit-scrollbar {
  width: 4px;
}

.site-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(90deg, rgba(0, 163, 255, 0.22), rgba(0, 163, 255, 0.04));
  border-left-color: var(--sky-blue);
}

.nav-index {
  min-width: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
}

.nav-link:hover .nav-index,
.nav-link[aria-current="page"] .nav-index {
  color: var(--neon-green);
}

.nav-label {
  flex: 1;
}

/* ---------- 14. 页头底部：实时赛况滚动条 ---------- */
.site-header-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.header-ticker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ticker-viewport {
  position: relative;
  height: 96px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  flex-direction: column;
  animation: ticker-scroll 12s linear infinite;
}

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

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 32px;
  padding: 0 4px;
  font-size: 13px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.ticker-item .mono {
  color: var(--neon-green);
  font-size: 12px;
}

/* ---------- 15. 阅读进度条与返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 100vh;
  z-index: 1200;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--sky-blue), var(--neon-green));
  transform: scaleY(0);
  transform-origin: top center;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--deep-space);
  border-radius: var(--radius);
  background: var(--sky-blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-lg);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.back-to-top:hover {
  background: var(--neon-green);
  color: var(--deep-space);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.back-to-top-icon {
  display: block;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-left: var(--header-w);
  background: var(--deep-space);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-blue), var(--neon-green) 55%, transparent);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-watermark {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 0;
  font-family: var(--font-headline);
  font-size: clamp(84px, 14vw, 180px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding: 56px 0 40px;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-brand:hover .footer-brand-text strong {
  color: var(--neon-green);
}

.footer-brand-text strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
}

.footer-brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-green);
}

.footer-desc {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

.footer-title {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 2px solid var(--sky-blue);
}

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

.footer-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-list a:hover {
  color: var(--neon-green);
  padding-left: 4px;
  text-decoration: none;
}

.footer-contact .footer-list {
  gap: 12px;
}

.footer-contact .footer-list li {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--neon-green);
  text-decoration: none;
}

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

.footer-copy,
.footer-icp {
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 17. 渐显动画 ---------- */
html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    border-right: 0;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.18);
  }

  .site-header-top {
    padding: 14px 16px;
  }

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

  .brand-tag {
    font-size: 10px;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  }

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

  .site-header-foot {
    display: none;
  }

  .site-main,
  .site-footer {
    margin-left: 0;
  }

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

  .back-to-top {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 32px;
  }

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

@media (max-width: 640px) {
  .grid-col-2,
  .grid-col-3,
  .grid-col-4 {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
    font-size: 20px;
  }
}

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

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

  .ticker-track,
  .ticker-pulse {
    animation: none !important;
  }

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