:root {
  --bg: #0f0f1a;
  --bg-soft: #1a1a2e;
  --bg-card: rgba(30, 30, 52, 0.72);
  --bg-glass: rgba(26, 26, 46, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f8;
  --text-soft: #b8bcd6;
  --text-dim: #8b90ae;
  --accent: #e94560;
  --accent-2: #7f5af0;
  --accent-3: #2cb67d;
  --accent-4: #ffb86b;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 38%, #6b2145 72%, #e94560 100%);
  --grad-accent: linear-gradient(135deg, #e94560 0%, #7f5af0 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.14), rgba(127, 90, 240, 0.14));
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 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: light) {
  :root {
    --bg: #f4f5fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-glass: rgba(255, 255, 255, 0.62);
    --border: rgba(20, 20, 50, 0.08);
    --border-strong: rgba(20, 20, 50, 0.16);
    --text: #171a2b;
    --text-soft: #444a66;
    --text-dim: #6a7089;
    --grad-hero: linear-gradient(135deg, #eef0ff 0%, #f6e7f2 42%, #ffd9e2 76%, #ffb3c4 100%);
    --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(127, 90, 240, 0.1));
    --shadow-sm: 0 4px 14px rgba(40, 40, 90, 0.08);
    --shadow-md: 0 12px 34px rgba(40, 40, 90, 0.12);
    --shadow-lg: 0 24px 60px rgba(40, 40, 90, 0.16);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 12% -8%, rgba(233, 69, 96, 0.16), transparent 62%),
    radial-gradient(900px 560px at 88% 4%, rgba(127, 90, 240, 0.18), transparent 60%),
    radial-gradient(800px 500px at 50% 100%, rgba(44, 182, 125, 0.08), transparent 68%);
  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(--accent);
  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 {
  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.32;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  position: relative;
  padding-bottom: 0.55em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  color: var(--text);
}

h4 {
  font-size: 1.05rem;
}

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

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

header nav[aria-label="主导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

header nav > div {
  flex: 0 0 auto;
}

header nav > div a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: transparent;
  position: relative;
}

header nav > div a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.8);
  flex: 0 0 auto;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
}

header nav ul li {
  margin: 0;
}

header nav ul li a {
  display: block;
  padding: 7px 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: var(--text);
  background: var(--grad-soft);
  transform: translateY(-2px);
}

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

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

header nav form[role="search"] input[type="search"] {
  width: 190px;
  padding: 9px 14px;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: width 0.35s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

header nav form[role="search"] input[type="search"]:focus {
  width: 240px;
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.16);
}

header nav form[role="search"] button {
  padding: 9px 18px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

header nav form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.42);
  filter: brightness(1.08);
}

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

/* ===== Main Layout ===== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 22px 60px;
}

main > nav[aria-label="面包屑导航"] {
  margin-bottom: 22px;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 18px;
  font-size: 0.84rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="面包屑导航"] ol li {
  margin: 0;
  color: var(--text-dim);
}

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}

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

/* ===== Sections ===== */
main > section {
  position: relative;
  margin-bottom: 26px;
  padding: 30px 30px 26px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

main > section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: fadeUp 0.7s var(--ease) both;
  }
}

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

main > section:last-child {
  margin-bottom: 0;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  overflow: hidden;
  padding: 56px 34px 52px;
  background:
    radial-gradient(720px 380px at 82% 8%, rgba(233, 69, 96, 0.28), transparent 68%),
    radial-gradient(620px 340px at 8% 92%, rgba(127, 90, 240, 0.3), transparent 66%),
    var(--grad-hero);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    conic-gradient(from 0deg, rgba(233, 69, 96, 0.22), rgba(127, 90, 240, 0.22), rgba(44, 182, 125, 0.18), rgba(233, 69, 96, 0.22));
  filter: blur(70px);
  opacity: 0.55;
  animation: spinSlow 26s linear infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

#hero h1 {
  max-width: 21ch;
  background: linear-gradient(120deg, #ffffff 0%, #ffd6e0 46%, #c9b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 30px rgba(233, 69, 96, 0.28);
}

#hero p {
  max-width: 74ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}

#hero > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

#hero > div a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease), background 0.3s var(--ease);
}

#hero > div a:first-child {
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.42);
}

#hero > div a:first-child:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(233, 69, 96, 0.55);
  filter: brightness(1.06);
}

#hero > div a:last-child {
  color: var(--text);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#hero > div a:last-child:hover {
  transform: translateY(-3px);
  background: var(--grad-soft);
  box-shadow: var(--shadow-md);
}

/* ===== News list ===== */
#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

#news ul li {
  margin: 0;
  padding: 20px 22px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#news ul li:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-md);
}

#news ul li h3 {
  margin-bottom: 0.35em;
  font-size: 1.06rem;
}

#news ul li p {
  margin: 0 0 0.3em;
  font-size: 0.9rem;
}

#news ul li p:first-of-type {
  display: inline-block;
  padding: 2px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(233, 69, 96, 0.12);
  border-radius: var(--radius-pill);
}

/* ===== Articles grid ===== */
#articles {
  display: block;
}

#articles > p {
  margin-bottom: 22px;
}

#articles article {
  margin: 0 0 16px;
  padding: 22px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-accent);
  opacity: 0.85;
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 90, 240, 0.42);
  box-shadow: var(--shadow-md);
}

#articles article:hover::before {
  transform: scaleY(1);
}

#articles article h3 {
  margin-bottom: 0.4em;
  transition: color 0.25s var(--ease);
}

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

#articles article p {
  font-size: 0.94rem;
}

#articles article p:first-of-type {
  display: inline-block;
  padding: 2px 12px;
  margin-bottom: 0.7em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(127, 90, 240, 0.14);
  border-radius: var(--radius-pill);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

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

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

/* ===== HowTo ===== */
#howto h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.4em;
}

#howto h3::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.7);
}

#howto h3:first-of-type {
  margin-top: 0;
}

/* ===== FAQ ===== */
#faq h3 {
  margin: 0;
  padding: 16px 20px;
  font-size: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#faq h3 + p {
  margin: 0 0 14px;
  padding: 16px 20px;
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq h3:hover {
  color: var(--accent);
  background: var(--grad-soft);
}

#faq h3:hover + p {
  border-color: rgba(233, 69, 96, 0.24);
  background: rgba(233, 69, 96, 0.04);
}

/* ===== Contact & Sitemap & Links ===== */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: 10px;
}

#contact ul {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#contact ul li {
  margin: 0;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 182, 125, 0.4);
  box-shadow: var(--shadow-sm);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
}

/* ===== Notice ===== */
#notice {
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.1), rgba(233, 69, 96, 0.08)),
    var(--bg-card);
}

#notice h2::after {
  background: linear-gradient(135deg, #ffb86b, #e94560);
}

/* ===== Footer ===== */
footer {
  margin-top: 20px;
  padding: 46px 22px 30px;
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(127, 90, 240, 0.16), transparent 66%),
    radial-gradient(600px 300px at 90% 20%, rgba(233, 69, 96, 0.14), transparent 66%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 26px;
}

footer > section h2 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding-bottom: 0.5em;
}

footer > section h2::after {
  width: 42px;
  height: 3px;
}

footer > section p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

footer > section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

footer > section ul li {
  margin: 0;
}

footer > section ul li a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.84rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

footer > section ul li a:hover {
  color: #fff;
  background: var(--grad-accent);
  transform: translateY(-2px);
}

footer > a[href="#hero"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 12px 26px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-accent);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.36);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

footer > a[href="#hero"]::before {
  content: "↑";
  font-weight: 800;
}

footer > a[href="#hero"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(233, 69, 96, 0.5);
  color: #fff;
}

footer > a[href="#hero"] {
  display: flex;
  width: fit-content;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.16);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e94560, #7f5af0);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff5c78, #9575ff);
  background-clip: padding-box;
}

/* ===== Selection ===== */
::selection {
  background: rgba(233, 69, 96, 0.4);
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  header nav[aria-label="主导航"] {
    gap: 12px;
  }

  header nav ul {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  header nav form[role="search"] {
    margin-left: auto;
  }

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

  header nav form[role="search"] input[type="search"]:focus {
    width: 200px;
  }

  #hero {
    padding: 44px 26px 40px;
  }
}

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

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

  header nav[aria-label="主导航"] {
    padding: 10px 16px;
  }

  header nav > div a {
    font-size: 1rem;
    padding: 6px 10px;
  }

  header nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

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

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  header nav form[role="search"] {
    flex: 1 1 100%;
    margin-left: 0;
    order: 2;
  }

  header nav form[role="search"] input[type="search"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  header nav form[role="search"] input[type="search"]:focus {
    width: auto;
  }

  main {
    padding: 18px 14px 44px;
  }

  main > section {
    padding: 22px 18px 20px;
    border-radius: var(--radius);
    margin-bottom: 18px;
  }

  #hero {
    padding: 34px 20px 30px;
  }

  #hero h1 {
    max-width: none;
  }

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

  #hero > div {
    gap: 10px;
    margin-top: 20px;
  }

  #hero > div a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  main > nav[aria-label="面包屑导航"] ol {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

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

  #articles article,
  #news ul li {
    padding: 18px 16px;
  }

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

  #faq h3 + p {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  footer {
    padding: 34px 16px 26px;
  }

  blockquote {
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.28rem;
  }

  #hero > div a {
    flex: 1 1 100%;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
}

/* ===== Reduced motion ===== */
@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::before {
    animation: none;
  }
}

/* ===== Print ===== */
@media print {
  header,
  footer > a[href="#hero"],
  #hero::before,
  main > section::before {
    display: none !important;
  }

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

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

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