:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --bg: #f8f7fc;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1e1b2e;
  --text-secondary: #5b5570;
  --text-muted: #8a84a0;
  --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.06);
  --shadow-md: 0 8px 24px rgba(109, 40, 217, 0.1);
  --shadow-lg: 0 16px 48px rgba(109, 40, 217, 0.14);
  --shadow-glow: 0 0 24px rgba(109, 40, 217, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --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", "Fira Mono", "Roboto Mono", monospace;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 40%, #06b6d4 100%);
  --gradient-hero: linear-gradient(135deg, #4c1d95 0%, #6d28d9 30%, #7c3aed 60%, #06b6d4 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 100%);
  --max-width: 1200px;
  --header-height: 68px;
}

[data-theme="dark"] {
  --primary: #a78bfa;
  --primary-light: #c4b5fd;
  --primary-dark: #7c3aed;
  --accent: #22d3ee;
  --accent-light: #67e8f9;
  --bg: #0f0d1a;
  --bg-alt: #16132a;
  --bg-card: rgba(30, 27, 46, 0.72);
  --bg-glass: rgba(30, 27, 46, 0.55);
  --text: #ede9fe;
  --text-secondary: #b8b0d0;
  --text-muted: #7a7290;
  --border: rgba(167, 139, 250, 0.12);
  --border-strong: rgba(167, 139, 250, 0.25);
  --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 24px rgba(167, 139, 250, 0.2);
  --gradient-hero: linear-gradient(135deg, #1a1035 0%, #2d1b69 30%, #4c1d95 60%, #0e7490 100%);
  --gradient-card: linear-gradient(145deg, rgba(30,27,46,0.9) 0%, rgba(30,27,46,0.5) 100%);
}

*,
*::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%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(109, 40, 217, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.06), transparent),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(139, 92, 246, 0.05), transparent);
  background-attachment: fixed;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(167, 139, 250, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 211, 238, 0.06), transparent),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(139, 92, 246, 0.08), transparent);
}

::selection {
  background: rgba(109, 40, 217, 0.25);
  color: var(--text);
}

[data-theme="dark"] ::selection {
  background: rgba(167, 139, 250, 0.35);
}

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 {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol {
  list-style: none;
}

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

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

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

[data-theme="dark"] #site-header {
  background: rgba(15, 13, 26, 0.78);
}

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

.brand {
  flex-shrink: 0;
}

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

.brand a:hover {
  color: var(--text);
}

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

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

.brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

nav[aria-label="主导航"] ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav[aria-label="主导航"] a {
  display: block;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

nav[aria-label="主导航"] a:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.08);
  transform: translateY(-1px);
}

[data-theme="dark"] nav[aria-label="主导航"] a:hover {
  background: rgba(167, 139, 250, 0.12);
}

#menu-toggle,
#theme-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

#menu-toggle::before,
#theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

#menu-toggle:hover,
#theme-toggle:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#menu-toggle:hover::before,
#theme-toggle:hover::before {
  opacity: 1;
}

#menu-toggle span,
#theme-toggle span {
  position: relative;
  z-index: 1;
}

#menu-toggle {
  display: none;
}

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

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

/* ===== HERO ===== */
#hero {
  position: relative;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  animation: heroFloat 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

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

#hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#hero > p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  max-width: 780px;
  margin-bottom: 16px;
}

#hero > p:last-of-type {
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.hero-actions a:first-child {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-actions a:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  color: var(--primary-dark);
}

.hero-actions a:last-child {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-actions a:last-child:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  color: #fff;
}

/* ===== BANNER CAROUSEL ===== */
#banner-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

#banner-carousel article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-base);
  cursor: default;
}

#banner-carousel article:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

#banner-carousel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

#banner-carousel p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

/* ===== BREADCRUMB ===== */
nav[aria-label="面包屑导航"] {
  margin-bottom: 40px;
}

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

nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav[aria-label="面包屑导航"] ol li + li::before {
  content: '›';
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

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

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

/* ===== SECTION HEADINGS ===== */
section > h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
  line-height: 1.35;
}

section > h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: var(--gradient-primary);
}

section > h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

section > p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 860px;
}

/* ===== CARDS (generic) ===== */
#brand,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#search {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

#brand:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover,
#search:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

#products ul li {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: all var(--transition-base);
  position: relative;
  padding-left: 44px;
}

#products ul li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 8px rgba(109, 40, 217, 0.4);
}

#products ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  color: var(--text);
}

/* ===== SOLUTIONS ===== */
#solutions ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

#solutions ul li {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  position: relative;
  padding-left: 44px;
}

#solutions ul li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 8px rgba(109, 40, 217, 0.4);
}

#solutions ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  color: var(--text);
}

/* ===== CASES ===== */
#cases ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

#cases ul li {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  position: relative;
  padding-left: 44px;
  transition: all var(--transition-base);
}

#cases ul li::before {
  content: '“';
  position: absolute;
  left: 16px;
  top: 8px;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.35;
  font-family: Georgia, serif;
  line-height: 1;
}

#cases ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  color: var(--text);
}

/* ===== NEWS & ARTICLES ===== */
#news article,
#articles article {
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

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

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

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

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

#news article > p:last-of-type,
#articles article > p:last-of-type {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  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 {
  gap: 8px;
  color: var(--primary-light);
}

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

#articles > p {
  margin-bottom: 24px;
}

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

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

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

[data-theme="dark"] #faq details[open] {
  background: rgba(30, 27, 46, 0.9);
}

#faq summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

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

#faq summary::before {
  content: '+';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(109, 40, 217, 0.1);
  transition: all var(--transition-base);
  line-height: 1;
}

[data-theme="dark"] #faq summary::before {
  background: rgba(167, 139, 250, 0.15);
}

#faq details[open] summary::before {
  content: '−';
  background: var(--gradient-primary);
  color: #fff;
  transform: rotate(180deg);
}

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

#faq details p {
  padding: 0 24px 20px 60px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  animation: faqFadeIn 0.3s ease;
}

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

/* ===== HOWTO ===== */
#howto ul,
#howto ol {
  margin: 16px 0;
  padding-left: 0;
}

#howto ul li,
#howto ol li {
  padding: 10px 0 10px 36px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

#howto ul li:last-child,
#howto ol li:last-child {
  border-bottom: none;
}

#howto ul li::before {
  content: '✦';
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-size: 0.8rem;
}

#howto ol {
  counter-reset: howto-counter;
}

#howto ol li {
  counter-increment: howto-counter;
  padding-left: 44px;
}

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

#howto ul li:hover,
#howto ol li:hover {
  color: var(--text);
  padding-left: 40px;
}

#howto ol li:hover {
  padding-left: 48px;
}

/* ===== CONTACT ===== */
#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

#contact ul li {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  position: relative;
  padding-left: 44px;
}

#contact ul li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

#contact ul li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
  color: var(--text);
}

/* ===== 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;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
}

/* ===== LEGAL ===== */
#legal h3 {
  margin-top: 24px;
}

#legal h3:first-of-type {
  margin-top: 0;
}

#legal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== SEARCH ===== */
#search form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

#search label {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

#search input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

#search input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12), var(--shadow-sm);
  background: var(--bg-alt);
}

[data-theme="dark"] #search input[type="search"]:focus {
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15), var(--shadow-sm);
}

#search button[type="submit"] {
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

#search button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.4);
}

#search button[type="submit"]:active {
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

footer a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 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.05);
  box-shadow: 0 8px 32px rgba(109, 40, 217, 0.5);
}

#back-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

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

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

/* ===== HOVER EFFECTS FOR CARDS ===== */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav[aria-label="主导航"] ul {
    gap: 2px;
  }

  nav[aria-label="主导航"] a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  #hero {
    padding: 48px 36px;
  }

  #banner-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  #menu-toggle {
    display: flex;
  }

  nav[aria-label="主导航"] {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  nav[aria-label="主导航"].open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav[aria-label="主导航"] ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  nav[aria-label="主导航"] a {
    padding: 12px 18px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    text-align: left;
  }

  main {
    padding: calc(var(--header-height) + 24px) 16px 40px;
  }

  section {
    margin-bottom: 40px;
  }

  #hero {
    padding: 36px 24px;
    border-radius: var(--radius-lg);
  }

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

  #hero > p {
    font-size: 0.95rem;
  }

  #banner-carousel {
    grid-template-columns: 1fr;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #search {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  section > h2 {
    font-size: 1.3rem;
    padding-left: 16px;
  }

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

  #products ul,
  #solutions ul,
  #cases ul,
  #contact ul {
    grid-template-columns: 1fr;
  }

  #news article,
  #articles article {
    padding: 20px;
  }

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

  #faq details p {
    padding: 0 18px 16px 54px;
    font-size: 0.88rem;
  }

  #search form {
    flex-direction: column;
  }

  #search input[type="search"] {
    width: 100%;
  }

  #search button[type="submit"] {
    width: 100%;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  main {
    padding: calc(var(--header-height) + 16px) 12px 32px;
  }

  #hero {
    padding: 28px 18px;
  }

  #hero h1 {
    font-size: 1.3rem;
  }

  #hero > p {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  #banner-carousel article {
    padding: 18px;
  }

  #banner-carousel h2 {
    font-size: 1rem;
  }

  #banner-carousel p {
    font-size: 0.82rem;
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #search {
    padding: 20px 16px;
  }

  section > h2 {
    font-size: 1.15rem;
  }

  section > h3 {
    font-size: 1.05rem;
  }

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

  #news article h3,
  #articles article h3 {
    font-size: 0.95rem;
  }

  #faq summary {
    padding: 14px 14px;
    font-size: 0.85rem;
    gap: 8px;
  }

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

  #faq details p {
    padding: 0 14px 14px 50px;
    font-size: 0.84rem;
  }

  #howto ul li,
  #howto ol li {
    font-size: 0.86rem;
  }

  #contact ul li {
    font-size: 0.84rem;
    padding: 14px 16px 14px 38px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  footer {
    padding: 28px 16px 72px;
  }
}

/* ===== 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,
  #banner-carousel,
  .hero-actions,
  #search,
  #menu-toggle,
  #theme-toggle {
    display: none !important;
  }

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

  #hero {
    background: #f0f0f0;
    color: #000;
    box-shadow: none;
  }

  #hero > p {
    color: #333;
  }

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