:root {
  --bg-primary: #0f1020;
  --bg-secondary: #16172e;
  --bg-card: rgba(30, 31, 58, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #f4f5ff;
  --text-secondary: #b8b9d4;
  --text-muted: #8a8bab;
  --accent: #ff7a59;
  --accent-2: #34d399;
  --accent-3: #7c6cff;
  --gradient-1: linear-gradient(135deg, #0f1020 0%, #3b2a6b 50%, #6b3a8f 100%);
  --gradient-2: linear-gradient(135deg, #ff7a59 0%, #ff5c8a 100%);
  --gradient-3: linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1160px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f6fc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1b2e;
    --text-secondary: #4a4b6a;
    --text-muted: #7a7b9a;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --gradient-1: linear-gradient(135deg, #eef0ff 0%, #dce4ff 50%, #e8d9ff 100%);
  }
}

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

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(124, 108, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 122, 89, 0.08), transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(52, 211, 153, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

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

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

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

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 0.85em;
}

/* ===== Header / Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 32, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(255, 255, 255, 0.72);
  }
}

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

header nav > a[aria-label="午夜影院首页"] {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  transition: transform var(--transition), filter var(--transition);
}

header nav > a[aria-label="午夜影院首页"]:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
}

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

header nav ul li a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

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

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

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

/* ===== Main ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  position: relative;
  z-index: 1;
}

main > section {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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; }
main > section:nth-child(11) { animation-delay: 0.55s; }
main > section:nth-child(12) { animation-delay: 0.6s; }
main > section:nth-child(13) { animation-delay: 0.65s; }
main > section:nth-child(14) { animation-delay: 0.7s; }
main > section:nth-child(15) { animation-delay: 0.75s; }

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

/* ===== Hero ===== */
#hero {
  background: var(--gradient-1);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

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

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.18), transparent 70%);
  border-radius: 50%;
  animation: floatOrb 10s ease-in-out infinite reverse;
  pointer-events: none;
}

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

#hero h1 {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 20%, #ffd6c9 60%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 20px rgba(255, 122, 89, 0.15);
}

@media (prefers-color-scheme: light) {
  #hero h1 {
    background: linear-gradient(135deg, #1a1b2e 20%, #6b3a8f 60%, #3b2a6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

#hero > p {
  position: relative;
  z-index: 2;
  max-width: 780px;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

@media (prefers-color-scheme: light) {
  #hero > p {
    color: #3a3b5a;
  }
}

#hero figure {
  position: relative;
  z-index: 2;
  margin-top: 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

#hero figure img {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  backdrop-filter: blur(4px);
}

/* ===== Breadcrumb ===== */
main > nav[aria-label="面包屑导航"] {
  margin: 1.25rem 0;
  opacity: 0;
  animation: fadeUp 0.6s 0.08s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

main > nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--text-muted);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

/* ===== Section Cards ===== */
main > section:not(#hero):not(#breadcrumb) {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

main > section:not(#hero):hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

main > section h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

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

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

main > section h3 {
  margin: 1.5rem 0 0.6rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 0.85rem;
}

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

/* ===== Lists ===== */
main > section ul,
main > section ol {
  padding-left: 0;
  margin: 0.75rem 0;
}

main > section ul li,
main > section ol li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

main > section ol {
  counter-reset: item;
}

main > section ol li {
  counter-increment: item;
}

main > section ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-2);
  border-radius: 50%;
  line-height: 1;
}

main > section ul li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

main > section ul li:hover,
main > section ol li:hover {
  color: var(--text-primary);
  padding-left: 2rem;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
}

main > section ul li:last-child,
main > section ol li:last-child {
  border-bottom: none;
}

/* ===== Blockquote ===== */
blockquote {
  margin: 1rem 0;
  padding: 1.1rem 1.35rem;
  background: var(--bg-glass);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  position: relative;
}

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

blockquote:hover {
  transform: translateX(4px);
  border-left-color: var(--accent-2);
  background: var(--bg-glass-hover);
}

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

blockquote cite {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  text-align: right;
  padding-left: 1.5rem;
}

blockquote cite::before {
  content: "— ";
}

/* ===== Articles ===== */
#articles article {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

#articles article:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  background: var(--bg-glass-hover);
}

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

#articles article h3 {
  margin-top: 0;
  padding-left: 0;
}

#articles article h3::before {
  display: none;
}

#articles article p {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

#articles article p:first-of-type::before {
  content: "📅 ";
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

#articles article a:hover {
  background: var(--gradient-2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 122, 89, 0.35);
}

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

/* ===== FAQ ===== */
#faq details {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition);
}

#faq details:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

#faq details[open] {
  border-color: rgba(255, 122, 89, 0.35);
  box-shadow: 0 4px 20px rgba(255, 122, 89, 0.1);
}

#faq summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition);
  position: relative;
}

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

#faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--transition);
  line-height: 1;
}

#faq details[open] summary::after {
  content: "−";
  background: var(--gradient-2);
  color: #fff;
  border-color: transparent;
  transform: rotate(180deg);
}

#faq summary:hover {
  color: var(--accent);
}

#faq details p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.92rem;
  animation: slideDown 0.35s ease;
}

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

/* ===== News ===== */
#news h3 {
  margin-top: 1.25rem;
}

#news p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#news p:first-of-type::before {
  content: "🕐 ";
}

/* ===== Contact ===== */
#contact p {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
  transition: all var(--transition);
}

#contact p:hover {
  padding-left: 0.5rem;
  color: var(--text-primary);
}

#contact p:last-of-type {
  border-bottom: none;
}

/* ===== Sitemap & Links ===== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}

#sitemap ul li,
#links ul li {
  padding: 0;
  border-bottom: none;
}

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

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 0.6rem 0.9rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-align: center;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--gradient-2);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 89, 0.3);
}

/* ===== Legal ===== */
#legal h3 {
  margin-top: 1.25rem;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

footer p:first-child {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-2);
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(255, 122, 89, 0.3);
}

footer a::before {
  content: "↑";
  font-size: 1rem;
  transition: transform var(--transition);
}

footer a:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255, 122, 89, 0.45);
}

footer a:hover::before {
  transform: translateY(-3px);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  border-radius: 8px;
}

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

/* ===== Selection ===== */
::selection {
  background: rgba(255, 122, 89, 0.35);
  color: var(--text-primary);
}

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ===== Responsive: Tablet ===== */
@media (max-width: 900px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul li a {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
  }

  #hero {
    padding: 2.25rem 1.5rem;
  }

  main > section:not(#hero) {
    padding: 1.6rem 1.25rem;
  }

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

/* ===== Responsive: Mobile ===== */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  main {
    padding: 0 0.85rem 1.5rem;
  }

  header nav {
    padding: 0.6rem 0.85rem;
  }

  header nav > a[aria-label="午夜影院首页"] {
    font-size: 1.1rem;
  }

  #hero {
    padding: 1.75rem 1.1rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
  }

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

  #hero figure {
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
  }

  #hero figcaption {
    font-size: 0.75rem;
    padding: 0.5rem 0.85rem;
  }

  main > section:not(#hero) {
    padding: 1.35rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
  }

  main > section h2 {
    font-size: 1.2rem;
  }

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

  main > section ul li,
  main > section ol li {
    font-size: 0.9rem;
    padding: 0.45rem 0 0.45rem 1.55rem;
  }

  blockquote {
    padding: 0.9rem 1rem;
  }

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

  #articles article {
    padding: 1rem 1.05rem;
  }

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

  #faq details p {
    padding: 0 1rem 0.95rem;
    font-size: 0.85rem;
  }

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

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

  footer {
    padding: 2rem 1rem;
  }

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

/* ===== Responsive: Small Mobile ===== */
@media (max-width: 380px) {
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

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

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

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

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