:root {
  --primary: #6C5CE7;
  --primary-light: #a29bfe;
  --primary-dark: #4834d4;
  --secondary: #fd79a8;
  --accent: #00cec9;
  --accent2: #fdcb6e;
  --bg: #f8f9fe;
  --bg-card: #ffffff;
  --bg-glass: rgba(255,255,255,0.72);
  --bg-glass-border: rgba(255,255,255,0.5);
  --text: #1a1a2e;
  --text-secondary: #555577;
  --text-muted: #8888aa;
  --border: #e8e8f0;
  --shadow: 0 4px 24px rgba(108,92,231,0.10);
  --shadow-hover: 0 12px 40px rgba(108,92,231,0.20);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --gradient-banner: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 30%, #fd79a8 70%, #fdcb6e 100%);
  --gradient-hero: linear-gradient(160deg, #f0eeff 0%, #f8f9fe 40%, #fff5f8 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --primary: #a29bfe;
  --primary-light: #6C5CE7;
  --primary-dark: #8b7cf7;
  --secondary: #fd79a8;
  --accent: #00cec9;
  --accent2: #fdcb6e;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-glass: rgba(26,26,46,0.78);
  --bg-glass-border: rgba(162,155,254,0.15);
  --text: #e8e8f0;
  --text-secondary: #b8b8d0;
  --text-muted: #7878a0;
  --border: #2a2a45;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
  --gradient-hero: linear-gradient(160deg, #12122a 0%, #0f0f1a 40%, #1a1028 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

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

/* ========== 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(--bg-glass-border);
  transition: background var(--transition), border var(--transition), box-shadow var(--transition);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo svg {
  width: 40px;
  height: 40px;
  transition: transform var(--transition);
}

.logo:hover svg {
  transform: rotate(-10deg) scale(1.08);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

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

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

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

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

#main-nav a:hover {
  color: var(--primary);
  background: rgba(108,92,231,0.08);
}

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

#mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  align-items: center;
  justify-content: center;
}

#mobile-menu-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#theme-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(30deg);
}

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

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

#site-search input:focus {
  border-color: var(--primary);
  width: 200px;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}

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

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

#site-search button:hover {
  background: var(--primary-dark);
}

/* ========== HERO ========== */
#hero {
  position: relative;
  background: var(--gradient-hero);
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108,92,231,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(253,121,168,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease both;
}

#hero > p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s 0.15s ease both;
}

/* ========== BANNER CAROUSEL ========== */
.banner-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-hover);
  z-index: 1;
  animation: fadeInUp 0.8s 0.25s ease both;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  opacity: 0;
  animation: bannerFade 9s infinite;
  padding: 20px;
  text-align: center;
}

.banner-slide:nth-child(1) {
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  animation-delay: 0s;
}

.banner-slide:nth-child(2) {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  animation-delay: 3s;
}

.banner-slide:nth-child(3) {
  background: linear-gradient(135deg, #00cec9, #0984e3);
  animation-delay: 6s;
}

@keyframes bannerFade {
  0%, 100% { opacity: 0; transform: scale(1.05); }
  4% { opacity: 1; transform: scale(1); }
  29% { opacity: 1; transform: scale(1); }
  33% { opacity: 0; transform: scale(0.98); }
}

/* ========== HERO STATS ========== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s 0.35s ease both;
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

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

/* ========== BREADCRUMB ========== */
nav[aria-label="面包屑导航"] {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}

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

nav[aria-label="面包屑导航"] li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.5;
}

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

/* ========== SECTIONS ========== */
main section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}

main section + section {
  border-top: 1px solid var(--border);
}

main section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 14px;
}

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

main section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}

main section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

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

main section ul {
  margin: 12px 0;
}

main section ul li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color var(--transition), transform var(--transition);
}

main section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-banner);
  transition: transform var(--transition);
}

main section ul li:hover {
  color: var(--primary);
  transform: translateX(4px);
}

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

main section ol {
  counter-reset: item;
  margin: 12px 0;
}

main section ol li {
  counter-increment: item;
  position: relative;
  padding: 10px 0 10px 44px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color var(--transition);
}

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

main section ol li:hover {
  color: var(--primary);
}

/* ========== ANIMATION ON SCROLL ========== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ========== PRODUCTS / ABOUT CARDS ========== */
#about, #products, #solutions, #cases, #news, #howto, #faq, #contact, #sitemap, #links, #legal, #author-info {
  position: relative;
}

#products h3,
#about h3,
#solutions h3,
#cases h3 {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 18px 14px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}

#products h3:hover,
#about h3:hover,
#solutions h3:hover,
#cases h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--secondary);
}

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

#news article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-banner);
  opacity: 0;
  transition: opacity var(--transition);
}

#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

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

#news article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  background: rgba(108,92,231,0.08);
  padding: 2px 10px;
  border-radius: 20px;
}

#news article p {
  margin-bottom: 12px;
}

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

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

#news article a:hover {
  gap: 8px;
  color: var(--secondary);
}

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

/* ========== BLOCKQUOTE ========== */
blockquote {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  position: relative;
  transition: all var(--transition);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3rem;
  color: var(--secondary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  margin: 0;
  position: relative;
  z-index: 1;
}

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

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

#faq details[open] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.08), var(--shadow);
}

#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;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition), color var(--transition);
  user-select: none;
}

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

#faq summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(108,92,231,0.08);
}

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

#faq summary:hover {
  background: rgba(108,92,231,0.04);
  color: var(--primary);
}

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

/* ========== CONTACT ========== */
#contact p {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#contact p::before {
  content: '•';
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ========== SITEMAP & LINKS ========== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ========== AUTHOR INFO ========== */
#author-info {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

#author-info p {
  font-size: 0.9rem;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  transition: background var(--transition), border var(--transition);
}

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

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

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

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

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

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

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-banner);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 48px rgba(108,92,231,0.35);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #main-nav a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

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

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

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  #main-nav {
    position: fixed;
    top: 60px;
    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);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    z-index: 999;
  }

  #main-nav.open {
    max-height: 500px;
    padding: 16px 0;
  }

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

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

  #mobile-menu-btn {
    display: flex;
  }

  #site-search {
    order: 10;
    width: 100%;
    margin-bottom: 8px;
  }

  #site-search input {
    flex: 1;
    width: auto;
  }

  #site-search input:focus {
    width: auto;
  }

  #hero {
    padding: 50px 16px 40px;
  }

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

  #hero > p {
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  .banner-carousel {
    height: 140px;
    border-radius: var(--radius);
    margin-bottom: 32px;
  }

  .banner-slide {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 28px;
  }

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

  main section {
    padding: 40px 16px;
  }

  main section h2 {
    font-size: 1.3rem;
  }

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

  #news article {
    padding: 18px;
  }

  blockquote {
    padding: 18px 20px;
  }

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

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

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

  footer {
    padding: 32px 16px;
  }
}

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

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

  #theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  #mobile-menu-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

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

  .banner-carousel {
    height: 110px;
  }

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

  .hero-stats {
    gap: 20px;
  }

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

  .hero-stats span:last-child {
    font-size: 0.75rem;
  }
}

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

  .banner-slide {
    animation: none;
    opacity: 1;
    position: relative;
  }

  .banner-carousel {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .animate-in {
    opacity: 1;
    transform: none;
  }
}

/* ========== PRINT ========== */
@media print {
  #site-header,
  #back-to-top,
  #mobile-menu-btn,
  #theme-toggle,
  #site-search,
  .banner-carousel {
    display: none !important;
  }

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

  main section {
    padding: 20px 0;
    border: none;
  }

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