:root {
  --primary: #6b4ce6;
  --primary-dark: #4b2fa8;
  --primary-light: #9b7ff0;
  --accent: #ffd166;
  --accent-soft: #ffe9a8;
  --bg: #f7f5ff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #241b45;
  --text-soft: #5a5178;
  --text-muted: #847ba3;
  --border: rgba(107, 76, 230, 0.14);
  --border-strong: rgba(107, 76, 230, 0.28);
  --shadow-sm: 0 2px 8px rgba(75, 47, 168, 0.08);
  --shadow-md: 0 8px 28px rgba(75, 47, 168, 0.12);
  --shadow-lg: 0 18px 48px rgba(75, 47, 168, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-hero: linear-gradient(135deg, #6b4ce6 0%, #8b5cf6 45%, #b06ab3 100%);
  --gradient-accent: linear-gradient(135deg, #ffd166 0%, #ff9a76 100%);
  --gradient-soft: linear-gradient(135deg, rgba(107, 76, 230, 0.08) 0%, rgba(176, 106, 179, 0.08) 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

body.dark {
  --bg: #12101f;
  --bg-elevated: #1b1830;
  --bg-glass: rgba(27, 24, 48, 0.72);
  --bg-glass-strong: rgba(27, 24, 48, 0.9);
  --text: #ece9ff;
  --text-soft: #b8b0d8;
  --text-muted: #8a82ab;
  --border: rgba(155, 127, 240, 0.18);
  --border-strong: rgba(155, 127, 240, 0.34);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --gradient-soft: linear-gradient(135deg, rgba(107, 76, 230, 0.16) 0%, rgba(176, 106, 179, 0.16) 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(107, 76, 230, 0.1), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 209, 102, 0.12), transparent 38%),
    radial-gradient(circle at 50% 92%, rgba(176, 106, 179, 0.1), transparent 46%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--primary-dark);
}

body.dark a:hover,
body.dark a:focus-visible {
  color: var(--primary-light);
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  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: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#site-header.sticky {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
  background: var(--bg-glass-strong);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
}

.logo svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

.logo-text {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#main-nav {
  flex: 1;
  min-width: 0;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--primary);
  background: var(--gradient-soft);
}

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

#site-search {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 76, 230, 0.15);
}

#search-input {
  width: 150px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  padding: 6px 0;
  outline: none;
}

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

#site-search button {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: filter var(--transition), transform var(--transition);
}

#site-search button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#theme-toggle,
#menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--border-strong);
}

#menu-toggle {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.breadcrumb a {
  color: var(--text-soft);
}

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

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

/* ============ Main layout ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

section {
  margin: 56px 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

section > h2 {
  position: relative;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 24px;
  padding-left: 18px;
  letter-spacing: 0.02em;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  border-radius: 6px;
  background: var(--gradient-hero);
}

h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 28px 0 10px;
  color: var(--text);
}

p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

time {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ============ Hero ============ */
.hero {
  margin: 28px 0 56px;
  opacity: 1;
  transform: none;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
  isolation: isolate;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 10, 50, 0.35));
  pointer-events: none;
}

.slide {
  display: none;
  animation: fadeSlide 0.6s ease;
}

.slide.active {
  display: block;
}

.slide svg {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 260;
  object-fit: cover;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background var(--transition), transform var(--transition);
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) scale(1.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.stat {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ Cards / content blocks ============ */
#about,
#brand,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#knowledge,
#faq,
#contact,
#sitemap,
#links,
#legal {
  padding: 32px clamp(20px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

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

#about {
  background: var(--gradient-soft), var(--bg-glass);
}

#about h1 {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ Lists ============ */
#news ul,
#sitemap ul,
#links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

#news li,
#sitemap li,
#links li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

#news li::before,
#sitemap li::before,
#links li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--gradient-accent);
}

#news li:hover,
#sitemap li:hover,
#links li:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#news time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(107, 76, 230, 0.1);
  color: var(--primary);
  font-weight: 600;
}

body.dark #news time {
  color: var(--primary-light);
  background: rgba(155, 127, 240, 0.16);
}

#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

#links li::before {
  background: var(--gradient-hero);
}

/* ============ Articles ============ */
#articles {
  display: grid;
  gap: 0;
}

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

#articles article {
  padding: 22px 24px;
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

#articles article h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

#articles article h3 + p {
  margin: 0 0 10px;
}

#articles article p:last-child {
  margin: 0;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition);
}

#articles article a:hover {
  transform: translateX(4px);
  background: var(--gradient-hero);
  color: #fff;
  border-color: transparent;
}

/* ============ Blockquote ============ */
blockquote {
  margin: 16px 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border-left: 4px solid var(--primary);
  color: var(--text-soft);
  font-style: italic;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

blockquote p {
  margin: 0;
}

/* ============ HowTo ordered list ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-sm);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
}

/* ============ FAQ ============ */
#faq dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

#faq dt {
  position: relative;
  padding: 14px 46px 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

#faq dt::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
}

#faq dt:hover {
  border-color: var(--border-strong);
  background: var(--gradient-soft);
}

#faq dd {
  margin: 0;
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

#faq dd.open {
  max-height: 600px;
  opacity: 1;
  padding: 14px 18px 18px;
  background: var(--gradient-soft);
}

#faq dt:has(+ dd.open)::after {
  transform: translateY(-50%) rotate(45deg);
}

/* ============ Contact ============ */
#contact p {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.94rem;
}

#contact p:last-of-type {
  border-bottom: none;
}

#contact h3 {
  margin-top: 24px;
}

/* ============ Legal ============ */
#legal h2 {
  font-size: 1.25rem;
  margin-top: 28px;
}

#legal h2:first-child {
  margin-top: 0;
}

/* ============ Footer ============ */
footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--border);
}

footer p {
  margin: 6px 0;
  color: var(--text-muted);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #fff;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), box-shadow var(--transition);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#back-to-top:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.05);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(107, 76, 230, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 76, 230, 0.55);
  background-clip: padding-box;
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }

  #search-input {
    width: 110px;
  }

  #main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }

  #menu-toggle {
    display: grid;
  }

  #main-nav {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #main-nav.open {
    max-height: 480px;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
  }

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

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

  #search-input {
    width: 100%;
  }

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

  section {
    margin: 40px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

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

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

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

  #site-search {
    max-width: none;
    padding-left: 12px;
  }

  #site-search button {
    padding: 6px 10px;
  }

  .breadcrumb,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb {
    margin-top: 14px;
  }

  main {
    padding-bottom: 56px;
  }

  .hero {
    margin: 18px 0 40px;
  }

  .hero-slider {
    border-radius: var(--radius-lg);
  }

  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 16px;
  }

  .stat {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

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

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

  section > h2 {
    padding-left: 14px;
    margin-bottom: 18px;
  }

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

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

  #news li,
  #sitemap li,
  #links li {
    padding: 10px 12px 10px 34px;
    font-size: 0.88rem;
  }

  #news time {
    display: block;
    width: fit-content;
    margin-bottom: 4px;
  }

  #howto ol li {
    padding: 12px 14px 12px 50px;
  }

  #faq dt {
    padding: 12px 40px 12px 14px;
    font-size: 0.92rem;
  }

  #faq dd.open {
    padding: 12px 14px 14px;
  }

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

  footer {
    padding: 24px 16px 40px;
  }
}

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

  #site-search {
    display: none;
  }
}

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

@media print {
  #site-header,
  #back-to-top,
  .hero-slider,
  .hero-stats,
  #site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }

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

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