/* ========== 0. 变量与重置 ========== */
:root {
  --space-blue: #0A1A3F;
  --midnight-blue: #10264B;
  --silver: #C8D0E0;
  --neon-purple: #9B4DFF;
  --martian-red: #E23B4E;
  --teal: #00D7B6;
  --amber: #FFB86B;
  --gray-70: #4B587C;
  --light: #F8F9FC;
  --font-heading: 'DIN Alternate', 'Arial Narrow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', 'PingFang SC', sans-serif;
  --font-data: 'Roboto Mono', 'Courier New', monospace;
  --header-width: 260px;
  --header-height: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --border-soft: 1px solid rgba(200, 208, 224, 0.2);
  --shadow-neon: 0 0 24px rgba(155, 77, 255, 0.25);
}

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

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

body {
  min-height: 100vh;
  background: var(--space-blue);
  color: var(--silver);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(155, 77, 255, 0.12), transparent 45%),
    radial-gradient(ellipse at 18% 82%, rgba(0, 215, 182, 0.06), transparent 40%),
    linear-gradient(135deg, var(--space-blue) 55%, var(--midnight-blue) 100%);
}

::selection {
  background: var(--neon-purple);
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.15; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 20px; }

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

ul, ol { list-style: none; }

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

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

:focus-visible {
  outline: 2px solid var(--neon-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

/* ========== 1. 通用容器与网格 ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.section {
  margin-bottom: clamp(48px, 8vw, 88px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.section-heading .section-index {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--neon-purple);
  letter-spacing: 2px;
}

.page-heading {
  margin-bottom: 40px;
  padding: clamp(32px, 6vw, 72px) 0 20px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.page-heading h1 {
  max-width: 18em;
  margin-bottom: 16px;
}

.page-heading .page-lead {
  max-width: 42em;
  font-size: 16px;
  color: rgba(200, 208, 224, 0.75);
}

/* ========== 2. 主内容区 ========== */
#main-content {
  margin-left: var(--header-width);
  min-height: 100vh;
  padding: 48px 56px 96px;
  position: relative;
}

/* ========== 3. 跳转链接 ========== */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--neon-purple);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ========== 4. 滚动进度条 ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--header-width);
  right: 0;
  height: 3px;
  z-index: 2000;
  background: transparent;
  transform: scaleX(0);
  transform-origin: 0 0;
  box-shadow: 0 0 10px rgba(155, 77, 255, 0.8);
}

/* ========== 5. 头部 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: var(--header-width);
  height: 100vh;
  background: rgba(10, 26, 63, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(200, 208, 224, 0.2);
  padding: 28px 20px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(150deg, transparent 30%, rgba(155, 77, 255, 0.08) 100%);
  pointer-events: none;
}

.header-track {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 100%;
  gap: 24px;
  position: relative;
  z-index: 1;
}

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

.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border: 2px solid var(--neon-purple);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(155, 77, 255, 0.5), inset 0 0 8px rgba(155, 77, 255, 0.25);
  flex-shrink: 0;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--silver);
  border-radius: 50%;
  transform: rotate(25deg);
  opacity: 0.7;
}

.brand-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 12px var(--silver);
  transform: rotate(25deg) translateX(12px) rotate(-25deg);
}

.brand-mark-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--neon-purple);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--neon-purple);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--light);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  padding: 9px 14px;
  border: 1px solid rgba(200, 208, 224, 0.2);
  border-radius: 22px;
  background: rgba(16, 38, 75, 0.55);
  cursor: default;
  opacity: 0.85;
}

.search-ico {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.search-ico::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--silver);
  border-radius: 50%;
}

.search-ico::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 7px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transform: rotate(45deg);
}

.search-label {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray-70);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.nav-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--silver);
  border: 1px solid transparent;
  border-radius: 24px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--neon-purple);
  border-color: rgba(155, 77, 255, 0.6);
  background: rgba(155, 77, 255, 0.08);
  box-shadow: 0 0 20px rgba(155, 77, 255, 0.2);
}

.nav-link[aria-current="page"] {
  color: var(--light);
  border-color: var(--neon-purple);
  background: rgba(155, 77, 255, 0.15);
  box-shadow: 0 0 18px rgba(155, 77, 255, 0.25);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(16, 38, 75, 0.7);
  border: 1px solid rgba(200, 208, 224, 0.25);
  border-radius: 12px;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 0 14px rgba(155, 77, 255, 0.3);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

/* ========== 6. 面包屑 ========== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--gray-70);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-70);
}

.breadcrumb-item a {
  color: var(--silver);
}

.breadcrumb-item a:hover {
  color: var(--neon-purple);
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  color: var(--gray-70);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--light);
}

/* ========== 7. 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  border: 1px solid var(--neon-purple);
  border-radius: 24px;
  background: rgba(155, 77, 255, 0.12);
  color: var(--light);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: rgba(155, 77, 255, 0.3);
  box-shadow: 0 0 24px rgba(155, 77, 255, 0.3);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--neon-purple);
  color: #fff;
}

.btn--primary:hover {
  background: #a55cff;
  box-shadow: 0 0 28px rgba(155, 77, 255, 0.5);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(200, 208, 224, 0.35);
  color: var(--silver);
}

.btn--ghost:hover {
  border-color: var(--silver);
  background: rgba(200, 208, 224, 0.08);
  box-shadow: none;
}

.btn--data {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 1px;
  border-color: var(--teal);
  background: rgba(0, 215, 182, 0.08);
  color: var(--teal);
}

.btn--data:hover {
  background: rgba(0, 215, 182, 0.18);
  box-shadow: 0 0 16px rgba(0, 215, 182, 0.25);
}

/* ========== 8. 资料卡与数据组件 ========== */
.data-card {
  position: relative;
  display: block;
  padding: 24px;
  border: 1px solid rgba(200, 208, 224, 0.18);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(16, 38, 75, 0.9), rgba(10, 26, 63, 0.95));
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.data-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(155, 77, 255, 0.1), transparent 52%);
  pointer-events: none;
}

.data-card:hover {
  border-color: rgba(155, 77, 255, 0.6);
  box-shadow: 0 0 24px rgba(155, 77, 255, 0.15);
}

.data-card-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--light);
  margin-bottom: 8px;
}

.data-card-body {
  position: relative;
  font-size: 14px;
  color: rgba(200, 208, 224, 0.75);
}

.data-card-metric {
  position: relative;
  font-family: var(--font-data);
  font-size: 32px;
  line-height: 1.2;
  color: var(--teal);
  margin-top: 12px;
}

.data-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 14px;
  line-height: 1.8;
}

.data-number {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--teal);
}

.data-label {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--gray-70);
  letter-spacing: 1px;
}

.stat-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(200, 208, 224, 0.25);
  border-radius: 20px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--silver);
  background: rgba(16, 38, 75, 0.5);
}

.stat-tag--purple {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

.stat-tag--teal {
  border-color: var(--teal);
  color: var(--teal);
}

.stat-tag--amber {
  border-color: var(--amber);
  color: var(--amber);
}

/* ========== 9. 折叠面板 ========== */
.archive-fold {
  border: 1px solid rgba(200, 208, 224, 0.18);
  border-radius: 12px;
  background: rgba(16, 38, 75, 0.5);
  margin-bottom: 12px;
  overflow: hidden;
}

.archive-fold-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--silver);
  background: transparent;
  transition: background 0.25s var(--ease);
}

.archive-fold-trigger:hover {
  background: rgba(155, 77, 255, 0.08);
}

.archive-fold-label {
  flex: 1;
  display: block;
  line-height: 1.4;
}

.archive-fold-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(200, 208, 224, 0.4);
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.archive-fold-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--silver);
  transform: translate(-50%, -50%);
}

.archive-fold-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 10px;
  background: var(--silver);
  transform: translate(-50%, -50%);
  transition: transform 0.2s var(--ease);
}

.archive-fold[data-open] .archive-fold-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.archive-fold[data-open] .archive-fold-icon {
  border-color: var(--neon-purple);
}

[data-fold-panel] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

[data-fold-panel] > .archive-fold-inner {
  padding: 0 20px 20px;
}

[data-fold][data-open] [data-fold-panel] {
  max-height: 480px;
}

/* ========== 10. 标签页 ========== */
.tab-group {
  margin-bottom: 28px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(200, 208, 224, 0.2);
  margin-bottom: 24px;
  padding-bottom: 8px;
}

.tab-btn {
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gray-70);
  border: 1px solid transparent;
  border-radius: 22px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.tab-btn:hover {
  color: var(--neon-purple);
}

.tab-btn[aria-selected="true"] {
  color: var(--light);
  border-color: var(--neon-purple);
  background: rgba(155, 77, 255, 0.12);
}

.tab-panel {
  padding: 20px 0;
}

/* ========== 11. 筛选 ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 18px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--gray-70);
  border: 1px solid rgba(200, 208, 224, 0.2);
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.filter-btn:hover {
  color: var(--neon-purple);
  border-color: rgba(155, 77, 255, 0.5);
}

.filter-btn[aria-pressed="true"] {
  color: var(--light);
  border-color: var(--neon-purple);
  background: rgba(155, 77, 255, 0.15);
  box-shadow: 0 0 14px rgba(155, 77, 255, 0.2);
}

[data-filter-item][hidden] {
  display: none;
}

/* ========== 12. 图片容器 ========== */
.figure {
  margin: 0;
}

.figure-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(16, 38, 75, 0.8), rgba(10, 26, 63, 0.95));
  border: 1px solid rgba(200, 208, 224, 0.15);
}

.figure-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 32%, rgba(155, 77, 255, 0.18), transparent 50%);
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}

.figure-wrap:hover::before {
  opacity: 1;
}

.figure-wrap img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.figure-caption {
  padding: 10px 4px 0;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--gray-70);
  letter-spacing: 1px;
}

/* ========== 13. 页脚 ========== */
.site-footer {
  margin-left: var(--header-width);
  background: linear-gradient(180deg, var(--midnight-blue) 0%, var(--space-blue) 100%);
  border-top: 2px solid rgba(155, 77, 255, 0.25);
  padding: 48px 56px 28px;
}

.footer-orbit {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-manifesto {
  max-width: 720px;
  margin-bottom: 24px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--light);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 15px;
  color: rgba(200, 208, 224, 0.75);
  line-height: 1.7;
}

.footer-starlink {
  position: relative;
  display: block;
  height: 1px;
  margin: 36px 0;
  background: linear-gradient(90deg, transparent, var(--neon-purple) 50%, transparent);
  opacity: 0.8;
}

.footer-starlink::before,
.footer-starlink::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
}

.footer-starlink::before { left: 18%; }
.footer-starlink::after { right: 18%; }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

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

.footer-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gray-70);
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.footer-list a {
  display: inline-block;
  font-size: 15px;
  color: rgba(200, 208, 224, 0.8);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-list a:hover {
  color: var(--neon-purple);
  transform: translateX(4px);
}

.footer-contact-line {
  font-size: 15px;
  color: rgba(200, 208, 224, 0.8);
  margin-bottom: 8px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(200, 208, 224, 0.15);
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--gray-70);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

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

.footer-legal-links a {
  color: var(--gray-70);
}

.footer-legal-links a:hover {
  color: var(--neon-purple);
}

/* ========== 14. 响应式 ========== */
@media (max-width: 1199px) {
  .site-header {
    width: 100%;
    height: var(--header-height);
    flex-direction: row;
    align-items: center;
    padding: 0 24px;
    border-right: none;
    border-bottom: 1px solid rgba(200, 208, 224, 0.2);
    overflow: visible;
  }

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

  .header-track {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: auto;
  }

  .brand-link {
    margin-right: auto;
  }

  .header-actions {
    order: 2;
  }

  .search-trigger {
    max-width: 180px;
  }

  .header-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    background: rgba(16, 38, 75, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    flex: initial;
    align-items: flex-start;
    padding: 32px 32px 48px;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    border-top: 1px solid rgba(200, 208, 224, 0.2);
    overflow-y: auto;
  }

  .header-nav[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    gap: 12px;
  }

  .nav-link {
    font-size: 17px;
    padding: 14px 24px;
  }

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

  .scroll-progress {
    left: 0;
  }

  #main-content {
    margin-left: 0;
    padding-top: calc(var(--header-height) + 32px);
    padding-right: 32px;
    padding-left: 32px;
  }

  .site-footer {
    margin-left: 0;
    padding: 40px 32px 24px;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

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

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .search-label {
    display: none;
  }

  .search-trigger {
    max-width: 48px;
    width: 48px;
    justify-content: center;
    padding: 10px;
  }

  .header-nav {
    padding: 24px 20px;
  }

  #main-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin-left: 4px;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .brand-name {
    font-size: 18px;
    letter-spacing: 3px;
  }

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

  .header-actions .search-trigger {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }
}

/* ========== 15. 无障碍与弱动效 ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
