:root {
  --primary: #2e7d32;
  --primary-light: #4caf50;
  --primary-lighter: #81c784;
  --primary-pale: #e8f5e9;
  --accent: #ff7043;
  --accent-soft: #ffab91;
  --bg: #f7faf7;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #1d2b1f;
  --text-soft: #4a5a4d;
  --text-muted: #6b7a6e;
  --border: rgba(46, 125, 50, 0.14);
  --border-strong: rgba(46, 125, 50, 0.28);
  --shadow-sm: 0 2px 8px rgba(30, 60, 35, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 60, 35, 0.1);
  --shadow-lg: 0 18px 48px rgba(30, 60, 35, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 68px;
  --grad-hero: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 40%, #e0f2f1 100%);
  --grad-brand: linear-gradient(135deg, #2e7d32 0%, #43a047 55%, #66bb6a 100%);
  --grad-accent: linear-gradient(135deg, #ff7043 0%, #ff8a65 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --primary: #66bb6a;
  --primary-light: #81c784;
  --primary-lighter: #a5d6a7;
  --primary-pale: #14261a;
  --accent: #ff8a65;
  --accent-soft: #ffab91;
  --bg: #0d1510;
  --bg-alt: #131f16;
  --bg-glass: rgba(19, 31, 22, 0.66);
  --bg-glass-strong: rgba(19, 31, 22, 0.88);
  --text: #e6f2e8;
  --text-soft: #b8ccbb;
  --text-muted: #8ba390;
  --border: rgba(129, 199, 132, 0.16);
  --border-strong: rgba(129, 199, 132, 0.34);
  --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);
  --grad-hero: linear-gradient(135deg, #10251a 0%, #0f2018 45%, #0c1f1c 100%);
  --grad-brand: linear-gradient(135deg, #1b5e20 0%, #2e7d32 55%, #388e3c 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #66bb6a;
    --primary-light: #81c784;
    --primary-lighter: #a5d6a7;
    --primary-pale: #14261a;
    --accent: #ff8a65;
    --accent-soft: #ffab91;
    --bg: #0d1510;
    --bg-alt: #131f16;
    --bg-glass: rgba(19, 31, 22, 0.66);
    --bg-glass-strong: rgba(19, 31, 22, 0.88);
    --text: #e6f2e8;
    --text-soft: #b8ccbb;
    --text-muted: #8ba390;
    --border: rgba(129, 199, 132, 0.16);
    --border-strong: rgba(129, 199, 132, 0.34);
    --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);
    --grad-hero: linear-gradient(135deg, #10251a 0%, #0f2018 45%, #0c1f1c 100%);
    --grad-brand: linear-gradient(135deg, #1b5e20 0%, #2e7d32 55%, #388e3c 100%);
  }
}

*,
*::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);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(129, 199, 132, 0.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 138, 101, 0.1), transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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 {
  color: var(--primary-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary-lighter);
  outline-offset: 2px;
  border-radius: 6px;
}

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

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  margin: 0 0 1rem;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 4px;
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 2rem 0 0.75rem;
}

h4 {
  font-size: 1.02rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-soft);
}

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

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

li {
  margin-bottom: 0.45rem;
}

li::marker {
  color: var(--primary-light);
}

blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

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

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

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

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

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

.brand-name {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

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

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.nav-list a:hover {
  color: var(--primary);
  background: var(--primary-pale);
  transform: translateY(-2px);
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-tools form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header-tools form:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(129, 199, 132, 0.2);
}

.header-tools input[type="search"] {
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 6px 0;
  width: 150px;
  outline: none;
}

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

.header-tools button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.header-tools form button {
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.28);
}

.header-tools form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.38);
}

#theme-toggle,
#menu-toggle {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--border);
}

#theme-toggle:hover,
#menu-toggle:hover {
  background: var(--primary-lighter);
  color: #fff;
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

/* ============ 主内容容器 ============ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > section,
main > nav {
  margin: 28px 0;
  padding: clamp(20px, 3vw, 36px);
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

/* ============ 首屏 ============ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px) !important;
  background: var(--grad-hero) !important;
  border-radius: var(--radius-xl) !important;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 199, 132, 0.35), transparent 70%);
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 101, 0.22), transparent 70%);
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite alternate-reverse;
}

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

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  z-index: 1;
}

.slide {
  display: none;
  animation: fadeSlide 0.7s var(--ease);
}

.slide.active {
  display: block;
}

.slide svg {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 220;
  object-fit: cover;
}

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

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slider-dots button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.slider-dots button[aria-selected="true"] {
  background: var(--grad-brand);
  border-color: transparent;
  transform: scale(1.12);
}

.slider-dots button:hover {
  background: rgba(255, 255, 255, 0.45);
}

.slider-dots button[aria-selected="true"]:hover {
  background: var(--grad-brand);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-text > p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-soft);
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--text-muted) !important;
}

.hero-stats span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.cta {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(46, 125, 50, 0.32);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.cta:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(46, 125, 50, 0.42);
}

.cta:hover::after {
  transform: translateX(120%);
}

/* ============ 面包屑 ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--primary-light);
  font-weight: 700;
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ============ 目录 ============ */
.toc {
  background: var(--bg-glass) !important;
}

.toc h2 {
  font-size: 1.15rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.toc a:hover {
  transform: translateX(4px);
  background: var(--primary-pale);
  color: var(--primary);
  border-color: var(--border-strong);
}

/* ============ 文章列表 ============ */
#articles article {
  margin: 18px 0;
  padding: 20px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

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

#articles article:hover::before {
  opacity: 1;
}

#articles article h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

#articles article h3 a {
  color: var(--text);
}

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

#articles article > a:last-child {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 0;
}

#articles article > a:last-child::after {
  content: " →";
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

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

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

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

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

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

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

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

#faq details[open] summary {
  color: var(--primary);
  background: var(--primary-pale);
}

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

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 60px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.28);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

/* ============ 联系与地图 ============ */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

#contact ul li,
#sitemap ul li,
#links ul li {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

#contact ul li:hover,
#sitemap ul li:hover,
#links ul li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--primary-pale);
}

/* ============ 页脚 ============ */
footer {
  margin-top: 40px;
  padding: 36px 20px 80px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-inner nav li {
  margin: 0;
}

.footer-inner nav a {
  font-size: 0.86rem;
  color: var(--text-soft);
  position: relative;
}

.footer-inner nav a:hover {
  color: var(--primary);
}

/* ============ 返回顶部 ============ */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, box-shadow 0.3s var(--ease);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-lg);
}

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

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .header-tools input[type="search"] {
    width: 120px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

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

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

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

  .nav-list {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 12px;
  }

  .nav-list a {
    display: block;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
  }

  .nav-list a::after {
    display: none;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .header-tools form {
    flex: 1 1 100%;
    order: 4;
  }

  .header-tools input[type="search"] {
    width: 100%;
    flex: 1;
  }

  main {
    padding: 0 14px 32px;
  }

  main > section,
  main > nav {
    margin: 18px 0;
    border-radius: var(--radius-md);
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  .toc ul,
  #contact ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 15px;
  }
}

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

  .hero {
    padding: 18px !important;
  }

  .hero-stats {
    font-size: 0.82rem;
    padding: 8px 14px;
    gap: 4px;
  }

  .hero-stats span {
    font-size: 1.08rem;
  }

  .cta {
    display: block;
    text-align: center;
    padding: 13px 20px;
  }

  #articles article {
    padding: 16px;
  }

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.95rem;
  }

  #howto ol li {
    padding: 12px 14px 12px 52px;
  }

  .slider-dots button {
    width: 22px;
    height: 22px;
    font-size: 0.66rem;
  }
}

/* ============ 打印 ============ */
@media print {
  #site-header,
  #back-to-top,
  .hero-slider,
  .slider-dots,
  .header-tools,
  footer nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</｜｜DSML｜｜ calls>