:root {
  --brand: #0f4c81;
  --brand-2: #2e8b57;
  --brand-3: #6a4c93;
  --accent: #ffb703;
  --bg: #f4f7fb;
  --bg-soft: #eaf1f8;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border: rgba(15, 76, 129, 0.14);
  --text: #1c2b3a;
  --text-soft: #4a5c6e;
  --text-mute: #7a8b9c;
  --shadow: 0 10px 30px rgba(15, 76, 129, 0.1);
  --shadow-lg: 0 20px 50px rgba(15, 76, 129, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #0f4c81 0%, #2e8b57 55%, #6a4c93 100%);
  --grad-soft: linear-gradient(160deg, rgba(15, 76, 129, 0.08), rgba(46, 139, 87, 0.08));
  --focus: 0 0 0 3px rgba(15, 76, 129, 0.35);
}

[data-theme="dark"] {
  --brand: #4f9ad6;
  --brand-2: #45c98a;
  --brand-3: #a58be0;
  --accent: #ffc94d;
  --bg: #0b1220;
  --bg-soft: #101a2b;
  --surface: #152132;
  --surface-glass: rgba(21, 33, 50, 0.68);
  --border: rgba(120, 170, 220, 0.2);
  --text: #e8eef6;
  --text-soft: #b4c4d6;
  --text-mute: #8296ab;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.6);
  --grad-brand: linear-gradient(135deg, #123a5e 0%, #14503a 55%, #33265a 100%);
  --grad-soft: linear-gradient(160deg, rgba(79, 154, 214, 0.12), rgba(69, 201, 138, 0.1));
  --focus: 0 0 0 3px rgba(79, 154, 214, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(46, 139, 87, 0.12), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(106, 76, 147, 0.12), transparent 55%),
    var(--bg);
  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-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  font-weight: 700;
  margin-top: 1.4em;
}

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

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

li {
  margin-bottom: 0.45em;
}

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

address {
  font-style: normal;
}

.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;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 76, 129, 0.08);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 12px 26px rgba(46, 139, 87, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.4px;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-mute);
}

#site-header nav {
  flex: 1 1 420px;
  min-width: 0;
}

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

#site-header nav a {
  display: inline-block;
  padding: 6px 11px;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

#site-header nav a:hover {
  color: var(--brand);
  background: var(--grad-soft);
  border-color: var(--border);
  transform: translateY(-2px);
}

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

.header-tools form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-tools input[type="search"] {
  width: clamp(140px, 18vw, 230px);
  padding: 9px 14px;
  font-size: 0.86rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

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

.header-tools input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}

.header-tools button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 16px;
  color: #fff;
  background: var(--grad-brand);
  border: none;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.header-tools button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 76, 129, 0.35);
  filter: brightness(1.06);
}

.header-tools button:active {
  transform: translateY(0);
}

#theme-toggle {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

#theme-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

/* ---------- Breadcrumb ---------- */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-mute);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: fit-content;
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-mute);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-soft);
}

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

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

/* ---------- Main layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 40px;
}

main > section {
  position: relative;
  margin: 0 0 28px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: riseIn 0.7s var(--ease) both;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
  opacity: 0.85;
}

main > section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 139, 87, 0.35);
}

main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.15s; }
main > section:nth-of-type(5) { animation-delay: 0.2s; }

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

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

/* ---------- Hero / Intro ---------- */
#intro {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(255, 183, 3, 0.18), transparent 60%),
    var(--grad-brand);
  color: #fff;
  border: none;
  box-shadow: 0 24px 60px rgba(15, 76, 129, 0.32);
  padding: clamp(28px, 5vw, 56px);
}

#intro::before {
  display: none;
}

#intro h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  max-width: 22ch;
}

#intro .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  max-width: 72ch;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.hero-gallery figure {
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
  overflow: hidden;
}

.hero-gallery figure:hover {
  transform: translateY(-6px) scale(1.015);
  background: rgba(255, 255, 255, 0.22);
}

.hero-gallery svg {
  width: 100%;
  border-radius: var(--radius-sm);
}

.hero-gallery figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  list-style: none;
  padding-left: 28px;
  margin: 10px 0 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2), var(--brand-3));
  opacity: 0.7;
}

.timeline li {
  position: relative;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand-2);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
}

.timeline li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.timeline strong {
  color: var(--brand);
}

/* ---------- Blockquotes (reviews) ---------- */
#reviews blockquote {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px 18px 52px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-2);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 2px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand-3);
  opacity: 0.55;
  font-family: Georgia, serif;
}

#reviews blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#reviews blockquote p {
  margin: 0 0 8px;
  color: var(--text);
}

#reviews blockquote footer {
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ---------- Articles & News ---------- */
#news article,
#articles article {
  position: relative;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 139, 87, 0.4);
  box-shadow: var(--shadow-lg);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

#news article h3::before,
#articles article h3::before {
  content: "◆";
  margin-right: 8px;
  font-size: 0.7em;
  color: var(--brand-2);
  vertical-align: middle;
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--text-mute);
  background: var(--bg-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

#articles article a {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-2);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

#articles article a:hover {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
  transform: translateX(3px);
}

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

#howto ol > li {
  position: relative;
  counter-increment: step;
  padding: 12px 16px 12px 54px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

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

#howto ul li {
  padding: 2px 0;
}

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

#faq details[open] {
  border-color: rgba(46, 139, 87, 0.45);
  box-shadow: var(--shadow);
}

#faq details:hover {
  border-color: rgba(15, 76, 129, 0.35);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brand-2);
  transition: transform 0.3s var(--ease);
}

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

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

#faq details p {
  margin: 0;
  padding: 0 18px 16px;
  animation: fadeIn 0.35s var(--ease);
}

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

/* ---------- Notes ---------- */
#notes ul {
  list-style: none;
  padding: 0;
}

#notes li {
  position: relative;
  padding: 12px 16px 12px 44px;
  margin-bottom: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#notes li::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(255, 183, 3, 0.4);
}

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

/* ---------- Contact ---------- */
#contact address {
  padding: 18px 20px;
  margin-bottom: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

#contact address p {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

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

#contact address a {
  font-weight: 600;
  border-bottom: 1px dashed var(--brand-2);
}

#contact address a:hover {
  border-bottom-style: solid;
}

/* ---------- Sitemap & Links ---------- */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 15px;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.3);
}

/* ---------- Author ---------- */
#author p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

#author p:first-child,
#author p:nth-child(2) {
  font-weight: 600;
  color: var(--text);
}

/* ---------- Footer ---------- */
body > footer {
  position: relative;
  margin-top: 20px;
  padding: clamp(30px, 5vw, 50px) clamp(16px, 4vw, 40px) 40px;
  background: var(--grad-brand);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

body > footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(500px 260px at 90% 100%, rgba(255, 183, 3, 0.16), transparent 60%);
  pointer-events: none;
}

body > footer > section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto 22px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

body > footer > section:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

body > footer h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

body > footer p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 0.88rem;
}

body > footer > p {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: right;
}

body > footer > p a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

body > footer > p a:hover {
  background: #fff;
  color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  #site-header {
    gap: 10px 16px;
  }

  #site-header nav {
    order: 3;
    flex: 1 1 100%;
  }

  #site-header nav ul {
    justify-content: flex-start;
    max-height: 132px;
    overflow-y: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .header-tools {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 132px;
  }

  #site-header {
    padding: 10px 14px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.1rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text small {
    font-size: 0.66rem;
  }

  .header-tools {
    flex: 1 1 100%;
    order: 4;
  }

  .header-tools form {
    flex: 1 1 auto;
  }

  .header-tools input[type="search"] {
    width: 100%;
    flex: 1 1 auto;
  }

  .header-tools button {
    padding: 9px 13px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  #site-header nav a {
    font-size: 0.8rem;
    padding: 5px 9px;
  }

  main {
    padding: 16px 14px 28px;
  }

  main > section {
    padding: 20px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  #intro {
    padding: 24px 18px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .breadcrumb {
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  #reviews blockquote {
    padding: 18px 16px 16px 44px;
  }

  #howto ol > li {
    padding: 12px 12px 12px 48px;
  }

  #news article,
  #articles article {
    padding: 15px 14px;
  }

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

  body > footer > p {
    text-align: center;
  }
}

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

  .brand-text small {
    display: none;
  }

  #faq summary {
    padding: 13px 42px 13px 14px;
    font-size: 0.92rem;
  }

  #faq details p {
    padding: 0 14px 14px;
    font-size: 0.9rem;
  }

  #sitemap a,
  #links a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ---------- Print ---------- */
@media print {
  #site-header,
  body > footer,
  #theme-toggle,
  .hero-gallery {
    display: none !important;
  }

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

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

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