/* ================================================================
   粤港澳巴士 · 品牌官网样式 v4.0 — 湾区深蓝 × 琥珀橙（P2-A 设计改版）
   移动优先 · 5 级断点 · 流体排版 · 触摸优化 · 无障碍
   设计语言：湾区深蓝（信任/交通/大桥） + 琥珀橙（CTA/活力）
   说明：类名与 CSS 变量名完全兼容 v3.0（模板 HTML 未改动）
   ================================================================ */

/* ----- Design Tokens ----- */
:root {
  /* 品牌色：湾区深蓝（替换原青绿 #0d9488，更沉稳的交通信任感） */
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --primary-bg: #eff6ff;
  /* 辅助：海湾天青（海洋/蓝天点缀） */
  --secondary: #0ea5e9;
  /* CTA：琥珀橙（购票/主行动，港澳暖色联想） */
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;
  /* 文字 */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  /* 背景 */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  /* 圆角（适度加大，现代感） */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  /* 阴影（更柔和的层级） */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(30, 64, 175, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  /* 字体：系统栈（国内环境不用 Google Fonts，保证加载速度） */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 56px;
  --max-width: 1140px;
  /* Fluid spacing */
  --space-xs: clamp(8px, 1.5vw, 12px);
  --space-sm: clamp(12px, 2vw, 20px);
  --space-md: clamp(20px, 4vw, 36px);
  --space-lg: clamp(28px, 6vw, 56px);
}

/* ===== Reset (mobile-first base) ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.75;
  background: var(--bg-subtle);
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover, a:focus-visible { color: var(--primary-dark); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
img, video, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

/* ===== Skip to content (accessibility) ===== */
.skip-nav {
  position: absolute; top: -100px; left: 8px; z-index: 200;
  background: var(--primary); color: #fff; padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: 13px; font-weight: 600;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 24px);
}

/* ===== Header (sticky, mobile-first) ===== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: clamp(15px, 3vw, 18px); font-weight: 800; color: var(--text); text-decoration: none;
  flex-shrink: 0; font-family: var(--font-display); letter-spacing: 0.2px;
}
.logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* ===== Navigation (mobile-first: hidden by default) ===== */
.nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 99;
  flex-direction: column; padding: 80px 24px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav.show { display: flex; }
.nav a {
  display: flex; align-items: center;
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 16px; font-weight: 500; color: var(--text-secondary);
  transition: all 0.15s;
  min-height: 44px;
}
.nav a:hover, .nav a:focus-visible, .nav a.active {
  background: var(--primary-bg); color: var(--primary);
}
.nav .nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  padding: 14px 24px; border-radius: 24px; font-weight: 700; text-align: center;
  justify-content: center; margin-top: 12px;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.28);
}
.nav .nav-cta:hover { background: var(--primary-dark); }

/* Hamburger */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; width: 44px; height: 44px;
  position: relative; z-index: 101;
  align-items: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: 0.25s; transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 901px) {
  .nav {
    display: flex; position: static; background: transparent; z-index: auto;
    flex-direction: row; padding: 0; overflow: visible; align-items: center; gap: 2px;
  }
  .nav a { padding: 8px 14px; font-size: 14px; min-height: auto; border-radius: 20px; }
  .nav a:hover, .nav a:focus-visible, .nav a.active { background: var(--primary-bg); }
  .nav .nav-cta { margin-top: 0; padding: 9px 22px; }
  .nav-toggle { display: none; }
  :root { --header-h: 64px; }
  .logo .logo-icon { width: 36px; height: 36px; font-size: 20px; }
}

/* ===== Sections ===== */
.section {
  padding: var(--space-lg) 0;
}
.section-alt { background: var(--bg); }
.section h2 {
  font-size: clamp(20px, 4.5vw, 28px); font-weight: 800;
  text-align: center; margin-bottom: 8px; line-height: 1.35;
  font-family: var(--font-display); letter-spacing: 0.2px;
}
.section .section-desc {
  text-align: center; color: var(--text-secondary);
  max-width: 700px; margin: 0 auto var(--space-md);
  font-size: clamp(13px, 2vw, 15px);
}

/* ===== Hero (homepage) ===== */
.hero {
  background: linear-gradient(135deg, #0b1e4b 0%, #14347a 45%, #0e5ba8 100%);
  color: #fff; padding: clamp(36px, 8vw, 72px) 0 clamp(32px, 7vw, 64px);
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; left: -12%;
  width: min(460px, 70vw); height: min(460px, 70vw);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -45%; right: -10%;
  width: min(540px, 80vw); height: min(540px, 80vw);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero h1 {
  font-size: clamp(22px, 5.5vw, 38px); font-weight: 800;
  letter-spacing: 0.3px; position: relative; z-index: 1;
  line-height: 1.3; font-family: var(--font-display);
}
.hero h1 .highlight { color: #fbbf24; }
.hero p {
  font-size: clamp(14px, 2.2vw, 17px); opacity: 0.92;
  margin-top: clamp(10px, 2vw, 16px);
  max-width: 620px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1; padding: 0 8px;
}
.hero .hero-badges {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: clamp(16px, 3vw, 22px);
  position: relative; z-index: 1;
}
.hero .hero-badge {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 14px; border-radius: 20px; font-size: 12px;
  backdrop-filter: blur(4px); white-space: nowrap;
}

/* ===== Route Hero (city pages) ===== */
.route-hero {
  background: linear-gradient(135deg, #0b1e4b 0%, #14347a 55%, #0e5ba8 100%);
  color: #fff; padding: clamp(32px, 6vw, 48px) 0 clamp(28px, 5vw, 40px);
  text-align: center; position: relative; overflow: hidden;
}
.route-hero::after {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: min(420px, 70vw); height: min(420px, 70vw);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.route-hero h1 {
  font-size: clamp(20px, 4.5vw, 32px); font-weight: 800; line-height: 1.3;
  position: relative; z-index: 1; font-family: var(--font-display);
}
.route-hero .route-meta {
  font-size: clamp(12px, 1.8vw, 14px); opacity: 0.88;
  margin-top: 8px; padding: 0 8px; position: relative; z-index: 1;
}

/* ===== Breadcrumb ===== */
.breadcrumb { padding: clamp(10px, 2vw, 16px) 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span, .breadcrumb strong { margin: 0 4px; }

/* ===== Stats Bar ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 2vw, 16px);
  margin: clamp(16px, 3vw, 32px) 0;
}
.stat-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(16px, 3vw, 24px) clamp(12px, 2vw, 20px);
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-item .stat-num {
  font-size: clamp(24px, 6vw, 34px); font-weight: 800; color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item .stat-num span { font-size: clamp(12px, 2vw, 16px); font-weight: 500; }
.stat-item .stat-label { font-size: clamp(11px, 1.8vw, 13px); color: var(--text-muted); margin-top: 2px; }

@media (min-width: 640px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

/* ===== City Grid (首页城市选择) ===== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 2vw, 14px);
  margin: clamp(16px, 3vw, 28px) 0;
}
.city-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(16px, 3vw, 24px) clamp(10px, 2vw, 18px);
  text-align: center; cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  align-items: center; color: var(--text); text-decoration: none;
  min-height: 100px; justify-content: center;
  border-top: 3px solid transparent;
}
.city-card:hover, .city-card:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--primary-light); border-top-color: var(--primary);
}
.city-card .city-icon { font-size: clamp(26px, 6vw, 34px); margin-bottom: 6px; }
.city-card .city-name { font-size: clamp(14px, 2.5vw, 16px); font-weight: 700; }
.city-card .city-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.city-card .city-tag {
  display: inline-block; font-size: 10px; padding: 2px 8px;
  border-radius: 10px; background: var(--primary-bg); color: var(--primary);
  margin-top: 6px; white-space: nowrap;
}

@media (min-width: 480px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .city-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== Feature Cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.5vw, 20px);
}
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(20px, 4vw, 28px) clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .fc-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.fc-icon.blue  { background: #eff6ff; color: #2563eb; }
.fc-icon.green { background: #f0fdf4; color: #16a34a; }
.fc-icon.amber { background: #fffbeb; color: #f59e0b; }
.fc-icon.purple{ background: #f5f3ff; color: #8b5cf6; }
.feature-card h3 { font-size: clamp(15px, 2.5vw, 17px); font-weight: 700; margin-bottom: 6px; }
.feature-card p  { font-size: clamp(13px, 2vw, 14px); color: var(--text-secondary); }

@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== Card Grid (通用) ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.5vw, 20px);
  margin: clamp(16px, 3vw, 28px) 0;
}
.card-grid.small { gap: clamp(8px, 2vw, 14px); }
.info-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.info-card h3 { font-size: clamp(14px, 2.5vw, 17px); font-weight: 700; margin-bottom: 8px; }
.info-card p, .info-card li { font-size: clamp(12px, 2vw, 14px); color: var(--text-secondary); line-height: 1.8; }

@media (min-width: 480px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .card-grid.small { grid-template-columns: repeat(4, 1fr); } }

/* ===== Route Table (responsive: horizontal scroll) ===== */
.route-table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: clamp(16px, 3vw, 24px) 0;
  border-radius: var(--radius); box-shadow: var(--shadow);
  -webkit-mask-image: linear-gradient(to right, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, black 95%, transparent 100%);
}
.route-table {
  width: 100%; min-width: 520px; border-collapse: collapse;
  font-size: 13px; background: var(--bg);
}
.route-table thead th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: clamp(10px, 2vw, 14px) clamp(8px, 1.5vw, 16px);
  text-align: left; font-weight: 600; font-size: 12px; white-space: nowrap;
}
.route-table tbody td {
  padding: clamp(10px, 2vw, 14px) clamp(8px, 1.5vw, 16px);
  border-bottom: 1px solid var(--border-light);
}
.route-table tbody tr:last-child td { border-bottom: none; }
.route-table tbody tr:hover { background: var(--primary-bg); }
.route-table .station-list { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

@media (min-width: 768px) {
  .route-table { min-width: 0; }
  .route-table-wrap { -webkit-mask-image: none; mask-image: none; }
}

/* ===== Blog / Article Cards ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 24px);
  margin: clamp(16px, 3vw, 28px) 0;
}
.blog-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.25s;
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  min-height: 200px;
}
.blog-card:hover, .blog-card:focus-visible {
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
  border-color: var(--primary-light);
}
.blog-card-img {
  height: clamp(120px, 30vw, 160px);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(36px, 8vw, 48px);
}
.blog-card-img.guangzhou { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.blog-card-img.shenzhen  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.blog-card-img.foshan    { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.blog-card-img.dongguan  { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.blog-card-img.zhuhai    { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.blog-card-img.hongkong  { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.blog-card-img.macau     { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.blog-card-img.zhongshan { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.blog-card-img.jiangmen  { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.blog-card-img.huizhou   { background: linear-gradient(135deg, #eff6ff, #bfdbfe); }
.blog-card-body {
  padding: clamp(14px, 3vw, 22px); flex: 1; display: flex; flex-direction: column;
}
.blog-card-body .tag {
  display: inline-block; font-size: 11px; padding: 3px 10px;
  border-radius: 12px; background: var(--primary-bg); color: var(--primary);
  margin-bottom: 8px; width: fit-content; font-weight: 600;
}
.blog-card-body h3 { font-size: clamp(14px, 2.5vw, 17px); font-weight: 700; margin-bottom: 6px; }
.blog-card-body p { font-size: clamp(12px, 2vw, 13px); color: var(--text-secondary); line-height: 1.7; flex: 1; }
.blog-card-body .read-more { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }

@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Article Page ===== */
.article { max-width: 800px; margin: 0 auto; }
.article-hero {
  background: linear-gradient(135deg, #0b1e4b 0%, #14347a 60%, #0e5ba8 100%);
  color: #fff; padding: clamp(32px, 6vw, 56px) 0 clamp(28px, 5vw, 48px);
  text-align: center; position: relative; overflow: hidden;
}
.article-hero::after {
  content: ''; position: absolute; bottom: -60%; left: 50%;
  transform: translateX(-50%);
  width: min(520px, 80vw); height: min(520px, 80vw);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.article-hero h1 {
  font-size: clamp(20px, 4.5vw, 32px); font-weight: 800;
  max-width: 700px; margin: 0 auto; padding: 0 8px; line-height: 1.35;
  position: relative; z-index: 1; font-family: var(--font-display);
}
.article-hero .article-meta { font-size: 12px; opacity: 0.75; margin-top: 10px; position: relative; z-index: 1; }
.article-body {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 4vw, 36px) clamp(14px, 3vw, 32px);
  margin: -16px 0 32px; position: relative; box-shadow: var(--shadow-md);
}
.article-body h2 {
  font-size: clamp(18px, 3.5vw, 24px); font-weight: 800;
  margin: clamp(20px, 4vw, 32px) 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary-light);
  font-family: var(--font-display);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: clamp(15px, 2.5vw, 18px); font-weight: 700; margin: 18px 0 8px; }
.article-body p { font-size: clamp(13px, 2vw, 15px); color: var(--text-secondary); line-height: 1.9; margin-bottom: 12px; }
.article-body ul, .article-body ol { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.article-body li { font-size: clamp(13px, 1.8vw, 14px); color: var(--text-secondary); line-height: 2; }
.article-body .highlight-box {
  background: var(--primary-bg); border-left: 4px solid var(--primary);
  padding: clamp(12px, 2vw, 18px); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: clamp(14px, 3vw, 20px) 0; font-size: 13px; color: var(--text-secondary);
}
.article-body .highlight-box strong { color: var(--text); }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 12px; display: block; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body table th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; white-space: nowrap; }
.article-body table td { padding: 9px 12px; border-bottom: 1px solid var(--border-light); }

@media (min-width: 768px) {
  .article-body table { display: table; }
}

/* ===== TOC ===== */
.toc {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(14px, 3vw, 22px);
  margin: 0 0 clamp(16px, 3vw, 28px); box-shadow: var(--shadow-sm);
}
.toc h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.toc ol { padding-left: 18px; list-style: decimal; }
.toc ol li { font-size: 13px; line-height: 2.2; }

/* ===== Destination Page Hero ===== */
.dest-hero {
  padding: clamp(32px, 6vw, 56px) 0 clamp(28px, 5vw, 48px);
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.dest-hero.hk { background: linear-gradient(135deg, #0b1e4b 0%, #1e3a5f 100%); }
.dest-hero.mo { background: linear-gradient(135deg, #7c1144 0%, #be185d 100%); }
.dest-hero h1 { font-size: clamp(22px, 5vw, 34px); font-weight: 800; font-family: var(--font-display); }
.dest-hero p { font-size: clamp(13px, 2vw, 15px); opacity: 0.88; margin-top: 10px; }
.dest-section { margin: clamp(20px, 4vw, 32px) 0; }
.dest-section h2 {
  font-size: clamp(17px, 3vw, 22px); font-weight: 800; margin-bottom: clamp(12px, 2vw, 18px);
  display: flex; align-items: center; gap: 8px; font-family: var(--font-display);
}
.dest-section h2 em { font-size: clamp(20px, 3.5vw, 24px); font-style: normal; }

/* ===== Guide Steps ===== */
.guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.5vw, 20px);
  margin: clamp(16px, 3vw, 28px) 0;
}
.guide-step {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(16px, 3vw, 24px);
  text-align: center; position: relative; box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.guide-step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-step .step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 12px; font-size: 16px;
  box-shadow: 0 3px 8px rgba(30, 64, 175, 0.25);
}
.guide-step h4 { font-size: clamp(14px, 2vw, 16px); margin-bottom: 6px; font-weight: 700; }
.guide-step p { font-size: clamp(11px, 1.8vw, 13px); color: var(--text-secondary); line-height: 1.7; }

@media (min-width: 480px) { .guide-steps { grid-template-columns: repeat(3, 1fr); } }

/* ===== CTA Block ===== */
.cta-block {
  background: linear-gradient(135deg, #14347a 0%, var(--primary) 55%, var(--secondary) 130%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 36px) clamp(16px, 4vw, 32px);
  text-align: center; margin: clamp(20px, 4vw, 36px) 0;
  position: relative; overflow: hidden;
}
.cta-block::after {
  content: ''; position: absolute; top: -80%; right: -15%;
  width: min(360px, 60vw); height: min(360px, 60vw);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-block h3 { font-size: clamp(16px, 3vw, 22px); font-weight: 800; margin-bottom: 6px; position: relative; z-index: 1; }
.cta-block p { opacity: 0.9; margin-bottom: 16px; font-size: clamp(12px, 2vw, 14px); position: relative; z-index: 1; }
.cta-block .btn-wechat {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 32px);
  border-radius: 24px; font-weight: 800; font-size: clamp(14px, 2.2vw, 16px);
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
  min-height: 44px; position: relative; z-index: 1;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}
.cta-block .btn-wechat:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px rgba(217, 119, 6, 0.42); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: clamp(8px, 1.5vw, 12px);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-q {
  padding: clamp(14px, 2.5vw, 18px) clamp(14px, 2.5vw, 22px);
  font-weight: 600; font-size: clamp(14px, 2vw, 16px); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none; gap: 12px; min-height: 44px;
}
.faq-q::after {
  content: '+'; font-size: 22px; color: var(--accent);
  transition: transform 0.2s; flex-shrink: 0; font-weight: 400;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 clamp(14px, 2.5vw, 22px) clamp(14px, 2.5vw, 18px);
  font-size: clamp(13px, 1.8vw, 14px); color: var(--text-secondary);
  line-height: 1.8; display: none;
}
.faq-item.open .faq-a { display: block; }

/* ===== Related Links (SEO 内链) ===== */
.related-links {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 24px) clamp(14px, 2.5vw, 28px);
  margin: clamp(20px, 4vw, 32px) 0; box-shadow: var(--shadow-sm);
}
.related-links h3 { font-size: clamp(14px, 2.5vw, 16px); font-weight: 700; margin-bottom: 12px; }
.related-links .links-row { display: flex; flex-wrap: wrap; gap: 8px; }
.related-links .links-row a {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  background: var(--primary-bg); border-radius: 16px;
  font-size: clamp(11px, 1.8vw, 13px); color: var(--primary);
  font-weight: 500; transition: all 0.15s; min-height: 36px;
  border: 1px solid transparent;
}
.related-links .links-row a:hover, .related-links .links-row a:focus-visible {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #0b1e4b 0%, #0f172a 100%);
  color: #94a3b8;
  padding: clamp(28px, 5vw, 48px) 0 clamp(20px, 4vw, 32px);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(20px, 4vw, 36px);
}
.footer-brand .logo { margin-bottom: 10px; display: flex; }
.footer-brand .logo span { color: #fff; }
.footer-brand p { font-size: 12px; line-height: 1.8; }
.footer-col h4 {
  color: #fff; font-size: 13px; margin-bottom: 10px; font-weight: 700;
}
.footer-col a, .footer-col span {
  display: flex; align-items: center;
  color: #94a3b8; padding: 5px 0; font-size: 12px;
  min-height: 32px;
}
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: clamp(16px, 3vw, 24px); text-align: center; font-size: 11px;
}

@media (min-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================
   Responsive Utilities
   ============================================ */

/* Hide on mobile / desktop */
@media (max-width: 900px) { .hide-mobile { display: none !important; } }
@media (min-width: 901px) { .hide-desktop { display: none !important; } }

/* Responsive images */
.resp-img { width: 100%; height: auto; }

/* ===== Mobile CTA Float Button ===== */
.mobile-cta-float {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 10px 16px; z-index: 90;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.1);
  gap: 10px;
}
.mobile-cta-float .btn-wechat {
  flex: 1; text-align: center; padding: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 24px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px;
}
.mobile-cta-float .btn-wechat-outline {
  flex-shrink: 0; padding: 12px 16px;
  border: 1.5px solid var(--primary); color: var(--primary);
  border-radius: 24px; font-weight: 600; font-size: 13px; text-decoration: none;
  min-height: 44px; display: flex; align-items: center;
}
@media (min-width: 901px) {
  .mobile-cta-float { display: none; }
}
/* Add bottom padding when float CTA visible */
body.has-mobile-cta { padding-bottom: 72px; }

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

/* ============================================
   Dark Mode (optional, auto-detected)
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* Comment out to disable auto dark mode —
     uncomment if dark theme is desired */
  /*
  :root {
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg: #1e293b;
    --bg-subtle: #0f172a;
    --bg-card: #1e293b;
    --border: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.3);
    --primary-bg: rgba(30,64,175,0.15);
    --primary-light: rgba(30,64,175,0.25);
  }
  .site-header { background: #1a2332; }
  .section-alt { background: #1a2332; }
  .info-card, .feature-card, .city-card, .blog-card, .cta-block,
  .faq-item, .route-table-wrap, .related-links, .guide-step,
  .stat-item, .article-body, .toc { background: #1e293b; }
  .site-header.scrolled { background: rgba(26,35,50,0.95); backdrop-filter: blur(12px); }
  */
}

/* ============================================
   iOS Safe Area
   ============================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-cta-float {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  body.has-mobile-cta {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   Print
   ============================================ */
@media print {
  .site-header, .site-footer, .mobile-cta-float, .nav-toggle,
  .skip-nav, .cta-block, .related-links { display: none !important; }
  body { background: #fff; font-size: 12px; color: #000; }
  .section { padding: 16px 0; page-break-inside: avoid; }
  .route-hero, .hero, .article-hero, .dest-hero {
    background: none !important; color: #000 !important;
    padding: 20px 0;
  }
  a { color: #000; text-decoration: underline; }
  .route-table-wrap { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .route-table { min-width: 0; }
  .container { max-width: 100%; padding: 0 12px; }
  @page { margin: 1.5cm; }
}

/* ============================================
   WeChat QR Code — Buy Ticket Entry
   ============================================ */
.qrcode-card {
  background: var(--bg);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  text-align: center;
  margin: clamp(20px, 4vw, 32px) 0;
}
.qrcode-info h3 {
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.qrcode-info p {
  font-size: clamp(12px, 2vw, 14px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.qrcode-info .btn-wechat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}
.qrcode-info .btn-wechat:hover,
.qrcode-info .btn-wechat:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.qrcode-img {
  flex-shrink: 0;
  width: clamp(140px, 32vw, 180px);
  height: clamp(140px, 32vw, 180px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
}
.qrcode-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
@media (min-width: 768px) {
  .qrcode-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }
  .qrcode-info { flex: 1; }
  .qrcode-img { margin-left: 12px; }
}
/* Hero inline QR variant */
.hero-qrcode {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 24px);
  color: #fff;
  text-align: center;
  margin-top: clamp(20px, 4vw, 32px);
}
.hero-qrcode h3 { font-size: clamp(15px, 3vw, 20px); font-weight: 700; margin-bottom: 8px; }
.hero-qrcode p { font-size: clamp(12px, 2vw, 14px); opacity: 0.9; margin-bottom: 12px; }
.hero-qrcode .qrcode-img {
  width: clamp(140px, 36vw, 200px);
  height: clamp(140px, 36vw, 200px);
  margin: 0 auto;
}
@media (min-width: 900px) {
  .hero-with-qr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(24px, 5vw, 48px);
    align-items: center;
    text-align: left;
  }
  .hero-with-qr .hero-content { text-align: left; }
  .hero-with-qr .hero-qrcode { margin-top: 0; }
}

/* ============================================
   Utility: text alignment helpers
   ============================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
@media (min-width: 768px) {
  .md-text-left  { text-align: left; }
  .md-text-right { text-align: right; }
}
