:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #5b21b6;
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --gradient-1: linear-gradient(135deg, #6d28d9 0%, #0ea5e9 100%);
  --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-3: linear-gradient(160deg, #4c1d95 0%, #6d28d9 40%, #0ea5e9 100%);
  --bg: #f8f7fc;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-hover: rgba(255, 255, 255, 0.8);
  --text: #1e1b2e;
  --text-secondary: #4a4560;
  --text-muted: #7c7890;
  --border: rgba(109, 40, 217, 0.12);
  --border-glass: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 2px 8px rgba(109, 40, 217, 0.06);
  --shadow: 0 8px 32px rgba(109, 40, 217, 0.1);
  --shadow-lg: 0 16px 48px rgba(109, 40, 217, 0.15);
  --shadow-glow: 0 0 40px rgba(109, 40, 217, 0.2);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --header-height: 72px;
  --max-width: 1200px;
}

[data-theme="dark"] {
  --bg: #0f0d1a;
  --bg-alt: #1a1729;
  --bg-card: rgba(30, 27, 46, 0.75);
  --bg-glass: rgba(30, 27, 46, 0.6);
  --bg-glass-hover: rgba(40, 36, 60, 0.85);
  --text: #ede9fe;
  --text-secondary: #c4b5fd;
  --text-muted: #8b83a8;
  --border: rgba(139, 92, 246, 0.18);
  --border-glass: rgba(139, 92, 246, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(109, 40, 217, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(139, 92, 246, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(109, 40, 217, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(14, 165, 233, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(139, 92, 246, 0.08), transparent 60%);
}

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

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

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

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

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

.brand svg {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
  transition: box-shadow var(--transition);
}

.brand:hover svg {
  box-shadow: 0 6px 24px rgba(109, 40, 217, 0.45);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  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;
  transition: all var(--transition-fast);
  position: relative;
}

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

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

#main-nav a:hover::after {
  width: 60%;
}

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

#site-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#site-search:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

#search-input {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text);
  width: 160px;
  outline: none;
  font-family: var(--font);
  transition: width var(--transition);
}

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

#search-input:focus {
  width: 200px;
}

#site-search button {
  border: none;
  background: var(--gradient-1);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

#site-search button:hover {
  opacity: 0.85;
}

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

#theme-toggle:hover,
#menu-toggle:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(109, 40, 217, 0.08);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  position: relative;
  z-index: 1;
}

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

.breadcrumb li + li::before {
  content: '›';
  margin-right: 8px;
  color: var(--text-muted);
}

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

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

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

/* ===== SECTIONS ===== */
section {
  margin-bottom: 48px;
  animation: fadeInUp 0.7s ease-out both;
}

section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.25s; }

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

section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
  line-height: 1.3;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
  transition: width var(--transition);
}

section:hover h2::after {
  width: 100px;
}

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

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

section ul,
section ol {
  margin: 12px 0 20px;
  padding-left: 0;
}

section ul li,
section ol li {
  color: var(--text-secondary);
  padding: 8px 0 8px 28px;
  position: relative;
  line-height: 1.75;
}

section ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
  transition: transform var(--transition-fast);
}

section ul li:hover::before {
  transform: scale(1.4);
}

section ol {
  counter-reset: item;
}

section ol li {
  counter-increment: item;
  padding-left: 36px;
}

section ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

/* ===== HERO ===== */
#hero {
  background: var(--gradient-3);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { box-shadow: var(--shadow-lg), 0 0 40px rgba(109, 40, 217, 0.2); }
  to { box-shadow: var(--shadow-lg), 0 0 80px rgba(14, 165, 233, 0.3); }
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#hero > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 800px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
  color: #fff;
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 0 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}

#hero figure:hover {
  transform: scale(1.01);
}

#hero figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

#hero figure:hover img {
  transform: scale(1.03);
}

#hero figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.stat {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat span:last-child {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== CARDS (sections with content) ===== */
#intro,
#products,
#solutions,
#scenes,
#cases,
#news,
#articles,
#howto,
#faq,
#contact,
#sitemap,
#links,
#legal,
#author {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#intro:hover,
#products:hover,
#solutions:hover,
#scenes:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#faq:hover,
#contact:hover {
  box-shadow: var(--shadow);
  border-color: rgba(109, 40, 217, 0.2);
}

/* ===== NEWS & ARTICLES ===== */
#news article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-1);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

#news article:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: rgba(109, 40, 217, 0.2);
}

#news article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

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

#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(109, 40, 217, 0.06), transparent 70%);
  border-radius: 0 var(--radius) 0 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

#articles article:hover::after {
  opacity: 0.5;
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(109, 40, 217, 0.2);
}

#articles article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

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

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

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

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

/* ===== CASES / BLOCKQUOTE ===== */
#cases blockquote {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 20px 0 0;
  position: relative;
  transition: all var(--transition);
}

#cases blockquote:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

#cases blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}

#cases blockquote p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 2rem;
  color: var(--primary-light);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}

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

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

#faq details:hover {
  border-color: rgba(109, 40, 217, 0.25);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: rgba(109, 40, 217, 0.3);
  box-shadow: var(--shadow);
}

#faq summary {
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast);
  position: relative;
}

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

#faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.08);
  transition: all var(--transition);
  line-height: 1;
}

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

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

#faq details > p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0;
  animation: faqFade 0.35s ease-out;
}

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

/* ===== CONTACT / ADDRESS ===== */
#contact address {
  font-style: normal;
  margin: 16px 0;
}

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

#contact address li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  padding-left: 18px;
}

#contact address li::before {
  display: none;
}

#contact address li:hover {
  border-color: rgba(109, 40, 217, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

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

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

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

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

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

/* ===== BACK TO TOP ===== */
#back-to-top-section {
  text-align: center;
  margin: 32px 0;
}

#back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gradient-1);
  color: #fff;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.3);
  transition: all var(--transition);
}

#back-to-top::before {
  content: '↑';
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(109, 40, 217, 0.45);
  color: #fff;
}

#back-to-top:hover::before {
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-inner nav {
  margin-top: 20px;
}

.footer-inner nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.footer-inner nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient-1);
  transition: width var(--transition);
}

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

.footer-inner nav a:hover::after {
  width: 100%;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

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

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

  #search-input {
    width: 120px;
  }

  #search-input:focus {
    width: 150px;
  }

  #hero {
    padding: 40px 32px;
  }

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

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

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

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

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

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

  #main-nav {
    order: 3;
    width: 100%;
    display: none;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  #main-nav.open {
    display: block;
    animation: navSlide 0.3s ease-out;
  }

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

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

  #main-nav a {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
  }

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

  .header-actions {
    flex: 1;
    justify-content: flex-end;
  }

  #site-search {
    flex: 1;
    max-width: 200px;
  }

  #search-input {
    width: 100%;
  }

  #search-input:focus {
    width: 100%;
  }

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

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

  .breadcrumb {
    padding: 14px 16px 0;
    font-size: 0.8rem;
  }

  main {
    padding: 0 16px 40px;
  }

  #hero {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    margin-top: 16px;
  }

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

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

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

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

  .stat {
    padding: 16px 12px;
  }

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

  .stat span:last-child {
    font-size: 0.72rem;
  }

  section {
    margin-bottom: 32px;
  }

  section h2 {
    font-size: 1.35rem;
  }

  section h3 {
    font-size: 1.05rem;
  }

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

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

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

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

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

  #sitemap a,
  #links a {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .footer-inner nav ul {
    gap: 12px;
  }

  .footer-inner nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .brand-text {
    font-size: 0.95rem;
  }

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

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

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

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

  section {
    opacity: 1;
    transform: none;
  }
}

/* ===== PRINT ===== */
@media print {
  #site-header,
  #back-to-top-section,
  footer,
  .hero-actions {
    display: none;
  }

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

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

  #hero h1,
  #hero > p {
    color: #000;
  }

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

/* ===== SELECTION ===== */
::selection {
  background: rgba(109, 40, 217, 0.2);
  color: var(--text);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--accent-light));
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ===== LOADING SKELETON ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, rgba(109, 40, 217, 0.06) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}