:root {
  --brand: #E63946;
  --brand-dark: #C1121F;
  --brand-light: #FF6B78;
  --accent: #457B9D;
  --accent-2: #2A9D8F;
  --accent-3: #F4A261;
  --bg: #FFF9F9;
  --bg-alt: #FDF0F1;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #1D1D22;
  --text-soft: #55555F;
  --text-muted: #8A8A96;
  --border: rgba(230, 57, 70, 0.14);
  --shadow-sm: 0 2px 10px rgba(29, 29, 34, 0.06);
  --shadow-md: 0 8px 28px rgba(29, 29, 34, 0.09);
  --shadow-lg: 0 18px 50px rgba(230, 57, 70, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --gradient-brand: linear-gradient(135deg, #E63946 0%, #FF6B78 45%, #F4A261 100%);
  --gradient-soft: linear-gradient(135deg, #FDF0F1 0%, #FFF4E8 55%, #EAF6F4 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --transition: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FF5C6C;
    --brand-dark: #E63946;
    --brand-light: #FF8A96;
    --accent: #6FA8C9;
    --accent-2: #4FC3B0;
    --accent-3: #F7B77E;
    --bg: #121216;
    --bg-alt: #1A1A20;
    --surface: #1E1E25;
    --surface-glass: rgba(30, 30, 37, 0.68);
    --text: #F2F2F5;
    --text-soft: #C4C4CE;
    --text-muted: #8E8E9C;
    --border: rgba(255, 92, 108, 0.2);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 50px rgba(255, 92, 108, 0.18);
    --gradient-brand: linear-gradient(135deg, #E63946 0%, #FF5C6C 45%, #F4A261 100%);
    --gradient-soft: linear-gradient(135deg, #1A1A20 0%, #201A1C 55%, #16201E 100%);
    --gradient-glass: linear-gradient(135deg, rgba(40, 40, 50, 0.8), rgba(30, 30, 37, 0.4));
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(230, 57, 70, 0.06), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(69, 123, 157, 0.06), transparent 40%),
    radial-gradient(circle at 50% 96%, rgba(42, 157, 143, 0.05), transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--gradient-brand);
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  margin: 1.6rem 0 0.6rem;
  color: var(--text);
}

p {
  margin-bottom: 0.9rem;
  color: var(--text-soft);
}

strong {
  color: var(--text);
}

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

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

header > div > a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

header > div > a:hover {
  text-decoration: none;
  opacity: 0.85;
}

header > div > a svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  transition: transform var(--transition);
}

header > div > a:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

header > div > a strong {
  font-size: 1.15rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

header nav {
  flex: 1 1 auto;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
}

header nav a {
  display: inline-block;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--brand);
  background: rgba(230, 57, 70, 0.09);
  text-decoration: none;
  transform: translateY(-1px);
}

header form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

header form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form input[type="search"] {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  width: 200px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

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

header form input[type="search"]:focus {
  width: 240px;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

header form button {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient-brand);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}

header form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.42);
}

header form button:active {
  transform: translateY(0);
}

/* ============ Breadcrumb ============ */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0;
}

body > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

body > nav[aria-label="面包屑导航"] li {
  display: inline-flex;
  align-items: center;
}

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

body > nav[aria-label="面包屑导航"] a {
  color: var(--text-muted);
  text-decoration: none;
}

body > nav[aria-label="面包屑导航"] a:hover {
  color: var(--brand);
  text-decoration: none;
}

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

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

main > section {
  margin-bottom: 1.6rem;
  padding: 2rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.24);
}

main > section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition);
}

main > section:hover::after {
  opacity: 1;
}

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

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

/* ============ Hero ============ */
#hero {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  padding: 2.6rem 2rem;
  text-align: center;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  background:
    radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.16), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(69, 123, 157, 0.14), transparent 42%),
    radial-gradient(circle at 55% 85%, rgba(244, 162, 97, 0.14), transparent 45%);
  z-index: -1;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

#hero h1 {
  margin-bottom: 1rem;
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

#hero p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

#hero p:last-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.4rem;
}

#hero p:last-of-type a {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}

#hero p:last-of-type a:first-child {
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.34);
}

#hero p:last-of-type a:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(230, 57, 70, 0.46);
  text-decoration: none;
}

#hero p:last-of-type a:last-child {
  color: var(--brand);
  background: var(--surface-glass);
  border: 1.5px solid var(--brand);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#hero p:last-of-type a:last-child:hover {
  background: rgba(230, 57, 70, 0.08);
  transform: translateY(-3px);
  text-decoration: none;
}

#hero figure {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: var(--shadow-lg);
}

#hero figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

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

/* ============ Lists & Content ============ */
section ul,
section ol {
  margin: 0.6rem 0 1rem;
}

section ul li,
section ol li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-soft);
  transition: color var(--transition), transform var(--transition);
}

section ul li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
  transition: transform var(--transition);
}

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

section ul li:hover::before {
  transform: scale(1.35);
}

section ol {
  counter-reset: step;
}

section ol li {
  counter-increment: step;
  padding-left: 2.4rem;
}

section ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.55rem;
  height: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
}

/* ============ Cases blockquote ============ */
blockquote {
  position: relative;
  margin: 1rem 0;
  padding: 1.2rem 1.5rem 1.2rem 3rem;
  background: var(--gradient-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

blockquote::before {
  content: "“";
  position: absolute;
  left: 0.9rem;
  top: 0.35rem;
  font-size: 2.6rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--brand);
  opacity: 0.45;
}

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

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============ Articles ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

#articles article {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.35rem;
  background: var(--gradient-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.32);
}

#articles article h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

#articles article h3 a {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--transition), color var(--transition);
}

#articles article:hover h3 a {
  color: var(--brand);
  background-size: 100% 2px;
  text-decoration: none;
}

#articles article p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

#articles article p:nth-of-type(1) {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.08);
  align-self: flex-start;
}

#articles article p:nth-of-type(2) {
  flex: 1;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

#articles article p:last-of-type {
  margin: 0;
}

#articles article p:last-of-type a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

#articles article p:last-of-type a::after {
  content: "→";
  transition: transform var(--transition);
}

#articles article p:last-of-type a:hover {
  gap: 0.55rem;
  text-decoration: none;
}

#articles article p:last-of-type a:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#faq details:hover {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  background: var(--gradient-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.36);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brand);
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.1);
  transition: all var(--transition);
}

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

#faq summary:hover {
  color: var(--brand);
}

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

/* ============ News ============ */
#news ul {
  margin: 0;
}

#news li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px dashed var(--border);
  transition: background var(--transition), padding-left var(--transition);
  border-radius: var(--radius-sm);
}

#news li:last-child {
  border-bottom: none;
}

#news li:hover {
  background: rgba(230, 57, 70, 0.05);
  padding-left: 0.9rem;
}

#news li::before {
  display: none;
}

#news time {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.09);
}

/* ============ Contact / Address ============ */
address {
  font-style: normal;
  margin: 1rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--gradient-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-bottom: 0.45rem;
  font-size: 0.94rem;
}

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

address a {
  font-weight: 600;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0 0;
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.32);
  text-decoration: none;
}

/* ============ Author ============ */
#author p {
  font-size: 0.92rem;
}

#author p:last-child {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============ Footer ============ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.6rem 1.25rem 1.6rem;
  margin-top: 1rem;
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 1.8rem;
}

footer h2 {
  font-size: 1.05rem;
  padding-left: 0.85rem;
  margin-bottom: 0.8rem;
}

footer h2::before {
  width: 4px;
}

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

footer a {
  color: var(--brand);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer > p:last-child {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer small {
  font-size: inherit;
}

/* ============ Responsive ============ */
@media (min-width: 768px) {
  footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  footer > section {
    margin-bottom: 0;
  }

  footer > p:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  header > div {
    gap: 0.7rem;
  }

  header nav {
    order: 3;
    flex-basis: 100%;
  }

  header nav ul {
    justify-content: center;
    gap: 0.1rem;
  }

  header nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.86rem;
  }

  header form {
    margin-left: auto;
  }

  header form input[type="search"] {
    width: 160px;
  }

  header form input[type="search"]:focus {
    width: 190px;
  }
}

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

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

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

  header > div > a svg {
    width: 34px;
    height: 34px;
  }

  header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav a {
    white-space: nowrap;
    font-size: 0.84rem;
  }

  header form {
    flex-basis: 100%;
    order: 4;
  }

  header form input[type="search"],
  header form input[type="search"]:focus {
    width: 100%;
    flex: 1;
  }

  header form button {
    flex-shrink: 0;
  }

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

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

  #hero {
    padding: 1.9rem 1.15rem;
  }

  #hero p {
    font-size: 0.94rem;
  }

  #hero p:last-of-type a {
    flex: 1 1 100%;
    text-align: center;
    padding: 0.7rem 1rem;
  }

  #articles {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #articles article {
    padding: 1.2rem 1.1rem;
  }

  blockquote {
    padding: 1rem 1.1rem 1rem 2.4rem;
  }

  blockquote::before {
    left: 0.6rem;
    font-size: 2rem;
  }

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

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

  footer {
    padding: 2rem 1rem 1.4rem;
  }
}

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

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.3);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 57, 70, 0.5);
  background-clip: content-box;
}

@media print {
  header,
  footer,
  body > nav[aria-label="面包屑导航"] {
    display: none;
  }

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

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