:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #14142b;
  --bg-tertiary: #1a1a3e;
  --bg-card: rgba(26, 26, 62, 0.55);
  --bg-glass: rgba(20, 20, 43, 0.72);
  --bg-glass-light: rgba(255, 255, 255, 0.06);
  --text-primary: #f0f0f8;
  --text-secondary: #b8b8d0;
  --text-tertiary: #8888a8;
  --accent-primary: #7c5cfc;
  --accent-secondary: #00d4ff;
  --accent-tertiary: #ff6b9d;
  --gradient-banner: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 35%, #1a1a3e 70%, #0d0d1a 100%);
  --gradient-accent: linear-gradient(135deg, #7c5cfc, #00d4ff);
  --gradient-hover: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(0, 212, 255, 0.1));
  --border-color: rgba(124, 92, 252, 0.18);
  --border-hover: rgba(124, 92, 252, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(124, 92, 252, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eeeef6;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.78);
    --bg-glass-light: rgba(0, 0, 0, 0.03);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-tertiary: #8888a8;
    --accent-primary: #6b4ce6;
    --accent-secondary: #0099cc;
    --accent-tertiary: #e0558a;
    --gradient-banner: linear-gradient(135deg, #e8e4ff 0%, #d4e8ff 35%, #e8e4ff 70%, #f5f5fa 100%);
    --gradient-hover: linear-gradient(135deg, rgba(107, 76, 230, 0.08), rgba(0, 153, 204, 0.06));
    --border-color: rgba(107, 76, 230, 0.15);
    --border-hover: rgba(107, 76, 230, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(107, 76, 230, 0.12);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  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 80% 50% at 20% 0%, rgba(124, 92, 252, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 212, 255, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: light) {
  body::before {
    background:
      radial-gradient(ellipse 80% 50% at 20% 0%, rgba(107, 76, 230, 0.05), transparent),
      radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 153, 204, 0.04), transparent);
  }
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

/* ===== HEADER ===== */
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-color);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-accent);
  opacity: 0.4;
}

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

header nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

header nav > a:first-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

header nav > a:first-child:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

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

header nav ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-light);
  transform: translateY(-1px);
}

header nav ul li a::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

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

/* ===== MAIN ===== */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== HERO / H1 ===== */
main > h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-align: center;
  padding: 80px 20px 32px;
  margin: 0 -24px 24px;
  position: relative;
  background: var(--gradient-banner);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  animation: fadeInDown 0.8s ease both;
}

main > h1::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 92, 252, 0.25), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.15), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 107, 157, 0.1), transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

main > h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0.6;
}

@media (prefers-color-scheme: light) {
  main > h1::before {
    background:
      radial-gradient(circle at 30% 40%, rgba(107, 76, 230, 0.1), transparent 50%),
      radial-gradient(circle at 70% 60%, rgba(0, 153, 204, 0.08), transparent 50%),
      radial-gradient(circle at 50% 80%, rgba(224, 85, 138, 0.06), transparent 50%);
  }
}

@keyframes heroGlow {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(15deg) scale(1.1); }
}

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

/* ===== HERO DESCRIPTION ===== */
main > p:first-of-type {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
  padding: 0 12px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

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

/* ===== BREADCRUMB ===== */
main > nav[aria-label="面包屑导航"] {
  margin-bottom: 48px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  padding: 10px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: fit-content;
}

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

main > nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--text-tertiary);
  font-size: 1.1rem;
  opacity: 0.5;
}

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

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

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

/* ===== SECTIONS ===== */
section {
  margin-bottom: 56px;
  animation: fadeInUp 0.6s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 100%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
    opacity: 1;
  }
}

section > h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-bottom: 16px;
  position: relative;
  color: var(--text-primary);
}

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

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

section > h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

section > h3::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--gradient-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

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

/* ===== CARDS (sections with card-like appearance) ===== */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#author {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ===== LISTS ===== */
section ul {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

section ul li {
  position: relative;
  padding: 10px 16px 10px 40px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  background: var(--bg-glass-light);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

section ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 8px rgba(124, 92, 252, 0.4);
}

section ul li:hover {
  background: var(--gradient-hover);
  border-color: var(--border-color);
  transform: translateX(4px);
  color: var(--text-primary);
}

section ol {
  counter-reset: item;
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

section ol li {
  counter-increment: item;
  position: relative;
  padding: 12px 16px 12px 52px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  background: var(--bg-glass-light);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

section ol li::before {
  content: counter(item);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(124, 92, 252, 0.35);
}

section ol li:hover {
  background: var(--gradient-hover);
  border-color: var(--border-color);
  transform: translateX(4px);
  color: var(--text-primary);
}

/* ===== ARTICLES ===== */
article {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

article:hover {
  border-color: var(--border-hover);
  background: var(--gradient-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color var(--transition-fast);
}

article:hover h3 {
  color: var(--accent-secondary);
}

article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  background: var(--bg-glass-light);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

article p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 4px 0;
  position: relative;
  transition: all var(--transition-fast);
}

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

article a:hover {
  color: var(--accent-secondary);
  gap: 8px;
}

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

/* ===== BLOCKQUOTE ===== */
blockquote {
  position: relative;
  padding: 20px 24px 20px 56px;
  margin: 16px 0;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

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

blockquote:hover {
  border-color: var(--border-hover);
  background: var(--gradient-hover);
  transform: translateX(4px);
}

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

/* ===== FAQ ===== */
#faq > h3 {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  transition: all var(--transition-fast);
}

#faq > h3::before {
  display: none;
}

#faq > h3 + p {
  padding: 16px 20px;
  margin: -16px 0 16px;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

#faq > h3:hover {
  background: var(--gradient-hover);
  border-color: var(--border-hover);
  color: var(--accent-secondary);
}

#faq > h3:hover + p {
  border-color: var(--border-hover);
}

/* ===== CONTACT ===== */
#contact h3 {
  margin-top: 20px;
}

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

#contact p:last-of-type {
  margin-bottom: 0;
}

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

#sitemap ul li,
#links ul li {
  padding: 12px 16px 12px 40px;
}

#sitemap ul li a,
#links ul li a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

#sitemap ul li:hover a,
#links ul li:hover a {
  color: var(--accent-secondary);
}

/* ===== LEGAL ===== */
#legal h2 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

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

#legal p {
  color: var(--text-tertiary);
  font-size: 0.88rem;
  line-height: 1.85;
}

/* ===== AUTHOR ===== */
#author p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

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

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-accent);
  opacity: 0.3;
}

footer > p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

footer nav ul li a {
  display: block;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

footer nav ul li a:hover {
  color: var(--accent-secondary);
  border-color: var(--border-color);
  background: var(--bg-glass-light);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  header nav {
    padding: 0 16px;
    height: 60px;
  }

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

  header nav ul {
    gap: 2px;
  }

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

  main {
    padding: 0 16px 60px;
  }

  main > h1 {
    padding: 60px 16px 28px;
    margin: 0 -16px 20px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  main > p:first-of-type {
    font-size: 0.95rem;
    padding: 0 8px;
  }

  section {
    margin-bottom: 40px;
  }

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

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

  section > h3 {
    font-size: 1rem;
    margin-top: 22px;
  }

  article {
    padding: 18px;
  }

  blockquote {
    padding: 16px 18px 16px 44px;
  }

  blockquote::before {
    font-size: 2.4rem;
    left: 12px;
    top: 6px;
  }

  footer {
    padding: 28px 16px;
  }

  footer nav ul {
    gap: 4px;
  }

  footer nav ul li a {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
}

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

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

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

  header nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    width: 100%;
  }

  header nav ul li a {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  main {
    padding: 0 12px 48px;
  }

  main > h1 {
    padding: 44px 12px 22px;
    margin: 0 -12px 16px;
    font-size: 1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  main > p:first-of-type {
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  main > nav[aria-label="面包屑导航"] {
    margin-bottom: 32px;
  }

  main > nav[aria-label="面包屑导航"] ol {
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
  }

  section {
    margin-bottom: 32px;
  }

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

  section > h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  section > h2::after {
    width: 40px;
    height: 2px;
  }

  section > h3 {
    font-size: 0.92rem;
    margin-top: 18px;
    gap: 8px;
  }

  section > h3::before {
    width: 3px;
    height: 14px;
  }

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

  section ul li,
  section ol li {
    padding: 8px 12px 8px 34px;
    font-size: 0.85rem;
  }

  section ul li::before {
    left: 12px;
    width: 6px;
    height: 6px;
  }

  section ol li {
    padding-left: 44px;
  }

  section ol li::before {
    left: 10px;
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  article {
    padding: 14px;
    border-radius: var(--radius-sm);
  }

  article h3 {
    font-size: 0.95rem;
  }

  article p {
    font-size: 0.84rem;
  }

  article time {
    font-size: 0.72rem;
  }

  blockquote {
    padding: 14px 14px 14px 38px;
    border-radius: var(--radius-sm);
  }

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

  blockquote p {
    font-size: 0.85rem;
  }

  #faq > h3 {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  #faq > h3 + p {
    padding: 12px 14px;
    margin: -12px 0 12px;
    font-size: 0.84rem;
  }

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

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

  #legal p {
    font-size: 0.82rem;
  }

  #author p {
    font-size: 0.84rem;
  }

  footer {
    padding: 24px 12px;
  }

  footer > p {
    font-size: 0.78rem;
    margin-bottom: 16px;
  }

  footer nav ul {
    gap: 2px;
  }

  footer nav ul li a {
    padding: 4px 10px;
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  header nav ul li a {
    padding: 4px 6px;
    font-size: 0.7rem;
  }

  main > h1 {
    font-size: 1.3rem;
  }

  section > h2 {
    font-size: 1rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  section {
    animation: none;
    opacity: 1;
  }
}

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

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

  main {
    max-width: 100%;
    padding: 0;
  }

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

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