/* ==========================================================================
   合肥八零驾校 UI/UX Pro Max Production Stylesheet (v2.1.0)
   Desktop Dual-Column + Mobile Native App / Mini-Program Architecture
   ========================================================================== */

:root {
  --color-primary: #0f5132;
  --color-primary-hover: #0b3d26;
  --color-primary-mid: #166534;
  --color-primary-soft: #e9f5ee;
  --color-primary-border: #bbf7d0;
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-accent-soft: #fef3c7;
  --color-accent-ink: #78350f;
  --color-danger: #dc2626;
  --color-success: #15803d;

  --surface-page: #f7faf8;
  --surface-card: #ffffff;
  --surface-subtle: #f1f5f3;
  --surface-dark: #0a2519;
  --surface-dark-2: #103524;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 44px rgba(10, 37, 25, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --container-max: 1200px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;

  --z-header: 40;
  --z-progress: 45;
  --z-dock: 50;
  --z-mobile-bar: 55;
  --z-modal: 80;
  --z-toast: 95;
}

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

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

body.baling-v2 {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface-page);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

:where(body.baling-v2 img) { max-width: 100%; height: auto; display: block; }
:where(body.baling-v2 a) { color: inherit; text-decoration: none; }
:where(body.baling-v2 button, body.baling-v2 input, body.baling-v2 select, body.baling-v2 textarea) { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

@media (min-width: 821px) {
  .mobile-only { display: none !important; }
}
@media (max-width: 820px) {
  .desktop-only { display: none !important; }
}

.form-honeypot {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
}

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--color-primary); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 32px, var(--container-max)); margin-inline: auto; }
.tabular { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Header (Desktop Full Nav / Mobile 56px Single-Row App Header)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.topbar { background: var(--surface-dark); color: var(--text-on-dark-muted); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; padding: 6px 0; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 15px; height: 15px; flex-shrink: 0; color: #4ade80; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-phone a { color: #fff; font-weight: 600; }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; max-height: 38px; width: auto; max-width: 160px; object-fit: contain; }
.brand-sub { display: none; font-size: 12px; color: var(--text-muted); border-left: 1px solid var(--border-strong); padding-left: 10px; line-height: 1.25; }
@media (min-width: 1120px) { .brand-sub { display: block; } }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 13px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; transition: color var(--dur-fast), background var(--dur-fast); }
.nav-links a:hover, .nav-links a.is-active { color: var(--color-primary); background: var(--color-primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Mobile Single-Row App Header */
.m-header {
  height: 56px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.m-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.m-brand img { height: 28px; max-height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.m-status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--color-primary-soft); color: var(--color-primary);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.m-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.m-head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.m-icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border-subtle); background: #fff; color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.m-icon-btn svg { width: 19px; height: 19px; }
.m-back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 0 8px 0 4px; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--text-primary); flex-shrink: 0;
}
.m-back-btn svg { width: 18px; height: 18px; }
.m-head-title {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.m-toc-btn {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-primary-border); background: var(--color-primary-soft); color: var(--color-primary);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.m-toc-btn svg { width: 15px; height: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 16px rgba(15, 81, 50, 0.22); }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-accent { background: var(--color-accent-soft); color: var(--color-accent-ink); border-color: #fcd34d; }
.btn-accent:hover { background: #fde68a; color: var(--color-accent-ink); }
.btn-outline { background: #fff; color: var(--text-primary); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.32); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 14px; }

/* Sections */
.section { padding: 72px 0; }
.section-white { background: #fff; }
.section-dark { background: var(--surface-dark); color: var(--text-on-dark); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); margin: 0 0 8px; }
.section-dark .kicker { color: #4ade80; }
.section-title { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.section-desc { margin: 10px 0 0; font-size: 15.5px; color: var(--text-secondary); max-width: 560px; }
.section-dark .section-desc { color: var(--text-on-dark-muted); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--surface-dark); color: #fff; padding: 64px 0 76px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.34; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10, 37, 25, 0.94) 0%, rgba(10, 37, 25, 0.80) 54%, rgba(10, 37, 25, 0.56) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr); gap: 40px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.14); border: 1px solid rgba(74, 222, 128, 0.34);
  color: #bbf7d0; font-size: 13.5px; font-weight: 600; margin: 0 0 18px;
}
.hero h1 { margin: 0 0 18px; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #6ee7b7; }
.hero-lead { margin: 0 0 28px; font-size: 17px; line-height: 1.7; color: #e2e8f0; max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: #cbd5e1; }
.hero-trust-item { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust-item svg { width: 16px; height: 16px; color: #4ade80; }

.hero-card { background: rgba(255, 255, 255, 0.98); color: var(--text-primary); border-radius: var(--radius-xl); padding: 26px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.7); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hero-card-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: 12.5px; font-weight: 700; }
.hero-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.hero-card-sub { margin: 0 0 18px; font-size: 14px; color: var(--text-secondary); }
.hero-qr-box { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius-md); background: var(--color-primary-soft); border: 1px solid var(--color-primary-border); margin-bottom: 16px; }
.hero-qr-box img { width: 104px; height: 104px; flex-shrink: 0; border-radius: 8px; padding: 5px; background: #fff; border: 1px solid var(--border-subtle); }
.hero-qr-copy strong { display: block; font-size: 15.5px; color: var(--color-primary); margin-bottom: 4px; }
.hero-qr-copy p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.hero-campus-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-subtle); font-size: 13.5px; margin-bottom: 14px; }
.hero-campus-row strong { display: block; color: var(--text-primary); font-size: 14px; }
.hero-campus-row span { color: var(--text-secondary); font-size: 12.5px; }
.hero-card-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Mobile Shortcut Grid + Promo Strip */
.m-quick-wrap { padding: 12px 14px 4px; }
.m-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m-shortcut {
  background: #fff; border-radius: 14px; padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05); border: 1px solid rgba(226, 232, 240, 0.8);
  cursor: pointer; touch-action: manipulation;
}
.m-shortcut-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--color-primary-soft); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.m-shortcut-ic.is-amber { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.m-shortcut-ic svg { width: 20px; height: 20px; }
.m-shortcut span { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.m-promo-strip {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px; width: 100%;
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.m-promo-strip strong { display: block; font-size: 14px; color: var(--color-accent-ink); }
.m-promo-strip span { font-size: 12px; color: #92400e; }
.m-promo-pill { padding: 6px 11px; border-radius: var(--radius-pill); background: var(--color-accent); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* Metrics */
.metrics-strip { background: #fff; border-bottom: 1px solid var(--border-subtle); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-cell { padding: 26px 20px; text-align: center; border-right: 1px solid var(--border-subtle); }
.metric-cell:last-child { border-right: 0; }
.metric-cell strong { display: block; font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; color: var(--color-primary); line-height: 1.15; margin-bottom: 4px; }
.metric-cell span { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* Courses */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chip { min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: #fff; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all var(--dur-fast); white-space: nowrap; flex-shrink: 0; }
.filter-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.course-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #a7f3d0; }
.course-card.is-featured { border: 2px solid var(--color-primary); box-shadow: 0 12px 30px rgba(15, 81, 50, 0.10); }
.course-card.is-hidden { display: none; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; background: var(--color-primary-soft); color: var(--color-primary); }
.tag-accent { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.course-card h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.price-pill { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-subtle); border: 1px solid var(--border-subtle); }
.price-pill small { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.price-pill strong { font-size: 20px; font-weight: 800; color: var(--color-primary); }
.course-features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; flex: 1; }
.course-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.course-features svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.course-actions { display: flex; gap: 10px; }
.course-actions .btn { flex: 1; }

/* Rail Controls (Mobile) */
.m-rail-controls { display: flex; gap: 6px; }
.m-rail-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.m-rail-btn-light { border-color: var(--border-subtle); background: #fff; color: var(--text-primary); }
.m-rail-btn svg { width: 16px; height: 16px; }

/* Campus */
.campus-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; }
.campus-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campus-photo-main { grid-column: 1 / -1; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #103524; }
.campus-photo-sub { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 10; background: #103524; }
.campus-gallery img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(10, 37, 25, 0.78); backdrop-filter: blur(6px); color: #fff; font-size: 12.5px; font-weight: 600; }
.campus-panel { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.campus-info-list { display: grid; gap: 14px; margin: 16px 0; }
.campus-info-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); }
.campus-info-item svg { width: 19px; height: 19px; color: #4ade80; flex-shrink: 0; margin-top: 2px; }
.campus-info-item strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }
.campus-info-item span { font-size: 13.5px; color: var(--text-on-dark-muted); }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); transition: transform var(--dur-base), box-shadow var(--dur-base); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-subtle); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-cat { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(15, 81, 50, 0.9); color: #fff; font-size: 12px; font-weight: 600; }
.news-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.news-body h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--text-primary); }
.news-body p { margin: 0 0 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.news-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--color-primary); }

/* Coaches & Reviews */
.coach-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.coach-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); padding: 0; }
.coach-photo { width: 100%; aspect-ratio: 4 / 5; margin: 0; padding: 0; overflow: hidden; background: var(--surface-subtle); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.coach-meta { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; background: #fff; }
.coach-meta strong { font-size: 15.5px; }
.coach-meta span { font-size: 12.5px; color: var(--color-primary); background: var(--color-primary-soft); padding: 3px 9px; border-radius: var(--radius-pill); font-weight: 600; }

.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.review-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.review-stars { display: flex; gap: 3px; color: var(--color-accent); margin-bottom: 10px; }
.review-stars svg { width: 16px; height: 16px; fill: currentColor; }
.review-card p { margin: 0; font-size: 15px; color: var(--text-primary); line-height: 1.7; }
.review-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-subtle); font-size: 13.5px; }

/* Equal-Height Booking Section */
.booking-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: stretch; }
.booking-aside-card {
  background: var(--surface-dark); color: #fff; border-radius: var(--radius-xl); padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.booking-qr-wrap { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); margin: 22px 0; }
.booking-qr-wrap img { width: 112px; height: 112px; border-radius: 10px; padding: 6px; background: #fff; flex-shrink: 0; }
.booking-form {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label, .sheet-field label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.field label b, .sheet-field label b { color: var(--color-danger); }
.field input, .field select, .field textarea, .sheet-field input, .sheet-field select {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: #fff; font-size: 16px;
}
.field input[readonly] { background: var(--surface-subtle); color: var(--text-secondary); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .sheet-field input:focus, .sheet-field select:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.14); outline: none;
}
.field-error { display: none; font-size: 12.5px; color: var(--color-danger); }
.field.has-error input, .field.has-error select, .sheet-field.has-error input { border-color: var(--color-danger); }
.field.has-error .field-error { display: block; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 16px 0 18px; font-size: 13.5px; color: var(--text-secondary); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--color-primary); }
.check-row.has-error { color: var(--color-danger); }
.form-status { margin: 12px 0 0; font-size: 14px; font-weight: 600; min-height: 22px; }
.form-status.is-ok { color: var(--color-success); }
.form-status.is-err { color: var(--color-danger); }

/* Editorial Content / Single Post */
.reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--color-primary), #22c55e); z-index: var(--z-progress); pointer-events: none; }
.article-hero { background: #fff; border-bottom: 1px solid var(--border-subtle); padding: 28px 0 34px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--color-primary); }
.article-header-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.article-title { margin: 0 0 16px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; max-width: 900px; }
.article-byline { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.article-byline span { display: inline-flex; align-items: center; gap: 6px; }
.article-byline svg { width: 16px; height: 16px; color: var(--color-primary); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; padding: 36px 0 76px; }
.article-main { min-width: 0; max-width: 100%; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 34px 38px; box-shadow: var(--shadow-xs); }
.article-cover { margin: 0 0 26px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-subtle); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 16.5px; line-height: 1.82; color: #1e293b; overflow-wrap: break-word; }
.prose h2 { margin: 34px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); font-size: 22px; line-height: 1.35; font-weight: 800; color: var(--text-primary); scroll-margin-top: 90px; }
.prose h3 { margin: 24px 0 10px; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--color-primary); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a:not(.btn):not(.wp-block-button__link) { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; border-radius: var(--radius-pill); background: var(--color-primary); color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.prose figure { margin: 24px 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-subtle); background: var(--surface-subtle); }
.prose figure img { width: 100%; height: auto; object-fit: cover; }
.prose figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--text-secondary); text-align: center; }

.table-hint { display: none; font-size: 12px; color: var(--text-muted); text-align: right; margin: 12px 0 4px; }
.table-wrap { width: 100%; overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 14.5px; margin: 0; }
.prose th { background: var(--surface-subtle); color: var(--text-primary); text-align: left; font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

.prose .baling-wechat-cta {
  margin: 28px 0 8px !important; padding: 24px 20px !important;
  border: 1.5px solid var(--color-primary-border) !important; border-radius: var(--radius-lg) !important;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%) !important; box-shadow: var(--shadow-xs);
}
.prose .baling-wechat-cta img { margin: 0 auto !important; }

.wechat-cta-card {
  margin: 32px 0 12px; padding: 26px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid var(--color-primary-border);
  display: grid; grid-template-columns: 176px 1fr; gap: 24px; align-items: center;
}
.wechat-cta-qr { text-align: center; }
.wechat-cta-qr img { width: 176px; height: 176px; padding: 8px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.wechat-cta-copy h3 { margin: 0 0 8px; font-size: 21px; color: var(--color-primary); }
.wechat-cta-copy p { margin: 0 0 14px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }
.wechat-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Sticky Sidebar */
.article-sidebar { min-width: 0; position: sticky; top: 124px; display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-xs); }
.side-card h3 { margin: 0 0 14px; font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text-primary); }
.side-card h3 svg { width: 17px; height: 17px; color: var(--color-primary); }
.toc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc-list a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.45; border-left: 2px solid transparent; }
.toc-list a:hover, .toc-list a.is-active { background: var(--color-primary-soft); color: var(--color-primary); border-left-color: var(--color-primary); font-weight: 600; }
.side-qr-card { background: linear-gradient(180deg, #0f5132 0%, #0a2519 100%); color: #fff; border: 0; text-align: center; }
.side-qr-card h3 { color: #fff; justify-content: center; margin-bottom: 6px; }
.side-qr-card p { margin: 0 0 14px; font-size: 13px; color: #d1fae5; }
.side-qr-card img { width: 164px; height: 164px; margin: 0 auto 14px; padding: 8px; background: #fff; border-radius: 12px; }
.side-phone { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; font-size: 14.5px; }

/* Footer */
.site-footer { background: var(--surface-dark); color: var(--text-on-dark-muted); padding: 56px 0 36px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand-pill { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--radius-md); background: #fff; margin-bottom: 14px; }
.footer-brand-pill img { height: 34px; width: auto; }
.site-footer h4 { margin: 0 0 14px; font-size: 15px; color: #fff; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-qr-mini { display: flex; align-items: center; gap: 12px; }
.footer-qr-mini img { width: 84px; height: 84px; padding: 5px; background: #fff; border-radius: 8px; flex-shrink: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; padding-right: 72px; }

/* Wide Desktop Floating Dock */
.floating-dock { position: fixed; right: 16px; bottom: 28px; z-index: var(--z-dock); display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1359px) { .floating-dock { display: none; } }
.dock-btn { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--color-primary); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dock-btn.dock-qr { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.dock-btn svg { width: 21px; height: 21px; }

/* Mobile Action Bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobile-bar);
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: 0.72fr 1.05fr 1.15fr; gap: 8px;
}
.mobile-bar a, .mobile-bar button {
  min-height: 44px; border-radius: 12px; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.mobile-bar svg { width: 16px; height: 16px; }
.mb-call { background: var(--surface-subtle); color: var(--text-primary); }
.mb-qr { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.mb-book { background: var(--color-primary); color: #fff; }

/* Modals (Desktop Centered Dialog -> Mobile Native Slide-Up Bottom Sheet) */
.modal-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(15, 23, 42, 0.58); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.is-open { display: flex; }
.modal-dialog {
  width: min(100%, 420px); max-height: 88dvh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-xl); padding: 28px 24px;
  box-shadow: var(--shadow-lg); text-align: center; position: relative;
}
.modal-dialog-left { text-align: left; }
.sheet-handle { width: 40px; height: 4px; border-radius: 99px; background: #cbd5e1; margin: 0 auto 12px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-subtle);
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-dialog h3 { margin: 0 0 8px; font-size: 19px; color: var(--color-primary); }
.modal-dialog p { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.modal-qr { width: 204px; height: 204px; margin: 0 auto 14px; padding: 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.sheet-btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.m-toc-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.m-toc-links a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--surface-page); font-size: 14.5px; font-weight: 600; color: var(--text-primary); }

.v2-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(14px);
  background: #0f172a; color: #fff; padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; z-index: var(--z-toast); opacity: 0; pointer-events: none;
  transition: opacity 180ms, transform 180ms; white-space: nowrap;
}
.v2-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Tablet & Native Mobile-First Overrides (<= 820px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .campus-split, .booking-grid, .article-layout { grid-template-columns: 1fr; }
  .course-grid, .news-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 820px) {
  body.baling-v2 { background: #f4f7f5; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 28px); }
  .section { padding: 28px 0; }
  .section-head { margin-bottom: 16px; align-items: center; }
  .kicker { display: none; }
  .section-title { font-size: 20px; }
  .section-desc { font-size: 13.5px; margin-top: 4px; }

  /* Native Mobile Hero Card (Fits Screen 1!) */
  .hero { background: transparent; padding: 12px 0 4px; color: #fff; }
  .hero-bg { display: none; }
  .hero-grid { gap: 0; }
  .hero-primary-col {
    background: var(--surface-dark); border-radius: 22px; overflow: hidden;
    box-shadow: 0 12px 28px rgba(10, 37, 25, 0.16); padding: 0 0 18px;
  }
  .m-hero-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
  .m-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
  .m-hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 37, 25, 0.1) 0%, rgba(10, 37, 25, 0.35) 55%, rgba(10, 37, 25, 0.98) 100%);
  }
  .hero-pill { margin: -32px 16px 10px; position: relative; z-index: 2; font-size: 12px; padding: 4px 10px; }
  .hero h1 { font-size: 24px; line-height: 1.24; margin: 0 16px 8px; }
  .hero-lead { font-size: 13.5px; line-height: 1.55; margin: 0 16px 14px; color: #cbd5e1; }
  .m-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 16px 14px; }
  .m-stat-box { padding: 8px 6px; border-radius: 10px; text-align: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
  .m-stat-box strong { display: block; font-size: 16px; color: #fff; line-height: 1.2; }
  .m-stat-box span { font-size: 11px; color: #cbd5e1; }
  .hero-actions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin: 0 16px; }
  .hero-actions .btn { border-radius: 12px; padding: 0 12px; font-size: 14.5px; }

  /* Scrollable Course Filter Pills + Compact Cards */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
  .course-grid { grid-template-columns: 1fr; gap: 12px; }
  .course-card { padding: 16px; border-radius: 16px; }
  .course-card h3 { font-size: 18px; margin-bottom: 10px; }
  .price-row { gap: 8px; margin-bottom: 12px; }
  .price-pill { padding: 8px 10px; }
  .price-pill strong { font-size: 17px; }
  .course-features { gap: 5px; margin-bottom: 14px; }
  .course-features li { font-size: 13px; }
  .course-actions .btn { border-radius: 10px; }

  /* Horizontal Snap HD Campus Gallery */
  .campus-gallery {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 14px 10px; margin: 0 -14px; scrollbar-width: none;
  }
  .campus-gallery::-webkit-scrollbar { display: none; }
  .campus-photo-main, .campus-photo-sub {
    flex: 0 0 82%; scroll-snap-align: start; aspect-ratio: 16 / 10; border-radius: 16px;
  }
  .campus-panel { padding: 18px; gap: 14px; }
  .campus-info-list { gap: 8px; margin: 12px 0; }
  .campus-info-item { padding: 10px 12px; }

  /* Compact App-Style Article List (Left 110x80 Thumb + Right Title) */
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card {
    display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center;
    padding: 10px; border-radius: 14px;
  }
  .news-thumb { width: 110px; height: 80px; aspect-ratio: auto; border-radius: 10px; }
  .news-cat { display: none; }
  .news-body { padding: 0; }
  .news-date { font-size: 11.5px; margin-bottom: 4px; order: 2; }
  .news-body h3 {
    font-size: 14.5px; line-height: 1.38; margin: 0 0 6px; order: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .news-excerpt, .news-more { display: none; }

  /* Horizontal Snap Coaches (44% full-bleed) & Reviews (82%) */
  .coach-grid, .review-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 2px 14px 10px; margin: 0 -14px; scrollbar-width: none;
  }
  .coach-grid::-webkit-scrollbar, .review-grid::-webkit-scrollbar { display: none; }
  .coach-card { flex: 0 0 44%; scroll-snap-align: start; border-radius: 14px; }
  .coach-meta { padding: 9px 10px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .coach-meta strong { font-size: 13.5px; }
  .review-grid { margin-top: 12px; }
  .review-card { flex: 0 0 82%; scroll-snap-align: start; padding: 16px; border-radius: 14px; }
  .review-card p { font-size: 14px; }

  /* Compact Booking & Footer */
  .booking-aside-card { padding: 20px; border-radius: 18px; }
  .booking-form { padding: 20px 16px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { padding: 32px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 20px; }
  .footer-bottom { padding-right: 0; font-size: 12px; }

  /* Article Page Mobile App Reading */
  .article-hero { padding: 16px 0 18px; }
  .breadcrumb { font-size: 12px; margin-bottom: 10px; }
  .article-title { font-size: 21px; margin-bottom: 10px; }
  .article-byline { font-size: 12.5px; gap: 12px; }
  .article-layout { padding: 14px 0 28px; gap: 16px; }
  .article-main { padding: 18px 16px; border-radius: 16px; }
  .article-cover { margin: -18px -16px 18px; border-radius: 16px 16px 0 0; }
  .prose { font-size: 15.5px; line-height: 1.8; }
  .prose h2 { font-size: 18.5px; margin: 24px 0 10px; }
  .table-hint { display: block; }
  .wechat-cta-card { grid-template-columns: 1fr; text-align: center; padding: 20px 16px; }
  .wechat-cta-qr { margin: 0 auto; }
  .wechat-cta-actions { justify-content: center; }
  .article-sidebar #toc-card, .article-sidebar .side-qr-card { display: none !important; }

  /* Mobile Sticky Bar + Native Slide-Up Bottom Sheets */
  .mobile-bar { display: grid; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-dialog {
    width: 100%; max-width: 100%; border-radius: 22px 22px 0 0;
    padding: 12px 18px calc(22px + env(safe-area-inset-bottom));
    animation: v2SheetUp 220ms var(--ease-out);
  }
}

@keyframes v2SheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
