:root {
  --c-primary: #1a5f7a;
  --c-primary-light: #2a7f9e;
  --c-primary-dark: #0f3d4f;
  --c-accent: #c8553d;
  --c-accent-light: #e06b52;
  --c-gold: #e8b04b;
  --c-cream: #f4e9d8;
  --c-bg: #f7f4ef;
  --c-bg-alt: #ffffff;
  --c-surface: rgba(255, 255, 255, 0.72);
  --c-surface-solid: #ffffff;
  --c-text: #1f2d33;
  --c-text-soft: #4a5b63;
  --c-text-muted: #7a8a91;
  --c-border: rgba(26, 95, 122, 0.14);
  --c-border-strong: rgba(26, 95, 122, 0.26);
  --c-shadow: 0 8px 28px rgba(15, 61, 79, 0.1);
  --c-shadow-lg: 0 18px 48px rgba(15, 61, 79, 0.16);
  --c-shadow-sm: 0 3px 10px rgba(15, 61, 79, 0.07);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --grad-banner: linear-gradient(135deg, #1a5f7a 0%, #2a7f9e 45%, #c8553d 100%);
  --grad-soft: linear-gradient(160deg, rgba(26, 95, 122, 0.06), rgba(200, 85, 61, 0.06));
  --grad-accent: linear-gradient(135deg, #c8553d, #e8b04b);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 132px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-primary: #4fa8c4;
    --c-primary-light: #6fc0d8;
    --c-primary-dark: #0b2833;
    --c-accent: #e07a63;
    --c-accent-light: #f09080;
    --c-gold: #f0c568;
    --c-cream: #e9dcc6;
    --c-bg: #0d1b21;
    --c-bg-alt: #12242c;
    --c-surface: rgba(28, 52, 62, 0.6);
    --c-surface-solid: #162a33;
    --c-text: #e6eef1;
    --c-text-soft: #b3c4cb;
    --c-text-muted: #8498a0;
    --c-border: rgba(111, 192, 216, 0.16);
    --c-border-strong: rgba(111, 192, 216, 0.3);
    --c-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
    --c-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
    --c-shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.32);
    --grad-banner: linear-gradient(135deg, #0f3d4f 0%, #1a5f7a 45%, #8a3a2a 100%);
    --grad-soft: linear-gradient(160deg, rgba(79, 168, 196, 0.08), rgba(224, 122, 99, 0.07));
    --grad-accent: linear-gradient(135deg, #e07a63, #f0c568);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(26, 95, 122, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(200, 85, 61, 0.07), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(232, 176, 75, 0.06), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
figure {
  max-width: 100%;
}

img,
svg {
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.3;
  color: var(--c-primary-dark);
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

@media (prefers-color-scheme: dark) {
  h1, h2, h3, h4, h5, h6 {
    color: var(--c-primary-light);
  }
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5em;
}

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

h3 {
  font-size: clamp(1.1rem, 0.98rem + 0.5vw, 1.35rem);
  font-weight: 700;
  color: var(--c-primary);
}

@media (prefers-color-scheme: dark) {
  h3 {
    color: var(--c-primary-light);
  }
}

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

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

@media (prefers-color-scheme: dark) {
  a {
    color: var(--c-primary-light);
  }
}

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

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

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

li {
  margin-bottom: 0.45em;
}

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

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

em {
  font-style: normal;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--c-accent);
  background: var(--grad-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text-soft);
}

blockquote p {
  margin-bottom: 0.6em;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ===== Header ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--c-shadow-sm);
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.6em;
  justify-content: center;
  align-items: center;
  padding: 0.45em 1.2em;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #f4e9d8;
  background: var(--grad-banner);
}

.top-bar span {
  position: relative;
  padding-left: 1.1em;
}

.top-bar span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  transform: translateY(-50%);
}

.brand-row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7em 1.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2em;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.logo svg {
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: var(--c-shadow-sm);
  transition: transform 0.5s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--c-primary-dark);
  background: var(--grad-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: dark) {
  .logo-text strong {
    background: linear-gradient(135deg, #6fc0d8, #f09080);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.logo-text em {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--c-text-muted);
}

#site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.4em;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-header nav a {
  display: inline-block;
  padding: 0.42em 0.85em;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-text-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

#site-header nav a:hover,
#site-header nav a:focus-visible {
  color: #fff;
  background: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: var(--c-shadow-sm);
}

/* ===== Main layout ===== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2em 1.4em 4em;
}

main > section {
  margin-bottom: 2.6em;
  padding: 2em 1.8em;
  background: var(--c-surface);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--c-shadow);
  animation: riseIn 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: none;
  }
}

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

main > section:hover {
  border-color: var(--c-border-strong);
  box-shadow: var(--c-shadow-lg);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* ===== Hero ===== */
#hero {
  position: relative;
  overflow: hidden;
  padding: 2.6em 2em;
  background: var(--grad-banner);
  border: none;
  color: #f4e9d8;
  box-shadow: var(--c-shadow-lg);
}

#hero::before,
#hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

#hero::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(232, 176, 75, 0.35), transparent 68%);
  animation: floaty 12s ease-in-out infinite;
}

#hero::after {
  width: 320px;
  height: 320px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(244, 233, 216, 0.22), transparent 66%);
  animation: floaty 16s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 24px) scale(1.08); }
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: #fdf7ee;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  margin-bottom: 0.5em;
}

#hero h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 5px;
  margin-top: 0.5em;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #f4e9d8, #e8b04b);
}

#hero p {
  max-width: 68ch;
  color: rgba(253, 247, 238, 0.92);
  font-size: 1.02rem;
}

#hero figure {
  margin: 1.6em 0;
  padding: 0.9em;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

#hero figure svg {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 8px);
  transition: transform 0.8s var(--ease);
}

#hero figure:hover svg {
  transform: scale(1.03);
}

#hero figcaption {
  margin-top: 0.7em;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(253, 247, 238, 0.86);
}

#hero nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
}

#hero nav a {
  display: inline-block;
  padding: 0.6em 1.3em;
  font-size: 0.94rem;
  font-weight: 600;
  color: #1a5f7a;
  background: #f4e9d8;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#hero nav a:hover,
#hero nav a:focus-visible {
  color: #fff;
  background: var(--c-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(200, 85, 61, 0.42);
}

/* ===== Breadcrumb ===== */
main > nav[aria-label="面包屑导航"] {
  margin: 0 0 1.6em;
  padding: 0.6em 1.1em;
  background: var(--c-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--c-shadow-sm);
  font-size: 0.88rem;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* ===== Lists in sections ===== */
main section ul {
  list-style: none;
  padding-left: 0;
}

main section ul li {
  position: relative;
  padding-left: 1.6em;
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}

main section ul li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--grad-accent);
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}

main section ul li:hover {
  transform: translateX(4px);
  color: var(--c-text);
}

main section ul li:hover::before {
  transform: rotate(45deg) scale(1.3);
}

main section ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

main section ol li {
  counter-increment: step;
  position: relative;
  padding: 0.55em 0 0.55em 2.8em;
  margin-bottom: 0.5em;
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

main section ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.95em;
  height: 1.95em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-banner);
  border-radius: 50%;
  box-shadow: var(--c-shadow-sm);
}

main section ol li:hover {
  background: var(--grad-soft);
  transform: translateX(4px);
}

/* ===== News articles ===== */
#news article {
  padding: 1.3em 1.4em;
  margin-bottom: 1.1em;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  box-shadow: var(--c-shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-left-color 0.35s var(--ease);
}

#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--c-shadow-lg);
  border-left-color: var(--c-accent);
}

#news article h3 {
  margin-bottom: 0.35em;
  transition: color 0.3s var(--ease);
}

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

#news article p:first-of-type {
  display: inline-block;
  padding: 0.15em 0.75em;
  margin-bottom: 0.6em;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--c-primary);
  background: var(--grad-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
}

#news article a {
  display: inline-block;
  font-weight: 600;
  color: var(--c-accent);
  position: relative;
}

#news article a::after {
  content: "→";
  margin-left: 0.35em;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

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

/* ===== FAQ ===== */
#faq details {
  margin-bottom: 0.85em;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--c-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#faq details[open] {
  border-color: var(--c-border-strong);
  box-shadow: var(--c-shadow);
}

#faq details:hover {
  border-color: var(--c-border-strong);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1em;
  top: 50%;
  width: 1.7em;
  height: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-primary);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

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

#faq summary:hover {
  background: var(--grad-soft);
  color: var(--c-primary);
}

#faq details p {
  margin: 0;
  padding: 0 1.3em 1.2em;
  animation: fadeSlide 0.4s var(--ease);
}

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

/* ===== Contact ===== */
#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8em;
}

#contact ul li {
  padding: 0.85em 1em 0.85em 2.4em;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--c-shadow-sm);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact ul li::before {
  left: 0.9em;
  top: 1.15em;
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--c-shadow);
}

/* ===== Sitemap & links ===== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6em;
}

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 0.6em 0.95em;
  font-size: 0.92rem;
  color: var(--c-text-soft);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-3px);
}

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

/* ===== Footer ===== */
footer {
  margin-top: 2em;
  padding: 3em 1.4em 1.6em;
  color: rgba(244, 233, 216, 0.86);
  background: linear-gradient(160deg, #0f3d4f 0%, #1a5f7a 55%, #12303b 100%);
  border-top: 4px solid var(--c-gold);
}

footer > div {
  max-width: var(--maxw);
  margin: 0 auto 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
}

footer h2 {
  font-size: 1.15rem;
  color: #f4e9d8;
  padding-bottom: 0.5em;
  margin-bottom: 0.9em;
}

footer h2::after {
  width: 44px;
  height: 3px;
  background: var(--c-gold);
}

footer p {
  color: rgba(244, 233, 216, 0.78);
  font-size: 0.92rem;
  margin-bottom: 0.55em;
}

footer ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.35em;
}

footer ul li::before {
  display: none;
}

footer a {
  color: rgba(244, 233, 216, 0.82);
  font-size: 0.92rem;
  position: relative;
  padding-left: 0;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

footer a::before {
  content: "›";
  position: absolute;
  left: -0.9em;
  opacity: 0;
  color: var(--c-gold);
  transition: opacity 0.3s var(--ease), left 0.3s var(--ease);
}

footer a:hover {
  color: var(--c-gold);
  padding-left: 0.9em;
}

footer a:hover::before {
  opacity: 1;
  left: 0;
}

footer > div:last-child {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.4em;
  border-top: 1px solid rgba(244, 233, 216, 0.18);
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8em;
  }

  #site-header nav ul {
    gap: 0.15em 0.3em;
  }

  #site-header nav a {
    padding: 0.36em 0.7em;
    font-size: 0.86rem;
  }

  main {
    padding: 1.4em 1em 3em;
  }

  main > section {
    padding: 1.5em 1.2em;
    border-radius: var(--radius);
    margin-bottom: 1.8em;
  }

  #hero {
    padding: 1.9em 1.3em;
  }
}

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

  .top-bar {
    flex-direction: column;
    gap: 0.2em;
    font-size: 0.76rem;
    padding: 0.5em 1em;
  }

  .logo-text strong {
    font-size: 1.25rem;
  }

  .logo-text em {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  #site-header nav ul {
    justify-content: flex-start;
  }

  #hero nav ul {
    gap: 0.5em;
  }

  #hero nav a {
    padding: 0.5em 1em;
    font-size: 0.86rem;
  }

  #hero figure {
    padding: 0.6em;
  }

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

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

  #faq summary {
    padding: 0.9em 2.7em 0.9em 1em;
    font-size: 0.94rem;
  }

  footer {
    padding: 2.2em 1.1em 1.2em;
  }

  footer > div {
    gap: 1.4em;
  }
}

@media (max-width: 380px) {
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

/* ===== Motion preferences ===== */
@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;
  }
}

/* ===== Print ===== */
@media print {
  #site-header,
  footer,
  #hero nav,
  main > nav[aria-label="面包屑导航"] {
    display: none;
  }

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

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