:root {
  --brand: #c8102e;
  --brand-dark: #a00d24;
  --brand-light: #ff4d6a;
  --accent: #ffd166;
  --accent-deep: #f4a300;
  --teal: #2a9d8f;
  --ink: #1f2328;
  --ink-soft: #4a525b;
  --ink-mute: #6b7480;
  --bg: #fdf7f7;
  --bg-alt: #ffffff;
  --bg-soft: #fff5f5;
  --card: #ffffff;
  --border: rgba(200, 16, 46, 0.12);
  --border-soft: rgba(31, 35, 40, 0.08);
  --shadow-sm: 0 2px 8px rgba(31, 35, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(200, 16, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(200, 16, 46, 0.16);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff4d6a;
    --brand-dark: #c8102e;
    --brand-light: #ff7a90;
    --accent: #ffd166;
    --accent-deep: #ffb020;
    --teal: #4fd1c5;
    --ink: #f2f4f7;
    --ink-soft: #c5ccd6;
    --ink-mute: #8d97a4;
    --bg: #14161a;
    --bg-alt: #1b1e24;
    --bg-soft: #1e2229;
    --card: #1f232b;
    --border: rgba(255, 77, 106, 0.22);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --glass: rgba(31, 35, 43, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(200, 16, 46, 0.07), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(255, 209, 102, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(42, 157, 143, 0.06), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.42rem); }
h4 { font-size: 1.05rem; }

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

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.5em;
}

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

strong {
  color: var(--ink);
  font-weight: 700;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.4em;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-style: normal;
}

blockquote p {
  margin: 0 0 0.6em;
}

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

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--ink-mute);
  background: var(--bg-soft);
  padding: 0.15em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

figure {
  margin: 1.6em 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

figcaption {
  padding: 0.8em 1.2em;
  font-size: 0.86rem;
  color: var(--ink-mute);
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(31, 35, 40, 0.05);
}

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

header a[href="/"] {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

header a[href="/"] svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header a[href="/"]:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.45);
}

header a[href="/"] strong {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--brand), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

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

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

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 0.38em 0.72em;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 320px;
  min-width: 200px;
}

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

header form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55em 1em;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

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

header form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
  background: var(--card);
}

header form[role="search"] button {
  flex: 0 0 auto;
  padding: 0.55em 1.15em;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
  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 20px rgba(200, 16, 46, 0.4);
  filter: brightness(1.06);
}

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

/* ============ BREADCRUMB ============ */
main > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  color: var(--ink-mute);
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin: 0 0.5em;
  color: var(--border);
}

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

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

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

/* ============ MAIN LAYOUT ============ */
main {
  display: block;
}

main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.4rem 1.25rem;
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:nth-of-type(even) {
  animation-delay: 0.05s;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ HERO ============ */
#hero {
  position: relative;
  max-width: var(--maxw);
  margin: 1.4rem auto 0;
  padding: 3rem 2.2rem 2.6rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.95) 0%, rgba(160, 13, 36, 0.92) 45%, rgba(42, 157, 143, 0.88) 100%),
    radial-gradient(circle at 85% 15%, rgba(255, 209, 102, 0.55), transparent 55%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 88%, rgba(255, 209, 102, 0.35), transparent 45%),
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.18), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.4), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.7em;
  max-width: 20ch;
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 72ch;
  font-size: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

#hero figure {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
}

#hero figcaption {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(255, 255, 255, 0.2);
}

#hero p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
  margin-bottom: 0;
}

#hero p:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.7em;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#hero p:last-child a:first-child {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#hero p:last-child a:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

#hero p:last-child a:first-child:hover {
  background: var(--accent);
  color: #5a3b00;
  border-color: var(--accent);
}

#hero p:last-child a:last-child:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

/* ============ GENERIC SECTION CARDS ============ */
main > section:not(#hero) {
  position: relative;
}

main > section:not(#hero) > h2 {
  position: relative;
  padding-bottom: 0.55em;
  margin-bottom: 1.2em;
}

main > section:not(#hero) > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

main > section:not(#hero) > h3 {
  margin-top: 1.8em;
  color: var(--brand-dark);
}

main > section:not(#hero) > h3:first-of-type {
  margin-top: 0.4em;
}

/* ============ ARTICLE CARDS ============ */
#articles article {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.3em;
  font-size: 1.18rem;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

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

#articles article p {
  font-size: 0.95rem;
  line-height: 1.8;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

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

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

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

#faq details:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

#faq details[open] summary {
  color: var(--brand);
  background: var(--bg-soft);
}

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

#faq details > p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.85;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ HOWTO ============ */
#howto ol,
#howto ul {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.3rem 2.6rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

#howto ol li,
#howto ul li {
  padding-left: 0.2em;
}

#howto ol li::marker {
  font-weight: 700;
  color: var(--brand);
}

/* ============ CONTACT / SITEMAP / LINKS ============ */
#contact p {
  padding: 0.55rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 0.7em 1em;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#sitemap a::before {
  content: "▸ ";
  color: var(--brand);
  font-weight: 700;
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

/* ============ LEGAL SECTIONS ============ */
#copyright,
#privacy,
#disclaimer {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#copyright p,
#privacy p,
#disclaimer p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  margin-top: 3rem;
  padding: 2.6rem 1.25rem 2.2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, #1f2328 0%, #2b1218 55%, #2a1a10 100%);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(200, 16, 46, 0.35), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(255, 209, 102, 0.18), transparent 45%);
  pointer-events: none;
}

footer p {
  position: relative;
  margin: 0.4em 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

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

footer a {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  header > div {
    padding: 0.6rem 1rem;
  }

  header nav {
    order: 3;
    flex-basis: 100%;
  }

  header form[role="search"] {
    order: 2;
    flex: 1 1 220px;
  }

  #hero {
    padding: 2.4rem 1.5rem 2rem;
    border-radius: var(--radius-lg);
    margin: 1rem 1rem 0;
  }

  main > section {
    padding: 2rem 1rem;
  }
}

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

  header > div {
    gap: 0.55rem;
  }

  header a[href="/"] strong {
    font-size: 1rem;
  }

  header a[href="/"] svg {
    width: 34px;
    height: 34px;
  }

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

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

  header nav a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
  }

  header form[role="search"] {
    flex-basis: 100%;
    order: 4;
    min-width: 0;
  }

  header form[role="search"] input[type="search"],
  header form[role="search"] button {
    font-size: 0.85rem;
  }

  #hero {
    padding: 1.8rem 1.15rem 1.6rem;
    border-radius: var(--radius);
    margin: 0.8rem 0.7rem 0;
  }

  #hero h1 {
    max-width: none;
  }

  #hero p {
    font-size: 0.94rem;
  }

  #hero p:last-child {
    gap: 0.6rem;
  }

  #hero p:last-child a {
    flex: 1 1 auto;
    padding: 0.65em 1.1em;
    font-size: 0.9rem;
  }

  main > section {
    padding: 1.6rem 0.9rem;
  }

  main > nav[aria-label="面包屑导航"] {
    padding: 0.8rem 0.9rem 0;
  }

  #articles article {
    padding: 1.15rem 1.1rem;
  }

  #articles article h3 {
    font-size: 1.05rem;
  }

  #faq summary {
    padding: 0.9rem 2.6rem 0.9rem 1rem;
    font-size: 0.95rem;
  }

  #faq details > p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  #sitemap a,
  #links a {
    font-size: 0.85rem;
    padding: 0.6em 0.8em;
  }

  #howto ol,
  #howto ul {
    padding: 1rem 1rem 1rem 2.1rem;
  }

  blockquote {
    padding: 0.85em 1em;
  }

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

  footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

/* ============ ACCESSIBILITY / PRINT ============ */
@media print {
  header,
  footer,
  #hero p:last-child,
  #articles article a {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  main > section {
    padding: 0.5rem 0;
    animation: none;
  }

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

  #faq details {
    page-break-inside: avoid;
  }

  #faq details > p {
    display: block !important;
  }
}