:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #12121f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --accent: #e94560;
  --accent-hover: #ff5a7a;
  --accent-glow: rgba(233, 69, 96, 0.35);
  --gradient-1: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-2: linear-gradient(135deg, #e94560 0%, #533483 100%);
  --gradient-3: linear-gradient(135deg, #0f3460 0%, #533483 50%, #e94560 100%);
  --gradient-hero: linear-gradient(160deg, #0a0a14 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --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);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --header-height: 72px;
  --max-width: 1200px;
}

[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a0;
  --accent: #d63050;
  --accent-hover: #e94560;
  --accent-glow: rgba(214, 48, 80, 0.25);
  --gradient-hero: linear-gradient(160deg, #f5f5fa 0%, #e8e8f0 30%, #dde0f0 60%, #d0d5f0 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(214, 48, 80, 0.15);
}

*,
*::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);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(233, 69, 96, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(83, 52, 131, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: color var(--transition-base);
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

/* ========== HEADER ========== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-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: rgba(10, 10, 20, 0.85);
}

[data-theme="light"] #site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.03);
}

.brand-logo svg {
  border-radius: 10px;
  box-shadow: var(--shadow-glow);
  transition: box-shadow var(--transition-base);
}

.brand-logo:hover svg {
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.4);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

#main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast);
}

#main-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-2);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

#main-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

#main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

#site-search input {
  width: 180px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  outline: none;
  transition: width var(--transition-base), border-color var(--transition-fast), background var(--transition-fast);
}

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

#site-search input:focus {
  width: 220px;
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

#site-search button {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  background: var(--gradient-2);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

#site-search button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#theme-toggle {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

#theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

#menu-toggle {
  display: none;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

#menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

/* ========== MAIN ========== */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

main > section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

/* ========== BREADCRUMB ========== */
#breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}

#breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

#breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

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

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

/* ========== HERO ========== */
#hero {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 60px;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

#hero-title {
  margin-bottom: 24px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out both;
}

.hero-lead {
  max-width: 800px;
  margin: 0 auto 16px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-answer {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 20px 28px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ========== CAROUSEL ========== */
#banner-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide svg {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  background: linear-gradient(transparent, rgba(10, 10, 20, 0.85));
  text-align: center;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.carousel-prev::after {
  content: "‹";
  font-size: 1.6rem;
  line-height: 1;
}

.carousel-next::after {
  content: "›";
  font-size: 1.6rem;
  line-height: 1;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dots button[aria-selected="true"] {
  width: 28px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.carousel-dots button:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ========== HERO STATS ========== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.hero-stats li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(233, 69, 96, 0.3);
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== SECTIONS ========== */
main > section h2 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 14px;
}

main > section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-2);
  border-radius: 3px;
}

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

main > section > p {
  max-width: 900px;
}

main > section > ul {
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

main > section > ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

main > section > ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-2);
  box-shadow: 0 0 8px var(--accent-glow);
}

main > section > ol {
  margin: 16px 0;
  counter-reset: step-counter;
  display: grid;
  gap: 12px;
}

main > section > ol li {
  position: relative;
  padding-left: 44px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  counter-increment: step-counter;
  min-height: 32px;
  display: flex;
  align-items: center;
}

main > section > ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-2);
  border-radius: 50%;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* ========== CARDS ========== */
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#sitemap,
#links,
#legal,
#meta-info {
  position: relative;
}

#products h3,
#solutions h3,
#cases h3 {
  padding: 20px 24px;
  margin-top: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
  transition: all var(--transition-base);
}

#products h3 + p,
#solutions h3 + p,
#cases h3 + p {
  padding: 0 24px 20px;
  margin-top: 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: all var(--transition-base);
}

#products h3:hover,
#solutions h3:hover,
#cases h3:hover {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-glow);
}

#products h3:hover + p,
#solutions h3:hover + p,
#cases h3:hover + p {
  border-color: rgba(233, 69, 96, 0.3);
}

#products > ul,
#solutions > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

#products > ul li,
#solutions > ul li {
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

#products > ul li::before,
#solutions > ul li::before {
  display: none;
}

#products > ul li:hover,
#solutions > ul li:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ========== CASE BLOCKQUOTES ========== */
#cases blockquote {
  margin: 16px 0;
  padding: 20px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* ========== NEWS ========== */
#news > ul {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

#news > ul > li {
  padding: 24px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#news > ul > li::before {
  display: none;
}

#news > ul > li:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

#news h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

#news p {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

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

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

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

#articles article {
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

#articles article:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.4;
}

#articles article p {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

#articles article p:nth-of-type(2) {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  padding-top: 12px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

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

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

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

/* ========== FAQ ========== */
#faq dl {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

#faq dt {
  margin: 0;
}

#faq dt button {
  width: 100%;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast);
  position: relative;
}

#faq dt button::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition-base);
  line-height: 1;
}

#faq dt button[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(180deg);
}

#faq dt button:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-glow);
}

#faq dt button[aria-expanded="true"] {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom-color: transparent;
  background: var(--bg-card-hover);
}

#faq dd {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: slideDown 0.3s ease-out both;
}

#faq dd[hidden] {
  display: none;
}

/* ========== HOWTO ========== */
#howto {
  counter-reset: section-counter;
}

#howto h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

#howto h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--gradient-2);
  border-radius: 2px;
  flex-shrink: 0;
}

#howto > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}

#howto > ul li {
  padding: 14px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

#howto > ul li::before {
  display: none;
}

#howto > ul li:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233, 69, 96, 0.25);
  transform: translateX(4px);
}

/* ========== KNOWLEDGE ========== */
#knowledge h3 {
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  margin-top: 24px;
}

#knowledge h3:first-of-type {
  margin-top: 16px;
}

/* ========== CONTACT ========== */
#contact address {
  font-style: normal;
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

#contact address p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

#contact address a {
  font-weight: 600;
}

/* ========== SITEMAP & LINKS ========== */
#sitemap > ul,
#links > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

#sitemap > ul li,
#links > ul li {
  padding: 12px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

#sitemap > ul li::before,
#links > ul li::before {
  display: none;
}

#sitemap > ul li:hover,
#links > ul li:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233, 69, 96, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#sitemap a,
#links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  transition: color var(--transition-fast);
}

#sitemap a:hover,
#links a:hover {
  color: var(--accent);
}

/* ========== LEGAL ========== */
#legal h3 {
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  margin-top: 24px;
}

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

/* ========== META INFO ========== */
#meta-info {
  padding-bottom: 40px;
}

#meta-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ========== FOOTER ========== */
#site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  transition: background var(--transition-base), border-color var(--transition-base);
}

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

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

#site-footer a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 0;
  color: #fff;
  background: var(--gradient-2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  overflow: hidden;
}

#back-to-top::after {
  content: "↑";
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#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-lg), 0 0 40px rgba(233, 69, 96, 0.5);
}

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

/* ========== 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);
}

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

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.4);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #main-nav ul {
    gap: 2px;
  }

  #main-nav a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  #site-search input {
    width: 140px;
  }

  #site-search input:focus {
    width: 170px;
  }
}

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

  #main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    padding: 0 24px;
  }

  #main-nav.open {
    max-height: 500px;
    padding: 16px 24px;
    overflow-y: auto;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

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

  #main-nav a::after {
    display: none;
  }

  #menu-toggle {
    display: block;
  }

  #site-search {
    display: none;
  }

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

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

  main > section {
    padding: 40px 20px;
  }

  #breadcrumb {
    padding: 16px 20px 0;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  body {
    font-size: 15px;
  }

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

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

  .brand-logo svg {
    width: 30px;
    height: 30px;
  }

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

  #menu-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

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

  #hero {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-answer {
    padding: 16px 20px;
    font-size: 0.9rem;
  }

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

  .hero-stats li {
    padding: 18px 10px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

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

  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
  }

  .carousel-prev::after,
  .carousel-next::after {
    font-size: 1.3rem;
  }

  .carousel-slide figcaption {
    font-size: 0.85rem;
    padding: 30px 16px 16px;
  }

  #products h3,
  #solutions h3,
  #cases h3 {
    padding: 16px 18px;
    font-size: 1rem;
  }

  #products h3 + p,
  #solutions h3 + p,
  #cases h3 + p {
    padding: 0 18px 16px;
  }

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

  #news > ul > li {
    padding: 18px 20px;
  }

  #articles article {
    padding: 20px;
  }

  #faq dt button {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

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

  #contact address {
    padding: 20px;
  }

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

  #sitemap > ul li,
  #links > ul li {
    padding: 10px 14px;
  }

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

  #back-to-top::after {
    font-size: 1.1rem;
  }

  #site-footer {
    padding: 28px 16px;
  }
}

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

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

/* ========== 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,
  #site-search,
  #theme-toggle,
  #menu-toggle {
    display: none;
  }

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

  main {
    padding-top: 0;
  }

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

  main > section {
    page-break-inside: avoid;
  }
}

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

::-moz-selection {
  background: var(--accent);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

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

/* ========== FOCUS VISIBLE ========== */
:focus:not(:focus-visible) {
  outline: none;
}

/* ========== LOADING SKELETON ========== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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