/* ===== Global Styles ===== */
:root {
  /* Theme Colors - Unified Brand Colors */
  --color-primary: #2563EB; /* Primary Blue */
  --color-secondary: #1E40AF; /* Secondary Deep Blue */
  --color-primary-hover: #1D4ED8;
  --color-link: #2563EB;
  --color-bg: #F9FAFB; /* Background Gray */
  --color-text: #1F2937; /* Text Primary */
  --color-text-body: #1F2937;
  --color-text-secondary: #4B5563; /* Text Secondary */
  --color-border: #E5E7EB; /* Border Gray */
  --color-border-input: #D1D5DB;
  --color-hover-bg: #EFF6FF;
  --color-hover-border: #2563EB;
  --color-white: #FFFFFF;
  --color-gray-light: #F3F4F6;
  --color-gray-medium: #6B7280;
  
  /* Typography - System Fonts for Performance */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-h1: 32px;
  --font-size-h2: 24px;
  --font-size-h3: 20px;
  --line-height-base: 1.6;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition: 0.2s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Aliases used by nav (pages that only load global.css) */
  --brand-primary: var(--color-primary);
  --bg-primary: var(--color-white);
  --border-light: var(--color-border);
  --text-primary: var(--color-text);

  /* Layout */
  --container-padding-x: 20px;
  --site-chrome-mobile-height: 52px;
  /* Desktop logo row: 12px padding ×2 + 40px logo (matches header chrome) */
  --site-chrome-desktop-height: 64px;
  /* Content column: progressive widen on large desktops (home / tools / hub / guide / scenario) */
  --layout-max-width: 1080px;
}

@media (min-width: 1400px) {
  :root {
    --layout-max-width: 1200px;
  }
}

@media (min-width: 1600px) {
  :root {
    --layout-max-width: 1280px;
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
}

/* ===== Typography ===== */
h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--color-text);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text);
}

p {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
  width: 100%;
}

/* ===== Site chrome header (not article <header class="article-header">) ===== */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body > header .container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--container-padding-x);
  width: 100%;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--spacing-lg);
}

.logo-link,
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
  margin-right: var(--spacing-md);
}

body > header img {
  /* logo.svg viewBox 380×80 → lock aspect to avoid CLS while PNG/SVG swaps */
  height: 40px;
  width: 190px;
  aspect-ratio: 380 / 80;
  display: block;
  content: url('/assets/logo.svg');
}

/* Ads: Completion Zone ins hidden until fill; header banner uses separate body flag */
.header-ad-slot {
  display: none !important;
}

body:not([data-commercial-ads="on"]) .commercial-panel__mount ins.adsbygoogle {
  display: none !important;
}

/* Header banner: fixed chrome, reserved 468×60 (desktop >=1100px only) */
@media (min-width: 1100px) {
  header.site-header--banner {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    overflow: hidden;
    box-sizing: border-box;
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
  }

  header.site-header--banner .container {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
  }

  header.site-header--banner .header-content {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  header.site-header--banner .logo-link img,
  header.site-header--banner .site-logo img {
    height: 48px;
    width: 228px;
    aspect-ratio: 380 / 80;
  }

  .header-ad {
    width: 468px;
    height: 60px;
    min-width: 468px;
    min-height: 60px;
    max-width: 468px;
    max-height: 60px;
    margin-left: auto;
    flex: 0 0 468px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header-ad__mount {
    width: 468px;
    height: 60px;
    min-width: 468px;
    min-height: 60px;
    max-width: 468px;
    max-height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header-ad__mount .adsbygoogle {
    display: inline-block !important;
    width: 468px !important;
    height: 60px !important;
    max-width: 468px;
    max-height: 60px;
    overflow: hidden;
    vertical-align: middle;
  }
}

@media (max-width: 1099.98px) {
  .header-ad {
    display: none !important;
  }

  .desktop-leaderboard {
    display: none !important;
  }
}

/* Phase 1: Desktop Leaderboard — slot width matches Header/content column;
   creative stays fixed 728×90, centered in the content frame. */
.desktop-leaderboard {
  display: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-bottom: none;
  position: relative;
  z-index: 1;
}

@media (min-width: 1100px) {
  /* Static HTML shell reserves height during parse (before JS body attrs). */
  body[data-desktop-leaderboard] .desktop-leaderboard,
  .desktop-leaderboard[data-cp-desktop-leaderboard-static="1"]:not([hidden]) {
    display: block;
    /* 90 creative + frame padding + vertical rhythm — reserve before fill */
    min-height: 114px;
    padding: 10px 0 12px;
  }

  body[data-desktop-leaderboard="off"] .desktop-leaderboard,
  .desktop-leaderboard[hidden] {
    display: none !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .desktop-leaderboard__inner {
    box-sizing: border-box;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
    width: 100%;
  }

  /* Full content-column frame (= Header / main .container usable width) */
  .desktop-leaderboard__mount {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }

  .desktop-leaderboard__mount .adsbygoogle {
    display: inline-block !important;
    width: 728px !important;
    height: 90px !important;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    vertical-align: middle;
    flex: 0 0 auto;
  }
}

/* Header banner / leaderboard replaces legacy hub hero bottom slot */
body[data-header-banner] [data-ad-slot="hub_hero_bottom"],
body[data-desktop-leaderboard] [data-ad-slot="hub_hero_bottom"] {
  display: none !important;
}

/* 语义化广告位：预留高度降低 CLS；未开启广告时仍为可见占位条 */
.ad-slot.ad-slot--semantic {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px dashed #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
}

.ad-slot.ad-slot--semantic .ad-slot__inner {
  min-height: inherit;
}

.ad-slot.ad-slot--fill-ready {
  border: none;
  background: transparent;
}

.ad-slot.ad-slot--reserved-only {
  pointer-events: none;
}

/* 工具页：隐藏「Your Calculation Path」条；#calc-flow-container 仍供流程脚本更新 href */
#calc-flow-container > .calc-flow {
  display: none !important;
}

/* 历史脚本自动插入的几何位（非 data-ad-slot）默认隐藏 */
.ad-slot.ad-top,
.ad-slot.ad-inline,
.ad-slot.ad-bottom {
  display: none !important;
}

@media (max-width: 768px) {
  .header-content {
    justify-content: flex-start; /* Logo left on mobile */
  }
}

/* ===== Main Navigation ===== */
.main-navigation {
  background: transparent;
  border-bottom: none;
  margin-top: 0;
  position: sticky;
  top: 0;
  z-index: 99;
}

/*
 * Desktop: Logo | Nav in one row from first paint (no post-load DOM move).
 * Same net-height trick as mobile: sticky nav overlays header via negative margin
 * so document flow never includes a second chrome bar (avoids ~50–60px CLS).
 */
@media (min-width: 769px) {
  body > header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--site-chrome-desktop-height);
    min-height: var(--site-chrome-desktop-height);
    max-height: var(--site-chrome-desktop-height);
    box-sizing: border-box;
  }

  body > header .container {
    height: 100%;
    min-height: var(--site-chrome-desktop-height);
    max-height: var(--site-chrome-desktop-height);
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .main-navigation {
    position: sticky;
    top: 0;
    z-index: 101;
    height: var(--site-chrome-desktop-height);
    min-height: var(--site-chrome-desktop-height);
    max-height: var(--site-chrome-desktop-height);
    margin-top: calc(-1 * var(--site-chrome-desktop-height));
    background: transparent;
    pointer-events: none;
    box-sizing: border-box;
  }

  .main-navigation .container {
    height: var(--site-chrome-desktop-height);
    min-height: var(--site-chrome-desktop-height);
    max-height: var(--site-chrome-desktop-height);
    justify-content: flex-end;
    align-items: center;
    padding: 0 var(--container-padding-x);
    pointer-events: none;
    box-sizing: border-box;
  }

  .main-navigation .container::before,
  .main-navigation .container::after {
    display: none;
  }

  .main-navigation .nav-toggle {
    display: none !important;
  }

  .main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    pointer-events: auto;
  }

  .main-navigation .nav-menu a {
    display: block;
    padding: 10px 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    border-bottom: 1px solid transparent;
    border-radius: 4px;
    white-space: nowrap;
  }

  .main-navigation .nav-menu a:hover {
    color: var(--brand-primary);
    background: #f8fafb;
  }

  .main-navigation .nav-menu a.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    font-weight: 600;
  }

  /* Legacy: if an old session still moved .nav-menu into header, keep styles */
  body > header .header-content > .nav-menu {
    display: flex;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    gap: 28px;
    align-items: center;
    flex-wrap: nowrap;
  }

  body > header .header-content > .nav-menu a {
    display: block;
    padding: 10px 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    border-bottom: 1px solid transparent;
    border-radius: 4px;
    white-space: nowrap;
  }
}

.main-navigation .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
  width: 100%;
  position: relative;
}

/* Re-assert desktop overlay after base .container rules (must win cascade) */
@media (min-width: 769px) {
  .main-navigation .container {
    justify-content: flex-end;
    height: var(--site-chrome-desktop-height);
    min-height: var(--site-chrome-desktop-height);
    max-height: var(--site-chrome-desktop-height);
    pointer-events: none;
  }

  .main-navigation .container::before,
  .main-navigation .container::after {
    display: none;
  }

  .main-navigation .nav-menu {
    margin-left: auto;
    pointer-events: auto;
  }
}

/* Navigation surface (same width as hero content box) */
.main-navigation .container::before {
  content: "";
  position: absolute;
  left: var(--container-padding-x);
  right: var(--container-padding-x);
  top: 0;
  bottom: 0;
  background: #ffffff;
  /* Waldev-like: flat bar, no card chrome */
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
}

/* Divider only across the content box (same width as hero) */
.main-navigation .container::after {
  content: "";
  position: absolute;
  left: var(--container-padding-x);
  right: var(--container-padding-x);
  bottom: 0;
  height: 1px;
  background: #e5e7eb;
  z-index: 1;
}

/* Desktop chrome: hide nav surface chrome (must follow ::before/::after rules) */
@media (min-width: 769px) {
  .main-navigation .container::before,
  .main-navigation .container::after {
    content: none;
    display: none;
  }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  margin: var(--spacing-xs) 0;
  transition: color var(--transition-base);
  position: relative;
  z-index: 2;
}

.nav-toggle:hover {
  color: var(--brand-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 18px 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  transition: all var(--transition-base);
  position: relative;
  border-bottom: 1px solid transparent;
  border-radius: 4px;
}

.nav-menu a:hover {
  color: var(--brand-primary);
  background: #f8fafb;
}

.nav-menu a.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  font-weight: 600;
}

/* Mobile Navigation — single-row chrome (logo + hamburger), opaque drawer */
@media (max-width: 768px) {
  body > header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--site-chrome-mobile-height);
    min-height: var(--site-chrome-mobile-height);
    max-height: var(--site-chrome-mobile-height);
    padding: 0;
    box-sizing: border-box;
  }

  body > header .container {
    height: 100%;
    min-height: var(--site-chrome-mobile-height);
    max-height: var(--site-chrome-mobile-height);
    padding: 0 var(--container-padding-x);
    padding-right: calc(var(--container-padding-x) + 48px);
    box-sizing: border-box;
  }

  body > header img {
    height: 32px;
    width: 152px;
    aspect-ratio: 380 / 80;
  }

  /* Pull nav over header so logo + toggle share one 52px row (net height ≈ 0) */
  .main-navigation {
    position: sticky;
    top: 0;
    z-index: 101;
    height: var(--site-chrome-mobile-height);
    margin-top: calc(-1 * var(--site-chrome-mobile-height));
    background: transparent;
    pointer-events: none;
  }

  .main-navigation .container {
    height: var(--site-chrome-mobile-height);
    justify-content: flex-end;
    align-items: center;
    padding: 0 var(--container-padding-x);
    pointer-events: none;
  }

  .main-navigation .container::before,
  .main-navigation .container::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    border-top: 1px solid var(--color-border);
    z-index: 110;
    pointer-events: auto;
  }

  .nav-menu.active {
    max-height: 320px;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    padding: 14px 20px;
    border-bottom: none;
    width: 100%;
    color: var(--color-text);
  }

  .nav-menu a.active {
    background: #f8fafb;
    border-left: 3px solid var(--color-primary);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 98;
    pointer-events: auto;
  }
}

/* ===== Main Content ===== */
main {
  min-height: calc(100vh - 200px);
  padding: 0 0 var(--spacing-xl) 0;
}

/* Ensure article pages have enough top spacing to prevent header overlap */
main:has(.article-content) {
  padding-top: 0; /* Remove default padding, let article-content handle it */
}

/* Prevent header overlap on article pages - handled in components.css with padding-top */

/* ===== Hero Section ===== */
.hero-section {
  text-align: center;
  padding: 80px 20px; /* Increased vertical spacing */
  margin-top: 0;
  margin-bottom: var(--spacing-2xl);
  background: var(--color-white); /* White background, no gradient */
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-description {
  font-size: 20px; /* Slightly larger */
  color: #555; /* #555 as specified */
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-tagline {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0;
}

.hero-cta {
  margin-top: var(--spacing-xl);
}

.hero-cta-btn {
  font-size: 1.1rem;
  padding: var(--spacing-md) var(--spacing-xl);
  min-width: 200px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-search-wrap {
  max-width: 480px;
  margin: 1.5rem auto 0;
  position: relative;
}
.hero-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-family);
  border: 2px solid var(--color-border-input);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.hero-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.hero-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
}
.hero-search-results[hidden] {
  display: none !important;
}
.hero-search-results a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}
.hero-search-results a:last-child {
  border-bottom: none;
}
.hero-search-results a:hover,
.hero-search-results a:focus {
  background: var(--color-hover-bg);
  color: var(--color-primary);
}
.hero-search-results .search-result-type {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-left: 6px;
}

@media (max-width: 768px) {
  .hero-cta-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== Footer ===== */
footer {
  background-color: #F3F4F6; /* Light gray background */
  border-top: none; /* Remove border */
  padding: 30px 0;
  margin-top: 40px; /* 40px space above footer */
  font-size: 14px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  text-align: center; /* Center aligned */
}

.footer-section h3 {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: #6B7280; /* Footer text color */
  font-size: 14px;
  text-decoration: none;
}

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

/* Add separator between links */
.footer-section ul li:not(:last-child)::after {
  content: ' · ';
  color: #6B7280;
  margin-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  color: #6B7280; /* Footer text color */
  font-size: 14px;
}

.footer-bottom .site-affiliate-disclosure {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 28px;
    --font-size-h2: 22px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --container-padding-x: var(--spacing-md);
  }
  
  .container {
    padding: 0 var(--container-padding-x);
  }
  
  body > header {
    padding: 0;
    height: var(--site-chrome-mobile-height);
    min-height: var(--site-chrome-mobile-height);
    max-height: var(--site-chrome-mobile-height);
  }
  
  body > header img {
    height: 32px;
    width: 152px;
    aspect-ratio: 380 / 80;
  }
  
  main {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero-section h1 {
    font-size: 32px; /* 移动端保持较大字号，与桌面端比例协调 */
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-tagline {
    font-size: 14px;
  }
}

.hero-description {
  font-size: 20px; /* Slightly larger */
  color: #555; /* #555 as specified */
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-tagline {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0;
}

.hero-cta {
  margin-top: var(--spacing-xl);
}

.hero-cta-btn {
  font-size: 1.1rem;
  padding: var(--spacing-md) var(--spacing-xl);
  min-width: 200px;
}

@media (max-width: 768px) {
  .hero-cta-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== Footer ===== */
footer {
  background-color: #F3F4F6; /* Light gray background */
  border-top: none; /* Remove border */
  padding: 30px 0;
  margin-top: 40px; /* 40px space above footer */
  font-size: 14px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  text-align: center; /* Center aligned */
}

.footer-section h3 {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: #6B7280; /* Footer text color */
  font-size: 14px;
  text-decoration: none;
}

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

/* Add separator between links */
.footer-section ul li:not(:last-child)::after {
  content: ' · ';
  color: #6B7280;
  margin-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  color: #6B7280; /* Footer text color */
  font-size: 14px;
}

.footer-bottom .site-affiliate-disclosure {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 28px;
    --font-size-h2: 22px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --container-padding-x: var(--spacing-md);
  }
  
  .container {
    padding: 0 var(--container-padding-x);
  }
  
  body > header {
    padding: 0;
    height: var(--site-chrome-mobile-height);
    min-height: var(--site-chrome-mobile-height);
    max-height: var(--site-chrome-mobile-height);
  }
  
  body > header img {
    height: 32px;
    width: 152px;
    aspect-ratio: 380 / 80;
  }
  
  main {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero-section h1 {
    font-size: 32px; /* 移动端保持较大字号，与桌面端比例协调 */
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-tagline {
    font-size: 14px;
  }
}
