:root {
  --brand: #1a7f5a;
  --brand-2: #2fae7b;
  --brand-3: #0f3d2e;
  --brand-soft: #e8f7ef;
  --accent: #7c5cff;
  --accent-2: #ff7ab6;
  --bg: #f4f8f6;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(15, 61, 46, 0.12);
  --text: #1c2b26;
  --text-soft: #4a5c55;
  --text-mute: #6b7d75;
  --shadow-sm: 0 2px 8px rgba(15, 61, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 61, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 61, 46, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-banner: linear-gradient(135deg, #0f3d2e 0%, #1a7f5a 45%, #2fae7b 75%, #7c5cff 100%);
  --grad-text: linear-gradient(120deg, #1a7f5a, #2fae7b 40%, #7c5cff);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1411;
    --bg-2: #0f1d18;
    --surface: rgba(20, 38, 32, 0.66);
    --surface-solid: #12211b;
    --border: rgba(120, 220, 180, 0.16);
    --text: #e6f3ed;
    --text-soft: #b6cdc4;
    --text-mute: #8aa79c;
    --brand-soft: rgba(47, 174, 123, 0.14);
    --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 24px 60px rgba(0, 0, 0, 0.6);
    --grad-banner: linear-gradient(135deg, #07130f 0%, #0f3d2e 40%, #1a7f5a 72%, #4b3aa8 100%);
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 174, 123, 0.16), transparent 60%),
    radial-gradient(1000px 500px at 110% 0%, rgba(124, 92, 255, 0.14), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  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);
}

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

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

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

h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: clamp(1.02rem, 1.5vw, 1.15rem); }

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

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

li { margin-bottom: 0.4em; }

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

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--brand-2);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
}

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

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

header a[href="#main"] {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}

header a[href="#main"]:focus {
  left: 0;
}

header > div > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

header svg {
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(26, 127, 90, 0.35);
  transition: transform 0.5s var(--ease);
}

header > div > div:hover svg {
  transform: rotate(-12deg) scale(1.06);
}

header strong {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

header > div > div > span {
  font-size: 0.78rem;
  color: var(--text-mute);
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

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

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

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

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

header nav a:hover,
header nav a:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
}

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

header form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

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

header input[type="search"] {
  width: 190px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.3s var(--ease);
  font-family: inherit;
}

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

header input[type="search"]:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(47, 174, 123, 0.16);
  width: 220px;
}

header button[type="submit"] {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: #fff;
  background: var(--grad-text);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  box-shadow: 0 6px 18px rgba(26, 127, 90, 0.28);
}

header button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(26, 127, 90, 0.4);
  filter: brightness(1.06);
}

header button[type="submit"]:active {
  transform: translateY(0);
}

/* ---------- Main layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

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

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

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

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

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

/* ---------- Sections ---------- */
main > section {
  position: relative;
  margin: 0 0 1.6rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.7s var(--ease) both;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 174, 123, 0.28);
}

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

/* Hero */
main > section[aria-labelledby="hero-title"] {
  padding: clamp(1.6rem, 4.5vw, 3.4rem);
  background: var(--grad-banner);
  border: none;
  color: #eafff6;
  overflow: hidden;
  isolation: isolate;
}

main > section[aria-labelledby="hero-title"]::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  border-radius: 50%;
  z-index: -1;
  animation: floaty 12s ease-in-out infinite;
}

main > section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -12%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 68%);
  border-radius: 50%;
  z-index: -1;
  animation: floaty 16s ease-in-out infinite reverse;
}

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

main > section[aria-labelledby="hero-title"] h1 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
  margin-bottom: 0.7em;
}

main > section[aria-labelledby="hero-title"] p {
  color: rgba(234, 255, 246, 0.9);
  max-width: 78ch;
}

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

main > section[aria-labelledby="hero-title"] time {
  color: rgba(234, 255, 246, 0.75);
}

main > section[aria-labelledby="hero-title"] figure {
  margin: 1.6rem 0 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.5s var(--ease);
}

main > section[aria-labelledby="hero-title"] figure:hover {
  transform: translateY(-4px) scale(1.008);
}

main > section[aria-labelledby="hero-title"] figure svg {
  width: 100%;
  height: auto;
}

main > section[aria-labelledby="hero-title"] figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.84rem;
  color: rgba(234, 255, 246, 0.82);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

/* Page anchor nav */
main > nav[aria-label="页内锚点导航"] {
  margin: 0 0 1.6rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="页内锚点导航"] h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 0.9rem;
}

main > nav[aria-label="页内锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

main > nav[aria-label="页内锚点导航"] li {
  margin: 0;
}

main > nav[aria-label="页内锚点导航"] a {
  display: inline-block;
  padding: 0.38rem 0.9rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

main > nav[aria-label="页内锚点导航"] a:hover {
  color: #fff;
  background: var(--grad-text);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 127, 90, 0.3);
}

/* Section headings accent */
main > section > h2 {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 1.1em;
}

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

main > section[aria-labelledby="hero-title"] > h2::before {
  display: none;
}

main > section h3 {
  margin-top: 1.4em;
  color: var(--text);
}

main > section h3:first-of-type {
  margin-top: 0.4em;
}

main > section h4 {
  margin-top: 1.1em;
  color: var(--brand);
  font-weight: 700;
}

/* ---------- Articles ---------- */
#articles article {
  position: relative;
  margin: 0 0 1rem;
  padding: 1.2rem 1.3rem;
  background: var(--bg-2);
  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);
}

#articles article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-text);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 174, 123, 0.4);
}

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

#articles article h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

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

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

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  transition: all 0.25s var(--ease);
}

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

#articles article a:hover {
  background: var(--grad-text);
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 127, 90, 0.3);
}

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

/* ---------- FAQ ---------- */
#faq details {
  margin: 0 0 0.75rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-2);
  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: rgba(47, 174, 123, 0.45);
  box-shadow: var(--shadow-md);
  background: var(--surface-solid);
}

#faq details:hover {
  border-color: rgba(47, 174, 123, 0.35);
}

#faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: color 0.25s var(--ease);
}

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

#faq summary::before {
  content: "+";
  flex-shrink: 0;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.35em;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

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

#faq details > p {
  margin: 0.8rem 0 0.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
  font-size: 0.94rem;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ---------- HowTo ---------- */
#howto h4 {
  position: relative;
  padding-left: 1.9rem;
}

#howto h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--grad-text);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

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

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

#contact li {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#contact li:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 174, 123, 0.4);
  box-shadow: var(--shadow-sm);
}

/* ---------- Sitemap / Links ---------- */
main > section[aria-labelledby="sitemap-title"] ul,
main > section[aria-labelledby="links-title"] ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

main > section[aria-labelledby="sitemap-title"] a,
main > section[aria-labelledby="links-title"] a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}

main > section[aria-labelledby="sitemap-title"] a:hover,
main > section[aria-labelledby="links-title"] a:hover {
  color: var(--brand);
  border-color: var(--brand-2);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  margin-top: 1rem;
  padding: 3rem 1.25rem 2.5rem;
  background: linear-gradient(180deg, transparent, rgba(15, 61, 46, 0.08));
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  footer {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
  }
}

footer > div {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

footer p {
  margin: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-mute);
}

footer p:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.6rem;
}

footer a {
  color: var(--text-soft);
  font-size: 0.86rem;
}

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

/* ---------- Scroll reveal via CSS (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  main > section {
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }
}

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

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

  header nav ul {
    gap: 0.1rem;
  }

  header nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }

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

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

@media (max-width: 860px) {
  header > div {
    padding: 0.6rem 1rem;
  }

  header > div > div > span {
    display: none;
  }

  header form {
    order: 3;
    width: 100%;
  }

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

  header nav {
    order: 2;
    width: 100%;
  }

  header nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  header nav li {
    flex-shrink: 0;
  }
}

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

  body {
    font-size: 15px;
    line-height: 1.72;
  }

  main {
    padding: 1rem 0.85rem 3rem;
  }

  main > section {
    border-radius: var(--radius);
    padding: 1.15rem 1rem;
    margin-bottom: 1.1rem;
  }

  main > section[aria-labelledby="hero-title"] {
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius);
  }

  main > section[aria-labelledby="hero-title"] figure {
    margin: 1.1rem 0 0.9rem;
    border-radius: var(--radius-sm);
  }

  main > section > h2 {
    padding-left: 0.85rem;
  }

  main > section > h2::before {
    width: 4px;
  }

  #articles article {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  #faq details {
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-sm);
  }

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

  blockquote {
    padding: 0.85rem 1rem;
  }

  footer {
    padding: 2.2rem 1rem 2rem;
  }
}

@media (max-width: 380px) {
  header strong {
    font-size: 0.98rem;
  }

  header nav a {
    font-size: 0.8rem;
    padding: 0.3rem 0.45rem;
  }
}

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

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

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    animation: none;
  }
}
</style>