:root {
  --primary: #e94560;
  --primary-light: #ff6b81;
  --primary-dark: #c23152;
  --secondary: #0f3460;
  --accent: #533483;
  --bg: #f5f7fa;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a0;
  --border: rgba(26, 26, 46, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
  --shadow-glow: 0 0 40px rgba(233, 69, 96, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
  --gradient-card: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(83, 52, 131, 0.06));
  --gradient-btn: linear-gradient(135deg, #e94560, #c23152);
  --gradient-accent: linear-gradient(135deg, #533483, #0f3460);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0d0d1a;
  --bg-alt: #141428;
  --bg-card: rgba(26, 26, 46, 0.72);
  --bg-glass: rgba(26, 26, 46, 0.6);
  --text: #e8e8f0;
  --text-secondary: #b0b0c8;
  --text-muted: #707090;
  --border: rgba(255, 255, 255, 0.08);
  --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 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(233, 69, 96, 0.25);
  --gradient-hero: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 40%, #16213e 70%, #2a1a4a 100%);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(233, 69, 96, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(83, 52, 131, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img,
svg {
  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-light);
  opacity: 0.9;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 5px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-area {
  flex-shrink: 0;
}

.logo-area a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-area svg {
  border-radius: 50%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-area a:hover svg {
  transform: rotate(10deg) scale(1.08);
  box-shadow: var(--shadow-glow);
}

.site-name {
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

#main-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

#main-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
  transition: width var(--transition), left var(--transition);
}

#main-nav a:hover {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.06);
}

#main-nav a:hover::after {
  width: 60%;
  left: 20%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

#search-form {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

#search-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text);
  width: 180px;
  font-family: var(--font-sans);
}

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

#search-form button {
  border: none;
  background: var(--gradient-btn);
  color: #fff;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity var(--transition);
  white-space: nowrap;
}

#search-form button:hover {
  opacity: 0.88;
}

#dark-toggle,
#mobile-menu-btn {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

#dark-toggle:hover,
#mobile-menu-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

#mobile-menu-btn {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section h2 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

#hero {
  max-width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: heroFadeUp 0.8s ease-out both;
}

.hero-lead {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.85;
  animation: heroFadeUp 0.8s ease-out 0.15s both;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 100px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e94560, #ff6b81, #ffa07a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
}

.hero-banner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: heroFadeUp 0.8s ease-out 0.45s both;
}

.banner-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner-slide.active {
  display: block;
  opacity: 1;
  animation: bannerFade 0.6s ease;
}

@keyframes bannerFade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.banner-slide svg {
  width: 100%;
  height: auto;
  display: block;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 0;
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--primary);
}

article {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, 0.2);
}

article:hover::before {
  transform: scaleX(1);
}

article h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

article h4 {
  margin: 1.2rem 0 0.6rem;
  color: var(--primary);
  font-size: 1rem;
}

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

article ul,
article ol {
  margin: 0.75rem 0 1rem 1.25rem;
  color: var(--text-secondary);
}

article ul li,
article ol li {
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 0.5rem;
}

article ul li::before {
  content: "▸";
  position: absolute;
  left: -1rem;
  color: var(--primary);
  font-weight: 700;
}

article ol {
  list-style: decimal;
}

article ol li {
  padding-left: 0.25rem;
}

article ol li::marker {
  color: var(--primary);
  font-weight: 700;
}

#articles article {
  display: flex;
  flex-direction: column;
}

#articles article h3 a {
  color: var(--text);
  transition: color var(--transition);
}

#articles article h3 a:hover {
  color: var(--primary);
}

#articles article > p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}

#articles article > a:last-child:hover {
  gap: 0.6rem;
  color: var(--primary-light);
}

blockquote {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

blockquote p {
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  padding-left: 1.5rem;
}

#faq details {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.25);
}

#faq summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background var(--transition), color var(--transition);
  list-style: none;
  position: relative;
}

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

#faq summary::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

#faq details[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}

#faq summary:hover {
  background: rgba(233, 69, 96, 0.05);
  color: var(--primary);
}

#faq details p {
  padding: 0 1.5rem 1.25rem 3.75rem;
  animation: faqSlide 0.35s ease;
}

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

#howto ol {
  counter-reset: howto;
  list-style: none;
  margin-left: 0;
}

#howto ol li {
  counter-increment: howto;
  padding-left: 3rem;
  position: relative;
  margin-bottom: 1rem;
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

#howto ul li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

#contact address {
  font-style: normal;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

#contact address p {
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

#contact address strong {
  color: var(--text);
  min-width: 100px;
}

#sitemap nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

#sitemap nav > ul > li {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

#sitemap nav > ul > li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#sitemap nav > ul > li > a {
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.4rem;
}

#sitemap nav > ul > li > a:hover {
  color: var(--primary);
}

#sitemap nav ul ul {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.5rem;
}

#sitemap nav ul ul li {
  font-size: 0.82rem;
}

#sitemap nav ul ul a {
  color: var(--text-muted);
}

#sitemap nav ul ul a:hover {
  color: var(--primary);
}

#friend-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#friend-links a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#friend-links a:hover {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

#site-footer {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 0%, rgba(233, 69, 96, 0.12), transparent 60%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-section ul li {
  margin-bottom: 0.4rem;
}

.footer-section ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer-section ul a:hover {
  color: var(--primary-light);
  padding-left: 6px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 20px 50px rgba(233, 69, 96, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 1rem;
  }

  #main-nav ul {
    gap: 0.1rem;
  }

  #main-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
  }

  #search-input {
    width: 140px;
  }

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

  .hero-stats {
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
  }

  .logo-area {
    flex: 1;
  }

  #main-nav {
    order: 3;
    width: 100%;
    display: none;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  #main-nav.open {
    display: block;
    animation: navSlide 0.3s ease;
  }

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

  #main-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  #main-nav a {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  #search-form {
    display: none;
  }

  #mobile-menu-btn {
    display: flex;
  }

  #hero {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero-inner {
    padding: 2.5rem 1rem 2rem;
  }

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

  .hero-lead {
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
  }

  .hero-stats {
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-item {
    min-width: 70px;
  }

  section {
    padding: 2rem 1rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  article {
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius-md);
  }

  article:hover {
    transform: translateY(-2px);
  }

  blockquote {
    padding: 1.15rem 1.25rem;
  }

  blockquote p {
    padding-left: 0.75rem;
    font-size: 0.9rem;
  }

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

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

  #contact address {
    padding: 1.25rem 1.15rem;
  }

  #sitemap nav ul {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem 1.5rem;
  }

  .footer-bottom {
    padding: 1.25rem 1rem 1.5rem;
  }

  #back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.3rem;
  }

  .hero-lead {
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  section h2 {
    font-size: 1.15rem;
  }

  article h3 {
    font-size: 1.05rem;
  }

  .banner-slide svg text {
    font-size: 0.8em;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  #site-header,
  #back-to-top,
  #site-footer,
  #friend-links,
  #sitemap {
    display: none;
  }

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

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