:root {
  --green-50: #f0f9f1;
  --green-100: #dcf0de;
  --green-200: #b9e2bf;
  --green-300: #8ecf97;
  --green-400: #5cb96a;
  --green-500: #4caf50;
  --green-600: #3d8b40;
  --green-700: #2f6b32;
  --green-800: #1e4a21;
  --green-900: #0f2e11;
  --apple-red: #ff6b6b;
  --apple-yellow: #ffd93d;
  --apple-blue: #6bcbff;
  --bg-primary: #f7fbf7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef6ef;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.5);
  --text-primary: #1a2e1c;
  --text-secondary: #4a6b4d;
  --text-tertiary: #7a9a7d;
  --shadow-sm: 0 1px 3px rgba(30, 74, 33, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 74, 33, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 74, 33, 0.12);
  --shadow-glow: 0 0 30px rgba(76, 175, 80, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green-50: #0f1f10;
    --green-100: #152a17;
    --green-200: #1e3d21;
    --green-300: #2f6b32;
    --green-400: #4caf50;
    --green-500: #5cb96a;
    --green-600: #8ecf97;
    --green-700: #b9e2bf;
    --green-800: #dcf0de;
    --green-900: #f0f9f1;
    --bg-primary: #0d150e;
    --bg-secondary: #142016;
    --bg-tertiary: #1a2a1c;
    --bg-glass: rgba(20, 32, 22, 0.78);
    --bg-glass-border: rgba(76, 175, 80, 0.15);
    --text-primary: #e8f5e9;
    --text-secondary: #a5c9a8;
    --text-tertiary: #6b8f6e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(76, 175, 80, 0.08);
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(76, 175, 80, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(107, 203, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--green-500);
}

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

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(76, 175, 80, 0.25);
  color: var(--text-primary);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--green-300);
  border-radius: 5px;
  border: 2px solid var(--bg-tertiary);
}

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

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-smooth), box-shadow var(--transition-smooth);
}

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

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

header nav > a:first-child {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-700);
  background: linear-gradient(135deg, var(--green-600), var(--apple-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  padding: 8px 0;
  position: relative;
}

header nav > a:first-child::after {
  content: "🍏";
  -webkit-text-fill-color: initial;
  font-size: 1rem;
  margin-left: 4px;
  display: inline-block;
  animation: apple-bounce 3s ease-in-out infinite;
}

@keyframes apple-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-8deg); }
  75% { transform: translateY(-1px) rotate(5deg); }
}

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

header nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.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::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--apple-blue));
  border-radius: 2px;
  transition: width var(--transition-smooth), left var(--transition-smooth);
  transform: translateX(-50%);
}

header nav ul li a:hover {
  color: var(--green-600);
  background: rgba(76, 175, 80, 0.08);
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

main > article > h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 48px 0 40px;
  padding: 40px 36px;
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 40%, var(--apple-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s ease-out both;
}

main > article > h1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(107, 203, 255, 0.06));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(76, 175, 80, 0.12);
  z-index: -1;
}

main > article > h1::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.12), transparent 70%);
  border-radius: 50%;
  animation: float-orb 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.1); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}

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

section {
  margin-bottom: 56px;
  animation: fadeUp 0.7s ease-out both;
}

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

section > h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

section > h2::before {
  content: "";
  width: 5px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--green-500), var(--apple-blue));
  border-radius: 3px;
  flex-shrink: 0;
}

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

section > h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-700);
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--green-400);
  line-height: 1.5;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

section > h3:hover {
  border-left-color: var(--apple-blue);
  color: var(--green-600);
}

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

section > ul {
  margin: 16px 0 24px;
  padding: 0;
}

section > ul li {
  position: relative;
  padding: 12px 16px 12px 44px;
  margin-bottom: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

section > ul li::before {
  content: "🍏";
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 0.9rem;
  transition: transform var(--transition-bounce);
}

section > ul li:hover {
  transform: translateX(6px);
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: var(--shadow-md);
  background: var(--bg-tertiary);
}

section > ul li:hover::before {
  transform: scale(1.3) rotate(-10deg);
}

section > ul li strong {
  color: var(--green-700);
  font-weight: 700;
}

section > ol {
  counter-reset: step-counter;
  margin: 20px 0 28px;
  padding: 0;
}

section > ol li {
  counter-increment: step-counter;
  position: relative;
  padding: 18px 20px 18px 68px;
  margin-bottom: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

section > ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

section > ol li:hover {
  transform: translateX(6px);
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: var(--shadow-md);
}

section > ol li:hover::before {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.45);
}

section > ol li strong {
  color: var(--green-700);
  font-weight: 700;
}

#intro {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

#intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--apple-blue), var(--apple-yellow), var(--apple-red));
  background-size: 300% 100%;
  animation: rainbow-slide 6s linear infinite;
}

@keyframes rainbow-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

#intro > h2 {
  margin-top: 0;
}

blockquote {
  position: relative;
  margin: 24px 0;
  padding: 28px 28px 24px 56px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--green-400);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 10px;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--green-300);
  font-family: Georgia, serif;
  opacity: 0.6;
}

blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--apple-blue);
}

blockquote p {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.8;
}

blockquote footer {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-align: right;
  padding-right: 8px;
}

#news article,
#articles article {
  background: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--green-500), var(--apple-blue));
  border-radius: 0 4px 4px 0;
  transition: height var(--transition-smooth);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(76, 175, 80, 0.25);
}

#news article:hover::before,
#articles article:hover::before {
  height: 100%;
}

#news article h3,
#articles article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--green-600);
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  padding: 3px 10px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  font-weight: 500;
}

#news article p,
#articles article p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-600);
  padding: 6px 0;
  transition: all var(--transition-fast);
}

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

#news article a:hover,
#articles article a:hover {
  color: var(--green-500);
  gap: 10px;
}

#news article a:hover::after,
#articles article a:hover::after {
  transform: translateX(4px);
}

#faq h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-700);
  margin: 28px 0 10px;
  padding: 16px 20px 16px 48px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-glass-border);
  position: relative;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

#faq h3::before {
  content: "?";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: transform var(--transition-bounce);
}

#faq h3:hover {
  border-color: rgba(76, 175, 80, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: var(--bg-tertiary);
}

#faq h3:hover::before {
  transform: translateY(-50%) scale(1.15) rotate(15deg);
}

#faq h3 + p {
  margin: -6px 0 20px;
  padding: 16px 20px 16px 28px;
  background: var(--bg-tertiary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--bg-glass-border);
  border-top: none;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeUp 0.4s ease-out both;
}

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

#sitemap ul li,
#links ul li {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
}

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 12px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35);
}

#legal h2 {
  margin-top: 32px;
}

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

#legal p {
  padding: 20px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.85;
  box-shadow: var(--shadow-sm);
}

#updates {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.06), rgba(107, 203, 255, 0.04));
  border: 1px solid rgba(76, 175, 80, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px;
}

#updates p {
  display: inline-block;
  padding: 8px 18px;
  margin: 4px 8px 4px 0;
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-glass-border);
  transition: all var(--transition-fast);
}

#updates p:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(76, 175, 80, 0.3);
}

#author {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

#author p {
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--green-400);
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

#author p:hover {
  border-left-color: var(--apple-blue);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#contact h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-700);
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--green-400);
}

#contact p {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-glass-border);
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

#contact p:hover {
  transform: translateX(6px);
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: var(--shadow-md);
}

footer {
  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);
  padding: 40px 24px;
  text-align: center;
  margin-top: 40px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--apple-blue), var(--apple-yellow), var(--apple-red), var(--green-500));
  background-size: 400% 100%;
  animation: rainbow-slide 8s linear infinite;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.7;
}

footer p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

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

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

  main {
    padding: 0 20px 60px;
  }

  main > article > h1 {
    padding: 32px 28px;
    margin: 36px 0 32px;
  }

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

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

  body {
    font-size: 15px;
  }

  header nav {
    min-height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  header nav > a:first-child {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 6px 0;
  }

  header nav ul {
    width: 100%;
    justify-content: center;
    gap: 2px;
    padding-bottom: 4px;
  }

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

  main {
    padding: 0 16px 48px;
  }

  main > article > h1 {
    font-size: 1.4rem;
    padding: 24px 20px;
    margin: 24px 0 24px;
    border-radius: var(--radius-lg);
  }

  main > article > h1::after {
    width: 180px;
    height: 180px;
  }

  section {
    margin-bottom: 40px;
  }

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

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

  p {
    font-size: 0.9rem;
    text-align: left;
  }

  #intro {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  blockquote {
    padding: 22px 20px 18px 44px;
    border-radius: var(--radius-md);
  }

  blockquote::before {
    font-size: 2.5rem;
    left: 12px;
    top: 8px;
  }

  #news article,
  #articles article {
    padding: 22px 20px 18px;
    border-radius: var(--radius-md);
  }

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

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

  #faq h3 + p {
    padding: 14px 16px 14px 20px;
    font-size: 0.85rem;
  }

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

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

  #legal p {
    padding: 16px 18px;
    font-size: 0.85rem;
  }

  #updates {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  #updates p {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  #author {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  #author p {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  #contact p {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  footer {
    padding: 32px 16px;
  }

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

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

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

  main {
    padding: 0 12px 36px;
  }

  main > article > h1 {
    font-size: 1.2rem;
    padding: 20px 16px;
    margin: 16px 0 20px;
    border-radius: var(--radius-md);
  }

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

  section > h3 {
    font-size: 0.95rem;
  }

  section > ul li {
    padding: 10px 12px 10px 38px;
    font-size: 0.85rem;
  }

  section > ol li {
    padding: 14px 14px 14px 56px;
    font-size: 0.85rem;
  }

  section > ol li::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

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

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

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

@media print {
  header, footer, #sitemap, #links {
    display: none;
  }

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

  main > article > h1 {
    -webkit-text-fill-color: #000;
    color: #000;
  }

  section {
    break-inside: avoid;
  }
}