/* ========== 根变量 ========== */
:root {
  --deep-space: #0A0E27;
  --starry-blue: #161A38;
  --galaxy-blue: #1E2B5C;
  --nebula-blue: #34488F;
  --glow-green: #00FF87;
  --blaze-orange: #FF6B00;
  --moon-white: #FFFFFF;
  --mist-lavender: #B0B6D3;
  --iron-gray: #4A4F6E;
  --soft-purple: #8B7EC8;

  --font-display: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Sans", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Sans", sans-serif;

  --container-w: 1200px;
  --header-h: 76px;
  --border-thick: 3px;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

/* ========== 重置与基础 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

main {
  display: block;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--moon-white);
  background-color: var(--deep-space);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.28), transparent 100%),
    radial-gradient(1px 1px at 78% 12%, rgba(255, 255, 255, 0.2), transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 72%, rgba(139, 126, 200, 0.22), transparent 100%),
    radial-gradient(1px 1px at 66% 82%, rgba(255, 255, 255, 0.16), transparent 100%),
    radial-gradient(1px 1px at 92% 52%, rgba(255, 255, 255, 0.12), transparent 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

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

::selection {
  background-color: var(--glow-green);
  color: var(--deep-space);
}

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

/* ========== 工具类 ========== */
.content-container {
  width: min(100% - 48px, var(--container-w));
  margin-inline: auto;
}

.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;
}

/* ========== 跳转链接 ========== */
.skip-link {
  position: fixed;
  top: -56px;
  left: 16px;
  z-index: 400;
  padding: 10px 20px;
  background-color: var(--glow-green);
  color: var(--deep-space);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  transition: top 0.2s ease;
}

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

/* ========== 滚动进度 ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--glow-green), var(--blaze-orange));
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ========== 页头 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 14, 39, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-thick) solid var(--nebula-blue);
}

.header-frame {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px 0;
}

/* ---- 品牌 ---- */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--moon-white);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--nebula-blue);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 126, 200, 0.25), transparent 70%);
  box-shadow: 0 0 14px rgba(0, 255, 135, 0.18);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.logo-badge {
  padding: 3px 10px;
  border: 1px solid var(--nebula-blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--glow-green);
  background-color: rgba(0, 255, 135, 0.06);
  white-space: nowrap;
}

/* ---- 导航 ---- */
.site-nav {
  margin-left: auto;
}

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

.nav-list a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--mist-lavender);
  border-radius: 2px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background-color: var(--glow-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--moon-white);
  background-color: rgba(0, 255, 135, 0.05);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--glow-green);
}

/* ---- 我的关注 ---- */
.star-fav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid var(--nebula-blue);
  border-radius: 999px;
  color: var(--glow-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.star-fav:hover,
.star-fav:focus-visible {
  border-color: var(--glow-green);
  box-shadow: 0 0 16px rgba(0, 255, 135, 0.22);
  transform: translateY(-1px);
}

.star-fav-icon {
  transition: transform 0.4s ease;
}

.star-fav:hover .star-fav-icon,
.star-fav:focus-visible .star-fav-icon {
  transform: rotate(72deg);
}

/* ---- 汉堡按钮 ---- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--nebula-blue);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--glow-green);
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--moon-white);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ========== 页脚 ========== */
.site-footer {
  background-color: var(--starry-blue);
  border-top: var(--border-thick) solid var(--nebula-blue);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.18), transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.14), transparent 100%),
    radial-gradient(2px 2px at 65% 70%, rgba(139, 126, 200, 0.18), transparent 100%);
  pointer-events: none;
}

.footer-frame {
  position: relative;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-main::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 107, 0, 0.5) 50%);
  pointer-events: none;
}

.footer-brand,
.footer-nav,
.footer-legal,
.footer-contact {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--moon-white);
}

.footer-motto {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--glow-green);
  margin-bottom: 12px;
}

.footer-desc {
  color: var(--mist-lavender);
  font-size: 14px;
  line-height: 1.8;
  max-width: 380px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moon-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nebula-blue);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 2px;
}

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  color: var(--mist-lavender);
  font-size: 14px;
  transition: color 0.25s ease, transform 0.25s ease;
}

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

.footer-contact-line {
  margin-bottom: 8px;
  color: var(--mist-lavender);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
}

.footer-contact-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--iron-gray);
  color: var(--mist-lavender);
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  position: relative;
  background-color: var(--deep-space);
  border-top: 1px solid var(--iron-gray);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--mist-lavender);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

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

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: transparent;
  color: var(--glow-green);
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.3);
}

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

.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: transparent;
  color: var(--blaze-orange);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--moon-white);
  border-color: var(--nebula-blue);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ========== 章节 ========== */
.section {
  padding: 72px 0;
}

.section-tinted {
  background-color: var(--starry-blue);
  border-top: 2px solid var(--nebula-blue);
  border-bottom: 2px solid var(--nebula-blue);
}

.section-header {
  margin-bottom: 36px;
}

.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow-green);
  border-left: 3px solid var(--blaze-orange);
  padding-left: 12px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--moon-white);
}

.section-desc {
  margin-top: 12px;
  max-width: 720px;
  color: var(--mist-lavender);
  font-size: 17px;
}

/* ========== 内页首屏 ========== */
.page-hero {
  position: relative;
  padding: 80px 0 56px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 107, 0, 0.4) 50%);
  pointer-events: none;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero-desc {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mist-lavender);
}

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 18px 0;
  font-size: 14px;
  color: var(--mist-lavender);
  border-bottom: 1px solid var(--iron-gray);
  margin-bottom: 8px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list a {
  color: var(--mist-lavender);
  transition: color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  color: var(--glow-green);
  border-bottom-color: var(--glow-green);
}

.breadcrumb-sep {
  color: var(--iron-gray);
  margin: 0 2px;
}

.breadcrumb-list [aria-current="page"] {
  color: var(--moon-white);
  font-weight: 700;
}

/* ========== 卡片网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.data-card {
  background-color: var(--galaxy-blue);
  border: 2px solid var(--nebula-blue);
  border-radius: 4px;
  padding: 28px;
  box-shadow: var(--shadow-hard);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.data-card:hover,
.data-card:focus-within {
  border-color: var(--glow-green);
  transform: translateY(-4px);
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.35);
}

.data-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--moon-white);
  margin-bottom: 10px;
}

.data-card-desc {
  color: var(--mist-lavender);
  font-size: 15px;
  line-height: 1.65;
}

/* ========== 数据高亮 ========== */
.stat-highlight {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--glow-green);
  font-variant-numeric: tabular-nums;
}

.stat-highlight--orange {
  color: var(--blaze-orange);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist-lavender);
}

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--nebula-blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--mist-lavender);
  background-color: rgba(30, 43, 92, 0.5);
}

.tag-live {
  border-color: var(--blaze-orange);
  color: var(--blaze-orange);
  background-color: rgba(255, 107, 0, 0.08);
}

.tag-hot {
  border-color: var(--glow-green);
  color: var(--glow-green);
  background-color: rgba(0, 255, 135, 0.08);
}

/* ========== 图片容器 ========== */
.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--galaxy-blue);
  background-image:
    radial-gradient(1px 1px at 30% 40%, rgba(255, 255, 255, 0.2), transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.14), transparent 100%),
    radial-gradient(2px 2px at 50% 20%, rgba(139, 126, 200, 0.2), transparent 100%);
  border: 3px solid var(--nebula-blue);
  border-radius: 4px;
  box-shadow: var(--shadow-hard);
}

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

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

.image-frame--square {
  aspect-ratio: 1 / 1;
}

.image-frame > img,
.image-frame > picture,
.image-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame[data-caption] {
  margin-bottom: 0;
}

.image-frame[data-caption]::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist-lavender);
  background: linear-gradient(transparent, rgba(10, 14, 39, 0.92));
  pointer-events: none;
}

/* ========== 折叠面板 ========== */
.panel {
  background-color: var(--galaxy-blue);
  border: 2px solid var(--nebula-blue);
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.panel + .panel {
  margin-top: 16px;
}

.panel-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--moon-white);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  border-radius: 2px;
}

.panel-toggle::after {
  content: "+";
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--glow-green);
  transition: transform 0.3s ease;
}

.panel-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.panel-body {
  padding: 0 20px 20px;
  color: var(--mist-lavender);
  font-size: 15px;
  line-height: 1.7;
}

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}

.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 20px;
  border: 2px solid var(--nebula-blue);
  border-radius: 999px;
  background: transparent;
  color: var(--mist-lavender);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--glow-green);
  color: var(--glow-green);
}

.filter-btn.is-active {
  border-color: var(--glow-green);
  color: var(--glow-green);
  background-color: rgba(0, 255, 135, 0.08);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.18);
}

/* ========== 收藏按钮 ========== */
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--nebula-blue);
  border-radius: 999px;
  background: transparent;
  color: var(--mist-lavender);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.fav-btn:hover,
.fav-btn:focus-visible {
  color: var(--glow-green);
  border-color: var(--glow-green);
}

.fav-btn.is-active {
  color: var(--glow-green);
  border-color: var(--glow-green);
  background-color: rgba(0, 255, 135, 0.08);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.18);
}

/* ========== 装饰与列表 ========== */
.slash-accent {
  display: inline-block;
  width: 42px;
  height: 8px;
  background: var(--blaze-orange);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.divider-slash {
  display: block;
  width: 80px;
  height: 4px;
  border: none;
  margin: 24px 0;
  background: linear-gradient(90deg, var(--glow-green), var(--blaze-orange));
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.alert-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-left: 4px solid var(--blaze-orange);
  border-radius: 0 4px 4px 0;
  background-color: rgba(255, 107, 0, 0.1);
  color: var(--moon-white);
  font-size: 15px;
  line-height: 1.6;
}

.list-dot {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-dot li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--mist-lavender);
}

.list-dot li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 10px;
  height: 10px;
  background-color: var(--glow-green);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}

blockquote {
  border-left: 4px solid var(--nebula-blue);
  border-radius: 0 4px 4px 0;
  padding: 16px 24px;
  background-color: rgba(30, 43, 92, 0.3);
  color: var(--mist-lavender);
}

hr {
  border: none;
  border-top: 1px solid var(--iron-gray);
  margin: 32px 0;
}

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

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    min-height: var(--header-h);
    gap: 12px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background-color: var(--starry-blue);
    border-bottom: 3px solid var(--nebula-blue);
    box-shadow: 0 24px 32px rgba(0, 0, 0, 0.45);
  }

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

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

  .nav-list a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(52, 72, 143, 0.35);
    border-radius: 0;
    font-size: 16px;
  }

  .nav-list a::after {
    left: 24px;
    right: 24px;
    bottom: 6px;
  }

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

@media (max-width: 640px) {
  .content-container {
    width: min(100% - 32px, var(--container-w));
  }

  .header-inner {
    gap: 8px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 19px;
  }

  .logo-badge {
    display: none;
  }

  .star-fav {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .star-fav-label {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 56px 0 40px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 32px;
  }

  .footer-main::after {
    display: none;
  }

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

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

  .data-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }

  .star-fav {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-list a {
    padding: 13px 20px;
  }
}

/* ========== 减弱动效 ========== */
@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;
    scroll-behavior: auto !important;
  }

  .scroll-progress {
    transition: none;
  }

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