:root {
  --banana: #e8622c;
  --banana-deep: #c94a1c;
  --banana-light: #ff8f5e;
  --banana-soft: #fdf1e7;
  --accent: #ffe08a;
  --accent-2: #ffd166;
  --ink: #1f1a17;
  --ink-soft: #4a413c;
  --ink-muted: #7a6f68;
  --bg: #fffaf5;
  --bg-alt: #fdf1e7;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --border: rgba(232, 98, 44, 0.16);
  --border-strong: rgba(232, 98, 44, 0.32);
  --shadow-sm: 0 2px 8px rgba(120, 60, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(120, 60, 20, 0.10);
  --shadow-lg: 0 24px 60px rgba(120, 60, 20, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --grad-hero: linear-gradient(135deg, #fff4ea 0%, #ffe6d3 40%, #ffd9b8 100%);
  --grad-brand: linear-gradient(135deg, #e8622c 0%, #ff8f5e 55%, #ffb37a 100%);
  --grad-accent: linear-gradient(135deg, #ffe08a 0%, #ffd166 100%);
  --grad-dark: linear-gradient(135deg, #2a211c 0%, #3a2c24 60%, #4a3428 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --maxw: 1180px;
}

html[data-theme="dark"] {
  --ink: #f5efe9;
  --ink-soft: #d9cec6;
  --ink-muted: #a89a90;
  --bg: #14100d;
  --bg-alt: #1c1613;
  --card: #221b17;
  --card-glass: rgba(34, 27, 23, 0.72);
  --border: rgba(255, 143, 94, 0.18);
  --border-strong: rgba(255, 143, 94, 0.36);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #1c1613 0%, #2a1d15 45%, #3a2418 100%);
  --banana-soft: #2a1e17;
  --accent: #ffd166;
}

*,
*::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", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(232, 98, 44, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(255, 209, 102, 0.10), transparent 46%);
  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(--banana);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--banana-deep);
}

html[data-theme="dark"] a:hover {
  color: var(--banana-light);
}

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.05rem; }

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

ul, ol {
  color: var(--ink-soft);
}

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

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

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

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

.brand svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(232, 98, 44, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

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

#main-nav a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover {
  color: var(--banana);
  background: var(--banana-soft);
  transform: translateY(-1px);
}

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

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

#site-search {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#site-search:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(232, 98, 44, 0.12);
}

#search-input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  padding: 6px 12px;
  width: 180px;
  font-family: inherit;
}

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

#site-search button {
  border: none;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 98, 44, 0.4);
  filter: brightness(1.05);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--banana);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
}

/* ===================== Layout ===================== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > section {
  margin: 48px 0;
}

main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 20px;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(232, 98, 44, 0.4);
}

/* ===================== Breadcrumb ===================== */
.breadcrumb {
  margin: 22px 0 0;
}

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

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

.breadcrumb a {
  font-weight: 600;
}

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

/* ===================== Hero ===================== */
.hero {
  position: relative;
  margin-top: 24px !important;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 98, 44, 0.35), transparent 70%);
  z-index: -1;
  animation: floatBlob 12s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.45), transparent 70%);
  z-index: -1;
  animation: floatBlob 16s ease-in-out infinite reverse;
}

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

#hero-title {
  margin: 0 0 18px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html[data-theme="dark"] #hero-title {
  background: linear-gradient(135deg, #ffb37a 0%, #ffe08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 780px;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* Carousel */
.hero-carousel {
  position: relative;
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-carousel .slide {
  display: none;
  padding: 18px;
  animation: fadeSlide 0.6s var(--ease);
}

.hero-carousel .slide.active {
  display: block;
}

.hero-carousel .slide svg {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

.hero-carousel .slide p {
  margin: 14px 4px 2px;
  font-weight: 600;
  color: var(--ink-soft);
}

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

.carousel-controls {
  display: flex;
  gap: 8px;
  padding: 0 18px 18px;
}

.carousel-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--ink-soft);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.carousel-controls button:hover,
.carousel-controls button.active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 98, 44, 0.4);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.hero-stats li {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

/* ===================== Cards / Sections ===================== */
#brand,
#products,
#solutions,
#scenarios,
#cases,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links {
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

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

#brand h3,
#products h3,
#solutions h3,
#scenarios h3,
#cases h3,
#news h3,
#knowledge h3,
#howto h3,
#contact h3 {
  position: relative;
  margin: 26px 0 10px;
  padding-left: 14px;
  color: var(--ink);
}

#brand h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#scenarios h3:first-of-type,
#cases h3:first-of-type,
#news h3:first-of-type,
#knowledge h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 8px;
}

#brand h3::before,
#products h3::before,
#solutions h3::before,
#scenarios h3::before,
#cases h3::before,
#news h3::before,
#knowledge h3::before,
#howto h3::before,
#contact h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-accent);
}

/* Lists */
#solutions ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

#solutions ul li,
#sitemap ul li,
#links ul li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

#solutions ul li::before,
#sitemap ul li::before,
#links ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--grad-brand);
  transition: transform 0.3s var(--ease);
}

#solutions ul li:hover,
#sitemap ul li:hover,
#links ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  background: var(--card);
}

#solutions ul li:hover::before,
#sitemap ul li:hover::before,
#links ul li:hover::before {
  transform: translateY(-50%) rotate(135deg);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0 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-alt);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(232, 98, 44, 0.4);
}

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

/* ===================== Cases / Blockquote ===================== */
blockquote {
  margin: 20px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border-left: 5px solid var(--banana);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0 0 10px;
  font-style: italic;
  color: var(--ink-soft);
}

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

/* ===================== News ===================== */
#news h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

#news h3 + p {
  font-size: 0.82rem;
  color: var(--banana);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ===================== Articles ===================== */
#articles article {
  padding: 20px 22px;
  margin: 16px 0;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

#articles article h3 {
  margin: 0 0 6px;
  color: var(--ink);
}

#articles article > p:nth-of-type(1) {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 98, 44, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

#articles article a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 98, 44, 0.42);
  color: #fff;
}

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

#articles section[id^="article-"] {
  margin: 20px 0;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px dashed var(--border-strong);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

#articles section[id^="article-"] h4 {
  margin: 0 0 10px;
  color: var(--banana);
}

/* ===================== FAQ ===================== */
#faq details {
  margin: 12px 0;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

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

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

#faq summary:hover {
  color: var(--banana);
  background: var(--card);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  animation: fadeSlide 0.4s var(--ease);
}

/* ===================== Contact ===================== */
#contact p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

#contact p:first-of-type {
  margin-top: 4px;
}

#contact h3 + p {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-weight: 600;
}

/* ===================== Footer ===================== */
footer {
  margin-top: 40px;
  padding: 40px 20px 60px;
  background: var(--grad-dark);
  color: #f5efe9;
  border-top: 3px solid var(--banana);
}

footer section {
  max-width: var(--maxw);
  margin: 0 auto;
}

footer h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

footer h3 {
  color: var(--accent);
  margin: 20px 0 8px;
  font-size: 1rem;
}

footer p {
  color: rgba(245, 239, 233, 0.78);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

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

footer p:last-child {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(245, 239, 233, 0.6);
}

/* ===================== Back to top ===================== */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 900;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(232, 98, 44, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px rgba(232, 98, 44, 0.55);
}

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

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

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

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

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

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

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

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  #search-input { width: 130px; }
  #main-nav a { font-size: 0.84rem; padding: 6px 8px; }
}

@media (max-width: 920px) {
  .top-bar { gap: 12px; }
  #main-nav {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  #main-nav.open {
    max-height: 520px;
  }
  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
  }
  #main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }
  #menu-toggle { display: inline-block; }
  #site-search { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  main { padding: 0 14px 30px; }
  main > section { margin: 32px 0; }
  .top-bar { padding: 8px 14px; }
  .brand-name { font-size: 1rem; }
  .header-tools { margin-left: auto; }
  #theme-toggle,
  #menu-toggle { padding: 7px 11px; font-size: 0.76rem; }
  .hero { padding: 22px 16px; border-radius: var(--radius-lg); }
  .hero-carousel .slide { padding: 12px; }
  .hero-stats { gap: 10px; }
  .hero-stats li { padding: 12px 8px; font-size: 0.76rem; }
  #brand,
  #products,
  #solutions,
  #scenarios,
  #cases,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links { padding: 20px 16px; border-radius: var(--radius-md); }
  #solutions ul,
  #sitemap ul,
  #links ul { grid-template-columns: 1fr; }
  #articles article { padding: 16px; }
  #articles section[id^="article-"] { padding: 16px; }
  #faq summary { padding: 14px 48px 14px 16px; font-size: 0.94rem; }
  #faq details p { padding: 0 16px 16px; }
  #howto ol li { padding: 12px 14px 12px 50px; }
  #back-to-top { right: 14px; bottom: 16px; padding: 10px 16px; font-size: 0.78rem; }
  footer { padding: 30px 16px 50px; }
}

@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr; }
  .brand svg { width: 34px; height: 34px; }
}

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

/* ===================== Print ===================== */
@media print {
  #site-header,
  #back-to-top,
  .hero-carousel,
  .header-tools { display: none !important; }
  body { background: #fff; color: #000; }
  main > section { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
}