:root {
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.55);
  --text: #1a1a2e;
  --text-soft: #4a4d63;
  --text-muted: #6b6f85;
  --border: rgba(26, 26, 46, 0.1);
  --border-strong: rgba(26, 26, 46, 0.16);
  --primary: #e94560;
  --primary-dark: #c72e4a;
  --primary-soft: rgba(233, 69, 96, 0.12);
  --accent: #0f3460;
  --accent-2: #16213e;
  --link: #0f5fa8;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.09);
  --shadow-lg: 0 20px 48px rgba(26, 26, 46, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #0f3460 45%, #e94560 100%);
  --gradient-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.14), rgba(15, 52, 96, 0.14));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f1a;
    --bg-alt: #12141f;
    --bg-elevated: rgba(26, 30, 48, 0.66);
    --surface: #171a2b;
    --surface-glass: rgba(30, 34, 54, 0.55);
    --text: #eef0f8;
    --text-soft: #c3c7d8;
    --text-muted: #9aa0b8;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --primary: #ff5c7a;
    --primary-dark: #e94560;
    --primary-soft: rgba(255, 92, 122, 0.16);
    --link: #7fb6ff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
    --gradient-banner: linear-gradient(135deg, #0b0e1a 0%, #12244a 50%, #7a1f34 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 92, 122, 0.14), rgba(80, 140, 255, 0.12));
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -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(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(233, 69, 96, 0.08), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(15, 52, 96, 0.1), 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(--link);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--primary);
}

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 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  padding-bottom: 0.35em;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-banner);
}

h3 {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  margin-top: 1.6em;
}

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

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

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

li {
  margin-bottom: 0.45em;
}

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

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

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

figure {
  margin: 1.6em 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

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

figcaption {
  padding: 0.85em 1.1em;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0 0 0.6rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em 1.2em;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.5rem clamp(1rem, 4vw, 2rem);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}

.topbar span:first-child {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.topbar a {
  color: var(--text-soft);
  white-space: nowrap;
}

.topbar a:hover {
  color: var(--primary);
}

header nav[aria-label="主导航"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em 0.4em;
  max-width: var(--maxw);
  margin: 0.45rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

header nav[aria-label="主导航"] a {
  position: relative;
  display: inline-block;
  padding: 0.4em 0.7em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav[aria-label="主导航"] a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-banner);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

header nav[aria-label="主导航"] a:hover,
header nav[aria-label="主导航"] a:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

header nav[aria-label="主导航"] a:hover::after {
  width: 60%;
}

header form[role="search"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  max-width: var(--maxw);
  margin: 0.55rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

header form[role="search"] label {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

header form[role="search"] input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.6em 1em;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  appearance: none;
}

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

header form[role="search"] input[type="search"]:hover {
  border-color: var(--primary);
}

header form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--surface);
}

header form[role="search"] button {
  padding: 0.6em 1.4em;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-banner);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  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: var(--shadow-md);
  filter: brightness(1.06);
}

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

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.4rem) clamp(1rem, 4vw, 2rem) 3rem;
}

main > section {
  position: relative;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 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:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

main > section:nth-of-type(even) {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

main > section:hover::before {
  opacity: 0.5;
}

main > section > * {
  position: relative;
  z-index: 1;
}

#home {
  background: var(--gradient-banner);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 3.2rem);
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 92, 122, 0.35), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#home h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

#home p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

#home strong {
  color: #fff;
  background: linear-gradient(90deg, #ffd166, #ff8fa3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#home figure {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

#home figcaption {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  border-top-color: rgba(255, 255, 255, 0.14);
}

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

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

#home nav[aria-label="页面内锚点导航"] a {
  display: inline-block;
  padding: 0.4em 0.95em;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#home nav[aria-label="页面内锚点导航"] a:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

article {
  position: relative;
  margin: 0 0 1.1em;
  padding: 1.2em 1.4em;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

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

article h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: middle;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

article p {
  margin-bottom: 0.6em;
}

article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

article a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.25em 0.2em;
  transition: transform 0.25s var(--ease), letter-spacing 0.25s var(--ease);
}

article a::after {
  content: " →";
  transition: margin-left 0.25s var(--ease);
}

article a:hover {
  color: var(--primary-dark);
  transform: translateX(2px);
}

article a:hover::after {
  margin-left: 4px;
}

details {
  margin: 0 0 0.85em;
  padding: 0;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

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

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

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

summary::after {
  content: "";
  position: absolute;
  right: 1.3em;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

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

summary:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

details p {
  margin: 0;
  padding: 0 1.3em 1.2em;
  color: var(--text-soft);
  font-size: 0.95rem;
  animation: fadeIn 0.4s var(--ease) both;
}

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

#howto ol li {
  position: relative;
  padding: 0.75em 1em 0.75em 3em;
  margin-bottom: 0.6em;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  counter-increment: step;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.75em;
  top: 0.72em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-banner);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

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

address {
  font-style: normal;
  display: grid;
  gap: 0.5em;
  padding: 1.2em 1.4em;
  margin: 0 0 1.2em;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

address p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  font-size: 0.95rem;
}

address p a {
  font-weight: 600;
}

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

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

#sitemap a,
#links a {
  display: block;
  padding: 0.5em 0.85em;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

footer[role="contentinfo"] {
  position: relative;
  margin-top: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2rem);
  color: rgba(255, 255, 255, 0.85);
  background: var(--gradient-banner);
  border-top: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}

footer[role="contentinfo"] p {
  position: relative;
  margin: 0 0 0.55em;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

footer[role="contentinfo"] p:first-child {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

footer[role="contentinfo"] nav[aria-label="页脚导航"] {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em 1.2em;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

footer[role="contentinfo"] nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

footer[role="contentinfo"] nav a:hover {
  color: #fff;
  transform: translateY(-2px);
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 999px;
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  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.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }

@supports (animation-timeline: view()) {
  main > section {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

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

  header nav[aria-label="主导航"] {
    gap: 0.2em 0.25em;
  }

  header nav[aria-label="主导航"] a {
    padding: 0.35em 0.55em;
    font-size: 0.84rem;
  }

  main > section {
    border-radius: var(--radius);
  }
}

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

  .topbar {
    justify-content: flex-start;
    font-size: 0.76rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  header nav[aria-label="主导航"] {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
  }

  header nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  header nav[aria-label="主导航"] a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  header form[role="search"] {
    gap: 0.4em;
  }

  header form[role="search"] label {
    display: none;
  }

  header form[role="search"] button {
    padding: 0.6em 1.1em;
  }

  main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  main > section {
    padding: 1.15rem 1rem;
    margin-bottom: 1.1rem;
    border-radius: var(--radius-sm);
  }

  #home {
    padding: 1.3rem 1rem;
  }

  h2::after {
    width: 42px;
    height: 3px;
  }

  article {
    padding: 1em 1.05em;
  }

  summary {
    padding: 0.85em 2.6em 0.85em 1em;
    font-size: 0.92rem;
  }

  summary::after {
    right: 1em;
  }

  details p {
    padding: 0 1em 1em;
    font-size: 0.9rem;
  }

  address {
    padding: 1em;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.4em 0.6em;
  }

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

  blockquote {
    padding: 0.9em 1em;
  }

  footer[role="contentinfo"] p {
    font-size: 0.8rem;
  }
}

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

  #home nav[aria-label="页面内锚点导航"] a {
    font-size: 0.78rem;
    padding: 0.35em 0.7em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #home nav[aria-label="页面内锚点导航"] {
    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;
  }
}