/* ============================================================
   皇冠体彩官网 —— Site Kit 共享样式 /assets/site.css
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 品牌色板 */
  --blue: #0A1A2F;
  --indigo: #2B1E4B;
  --wine: #7A1E3C;
  --gold: #D4B44A;
  --moon: #F2F0E8;
  --mist: #5C7C99;
  --emerald: #0F6B5C;
  --light-gold: #E9D9A8;
  --ink: #333A45;
  --star-line: #8FA6BF;

  /* 语义标记 */
  --bg-primary: var(--blue);
  --bg-alt: var(--indigo);
  --bg-panel: var(--moon);
  --text-primary: var(--moon);
  --text-secondary: var(--mist);
  --text-body: var(--ink);
  --accent: var(--gold);
  --accent-soft: var(--light-gold);
  --accent-wine: var(--wine);
  --line: var(--star-line);
  --status: var(--emerald);

  /* 字体 */
  --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;

  /* 字号 */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* 布局 */
  --container-max: 1200px;
  --container-wide: 1440px;
  --header-height: 56px;

  /* 效果 */
  --shadow-panel: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.2);
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-full: 999px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Screen Reader Only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 容器 ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* ---------- 主内容区 ---------- */
.main-content {
  min-height: 60vh;
  overflow-x: hidden;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--blue);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transform: translateY(-200%);
  transition: transform 0.2s ease-in-out;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(143, 166, 191, 0.2);
  z-index: 1500;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  box-shadow: 0 0 6px rgba(212, 180, 74, 0.5);
  transition: width 0.05s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(10, 26, 47, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(143, 166, 191, 0.2);
}

.header-inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* 品牌 */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-brand:hover {
  color: var(--light-gold);
}
.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--gold), var(--light-gold));
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 180, 74, 0.4);
  flex-shrink: 0;
}
.brand-text {
  font-weight: 700;
}

/* 导航 */
.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--moon);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--gold);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: transparent;
  border-radius: var(--radius-sm);
}
.nav-link[aria-current="page"] {
  color: var(--gold);
}
.nav-link[aria-current="page"]::after {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212, 180, 74, 0.6);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mist);
  letter-spacing: 0.05em;
}
.nav-link:hover .nav-index {
  color: var(--light-gold);
}
.nav-link[aria-current="page"] .nav-index {
  color: var(--gold);
}

/* 右侧操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 更新公告按钮 */
.notice-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--gold);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}
.notice-toggle:hover {
  background: var(--light-gold);
  box-shadow: 0 0 0 3px rgba(212, 180, 74, 0.3);
}
.notice-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.notice-toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.7;
  flex-shrink: 0;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px;
}
.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--moon);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle:hover .nav-toggle-line {
  background: var(--gold);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 公告弹层 */
.notice-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--moon);
  color: var(--text-body);
  border: 1px solid rgba(143, 166, 191, 0.6);
  box-shadow: var(--shadow-panel);
  z-index: 1300;
  display: none;
}
.notice-panel[data-open] {
  display: block;
  animation: notice-in 0.25s ease-out;
}
.notice-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 32px;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-left: 1px solid rgba(143, 166, 191, 0.6);
  border-top: 1px solid rgba(143, 166, 191, 0.6);
  transform: rotate(45deg);
}
@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.notice-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--blue);
  color: var(--moon);
}
.notice-panel-title {
  font-size: 14px;
  font-weight: 600;
}
.notice-panel-ver {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  background: rgba(212, 180, 74, 0.15);
  padding: 2px 8px;
  border: 1px solid rgba(212, 180, 74, 0.3);
}
.notice-list {
  padding: 8px 0;
}
.notice-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(143, 166, 191, 0.2);
}
.notice-item:last-child {
  border-bottom: none;
}
.notice-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--wine);
  white-space: nowrap;
}
.notice-text {
  font-size: 14px;
  color: var(--text-body);
}
.notice-panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(212, 180, 74, 0.1);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid rgba(143, 166, 191, 0.2);
  transition: background 0.2s, color 0.2s;
}
.notice-panel-link:hover {
  background: rgba(212, 180, 74, 0.2);
  color: var(--wine);
}
.notice-panel-arrow {
  font-size: 16px;
  line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  border-top: 1px solid rgba(143, 166, 191, 0.15);
}

/* 版本档案条 */
.footer-archive {
  background: var(--wine);
}
.footer-archive-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.footer-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.footer-archive-link:hover {
  opacity: 0.85;
}
.archive-link-icon {
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}
.archive-link-label {
  font-size: 16px;
  letter-spacing: 0.08em;
}
.archive-link-desc {
  font-size: 13px;
  color: rgba(233, 217, 168, 0.8);
  margin-left: 4px;
}
.archive-link-arrow {
  font-size: 16px;
  margin-left: 8px;
  transition: transform 0.2s;
}
.footer-archive-link:hover .archive-link-arrow {
  transform: translateX(4px);
}

/* 页脚主体 */
.footer-main {
  padding: var(--space-7) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-6);
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.footer-brand-name:hover {
  color: var(--light-gold);
}
.footer-brand-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  max-width: 360px;
}
.footer-trust {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(143, 166, 191, 0.7);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  max-width: 360px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--moon);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.footer-list li + li {
  margin-top: 8px;
}
.footer-list a {
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s;
}
.footer-list a:hover {
  color: var(--gold);
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid rgba(143, 166, 191, 0.12);
}
.footer-contact-list li:last-child {
  border-bottom: none;
}
.footer-contact-label {
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-contact-value {
  font-size: 14px;
  color: var(--moon);
  margin-top: 2px;
  word-break: break-all;
}
.footer-contact-value a:hover {
  color: var(--gold);
}

/* 备案条 */
.footer-bottom {
  border-top: 1px solid rgba(143, 166, 191, 0.15);
  padding: 20px 0;
  background: rgba(43, 30, 75, 0.5);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--mist);
}
.footer-copyright {
  font-family: var(--font-mono);
  font-size: 13px;
}
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-notice {
  font-size: 12px;
  color: var(--light-gold);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(10, 26, 47, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.back-top:hover {
  background: var(--wine);
  color: var(--light-gold);
  transform: translateY(-3px);
}
.back-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.back-top[hidden] {
  display: none;
}
.back-top-icon {
  font-size: 20px;
  line-height: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--radius-none);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--gold);
  color: var(--blue);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--light-gold);
  border-color: var(--light-gold);
  box-shadow: 0 0 16px rgba(212, 180, 74, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: rgba(212, 180, 74, 0.1);
}
.btn-ghost {
  background: transparent;
  color: var(--moon);
  border-color: rgba(143, 166, 191, 0.4);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.btn-wine {
  background: var(--wine);
  color: var(--gold);
  border-color: var(--wine);
}
.btn-wine:hover {
  background: #8f2748;
  border-color: #8f2748;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-gold {
  color: var(--gold);
  border-color: rgba(212, 180, 74, 0.4);
  background: rgba(212, 180, 74, 0.1);
}
.tag-emerald {
  color: var(--light-gold);
  border-color: rgba(15, 107, 92, 0.5);
  background: rgba(15, 107, 92, 0.25);
}
.tag-wine {
  color: var(--light-gold);
  border-color: rgba(122, 30, 60, 0.5);
  background: rgba(122, 30, 60, 0.3);
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--moon);
  color: var(--text-body);
  border: none;
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.card-dark {
  background: var(--indigo);
  color: var(--moon);
  border: 1px solid rgba(143, 166, 191, 0.2);
}
.card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: inherit;
  margin-bottom: 8px;
}
.card-text {
  font-size: 14px;
  line-height: 1.7;
  color: inherit;
  opacity: 0.85;
}
.card-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--wine);
}

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

/* ---------- 章节 ---------- */
.section {
  padding: var(--space-7) 0;
}
.section-head {
  margin-bottom: var(--space-5);
  position: relative;
}
.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.section-index::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--moon);
}
.section-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--mist);
  max-width: 480px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--mist);
}
.breadcrumb a {
  color: var(--mist);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb-separator {
  color: var(--star-line);
  margin: 0 4px;
}
.breadcrumb-current {
  color: var(--moon);
  font-weight: 500;
}

/* ---------- 图片占位容器 ---------- */
.figure-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue) 60%, #16283d 100%);
  border: 1px solid rgba(143, 166, 191, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.figure-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 166, 191, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 166, 191, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.figure-box::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0.6;
}
.figure-box-sm {
  aspect-ratio: 4 / 3;
  min-height: 120px;
}
.figure-box-lg {
  aspect-ratio: 21 / 9;
  min-height: 240px;
}
.figure-caption {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--light-gold);
  background: rgba(10, 26, 47, 0.7);
  padding: 2px 8px;
  border: 1px solid rgba(212, 180, 74, 0.3);
  z-index: 1;
}

/* ---------- 坐标标签 & 期号数字 ---------- */
.coord {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.coord-gold {
  color: var(--gold);
}
.issue-number {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 30px;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- 路线图 ---------- */
.route-line {
  position: relative;
  padding-left: 32px;
  margin: var(--space-5) 0;
}
.route-line::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--star-line));
}
.route-line-item {
  position: relative;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.route-line-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 20px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  border: 1px solid var(--blue);
}
.route-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
  min-width: 48px;
  padding-top: 2px;
}
.route-text {
  font-size: 14px;
  color: var(--moon);
}

/* ---------- 图例 ---------- */
.legend {
  border: 1px solid rgba(143, 166, 191, 0.25);
  background: rgba(43, 30, 75, 0.4);
  padding: 20px 24px;
}
.legend-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--moon);
}
.legend-symbol {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.legend-symbol-circle {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine);
}
.legend-symbol-line {
  flex-shrink: 0;
  width: 16px;
  height: 2px;
  background: var(--star-line);
}

/* ---------- 辅助可见性 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: var(--blue);
    border-top: 1px solid rgba(143, 166, 191, 0.25);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - var(--header-height) - 2px);
    overflow-y: auto;
  }
  .site-nav[data-open] {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    padding: 12px 24px;
    border-left: 3px solid transparent;
  }
  .nav-link::after {
    display: none;
  }
  .nav-link[aria-current="page"] {
    border-left-color: var(--gold);
    background: rgba(212, 180, 74, 0.06);
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .notice-panel {
    right: 16px;
    width: min(340px, calc(100vw - 32px));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .footer-brand {
    grid-column: span 2;
  }
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: var(--space-6) 0;
  }
}

@media (max-width: 639px) {
  .header-inner {
    padding: 0 var(--space-3);
    gap: var(--space-3);
  }
  .brand-text {
    font-size: 16px;
  }
  .notice-toggle {
    padding: 5px 12px;
    font-size: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .footer-brand {
    grid-column: span 1;
  }
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
  .back-top {
    bottom: 16px;
    right: 16px;
  }
  .container,
  .container-wide {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  .figure-box {
    aspect-ratio: 4 / 3;
  }
  .figure-box-lg {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- 减少动效 ---------- */
@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;
  }
}
