:root {
  --color-primary: #e8547c;
  --color-primary-dark: #c93d63;
  --color-primary-light: #f9a8c0;
  --color-primary-soft: #fde8ee;
  --color-accent: #7c5cff;
  --color-accent-soft: #ece8ff;
  --color-bg: #fdf7f9;
  --color-bg-alt: #ffffff;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-surface-solid: #ffffff;
  --color-text: #2a2530;
  --color-text-soft: #5d5566;
  --color-text-muted: #8a8194;
  --color-border: rgba(42, 37, 48, 0.1);
  --color-border-strong: rgba(42, 37, 48, 0.18);
  --shadow-sm: 0 2px 8px rgba(42, 37, 48, 0.06);
  --shadow-md: 0 8px 28px rgba(42, 37, 48, 0.1);
  --shadow-lg: 0 18px 48px rgba(42, 37, 48, 0.14);
  --shadow-glow: 0 12px 36px rgba(232, 84, 124, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #ffe3ec 0%, #fde8ee 30%, #ece8ff 65%, #e6f2ff 100%);
  --grad-primary: linear-gradient(135deg, #e8547c 0%, #f9a8c0 100%);
  --grad-accent: linear-gradient(135deg, #7c5cff 0%, #b9a8ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(232, 84, 124, 0.08), rgba(124, 92, 255, 0.08));
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(16px);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --max-width: 1200px;
  --header-height: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.32s var(--ease-out);
  color-scheme: light;
}

[data-theme="dark"] {
  --color-primary: #ff7ba0;
  --color-primary-dark: #ff9ab5;
  --color-primary-light: #ffb8cd;
  --color-primary-soft: #3a2430;
  --color-accent: #a48cff;
  --color-accent-soft: #2a2440;
  --color-bg: #14111a;
  --color-bg-alt: #1b1722;
  --color-surface: rgba(36, 30, 44, 0.62);
  --color-surface-solid: #221d2a;
  --color-text: #f2edf6;
  --color-text-soft: #c7bfd2;
  --color-text-muted: #948ba3;
  --color-border: rgba(242, 237, 246, 0.1);
  --color-border-strong: rgba(242, 237, 246, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 12px 36px rgba(255, 123, 160, 0.26);
  --grad-hero: linear-gradient(135deg, #2a1c26 0%, #241e2e 35%, #241f3a 65%, #1a2230 100%);
  --grad-primary: linear-gradient(135deg, #ff7ba0 0%, #ffb8cd 100%);
  --grad-accent: linear-gradient(135deg, #a48cff 0%, #d4c8ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 123, 160, 0.12), rgba(164, 140, 255, 0.12));
  --glass-bg: rgba(36, 30, 44, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -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-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 8% 0%, rgba(232, 84, 124, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 95% 12%, rgba(124, 92, 255, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

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

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

h1 {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
}

h3 {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem);
  color: var(--color-text);
}

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.4em;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 1.2em 1.4em;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  color: var(--color-text-soft);
  font-style: normal;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
}

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

figure {
  margin: 0 0 1.6em;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

figure svg {
  width: 100%;
  display: block;
}

figcaption {
  padding: 0.9em 1.2em;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: var(--color-surface-solid);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

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

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

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

.brand svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(232, 84, 124, 0.35));
  transition: transform 0.5s var(--ease-spring);
}

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

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary);
  white-space: nowrap;
}

.header-inner nav {
  flex: 1;
  min-width: 0;
}

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

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

.header-inner nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.header-inner nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  transform: translateX(-50%);
  transition: width 0.28s var(--ease-out);
}

.header-inner nav a:hover,
.header-inner nav a:focus-visible {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.header-inner nav a:hover::after {
  width: 40%;
}

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

.header-tools form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 3px 3px 3px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-tools form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 84, 124, 0.15);
}

.header-tools label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

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

.header-tools button {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  color: #fff;
  background: var(--grad-primary);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.header-tools button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.05);
}

.header-tools button:active {
  transform: translateY(0) scale(0.97);
}

#theme-toggle {
  background: var(--color-surface-solid);
  color: var(--color-text-soft);
  border: 1px solid var(--color-border);
  padding: 7px 14px;
}

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

#menu-toggle {
  display: none;
  background: var(--color-surface-solid);
  color: var(--color-text-soft);
  border: 1px solid var(--color-border);
}

#menu-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

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

body > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

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

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

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

/* ============ Main & Sections ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 40px;
}

main > section {
  margin-bottom: 32px;
  padding: clamp(24px, 3vw, 44px);
  background: var(--color-surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  animation: fadeUp 0.7s var(--ease-out) both;
}

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

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

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

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  border: 1px solid var(--glass-border);
  padding: clamp(28px, 4vw, 56px);
}

#hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 84, 124, 0.25), transparent 70%);
  pointer-events: none;
  animation: floatY 9s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.2), transparent 70%);
  pointer-events: none;
  animation: floatY 11s ease-in-out infinite reverse;
}

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

#hero h1 {
  max-width: 900px;
  background: linear-gradient(120deg, var(--color-text) 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-text);
}

#hero > p {
  max-width: 860px;
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.08rem);
  color: var(--color-text-soft);
}

#hero figure {
  margin-top: 1.6em;
  border-radius: var(--radius-lg);
  background: var(--color-surface-solid);
  box-shadow: var(--shadow-lg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 12px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-stats > div:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-primary-light);
}

.hero-stats .num {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============ About / general heading spacing ============ */
#about h3,
#products h3,
#solutions h3,
#cases h3,
#knowledge h3,
#howto h3,
#contact h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  padding-left: 0.7em;
  border-left: 4px solid var(--color-primary);
  border-radius: 2px;
  line-height: 1.4;
}

#about h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#knowledge h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0.4em;
}

/* ============ Products ============ */
#products h3 {
  transition: color 0.2s ease, transform 0.2s ease;
}

#products h3:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* ============ Cases & blockquotes ============ */
#cases blockquote {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#cases blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============ News ============ */
#news > p {
  max-width: 820px;
}

#news article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

#news article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.32s var(--ease-out);
}

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

#news article:hover::before {
  transform: scaleY(1);
}

#news article h3 {
  margin: 0 0 0.4em;
  padding: 0;
  border: none;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
}

#news article h3 a {
  color: var(--color-text);
  transition: color 0.2s ease;
}

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

#news article p {
  margin: 0 0 0.5em;
  font-size: 0.92rem;
}

#news article > p:nth-of-type(1) {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

#news article > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}

#news article > a::after {
  content: "→";
  transition: transform 0.2s ease;
}

#news article > a:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-1px);
}

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

/* ============ Knowledge ============ */
#knowledge p {
  max-width: 880px;
}

/* ============ HowTo ============ */
#howto {
  background: var(--grad-soft), var(--color-surface);
}

#howto h3 {
  border-left-color: var(--color-accent);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4em;
  margin-bottom: 0.8em;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.7em;
  height: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

/* ============ FAQ ============ */
#faq details {
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}

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

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

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

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

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

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

/* ============ Contact ============ */
#contact p {
  max-width: 760px;
}

#contact h3 {
  border-left-color: var(--color-accent);
}

#contact p:nth-of-type(1),
#contact p:nth-of-type(2),
#contact p:nth-of-type(3),
#contact p:nth-of-type(4),
#contact p:nth-of-type(5),
#contact p:nth-of-type(6) {
  padding: 8px 14px;
  margin-bottom: 8px;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

#contact p:hover {
  border-color: var(--color-primary-light);
  transform: translateX(3px);
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-soft);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============ Footer ============ */
footer {
  margin-top: 24px;
  padding: clamp(28px, 4vw, 48px) 24px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
}

footer > section {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  padding: 20px 24px;
  background: var(--color-surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

footer > section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

footer h2 {
  font-size: 1.1rem;
  padding-bottom: 0.4em;
  margin-bottom: 0.7em;
}

footer h2::after {
  width: 36px;
  height: 3px;
}

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

footer > p {
  max-width: var(--max-width);
  margin: 0 auto 6px;
  padding: 0 24px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

footer > p:first-of-type {
  padding-top: 8px;
  font-weight: 600;
  color: var(--color-text-soft);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring), visibility 0.3s ease, filter 0.2s ease;
  line-height: 1.1;
  text-align: center;
}

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

#back-to-top:hover {
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.06);
}

#back-to-top:active {
  transform: translateY(0) scale(0.95);
}

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

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }

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

@media (max-width: 920px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .header-inner nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
    animation: fadeIn 0.3s ease both;
  }

  .header-inner nav.is-open {
    display: block;
  }

  .header-inner nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .header-inner nav a {
    display: block;
    padding: 10px 14px;
    font-size: 0.94rem;
    border-radius: var(--radius-sm);
  }

  .header-inner nav a::after {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

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

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

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

  .brand-name {
    font-size: 1.05rem;
  }

  .header-tools form {
    display: none;
  }

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

  main {
    padding: 16px 16px 32px;
  }

  main > section {
    margin-bottom: 20px;
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  #hero {
    padding: 24px 18px;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-stats > div {
    padding: 14px 8px;
  }

  #news article {
    padding: 18px 16px;
  }

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

  #faq summary::after {
    right: 16px;
  }

  #faq details p {
    padding: 0 16px 16px;
  }

  footer {
    padding: 24px 16px;
  }

  footer > section {
    padding: 16px 18px;
    border-radius: var(--radius-md);
  }

  #back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 0.66rem;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats .num {
    font-size: 1.5rem;
  }

  .brand-name {
    font-size: 0.98rem;
  }
}

/* ============ Accessibility & motion ============ */
@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;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .header-tools,
  body > nav[aria-label="面包屑导航"] {
    display: none;
  }

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

  main > section,
  footer > section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}