:root {
  --brand: #6c5ce7;
  --brand-2: #00d2ff;
  --brand-3: #ff6b9d;
  --accent: #feca57;
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(108, 92, 231, 0.14);
  --text: #1a1d2b;
  --text-soft: #4a5068;
  --text-mute: #7a8199;
  --shadow-sm: 0 2px 10px rgba(26, 29, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 29, 43, 0.09);
  --shadow-lg: 0 24px 60px rgba(26, 29, 43, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --brand: #8b7cf6;
  --brand-2: #38e0ff;
  --brand-3: #ff7fb0;
  --accent: #ffd166;
  --bg: #0b1020;
  --bg-2: #0f1526;
  --surface: rgba(22, 28, 48, 0.62);
  --surface-solid: #141a2e;
  --border: rgba(139, 124, 246, 0.22);
  --text: #eef1fa;
  --text-soft: #c2c8de;
  --text-mute: #8b93ad;
  --shadow-sm: 0 2px 10px 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);
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(108, 92, 231, 0.16), transparent 60%),
    radial-gradient(1000px 520px at 92% 4%, rgba(0, 210, 255, 0.14), transparent 62%),
    radial-gradient(900px 520px at 50% 108%, rgba(255, 107, 157, 0.12), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img {
  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-2);
}

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

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--text);
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin: 0 0 1rem;
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin: 0 0 1rem;
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 14px rgba(108, 92, 231, 0.5);
}

h3 {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  margin: 1.6rem 0 0.6rem;
  color: var(--text);
}

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

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

li {
  margin-bottom: 0.5rem;
}

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

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

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

/* ============ Header ============ */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.45rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
}

#siteHeader nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
}

#siteHeader nav > a {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

#siteHeader nav > a:hover {
  filter: brightness(1.15);
}

#siteHeader nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.3rem;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

#siteHeader nav ul li {
  margin: 0;
}

#siteHeader nav ul li a {
  display: inline-block;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#siteHeader nav ul li a:hover {
  background: linear-gradient(100deg, rgba(108, 92, 231, 0.16), rgba(0, 210, 255, 0.16));
  color: var(--brand);
  transform: translateY(-2px);
}

#siteHeader nav form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  flex: 0 1 260px;
}

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

#siteHeader nav input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  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);
}

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

#siteHeader nav input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.16);
}

#siteHeader nav button {
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-soft);
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

#siteHeader nav button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--brand);
}

#siteHeader nav button[type="submit"] {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
}

#siteHeader nav button[type="submit"]:hover {
  color: #fff;
  filter: brightness(1.08);
}

#menuToggle {
  display: none;
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem 1.2rem 3rem;
  display: block;
}

main > section {
  margin: 2.4rem 0;
  padding: 1.8rem clamp(1rem, 3vw, 2.2rem);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  scroll-margin-top: 130px;
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 92, 231, 0.3);
}

main > section > p:first-of-type {
  font-size: 1.02rem;
}

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(108, 92, 231, 0.16), rgba(0, 210, 255, 0.12) 45%, rgba(255, 107, 157, 0.14)),
    var(--surface);
}

#hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.28), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite;
}

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

#hero > ul {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

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

#hero > ul li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 210, 255, 0.4);
}

#hero > ul li strong {
  display: inline-block;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ Banner carousel ============ */
.banner {
  margin: 1.8rem 0 0.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.banner article {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.3rem;
  border-radius: var(--radius);
  color: #fff;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  isolation: isolate;
}

.banner article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #6c5ce7, #00d2ff);
}

.banner article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
  transition: opacity 0.5s var(--ease);
}

.banner article:nth-child(2)::before {
  background: linear-gradient(135deg, #ff6b9d, #feca57);
}

.banner article:nth-child(3)::before {
  background: linear-gradient(135deg, #00b894, #00d2ff);
}

.banner article:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.banner article:hover::after {
  opacity: 0.75;
}

.banner article h2 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  padding-left: 0;
}

.banner article h2::before {
  display: none;
}

.banner article p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
}

.banner article a {
  align-self: flex-start;
  display: inline-block;
  padding: 0.48rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

.banner article a:hover {
  background: #fff;
  color: var(--brand);
  transform: translateX(4px);
}

/* ============ Breadcrumb ============ */
main > nav[aria-label="面包屑导航"] {
  max-width: 100%;
  margin: 1rem 0 0;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.6rem 1rem;
  margin: 0;
  font-size: 0.84rem;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  color: var(--text-mute);
}

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

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

/* ============ Cards: news / articles ============ */
#news,
#articles {
  display: block;
}

#news > article,
#articles > article {
  position: relative;
  margin: 1rem 0;
  padding: 1.3rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

#news > article:hover,
#articles > article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.35);
}

#news > article:hover::before,
#articles > article:hover::before {
  opacity: 1;
}

#news > article h3,
#articles > article h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

#news > article p:first-of-type,
#articles > article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 0.3px;
}

#news > article a,
#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(108, 92, 231, 0.14), rgba(0, 210, 255, 0.14));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#news > article a:hover,
#articles > article a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

/* ============ FAQ ============ */
#faq details {
  margin: 0.7rem 0;
  padding: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  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: rgba(0, 210, 255, 0.4);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.35);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transition: transform 0.35s var(--ease);
}

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

#faq summary:hover {
  background: linear-gradient(100deg, rgba(108, 92, 231, 0.08), rgba(0, 210, 255, 0.08));
}

#faq details > p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeSlide 0.45s var(--ease);
}

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

/* ============ HowTo / Contact / Sitemap / Links / Legal / Author ============ */
#howto ol,
#solutions ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol > li,
#solutions ol > li {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 3rem;
  margin-bottom: 0.6rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  counter-increment: step;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#howto ol > li::before,
#solutions ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}

#howto ol > li:hover,
#solutions ol > li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

#contact ul,
#sitemap ul,
#links ul,
#author ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem;
}

#contact ul li,
#author ul li {
  padding: 0.65rem 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact ul li:hover,
#author ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.4);
}

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 0.6rem 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(100deg, rgba(108, 92, 231, 0.12), rgba(0, 210, 255, 0.12));
}

#legal h3 {
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border);
}

/* ============ Footer ============ */
footer {
  margin-top: 2rem;
  padding: 2rem 1.2rem 2.6rem;
  text-align: center;
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--border);
}

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

footer p a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.2rem 0.4rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

footer p a:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

/* ============ Back to top ============ */
#backToTop {
  position: fixed;
  right: 1.2rem;
  bottom: 1.4rem;
  z-index: 90;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  color: #fff;
  border: none;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s var(--ease), filter 0.3s var(--ease);
}

#backToTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  #siteHeader nav {
    gap: 0.5rem 0.8rem;
  }
  #siteHeader nav ul {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
  #siteHeader nav form[role="search"] {
    flex: 1 1 200px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

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

  main > section {
    margin: 1.6rem 0;
    padding: 1.3rem 1rem;
    border-radius: var(--radius);
    scroll-margin-top: 150px;
  }

  .topbar {
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  #siteHeader nav {
    padding: 0.6rem 0.85rem;
  }

  #siteHeader nav > a {
    font-size: 1.02rem;
  }

  #siteHeader nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
  }

  #siteHeader.nav-open nav ul {
    display: flex;
  }

  #siteHeader nav ul li a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-sm);
  }

  #siteHeader nav form[role="search"] {
    flex: 1 1 100%;
    order: 4;
  }

  #menuToggle {
    display: inline-block;
    order: 2;
    margin-left: auto;
  }

  #themeToggle {
    order: 1;
  }

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

  .banner {
    grid-template-columns: 1fr;
  }

  .banner article {
    min-height: 168px;
  }

  #contact ul,
  #author ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #backToTop {
    right: 0.85rem;
    bottom: 0.95rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
  }

  h2::before {
    top: 0.22em;
    bottom: 0.22em;
  }

  main > nav[aria-label="面包屑导航"] ol {
    width: 100%;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 420px) {
  #siteHeader nav > a {
    font-size: 0.95rem;
  }
  #news > article,
  #articles > article {
    padding: 1.05rem 1rem;
  }
  #faq summary {
    padding: 0.85rem 2.6rem 0.85rem 1rem;
    font-size: 0.92rem;
  }
}

@media print {
  #siteHeader,
  #backToTop,
  footer {
    display: none;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }
  body {
    background: #fff;
    color: #000;
  }
}