@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ===== 基础变量 ===== */
:root {
  --clr-primary: #87ff71;
  --clr-secondary: #01cdfe;
  --clr-bg: #192617;
  --clr-bg2: #1e2e1a;
  --clr-bg3: #0f1a0e;
  --clr-surface: #1a2e18;
  --clr-surface2: #22381f;
  --clr-text: #d4f0cc;
  --clr-text-muted: #7a9e74;
  --clr-border: #2e4a28;
  --clr-neon-green: #87ff71;
  --clr-neon-cyan: #01cdfe;
  --clr-neon-pink: #ff71ce;
  --clr-neon-purple: #b967ff;

  --glow-green: 0 0 8px #87ff71, 0 0 24px rgba(135,255,113,0.4);
  --glow-cyan: 0 0 8px #01cdfe, 0 0 24px rgba(1,205,254,0.4);
  --glow-pink: 0 0 8px #ff71ce, 0 0 24px rgba(255,113,206,0.4);

  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;

  --nav-width: 260px;
  --radius: 0px;
  --transition: 0.2s ease;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-hero: clamp(2rem, 5vw, 4rem);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--clr-bg); color: var(--clr-text); font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.7; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-neon-cyan); text-decoration: none; transition: color var(--transition), text-shadow var(--transition); }
a:hover { color: var(--clr-neon-green); text-shadow: var(--glow-green); }
ul, ol, menu { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--clr-primary); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===== Scanlines effect ===== */
@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}
@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); clip-path: none; }
  92% { transform: translate(-2px, 1px); clip-path: inset(20% 0 60% 0); }
  94% { transform: translate(2px, -1px); clip-path: inset(60% 0 20% 0); }
  96% { transform: translate(-1px, 2px); clip-path: inset(40% 0 40% 0); }
}
@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to { background-position: 0 60px; }
}

/* ===== Grid background ===== */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(1,205,254,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,205,254,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridScroll 4s linear infinite;
}
.grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--clr-bg) 100%);
}

/* ===== Scanlines overlay ===== */
.scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  animation: scanlines 0.1s linear infinite;
}

/* ===== Site layout ===== */
.site-wrap { display: flex; min-height: 100vh; }

/* ===== Navigation ===== */
.nav-drawer {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--nav-width);
  background: var(--clr-bg3);
  border-right: 1px solid var(--clr-border);
  z-index: 100;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.nav-drawer summary { display: none; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--clr-border);
}
.nav-logo-mark { width: 32px; height: 32px; object-fit: contain; }
.brand-text {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-primary);
  text-shadow: var(--glow-green);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.nav-menu {
  padding: 16px 0;
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  min-height: 40px;
  line-height: 1.4;
}
.nav-menu li a:hover,
.nav-menu li a[aria-current="page"] {
  color: var(--clr-primary);
  border-left-color: var(--clr-primary);
  background: rgba(135,255,113,0.06);
  text-shadow: var(--glow-green);
}
.nav-cta { margin: 8px 16px 16px !important; }
.nav-cta a { display: block !important; text-align: center; padding: 0 !important; border-left: none !important; }
.hamburger { display: none; }

/* ===== Page body ===== */
.page-body {
  margin-left: var(--nav-width);
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column;
}

/* ===== Buttons ===== */
.btn-neon {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--clr-primary);
  color: var(--clr-primary) !important;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-shadow: var(--glow-green);
  box-shadow: inset 0 0 0 0 var(--clr-primary);
  min-height: 40px;
  line-height: 1.4;
}
.btn-neon:hover {
  background: rgba(135,255,113,0.12);
  box-shadow: var(--glow-green), inset 0 0 12px rgba(135,255,113,0.1);
  color: var(--clr-primary) !important;
}
.btn-neon.btn-lg { padding: 14px 32px; font-size: var(--fs-base); min-height: 48px; }
.btn-ghost {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted) !important;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 40px;
  line-height: 1.4;
}
.btn-ghost:hover { border-color: var(--clr-secondary); color: var(--clr-secondary) !important; text-shadow: var(--glow-cyan); }
.btn-ghost.btn-lg { padding: 14px 32px; font-size: var(--fs-base); min-height: 48px; }

/* ===== Badges ===== */
.page-type-badge, .eyebrow-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--clr-secondary);
  color: var(--clr-secondary);
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: var(--glow-cyan);
}
.eyebrow-badge { border-color: var(--clr-primary); color: var(--clr-primary); text-shadow: var(--glow-green); }

/* ===== HOME: Hero ===== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1f0b 0%, #192617 50%, #0a1a1f 100%);
}
.hero-media {
  position: relative;
  overflow: hidden;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--clr-bg) 100%),
              linear-gradient(180deg, rgba(25,38,23,0.3) 0%, transparent 30%);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0a1f1a 0%, #192617 100%);
  position: relative;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 80px 60px 80px 40px;
  position: relative;
  z-index: 1;
}
.hero-h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--clr-primary);
  text-shadow: var(--glow-green);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease both;
  max-width: 560px;
}
.hero-desc {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 440px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s 0.15s ease both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  animation: fadeInUp 0.8s 0.3s ease both;
}

/* ===== Main content layout ===== */
.main-content { flex: 1; padding: 0; }

.inner-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  align-items: start;
  flex: 1;
}
.inner-layout > .main-content { min-width: 0; }
.inner-layout > .sidebar {
  border-left: 1px solid var(--clr-border);
  min-height: 60vh;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 32px 20px;
  display: flex; flex-direction: column; gap: 32px;
}

/* ===== Sections ===== */
.content-section,
.ranking-section,
.review-section {
  padding: 60px 48px;
  border-bottom: 1px solid var(--clr-border);
  position: relative;
}
.content-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ===== Section headings ===== */
.section-heading {
  font-size: var(--fs-2xl);
  color: var(--clr-primary);
  text-shadow: var(--glow-green);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--clr-border);
  animation: glitch 8s infinite;
}
.section-heading span { display: inline; }
.page-h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--clr-primary);
  text-shadow: var(--glow-green);
  margin-bottom: 16px;
  font-weight: 700;
}

/* ===== Page header sections ===== */
.page-header-section,
.review-hero-section,
.compare-header-section,
.faq-header-section,
.about-header-section,
.privacy-header-section,
.default-header-section {
  padding: 60px 48px 40px;
  border-bottom: 1px solid var(--clr-border);
  background: linear-gradient(180deg, rgba(1,205,254,0.04) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.page-header-section::before,
.review-hero-section::before,
.compare-header-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(135,255,113,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135,255,113,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-header-fig,
.review-hero-fig,
.compare-header-fig,
.faq-header-fig,
.about-header-fig,
.privacy-header-fig,
.default-header-fig {
  position: relative; z-index: 1;
}
.page-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.pub-date, .mod-date {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
}
.page-desc {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 640px;
  margin-top: 12px;
}

/* ===== Prose content ===== */
.prose-content {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--clr-text);
  max-width: 720px;
}
.prose-content h2 {
  font-size: var(--fs-xl);
  color: var(--clr-primary);
  margin: 2em 0 0.75em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clr-border);
  text-shadow: 0 0 12px rgba(135,255,113,0.3);
}
.prose-content h2 span { display: inline; }
.prose-content h3 {
  font-size: var(--fs-lg);
  color: var(--clr-secondary);
  margin: 1.5em 0 0.5em;
  text-shadow: 0 0 8px rgba(1,205,254,0.3);
}
.prose-content h3 span { display: inline; }
.prose-content p { margin-bottom: 1.1em; }
.prose-content ul, .prose-content ol {
  margin: 0.75em 0 1.1em 1.5em;
  list-style: disc;
}
.prose-content ol { list-style: decimal; }
.prose-content li { margin-bottom: 0.4em; }
.prose-content a {
  color: var(--clr-secondary);
  border-bottom: 1px solid rgba(1,205,254,0.3);
}
.prose-content a:hover { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }
.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--fs-sm);
}
.prose-content th {
  background: var(--clr-surface2);
  color: var(--clr-primary);
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--clr-border);
  font-family: var(--font-heading);
}
.prose-content td {
  padding: 10px 14px;
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
}
.prose-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.prose-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--clr-secondary);
  background: rgba(1,205,254,0.05);
  color: var(--clr-text-muted);
  font-style: italic;
}

/* ===== HOME: Sections ===== */
.section-aside {
  border-right: 1px solid var(--clr-border);
  padding-right: 32px;
}
.aside-title {
  font-size: var(--fs-lg);
  color: var(--clr-secondary);
  margin-bottom: 16px;
  text-shadow: var(--glow-cyan);
}
.aside-title span { display: inline; }
.quick-nav { display: flex; flex-direction: column; gap: 6px; }
.quick-link {
  display: block;
  padding: 8px 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  border-bottom: 1px solid rgba(46,74,40,0.5);
  transition: all var(--transition);
  min-height: 40px;
  line-height: 1.4;
}
.quick-link:hover { color: var(--clr-primary); padding-left: 8px; }
.content-main { min-width: 0; }

/* ===== HOME: Rank cards ===== */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.rank-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.rank-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.rank-card:hover { border-color: var(--clr-primary); box-shadow: 0 4px 32px rgba(135,255,113,0.12); }
.rank-card:hover::before { transform: scaleX(1); }
.rank-num {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: rgba(135,255,113,0.15);
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.rank-card h3 {
  font-size: var(--fs-md);
  color: var(--clr-primary);
  margin-bottom: 8px;
}
.rank-card h3 span { display: inline; }
.rank-card p { font-size: var(--fs-sm); color: var(--clr-text-muted); margin-bottom: 16px; }
.link-arrow {
  font-size: var(--fs-sm);
  color: var(--clr-secondary);
  transition: all var(--transition);
}
.link-arrow:hover { color: var(--clr-primary); letter-spacing: 0.04em; }

/* ===== HOME: Review cards ===== */
.review-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card {
  background: var(--clr-bg2);
  border: 1px solid var(--clr-border);
  border-top: 2px solid var(--clr-secondary);
  padding: 24px;
  transition: all 0.3s ease;
}
.review-card:hover { border-color: var(--clr-secondary); box-shadow: 0 0 24px rgba(1,205,254,0.1); }
.review-card h3 { font-size: var(--fs-md); color: var(--clr-secondary); margin-bottom: 8px; text-shadow: 0 0 8px rgba(1,205,254,0.3); }
.review-card h3 span { display: inline; }
.review-card p { font-size: var(--fs-sm); color: var(--clr-text-muted); margin-bottom: 12px; }

/* ===== Ranking page sections ===== */
.ranking-tabs-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 60vh;
}
.rank-type-nav {
  border-right: 1px solid var(--clr-border);
  padding: 40px 24px;
}
.rank-type-nav h2 { font-size: var(--fs-lg); color: var(--clr-secondary); margin-bottom: 16px; }
.rank-type-nav h2 span { display: inline; }
.rank-tab-list { display: flex; flex-direction: column; gap: 2px; }
.rank-tab-list li a {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  border: 1px solid transparent;
  transition: all var(--transition);
  min-height: 40px; line-height: 1.4;
}
.rank-tab-list li a:hover,
.rank-tab-list li a.active {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
  background: rgba(135,255,113,0.06);
}
.rank-content { padding: 40px 48px; }

/* ===== Review page ===== */
.review-hero-fig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.review-hero-img { width: 100%; height: 320px; object-fit: cover; }
.hero-placeholder-sm {
  height: 320px;
  background: linear-gradient(135deg, #0d1f0b, #0a1a1f);
  position: relative;
  overflow: hidden;
}
.review-hero-cap { padding: 20px 0; }
.review-body-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--clr-border);
}
.toc-aside {
  border-right: 1px solid var(--clr-border);
  padding: 0 24px 0 48px;
}
.toc-aside h2 { font-size: var(--fs-lg); color: var(--clr-secondary); margin-bottom: 8px; }
.toc-aside h2 span { display: inline; }
.toc-hint { font-size: var(--fs-xs); color: var(--clr-text-muted); }
.review-body-section > .prose-content { padding: 0 48px; }
.review-nav-section, .related-section, .compare-footer-section, .faq-related-section, .about-nav-section { padding: 40px 48px; border-bottom: 1px solid var(--clr-border); }
.review-nav-aside h2, .related-aside h2, .compare-nav-aside h2, .faq-quick-aside h2, .about-aside h2 { font-size: var(--fs-lg); color: var(--clr-secondary); margin-bottom: 16px; }
.review-nav-aside h2 span, .related-aside h2 span, .compare-nav-aside h2 span, .faq-quick-aside h2 span, .about-aside h2 span { display: inline; }
.review-nav-aside menu li, .related-aside menu li, .faq-quick-aside nav ul li, .about-aside h2 { }
.review-nav-aside menu li a, .related-aside menu li a {
  display: block; padding: 8px 0; color: var(--clr-text-muted); font-size: var(--fs-sm);
  border-bottom: 1px solid rgba(46,74,40,0.4); min-height: 40px; line-height: 1.4;
  transition: all var(--transition);
}
.review-nav-aside menu li a:hover, .related-aside menu li a:hover { color: var(--clr-primary); padding-left: 8px; }

/* ===== Compare page ===== */
.compare-vs-deco {
  display: flex; align-items: center; gap: 24px; margin-bottom: 24px;
}
.vs-a, .vs-b {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--clr-primary);
  text-shadow: var(--glow-green);
}
.vs-sep {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--clr-secondary);
  text-shadow: var(--glow-cyan);
}
.compare-body-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--clr-border);
}
.compare-nav-aside {
  border-right: 1px solid var(--clr-border);
  padding: 0 24px 0 48px;
}
.compare-body-section > .prose-content { padding: 0 48px; }
.next-steps-aside h2 { font-size: var(--fs-lg); color: var(--clr-secondary); margin-bottom: 12px; }
.next-steps-aside h2 span { display: inline; }
.next-steps-aside p { font-size: var(--fs-sm); color: var(--clr-text-muted); margin-bottom: 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.compare-nav-aside menu li a { display: block; padding: 8px 0; color: var(--clr-text-muted); font-size: var(--fs-sm); min-height: 40px; line-height: 1.4; transition: all var(--transition); border-bottom: 1px solid rgba(46,74,40,0.4); }
.compare-nav-aside menu li a:hover { color: var(--clr-primary); padding-left: 8px; }

/* ===== FAQ page ===== */
.faq-body-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--clr-border);
}
.faq-quick-aside {
  border-right: 1px solid var(--clr-border);
  padding: 0 24px 0 48px;
}
.faq-body-section > .prose-content { padding: 0 48px; }
.faq-quick-aside nav ul li a { display: block; padding: 8px 0; color: var(--clr-text-muted); font-size: var(--fs-sm); min-height: 40px; line-height: 1.4; transition: all var(--transition); border-bottom: 1px solid rgba(46,74,40,0.4); }
.faq-quick-aside nav ul li a:hover { color: var(--clr-primary); }
.faq-index-section { padding: 40px 48px; border-bottom: 1px solid var(--clr-border); }
.faq-index-section h2 { font-size: var(--fs-xl); color: var(--clr-primary); margin-bottom: 24px; text-shadow: var(--glow-green); }
.faq-index-section h2 span { display: inline; }
.faq-dl { display: grid; gap: 0; }
.faq-dl dt { padding: 12px 0 4px; }
.faq-dl dt a { font-size: var(--fs-md); font-family: var(--font-heading); color: var(--clr-secondary); }
.faq-dl dt a:hover { color: var(--clr-primary); }
.faq-dl dd { font-size: var(--fs-sm); color: var(--clr-text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--clr-border); margin-left: 0; }

/* ===== About page ===== */
.about-deco { position: absolute; right: 60px; top: 40px; pointer-events: none; }
.deco-circle {
  display: block; border-radius: 50%;
  position: absolute;
}
.deco-circle.c1 { width: 120px; height: 120px; border: 1px solid rgba(135,255,113,0.15); top: 0; right: 0; }
.deco-circle.c2 { width: 80px; height: 80px; border: 1px solid rgba(1,205,254,0.15); top: 20px; right: 20px; }
.about-body-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--clr-border);
}
.about-aside {
  border-right: 1px solid var(--clr-border);
  padding: 0 24px 0 48px;
}
.about-body-section > .prose-content { padding: 0 48px; }
.about-info-dl dt { padding: 8px 0 2px; }
.about-info-dl dt a { font-size: var(--fs-sm); color: var(--clr-secondary); font-family: var(--font-heading); }
.about-info-dl dd { font-size: var(--fs-xs); color: var(--clr-text-muted); padding-bottom: 8px; border-bottom: 1px solid rgba(46,74,40,0.4); margin-left: 0; }
.about-links-aside h2 { font-size: var(--fs-lg); color: var(--clr-secondary); margin-bottom: 16px; }
.about-links-aside h2 span { display: inline; }
.about-links-aside menu li a { display: block; padding: 8px 0; color: var(--clr-text-muted); font-size: var(--fs-sm); min-height: 40px; line-height: 1.4; border-bottom: 1px solid rgba(46,74,40,0.3); transition: all var(--transition); }
.about-links-aside menu li a:hover { color: var(--clr-primary); padding-left: 8px; }

/* ===== Privacy page ===== */
.privacy-body-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--clr-border);
}
.privacy-aside {
  border-right: 1px solid var(--clr-border);
  padding: 0 24px 0 48px;
}
.privacy-body-section > .prose-content { padding: 0 48px; }
.privacy-aside h2 { font-size: var(--fs-md); color: var(--clr-secondary); margin: 0 0 8px; }
.privacy-aside h2 span { display: inline; }
.privacy-aside p { font-size: var(--fs-xs); color: var(--clr-text-muted); margin-bottom: 16px; }
.privacy-aside menu li a { display: block; padding: 8px 0; color: var(--clr-text-muted); font-size: var(--fs-sm); min-height: 40px; line-height: 1.4; border-bottom: 1px solid rgba(46,74,40,0.3); transition: all var(--transition); }
.privacy-aside menu li a:hover { color: var(--clr-primary); }

/* ===== Default page ===== */
.default-body-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 40px 0;
}
.default-aside {
  border-right: 1px solid var(--clr-border);
  padding: 0 24px 0 48px;
}
.default-aside h2 { font-size: var(--fs-lg); color: var(--clr-secondary); margin-bottom: 16px; }
.default-aside h2 span { display: inline; }
.default-aside menu li a { display: block; padding: 8px 0; color: var(--clr-text-muted); font-size: var(--fs-sm); min-height: 40px; line-height: 1.4; border-bottom: 1px solid rgba(46,74,40,0.3); transition: all var(--transition); }
.default-aside menu li a:hover { color: var(--clr-primary); }
.default-body-section > .prose-content { padding: 0 48px; }

/* ===== Sidebar ===== */
.sidebar-block { }
.sidebar-block h3 {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clr-border);
}
.sidebar-block h3 span { display: inline; }
.sidebar-block nav ul li a {
  display: block;
  padding: 7px 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  border-bottom: 1px solid rgba(46,74,40,0.3);
  transition: all var(--transition);
  min-height: 36px; line-height: 1.4;
}
.sidebar-block nav ul li a:hover,
.sidebar-block nav ul li a.active { color: var(--clr-primary); padding-left: 6px; }

/* ===== Neon decorative line ===== */
.neon-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), var(--clr-secondary), transparent);
  margin-bottom: 32px;
}
.deco-fig { margin: 0; }
.section-deco { margin: 0 0 32px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg3);
  padding: 20px 48px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { flex-shrink: 0; }
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--clr-primary);
  text-shadow: var(--glow-green);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.footer-nav {
  display: flex; gap: 20px; flex-wrap: wrap; flex: 1;
}
.footer-nav a {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
  min-height: 40px;
  display: inline-flex; align-items: center;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--clr-primary); }
.footer-copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin: 0;
  flex-shrink: 0;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Related links ===== */
.related-link {
  display: block;
  padding: 8px 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  border-bottom: 1px solid rgba(46,74,40,0.4);
  min-height: 40px; line-height: 1.4;
  transition: all var(--transition);
}
.related-link:hover { color: var(--clr-primary); padding-left: 8px; }

/* ===== Empty tip ===== */
.empty-tip { color: var(--clr-text-muted); font-size: var(--fs-sm); padding: 20px 0; }

/* ===== Responsive: tablet ===== */
@media (max-width: 1024px) {
  .inner-layout { grid-template-columns: 1fr; }
  .inner-layout > .sidebar {
    position: static; max-height: none; overflow-y: visible;
    border-left: none; border-top: 1px solid var(--clr-border);
    flex-direction: row; flex-wrap: wrap; gap: 24px;
    padding: 24px 32px;
  }
  .sidebar-block { min-width: 200px; flex: 1; }
  .ranking-tabs-section { grid-template-columns: 1fr; }
  .rank-type-nav { border-right: none; border-bottom: 1px solid var(--clr-border); padding: 24px 32px; }
  .rank-tab-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .rank-tab-list li a { min-height: auto; padding: 8px 14px; }
  .rank-content { padding: 32px; }
  .review-hero-fig { grid-template-columns: 1fr; }
  .review-body-section,
  .compare-body-section,
  .faq-body-section,
  .about-body-section,
  .privacy-body-section,
  .default-body-section,
  .content-section { grid-template-columns: 1fr; }
  .section-aside,
  .toc-aside,
  .compare-nav-aside,
  .faq-quick-aside,
  .about-aside,
  .privacy-aside,
  .default-aside,
  .rank-type-nav {
    border-right: none; border-bottom: 1px solid var(--clr-border);
    padding: 0 32px 24px !important;
  }
  .review-body-section > .prose-content,
  .compare-body-section > .prose-content,
  .faq-body-section > .prose-content,
  .about-body-section > .prose-content,
  .privacy-body-section > .prose-content,
  .default-body-section > .prose-content { padding: 24px 32px; }
}

/* ===== Responsive: mobile ===== */
@media (max-width: 768px) {
  :root { --nav-width: 0px; }

  .nav-drawer {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
  }
  .nav-drawer summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    border-bottom: none;
  }
  .nav-drawer summary::-webkit-details-marker { display: none; }
  .hamburger { display: block; font-size: var(--fs-xl); color: var(--clr-primary); }
  .nav-brand { padding: 0; border-bottom: none; }
  .nav-menu {
    padding: 8px 0 16px;
    border-top: 1px solid var(--clr-border);
  }
  .nav-menu li a { padding: 12px 20px; font-size: var(--fs-base); min-height: 48px; }
  .nav-cta { margin: 12px 16px 8px !important; }

  .site-wrap { flex-direction: column; }
  .page-body { margin-left: 0; }

  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { height: 260px; }
  .hero-content {
    align-items: flex-start;
    text-align: left;
    padding: 40px 24px;
  }
  .hero-cta { justify-content: flex-start; }
  .hero-h1 { font-size: clamp(1.5rem, 7vw, 2.5rem); }

  .content-section,
  .ranking-section,
  .review-section,
  .page-header-section,
  .review-hero-section,
  .compare-header-section,
  .faq-header-section,
  .about-header-section,
  .privacy-header-section,
  .default-header-section { padding: 32px 20px; }

  .ranking-section,
  .review-section { padding: 32px 20px; }

  .rank-grid { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; }

  .review-body-section > .prose-content,
  .compare-body-section > .prose-content,
  .faq-body-section > .prose-content,
  .about-body-section > .prose-content,
  .privacy-body-section > .prose-content,
  .default-body-section > .prose-content { padding: 20px; }

  .section-aside,
  .toc-aside,
  .compare-nav-aside,
  .faq-quick-aside,
  .about-aside,
  .privacy-aside,
  .default-aside { padding: 0 20px 20px !important; }

  .rank-content { padding: 20px; }

  .review-nav-section,
  .related-section,
  .compare-footer-section,
  .faq-related-section,
  .about-nav-section,
  .faq-index-section { padding: 24px 20px; }

  .inner-layout > .sidebar { padding: 20px; }

  .site-footer { padding: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { gap: 12px; }
  .footer-nav a { min-height: 44px; }

  .prose-content { max-width: 100%; }

  .compare-vs-deco { gap: 16px; }
  .vs-a, .vs-b { font-size: var(--fs-2xl); }
  .vs-sep { font-size: var(--fs-xl); }
}

@media (max-width: 480px) {
  .hero-content { padding: 28px 16px; }
  .hero-h1 { font-size: 1.75rem; }
  .section-heading { font-size: var(--fs-xl); }
  .page-h1 { font-size: 1.5rem; }
  .footer-logo-text { font-size: var(--fs-lg); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grid-bg { animation: none; }
  .scanlines { animation: none; }
  .section-heading { animation: none; }
}
