:root {
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --bg-soft: #eef2f9;
  --text: #1a2333;
  --text-soft: #4a5568;
  --text-mute: #6b7688;
  --brand: #1a3a5c;
  --brand-2: #2c5f8a;
  --accent: #f2b705;
  --accent-2: #e85d3d;
  --accent-3: #4ea5d9;
  --line: rgba(26, 58, 92, 0.12);
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --shadow: 0 10px 30px rgba(26, 58, 92, 0.10);
  --shadow-lg: 0 22px 60px rgba(26, 58, 92, 0.16);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1522;
    --bg-alt: #121d2e;
    --bg-soft: #16233a;
    --text: #e8eef8;
    --text-soft: #b8c4d6;
    --text-mute: #8b9ab0;
    --brand: #4ea5d9;
    --brand-2: #7cc0e8;
    --accent: #f2b705;
    --accent-2: #ff7a5c;
    --accent-3: #6bb8e6;
    --line: rgba(140, 180, 220, 0.18);
    --card: rgba(22, 35, 58, 0.72);
    --card-solid: #16233a;
    --glass: rgba(18, 29, 46, 0.55);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  }
}

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

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

body {
  margin: 0;
  padding: 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.8;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(78, 165, 217, 0.16), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(242, 183, 5, 0.12), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(232, 93, 61, 0.10), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  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(--accent-2);
}

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

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

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.1rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

h3 {
  font-size: clamp(1.1rem, 0.98rem + 0.6vw, 1.35rem);
  margin-top: 1.4em;
}

h4 {
  font-size: 1.05rem;
  color: var(--text-soft);
}

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

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

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--accent-2);
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--accent);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow);
}

blockquote p {
  margin: 0;
  color: var(--text-soft);
  font-style: italic;
}

blockquote p::before {
  content: "“";
  color: var(--accent-2);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.15em;
  margin-right: 2px;
}

address {
  font-style: normal;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(26, 58, 92, 0.06);
}

.brand-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-bar > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-bar > a svg {
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(26, 58, 92, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand-bar > a:hover svg {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.4);
}

nav[aria-label="主导航"] {
  flex: 1 1 auto;
}

nav[aria-label="主导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav[aria-label="主导航"] li {
  margin: 0;
}

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

nav[aria-label="主导航"] a:hover {
  background: linear-gradient(135deg, rgba(78, 165, 217, 0.18), rgba(242, 183, 5, 0.16));
  color: var(--brand);
  transform: translateY(-2px);
}

form[role="search"] {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

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

form[role="search"] input[type="search"] {
  width: 210px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card-solid);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), width 0.3s var(--ease);
}

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

form[role="search"] input[type="search"]:focus {
  border-color: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(78, 165, 217, 0.18);
  outline: none;
}

form[role="search"] button {
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  box-shadow: 0 6px 16px rgba(26, 58, 92, 0.28);
}

form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 58, 92, 0.36);
  filter: brightness(1.06);
}

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

/* ============ Main layout ============ */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 40px;
}

main > section,
main > nav {
  margin: 32px 0;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  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,
main > nav:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(78, 165, 217, 0.28);
}

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

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 28px;
  padding: 48px 40px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(242, 183, 5, 0.38), transparent 60%),
    radial-gradient(700px 420px at 10% 90%, rgba(232, 93, 61, 0.34), transparent 60%),
    linear-gradient(135deg, #14283f 0%, #1a3a5c 45%, #2c5f8a 100%);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(20, 40, 63, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 165, 217, 0.5), transparent 65%);
  filter: blur(10px);
  animation: floatGlow 14s ease-in-out infinite;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -10%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.35), transparent 65%);
  filter: blur(14px);
  animation: floatGlow 18s ease-in-out infinite reverse;
  pointer-events: none;
}

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

#hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.5em;
}

#hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  max-width: 92ch;
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 26px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

#hero figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  padding: 10px 16px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
}

/* ============ Anchor nav ============ */
nav[aria-label="页面内锚点导航"] h2 {
  margin-bottom: 0.8em;
}

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

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

nav[aria-label="页面内锚点导航"] a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

nav[aria-label="页面内锚点导航"] a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 58, 92, 0.28);
}

/* ============ Articles ============ */
#articles article {
  position: relative;
  margin: 18px 0;
  padding: 22px 24px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(26, 58, 92, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

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

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(78, 165, 217, 0.35);
}

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

#articles article h3 {
  margin-top: 0;
  color: var(--text);
}

#articles article p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 0.6em;
  letter-spacing: 0.02em;
}

#articles article p:nth-of-type(2) {
  color: var(--text-soft);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  transition: all 0.3s var(--ease);
}

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

#articles article a:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 58, 92, 0.28);
}

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

/* ============ News ============ */
#news h3 {
  margin-top: 1.2em;
  padding-bottom: 0.4em;
  border-bottom: 1px dashed var(--line);
}

#news p:nth-of-type(odd) {
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ============ FAQ ============ */
#faq details {
  margin: 12px 0;
  padding: 0;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 12px rgba(26, 58, 92, 0.05);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

#faq details:hover {
  box-shadow: var(--shadow);
  border-color: rgba(78, 165, 217, 0.3);
}

#faq details[open] {
  border-color: rgba(242, 183, 5, 0.5);
  box-shadow: 0 12px 32px rgba(242, 183, 5, 0.14);
}

#faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  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: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-2);
  line-height: 1;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}

#faq details[open] summary {
  background: linear-gradient(135deg, rgba(78, 165, 217, 0.1), rgba(242, 183, 5, 0.1));
  color: var(--brand);
}

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

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

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--text-soft);
  animation: fadeUp 0.4s var(--ease) both;
}

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

#howto ol li {
  position: relative;
  padding: 12px 16px 12px 56px;
  margin-bottom: 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(26, 58, 92, 0.25);
}

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

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

/* ============ Contact ============ */
#contact address ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

#contact address li {
  padding: 14px 18px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-3);
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact address li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-left-color: var(--accent);
}

/* ============ Footer section ============ */
#footer ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#footer ul li {
  margin: 0;
}

#footer ul a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  transition: all 0.3s var(--ease);
}

#footer ul a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 58, 92, 0.24);
}

#footer h3 {
  margin-top: 1.6em;
}

#footer p:last-child {
  margin-top: 2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-mute);
}

/* ============ Page footer ============ */
body > footer {
  position: relative;
  margin-top: 40px;
  padding: 40px 20px 50px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(78, 165, 217, 0.28), transparent 60%),
    radial-gradient(700px 300px at 80% 100%, rgba(242, 183, 5, 0.2), transparent 60%),
    linear-gradient(135deg, #14283f, #1a3a5c 60%, #2c5f8a);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

body > footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
}

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

body > footer p:first-child {
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  letter-spacing: 0.03em;
}

/* ============ Scroll reveal ============ */
main > section,
main > nav,
#articles article {
  opacity: 0;
  transform: translateY(26px);
  animation: fadeUp 0.7s var(--ease) forwards;
}

main > section:nth-of-type(1) { animation-delay: 0.05s; }
main > section:nth-of-type(2) { animation-delay: 0.10s; }
main > section:nth-of-type(3) { animation-delay: 0.15s; }
main > section:nth-of-type(4) { animation-delay: 0.20s; }
main > section:nth-of-type(5) { animation-delay: 0.25s; }
main > section:nth-of-type(6) { animation-delay: 0.30s; }
main > section:nth-of-type(7) { animation-delay: 0.35s; }
main > section:nth-of-type(8) { animation-delay: 0.40s; }
main > section:nth-of-type(9) { animation-delay: 0.45s; }
main > section:nth-of-type(10) { animation-delay: 0.50s; }
main > section:nth-of-type(11) { animation-delay: 0.55s; }

@supports (animation-timeline: view()) {
  main > section,
  main > nav,
  #articles article {
    animation: fadeUp 0.8s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@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;
  }
  main > section,
  main > nav,
  #articles article {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive: Tablet ============ */
@media (max-width: 960px) {
  .brand-bar {
    gap: 12px;
  }

  form[role="search"] {
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  form[role="search"] input[type="search"] {
    flex: 1 1 auto;
    width: auto;
  }

  main > section,
  main > nav {
    padding: 26px 22px;
    border-radius: 18px;
  }

  #hero {
    padding: 38px 26px;
  }
}

/* ============ Responsive: Mobile ============ */
@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .brand-bar {
    padding: 10px 14px;
  }

  .brand-bar > a {
    font-size: 1rem;
  }

  .brand-bar > a svg {
    width: 34px;
    height: 34px;
  }

  nav[aria-label="主导航"] ul {
    gap: 2px;
  }

  nav[aria-label="主导航"] a {
    padding: 6px 9px;
    font-size: 0.84rem;
  }

  main {
    padding: 0 12px 30px;
  }

  main > section,
  main > nav {
    margin: 20px 0;
    padding: 20px 16px;
    border-radius: 16px;
  }

  #hero {
    margin-top: 16px;
    padding: 28px 18px;
    border-radius: 20px;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

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

  h2 {
    padding-left: 14px;
    font-size: 1.28rem;
  }

  h2::before {
    width: 5px;
  }

  h3 {
    font-size: 1.08rem;
  }

  nav[aria-label="页面内锚点导航"] a {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  #articles article {
    padding: 16px 16px;
  }

  #faq summary {
    padding: 14px 42px 14px 16px;
    font-size: 0.95rem;
  }

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

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

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

  body > footer {
    padding: 30px 16px 40px;
  }

  body > footer p {
    font-size: 0.84rem;
  }
}

@media (max-width: 400px) {
  nav[aria-label="主导航"] a {
    padding: 5px 7px;
    font-size: 0.8rem;
  }

  #hero {
    padding: 22px 14px;
  }

  main > section,
  main > nav {
    padding: 16px 13px;
  }
}

/* ============ Print ============ */
@media print {
  header,
  body > footer,
  nav[aria-label="页面内锚点导航"],
  form[role="search"] {
    display: none !important;
  }

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

  main > section,
  main > nav {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    backdrop-filter: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
  }

  a {
    color: #000 !important;
  }
}