:root {
  --brand: #c8102e;
  --brand-dark: #a00d25;
  --brand-light: #ff4d6a;
  --accent: #ff8a3d;
  --grad-start: #c8102e;
  --grad-mid: #e23b52;
  --grad-end: #ff8a3d;
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(17, 24, 39, 0.08);
  --text: #1a1d24;
  --text-soft: #4a4f5a;
  --text-muted: #767c88;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.1);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --bg-alt: #14171e;
    --surface: rgba(24, 28, 37, 0.68);
    --surface-solid: #181c25;
    --border: rgba(255, 255, 255, 0.08);
    --text: #eef1f6;
    --text-soft: #c3c9d4;
    --text-muted: #8b93a1;
    --shadow-sm: 0 2px 8px 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);
    --grad-start: #e23b52;
    --grad-mid: #c8102e;
    --grad-end: #ff8a3d;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-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(1200px 600px at 85% -10%, rgba(255, 138, 61, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(200, 16, 46, 0.1), transparent 55%);
  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(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

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

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

h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.35rem); }
h4 { font-size: 1.05rem; }

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

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

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

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

blockquote p { margin: 0 0 0.5em; font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand:hover { color: var(--brand); }

.brand svg {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  background: linear-gradient(120deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list li { margin: 0; }

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand);
  background: rgba(200, 16, 46, 0.06);
}

.nav-list a:hover::after { width: 60%; }

/* ---------- Search ---------- */
.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.search-form input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  width: 190px;
  outline: none;
}

.search-form input::placeholder { color: var(--text-muted); }

.search-form button {
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--grad-start), var(--grad-end));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35);
  filter: brightness(1.05);
}

.search-form button:active { transform: translateY(0); }

/* ---------- Main ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 80px;
}

main > section {
  margin-top: 72px;
  animation: fadeUp 0.8s var(--ease) both;
}

main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.15s; }
main > section:nth-of-type(5) { animation-delay: 0.2s; }
main > section:nth-of-type(6) { animation-delay: 0.25s; }

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

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px !important;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.94), rgba(226, 59, 82, 0.9) 45%, rgba(255, 138, 61, 0.88));
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(500px 260px at 5% 95%, rgba(0, 0, 0, 0.18), transparent 60%);
  pointer-events: none;
}

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

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

.hero .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin: 0 0 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

.btn.primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  color: var(--brand-dark);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
  color: #fff;
}

.hero-figure {
  margin: 0;
}

.hero-figure svg {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s var(--ease);
}

.hero-figure:hover svg { transform: translateY(-6px) scale(1.015); }

.hero-figure figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-top: 28px !important;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li { margin: 0; display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--brand); font-weight: 600; }

/* ---------- Section content cards ---------- */
main > section:not(.hero):not(.breadcrumb) {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

main > section:not(.hero):not(.breadcrumb):hover {
  box-shadow: var(--shadow-lg);
}

main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.1em;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--grad-start), var(--grad-end));
}

main > section h3 {
  margin-top: 1.6em;
  color: var(--text);
}

main > section h3:first-of-type { margin-top: 1.2em; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--grad-start), var(--grad-end));
  opacity: 0.4;
  border-radius: 2px;
}

.timeline li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 1em;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline li:hover::before {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.18);
}

/* ---------- Lists (features) ---------- */
main > section > ul:not(.timeline):not(.news-list):not(.sitemap-list):not(.friend-links):not(.contact-list) > li {
  padding-left: 4px;
  transition: transform 0.25s var(--ease);
}

main > section > ul > li::marker {
  color: var(--brand);
}

main > section > ul > li:hover { transform: translateX(3px); }

/* ---------- News list ---------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
}

.news-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.3);
}

.news-list time {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(200, 16, 46, 0.08);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

/* ---------- Articles ---------- */
#articles article {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--grad-start), var(--grad-end));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.25);
}

#articles article:hover::before { transform: scaleY(1); }

#articles article h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

#articles article .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.9em;
}

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

#articles article a {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  margin-bottom: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* ---------- FAQ ---------- */
#faq details {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(200, 16, 46, 0.3);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  user-select: none;
}

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

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

#faq summary:hover {
  color: var(--brand);
  background: rgba(200, 16, 46, 0.04);
}

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.contact-list li {
  margin: 0;
  padding: 14px 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.3);
}

.contact-list a { font-weight: 600; }

/* ---------- Sitemap ---------- */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 1em 0 1.6em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li { margin: 0; }

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(120deg, var(--grad-start), var(--grad-end));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.3);
}

/* ---------- Footer ---------- */
#site-footer {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.06));
  border-top: 1px solid var(--border);
  padding: 56px 20px 32px;
  margin-top: 40px;
}

@media (prefers-color-scheme: dark) {
  #site-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  }
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.footer-inner section {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.footer-inner section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.footer-inner h2 {
  font-size: 1.05rem;
  margin-bottom: 0.8em;
  color: var(--text);
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border);
}

.footer-inner p {
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 0.7em;
}

.footer-inner p:last-child { margin-bottom: 0; }

.copyright {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 16px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-figure { order: -1; max-width: 520px; margin: 0 auto; }
  .search-form input { width: 150px; }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 10px 16px;
    gap: 12px;
  }
  nav[aria-label="主导航"] {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav[aria-label="主导航"]::-webkit-scrollbar { display: none; }
  .nav-list { flex-wrap: nowrap; padding-bottom: 4px; }
  .nav-list a { white-space: nowrap; font-size: 0.86rem; padding: 7px 11px; }
  .search-form { margin-left: auto; }
  .search-form input { width: 130px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  main { padding: 0 14px 56px; }
  .header-inner { padding: 10px 14px; }
  .brand { font-size: 1.1rem; }
  .brand svg { width: 34px; height: 34px; }
  .search-form { flex: 1 1 100%; order: 4; }
  .search-form input { width: 100%; flex: 1; }
  .search-form button { padding: 8px 14px; }
  .hero {
    margin-top: 24px !important;
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
  .hero .lead { font-size: 0.95rem; }
  .hero-actions .btn { flex: 1 1 auto; padding: 12px 20px; }
  main > section:not(.hero):not(.breadcrumb) {
    padding: 22px 18px;
    border-radius: var(--radius-md);
    margin-top: 44px;
  }
  main > section > h2 { padding-left: 14px; }
  .news-list li { flex-direction: column; gap: 6px; }
  .contact-list { grid-template-columns: 1fr; }
  #howto ol li { padding: 14px 14px 14px 56px; }
  #howto ol li::before { left: 12px; width: 28px; height: 28px; font-size: 0.82rem; }
  .footer-inner { gap: 20px; }
  .footer-inner section { padding: 20px; }
}

@media (max-width: 380px) {
  .nav-list a { font-size: 0.8rem; padding: 6px 9px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Motion & accessibility ---------- */
@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;
    scroll-behavior: auto !important;
  }
}

@media print {
  #site-header,
  .hero-actions,
  .search-form,
  #site-footer { display: none; }
  body { background: #fff; color: #000; }
  main > section { box-shadow: none; border: 1px solid #ddd; }
  a { color: #000; text-decoration: underline; }
}
</｜｜DSML｜｜ parameter>
</invoke>