:root {
  --bg: #f4f5fa;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --text: #1a1a2e;
  --text-soft: #4a4a5e;
  --text-mute: #7a7a90;
  --brand: #e94560;
  --brand-2: #f5a623;
  --accent: #4ecdc4;
  --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-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 45%, #6b2440 100%);
  --grad-brand: linear-gradient(135deg, #e94560 0%, #f5a623 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(245, 166, 35, 0.12));
  --maxw: 1180px;
  --header-h: 68px;
  --transition: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #10101c;
  --bg-soft: #171726;
  --bg-elev: rgba(30, 30, 48, 0.66);
  --text: #eef0f8;
  --text-soft: #c2c6d8;
  --text-mute: #8a8fa8;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #0b0b16 0%, #23132f 45%, #4a1730 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.18), rgba(245, 166, 35, 0.14));
}

*,
*::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: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(233, 69, 96, 0.08), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(245, 166, 35, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(78, 205, 196, 0.07), transparent 45%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

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

h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.08rem, 1.9vw, 1.3rem); }

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.4em; }

strong { color: var(--text); }

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

blockquote p { margin: 0 0 0.5em; color: var(--text); }
blockquote p:last-child { margin-bottom: 0; }

time {
  font-size: 0.85em;
  color: var(--text-mute);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition), background var(--transition);
}

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

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

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

.brand-logo svg {
  border-radius: 12px;
  transition: transform var(--transition);
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

#main-nav li { margin: 0; }

#main-nav a {
  display: inline-block;
  padding: 6px 11px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

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

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

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.16);
}

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

.site-search input::placeholder { color: var(--text-mute); }

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform var(--transition), filter var(--transition);
}

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

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  box-shadow: var(--shadow);
}

#menu-toggle { display: none; }

/* ============ Hero ============ */
#hero {
  position: relative;
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
  min-height: 300px;
  isolation: isolate;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 0.9s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.slider-dots .dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--brand-2);
}

.hero-text {
  background: var(--bg-elev);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-text::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: var(--grad-brand);
  filter: blur(60px);
  opacity: 0.35;
  border-radius: 50%;
  pointer-events: none;
}

#hero-title {
  position: relative;
  background: linear-gradient(120deg, var(--text) 20%, var(--brand) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-soft);
}

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

.stat {
  flex: 1 1 90px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

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

.stat .label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.cta-btn {
  align-self: flex-start;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.cta-btn:hover,
.cta-btn:focus-visible {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(233, 69, 96, 0.45);
  filter: brightness(1.05);
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 20px;
}

#breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-mute);
}

#breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; }

#breadcrumb li + li::before {
  content: "/";
  color: var(--text-mute);
  opacity: 0.6;
}

#breadcrumb a { color: var(--text-soft); }
#breadcrumb a:hover { color: var(--brand); }

/* ============ Sections ============ */
main > section:not(#hero):not(#breadcrumb) {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: clamp(22px, 3vw, 40px);
  background: var(--bg-elev);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

main > section:not(#hero):not(#breadcrumb):hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, 0.22);
}

main > section > h2 {
  position: relative;
  padding-left: 16px;
  margin-bottom: 1em;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 999px;
  background: var(--grad-brand);
}

main > section h3 {
  margin-top: 1.4em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

main > section h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.16);
}

/* ============ News list ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.news-list li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.news-list li:hover {
  transform: translateX(4px);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow);
}

.news-list time {
  display: inline-block;
  margin-right: 8px;
  font-weight: 600;
  color: var(--brand);
}

/* ============ Articles ============ */
#articles > article {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

#articles > article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

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

#articles > article > * { position: relative; z-index: 1; }

#articles > article h3 {
  margin-top: 0;
  margin-bottom: 0.3em;
}

#articles > article h3::before {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.14);
}

#articles > article > p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 0.5em;
}

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

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

#articles > article a:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(233, 69, 96, 0.32);
}

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

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

#howto ol li {
  counter-increment: howto;
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 56px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: var(--shadow);
}

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

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

#faq summary {
  position: relative;
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  transition: background var(--transition), color var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--brand);
  background: var(--grad-soft);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

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

#faq summary:hover { background: var(--grad-soft); }

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

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

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--line);
}

#contact address p { margin: 0 0 0.5em; }
#contact address p:last-child { margin-bottom: 0; }

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 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;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(233, 69, 96, 0.3);
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 40px;
  padding: 40px 20px 60px;
  background: var(--grad-hero);
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 200px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-inner p:first-child {
  font-weight: 600;
  color: #fff;
}

.footer-inner a {
  color: var(--brand-2);
  margin-right: 8px;
}

.footer-inner a:hover { color: #fff; }

#copyright,
#privacy,
#disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), filter var(--transition);
}

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

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

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 260px;
  }

  #main-nav ul {
    gap: 2px;
  }

  #main-nav a {
    padding: 6px 9px;
    font-size: 0.85rem;
  }

  .site-search input { width: 120px; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }

  #menu-toggle { display: inline-flex; }

  #main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elev);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

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

  #main-nav ul {
    flex-direction: column;
    padding: 12px 16px 18px;
    gap: 2px;
  }

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

  .site-search {
    display: none;
  }

  #hero {
    margin-top: 18px;
    padding: 0 16px;
    gap: 18px;
  }

  #breadcrumb { padding: 0 16px; }

  main > section:not(#hero):not(#breadcrumb) {
    margin: 18px 16px 0;
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  .hero-text { padding: 22px 18px; }

  .hero-stats { gap: 10px; }

  .stat { padding: 10px 8px; }

  .stat .num { font-size: 1.25rem; }

  .cta-btn {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }
}

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

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

  .brand-name { font-size: 1rem; }

  .hero-slider { min-height: 200px; }

  .slider-dots { bottom: 10px; }

  #articles > article { padding: 16px; }

  #faq summary {
    padding: 14px 44px 14px 14px;
    font-size: 0.93rem;
  }

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

  #howto ol li { padding-left: 50px; }

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

  #site-footer { padding: 32px 16px 50px; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}