:root {
  --color-primary: #1f3a5f;
  --color-primary-soft: #2b4d6f;
  --color-primary-deep: #16304d;
  --color-accent: #f5b942;
  --color-accent-soft: #ffd27a;
  --color-text: #1c2733;
  --color-text-soft: #4a5a6b;
  --color-text-muted: #6b7c8f;
  --color-bg: #f4f7fb;
  --color-bg-alt: #eaf0f7;
  --color-surface: #ffffff;
  --color-border: #dbe4ee;
  --color-link: #1f5fa8;
  --color-link-hover: #f5b942;
  --shadow-sm: 0 2px 8px rgba(31, 58, 95, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 58, 95, 0.12);
  --shadow-lg: 0 18px 48px rgba(31, 58, 95, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-blur: blur(16px) saturate(160%);
  --header-h: 72px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --color-text: #e6edf5;
  --color-text-soft: #b9c6d4;
  --color-text-muted: #8fa0b2;
  --color-bg: #0d1723;
  --color-bg-alt: #12202f;
  --color-surface: #16273a;
  --color-border: #24384e;
  --color-link: #7db6f0;
  --color-link-hover: #ffd27a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(22, 39, 58, 0.62);
  --glass-border: rgba(120, 160, 200, 0.22);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --color-text: #e6edf5;
    --color-text-soft: #b9c6d4;
    --color-text-muted: #8fa0b2;
    --color-bg: #0d1723;
    --color-bg-alt: #12202f;
    --color-surface: #16273a;
    --color-border: #24384e;
    --color-link: #7db6f0;
    --color-link-hover: #ffd27a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(22, 39, 58, 0.62);
    --glass-border: rgba(120, 160, 200, 0.22);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(245, 185, 66, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(31, 58, 95, 0.10), transparent 60%),
    var(--color-bg);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--color-text);
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }

p {
  margin: 0 0 1em;
  color: var(--color-text-soft);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--color-text-soft);
}

li { margin-bottom: 0.35em; }

blockquote {
  margin: 0 0 1.2em;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--color-accent);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

blockquote p { margin: 0; color: var(--color-text); }

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4em;
}

address { font-style: normal; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(31, 58, 95, 0.06);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html[data-theme="dark"] .brand-name {
  background: linear-gradient(120deg, #9dc6f5 0%, var(--color-accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-primary);
  background: rgba(245, 185, 66, 0.16);
  transform: translateY(-2px);
}

html[data-theme="dark"] .nav-list a:hover,
html[data-theme="dark"] .nav-list a:focus-visible {
  color: var(--color-accent-soft);
}

.nav-list a:hover::after { width: 60%; }

.site-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.3rem 0.25rem 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.2);
}

.site-search input {
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  min-width: 0;
  width: clamp(120px, 18vw, 220px);
  outline: none;
}

.site-search input::placeholder { color: var(--color-text-muted); }

.site-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: var(--shadow-md);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem clamp(1rem, 3vw, 2rem) 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--color-accent);
  font-weight: 700;
}

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

/* ============ Main & Sections ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem) 3rem;
}

main > section {
  margin: 2.5rem 0;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.6s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 185, 66, 0.4);
}

main > section h2 {
  position: relative;
  padding-left: 1rem;
}

main > section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
}

main > section h3 {
  margin-top: 1.4em;
  color: var(--color-primary);
}

html[data-theme="dark"] main > section h3 { color: var(--color-accent-soft); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(31, 58, 95, 0.94) 0%, rgba(43, 77, 111, 0.9) 45%, rgba(245, 185, 66, 0.35) 100%),
    linear-gradient(120deg, #1f3a5f, #2b4d6f);
  background-size: 200% 200%, 100% 100%;
  animation: gradientShift 14s ease infinite, fadeUp 0.7s var(--ease) both;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.45), transparent 65%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(157, 198, 245, 0.35), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%, 0 0; }
  50% { background-position: 100% 50%, 0 0; }
  100% { background-position: 0% 50%, 0 0; }
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.hero-lead {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  max-width: 78ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

/* ============ Banner Carousel ============ */
.banner-carousel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1rem;
  margin: 1.8rem 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
}

.banner-carousel::-webkit-scrollbar { height: 6px; }
.banner-carousel::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.banner-slide {
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  padding: 0 0 1rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.banner-slide:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.banner-slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: transform 0.6s var(--ease);
}

.banner-slide:hover svg { transform: scale(1.04); }

.banner-slide h2 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0.9rem 1rem 0.3rem;
  padding: 0;
}

.banner-slide h2::before { display: none; }

.banner-slide p {
  margin: 0 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ============ Stats ============ */
.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.stat-item {
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-accent-soft);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-item span:last-child {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ============ Anchor Nav ============ */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  margin: 1.5rem 0;
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav::-webkit-scrollbar { display: none; }

.anchor-nav ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.anchor-nav a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--color-text-soft);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.anchor-nav a:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #fff;
  transform: translateY(-2px);
}

/* ============ Articles ============ */
#articles article,
#news article {
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article:hover,
#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

#articles article h3,
#news article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

#articles article a {
  display: inline-block;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #fff;
  font-size: 0.85rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#articles article a:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 2.6rem 0.9rem 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: transform 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover {
  background: rgba(245, 185, 66, 0.12);
  color: var(--color-primary);
}

html[data-theme="dark"] #faq summary:hover { color: var(--color-accent-soft); }

#faq details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  animation: fadeUp 0.35s var(--ease) both;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

#sitemap li,
#links li { margin: 0; }

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-soft);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ============ Contact ============ */
#contact address {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  margin-bottom: 1rem;
}

#contact address p { margin: 0.2rem 0; }

/* ============ Footer ============ */
footer {
  margin-top: 2rem;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(160deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  border-top: 4px solid var(--color-accent);
}

footer p {
  margin: 0.35rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

footer a { color: var(--color-accent-soft); }
footer a:hover { color: #fff; }

/* ============ Floating Buttons ============ */
#back-to-top,
#theme-toggle {
  position: fixed;
  right: clamp(0.8rem, 2vw, 1.6rem);
  z-index: 200;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-pill);
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

#back-to-top { bottom: 1.2rem; opacity: 0; pointer-events: none; }
#back-to-top.is-visible { opacity: 1; pointer-events: auto; }

#theme-toggle { bottom: 4.2rem; }

#back-to-top:hover,
#theme-toggle:hover {
  transform: translateY(-4px);
  filter: brightness(1.12);
  box-shadow: var(--shadow-lg);
}

#theme-toggle::before {
  content: "🌙 ";
}

html[data-theme="dark"] #theme-toggle::before {
  content: "☀️ ";
}

/* ============ Scroll Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 992px) {
  .header-inner { gap: 0.6rem; }
  .site-search input { width: clamp(100px, 24vw, 180px); }
}

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

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .brand { font-size: 1.05rem; }
  .brand svg { width: 34px; height: 34px; }

  nav[aria-label="主导航"] {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar { display: none; }

  .nav-list {
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 0.2rem;
  }

  .nav-list a { font-size: 0.85rem; padding: 0.4rem 0.6rem; }

  .site-search {
    order: 2;
    margin-left: 0;
    flex: 1 1 auto;
    max-width: 100%;
  }

  .site-search input { width: 100%; }

  main > section {
    margin: 1.6rem 0;
    border-radius: var(--radius-md);
  }

  .anchor-nav {
    top: var(--header-h);
    border-radius: var(--radius-md);
  }

  #hero { padding: 1.4rem 1.1rem; }

  .banner-carousel { grid-auto-columns: minmax(240px, 85%); }

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

  #back-to-top,
  #theme-toggle {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 15px; }

  .header-inner { gap: 0.5rem; }

  .site-search { padding-left: 0.7rem; }
  .site-search button { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

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

  .banner-slide h2 { font-size: 1rem; }

  .breadcrumb { padding-top: 0.6rem; }

  main { padding-bottom: 2rem; }

  #back-to-top { bottom: 1rem; }
  #theme-toggle { bottom: 3.6rem; }
}

/* ============ Motion & Accessibility ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
}

@media print {
  #site-header,
  .anchor-nav,
  .breadcrumb,
  #back-to-top,
  #theme-toggle,
  footer {
    display: none !important;
  }

  body { background: #fff; color: #000; }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}