:root {
  --brand: #e63946;
  --brand-dark: #c1121f;
  --brand-light: #ff6b7a;
  --accent: #457b9d;
  --accent-2: #f4a261;
  --navy: #1d3557;
  --mint: #a8dadc;
  --cream: #f1faee;
  --bg: #f7f8fc;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1d2433;
  --text-soft: #5a6478;
  --text-muted: #8b94a7;
  --border: rgba(29, 53, 87, 0.1);
  --border-strong: rgba(29, 53, 87, 0.18);
  --shadow-sm: 0 2px 8px rgba(29, 53, 87, 0.06);
  --shadow-md: 0 8px 24px rgba(29, 53, 87, 0.1);
  --shadow-lg: 0 20px 48px rgba(29, 53, 87, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --grad-banner: linear-gradient(135deg, #e63946 0%, #f4a261 55%, #457b9d 100%);
  --grad-brand: linear-gradient(135deg, #e63946 0%, #ff6b7a 100%);
  --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(69, 123, 157, 0.08));
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --bg-soft: #161c2b;
    --bg-elevated: #1b2233;
    --text: #eef1f7;
    --text-soft: #b6bfd0;
    --text-muted: #8a94a8;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
    --glass-bg: rgba(27, 34, 51, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.16), rgba(69, 123, 157, 0.16));
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

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% 8%, rgba(230, 57, 70, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(69, 123, 157, 0.1), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(244, 162, 97, 0.08), transparent 50%);
  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);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(230, 57, 70, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

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

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

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

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

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--navy);
  margin-top: 1.6em;
}

@media (prefers-color-scheme: dark) {
  h3 { color: var(--mint); }
}

h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 1.3em;
}

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

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

li {
  margin-bottom: 0.5em;
}

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

/* ===== Header ===== */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.6s var(--ease) both;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #fff;
  background: var(--grad-banner);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  letter-spacing: 0.01em;
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.topbar span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

nav[aria-label="主导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

nav[aria-label="主导航"] > a[aria-label="全免漫画首页"] {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  position: relative;
  transition: transform 0.3s var(--ease);
}

nav[aria-label="主导航"] > a[aria-label="全免漫画首页"]:hover {
  transform: scale(1.04);
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

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

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

nav[aria-label="主导航"] ul li a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

nav[aria-label="主导航"] ul li a:hover,
nav[aria-label="主导航"] ul li a:focus-visible {
  color: var(--brand);
  background: rgba(230, 57, 70, 0.08);
  transform: translateY(-1px);
}

nav[aria-label="主导航"] ul li a:hover::after {
  transform: scaleX(1);
}

nav[aria-label="主导航"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

nav[aria-label="主导航"] form[role="search"]:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
}

nav[aria-label="主导航"] form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

nav[aria-label="主导航"] form[role="search"] input {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  width: 180px;
  min-width: 0;
  border-radius: 999px;
}

nav[aria-label="主导航"] form[role="search"] input::placeholder {
  color: var(--text-muted);
}

nav[aria-label="主导航"] form[role="search"] input:focus {
  outline: none;
}

nav[aria-label="主导航"] form[role="search"] button {
  border: none;
  cursor: pointer;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

nav[aria-label="主导航"] form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.35);
  filter: brightness(1.05);
}

nav[aria-label="主导航"] form[role="search"] button:active {
  transform: translateY(0);
}

/* ===== Main layout ===== */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

section {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
    opacity: 1;
  }
}

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

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-banner);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

section:hover::before {
  opacity: 1;
}

/* Hero */
#home {
  background: var(--grad-banner);
  border: none;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.15), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

#home h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  max-width: 20ch;
}

#home p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  max-width: 68ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

#home figure {
  margin: 28px 0 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#home figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

#home figure svg {
  border-radius: var(--radius-md);
  width: 100%;
}

#home figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

/* ===== Cards / content blocks ===== */
#about,
#products,
#solutions,
#cases,
#news,
#knowledge,
#howto,
#faq,
#notice,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer {
  scroll-margin-top: 100px;
}

#products h3,
#solutions h3,
#cases h3,
#news h3,
#knowledge h3,
#howto h3,
#faq h3 {
  padding: 14px 18px;
  background: var(--grad-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products h3:hover,
#solutions h3:hover,
#cases h3:hover,
#news h3:hover,
#knowledge h3:hover,
#howto h3:hover,
#faq h3:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--accent);
}

#solutions h4 {
  padding-left: 14px;
  border-left: 3px solid var(--accent-2);
  transition: border-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

#solutions h4:hover {
  border-left-color: var(--brand);
  padding-left: 18px;
}

/* ===== News articles ===== */
#news {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

#news > p {
  grid-column: 1 / -1;
}

#news article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  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);
}

#news article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

#news article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

#news article h3 {
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: none;
  font-size: 1.08rem;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

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

#news article time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(230, 57, 70, 0.1);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#news article time::before {
  content: "📅";
  font-size: 0.85em;
}

#news article p {
  font-size: 0.92rem;
  margin-bottom: 12px;
  color: var(--text-soft);
}

#news article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.08);
  transition: gap 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

#news article a:hover {
  gap: 10px;
  background: var(--brand);
  color: #fff;
}

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

/* ===== Knowledge articles ===== */
#knowledge article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

#knowledge article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#knowledge article h3 {
  margin-top: 0;
  padding: 0 0 10px;
  background: none;
  border: none;
  border-bottom: 2px dashed var(--border-strong);
  border-radius: 0;
  transition: color 0.3s var(--ease);
}

#knowledge article:hover h3 {
  color: var(--brand);
}

#knowledge article p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== HowTo steps ===== */
#howto h4 {
  padding: 12px 16px 12px 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  counter-increment: step;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto {
  counter-reset: step;
}

#howto h4::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(230, 57, 70, 0.35);
}

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

/* ===== FAQ ===== */
#faq h3 {
  cursor: default;
  position: relative;
}

#faq h3::before {
  content: "Q";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
}

#faq h3 + p {
  padding: 0 18px 4px 22px;
  border-left: 2px solid var(--border-strong);
  margin-left: 6px;
}

/* ===== Notice ===== */
#notice {
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.12), rgba(230, 57, 70, 0.08));
  border-color: rgba(244, 162, 97, 0.35);
}

#notice h3 {
  color: var(--brand-dark);
}

@media (prefers-color-scheme: dark) {
  #notice h3 { color: var(--accent-2); }
}

/* ===== Contact ===== */
#contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

#contact li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

#contact li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

/* ===== Sitemap & links ===== */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.28s var(--ease), color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.3);
}

/* ===== Footer ===== */
footer[role="contentinfo"] {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 40px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-banner);
}

footer[role="contentinfo"] p {
  max-width: var(--maxw);
  margin: 0 auto 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

footer[role="contentinfo"] p:last-child {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
}

footer[role="contentinfo"] a {
  color: var(--mint);
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

footer[role="contentinfo"] a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Responsive ===== */
@media (min-width: 720px) {
  #news {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #news {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  nav[aria-label="主导航"] {
    gap: 10px;
  }

  nav[aria-label="主导航"] ul {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  nav[aria-label="主导航"] ul::-webkit-scrollbar {
    height: 4px;
  }

  nav[aria-label="主导航"] ul::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
  }

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

  nav[aria-label="主导航"] form[role="search"] {
    order: 2;
    margin-left: auto;
  }

  nav[aria-label="主导航"] form[role="search"] input {
    width: 130px;
  }
}

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

  body {
    font-size: 15px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.74rem;
  }

  nav[aria-label="主导航"] {
    padding: 10px 16px;
    gap: 8px;
  }

  nav[aria-label="主导航"] > a[aria-label="全免漫画首页"] {
    font-size: 1.2rem;
  }

  nav[aria-label="主导航"] form[role="search"] {
    flex: 1 1 100%;
    order: 4;
  }

  nav[aria-label="主导航"] form[role="search"] input {
    width: 100%;
    flex: 1;
  }

  main {
    padding: 20px 14px 48px;
    gap: 18px;
  }

  section {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  #home {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  #home h1 {
    max-width: none;
  }

  #home figure {
    padding: 8px;
  }

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

  #faq h3 {
    font-size: 1rem;
    padding: 12px 14px;
  }

  #knowledge article {
    padding: 16px 16px;
  }

  footer[role="contentinfo"] {
    padding: 32px 16px 40px;
  }
}

@media (max-width: 380px) {
  nav[aria-label="主导航"] ul li a {
    padding: 6px 10px;
    font-size: 0.84rem;
  }
}

/* ===== Accessibility & motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background: rgba(230, 57, 70, 0.25);
  color: var(--text);
}

/* ===== Print ===== */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #sitemap,
  #links {
    display: none;
  }

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

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

  a {
    color: #000;
    text-decoration: underline;
  }
}