:root {
  --brand: #1a5fb4;
  --brand-2: #3b82f6;
  --brand-3: #06b6d4;
  --accent: #f59e0b;
  --bg: #f5f7fb;
  --bg-soft: #eef2f9;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: #f8fafc;
  --text: #16202e;
  --text-2: #4a5768;
  --text-3: #7b8798;
  --border: rgba(22, 32, 46, 0.1);
  --border-strong: rgba(22, 32, 46, 0.18);
  --shadow-sm: 0 2px 8px rgba(22, 32, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 32, 46, 0.1);
  --shadow-lg: 0 20px 60px rgba(22, 32, 46, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #1a5fb4 0%, #3b82f6 48%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-soft: linear-gradient(140deg, rgba(26, 95, 180, 0.12), rgba(6, 182, 212, 0.1));
  --glass-blur: saturate(180%) blur(18px);
}

html[data-theme="dark"] {
  --brand: #5b9bf5;
  --brand-2: #60a5fa;
  --brand-3: #22d3ee;
  --accent: #fbbf24;
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --surface: rgba(20, 30, 48, 0.66);
  --surface-solid: #141e30;
  --surface-2: #101a2b;
  --text: #e8eef8;
  --text-2: #a9b6c9;
  --text-3: #7c8ba1;
  --border: rgba(232, 238, 248, 0.12);
  --border-strong: rgba(232, 238, 248, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --grad-brand: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%);
  --grad-soft: linear-gradient(140deg, rgba(91, 155, 245, 0.16), rgba(34, 211, 238, 0.12));
}

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

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

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(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(6, 182, 212, 0.1), transparent 55%),
    radial-gradient(900px 500px at 50% 120%, rgba(245, 158, 11, 0.08), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

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

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

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

h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); margin: 2.4rem 0 1rem; position: relative; padding-left: 16px; }
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-brand);
}
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 1.6rem 0 0.7rem; }
h4 { font-size: 1.02rem; margin: 1.2rem 0 0.5rem; color: var(--text-2); }

p { margin: 0 0 1rem; color: var(--text-2); }
strong { color: var(--text); font-weight: 700; }

ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; color: var(--text-2); }
li { margin-bottom: 0.45rem; }

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
blockquote p { margin: 0; color: var(--text-2); font-style: italic; }

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-3);
  background: var(--bg-soft);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

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

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(22, 32, 46, 0.05);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(26, 95, 180, 0.35);
  transition: transform 0.4s var(--ease);
}
.brand:hover svg { transform: rotate(-6deg) scale(1.06); }
.brand-name {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

#site-header nav { flex: 1 1 auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-2);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav-list a:hover {
  color: var(--brand);
  background: var(--grad-soft);
}
.nav-list a:hover::after { width: 60%; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-tools form {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header-tools form:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.header-tools input[type="search"] {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  padding: 7px 4px;
  width: 180px;
  min-width: 0;
  outline: none;
}
.header-tools input::placeholder { color: var(--text-3); }

.header-tools button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text-2);
  padding: 8px 14px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header-tools form button {
  background: var(--grad-brand);
  color: #fff;
  border: 0;
  padding: 8px 16px;
}
.header-tools button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--brand);
}
.header-tools form button:hover { color: #fff; filter: brightness(1.08); }
#menu-toggle { display: none; }

/* ============ MAIN LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

section {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ============ HERO ============ */
#hero {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    var(--grad-soft),
    linear-gradient(180deg, var(--surface-solid), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}
#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite alternate-reverse;
}
#hero > * { position: relative; z-index: 1; }

#hero h1 {
  background: linear-gradient(120deg, var(--text) 20%, var(--brand) 60%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--text-2);
  max-width: 780px;
}

/* Banner carousel */
.banner-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.slide {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  isolation: isolate;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(300px 200px at 0% 100%, rgba(0, 0, 0, 0.18), transparent 60%);
  z-index: -1;
}
.slide:nth-child(2) { background: linear-gradient(135deg, #7c3aed, #2563eb 60%, #06b6d4); }
.slide:nth-child(3) { background: linear-gradient(135deg, #f59e0b, #ef4444 70%, #db2777); }
.slide h2 {
  color: #fff;
  margin: 0 0 8px;
  padding-left: 0;
  font-size: 1.15rem;
}
.slide h2::before { display: none; }
.slide p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.92rem;
}
.slide:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.hero-stats li {
  margin: 0;
  padding: 16px 14px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-2);
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hero-stats li:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 32px;
  padding: 10px 16px;
  font-size: 0.85rem;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.breadcrumb li { margin: 0; color: var(--text-3); }
.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-3);
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--brand); font-weight: 600; }

/* ============ GENERIC SECTIONS ============ */
#intro,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#howto,
#faq,
#knowledge,
#tips,
#team,
#contact {
  padding: clamp(20px, 3.5vw, 36px);
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
#intro:hover,
#products:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#faq:hover,
#knowledge:hover,
#tips:hover,
#team:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
}

/* ============ CARDS: articles / news ============ */
#articles article,
#news article {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}
#articles article::before,
#news article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
#articles article:hover,
#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
#articles article:hover::before,
#news article:hover::before { transform: scaleY(1); }

#articles article h3,
#news article h3 {
  margin-top: 0;
  margin-bottom: 6px;
}
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
#articles article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
#articles article a:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
  background: var(--grad-brand);
  color: #fff;
}
#articles article a:hover::after { transform: translateX(4px); }

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  padding: 4px 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
#faq details[open] {
  border-color: var(--brand-2);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--surface-solid), var(--surface-2));
}
#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 30px 14px 0;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease);
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--grad-soft);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-brand);
  color: #fff;
}
#faq summary:hover { color: var(--brand); }
#faq details p {
  margin: 0 0 16px;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  animation: fadeSlide 0.4s var(--ease);
}

/* ============ CONTACT / ADDRESS ============ */
address {
  font-style: normal;
  padding: 20px 22px;
  margin-bottom: 20px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
address p { margin-bottom: 8px; }
address p:last-child { margin-bottom: 0; }

/* ============ FOOTER ============ */
footer {
  margin-top: 24px;
  padding: clamp(28px, 5vw, 56px) 20px 32px;
  background: linear-gradient(180deg, transparent, rgba(26, 95, 180, 0.06));
  border-top: 1px solid var(--border);
}
footer > nav {
  max-width: var(--maxw);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
footer section h2 {
  font-size: 1rem;
  margin: 0 0 12px;
  padding-left: 12px;
}
footer section h2::before { width: 4px; }
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer li { margin-bottom: 8px; }
footer a {
  color: var(--text-2);
  font-size: 0.9rem;
  position: relative;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
footer a:hover {
  color: var(--brand);
  padding-left: 4px;
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
footer > section h2 { margin-top: 0; }
footer > section p { font-size: 0.88rem; color: var(--text-3); }

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.08);
}

/* ============ ANIMATIONS ============ */
@keyframes floatGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-30px, 24px, 0) scale(1.08); }
}

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

/* Scroll reveal (JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CSS-only fallback reveal for sections */
@media (prefers-reduced-motion: no-preference) {
  #intro,
  #products,
  #solutions,
  #applications,
  #cases,
  #news,
  #articles,
  #howto,
  #faq,
  #knowledge,
  #tips,
  #team,
  #contact {
    animation: fadeSlide 0.6s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .header-tools input[type="search"] { width: 140px; }
  .nav-list a { padding: 8px 9px; font-size: 0.86rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .header-inner {
    gap: 12px;
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  #site-header nav {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }
  #site-header nav.is-open {
    max-height: 520px;
    overflow-y: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
  }
  .nav-list a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .nav-list a::after { display: none; }

  .header-tools {
    margin-left: auto;
  }
  #menu-toggle { display: inline-block; }
  .header-tools form { display: none; }

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

  .banner-carousel { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  #hero { padding: 26px 20px; border-radius: var(--radius-lg); }

  footer > nav { gap: 22px; }
  #back-to-top { right: 14px; bottom: 14px; padding: 10px 16px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  h2 { margin-top: 2rem; }
  .brand-name { font-size: 1.02rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li { padding: 12px 10px; font-size: 0.8rem; }
  #articles article,
  #news article { padding: 16px; }
  #faq details { padding: 2px 14px; }
  #faq summary { font-size: 0.95rem; }
  footer > section { padding: 18px; }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  #back-to-top,
  .banner-carousel,
  .header-tools { display: none !important; }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  a { color: #000; text-decoration: underline; }
  section { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
  #faq details { border: 1px solid #ccc; }
  #faq details[open] summary::after { content: ""; }
}