:root {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-soft: #eef1f8;
  --text: #1a1a2e;
  --text-soft: #4a4e69;
  --text-mute: #7a7f9a;
  --brand: #e94560;
  --brand-2: #7b2ff7;
  --brand-3: #0f3460;
  --accent: #00d2ff;
  --line: rgba(26, 26, 46, 0.1);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

[data-theme="dark"] {
  --bg: #0b0d17;
  --bg-elev: #141726;
  --bg-soft: #1a1e30;
  --text: #eef1f8;
  --text-soft: #b9bfd6;
  --text-mute: #858cab;
  --line: rgba(238, 241, 248, 0.12);
  --glass: rgba(20, 23, 38, 0.55);
  --glass-strong: rgba(20, 23, 38, 0.85);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(123, 47, 247, 0.12), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(233, 69, 96, 0.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--brand-2);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 750;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

h4 {
  font-size: 1.05rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

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

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

time {
  color: var(--text-mute);
  font-size: 0.88rem;
}

.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(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

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

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

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

.brand svg {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  font-size: 1.12rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

nav[aria-label="主导航"] {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

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

.nav-list a:hover {
  color: var(--brand);
  background: rgba(233, 69, 96, 0.1);
  transform: translateY(-1px);
}

form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

form[role="search"]:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.15);
}

form[role="search"] input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  padding: 7px 0;
  width: 150px;
  min-width: 0;
  font-family: inherit;
}

form[role="search"] input::placeholder {
  color: var(--text-mute);
}

form[role="search"] input:focus {
  outline: none;
}

form[role="search"] button {
  border: 0;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

form[role="search"] button:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

/* ============ Main / Breadcrumb ============ */
main {
  display: block;
}

.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-mute);
}

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

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

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

/* ============ Sections ============ */
main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px;
}

main > section + section {
  padding-top: 12px;
}

main > section > h2,
main > section > h1 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

main > section > h2::after,
main > section > h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

main > section > article {
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

main > section > article:hover {
  box-shadow: var(--shadow-md);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ Hero ============ */
#hero {
  padding-top: 32px;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 55%, #7b2ff7 130%);
  isolation: isolate;
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 25% 30%, rgba(233, 69, 96, 0.45), transparent 45%),
    radial-gradient(circle at 78% 70%, rgba(0, 210, 255, 0.35), transparent 45%);
  animation: heroGlow 14s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

.slide {
  position: relative;
  z-index: 1;
  display: none;
  animation: slideFade 0.8s var(--ease);
}

.slide.active {
  display: block;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.slide h2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 56px 32px 26px;
  color: #fff;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  font-weight: 750;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, transparent, rgba(10, 12, 24, 0.85));
  letter-spacing: 0.02em;
}

.carousel-controls {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}

.carousel-controls button:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.1);
}

.hero-text {
  margin-top: 26px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-soft);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 26px;
}

.hero-stats .stat {
  flex: 1 1 160px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(233, 69, 96, 0.1), rgba(123, 47, 247, 0.1));
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-stats .stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hero-stats .num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.cta:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(123, 47, 247, 0.45);
  filter: brightness(1.08);
}

/* ============ Products / Solutions cards ============ */
#products article,
#solutions article {
  display: grid;
  gap: 4px;
}

#products h3,
#solutions h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(233, 69, 96, 0.12), rgba(123, 47, 247, 0.12));
  border: 1px solid var(--line);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

#products h4 {
  margin-top: 18px;
  color: var(--brand);
  font-size: 0.98rem;
}

#products ul,
#solutions ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 22px;
  padding-left: 1.2em;
}

#products li,
#solutions li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

/* ============ Cases ============ */
#cases blockquote {
  margin: 16px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(100deg, rgba(233, 69, 96, 0.08), transparent 70%);
  color: var(--text-soft);
  font-style: normal;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

#cases blockquote:hover {
  transform: translateX(6px);
  background: linear-gradient(100deg, rgba(233, 69, 96, 0.16), transparent 70%);
}

#cases blockquote p {
  margin: 0;
}

/* ============ Articles ============ */
#articles > article {
  position: relative;
  margin-bottom: 18px;
  padding: 22px 24px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#articles > article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.35);
}

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

#articles h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

#articles h3 a {
  color: var(--text);
}

#articles h3 a:hover {
  color: var(--brand);
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.1);
  transition: all 0.3s var(--ease);
}

#articles article > a:last-child::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#articles article > a:last-child:hover {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
}

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

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.5);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 650;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  transition: transform 0.35s var(--ease);
}

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

#faq summary:hover {
  color: var(--brand);
}

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-soft);
  animation: faqIn 0.4s var(--ease);
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#howto h3 {
  margin-top: 22px;
  color: var(--brand);
}

/* ============ Knowledge ============ */
#knowledge article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

#knowledge h3 {
  margin-bottom: 6px;
  padding: 14px 18px 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(123, 47, 247, 0.08), transparent);
  font-size: 1.02rem;
  color: var(--brand-2);
}

#knowledge p {
  padding: 0 18px 14px;
  margin: 0;
  font-size: 0.94rem;
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(233, 69, 96, 0.08), rgba(123, 47, 247, 0.08));
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

#contact address p {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

#contact address p:last-child {
  border-bottom: 0;
}

#contact h3 {
  margin-top: 22px;
  font-size: 1.02rem;
  color: var(--brand);
}

/* ============ Sitemap / Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  padding: 48px 20px 32px;
  background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.06));
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

footer section h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}

footer section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

footer section p {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin: 0;
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(123, 47, 247, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease);
}

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

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }
  form[role="search"] input {
    width: 120px;
  }
  .nav-list a {
    padding: 7px 9px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }
  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }
  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
  nav[aria-label="主导航"] {
    order: 10;
    flex-basis: 100%;
    display: none;
    animation: navDrop 0.35s var(--ease);
  }
  nav[aria-label="主导航"].is-open {
    display: block;
  }
  @keyframes navDrop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .nav-list {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px;
  }
  .nav-list a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
  }
  form[role="search"] {
    order: 11;
    flex-basis: 100%;
    margin-top: 4px;
  }
  form[role="search"] input {
    width: 100%;
    flex: 1;
  }
  #theme-toggle {
    order: 9;
  }
  main > section {
    padding: 36px 16px;
  }
  main > section > article {
    padding: 20px;
  }
  .hero-text {
    padding: 22px;
  }
  .slide h2 {
    padding: 44px 20px 20px;
  }
  #knowledge article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .breadcrumb {
    padding: 14px 16px 0;
    font-size: 0.8rem;
  }
  #hero {
    padding-top: 20px;
  }
  .hero-stats {
    gap: 10px;
  }
  .hero-stats .stat {
    flex: 1 1 calc(50% - 10px);
    padding: 12px 14px;
    font-size: 0.8rem;
  }
  .hero-stats .num {
    font-size: 1.5rem;
  }
  .cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
  }
  .carousel-controls {
    right: 12px;
    top: 12px;
  }
  .carousel-controls button {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
  #products ul,
  #solutions ul {
    grid-template-columns: 1fr;
  }
  #faq summary {
    padding: 15px 46px 15px 16px;
    font-size: 0.94rem;
  }
  #faq details p {
    padding: 0 16px 16px;
    font-size: 0.92rem;
  }
  #howto ol li {
    padding: 12px 14px 12px 50px;
  }
  footer {
    padding: 36px 16px 90px;
    gap: 20px;
  }
  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 15px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 1rem;
  }
  .hero-stats .stat {
    flex-basis: 100%;
  }
}

/* ============ Dark mode tweaks ============ */
[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(123, 47, 247, 0.22), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(233, 69, 96, 0.18), transparent 55%),
    var(--bg);
}

[data-theme="dark"] .hero-carousel {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] #articles > article,
[data-theme="dark"] main > section > article,
[data-theme="dark"] #faq details,
[data-theme="dark"] .hero-text {
  background: var(--glass-strong);
}

[data-theme="dark"] #sitemap a,
[data-theme="dark"] #links a {
  background: var(--bg-elev);
}

[data-theme="dark"] footer {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}

/* Print */
@media print {
  #site-header,
  #back-to-top,
  .carousel-controls,
  form[role="search"],
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section > article {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}