:root {
  --mushroom-primary: #7c3aed;
  --mushroom-primary-light: #a78bfa;
  --mushroom-primary-dark: #5b21b6;
  --mushroom-accent: #f59e0b;
  --mushroom-accent-light: #fbbf24;
  --mushroom-warm: #fb7185;
  --mushroom-warm-light: #fda4af;
  --mushroom-bg: #faf8ff;
  --mushroom-bg-alt: #f3f0fa;
  --mushroom-surface: #ffffff;
  --mushroom-surface-glass: rgba(255, 255, 255, 0.72);
  --mushroom-surface-glass-strong: rgba(255, 255, 255, 0.88);
  --mushroom-text: #1e1b2e;
  --mushroom-text-secondary: #4c4563;
  --mushroom-text-muted: #7c7590;
  --mushroom-border: rgba(124, 58, 237, 0.12);
  --mushroom-border-strong: rgba(124, 58, 237, 0.22);
  --mushroom-shadow-sm: 0 2px 8px rgba(91, 33, 182, 0.06);
  --mushroom-shadow: 0 4px 20px rgba(91, 33, 182, 0.08);
  --mushroom-shadow-md: 0 8px 32px rgba(91, 33, 182, 0.12);
  --mushroom-shadow-lg: 0 16px 48px rgba(91, 33, 182, 0.16);
  --mushroom-shadow-glow: 0 8px 32px rgba(124, 58, 237, 0.25);
  --mushroom-radius-sm: 8px;
  --mushroom-radius: 16px;
  --mushroom-radius-lg: 24px;
  --mushroom-radius-xl: 32px;
  --mushroom-radius-full: 9999px;
  --mushroom-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mushroom-font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
  --mushroom-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --mushroom-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --mushroom-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --mushroom-transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --mushroom-header-height: 72px;
  --mushroom-max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mushroom-primary: #a78bfa;
    --mushroom-primary-light: #c4b5fd;
    --mushroom-primary-dark: #7c3aed;
    --mushroom-accent: #fbbf24;
    --mushroom-accent-light: #fcd34d;
    --mushroom-warm: #fda4af;
    --mushroom-warm-light: #fecdd3;
    --mushroom-bg: #0f0d1a;
    --mushroom-bg-alt: #16132a;
    --mushroom-surface: #1c1830;
    --mushroom-surface-glass: rgba(28, 24, 48, 0.72);
    --mushroom-surface-glass-strong: rgba(28, 24, 48, 0.88);
    --mushroom-text: #f0edf8;
    --mushroom-text-secondary: #b8b0d0;
    --mushroom-text-muted: #8a82a8;
    --mushroom-border: rgba(167, 139, 250, 0.15);
    --mushroom-border-strong: rgba(167, 139, 250, 0.28);
    --mushroom-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --mushroom-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --mushroom-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --mushroom-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --mushroom-shadow-glow: 0 8px 32px rgba(167, 139, 250, 0.2);
  }
}

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

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

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

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(251, 113, 133, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(ellipse 80% 60% at 10% 0%, rgba(167, 139, 250, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 90% 20%, rgba(253, 164, 175, 0.05) 0%, transparent 55%),
      radial-gradient(ellipse 70% 60% at 50% 100%, rgba(251, 191, 36, 0.04) 0%, transparent 60%);
  }
}

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

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

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

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

ul, ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.75rem;
  border-radius: var(--mushroom-radius-full);
  background: linear-gradient(90deg, var(--mushroom-primary), var(--mushroom-warm), var(--mushroom-accent));
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 1.75rem;
}

h3:first-child {
  margin-top: 0;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
  color: var(--mushroom-primary-dark);
}

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

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

blockquote {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--mushroom-primary);
  border-radius: 0 var(--mushroom-radius) var(--mushroom-radius) 0;
  background: var(--mushroom-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--mushroom-shadow-sm);
  position: relative;
  transition: transform var(--mushroom-transition), box-shadow var(--mushroom-transition);
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--mushroom-shadow);
}

blockquote p {
  font-style: italic;
  color: var(--mushroom-text-secondary);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.25rem;
  left: 0.5rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--mushroom-primary);
  opacity: 0.12;
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--mushroom-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

::selection {
  background: rgba(124, 58, 237, 0.2);
  color: var(--mushroom-text);
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: rgba(167, 139, 250, 0.3);
  }
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--mushroom-surface-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--mushroom-border);
  transition: background var(--mushroom-transition), box-shadow var(--mushroom-transition), border-color var(--mushroom-transition);
}

header:hover {
  box-shadow: var(--mushroom-shadow);
}

header nav {
  max-width: var(--mushroom-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--mushroom-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

header nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mushroom-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
  transition: color var(--mushroom-transition-fast);
}

header nav > a:first-child::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(135deg, var(--mushroom-primary), var(--mushroom-warm));
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
  transition: transform var(--mushroom-transition-bounce), box-shadow var(--mushroom-transition);
}

header nav > a:first-child:hover::before {
  transform: rotate(-12deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
}

header nav > a:first-child:hover {
  color: var(--mushroom-primary);
}

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

header nav ul li a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mushroom-text-secondary);
  border-radius: var(--mushroom-radius-full);
  position: relative;
  transition: color var(--mushroom-transition-fast), background var(--mushroom-transition-fast), transform var(--mushroom-transition-fast);
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  border-radius: var(--mushroom-radius-full);
  background: linear-gradient(90deg, var(--mushroom-primary), var(--mushroom-warm));
  transition: transform var(--mushroom-transition);
}

header nav ul li a:hover {
  color: var(--mushroom-primary);
  background: rgba(124, 58, 237, 0.06);
  transform: translateY(-1px);
}

header nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

@media (prefers-color-scheme: dark) {
  header nav ul li a:hover {
    background: rgba(167, 139, 250, 0.1);
  }
}

/* ===== MAIN ===== */
main {
  max-width: var(--mushroom-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  margin: 2rem 0 3rem;
  padding: 4rem 2.5rem;
  border-radius: var(--mushroom-radius-xl);
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 30%, #ec4899 65%, #f59e0b 100%);
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--mushroom-shadow-lg), var(--mushroom-shadow-glow);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  z-index: -1;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  animation: heroFloat 12s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

#hero h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out both;
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 720px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out both;
}

#hero p:nth-child(2) {
  animation-delay: 0.15s;
}

#hero p:nth-child(3) {
  animation-delay: 0.3s;
}

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

/* ===== BREADCRUMB ===== */
nav[aria-label="面包屑导航"] {
  margin: 0 0 2rem;
}

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

nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "/";
  color: var(--mushroom-text-muted);
  opacity: 0.5;
  font-weight: 300;
}

nav[aria-label="面包屑导航"] ol li a {
  color: var(--mushroom-text-muted);
  font-weight: 500;
  transition: color var(--mushroom-transition-fast);
}

nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--mushroom-primary);
}

nav[aria-label="面包屑导航"] ol li:last-child {
  color: var(--mushroom-text-secondary);
  font-weight: 600;
}

/* ===== SECTIONS ===== */
main > section {
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--mushroom-surface-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-radius: var(--mushroom-radius-lg);
  border: 1px solid var(--mushroom-border);
  box-shadow: var(--mushroom-shadow-sm);
  transition: transform var(--mushroom-transition), box-shadow var(--mushroom-transition), border-color var(--mushroom-transition);
  position: relative;
  overflow: hidden;
}

main > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mushroom-primary), var(--mushroom-warm), var(--mushroom-accent));
  opacity: 0;
  transition: opacity var(--mushroom-transition);
  border-radius: var(--mushroom-radius-lg) var(--mushroom-radius-lg) 0 0;
}

main > section:hover {
  transform: translateY(-4px);
  box-shadow: var(--mushroom-shadow-md);
  border-color: var(--mushroom-border-strong);
}

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

main > section#hero {
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}

main > section#hero:hover {
  transform: none;
  box-shadow: none;
}

main > section#hero::before {
  display: none;
}

/* ===== ABOUT ===== */
#about h3 {
  color: var(--mushroom-primary-dark);
  padding-left: 1rem;
  border-left: 3px solid var(--mushroom-primary);
  border-radius: 0;
}

@media (prefers-color-scheme: dark) {
  #about h3 {
    color: var(--mushroom-primary-light);
  }
}

/* ===== PRODUCTS ===== */
#products h4 {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--mushroom-radius-full);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(251, 113, 133, 0.08));
  color: var(--mushroom-primary-dark);
  font-weight: 700;
  border: 1px solid var(--mushroom-border);
  transition: transform var(--mushroom-transition-bounce), box-shadow var(--mushroom-transition), background var(--mushroom-transition);
}

#products h4:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--mushroom-shadow-sm);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(251, 113, 133, 0.14));
}

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

/* ===== SOLUTIONS ===== */
#solutions h3 {
  position: relative;
  padding-left: 1.25rem;
}

#solutions h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mushroom-primary), var(--mushroom-warm));
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  transition: transform var(--mushroom-transition-bounce), box-shadow var(--mushroom-transition);
}

#solutions h3:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.2);
}

/* ===== CASES ===== */
#cases blockquote {
  margin: 1.5rem 0;
}

#cases blockquote:nth-of-type(1) { border-left-color: var(--mushroom-primary); }
#cases blockquote:nth-of-type(2) { border-left-color: var(--mushroom-warm); }
#cases blockquote:nth-of-type(3) { border-left-color: var(--mushroom-accent); }

#cases blockquote:nth-of-type(1)::before { color: var(--mushroom-primary); }
#cases blockquote:nth-of-type(2)::before { color: var(--mushroom-warm); }
#cases blockquote:nth-of-type(3)::before { color: var(--mushroom-accent); }

/* ===== NEWS ===== */
#news article {
  position: relative;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--mushroom-radius);
  background: var(--mushroom-surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mushroom-border);
  box-shadow: var(--mushroom-shadow-sm);
  transition: transform var(--mushroom-transition), box-shadow var(--mushroom-transition), border-color var(--mushroom-transition), background var(--mushroom-transition);
}

#news article:hover {
  transform: translateX(6px);
  box-shadow: var(--mushroom-shadow);
  border-color: var(--mushroom-border-strong);
  background: var(--mushroom-surface-glass-strong);
}

#news article h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  transition: color var(--mushroom-transition-fast);
}

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

#news article time {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

#news article p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== KNOWLEDGE ===== */
#knowledge h3 {
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--mushroom-border-strong);
}

/* ===== HOWTO ===== */
#howto h3 {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--mushroom-radius-sm);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(245, 158, 11, 0.08));
  font-size: 1rem;
  color: var(--mushroom-primary-dark);
  border: 1px solid var(--mushroom-border);
  transition: transform var(--mushroom-transition-bounce), box-shadow var(--mushroom-transition);
}

#howto h3:hover {
  transform: translateY(-2px);
  box-shadow: var(--mushroom-shadow-sm);
}

@media (prefers-color-scheme: dark) {
  #howto h3 {
    color: var(--mushroom-primary-light);
  }
}

/* ===== FAQ ===== */
#faq h3 {
  position: relative;
  padding: 1rem 1.25rem 1rem 2.75rem;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
  border-radius: var(--mushroom-radius);
  background: var(--mushroom-surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mushroom-border);
  font-size: 1rem;
  font-weight: 600;
  cursor: default;
  transition: transform var(--mushroom-transition), box-shadow var(--mushroom-transition), border-color var(--mushroom-transition), background var(--mushroom-transition);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mushroom-primary), var(--mushroom-warm));
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
  transition: transform var(--mushroom-transition-bounce), box-shadow var(--mushroom-transition);
}

#faq h3:hover {
  transform: translateX(4px);
  box-shadow: var(--mushroom-shadow);
  border-color: var(--mushroom-border-strong);
  background: var(--mushroom-surface-glass-strong);
}

#faq h3:hover::before {
  transform: translateY(-50%) scale(1.15) rotate(-8deg);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

#faq h3 + p {
  padding: 0.75rem 1.25rem 1rem 2.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mushroom-text-secondary);
  border-left: 2px solid var(--mushroom-border-strong);
  margin-left: 1rem;
  border-radius: 0 var(--mushroom-radius-sm) var(--mushroom-radius-sm) 0;
  transition: border-color var(--mushroom-transition), background var(--mushroom-transition);
}

#faq h3 + p:hover {
  border-left-color: var(--mushroom-primary);
  background: rgba(124, 58, 237, 0.03);
}

@media (prefers-color-scheme: dark) {
  #faq h3 + p:hover {
    background: rgba(167, 139, 250, 0.06);
  }
}

/* ===== CONTACT ===== */
#contact h3 {
  color: var(--mushroom-primary-dark);
}

@media (prefers-color-scheme: dark) {
  #contact h3 {
    color: var(--mushroom-primary-light);
  }
}

#contact p {
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

#contact p:first-of-type {
  font-weight: 700;
  color: var(--mushroom-text);
}

/* ===== SITEMAP ===== */
#sitemap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

#sitemap ul li a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--mushroom-radius);
  background: var(--mushroom-surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mushroom-border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mushroom-text-secondary);
  text-align: center;
  transition: transform var(--mushroom-transition-bounce), box-shadow var(--mushroom-transition), border-color var(--mushroom-transition), color var(--mushroom-transition-fast), background var(--mushroom-transition);
}

#sitemap ul li a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--mushroom-shadow);
  border-color: var(--mushroom-primary);
  color: var(--mushroom-primary);
  background: var(--mushroom-surface-glass-strong);
}

/* ===== LINKS ===== */
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#links ul li a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--mushroom-radius-full);
  background: var(--mushroom-surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mushroom-border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mushroom-text-secondary);
  transition: transform var(--mushroom-transition-bounce), box-shadow var(--mushroom-transition), border-color var(--mushroom-transition), color var(--mushroom-transition-fast), background var(--mushroom-transition);
}

#links ul li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--mushroom-shadow);
  border-color: var(--mushroom-primary);
  color: var(--mushroom-primary);
  background: var(--mushroom-surface-glass-strong);
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  background: var(--mushroom-surface-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--mushroom-border);
  padding: 3rem 1.5rem 2rem;
}

footer > section {
  max-width: var(--mushroom-max-width);
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--mushroom-radius);
  background: var(--mushroom-surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mushroom-border);
  transition: transform var(--mushroom-transition), box-shadow var(--mushroom-transition), border-color var(--mushroom-transition);
}

footer > section:hover {
  transform: translateY(-2px);
  box-shadow: var(--mushroom-shadow);
  border-color: var(--mushroom-border-strong);
}

footer > section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--mushroom-text);
}

footer > section h2::after {
  width: 32px;
  height: 3px;
  margin-top: 0.5rem;
}

footer > section p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--mushroom-text-muted);
  margin-bottom: 0;
}

footer > p {
  max-width: var(--mushroom-max-width);
  margin: 0 auto 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mushroom-text-muted);
  line-height: 1.6;
}

footer > p:last-child {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--mushroom-border);
  opacity: 0.8;
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

main > section {
  animation: slideInUp 0.7s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

main > section#hero {
  animation: fadeIn 0.8s ease-out both;
  animation-timeline: auto;
}

#news article {
  animation: slideInLeft 0.6s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

#news article:nth-child(2) { animation-delay: 0.05s; }
#news article:nth-child(3) { animation-delay: 0.1s; }
#news article:nth-child(4) { animation-delay: 0.15s; }
#news article:nth-child(5) { animation-delay: 0.2s; }
#news article:nth-child(6) { animation-delay: 0.25s; }
#news article:nth-child(7) { animation-delay: 0.3s; }
#news article:nth-child(8) { animation-delay: 0.35s; }
#news article:nth-child(9) { animation-delay: 0.4s; }
#news article:nth-child(10) { animation-delay: 0.45s; }

#faq h3 {
  animation: scaleIn 0.5s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

#sitemap ul li {
  animation: scaleIn 0.4s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 20%;
}

#links ul li {
  animation: scaleIn 0.4s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 20%;
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  main > section,
  #news article,
  #faq h3,
  #sitemap ul li,
  #links ul li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --mushroom-header-height: 64px;
  }

  main {
    padding: 0 1.25rem 3rem;
  }

  main > section {
    padding: 2rem;
  }

  #hero {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --mushroom-header-height: 60px;
  }

  header nav {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  header nav > a:first-child {
    font-size: 1.15rem;
  }

  header nav > a:first-child::before {
    width: 26px;
    height: 26px;
  }

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

  header nav ul li a {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
  }

  main {
    padding: 0 1rem 2.5rem;
  }

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

  #hero {
    padding: 2.5rem 1.5rem;
    border-radius: var(--mushroom-radius-lg);
    margin: 1.25rem 0 2rem;
  }

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

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

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

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

  #sitemap ul li a {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  #links ul {
    gap: 0.5rem;
  }

  #links ul li a {
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
  }

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

  footer > section {
    padding: 1rem 1.25rem;
  }

  #faq h3 {
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    font-size: 0.92rem;
  }

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

  #faq h3 + p {
    padding: 0.6rem 1rem 0.85rem 2.5rem;
    font-size: 0.88rem;
    margin-left: 0.75rem;
  }

  blockquote {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  header nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 0.1rem;
    flex-wrap: wrap;
  }

  header nav ul li a {
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
  }

  #hero {
    padding: 2rem 1.25rem;
    border-radius: var(--mushroom-radius);
  }

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

  #hero p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  main > section {
    padding: 1.25rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  h2::after {
    width: 36px;
    height: 3px;
  }

  #sitemap ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #links ul {
    flex-direction: column;
  }

  #links ul li a {
    display: block;
    text-align: center;
  }

  footer > section {
    padding: 0.85rem 1rem;
  }

  footer > section h2 {
    font-size: 0.9rem;
  }

  footer > section p {
    font-size: 0.78rem;
  }
}

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

  main > section,
  #news article,
  #faq h3,
  #sitemap ul li,
  #links ul li {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: high) {
  :root {
    --mushroom-border: rgba(124, 58, 237, 0.4);
    --mushroom-border-strong: rgba(124, 58, 237, 0.6);
    --mushroom-text-secondary: #2a2440;
    --mushroom-text-muted: #4c4563;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --mushroom-border: rgba(167, 139, 250, 0.5);
      --mushroom-border-strong: rgba(167, 139, 250, 0.7);
      --mushroom-text-secondary: #d0c8e8;
      --mushroom-text-muted: #b8b0d0;
    }
  }
}

/* ===== PRINT ===== */
@media print {
  header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

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

  #hero {
    background: #f0f0f0 !important;
    color: #000000 !important;
  }

  #hero h1,
  #hero p {
    color: #000000 !important;
    text-shadow: none !important;
  }
}