:root {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-soft: #eef1f8;
  --text: #1a1a2e;
  --text-muted: #5b6072;
  --text-faint: #8a90a2;
  --primary: #e94560;
  --primary-2: #ff7a59;
  --accent: #0f3460;
  --accent-2: #16213e;
  --border: rgba(26, 26, 46, 0.1);
  --border-strong: rgba(26, 26, 46, 0.18);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 50px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d17;
    --bg-elev: #141726;
    --bg-soft: #1a1e30;
    --text: #eef0f7;
    --text-muted: #a7adc0;
    --text-faint: #7c8399;
    --primary: #ff5c78;
    --primary-2: #ff8a5f;
    --accent: #6ea8ff;
    --accent-2: #8f7bff;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --glass: rgba(20, 23, 38, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(233, 69, 96, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(15, 52, 96, 0.16), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  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.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--primary-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  background: linear-gradient(120deg, var(--primary), var(--primary-2) 45%, var(--accent) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.5);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--text);
}

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

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

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

li {
  margin-bottom: 0.4em;
}

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

blockquote {
  margin: 0 0 1em;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

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

figure {
  margin: 0 0 1.5em;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

figcaption {
  padding: 12px 20px;
  font-size: 0.875rem;
  color: var(--text-faint);
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

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

header[role="banner"] > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  min-height: var(--header-h);
}

header[role="banner"] > div > a[aria-label] {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  text-decoration: none;
  position: relative;
}

header[role="banner"] > div > a[aria-label]::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateY(-50%) scale(0.7); }
}

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

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

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

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

nav[aria-label="主导航"] a:hover,
nav[aria-label="主导航"] a:focus-visible {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
}

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

form[role="search"] input[type="search"] {
  width: clamp(140px, 22vw, 230px);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.3s var(--ease);
}

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

form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.16);
}

form[role="search"] button {
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.42);
  filter: brightness(1.05);
}

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

/* ============ Breadcrumb ============ */
nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px 0;
}

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

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

nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-faint);
  opacity: 0.6;
}

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

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

/* ============ Main / Sections ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px 48px;
}

main > section {
  margin: 32px 0;
  padding: clamp(20px, 3vw, 40px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: riseIn 0.7s var(--ease) both;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

main > section::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

main > section:hover::after {
  opacity: 1;
}

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

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.04s; }
main > section:nth-of-type(3) { animation-delay: 0.06s; }
main > section:nth-of-type(4) { animation-delay: 0.08s; }
main > section:nth-of-type(5) { animation-delay: 0.1s; }
main > section:nth-of-type(6) { animation-delay: 0.12s; }
main > section:nth-of-type(7) { animation-delay: 0.14s; }
main > section:nth-of-type(8) { animation-delay: 0.16s; }

@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 ============ */
#hero {
  margin-top: 20px;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(233, 69, 96, 0.92), rgba(255, 122, 89, 0.82) 45%, rgba(15, 52, 96, 0.94) 100%),
    radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, 0.35), transparent 60%);
  background-blend-mode: normal;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  color: #fff;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22) 0, transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.16) 0, transparent 30%);
  z-index: -1;
  pointer-events: none;
}

#hero h1 {
  -webkit-text-fill-color: #fff;
  color: #fff;
  background: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  max-width: 22ch;
}

#hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 72ch;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
}

#hero p strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-block;
  margin: 4px 0;
}

#hero > div {
  margin: 24px 0;
}

#hero figure {
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-lg);
  background: transparent;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.006);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36);
}

#hero figcaption {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

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

/* ============ Articles & News cards ============ */
#news article,
#articles article {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

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

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.35);
  background: var(--bg-elev);
}

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

#news article:hover h3,
#articles article:hover h3 {
  color: var(--primary);
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-bottom: 0.9em;
}

#news article p:first-of-type::before,
#articles article p:first-of-type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(233, 69, 96, 0.1);
  color: var(--primary);
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), gap 0.25s var(--ease);
}

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

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

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

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 12px;
  padding: 4px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details:last-child {
  margin-bottom: 0;
}

#faq details[open] {
  background: var(--bg-elev);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-sm);
}

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.3);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 36px;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.12);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary {
  color: var(--primary);
}

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

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

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 60px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.32);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(233, 69, 96, 0.3);
}

/* ============ Contact / Sitemap / Links lists ============ */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

#contact li,
#sitemap li,
#links li {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

#contact li:hover,
#sitemap li:hover,
#links li:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 69, 96, 0.32);
  background: var(--bg-elev);
}

#sitemap li a,
#links li a {
  font-weight: 500;
}

#sitemap li a::before {
  content: "›";
  margin-right: 8px;
  color: var(--primary);
  font-weight: 700;
}

/* ============ Legal & Author ============ */
#legal h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 1rem;
}

#legal h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

#author-info {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
}

#author-info p {
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  margin-top: 24px;
  padding: 40px 24px 32px;
  background:
    linear-gradient(180deg, transparent, rgba(15, 52, 96, 0.06)),
    var(--bg-elev);
  border-top: 1px solid var(--border);
  text-align: center;
}

footer[role="contentinfo"] p {
  max-width: var(--maxw);
  margin: 0 auto 8px;
  font-size: 0.86rem;
  color: var(--text-faint);
}

footer[role="contentinfo"] p:first-child {
  color: var(--text-muted);
  font-weight: 600;
}

footer[role="contentinfo"] nav {
  margin-top: 20px;
}

footer[role="contentinfo"] nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

footer[role="contentinfo"] nav li {
  margin: 0;
}

footer[role="contentinfo"] nav a {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 0.25s var(--ease);
}

footer[role="contentinfo"] nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

footer[role="contentinfo"] nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

footer[role="contentinfo"] nav a:hover::after {
  transform: scaleX(1);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  header[role="banner"] > div {
    padding: 12px 18px;
  }
  main {
    padding: 8px 18px 40px;
  }
  nav[aria-label="面包屑导航"] {
    padding: 12px 18px 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: auto;
  }
  header[role="banner"] > div {
    gap: 10px 14px;
  }
  nav[aria-label="主导航"] {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }
  nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
    gap: 2px;
  }
  nav[aria-label="主导航"] a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 6px 11px;
  }
  form[role="search"] {
    order: 2;
    margin-left: auto;
  }
  form[role="search"] input[type="search"] {
    width: clamp(120px, 34vw, 200px);
  }
  main > section {
    padding: 22px 18px;
    border-radius: var(--radius);
  }
  #hero {
    padding: 28px 20px;
  }
  #hero h1 {
    max-width: none;
  }
  #news article,
  #articles article {
    padding: 18px;
  }
  #contact ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  header[role="banner"] > div > a[aria-label] {
    font-size: 1.15rem;
  }
  header[role="banner"] > div > a[aria-label]::after {
    display: none;
  }
  form[role="search"] input[type="search"] {
    width: 100%;
  }
  form[role="search"] {
    flex: 1 1 100%;
    order: 4;
  }
  form[role="search"] button {
    padding: 9px 14px;
  }
  h2 {
    padding-left: 14px;
  }
  main > section {
    margin: 20px 0;
    padding: 18px 14px;
  }
  #hero {
    padding: 24px 16px;
  }
  #howto ol li {
    padding: 12px 14px 12px 52px;
  }
  #howto ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }
  #faq details {
    padding: 2px 14px;
  }
  footer[role="contentinfo"] {
    padding: 32px 16px 24px;
  }
}

@media (hover: none) {
  main > section:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  #news article:hover,
  #articles article:hover {
    transform: none;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  nav[aria-label="面包屑导航"],
  form[role="search"] {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}