:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-mute: #7a7a94;
  --primary: #6c5ce7;
  --primary-2: #a29bfe;
  --accent: #ff6b9d;
  --accent-2: #ffa07a;
  --line: rgba(26, 26, 46, 0.1);
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --grad: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 45%, #ff6b9d 100%);
  --grad-soft: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(255, 107, 157, 0.12));
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e1a;
    --bg-alt: #16162a;
    --bg-elev: rgba(30, 30, 52, 0.72);
    --bg-glass: rgba(36, 36, 62, 0.5);
    --text: #eceaf6;
    --text-soft: #c3c0d8;
    --text-mute: #8f8ca8;
    --primary: #8f83ff;
    --primary-2: #a29bfe;
    --accent: #ff7fae;
    --accent-2: #ffb08a;
    --line: rgba(236, 234, 246, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --grad-soft: linear-gradient(135deg, rgba(143, 131, 255, 0.16), rgba(255, 127, 174, 0.16));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60vw 60vw at 10% -10%, rgba(108, 92, 231, 0.16), transparent 60%),
    radial-gradient(50vw 50vw at 100% 0%, rgba(255, 107, 157, 0.14), transparent 55%),
    radial-gradient(60vw 60vw at 50% 120%, rgba(162, 155, 254, 0.14), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad);
}

h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  color: var(--text);
}

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

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

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--primary);
  font-weight: 700;
}

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

blockquote {
  margin: 0 0 1em;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-soft);
  box-shadow: var(--shadow);
}

blockquote p {
  margin: 0;
}

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

small {
  color: var(--text-mute);
  font-size: 0.82rem;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}

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

header > div > a:first-child {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header > div > a:first-child:hover,
header > div > a:first-child:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(255, 107, 157, 0.45);
  color: #fff;
}

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

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

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--primary);
  background: var(--grad-soft);
  transform: translateY(-1px);
}

header form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

header form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form input[type="search"] {
  width: 190px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: width 0.3s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

header form input[type="search"]:focus {
  width: 240px;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
  outline: none;
}

header form button {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

header form button:hover,
header form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(108, 92, 231, 0.4);
  filter: brightness(1.05);
}

header form button:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Main layout ---------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

main > nav[aria-label="面包屑导航"] {
  margin-bottom: 20px;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-mute);
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-mute);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
  font-weight: 600;
}

main > nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

section {
  margin-bottom: 40px;
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 92, 231, 0.25);
}

/* ---------- Hero ---------- */
section[aria-labelledby="hero-title"] {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  background: var(--grad);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(108, 92, 231, 0.35);
  color: #fff;
  isolation: isolate;
}

section[aria-labelledby="hero-title"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 85% 15%, rgba(255, 255, 255, 0.35), transparent 70%),
    radial-gradient(45% 55% at 5% 95%, rgba(255, 255, 255, 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: -1;
  animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.08); }
}

section[aria-labelledby="hero-title"] h1 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

section[aria-labelledby="hero-title"] p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  max-width: 820px;
}

section[aria-labelledby="hero-title"] strong {
  color: #fff;
}

section[aria-labelledby="hero-title"] > div {
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

section[aria-labelledby="hero-title"] > div p {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

section[aria-labelledby="hero-title"] > div p:last-child {
  margin: 10px 0 0;
}

section[aria-labelledby="hero-title"] > div a {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

section[aria-labelledby="hero-title"] > div a:hover,
section[aria-labelledby="hero-title"] > div a:focus-visible {
  transform: translateY(-3px);
  color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* ---------- Brand / content sections ---------- */
#brand {
  background: var(--bg-alt);
}

#brand h3 {
  margin-top: 1.4em;
}

#brand p:last-of-type {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---------- Products ---------- */
#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

#products ul li {
  position: relative;
  margin: 0;
  padding: 18px 20px 18px 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#products ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}

#products ul li:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: var(--shadow);
}

#products ul li strong {
  display: block;
  margin-bottom: 2px;
}

/* ---------- Solutions ---------- */
#solutions h3 {
  margin-top: 1.5em;
  padding-left: 14px;
  border-left: 4px solid var(--primary-2);
}

#solutions p {
  font-size: 0.96rem;
}

/* ---------- Cases ---------- */
#cases h3 {
  margin-top: 1.6em;
}

#cases blockquote {
  position: relative;
  font-style: normal;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cases blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}

#cases blockquote::after {
  content: "”";
  position: absolute;
  right: 16px;
  bottom: -18px;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-2);
  opacity: 0.3;
  pointer-events: none;
}

/* ---------- News ---------- */
#news article {
  padding: 20px 22px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#news article:last-child {
  margin-bottom: 0;
}

#news article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 157, 0.35);
  box-shadow: var(--shadow);
}

#news article h3 {
  margin-bottom: 4px;
}

#news article p {
  margin-bottom: 0.4em;
}

/* ---------- Articles ---------- */
#articles {
  display: block;
}

#articles > article {
  padding: 20px 22px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

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

#articles > article p {
  margin-bottom: 0.5em;
  font-size: 0.94rem;
}

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

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

#articles > article a::after {
  content: "→";
  transition: transform 0.25s ease;
}

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

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

#faq details:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow);
}

#faq details[open] {
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: var(--shadow-lg);
}

#faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.25s ease, background 0.25s 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;
  line-height: 24px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  border-radius: 50%;
  background: var(--grad-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}

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

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

#faq details > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  animation: fadeSlide 0.35s ease both;
}

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

/* ---------- HowTo ---------- */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  position: relative;
  counter-increment: step;
  margin-bottom: 14px;
  padding: 16px 18px 16px 62px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

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

#howto ul li::marker {
  color: var(--accent);
}

/* ---------- Contact ---------- */
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

#contact ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.94rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#contact ul li strong {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

/* ---------- Sitemap & links ---------- */
section[aria-labelledby="sitemap-title"] ul,
section[aria-labelledby="links-title"] ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

section[aria-labelledby="sitemap-title"] li,
section[aria-labelledby="links-title"] li {
  margin: 0;
}

section[aria-labelledby="sitemap-title"] a,
section[aria-labelledby="links-title"] a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

section[aria-labelledby="sitemap-title"] a:hover,
section[aria-labelledby="links-title"] a:hover,
section[aria-labelledby="sitemap-title"] a:focus-visible,
section[aria-labelledby="links-title"] a:focus-visible {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  padding: 48px 20px 28px;
  background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.08));
  border-top: 1px solid var(--line);
}

footer > section {
  max-width: 1200px;
  margin: 0 auto 22px;
  padding: 22px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow);
}

footer h2 {
  font-size: 1.05rem;
  padding-left: 14px;
}

footer h2::before {
  width: 4px;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}

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

footer > section[aria-labelledby="footer-legal"] p:last-child {
  margin-top: 8px;
}

footer > section[aria-labelledby="footer-legal"] a {
  display: inline-block;
  margin-right: 6px;
  font-weight: 600;
}

footer > p {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* ---------- Scroll reveal animation ---------- */
@supports (animation-timeline: view()) {
  section,
  #news article,
  #articles > article,
  #faq details {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Selection & scrollbar ---------- */
::selection {
  background: rgba(108, 92, 231, 0.28);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--primary));
  background-clip: padding-box;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  header > div {
    gap: 12px;
  }

  header nav a {
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  header form input[type="search"] {
    width: 150px;
  }

  header form input[type="search"]:focus {
    width: 180px;
  }
}

@media (max-width: 860px) {
  header > div {
    padding: 10px 16px;
  }

  header nav {
    order: 3;
    flex-basis: 100%;
  }

  header nav ul {
    justify-content: flex-start;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav a {
    white-space: nowrap;
  }

  header form {
    margin-left: auto;
  }

  main {
    padding: 18px 16px 48px;
  }

  section {
    padding: 22px 18px;
    border-radius: var(--radius);
    margin-bottom: 28px;
  }

  section[aria-labelledby="hero-title"] {
    padding: 30px 20px;
    border-radius: var(--radius);
  }

  section[aria-labelledby="hero-title"] > div {
    padding: 16px;
  }
}

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

  header form {
    flex: 1 1 100%;
    order: 2;
    margin-left: 0;
  }

  header form input[type="search"],
  header form input[type="search"]:focus {
    width: 100%;
    flex: 1 1 auto;
  }

  header > div > a:first-child {
    font-size: 1rem;
    padding: 6px 12px;
  }

  #products ul,
  #contact ul {
    grid-template-columns: 1fr;
  }

  section[aria-labelledby="hero-title"] > div a {
    display: block;
    margin: 8px 0 0;
    text-align: center;
  }

  #howto ol li {
    padding: 14px 14px 14px 56px;
  }

  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 0.85rem;
  }

  footer {
    padding: 32px 14px 22px;
  }

  footer > section {
    padding: 18px 16px;
  }

  section[aria-labelledby="sitemap-title"] a,
  section[aria-labelledby="links-title"] a {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  section {
    padding: 18px 14px;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.92rem;
  }

  #faq details > p {
    padding: 0 16px 16px;
  }
}

/* ---------- Print ---------- */
@media print {
  header,
  footer,
  section[aria-labelledby="sitemap-title"],
  section[aria-labelledby="links-title"] {
    display: none;
  }

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

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