:root {
  --primary: #ff6b9d;
  --primary-light: #ff8fb8;
  --primary-dark: #e84a7f;
  --secondary: #a78bfa;
  --secondary-light: #c4b5fd;
  --accent: #38bdf8;
  --accent-light: #7dd3fc;
  --bg: #fff5f8;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #2d1b2e;
  --text-secondary: #6b4a5e;
  --text-muted: #9b7a8e;
  --border: rgba(255, 107, 157, 0.15);
  --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.08);
  --shadow-md: 0 8px 28px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 16px 48px rgba(255, 107, 157, 0.16);
  --shadow-glow: 0 0 32px rgba(255, 107, 157, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-banner: linear-gradient(135deg, #ff6b9d 0%, #a78bfa 50%, #38bdf8 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 157, 0.12) 0%, rgba(167, 139, 250, 0.12) 50%, rgba(56, 189, 248, 0.12) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 245, 248, 0.85) 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff8fb8;
    --primary-light: #ffb3d1;
    --primary-dark: #ff6b9d;
    --secondary: #c4b5fd;
    --secondary-light: #ddd6fe;
    --accent: #7dd3fc;
    --accent-light: #bae6fd;
    --bg: #0f0a14;
    --bg-alt: #1a1220;
    --bg-card: rgba(30, 20, 38, 0.72);
    --bg-glass: rgba(30, 20, 38, 0.55);
    --text: #f5eaf0;
    --text-secondary: #d4b8c8;
    --text-muted: #9b7a8e;
    --border: rgba(255, 143, 184, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(255, 143, 184, 0.2);
    --gradient-banner: linear-gradient(135deg, #ff6b9d 0%, #a78bfa 50%, #38bdf8 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(167, 139, 250, 0.08) 50%, rgba(56, 189, 248, 0.08) 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 20, 38, 0.9) 0%, rgba(20, 12, 26, 0.85) 100%);
  }
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-soft);
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

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

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

a:hover {
  color: var(--primary-dark);
  opacity: 0.85;
}

ul, ol {
  list-style: none;
}

/* ===== Header ===== */
header {
  position: relative;
  background: var(--gradient-banner);
  padding: 72px 24px 56px;
  overflow: hidden;
  isolation: isolate;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  z-index: -1;
}

header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 0;
  transition: background var(--transition-slow);
}

header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  margin: 0 auto 20px;
  animation: fadeInDown 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

header > p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  line-height: 1.85;
  animation: fadeInUp 0.9s 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* ===== Navigation ===== */
nav[aria-label="主导航"] {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

nav[aria-label="主导航"] a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  opacity: 1;
}

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

/* ===== Main ===== */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ===== Sections ===== */
section {
  margin-bottom: 56px;
  animation: fadeInUp 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

section:first-of-type {
  margin-top: -8px;
}

section h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-banner);
  transition: width var(--transition-slow);
}

section:hover h2::after {
  width: 100px;
}

section h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}

section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 24px 0 10px;
  line-height: 1.5;
}

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

section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 14px;
}

/* ===== Cards ===== */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow), background var(--transition-slow), border-color var(--transition-slow);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ===== Product Cards Grid ===== */
#products h3 {
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  padding: 16px 20px 16px 24px;
  margin-top: 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

#products h3:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

#products h4 {
  padding: 12px 16px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: all var(--transition);
}

#products h4:hover {
  border-left-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

/* ===== Solutions ===== */
#solutions h3 {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(167, 139, 250, 0.08));
  border-radius: var(--radius-md);
  padding: 16px 20px 16px 24px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

#solutions h3:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

#solutions h4 {
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  transition: all var(--transition);
}

#solutions h4:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ===== Cases / Blockquotes ===== */
#cases h3 {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(167, 139, 250, 0.06));
  border-radius: var(--radius-md);
  padding: 16px 20px 16px 24px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

#cases h3:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

blockquote {
  position: relative;
  margin: 20px 0;
  padding: 24px 28px 24px 56px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 8px;
  font-size: 3.5rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  opacity: 0.35;
  transition: opacity var(--transition);
}

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

blockquote:hover::before {
  opacity: 0.6;
}

blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.85;
}

/* ===== Articles ===== */
#articles article {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-banner);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 0 4px 4px 0;
}

#articles article:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
  border-color: rgba(255, 107, 157, 0.3);
}

#articles article:hover::before {
  opacity: 1;
}

#articles article h3 {
  margin-top: 0;
  font-size: 1.08rem;
  padding-left: 0;
}

#articles article h3::before {
  display: none;
}

#articles article p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

#articles article p:first-of-type {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  padding: 6px 0;
  position: relative;
  transition: all var(--transition);
}

#articles article a::after {
  content: "\2192";
  transition: transform var(--transition);
}

#articles article a:hover {
  color: var(--primary-dark);
  opacity: 1;
}

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

/* ===== FAQ ===== */
#faq h3 {
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0 8px;
  border: 1px solid var(--border);
  cursor: default;
  transition: all var(--transition);
  position: relative;
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#faq h3 {
  padding-left: 48px;
}

#faq h3:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 107, 157, 0.3);
  transform: translateY(-1px);
}

#faq p {
  padding-left: 48px;
  position: relative;
}

#faq p::before {
  content: "A";
  position: absolute;
  left: 16px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== HowTo ===== */
#howto h4 {
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border-left: 3px solid var(--secondary);
  margin: 20px 0 10px;
  transition: all var(--transition);
  counter-increment: howto-step;
}

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

/* ===== Contact ===== */
#contact p {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#contact p:last-of-type {
  border-bottom: none;
}

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

/* ===== Sitemap & Links ===== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li a,
#links li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}

#sitemap li a:hover,
#links li a:hover {
  background: var(--gradient-banner);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

/* ===== Legal ===== */
#legal h2 {
  font-size: 1.15rem;
}

#legal h2:not(:first-of-type) {
  margin-top: 36px;
}

/* ===== Footer ===== */
footer {
  background: var(--gradient-banner);
  color: #ffffff;
  text-align: center;
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

footer p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin-bottom: 6px;
  line-height: 1.7;
}

footer p:last-child {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

/* ===== Scroll Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(255, 107, 157, 0); }
}

section:nth-child(odd) {
  animation-delay: 0.05s;
}

section:nth-child(even) {
  animation-delay: 0.1s;
}

#articles article:nth-child(1) { animation: fadeInUp 0.6s 0.05s both; }
#articles article:nth-child(2) { animation: fadeInUp 0.6s 0.1s both; }
#articles article:nth-child(3) { animation: fadeInUp 0.6s 0.15s both; }
#articles article:nth-child(4) { animation: fadeInUp 0.6s 0.2s both; }
#articles article:nth-child(5) { animation: fadeInUp 0.6s 0.25s both; }
#articles article:nth-child(6) { animation: fadeInUp 0.6s 0.3s both; }
#articles article:nth-child(7) { animation: fadeInUp 0.6s 0.35s both; }
#articles article:nth-child(8) { animation: fadeInUp 0.6s 0.4s both; }
#articles article:nth-child(9) { animation: fadeInUp 0.6s 0.45s both; }
#articles article:nth-child(10) { animation: fadeInUp 0.6s 0.5s both; }

blockquote:nth-of-type(1) { animation: fadeInUp 0.6s 0.1s both; }
blockquote:nth-of-type(2) { animation: fadeInUp 0.6s 0.2s both; }
blockquote:nth-of-type(3) { animation: fadeInUp 0.6s 0.3s both; }

/* ===== Selection ===== */
::selection {
  background: rgba(255, 107, 157, 0.25);
  color: var(--text);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--secondary));
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 900px) {
  header {
    padding: 56px 20px 48px;
  }

  header::after {
    height: 60px;
  }

  main {
    padding: 0 16px 64px;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 28px 24px;
    border-radius: var(--radius-md);
  }

  section {
    margin-bottom: 40px;
  }

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

/* Mobile */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  header {
    padding: 44px 16px 40px;
  }

  header::after {
    height: 40px;
  }

  header h1 {
    font-size: 1.25rem;
    margin-bottom: 14px;
  }

  header > p {
    font-size: 0.85rem;
    margin-bottom: 28px;
    line-height: 1.8;
  }

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

  nav[aria-label="主导航"] a {
    padding: 7px 13px;
    font-size: 0.76rem;
    border-radius: 40px;
  }

  main {
    padding: 0 12px 48px;
  }

  section {
    margin-bottom: 28px;
  }

  section h2 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

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

  section h3 {
    font-size: 1rem;
    margin: 24px 0 10px;
    padding-left: 12px;
  }

  section h3::before {
    width: 3px;
  }

  section p {
    font-size: 0.88rem;
    line-height: 1.85;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 22px 16px;
    border-radius: var(--radius-sm);
  }

  #about:hover,
  #products:hover,
  #solutions:hover,
  #cases:hover,
  #news:hover,
  #articles:hover,
  #faq:hover,
  #howto:hover,
  #contact:hover,
  #sitemap:hover,
  #links:hover,
  #legal:hover {
    transform: none;
  }

  blockquote {
    padding: 20px 18px 20px 44px;
    margin: 14px 0;
  }

  blockquote::before {
    font-size: 2.8rem;
    left: 10px;
    top: 4px;
  }

  blockquote p {
    font-size: 0.86rem;
  }

  #articles article {
    padding: 18px 16px;
    margin-bottom: 12px;
  }

  #articles article:hover {
    transform: translateX(3px);
  }

  #articles article h3 {
    font-size: 0.98rem;
  }

  #faq h3 {
    padding: 13px 16px 13px 42px;
    font-size: 0.95rem;
  }

  #faq h3::before {
    left: 12px;
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
  }

  #faq p {
    padding-left: 42px;
    font-size: 0.86rem;
  }

  #faq p::before {
    left: 12px;
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
    border-width: 1.5px;
  }

  #sitemap ul,
  #links ul {
    gap: 8px;
  }

  #sitemap li a,
  #links li a {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  #legal h2 {
    font-size: 1.05rem;
  }

  footer {
    padding: 32px 16px 28px;
  }

  footer p {
    font-size: 0.78rem;
  }

  footer p:last-child {
    font-size: 0.72rem;
  }
}

/* Small Mobile */
@media (max-width: 380px) {
  header h1 {
    font-size: 1.1rem;
  }

  nav[aria-label="主导航"] a {
    padding: 6px 11px;
    font-size: 0.72rem;
  }

  section h2 {
    font-size: 1.05rem;
  }

  section p {
    font-size: 0.84rem;
  }
}

/* ===== Reduced 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;
  }
}

/* ===== Print ===== */
@media print {
  header {
    background: #fff;
    color: #000;
    padding: 20px;
  }

  header h1,
  header > p {
    color: #000;
    text-shadow: none;
  }

  nav,
  footer::before,
  body::before {
    display: none;
  }

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

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