@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@500;600;700;900&display=swap');
/* ============================================================
   全国旅游攻略 — Editorial-Travel Design System v4.0
   Brand: 暖陶土 / 纸感编辑风
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* === Brand === */
  --brand: #BD4B2B;
  --brand-dark: #8F3517;
  --brand-light: #D9794F;
  --brand-glow: #E8B9A6;

  /* === Accent === */
  --accent-sunset: #C8772B;
  --accent-coral: #D6453B;
  --accent-green: #2E7D5B;
  --accent-teal: #1F6F6B;

  /* === Neutral === */
  --gray-50: #FBF8F4;
  --gray-100: #F3EEE7;
  --gray-200: #E9E1D6;
  --gray-300: #DAD0C2;
  --gray-400: #B8AB99;
  --gray-500: #8A7E6E;
  --gray-600: #6B6155;
  --gray-700: #4A423A;
  --gray-800: #332D28;
  --gray-900: #211C18;

  /* === Semantic === */
  --text: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  --text-inverse: #fff;

  --bg-page: #fff;
  --bg-alt: var(--gray-50);
  --border: var(--gray-200);
  --border-light: var(--gray-100);

  /* === Shadows — refined layered system === */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.04);
  --shadow-brand: 0 4px 16px rgba(189,75,43,0.25);

  /* === Radius === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* === Typography === */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-display: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* === Spacing === */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* === Easing === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;

  /* === Layout === */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease-out); }
a:hover { color: var(--brand-dark); }

/* === 无障碍：键盘焦点样式 === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

img { max-width: 100%; height: auto; display: block; }

/* === Editorial display serif for headings === */
h1, h2, h3, h4,
.nav-logo, .section-header h2, .page-hero h1, .hero-full h1,
.city-card .info h3, .card-body h3, .att-hero h1,
.footer-brand h3, .footer-col h4, .province-title,
.stat-num, .timeline-time, .hero-picker h1 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ---------- Typography ---------- */
.text-caption {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: var(--s3);
}

/* ---------- Navbar — Glass + Scroll effect ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  transition: all var(--dur-slow) var(--ease-out);
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--dur-slow) var(--ease-out);
}
.navbar.scrolled::before {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s6);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Nav logo — 长城与海 logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
  transition: opacity var(--dur) var(--ease-out);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(189,75,43,0.25));
  transition: transform var(--dur) var(--ease-out);
}
.nav-logo:hover .nav-logo-icon { transform: scale(1.05); }

.nav-links {
  display: flex;
  gap: var(--s1);
  list-style: none;
}
.nav-links a {
  padding: var(--s2) var(--s4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--dur) var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(189,75,43,0.06);
  color: var(--brand);
}

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: var(--s2) var(--s5);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--dur) var(--ease-out);
  box-shadow: 0 2px 8px rgba(189,75,43,0.3);
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
}
.nav-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(189,75,43,0.4);
  color: #fff !important;
}
.nav-cta-arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease-out);
}
.nav-cta:hover .nav-cta-arrow { transform: translateX(2px); }

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: var(--s2);
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--dur) var(--ease-out);
}

/* ============================================================
   BUTTON SYSTEM — No emojis, clean typography
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--s3) var(--s6);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease-spring);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  user-select: none;
}

/* Primary — solid brand blue */
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(189,75,43,0.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(189,75,43,0.4);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(189,75,43,0.3); }

/* Outline — clean border */
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

/* Ghost — minimal */
.btn-ghost {
  background: transparent;
  color: var(--brand);
}
.btn-ghost:hover {
  background: rgba(189,75,43,0.05);
}

/* White (for dark backgrounds) */
.btn-white {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Outline white */
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* Sizes */
.btn-sm { font-size: var(--text-sm); padding: var(--s2) var(--s4); }
.btn-lg { font-size: var(--text-lg); padding: var(--s4) var(--s8); }

/* Arrow in buttons */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   SVG ICON SYSTEM — Replace emojis
   ============================================================ */
.icon-sm { width: 20px; height: 20px; flex-shrink: 0; }
.icon-md { width: 24px; height: 24px; flex-shrink: 0; }
.icon-lg { width: 32px; height: 32px; flex-shrink: 0; }
.icon-xl { width: 40px; height: 40px; flex-shrink: 0; }

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section {
  padding: var(--s24) var(--s6);
  position: relative;
}
.section-pad { padding: var(--s16) var(--s6); }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.section-header {
  text-align: center;
  margin-bottom: var(--s16);
}
.section-header h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--s4);
}
.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Backgrounds */
.bg-sand { background: var(--gray-50); }
.bg-alt { background: var(--gray-50); }
.bg-dark { background: var(--gray-900); color: #fff; }

/* ---------- Grid Systems ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--max-width);
  margin: calc(var(--nav-height) + var(--s4)) auto 0;
  padding: 0 var(--s6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-weight: 500;
}
.breadcrumb a:hover {
  background: var(--brand);
  color: #fff;
}
.breadcrumb .sep { margin: 0 var(--s2); opacity: 0.4; }
.breadcrumb .current { font-weight: 600; color: var(--gray-900); }

/* ============================================================
   CARD v3 — Elevated with refined hover
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  transition: all var(--dur-slow) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.card:hover .card-img { transform: scale(1.03); }
.card-body {
  padding: var(--s6);
}
.card-body h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--s2);
  color: var(--text);
  line-height: 1.3;
}
.card-body p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  background: rgba(189,75,43,0.06);
  color: var(--brand);
  padding: var(--s1) var(--s3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--s3);
  letter-spacing: 0.01em;
}
.card-tag--warm {
  background: rgba(234,67,53,0.06);
  color: var(--accent-coral);
}
.card-tag--green {
  background: rgba(15,157,88,0.06);
  color: var(--accent-green);
}
.card-tag--sunset {
  background: rgba(227,116,0,0.06);
  color: var(--accent-sunset);
}

/* Card with top accent bar */
.card-accent {
  border-top: 3px solid var(--brand);
}

/* ============================================================
   PAGE HERO — refined with subtle pattern
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-height) + var(--s16)) var(--s6) var(--s12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 70% 60%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, #fff, transparent);
  z-index: 1;
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--s4);
  color: #fff;
}
.page-hero p {
  position: relative;
  z-index: 1;
  font-size: var(--text-lg);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
  line-height: 1.7;
}
.page-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s6);
}
.page-hero-tag {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--s2) var(--s4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
}

/* ============================================================
   STAT CARDS — Refined data display
   ============================================================ */
.stat-group {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}
.stat-card {
  background: #fff;
  padding: var(--s5) var(--s6);
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
  min-width: 110px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all var(--dur) var(--ease-out);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-num {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--brand);
  line-height: 1.1;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--s1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ============================================================
   FEATURE ROW — Alternating image/text
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: center;
  margin-bottom: var(--s16);
}
.feature-text h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--s4);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.feature-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--s4);
}
.feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ============================================================
   TIMELINE v3 — Capsule style
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--s10);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--brand-light), transparent);
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  margin-bottom: var(--s5);
  background: #fff;
  border-radius: var(--radius);
  padding: var(--s5) var(--s6);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  transition: all var(--dur) var(--ease-out);
}
.timeline-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s10) - 5px);
  top: var(--s6);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(189,75,43,0.12);
  z-index: 1;
}
.timeline-time {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.timeline-time .time-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.timeline-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ============================================================
   AD BANNER — Cleaner promo style
   ============================================================ */
.ad-banner {
  max-width: var(--max-width);
  margin: var(--s8) auto;
  padding: 0 var(--s6);
}
.ad-card {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFF1E6 100%);
  border: 1px solid rgba(227,116,0,0.15);
  border-radius: var(--radius);
  padding: var(--s5) var(--s6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
}

/* ============================================================
   AFFILIATE BOOKING LINKS — 联盟预订链接
   ============================================================ */
.booking-links { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:12px; }
.booking-link {
  display:inline-flex; align-items:center; gap:4px;
  padding:6px 14px; border-radius:20px;
  font-size:0.82rem; font-weight:600; text-decoration:none;
  transition:all 0.2s; border:1px solid transparent;
}
.booking-link:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,0.1); }
.booking-ctrip { background:#fff5f5; color:#ff6913; border-color:#ffd6c4; }
.booking-ctrip:hover { background:#ff6913; color:#fff; }
.booking-meituan { background:#fff4f0; color:#ffc300; border-color:#ffe4b5; }
.booking-meituan:hover { background:#ffc300; color:#333; }
.booking-dianping { background:#f0fdf4; color:#07c160; border-color:#bbf7d0; }
.booking-dianping:hover { background:#07c160; color:#fff; }
.booking-hotel { background:#F7EDE8; color:#BD4B2B; border-color:#E9C9BC; }
.booking-hotel:hover { background:#BD4B2B; color:#fff; }

/* Ad banner with booking links */
.ad-booking {
  display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
  margin-top:12px;
}
.ad-booking .booking-link { font-size:0.88rem; padding:8px 20px; }


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--s20) var(--s6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--s4);
  color: #fff;
}
.cta-section p {
  font-size: var(--text-lg);
  opacity: 0.85;
  margin-bottom: var(--s8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}

/* ============================================================
   FOOTER v3
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.55);
  padding: var(--s16) var(--s6) var(--s8);
  font-size: var(--text-sm);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s10);
  margin-bottom: var(--s12);
}
.footer-brand h3 {
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--s3);
}
.footer-brand p {
  line-height: 1.8;
  max-width: 340px;
}
.footer-col h4 {
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s4);
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.4);
  padding: var(--s1) 0;
  font-size: var(--text-sm);
  transition: color var(--dur) var(--ease-out);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--s6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: rgba(255,255,255,0.3);
  transition: color var(--dur) var(--ease-out);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   SEASON TABLE — Refined
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}
.data-table thead th {
  background: var(--brand);
  color: #fff;
  padding: var(--s4) var(--s5);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.data-table tbody td {
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: #fff;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td { background: var(--gray-50); }

/* ============================================================
   FORM — Refined inputs
   ============================================================ */
.form-group { margin-bottom: var(--s5); }
.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--s2);
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: inherit;
  transition: all var(--dur) var(--ease-out);
  background: #fff;
  color: var(--text);
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(189,75,43,0.1);
}
textarea.form-input { resize: vertical; }
select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L0 2h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ============================================================
   WARNING / INFO BOX
   ============================================================ */
.info-box {
  background: linear-gradient(135deg, #FFFBEB, #FFF7D6);
  border: 1px solid rgba(227,116,0,0.2);
  border-radius: var(--radius);
  padding: var(--s6);
  font-size: var(--text-sm);
  color: #92400E;
  line-height: 1.8;
}

.legal-box {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: var(--s6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }
.mt-12 { margin-top: var(--s12); }
.mb-4 { margin-bottom: var(--s4); }
.mb-8 { margin-bottom: var(--s8); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* 导航栏在 1024px 以下折叠为汉堡菜单（链接过多，避免溢出） */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: var(--s4);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: var(--s3) var(--s4);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .qhd-fav-count {
    display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
    text-align: center; font-size: 0.7rem; font-weight: 700;
    background: var(--brand); color: #fff; border-radius: 999px;
    margin-left: 4px; padding: 0 5px;
  }
  .hamburger { display: block; }
  .nav-cta { display: none; }
  /* 折叠后只剩 logo + 搜索 + 汉堡，用 margin-left:auto 把搜索按钮推到右侧与汉堡按钮成组 */
  .nav-search-trigger { margin-left: auto; }
  .nav-search-trigger .search-kbd { display: none; }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --nav-height: 64px;
  }
  .section { padding: var(--s16) var(--s4); }
  .section-header { margin-bottom: var(--s10); }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }
  .feature-img img { height: 260px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .stat-group { flex-direction: column; }

  /* 表格在移动端可水平滚动 */
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .data-table thead, .data-table tbody { display: table; width: auto; min-width: 100%; }
}

@media (max-width: 480px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: var(--s2) var(--s5); font-size: var(--text-sm); }
}
