:root {
  --bg: #0f0f1a;
  --bg-soft: #16162a;
  --bg-card: rgba(30, 30, 52, 0.55);
  --bg-card-hover: rgba(42, 42, 72, 0.7);
  --text: #eef0f6;
  --text-soft: #b8bcd0;
  --text-muted: #8a8fa8;
  --primary: #e94560;
  --primary-soft: #ff6b81;
  --accent: #5f6cff;
  --accent-soft: #7f8bff;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --glass: blur(18px) saturate(160%);
  --grad-banner: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 35%, #4a1d3f 65%, #6b1f3a 100%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #5f6cff 100%);
  --grad-text: linear-gradient(120deg, #ff6b81 0%, #7f8bff 100%);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5fa;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --text: #1a1a2e;
    --text-soft: #3d4260;
    --text-muted: #6b7090;
    --border: rgba(26, 26, 46, 0.1);
    --border-strong: rgba(26, 26, 46, 0.2);
    --shadow: 0 10px 40px rgba(26, 26, 46, 0.12);
    --shadow-soft: 0 4px 18px rgba(26, 26, 46, 0.08);
    --grad-banner: linear-gradient(135deg, #e7e9ff 0%, #f3e6ff 40%, #ffe4ec 100%);
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(233, 69, 96, 0.14), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(95, 108, 255, 0.16), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(233, 69, 96, 0.08), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

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

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

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  position: relative;
  padding-bottom: 0.5em;
}

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

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-soft);
}

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.4em;
}

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

time {
  color: var(--text-muted);
  font-size: 0.85em;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.3em;
  border-left: 4px solid var(--primary);
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-style: italic;
}

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

figure {
  margin: 1.6em 0;
}

figcaption {
  margin-top: 0.7em;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 26, 0.72);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(255, 255, 255, 0.72);
  }
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

header > div > a {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header > div > a:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

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: 0.2rem 0.15rem;
}

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

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

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

nav[aria-label="主导航"] a:hover,
nav[aria-label="主导航"] a:focus-visible {
  color: var(--text);
  background: rgba(233, 69, 96, 0.12);
}

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

form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 300px;
  min-width: 0;
}

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

form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

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

form[role="search"] input[type="search"]:focus {
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.18);
  background: var(--bg-card-hover);
  outline: none;
}

form[role="search"] button {
  flex: 0 0 auto;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-primary);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  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 6px 18px rgba(233, 69, 96, 0.4);
  filter: brightness(1.08);
}

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

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

/* ===== Breadcrumb ===== */
nav[aria-label="面包屑导航"] {
  margin: 0.5rem 0 1.5rem;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  width: fit-content;
  max-width: 100%;
}

nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--text-muted);
  opacity: 0.7;
}

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

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

nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--primary-soft);
  font-weight: 600;
}

/* ===== Sections as glass cards ===== */
main > section {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1.8rem clamp(1.1rem, 3vw, 2.4rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease), background 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

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

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

/* stagger reveal */
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; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }
main > section:nth-of-type(12) { animation-delay: 0.46s; }
main > section:nth-of-type(13) { animation-delay: 0.5s; }

/* ===== Intro banner ===== */
#intro {
  background:
    var(--grad-banner),
    var(--bg-card);
  background-blend-mode: overlay;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

#intro::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

#intro::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(95, 108, 255, 0.32), transparent 68%);
  filter: blur(34px);
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 24px, 0) scale(1.12); }
}

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

#intro h1 {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 40px rgba(233, 69, 96, 0.18);
}

#intro figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#intro figure img:hover {
  transform: scale(1.015);
  box-shadow: 0 18px 50px rgba(233, 69, 96, 0.22);
}

/* ===== Cards inside sections ===== */
main > section > article {
  position: relative;
  margin: 0 0 1rem;
  padding: 1.2rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease);
}

main > section > article:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

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

main > section > article h3 {
  margin-bottom: 0.4em;
  transition: color 0.25s var(--ease);
}

main > section > article:hover h3 {
  color: var(--primary-soft);
}

main > section > article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-soft);
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(233, 69, 96, 0.35);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

main > section > article a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

main > section > article a:hover {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
}

main > section > article a:hover::after {
  transform: translateX(3px);
}

/* ===== FAQ details ===== */
#faq details {
  margin: 0 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: 0 8px 28px rgba(233, 69, 96, 0.14);
  background: var(--bg-card-hover);
}

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

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

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

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

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

#faq summary:hover {
  color: var(--primary-soft);
  background: rgba(233, 69, 96, 0.06);
}

#faq details p {
  padding: 0 1.25rem 1.1rem;
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeIn 0.4s var(--ease) both;
}

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

/* ===== HowTo steps ===== */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.2rem 1rem 3.6rem;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  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: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.14);
}

/* ===== Contact & sitemap & links lists ===== */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

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

#contact ul li {
  flex: 1 1 240px;
  padding: 0.75rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  font-size: 0.92rem;
  color: var(--text-soft);
  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(233, 69, 96, 0.4);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.14);
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
}

/* ===== Footer ===== */
footer {
  position: relative;
  margin-top: 2rem;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  footer {
    background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.05));
  }
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 1.5rem;
  padding: 1.3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

footer > section h2 {
  font-size: 1.15rem;
  padding-bottom: 0.45em;
}

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

footer > section p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer > p {
  max-width: var(--maxw);
  margin: 0 auto 0.4rem;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

footer > p:first-of-type {
  margin-top: 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  header > div {
    padding: 0.7rem 1rem;
    gap: 0.7rem;
  }

  nav[aria-label="主导航"] {
    order: 3;
    flex-basis: 100%;
  }

  nav[aria-label="主导航"] ul {
    gap: 0.15rem;
  }

  nav[aria-label="主导航"] a {
    font-size: 0.82rem;
    padding: 0.3rem 0.55rem;
  }

  form[role="search"] {
    flex: 1 1 200px;
    order: 2;
  }

  main {
    padding: 1rem 1rem 2.5rem;
  }

  main > section {
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius);
  }
}

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

  header > div {
    padding: 0.6rem 0.85rem;
  }

  header > div > a {
    font-size: 1.15rem;
  }

  form[role="search"] {
    flex-basis: 100%;
    order: 4;
  }

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

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

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

  nav[aria-label="面包屑导航"] ol {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
  }

  main {
    padding: 0.85rem 0.75rem 2rem;
  }

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

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

  main > section > article {
    padding: 1rem 1rem;
  }

  #faq summary {
    padding: 0.85rem 2.6rem 0.85rem 1rem;
    font-size: 0.94rem;
  }

  #howto ol li {
    padding: 0.9rem 1rem 0.9rem 3.2rem;
  }

  #howto ol li::before {
    left: 0.8rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.82rem;
  }

  #contact ul li {
    flex-basis: 100%;
  }

  footer {
    padding: 1.8rem 0.85rem 1.5rem;
  }

  footer > section {
    padding: 1.1rem 1rem;
  }
}

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

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

/* ===== Print ===== */
@media print {
  header,
  footer,
  nav[aria-label="主导航"],
  form[role="search"] {
    display: none;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
}