:root {
  --primary: #2c5f2d;
  --primary-dark: #1f4d20;
  --primary-light: #3d7a3f;
  --accent: #97c05c;
  --accent-light: #b5d97e;
  --bg: #f4f7f0;
  --bg-alt: #e8efe3;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-border: rgba(255, 255, 255, 0.45);
  --text: #1a2e1b;
  --text-secondary: #4a5e4b;
  --text-muted: #6e8070;
  --border: #d4e0cc;
  --shadow-sm: 0 1px 3px rgba(44, 95, 45, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 95, 45, 0.1);
  --shadow-lg: 0 8px 32px rgba(44, 95, 45, 0.14);
  --shadow-xl: 0 16px 48px rgba(44, 95, 45, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition-fast: 0.18s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  --max-width: 1200px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --primary: #4a8c4c;
  --primary-dark: #3d7a3f;
  --primary-light: #6aad6c;
  --accent: #a8d46e;
  --accent-light: #c4e69a;
  --bg: #0f1a10;
  --bg-alt: #162218;
  --surface: #1a2a1c;
  --surface-glass: rgba(26, 42, 28, 0.75);
  --surface-glass-border: rgba(74, 140, 76, 0.25);
  --text: #e4ede0;
  --text-secondary: #b0c4ae;
  --text-muted: #7a927a;
  --border: #2a3e2c;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--accent);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  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 {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ========== HEADER ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--surface-glass-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo svg {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#site-header nav[aria-label="主导航"] {
  flex: 1;
  display: flex;
  justify-content: center;
}

#site-header nav[aria-label="主导航"] ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

#site-header nav[aria-label="主导航"] a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

#site-header nav[aria-label="主导航"] a:hover {
  color: var(--primary);
  background: rgba(151, 192, 92, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions form[role="search"] {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-actions form[role="search"]:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(151, 192, 92, 0.2);
}

.header-actions input[type="search"] {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  width: 160px;
  font-family: inherit;
}

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

.header-actions button[type="submit"] {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition-fast);
}

.header-actions button[type="submit"]:hover {
  background: var(--primary-dark);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

#theme-toggle:hover,
#menu-toggle:hover {
  border-color: var(--accent);
  color: var(--primary);
  background: rgba(151, 192, 92, 0.1);
}

#menu-toggle {
  display: none;
}

/* ========== BREADCRUMB ========== */
nav[aria-label="面包屑导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
}

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

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

nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== MAIN ========== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ========== BANNER ========== */
#banner {
  position: relative;
  margin: 24px 0 48px;
  padding: 56px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  overflow: hidden;
  isolation: isolate;
}

#banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(151, 192, 92, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: floatOrb 8s ease-in-out infinite;
}

#banner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

#banner h1 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
  max-width: 800px;
}

#banner .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 40px;
}

.banner-slides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.slide {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  cursor: default;
}

.slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .slide:hover {
  background: rgba(26, 42, 28, 0.9);
}

.slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.slide h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}

.slide p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ========== SECTIONS ========== */
main > section:not(#banner) {
  margin-bottom: 56px;
  padding: 40px 0;
}

main > section:not(#banner) > h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 28px;
  color: var(--text);
}

main > section:not(#banner) > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

main > section > h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}

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

/* ========== CARDS ========== */
#intro,
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#author-info {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

#intro:hover,
#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* ========== PRODUCTS LIST ========== */
#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

#products ul li {
  position: relative;
  padding: 16px 16px 16px 44px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

#products ul li:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* ========== CASES ========== */
#cases article {
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  transition: all var(--transition-base);
}

#cases article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

#cases article h3 {
  margin-top: 0;
  color: var(--primary);
}

#cases blockquote {
  position: relative;
  padding: 20px 24px 20px 56px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-style: italic;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 8px;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.5;
}

#cases blockquote:hover {
  border-color: var(--accent);
  background: var(--surface);
}

#cases blockquote p {
  margin-bottom: 0;
}

/* ========== NEWS ========== */
#news article {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

#news article:last-child {
  border-bottom: none;
}

#news article:hover {
  padding-left: 12px;
}

#news article h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

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

#news time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  padding: 2px 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
}

/* ========== ARTICLES ========== */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

#articles article {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  background: var(--surface);
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

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

#articles article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

#articles article p {
  font-size: 0.88rem;
  flex: 1;
  margin-bottom: 16px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  align-self: flex-start;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

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

#articles article a:hover {
  gap: 10px;
  color: var(--accent);
}

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

/* ========== FAQ ========== */
#faq details {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

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

#faq summary {
  padding: 18px 24px 18px 52px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  user-select: none;
}

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

#faq summary::before {
  content: "+";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform var(--transition-base), background var(--transition-base);
}

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

#faq summary:hover {
  color: var(--primary);
  background: rgba(151, 192, 92, 0.08);
}

#faq details p {
  padding: 0 24px 20px 52px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: fadeInDown 0.35s ease;
}

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

/* ========== HOWTO ========== */
#howto ol {
  counter-reset: step;
  margin: 16px 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

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

#howto ul {
  margin: 12px 0;
}

#howto ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ========== CONTACT ========== */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

#contact address p {
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  margin-bottom: 0;
}

#contact address p:hover {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

#contact address a {
  font-weight: 600;
  color: var(--primary);
}

/* ========== SITEMAP & LINKS ========== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========== LEGAL ========== */
#legal h2 {
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}

#legal h2:first-child {
  margin-top: 0;
}

#legal h2::after {
  display: none;
}

#legal p {
  font-size: 0.9rem;
}

/* ========== AUTHOR INFO ========== */
#author-info {
  background: linear-gradient(135deg, var(--bg-alt), var(--surface));
  border-left: 4px solid var(--accent);
}

#author-info p {
  font-size: 0.9rem;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  text-align: center;
  transition: background var(--transition-base);
}

footer > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

footer nav[aria-label="页脚导航"] {
  margin-top: 20px;
}

footer nav[aria-label="页脚导航"] ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

footer nav[aria-label="页脚导航"] a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

footer nav[aria-label="页脚导航"] a:hover {
  color: var(--primary);
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-base);
  z-index: 999;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-xl);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #site-header nav[aria-label="主导航"] a {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .header-actions input[type="search"] {
    width: 120px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

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

  #menu-toggle {
    display: block;
  }

  #site-header nav[aria-label="主导航"] {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--surface-glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    padding: 0 16px;
  }

  #site-header nav[aria-label="主导航"].open {
    max-height: 480px;
    padding: 12px 16px 20px;
    overflow-y: auto;
  }

  #site-header nav[aria-label="主导航"] ul {
    flex-direction: column;
    gap: 2px;
  }

  #site-header nav[aria-label="主导航"] a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .header-actions form[role="search"] {
    display: none;
  }

  #banner {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }

  .banner-slides {
    grid-template-columns: 1fr;
  }

  #intro,
  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #author-info {
    padding: 28px 20px;
  }

  main > section:not(#banner) {
    margin-bottom: 36px;
    padding: 28px 0;
  }

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

  #contact address {
    grid-template-columns: 1fr;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

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

  .header-inner {
    padding: 0 12px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  #theme-toggle {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  #banner {
    padding: 32px 18px;
    border-radius: var(--radius-md);
  }

  #banner h1 {
    font-size: 1.5rem;
  }

  #banner .lead {
    font-size: 0.92rem;
  }

  main {
    padding: 0 12px 40px;
  }

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

  #intro,
  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #author-info {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

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

  #faq summary::before {
    left: 14px;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }

  #faq details p {
    padding: 0 16px 16px 44px;
    font-size: 0.85rem;
  }

  #howto ol li {
    padding: 12px 12px 12px 48px;
    font-size: 0.86rem;
  }

  #howto ol li::before {
    left: 12px;
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }
}

/* ========== REDUCED MOTION ========== */
@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;
  }

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

/* ========== PRINT ========== */
@media print {
  #site-header,
  #back-to-top,
  footer nav,
  #banner::before,
  #banner::after {
    display: none;
  }

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

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

/* ========== SELECTION ========== */
::selection {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}