:root {
  --bg: #0d0d16;
  --bg-soft: #15152a;
  --bg-card: rgba(28, 28, 52, 0.62);
  --bg-card-solid: #1b1b34;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #eef0f7;
  --text-soft: #b9bccd;
  --text-mute: #8b8fa3;
  --primary: #e94560;
  --primary-2: #ff7a5c;
  --accent: #4facfe;
  --accent-2: #6a5cff;
  --gold: #ffc94d;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.28);
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 42%, #0f3460 72%, #e94560 145%);
  --grad-brand: linear-gradient(135deg, #e94560 0%, #ff7a5c 55%, #ffc94d 100%);
  --grad-accent: linear-gradient(135deg, #4facfe 0%, #6a5cff 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.65), transparent);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1180px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-solid: #ffffff;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(20, 20, 50, 0.08);
    --text: #1a1a2e;
    --text-soft: #4a4d63;
    --text-mute: #767a90;
    --shadow: 0 12px 40px rgba(30, 30, 70, 0.12);
    --shadow-soft: 0 6px 24px rgba(30, 30, 70, 0.08);
    --grad-hero: linear-gradient(135deg, #ffffff 0%, #eef1fb 40%, #dfe7ff 70%, #ffe3e8 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -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", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(233, 69, 96, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(79, 172, 254, 0.16), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(106, 92, 255, 0.12), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--primary-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;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

h2 {
  font-size: clamp(1.35rem, 2.8vw, 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-brand);
  box-shadow: 0 0 18px rgba(233, 69, 96, 0.55);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--text);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

blockquote p {
  margin: 0;
  color: var(--text);
  font-style: italic;
}

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}

address {
  font-style: normal;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 22, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(255, 255, 255, 0.72);
  }
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

header > div > a[aria-label] {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

header > div > a[aria-label]:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(233, 69, 96, 0.55));
}

header nav {
  flex: 1 1 auto;
}

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

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

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

header nav a:hover {
  color: var(--text);
  background: var(--glass);
  transform: translateY(-1px);
}

header nav a:hover::after {
  width: 60%;
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

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

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

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

header form[role="search"] input[type="search"]:focus {
  width: 260px;
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.18);
}

header form[role="search"] button {
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.5);
  filter: brightness(1.08);
}

header form[role="search"] button:active {
  transform: translateY(0);
}

/* ============ BREADCRUMB ============ */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 22px 0;
}

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

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

body > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  color: var(--text-mute);
  font-size: 1rem;
}

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

body > nav[aria-label="面包屑导航"] a:hover {
  color: var(--primary);
}

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

/* ============ MAIN LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 22px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

main > section {
  position: relative;
  padding: 34px clamp(18px, 3.4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: rise 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
}

main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), transparent 38%);
  opacity: 0.8;
}

main > section:hover {
  border-color: rgba(233, 69, 96, 0.32);
  box-shadow: var(--shadow);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

@supports not (animation-timeline: view()) {
  main > section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============ HERO ============ */
#hero {
  background: var(--grad-hero);
  border: 1px solid rgba(233, 69, 96, 0.28);
  padding-top: clamp(38px, 5vw, 64px);
  padding-bottom: clamp(38px, 5vw, 64px);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.4), transparent 68%);
  filter: blur(20px);
  z-index: -1;
  animation: floaty 12s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -15%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.35), transparent 68%);
  filter: blur(24px);
  z-index: -1;
  animation: floaty 15s ease-in-out infinite reverse;
}

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

#hero h1 {
  margin-bottom: 0.7em;
  filter: drop-shadow(0 4px 24px rgba(233, 69, 96, 0.25));
}

#hero > p {
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  color: var(--text-soft);
  max-width: 78ch;
}

#hero figure {
  margin: 26px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 22px 60px rgba(233, 69, 96, 0.28);
}

#hero figure svg {
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 12px 20px;
  font-size: 0.86rem;
  color: var(--text-mute);
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============ HEADINGS SECTION DECOR ============ */
main > section > h2 {
  margin-bottom: 1.1em;
}

main > section > h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--grad-line);
}

/* ============ PRODUCTS / SOLUTIONS GRID ============ */
#products h3,
#solutions h3,
#about h3,
#cases h3,
#news h3,
#team h3,
#howto h3 {
  position: relative;
  padding-left: 14px;
  margin-top: 1.6em;
}

#products h3::before,
#solutions h3::before,
#about h3::before,
#cases h3::before,
#news h3::before,
#team h3::before,
#howto h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(79, 172, 254, 0.75);
  transition: transform 0.3s var(--ease);
}

#products h3:hover::before,
#solutions h3:hover::before,
#about h3:hover::before,
#cases h3:hover::before,
#news h3:hover::before,
#team h3:hover::before,
#howto h3:hover::before {
  transform: scale(1.5);
}

/* ============ CASES ============ */
#cases blockquote {
  position: relative;
}

#cases blockquote p::before {
  content: "“";
  font-size: 2.4rem;
  line-height: 0;
  color: var(--primary);
  opacity: 0.55;
  margin-right: 4px;
  vertical-align: -0.3em;
}

/* ============ NEWS ============ */
#news h3 {
  margin-bottom: 0.3em;
}

#news time {
  display: inline-block;
  margin-bottom: 0.6em;
  padding: 2px 12px;
  font-size: 0.78rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(79, 172, 254, 0.12);
  border: 1px solid rgba(79, 172, 254, 0.28);
}

/* ============ ARTICLES ============ */
#articles article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  transition: color 0.3s var(--ease);
}

#articles article:hover h3 {
  color: var(--primary);
}

#articles article time {
  display: block;
  margin-bottom: 0.7em;
  font-size: 0.8rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 18px;
  border-radius: 999px;
  color: var(--primary);
  border: 1px solid rgba(233, 69, 96, 0.4);
  transition: all 0.3s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 62px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 4px 14px rgba(106, 92, 255, 0.4);
}

#howto ol li:hover {
  transform: translateX(6px);
  background: rgba(233, 69, 96, 0.08);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: 0 10px 32px rgba(233, 69, 96, 0.16);
}

#faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease), background 0.3s 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;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.12);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

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

#faq summary:hover {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.06);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeDown 0.4s var(--ease) both;
}

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

/* ============ TEAM ============ */
#team > p:last-of-type {
  margin-top: 1.4em;
  padding: 14px 18px;
  font-size: 0.86rem;
  color: var(--text-mute);
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px dashed var(--glass-border);
}

/* ============ CONTACT ============ */
#contact address {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 20px;
  margin-bottom: 1.4em;
}

#contact address p {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 69, 96, 0.4);
  background: rgba(233, 69, 96, 0.07);
}

#contact address a {
  word-break: break-all;
}

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

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

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

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(106, 92, 255, 0.35);
}

/* ============ PRIVACY / DISCLAIMER / SECURITY ============ */
#privacy,
#disclaimer,
#security {
  background: var(--bg-card);
}

#privacy p,
#disclaimer p,
#security p {
  font-size: 0.94rem;
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  margin-top: 20px;
  padding: 46px 22px 36px;
  background: linear-gradient(180deg, rgba(15, 15, 30, 0.4), rgba(10, 10, 20, 0.92));
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (prefers-color-scheme: light) {
  footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(235, 238, 248, 0.95));
  }
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-line);
}

footer > div {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-mute);
  line-height: 1.8;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

footer nav li {
  margin: 0;
}

footer nav a {
  font-size: 0.85rem;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}

footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}

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

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

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

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

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

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

::selection {
  background: rgba(233, 69, 96, 0.4);
  color: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  header > div {
    gap: 14px;
  }

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

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

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

  header nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    gap: 2px;
  }

  header nav a {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 6px 11px;
  }

  header form[role="search"] {
    margin-left: auto;
  }

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

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

  main {
    padding: 18px 16px 60px;
    gap: 20px;
  }

  main > section {
    padding: 26px 20px;
    border-radius: var(--radius);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }

  header > div > a[aria-label] {
    font-size: 1.2rem;
  }

  header form[role="search"] input[type="search"] {
    width: 110px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

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

  header form[role="search"] button {
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  main > section {
    padding: 22px 16px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  #hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  #hero figure {
    margin-top: 18px;
  }

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

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

  #howto ol li::before {
    left: 12px;
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  #contact address {
    grid-template-columns: 1fr;
  }

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

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

  footer {
    padding: 34px 16px 28px;
  }
}

@media (max-width: 380px) {
  header form[role="search"] input[type="search"] {
    width: 90px;
  }

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

  header form[role="search"] button {
    padding: 8px 10px;
  }
}

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

  main > section {
    opacity: 1;
    transform: none;
  }
}

@media print {
  header,
  footer,
  body > nav[aria-label="面包屑导航"],
  #hero figure {
    display: none;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    break-inside: avoid;
  }

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