:root {
  --primary: #6d28d9;
  --primary-dark: #4c1d95;
  --primary-light: #8b5cf6;
  --accent: #fbbf24;
  --accent-dark: #f59e0b;
  --bg: #f7f5ff;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1e1b2e;
  --text-secondary: #4b4869;
  --text-muted: #7c7899;
  --border: rgba(109, 40, 217, 0.12);
  --border-strong: rgba(109, 40, 217, 0.22);
  --shadow-sm: 0 2px 8px rgba(109, 40, 217, 0.08);
  --shadow-md: 0 8px 24px rgba(109, 40, 217, 0.12);
  --shadow-lg: 0 16px 48px rgba(109, 40, 217, 0.16);
  --shadow-glow: 0 0 32px rgba(139, 92, 246, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-height: 72px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: #a78bfa;
  --primary-dark: #8b5cf6;
  --primary-light: #c4b5fd;
  --accent: #fcd34d;
  --accent-dark: #fbbf24;
  --bg: #0f0d1a;
  --bg-alt: #16132a;
  --surface: rgba(30, 27, 46, 0.72);
  --surface-solid: #1e1b2e;
  --text: #f0eefb;
  --text-secondary: #c4c0e0;
  --text-muted: #8a86a8;
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px rgba(167, 139, 250, 0.2);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(139, 92, 246, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(251, 191, 36, 0.06), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(109, 40, 217, 0.08), transparent 60%);
  background-attachment: fixed;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  min-height: 100vh;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(251, 191, 36, 0.04), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(109, 40, 217, 0.1), transparent 60%);
}

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(--primary-light);
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: scale(1.04);
  color: var(--text);
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.brand:hover svg {
  box-shadow: var(--shadow-glow);
  transform: rotate(-6deg);
}

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

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-list a:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.06);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-search:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.site-search input {
  width: 160px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

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

.site-search button {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  margin: 3px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.site-search button:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

#menu-toggle,
#theme-toggle {
  display: none;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

#menu-toggle:hover,
#theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: rgba(109, 40, 217, 0.06);
}

#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  padding: 48px 0 40px;
  position: relative;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 35%, #7c3aed 60%, #a855f7 100%);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  isolation: isolate;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.4), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(109, 40, 217, 0.6), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  max-width: 720px;
}

.slide h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  max-width: 720px;
}

.slide p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -32px;
  position: relative;
  z-index: 10;
  padding: 0 32px;
}

.stat {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-strong);
}

.stat .num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat .label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.breadcrumb {
  margin: 32px 0 8px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.breadcrumb li + li::before {
  content: "›";
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

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

.anchor-nav {
  margin: 24px 0 40px;
  padding: 12px 16px;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.anchor-nav ul {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: max-content;
}

.anchor-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.anchor-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

section > h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  padding-left: 18px;
  position: relative;
  color: var(--text);
  letter-spacing: -0.01em;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

section > h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
  line-height: 1.4;
}

section > h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--primary);
  line-height: 1.4;
}

section > p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}

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

#intro,
#products,
#advantages,
#solutions,
#scenes,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links {
  padding: 32px 28px;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

#intro:hover,
#products:hover,
#advantages:hover,
#solutions:hover,
#scenes:hover,
#cases:hover,
#reviews:hover,
#news:hover,
#articles:hover,
#knowledge:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#products h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(251, 191, 36, 0.08));
  border-radius: 999px;
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 16px;
  color: var(--primary);
  border: 1px solid var(--border);
}

#products h4 {
  position: relative;
  padding-left: 16px;
}

#products h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

#advantages h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 16px 0 10px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

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

#advantages h3::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

#solutions h3,
#scenes h3,
#cases h3,
#knowledge h3 {
  padding-left: 18px;
  position: relative;
}

#solutions h3::before,
#scenes h3::before,
#cases h3::before,
#knowledge h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.7;
}

#cases h3 {
  padding: 16px 20px 16px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 16px 0 10px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#cases h3:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

#cases h3::before {
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  opacity: 1;
}

#reviews blockquote {
  position: relative;
  margin: 20px 0;
  padding: 24px 28px 20px 56px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

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

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 12px;
  font-size: 3.5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.25;
}

#reviews blockquote p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
}

#reviews blockquote footer {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
}

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

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

#news article h3,
#articles article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.45;
  transition: color var(--transition-fast);
}

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

#news article p,
#articles article p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

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

#news article a:hover,
#articles article a:hover {
  color: var(--primary-light);
  gap: 8px;
}

#news article a:hover::after,
#articles article a:hover::after {
  transform: translateX(2px);
}

#faq details {
  margin: 12px 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

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

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

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(109, 40, 217, 0.08);
  border-radius: 50%;
  transition: transform var(--transition-base), background-color var(--transition-base);
}

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

#faq summary:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.04);
}

#faq details p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 0;
}

#howto ol {
  counter-reset: howto-counter;
  margin: 16px 0;
  padding: 0;
}

#howto ol li {
  counter-increment: howto-counter;
  position: relative;
  padding: 14px 16px 14px 56px;
  margin: 10px 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

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

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

#contact ul li {
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-light);
}

#contact ul li::before {
  content: "◆";
  margin-right: 8px;
  font-size: 0.6rem;
  color: var(--accent);
  vertical-align: middle;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

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

footer {
  position: relative;
  margin-top: 40px;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, transparent, rgba(109, 40, 217, 0.06));
  border-top: 1px solid var(--border);
}

[data-theme="dark"] footer {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.08));
}

footer > section {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 24px 28px;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

footer h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
  color: var(--text);
}

footer h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

footer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

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

footer a {
  color: var(--primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer > p:last-child {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  line-height: 1.1;
  text-align: center;
  padding: 4px;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@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;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-list a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .site-search input {
    width: 120px;
  }

  .slide {
    padding: 40px 40px;
  }

  .hero-stats {
    padding: 0 16px;
    gap: 12px;
  }
}

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

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }

  .brand {
    order: 1;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

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

  #menu-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  #theme-toggle {
    display: inline-flex;
    order: 3;
  }

  nav[aria-label="主导航"] {
    order: 5;
    flex: 1 1 100%;
    display: none;
    justify-content: flex-start;
  }

  nav[aria-label="主导航"].open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  .nav-list a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

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

  .site-search {
    order: 4;
    flex: 1 1 100%;
    margin-top: 4px;
  }

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

  main {
    padding: 0 16px 64px;
  }

  .hero {
    padding: 24px 0 20px;
  }

  .hero-banner {
    min-height: 300px;
    border-radius: var(--radius-lg);
  }

  .slide {
    padding: 32px 24px;
    gap: 12px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
    padding: 0 8px;
    gap: 10px;
  }

  .stat {
    padding: 16px 12px;
  }

  section {
    margin-bottom: 40px;
  }

  #intro,
  #products,
  #advantages,
  #solutions,
  #scenes,
  #cases,
  #reviews,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  section > h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    padding-left: 14px;
  }

  section > h2::before {
    width: 4px;
  }

  .anchor-nav {
    margin: 16px 0 28px;
    padding: 10px 12px;
  }

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

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    padding: 32px 16px 24px;
  }

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

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

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

  .hero-banner {
    min-height: 320px;
  }

  .slide {
    padding: 24px 18px;
  }

  .slide h1 {
    font-size: 1.35rem;
  }

  .slide h2 {
    font-size: 1.2rem;
  }

  .slide p {
    font-size: 0.88rem;
  }

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

  .stat .num {
    font-size: 1.3rem;
  }

  .stat .label {
    font-size: 0.72rem;
  }

  #reviews blockquote {
    padding: 20px 18px 16px 44px;
  }

  #reviews blockquote::before {
    font-size: 2.5rem;
    left: 12px;
    top: 10px;
  }

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

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

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

  #howto ol li {
    padding: 12px 14px 12px 50px;
    font-size: 0.88rem;
  }

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

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

  .anchor-nav a {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
}

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

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

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

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

.anchor-nav::-webkit-scrollbar {
  height: 6px;
}

.anchor-nav::-webkit-scrollbar-thumb {
  border: 1px solid var(--bg);
}