:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --border-glass: rgba(255, 255, 255, 0.55);
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-muted: #767690;
  --primary: #e94560;
  --primary-soft: rgba(233, 69, 96, 0.12);
  --secondary: #533483;
  --accent: #0f3460;
  --gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  --gradient-btn: linear-gradient(135deg, #e94560 0%, #533483 100%);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

body.dark-mode {
  --bg: #0d0d1a;
  --bg-alt: #16162a;
  --bg-glass: rgba(26, 26, 46, 0.72);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text: #f0f0f8;
  --text-soft: #c3c3d8;
  --text-muted: #8f8fa8;
  --primary: #ff5c78;
  --primary-soft: rgba(255, 92, 120, 0.16);
  --secondary: #7b5bd6;
  --accent: #4a7dbf;
  --gradient: linear-gradient(135deg, #0d0d1a 0%, #16162a 45%, #1a1a3e 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
}

*,
*::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: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, var(--primary-soft) 0%, transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(83, 52, 131, 0.14) 0%, transparent 46%);
  pointer-events: none;
}

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

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

a:hover,
a:focus-visible {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

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

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

time {
  font-size: 0.85em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

strong { color: var(--text); }

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

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

/* ============ 头部导航 ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
  text-decoration: none;
}

#site-header nav {
  flex: 1 1 auto;
}

#site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-header nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#site-header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-btn);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#site-header nav a:hover,
#site-header nav a:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

#site-header nav a:hover::after { width: 60%; }

#site-header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 300px;
  min-width: 0;
}

#site-header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#site-header input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 16px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#site-header input[type="search"]::placeholder { color: var(--text-muted); }

#site-header input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

#site-header form[role="search"] button,
#theme-toggle,
#menu-toggle {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--gradient-btn);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#theme-toggle,
#menu-toggle {
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-glass);
}

#site-header form[role="search"] button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
}

#site-header form[role="search"] button:active,
#theme-toggle:active,
#menu-toggle:active { transform: translateY(0); }

#menu-toggle { display: none; }

/* ============ 主内容布局 ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

main > nav[aria-label="面包屑导航"] {
  padding: 20px 0 4px;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-muted);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-muted);
  text-decoration: none;
}

main > nav[aria-label="面包屑导航"] a:hover { color: var(--primary); }

main > nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ============ 区块通用 ============ */
main > section {
  margin-top: 56px;
  padding: 36px clamp(20px, 4vw, 44px);
  background: var(--bg-alt);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
}

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-btn);
  transition: width 0.45s var(--ease);
}

main > section:hover > h2::after { width: 108px; }

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

main > section h3:first-of-type { margin-top: 0; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* ============ Hero 区 ============ */
#hero {
  position: relative;
  margin-top: 24px;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px);
  background: var(--gradient);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #fff;
}

#hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -18%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.55) 0%, transparent 68%);
  filter: blur(40px);
  animation: floatBlob 12s ease-in-out infinite alternate;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -45%;
  left: -12%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.6) 0%, transparent 70%);
  filter: blur(46px);
  animation: floatBlob 15s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes floatBlob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-28px, 24px) scale(1.12); }
}

#hero > * { position: relative; z-index: 1; }

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  background: linear-gradient(120deg, #fff 30%, #ffd3dc 70%, #c9b6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#hero > p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
}

#hero > p strong {
  color: #fff;
  background: rgba(233, 69, 96, 0.35);
  padding: 1px 8px;
  border-radius: 6px;
}

/* ============ 轮播 ============ */
.banner-carousel {
  position: relative;
  margin: 32px 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-md);
}

.banner-carousel .slide {
  display: none;
  animation: zoomIn 0.6s var(--ease) both;
}

.banner-carousel .slide:first-of-type { display: block; }

.banner-carousel .slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.banner-carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.banner-carousel button[aria-label="上一张"] { left: 16px; }
.banner-carousel button[aria-label="下一张"] { right: 16px; }

.banner-carousel button:hover {
  background: rgba(233, 69, 96, 0.7);
  transform: translateY(-50%) scale(1.05);
}

/* ============ 统计数据 ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li {
  padding: 20px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stats li:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.stats .num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  background: linear-gradient(120deg, #ffd3dc, #e94560 55%, #c9b6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ============ 新闻列表 ============ */
#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

#news li {
  position: relative;
  padding: 16px 20px 16px 44px;
  background: var(--bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#news li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--gradient-btn);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

#news li:hover {
  transform: translateX(6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

#news time {
  display: inline-block;
  margin-right: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* ============ 文章卡片 ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

#articles article:hover::before { transform: scaleX(1); }

#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

#articles article:hover h3 { color: var(--primary); }

#articles article p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

#articles article a {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-btn);
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#articles article a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

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

#articles article a:hover::after { transform: translateX(4px); }

/* ============ 常见问题 ============ */
#faq details {
  margin-bottom: 12px;
  background: var(--bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

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

#faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}

#faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq summary:hover { color: var(--primary); }

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  animation: fadeIn 0.4s var(--ease) both;
}

/* ============ 联系与地图 ============ */
#contact p {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

#contact p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-btn);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#sitemap li a,
#links li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap li a:hover,
#links li a:hover {
  color: #fff;
  background: var(--gradient-btn);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* ============ 页脚 ============ */
footer {
  position: relative;
  margin-top: 40px;
  padding: 48px clamp(20px, 5vw, 56px) 56px;
  background: var(--gradient);
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(233, 69, 96, 0.22) 0%, transparent 50%);
  pointer-events: none;
}

footer > * {
  position: relative;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

footer > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

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

footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer section {
  margin-top: 26px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

footer section h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
}

footer section p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

#back-to-top {
  display: block;
  margin: 30px auto 0;
  padding: 11px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(233, 69, 96, 0.4);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .header-inner { gap: 14px; }

  #site-header form[role="search"] { flex-basis: 220px; }

  #site-header nav a { padding: 8px 10px; font-size: 0.88rem; }

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

@media (max-width: 820px) {
  .header-inner {
    padding: 10px 18px;
    gap: 10px;
  }

  #menu-toggle { display: inline-block; order: 4; }

  #theme-toggle { order: 3; }

  #site-header nav {
    order: 5;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  #site-header nav.is-open { max-height: 520px; }

  #site-header nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px;
  }

  #site-header nav a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  #site-header nav a::after { display: none; }

  #site-header form[role="search"] {
    order: 2;
    flex: 1 1 100%;
    max-width: none;
  }

  .logo { order: 1; }

  main { padding: 0 16px 60px; }

  main > section {
    margin-top: 36px;
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  #hero {
    padding: 32px 22px;
    border-radius: var(--radius-md);
  }

  .banner-carousel button {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .banner-carousel button[aria-label="上一张"] { left: 8px; }
  .banner-carousel button[aria-label="下一张"] { right: 8px; }

  #articles { grid-template-columns: 1fr; }

  footer { padding: 36px 20px 44px; }
}

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

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

  .stats li { padding: 14px 10px; font-size: 0.78rem; }

  #site-header form[role="search"] button { padding: 9px 14px; }

  #news li { padding: 14px 16px 14px 38px; }

  #news li::before { left: 16px; }

  #news time { display: block; margin: 0 0 4px; }

  footer section { padding: 18px; }
}

/* ============ 动效降级 ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 打印 ============ */
@media print {
  #site-header,
  #back-to-top,
  .banner-carousel button,
  #theme-toggle,
  #menu-toggle { display: none !important; }

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

  main > section,
  #hero,
  footer {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
  }

  #hero h1 { -webkit-text-fill-color: #000; color: #000; }
}