:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-border: rgba(255, 255, 255, 0.45);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-light: rgba(14, 165, 233, 0.12);
  --accent-glow: rgba(14, 165, 233, 0.35);
  --secondary: #6366f1;
  --secondary-hover: #4f46e5;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5e9, #6366f1);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(241,245,249,0.7));
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 24px rgba(14, 165, 233, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --border-color: rgba(15, 23, 42, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --header-height: 68px;
}

[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.72);
  --bg-glass: rgba(30, 41, 59, 0.55);
  --bg-glass-border: rgba(56, 189, 248, 0.15);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.3);
  --secondary: #818cf8;
  --secondary-hover: #a5b4fc;
  --gradient-hero: linear-gradient(135deg, #020617 0%, #1e1b4b 40%, #0369a1 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8, #818cf8);
  --gradient-card: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.7));
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(56, 189, 248, 0.2);
  --border-color: rgba(148, 163, 184, 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  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-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
  color: 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(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.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;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--transition-bounce);
}

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

.brand-logo svg {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

#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%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-smooth);
}

#main-nav a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

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

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

#theme-toggle {
  display: block;
  flex-shrink: 0;
}

#menu-toggle:hover,
#theme-toggle:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ========== MAIN ========== */
main {
  padding-top: var(--header-height);
}

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

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: -0.01em;
}

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

section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}

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

/* ========== HERO ========== */
#hero {
  max-width: 100%;
  padding: 0;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatGlow 8s ease-in-out infinite;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatGlow 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 32px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out both;
}

.hero-content p {
  color: rgba(226, 232, 240, 0.85);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 720px;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.55);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

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

/* ========== BANNER CAROUSEL ========== */
.hero-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.banner-slide {
  display: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: bannerFade 0.6s ease-out both;
}

.banner-slide.active {
  display: block;
}

@keyframes bannerFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

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

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-smooth);
  padding: 0;
}

.dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ========== HERO STATS ========== */
.hero-stats {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: 22px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-smooth), background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.7);
  margin-top: 6px;
  font-weight: 500;
}

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

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

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

#breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--text-tertiary);
  font-size: 1.1rem;
  line-height: 1;
}

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

/* ========== CARDS (Brand, Products, Solutions, Cases) ========== */
#brand,
#products,
#solutions,
#cases {
  position: relative;
}

#brand h3,
#products h3,
#solutions h3,
#cases h3 {
  transition: transform var(--transition-smooth);
}

#brand h3:hover,
#products h3:hover,
#solutions h3:hover,
#cases h3:hover {
  transform: translateX(4px);
}

#brand p,
#products p,
#solutions p,
#cases p {
  padding-left: 0;
}

/* Apply card styling to product sections */
#products > h3,
#solutions > h3,
#cases > h3 {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px 20px 28px;
  margin: 20px 0 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

#products > h3:hover,
#solutions > h3:hover,
#cases > h3:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

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

/* ========== NEWS ========== */
#news h3 {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 18px 24px 10px;
  margin: 24px 0 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#news h3:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#news h3 + p {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-top: none;
  border-radius: 0;
  padding: 0 24px 6px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

#news h3 + p + p {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 6px 24px 20px;
  margin: 0 0 4px;
  box-shadow: var(--shadow-sm);
}

/* ========== ARTICLES ========== */
#articles article {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

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

#articles article h3 {
  margin: 0 0 8px;
  padding-left: 0;
  border-left: none;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

#articles article:hover h3 {
  color: var(--accent);
}

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

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

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

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

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

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

/* ========== KNOWLEDGE ========== */
#knowledge h3 {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 18px 24px 18px 28px;
  margin: 20px 0 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

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

#knowledge h3 + p {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0 24px 20px 28px;
  margin-top: -12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ========== FAQ ========== */
#faq details {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

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

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

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

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

#faq summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition-smooth), color var(--transition-fast);
  line-height: 1;
}

#faq details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover {
  color: var(--accent);
  background: var(--accent-light);
}

#faq details p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
  animation: faqOpen 0.3s ease-out both;
}

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

/* ========== HOWTO ========== */
#howto h3 {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 18px 24px 18px 28px;
  margin: 20px 0 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

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

#howto h3 + p {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0 24px 20px 28px;
  margin-top: -12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ========== CONTACT ========== */
#contact h3 {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 18px 24px 18px 28px;
  margin: 20px 0 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

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

#contact h3 + p {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-top: none;
  border-radius: 0;
  padding: 8px 24px;
  margin: 0;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

#contact h3 + p:last-of-type {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

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

#sitemap li,
#links li {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  overflow: hidden;
}

#sitemap li:hover,
#links li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

#sitemap a,
#links a {
  display: block;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

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

/* ========== FOOTER ========== */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  transition: background var(--transition-smooth);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-content p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-content p:last-child {
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 500;
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all var(--transition-smooth);
}

#back-to-top::before {
  content: '↑';
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

#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: 0 8px 32px rgba(14, 165, 233, 0.55);
}

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

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  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.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

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

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

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

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

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

/* ========== RESPONSIVE: TABLET ========== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

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

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

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

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

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

  #menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  #main-nav.open {
    max-height: 600px;
    padding: 12px 16px 20px;
    overflow-y: auto;
  }

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

  #main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }

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

  #main-nav a:hover {
    background: var(--accent-light);
  }

  section {
    padding: 40px 16px;
  }

  section h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  section h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
  }

  section p {
    font-size: 0.9rem;
  }

  #hero {
    min-height: auto;
  }

  .hero-content {
    padding: 56px 16px 24px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 22px;
  }

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

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

  .hero-banner {
    padding: 0 16px 24px;
  }

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

  .stat-item {
    padding: 16px 8px;
  }

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

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

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

  #products > h3,
  #solutions > h3,
  #cases > h3,
  #knowledge h3,
  #howto h3,
  #contact h3 {
    padding: 16px 18px 16px 22px;
    font-size: 1rem;
  }

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

  #news h3 {
    padding: 16px 18px 8px;
  }

  #news h3 + p {
    padding: 0 18px 4px;
  }

  #news h3 + p + p {
    padding: 4px 18px 16px;
  }

  #articles article {
    padding: 18px 20px;
  }

  #articles article h3 {
    font-size: 1rem;
  }

  #faq summary {
    padding: 15px 18px;
    padding-right: 42px;
    font-size: 0.9rem;
  }

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

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

  #contact h3 + p {
    padding: 6px 18px;
  }

  #contact h3 + p:last-of-type {
    padding-bottom: 16px;
  }

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

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

  .footer-content {
    padding: 32px 16px;
  }

  .footer-content p {
    font-size: 0.78rem;
  }

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

/* ========== RESPONSIVE: SMALL MOBILE ========== */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.35rem;
  }

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

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

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

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

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

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

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

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  #hero {
    background: #f0f0f0;
    min-height: auto;
  }

  .hero-content h1 {
    color: #000;
    text-shadow: none;
  }

  .hero-content p {
    color: #333;
  }

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