:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --accent: #ec4899;
  --accent-light: #f472b6;
  --bg: #f8f7fc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.5);
  --text: #1e1b2e;
  --text-secondary: #4a4458;
  --text-muted: #7c7590;
  --border: rgba(109, 40, 217, 0.12);
  --shadow-sm: 0 2px 8px rgba(109, 40, 217, 0.08);
  --shadow-md: 0 8px 24px rgba(109, 40, 217, 0.12);
  --shadow-lg: 0 16px 48px rgba(109, 40, 217, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-hero: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 35%, #ec4899 70%, #f472b6 100%);
  --gradient-card: linear-gradient(145deg, rgba(109, 40, 217, 0.06), rgba(236, 72, 153, 0.04));
  --gradient-accent: linear-gradient(135deg, #8b5cf6, #ec4899);
  --max-width: 1200px;
  --nav-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d1a;
    --bg-card: #1a1728;
    --bg-glass: rgba(26, 23, 40, 0.78);
    --bg-glass-border: rgba(139, 92, 246, 0.18);
    --text: #ede9f5;
    --text-secondary: #b8b0cc;
    --text-muted: #8a82a0;
    --border: rgba(139, 92, 246, 0.16);
    --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);
    --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -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 80% 60% at 10% 5%, rgba(109, 40, 217, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(236, 72, 153, 0.06), transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(139, 92, 246, 0.05), transparent);
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--transition);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(ellipse 80% 60% at 10% 5%, rgba(109, 40, 217, 0.15), transparent),
      radial-gradient(ellipse 60% 50% at 90% 20%, rgba(236, 72, 153, 0.1), transparent),
      radial-gradient(ellipse 70% 60% at 50% 100%, rgba(139, 92, 246, 0.08), transparent);
  }
}

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

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

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

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

ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--primary-light);
}

/* Skip link */
body > a:first-child {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition);
}

body > a:first-child:focus {
  top: 16px;
  color: #fff;
}

/* ============ HEADER / NAV ============ */
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(--bg-glass-border);
  transition: background var(--transition), box-shadow var(--transition);
}

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

nav[aria-label="主导航"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

nav[aria-label="主导航"] > div:first-child a {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  display: inline-block;
}

nav[aria-label="主导航"] > div:first-child a:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

nav[aria-label="主导航"] ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav[aria-label="主导航"] ul li {
  margin: 0;
}

nav[aria-label="主导航"] ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

nav[aria-label="主导航"] ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: transform var(--transition);
}

nav[aria-label="主导航"] ul li a:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.06);
  transform: translateY(-1px);
}

nav[aria-label="主导航"] ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============ MAIN ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main section {
  margin-bottom: 72px;
  animation: fadeInUp 0.7s ease both;
}

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

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

/* ============ HERO ============ */
#hero {
  position: relative;
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

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

#hero p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  max-width: 780px;
  opacity: 0.95;
  margin-bottom: 32px;
}

#hero > div {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#hero > div:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

#hero > div img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ============ SECTION HEADINGS ============ */
main section > h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

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

main section:hover > h2::after {
  width: 120px;
}

main section > h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.45;
  position: relative;
  padding-left: 16px;
}

main section > h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1em;
  background: var(--gradient-accent);
  border-radius: 4px;
}

main section > p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.85;
}

main section ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

main section ul li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  line-height: 1.75;
}

main section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
  transition: transform var(--transition);
}

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

main section ol {
  padding-left: 1.6em;
  color: var(--text-secondary);
}

main section ol li {
  padding-left: 8px;
  line-height: 1.75;
}

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

/* ============ CARDS ============ */
#brand,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#policy,
#meta-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#brand::before,
#products::before,
#solutions::before,
#applications::before,
#cases::before,
#news::before,
#articles::before,
#faq::before,
#howto::before,
#contact::before,
#sitemap::before,
#links::before,
#policy::before,
#meta-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

#brand:hover,
#products:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#policy:hover,
#meta-info:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.25);
}

#brand:hover::before,
#products:hover::before,
#solutions:hover::before,
#applications:hover::before,
#cases:hover::before,
#news:hover::before,
#articles:hover::before,
#faq:hover::before,
#howto:hover::before,
#contact:hover::before,
#sitemap:hover::before,
#links:hover::before,
#policy:hover::before,
#meta-info:hover::before {
  opacity: 1;
}

/* ============ ARTICLES ============ */
#articles article {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}

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

#articles article:hover::after {
  transform: scaleY(1);
}

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

#articles article h3::before {
  top: 0.3em;
}

#articles article p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}

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

#articles article a:hover {
  color: var(--accent);
  gap: 10px;
}

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

/* ============ CASES / BLOCKQUOTE ============ */
#cases blockquote {
  background: var(--gradient-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 24px;
  margin: 16px 0;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

#cases blockquote p {
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  line-height: 1.8;
}

#cases blockquote p::before {
  content: "“";
  font-size: 1.6em;
  color: var(--primary-light);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
  font-family: Georgia, serif;
}

/* ============ NEWS ============ */
#news h3 {
  margin-top: 28px;
}

#news p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#news p:first-of-type {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

/* ============ FAQ ============ */
#faq h3 {
  cursor: default;
  padding: 14px 18px 14px 34px;
  background: var(--gradient-card);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}

#faq h3::before {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 1.1em;
}

#faq h3:hover {
  background: rgba(109, 40, 217, 0.08);
  transform: translateX(4px);
}

#faq h3 + p {
  padding: 14px 18px 14px 34px;
  margin-bottom: 8px;
  border-left: 2px solid var(--border);
  margin-left: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--gradient-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  margin-bottom: 0;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(109, 40, 217, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(139, 92, 246, 0.3);
}

/* ============ CONTACT ============ */
#contact p {
  color: var(--text-secondary);
  line-height: 1.9;
}

#contact h3 {
  margin-top: 28px;
}

/* ============ SITEMAP / LINKS ============ */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

#sitemap ul li,
#links ul li {
  padding-left: 0;
}

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============ POLICY ============ */
#policy h2 {
  margin-top: 32px;
}

#policy h2:first-child {
  margin-top: 0;
}

#policy p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============ META INFO ============ */
#meta-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* ============ FOOTER ============ */
footer {
  margin-top: 40px;
  padding: 48px 24px 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--bg-glass-border);
  text-align: center;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
  line-height: 1.7;
}

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

footer a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient-accent);
  transition: width var(--transition);
}

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

footer a:hover::after {
  width: 100%;
}

/* ============ SCROLL REVEAL (CSS-only via animation) ============ */
@supports (animation-timeline: view()) {
  main section {
    animation: revealOnScroll linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  @keyframes revealOnScroll {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  #hero {
    padding: 48px 36px;
  }

  #brand,
  #products,
  #solutions,
  #applications,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #policy,
  #meta-info {
    padding: 32px 28px;
  }
}

@media (max-width: 820px) {
  nav[aria-label="主导航"] {
    flex-direction: column;
    height: auto;
    padding: 14px 20px;
    gap: 10px;
  }

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

  nav[aria-label="主导航"] ul li a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  html {
    scroll-padding-top: 120px;
  }
}

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

  main {
    padding: 0 16px;
  }

  main section {
    margin-bottom: 48px;
  }

  #hero {
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    margin-top: 24px;
    margin-bottom: 48px;
  }

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

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

  #brand,
  #products,
  #solutions,
  #applications,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #policy,
  #meta-info {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

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

  main section > h3 {
    font-size: 1.02rem;
    margin-top: 24px;
  }

  #articles article {
    padding: 18px 16px;
  }

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

  #howto ol li {
    padding: 12px 14px 12px 48px;
  }

  #howto ol li::before {
    left: 12px;
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

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

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

@media (max-width: 400px) {
  nav[aria-label="主导航"] ul li a {
    padding: 5px 7px;
    font-size: 0.76rem;
  }

  #hero {
    padding: 28px 18px;
  }

  #brand,
  #products,
  #solutions,
  #applications,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #policy,
  #meta-info {
    padding: 20px 14px;
  }
}

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

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ============ PRINT ============ */
@media print {
  header, footer, #hero::before, #hero::after {
    display: none;
  }

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

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

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}