:root {
  --pink: #FF8FAB;
  --pink-light: #FFB3C6;
  --pink-dark: #E56B8A;
  --pink-glow: rgba(255, 143, 171, 0.35);
  --peach: #FFC2D4;
  --cream: #FFF5F7;
  --lavender: #CDB4DB;
  --mint: #B8E0D2;
  --sky: #A2D2FF;
  --lemon: #FFE5A0;
  --bg-primary: #FFF5F7;
  --bg-secondary: #FFFFFF;
  --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #FFE8F0 30%, #F0E6FF 70%, #E6F3FF 100%);
  --text-primary: #4A3F4C;
  --text-secondary: #7A6B7E;
  --text-muted: #A89DAE;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 8px 32px rgba(255, 143, 171, 0.12);
  --card-shadow-hover: 0 16px 48px rgba(255, 143, 171, 0.25);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-border: rgba(255, 255, 255, 0.6);
  --footer-bg: rgba(74, 63, 76, 0.95);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cute: "Comic Sans MS", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", cursive, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg-primary: #1A1620;
  --bg-secondary: #241E2C;
  --bg-gradient: linear-gradient(135deg, #1E1824 0%, #241E2C 30%, #201A2A 70%, #1A1620 100%);
  --text-primary: #F0EAF2;
  --text-secondary: #C4B8CA;
  --text-muted: #8A7E92;
  --card-bg: rgba(40, 34, 48, 0.7);
  --card-border: rgba(255, 143, 171, 0.15);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 16px 48px rgba(255, 143, 171, 0.2);
  --nav-bg: rgba(30, 24, 36, 0.82);
  --nav-border: rgba(255, 143, 171, 0.12);
  --footer-bg: rgba(20, 16, 26, 0.98);
  --pink-glow: rgba(255, 143, 171, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #1A1620;
    --bg-secondary: #241E2C;
    --bg-gradient: linear-gradient(135deg, #1E1824 0%, #241E2C 30%, #201A2A 70%, #1A1620 100%);
    --text-primary: #F0EAF2;
    --text-secondary: #C4B8CA;
    --text-muted: #8A7E92;
    --card-bg: rgba(40, 34, 48, 0.7);
    --card-border: rgba(255, 143, 171, 0.15);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 16px 48px rgba(255, 143, 171, 0.2);
    --nav-bg: rgba(30, 24, 36, 0.82);
    --nav-border: rgba(255, 143, 171, 0.12);
    --footer-bg: rgba(20, 16, 26, 0.98);
    --pink-glow: rgba(255, 143, 171, 0.2);
  }
}

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

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 143, 171, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(205, 180, 219, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(162, 210, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -2%) scale(1.02); }
  66% { transform: translate(-2%, 2%) scale(0.98); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  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 pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--pink-glow); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

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

@keyframes pawPrint {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

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

a:hover {
  color: var(--pink);
}

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

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

ul, ol {
  list-style: none;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink-light), var(--lavender));
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 30px rgba(255, 143, 171, 0.08);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

header nav > a {
  font-family: var(--font-cute);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-dark);
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-bounce);
}

header nav > a::before {
  content: "🐾";
  font-size: 1.3rem;
  animation: float 3s ease-in-out infinite;
}

header nav > a:hover {
  transform: scale(1.06);
  color: var(--pink);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-light), var(--lavender));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-smooth);
}

header nav ul li a:hover {
  color: var(--pink-dark);
  background: rgba(255, 143, 171, 0.08);
  transform: translateY(-2px);
}

header nav ul li a:hover::after {
  width: 60%;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

article > section {
  margin-bottom: 48px;
  animation: fadeInUp 0.7s ease-out both;
}

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

#hero {
  position: relative;
  margin: 32px 0 56px;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #FF8FAB 0%, #FFB3C6 25%, #CDB4DB 55%, #A2D2FF 100%);
  background-size: 200% 200%;
  animation: fadeInUp 0.7s ease-out both, gradientShift 8s ease infinite;
  box-shadow: 0 20px 60px rgba(255, 143, 171, 0.3), 0 8px 24px rgba(205, 180, 219, 0.2);
  overflow: hidden;
  text-align: center;
  color: #fff;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

#hero::after {
  content: "🐱";
  position: absolute;
  bottom: -20px;
  right: 30px;
  font-size: 120px;
  opacity: 0.12;
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.5px;
}

#hero > p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto 32px;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

#hero nav[aria-label="面包屑导航"] {
  position: relative;
  z-index: 1;
}

#hero nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

#hero nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

#hero nav[aria-label="面包屑导航"] ol li + li::before {
  content: "›";
  font-size: 1.1rem;
  opacity: 0.7;
}

#hero nav[aria-label="面包屑导航"] ol li a {
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all var(--transition-fast);
  font-weight: 500;
}

#hero nav[aria-label="面包屑导航"] ol li a:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  color: #fff;
}

article > section:not(#hero) {
  background: var(--card-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition-smooth);
}

article > section:not(#hero):hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(255, 143, 171, 0.25);
}

article > section h2 {
  position: relative;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-bottom: 16px;
  padding-left: 18px;
  line-height: 1.4;
}

article > section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 6px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--pink), var(--lavender));
  border-radius: 3px;
}

article > section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-light), transparent);
  border-radius: 3px;
}

article > section h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--pink-dark);
  margin: 28px 0 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

article > section h3::before {
  content: "◆";
  font-size: 0.65em;
  color: var(--lavender);
  flex-shrink: 0;
}

article > section h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
  padding-left: 14px;
  border-left: 3px solid var(--pink-light);
  line-height: 1.5;
}

article > section p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-align: justify;
  letter-spacing: 0.2px;
}

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

#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#cases h3,
#testimonials h3,
#knowledge h3 {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.08), rgba(205, 180, 219, 0.08));
  border-radius: var(--radius-md);
  border-left: 4px solid var(--pink-light);
  transition: all var(--transition-smooth);
}

#products h3:hover,
#advantages h3:hover,
#solutions h3:hover,
#applications h3:hover,
#cases h3:hover,
#testimonials h3:hover,
#knowledge h3:hover {
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.14), rgba(205, 180, 219, 0.14));
  transform: translateX(6px);
  border-left-color: var(--pink);
}

#news article,
#articles article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 143, 171, 0.1);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--pink-light), var(--lavender));
  border-radius: 4px 0 0 4px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-smooth);
}

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

#news article:hover,
#articles article:hover {
  transform: translateY(-4px) translateX(4px);
  box-shadow: 0 12px 32px rgba(255, 143, 171, 0.15);
  border-color: rgba(255, 143, 171, 0.25);
}

#news article h3,
#articles article h3 {
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  line-height: 1.5;
}

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

#news article h3 a,
#articles article h3 a {
  color: var(--text-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

#news article h3 a:hover,
#articles article h3 a:hover {
  color: var(--pink-dark);
}

#news article > p,
#articles article > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

#news article > p:last-child a,
#articles article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink-dark);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 143, 171, 0.1);
  transition: all var(--transition-fast);
}

#news article > p:last-child a::after,
#articles article > p:last-child a::after {
  content: "→";
  transition: transform var(--transition-fast);
}

#news article > p:last-child a:hover,
#articles article > p:last-child a:hover {
  background: var(--pink);
  color: #fff;
  transform: translateX(4px);
}

#news article > p:last-child a:hover::after,
#articles article > p:last-child a:hover::after {
  transform: translateX(3px);
}

#faq h3 {
  position: relative;
  margin: 24px 0 12px;
  padding: 16px 20px 16px 52px;
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.07), rgba(162, 210, 255, 0.07));
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 143, 171, 0.12);
  font-size: 1rem;
  cursor: default;
  transition: all var(--transition-smooth);
}

#faq h3::before {
  content: "?";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 143, 171, 0.3);
}

#faq h3:hover {
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.13), rgba(162, 210, 255, 0.13));
  transform: translateX(4px);
  border-color: rgba(255, 143, 171, 0.25);
}

#faq h3 + p {
  padding: 0 20px 0 52px;
  margin-bottom: 8px;
}

#howto h4 {
  position: relative;
  padding: 12px 18px 12px 48px;
  background: rgba(255, 143, 171, 0.06);
  border-radius: var(--radius-sm);
  border-left: none;
  margin: 14px 0 10px;
  transition: all var(--transition-fast);
}

#howto h4::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}

#howto h4:hover {
  background: rgba(255, 143, 171, 0.12);
  transform: translateX(4px);
}

#howto h3 {
  background: linear-gradient(135deg, rgba(162, 210, 255, 0.1), rgba(184, 224, 210, 0.1));
  border-left-color: var(--sky);
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 143, 171, 0.1);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-bounce);
}

#sitemap ul li a::before {
  content: "🐾";
  font-size: 0.85rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

#links ul li a::before {
  content: "🔗";
  font-size: 0.8rem;
  opacity: 0.6;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.12), rgba(205, 180, 219, 0.12));
  color: var(--pink-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 143, 171, 0.15);
  border-color: rgba(255, 143, 171, 0.3);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  opacity: 1;
}

#contact h3 {
  background: linear-gradient(135deg, rgba(184, 224, 210, 0.12), rgba(162, 210, 255, 0.12));
  border-left-color: var(--mint);
}

#contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  margin-bottom: 4px;
}

#contact p:has(+ h3) {
  margin-bottom: 12px;
}

#editor p {
  display: inline-block;
  padding: 8px 18px;
  margin: 0 8px 10px 0;
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.08), rgba(205, 180, 219, 0.08));
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 143, 171, 0.12);
  transition: all var(--transition-fast);
}

#editor p:hover {
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.15), rgba(205, 180, 219, 0.15));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 143, 171, 0.15);
}

#copyright,
#privacy,
#disclaimer,
#security {
  border-left: 4px solid var(--pink-light);
}

#copyright p:last-child {
  margin-top: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.08), rgba(205, 180, 219, 0.08));
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--pink-dark);
  text-align: center;
  font-size: 0.9rem;
}

#security {
  border-left-color: var(--mint);
}

#disclaimer {
  border-left-color: var(--lemon);
}

#privacy {
  border-left-color: var(--sky);
}

footer {
  position: relative;
  z-index: 1;
  background: var(--footer-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 24px 28px;
  text-align: center;
  border-top: 1px solid rgba(255, 143, 171, 0.15);
  margin-top: 40px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--sky), var(--mint), var(--pink));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

footer p {
  font-size: 0.85rem;
  line-height: 1.9;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

footer p:last-child {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

footer p:last-child a {
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 143, 171, 0.12);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

footer p:last-child a:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 143, 171, 0.35);
}

footer p:last-child {
  color: transparent;
  font-size: 0;
}

footer p:last-child a + a::before {
  content: "·";
  color: rgba(255, 255, 255, 0.3);
  margin-right: 8px;
  position: relative;
  left: -8px;
}

@media (max-width: 1024px) {
  header nav {
    padding: 0 20px;
    height: 64px;
  }

  header nav > a {
    font-size: 1.3rem;
  }

  header nav ul li a {
    padding: 7px 10px;
    font-size: 0.85rem;
  }

  main {
    padding: 0 20px 48px;
  }

  #hero {
    padding: 56px 36px;
    margin: 24px 0 40px;
  }

  article > section:not(#hero) {
    padding: 32px 28px;
  }
}

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

  header nav {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }

  header nav > a {
    font-size: 1.35rem;
    align-self: flex-start;
  }

  header nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

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

  header nav ul li a {
    padding: 6px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  main {
    padding: 0 16px 40px;
  }

  #hero {
    padding: 44px 24px;
    margin: 20px 0 32px;
    border-radius: var(--radius-lg);
  }

  #hero::after {
    font-size: 80px;
    right: 10px;
    bottom: -10px;
  }

  #hero h1 {
    font-size: 1.45rem;
  }

  #hero > p {
    font-size: 0.92rem;
  }

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

  article > section:not(#hero) {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
  }

  article > section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  article > section h3 {
    font-size: 1.02rem;
    margin: 22px 0 10px;
  }

  article > section p {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  #news article,
  #articles article {
    padding: 18px 18px;
  }

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

  #faq h3 {
    padding: 14px 16px 14px 46px;
    font-size: 0.95rem;
  }

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

  #faq h3 + p {
    padding: 0 16px 0 46px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

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

  footer p {
    font-size: 0.8rem;
  }

  footer p:last-child {
    gap: 6px;
  }

  footer p:last-child a {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
}

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

  #hero {
    padding: 36px 18px;
    border-radius: var(--radius-md);
  }

  #hero h1 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  #hero > p {
    font-size: 0.86rem;
    line-height: 1.8;
  }

  #hero nav[aria-label="面包屑导航"] ol {
    gap: 4px;
  }

  #hero nav[aria-label="面包屑导航"] ol li a {
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  article > section:not(#hero) {
    padding: 20px 16px;
    border-radius: var(--radius-sm);
  }

  article > section h2 {
    font-size: 1.15rem;
    padding-left: 14px;
  }

  article > section h2::before {
    width: 4px;
  }

  article > section h3 {
    font-size: 0.96rem;
    padding: 10px 12px;
  }

  article > section p {
    font-size: 0.86rem;
    text-align: left;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  #editor p {
    padding: 6px 14px;
    font-size: 0.82rem;
  }
}

@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;
  }
}

@media print {
  header,
  footer,
  #hero::after,
  body::before {
    display: none;
  }

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

  article > section:not(#hero) {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}