/* ==========================================================================
   臣信职教官网 - 全站样式表
   主色调：蓝色系 | 适配移动端
   ========================================================================== */

/* CSS Variables - Design System */
:root {
  --primary: #1a56db;
  --primary-dark: #1438a6;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-bg: #eff6ff;
  --primary-bg-light: #f0f7ff;
  --accent: #0ea5e9;
  --accent2: #6366f1;

  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --ink: #1e293b;
  --ink-light: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --rule: #e2e8f0;
  --rule-light: #f1f5f9;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
  --shadow-blue: 0 8px 24px rgba(26,86,219,0.15);

  --header-h: 72px;
  --max-w: 1200px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.logo-text { font-size: 18px; }
.logo-sub { font-size: 11px; color: var(--muted); font-weight: 400; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-main > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
}
.nav-main > li > a:hover,
.nav-main > li > a.active {
  color: var(--primary);
  background: var(--primary-bg);
}
.nav-main > li { position: relative; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  z-index: 100;
}
.nav-main > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-light);
  border-radius: var(--radius-sm);
}
.nav-dropdown a:hover { background: var(--primary-bg); color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-warning {
  background: var(--warning);
  color: #fff;
}
.btn-warning:hover { background: #d97706; color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 16px 24px;
  overflow-y: auto;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-light);
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); }
.mobile-nav .btn { margin-top: 16px; }

/* ==========================================================================
   Floating Sidebar
   ========================================================================== */
.float-bar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.float-item {
  width: 56px; height: 56px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.float-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(-4px);
}
.float-item:hover .float-icon,
.float-item:hover .float-label { color: #fff; }
.float-item:hover .float-popup { display: block; }
.float-icon { font-size: 20px; color: var(--primary); transition: color .2s; }
.float-label { font-size: 10px; color: var(--muted); margin-top: 2px; transition: color .2s; }
.float-popup {
  display: none;
  position: absolute;
  right: 100%;
  top: 0;
  margin-right: 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  white-space: nowrap;
}
.float-popup .phone-num { font-size: 20px; font-weight: 700; color: var(--primary); }
.float-popup .qr-text { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Back to top */
.float-top {
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.float-top.show { opacity: 1; visibility: visible; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.footer-logo .logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo .logo-text {
  font-size: 18px; font-weight: 700;
  color: #fff;
}
.footer-slogan {
  font-size: 14px;
  color: var(--primary-light);
  font-weight: 600;
}
.footer-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact .phone {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.footer-contact .phone-label { font-size: 12px; color: #94a3b8; }
.footer-contact .addr { font-size: 13px; color: #94a3b8; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; }

/* ==========================================================================
   Common Sections
   ========================================================================== */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-bg { background: var(--bg2); }
.section-tint { background: var(--primary-bg-light); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-header .accent-line {
  width: 48px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--muted-light); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 80px 0 60px;
  margin-top: var(--header-h);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.page-banner h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}
.page-banner p {
  font-size: 16px;
  opacity: 0.9;
  position: relative;
}

/* ==========================================================================
   Course Cards
   ========================================================================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
/* Course card image - with real photo */
.course-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-bg), var(--primary-bg-light));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.course-card-img.has-image {
  font-size: 0;
}
.course-card-img.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 50%);
  z-index: 1;
}
.course-card-img:not(.has-image)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(255,255,255,0.5));
}
.course-card-img.has-image .course-card-tag {
  z-index: 2;
}
.course-card-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 1;
}
.course-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.course-card-body .course-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
  flex: 1;
}
.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.course-card-meta span {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg3);
  padding: 3px 8px;
  border-radius: 4px;
}
.course-card-actions {
  display: flex;
  gap: 8px;
}
.course-card-actions .btn { flex: 1; }
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.course-card-footer .course-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--danger);
}
.course-card-footer .btn { flex-shrink: 0; }

/* Category Tabs */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-item {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 24px;
  cursor: pointer;
  transition: all .2s;
}
.tab-item:hover { border-color: var(--primary); color: var(--primary); }
.tab-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   Stat Blocks
   ========================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-num .unit { font-size: 16px; font-weight: 400; }
.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ==========================================================================
   Advantage Cards
   ========================================================================== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantage-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all .3s;
}
.advantage-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.advantage-icon {
  width: 52px; height: 52px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.advantage-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.advantage-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   Homepage Scenes Grid (上课场景)
   ========================================================================== */
.home-scenes-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
.home-scene-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
  transition: all .3s;
}
.home-scene-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.home-scene-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-bg);
  transition: transform .4s;
}
.home-scene-card:hover .home-scene-img {
  transform: scale(1.05);
}
.home-scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 60%);
  color: #fff;
}
.home-scene-overlay h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.home-scene-overlay p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}
.home-scene-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.home-scene-lg {
  grid-row: span 2;
  aspect-ratio: auto;
}
.home-scene-lg .home-scene-overlay h3 {
  font-size: 22px;
}

@media (max-width: 768px) {
  .home-scenes-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 14px;
  }
  .home-scene-card {
    aspect-ratio: 4/3;
  }
  .home-scene-lg {
    grid-row: span 1;
    grid-column: span 2;
    aspect-ratio: 16/9;
  }
  .home-scene-lg .home-scene-overlay h3 { font-size: 18px; }
  .home-scene-overlay { padding: 14px; }
}
@media (max-width: 480px) {
  .home-scenes-grid {
    grid-template-columns: 1fr;
  }
  .home-scene-lg { grid-column: span 1; aspect-ratio: 16/9; }
  .home-scene-card { aspect-ratio: 16/9; }
}

/* ==========================================================================
   Campus Cards
   ========================================================================== */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.campus-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.campus-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.campus-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 40px;
  position: relative;
}
.campus-card-img[style*="background-image"] {
  font-size: 0;
}
.campus-card-img[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 60%);
}
.campus-card-img .campus-province {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}
.campus-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.campus-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}
.campus-info {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.campus-info .info-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.campus-info .info-icon { color: var(--primary); flex-shrink: 0; }
.campus-card-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

/* Province Filter */
.province-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.province-chip {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--ink-light);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
}
.province-chip:hover { border-color: var(--primary); color: var(--primary); }
.province-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   Trial Modal
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  padding: 24px 28px 16px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.modal-header p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: all .2s;
}
.modal-close:hover { background: var(--bg3); color: var(--ink); }
.modal-body { padding: 24px 28px; }
.modal-body .form-group { margin-bottom: 16px; }
.modal-body .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.modal-body .form-group label .req { color: var(--danger); }
.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s;
  background: #fff;
}
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.modal-body textarea { resize: vertical; min-height: 80px; }
.modal-success {
  text-align: center;
  padding: 32px 24px;
}
.modal-success .success-icon {
  width: 60px; height: 60px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 30px;
  color: var(--success);
}
.modal-success h3 { font-size: 20px; margin-bottom: 8px; }
.modal-success p { font-size: 14px; color: var(--muted); }
.modal-privacy {
  font-size: 12px;
  color: var(--muted-light);
  text-align: center;
  margin-top: 12px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 24px;
}
.cta-section .btn-warning {
  font-size: 16px;
  padding: 14px 40px;
}
.cta-section .cta-phone {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.85;
}
.cta-section .cta-phone strong { font-size: 20px; }

/* ==========================================================================
   Method / Step Flow (课程中心教学法)
   ========================================================================== */
.method-block { margin-bottom: 40px; }
.method-head { text-align: center; margin-bottom: 28px; }
.method-head h3 { font-size: 22px; margin-bottom: 8px; }
.method-head h3 .badge {
  display: inline-block; font-size: 12px; font-weight: 500;
  padding: 2px 10px; border-radius: 20px;
  background: var(--primary-bg); color: var(--primary);
  margin-left: 8px; vertical-align: middle;
}
.method-head p { font-size: 14px; color: var(--muted); }

.step-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 4px;
}
.step-card {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px 12px 16px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: box-shadow .2s, border-color .2s;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.step-icon { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.step-card h4 { font-size: 16px; margin-bottom: 4px; color: var(--ink); }
.step-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }

.step-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: var(--primary-light);
  font-size: 20px;
  font-weight: 700;
}

.ladder-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.8;
}

/* Step flow responsive */
@media (max-width: 1024px) {
  .step-flow { overflow-x: auto; }
  .step-card { min-width: 130px; }
}
@media (max-width: 768px) {
  .step-card { min-width: 120px; padding: 14px 8px 12px; }
  .step-icon { font-size: 24px; }
  .step-card h4 { font-size: 14px; }
  .step-card p { font-size: 11px; }
  .step-arrow { font-size: 16px; padding: 0 4px; }
}

/* ==========================================================================
   Teaching Method (讲师团队教学法)
   ========================================================================== */
.teaching-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.method-card {
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.method-card h3 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-bg);
}
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.method-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.method-step .step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.method-step .step-content h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}
.method-step .step-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .teaching-method { grid-template-columns: 1fr; gap: 20px; }
  .method-card { padding: 20px 16px; }
  .method-card h3 { font-size: 18px; margin-bottom: 16px; }
  .method-step .step-num { width: 28px; height: 28px; font-size: 13px; }
  .method-step .step-content h4 { font-size: 14px; }
  .method-step .step-content p { font-size: 12px; }
}

/* ==========================================================================
   About Page - Intro Layout (公司简介+前台图)
   ========================================================================== */
.intro-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}
.intro-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-light);
  margin-bottom: 16px;
  text-indent: 2em;
}
.intro-img {
  position: sticky;
  top: 80px;
}
.intro-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.intro-img .img-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
@media (max-width: 768px) {
  .intro-layout { grid-template-columns: 1fr; gap: 20px; }
  .intro-text p { font-size: 14px; line-height: 1.8; }
  .intro-img { position: static; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group label .req { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .2s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}
.faq-question:hover { background: var(--primary-bg-light); }
.faq-question .faq-icon {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 120px; top: 0; bottom: 0;
  width: 2px;
  background: var(--rule);
}
.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
}
.timeline-year {
  width: 100px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  padding-top: 2px;
}
.timeline-content {
  flex: 1;
  padding-left: 24px;
  position: relative;
}
.timeline-content::before {
  content: '';
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   Article Cards
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background: linear-gradient(135deg, var(--primary-bg), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary-light);
}
.article-card-img[style*="background-image"] {
  font-size: 0;
}
.article-card-body { padding: 20px; }
.article-card-body .article-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.article-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */
.hero {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-content .hero-sub {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { padding: 14px 32px; font-size: 16px; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.hero-stat .num { font-size: 28px; font-weight: 700; }
.hero-stat .label { font-size: 13px; opacity: 0.8; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 400px;
}
.hero-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-card .form-group { margin-bottom: 12px; }
.hero-card input,
.hero-card select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
}
.hero-card input::placeholder { color: rgba(255,255,255,0.6); }
.hero-card input option,
.hero-card select option { color: var(--ink); }
.hero-card .btn-warning { width: 100%; padding: 12px; font-size: 16px; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-light);
  background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   Content blocks
   ========================================================================== */
.content-block {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.content-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--ink);
}
.content-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--primary);
}
.content-block p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 14px;
}
.content-block ul { padding-left: 20px; margin-bottom: 12px; }
.content-block ul li {
  list-style: disc;
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 6px;
  line-height: 1.7;
}

/* Tag list */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
  padding: 4px 12px;
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-bg);
  border-radius: 4px;
}

/* Info cards row */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all .3s;
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.info-card .icon { font-size: 36px; margin-bottom: 14px; }
.info-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.info-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Map placeholder */
.map-placeholder {
  width: 100%; height: 450px;
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
}

/* Mobile bottom call bar - default hidden on desktop */
.mobile-call-bar { display: none; }
body.has-mobile-bar { padding-bottom: 0; }

/* ==========================================================================
   Responsive - Mobile First
   ========================================================================== */

/* Tablet (<=1024px) */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .nav-main { display: none; }
  .menu-toggle { display: flex; }
  .header-phone { font-size: 14px; }
  .header-actions .btn { display: none; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .campus-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* Mobile (<=768px) - 全面优化 */
@media (max-width: 768px) {
  :root { --header-h: 52px; }

  /* ---- Base ---- */
  body { font-size: 14px; line-height: 1.65; }
  .container { padding: 0 16px; max-width: 100%; }

  /* ---- Header ---- */
  .header-inner { padding: 0 12px; gap: 8px; }
  .logo { gap: 6px; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }
  .logo-text { font-size: 15px; }
  .logo-sub { display: none; }
  .header-actions { display: flex; gap: 6px; margin-left: auto; }
  .header-phone { font-size: 12px; gap: 4px; }
  .header-phone svg { width: 13px; height: 13px; }
  .header-actions .btn { display: none; }
  .menu-toggle { padding: 6px; margin-left: 4px; }
  .menu-toggle span { width: 20px; }

  /* ---- Mobile Nav Drawer ---- */
  .mobile-nav { top: var(--header-h); padding: 12px 16px; }
  .mobile-nav a { padding: 12px 14px; font-size: 15px; }
  .mobile-nav .btn { margin-top: 12px; }

  /* ---- Sections ---- */
  .section { padding: 32px 0; }
  .section-sm { padding: 24px 0; }
  .section-header { margin-bottom: 24px; }
  .section-header h2 { font-size: 20px; margin-bottom: 6px; }
  .section-header p { font-size: 13px; }
  .section-header .accent-line { width: 36px; margin-top: 8px; }

  /* ---- Breadcrumb ---- */
  .breadcrumb { padding: 10px 0; font-size: 12px; }
  .breadcrumb span { margin: 0 4px; }

  /* ---- Page Banner ---- */
  .page-banner { padding: 48px 0 32px; }
  .page-banner h1 { font-size: 22px; margin-bottom: 6px; }
  .page-banner p { font-size: 13px; }
  .page-banner::before { width: 300px; height: 300px; top: -40%; }

  /* ---- Hero ---- */
  .hero { padding: 24px 0 32px; }
  .hero-inner { gap: 20px; }
  .hero-content h1 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
  .hero-content .hero-sub { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
  .hero-actions { display: none; }
  .hero-stats { gap: 16px; margin-top: 20px; justify-content: space-around; }
  .hero-stat .num { font-size: 18px; }
  .hero-stat .label { font-size: 11px; }

  /* Hero card (form) */
  .hero-visual { order: 1; }
  .hero-card { padding: 16px; border-radius: 14px; max-width: 100%; }
  .hero-card h3 { font-size: 15px; margin-bottom: 10px; }
  .hero-card .form-group { margin-bottom: 10px; }
  .hero-card input { padding: 10px 12px; font-size: 14px; }
  .hero-card .btn-warning { padding: 10px; font-size: 15px; }

  /* ---- Info Cards (三大业务) ---- */
  .info-cards { grid-template-columns: 1fr; gap: 12px; }
  .info-card { padding: 18px 16px; display: flex; align-items: center; gap: 12px; text-align: left; }
  .info-card .icon { font-size: 28px; margin-bottom: 0; flex-shrink: 0; }
  .info-card h4 { font-size: 14px; margin-bottom: 2px; }
  .info-card p { font-size: 12px; }

  /* ---- Tab Bar ---- */
  .tab-bar { gap: 6px; margin-bottom: 20px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .tab-item { padding: 7px 16px; font-size: 13px; white-space: nowrap; border-radius: 20px; }

  /* ---- Course Grid ---- */
  .course-grid { grid-template-columns: 1fr; gap: 16px; }
  .course-card { border-radius: 10px; }
  .course-card-body { padding: 14px; }
  .course-card-body h3 { font-size: 16px; margin-bottom: 6px; }
  .course-card-body .course-desc { font-size: 12px; margin-bottom: 10px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .course-card-meta { gap: 4px; margin-bottom: 10px; }
  .course-card-meta span { font-size: 11px; padding: 2px 6px; }
  .course-card-footer { gap: 8px; }
  .course-card-footer .btn { padding: 7px 12px; font-size: 12px; }
  .course-card-footer .course-price { font-size: 14px; }

  /* ---- Campus Grid ---- */
  .campus-grid { grid-template-columns: 1fr; gap: 12px; }
  .campus-card { border-radius: 10px; }
  .campus-card-body { padding: 12px; }
  .campus-card-body h3 { font-size: 15px; margin-bottom: 6px; }
  .campus-info { font-size: 12px; line-height: 1.6; }
  .campus-info .info-row { margin-bottom: 4px; }
  .campus-card-actions { margin-top: 10px; gap: 6px; }
  .campus-card-actions .btn { padding: 6px 12px; font-size: 12px; }

  /* ---- Article Grid ---- */
  .article-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-card { border-radius: 10px; }
  .article-card-body { padding: 14px; }
  .article-card-body .article-tag { font-size: 11px; padding: 2px 6px; margin-bottom: 6px; }
  .article-card-body h3 { font-size: 15px; margin-bottom: 6px; }
  .article-card-body p { font-size: 12px; }
  .article-card-meta { font-size: 11px; margin-top: 8px; }

  /* ---- Advantage Grid ---- */
  .advantage-grid { grid-template-columns: 1fr; gap: 12px; }
  .advantage-card { padding: 18px 16px; border-radius: 10px; }
  .advantage-icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 10px; }
  .advantage-card h3 { font-size: 15px; margin-bottom: 6px; }
  .advantage-card p { font-size: 13px; line-height: 1.6; }

  /* ---- Stat Row ---- */
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 26px; }
  .stat-num .unit { font-size: 13px; }
  .stat-label { font-size: 12px; }

  /* ---- Two Col ---- */
  .two-col { grid-template-columns: 1fr; gap: 20px; }

  /* ---- Footer ---- */
  .footer { padding: 16px 0; margin-top: 20px; }
  .footer-grid { display: none; }
  .footer-bottom { padding-top: 0; font-size: 11px; line-height: 1.6; border-top: none; }

  /* ---- Float Bar (右侧悬浮) - 移动端隐藏 ---- */
  .float-bar { display: none !important; }

  /* ---- CTA Section ---- */
  .cta-section { padding: 32px 0; }
  .cta-section h2 { font-size: 18px; margin-bottom: 6px; }
  .cta-section p { font-size: 13px; margin-bottom: 16px; }
  .cta-section .btn-warning { font-size: 14px; padding: 10px 28px; }
  .cta-section .cta-phone { margin-top: 12px; font-size: 12px; }
  .cta-section .cta-phone strong { font-size: 16px; }

  /* ---- Content Block ---- */
  .content-block { padding: 16px; border-radius: 10px; margin-bottom: 16px; }
  .content-block h2 { font-size: 18px; margin-bottom: 12px; }
  .content-block h3 { font-size: 15px; margin-top: 14px; margin-bottom: 6px; }
  .content-block p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
  .content-block ul { padding-left: 16px; margin-bottom: 8px; }
  .content-block ul li { font-size: 13px; margin-bottom: 4px; }

  /* ---- FAQ ---- */
  .faq-list { max-width: 100%; }
  .faq-item { border-radius: 8px; margin-bottom: 8px; }
  .faq-question { padding: 12px 14px; font-size: 14px; }
  .faq-answer-inner { padding: 0 14px 12px; font-size: 13px; line-height: 1.7; }

  /* ---- Timeline ---- */
  .timeline::before { left: 6px; }
  .timeline-item { flex-direction: row; gap: 0; margin-bottom: 20px; }
  .timeline-year { width: auto; font-size: 12px; text-align: left; position: absolute; left: 20px; top: 0; }
  .timeline-content { padding-left: 24px; padding-top: 18px; }
  .timeline-content::before { left: 0; top: 22px; width: 10px; height: 10px; }
  .timeline-content h4 { font-size: 14px; margin-bottom: 3px; }
  .timeline-content p { font-size: 12px; line-height: 1.6; }

  /* ---- Modal ---- */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 85vh; animation: slideUp .3s ease; }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .modal-header { padding: 20px 20px 12px; }
  .modal-header h3 { font-size: 18px; }
  .modal-header p { font-size: 13px; }
  .modal-close { top: 12px; right: 12px; width: 28px; height: 28px; font-size: 18px; }
  .modal-body { padding: 16px 20px 20px; }
  .modal-body .form-group { margin-bottom: 12px; }
  .modal-body .form-group label { font-size: 13px; margin-bottom: 4px; }
  .modal-body input, .modal-body textarea { padding: 10px 12px; font-size: 15px; }

  /* ---- Pagination ---- */
  .pagination { gap: 4px; margin-top: 24px; }
  .pagination a { padding: 6px 10px; font-size: 13px; }

  /* ---- Map ---- */
  .map-placeholder { height: 300px; font-size: 14px; border-radius: 10px; }

  /* ---- Tag List ---- */
  .tag-list { gap: 6px; }
  .tag-item { padding: 3px 8px; font-size: 12px; }

  /* ---- Mobile Bottom Call Bar ---- */
  .mobile-call-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 54px;
    background: #fff;
    border-top: 1px solid var(--rule);
    display: flex !important;
    z-index: 800;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }
  body.has-mobile-bar { padding-bottom: 54px; }
  .mobile-call-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 10px;
    color: #fff;
    gap: 1px;
    font-weight: 600;
  }
  .mobile-call-bar .bar-icon,
  .mobile-call-bar .m-icon {
    font-size: 18px;
    line-height: 1;
  }
  .mobile-call-bar a.m-contact { background: #07c160; }
  .mobile-call-bar a.m-call { background: var(--primary); }
  .mobile-call-bar a.m-trial { background: var(--warning); }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-num { font-size: 22px; }
  .hero-content h1 { font-size: 20px; }
  .hero-stat .num { font-size: 16px; }
  .hero-stat .label { font-size: 10px; }
  .section-header h2 { font-size: 18px; }
  .page-banner h1 { font-size: 20px; }
}

/* ==========================================================================
   Mobile Adaptation Enhancements (2026 Update)
   ========================================================================== */

/* ---- Footer Mobile Fix: Show simplified footer instead of hiding ---- */
@media (max-width: 768px) {
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }
  .footer-brand {
    grid-column: span 2;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 4px;
  }
  .footer-brand .footer-logo {
    justify-content: center;
  }
  .footer-brand .footer-desc {
    font-size: 12px;
    line-height: 1.6;
  }
  .footer-col h4 {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .footer-col a {
    font-size: 12px;
    line-height: 2;
  }
  .footer-contact {
    grid-column: span 2;
    border-top: 1px solid var(--rule);
    padding-top: 12px;
    text-align: center;
  }
  .footer-contact .phone {
    font-size: 20px;
  }
  .footer-contact .addr {
    font-size: 11px;
    line-height: 1.6;
  }
}

/* ---- 480px Small Mobile Footer ---- */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-brand,
  .footer-contact {
    grid-column: span 1;
  }
}

/* ---- Form Input: Prevent iOS Zoom ---- */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea,
  .hero-card input,
  .hero-card select,
  .modal-body input,
  .modal-body textarea,
  .modal-body select {
    font-size: 16px !important;
  }
}

/* ---- Button Touch Target Enhancement ---- */
@media (max-width: 768px) {
  .btn {
    min-height: 40px;
    padding: 8px 18px;
  }
  .btn-sm {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 13px;
  }
  .btn-lg {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
  }
  .btn-block {
    width: 100%;
  }
  .course-card-footer .btn,
  .campus-card-actions .btn,
  .campus-item-actions .btn {
    flex: 1;
    min-height: 38px;
    text-align: center;
    font-size: 13px;
  }
  .teacher-card-actions .btn {
    flex: 1;
    min-height: 38px;
    text-align: center;
    font-size: 12px;
    padding: 7px 10px;
  }
}

/* ---- Content Block Mobile Enhancement ---- */
@media (max-width: 768px) {
  .content-block {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .content-block h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .content-block h3 {
    font-size: 15px;
    margin-top: 14px;
    margin-bottom: 6px;
  }
  .content-block p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
  }
  .content-block ul {
    padding-left: 16px;
    margin-bottom: 8px;
  }
  .content-block ul li {
    font-size: 13px;
    margin-bottom: 4px;
  }
}

/* ---- Hero Enhancement ---- */
@media (max-width: 768px) {
  .hero {
    padding: 16px 0 24px;
  margin-top: var(--header-h);
  }
  .hero-card {
    padding: 14px;
    border-radius: 14px;
    max-width: 100%;
  }
  .hero-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .hero-card .form-group {
    margin-bottom: 10px;
  }
  .hero-card input,
  .hero-card select {
    padding: 10px 12px;
    font-size: 16px;
  }
  .hero-card .btn-warning {
    padding: 12px;
    font-size: 16px;
  }
  .hero-stats {
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .hero-stat .num {
    font-size: 18px;
  }
  .hero-stat .label {
    font-size: 10px;
  }
}

/* ---- Tab Bar Horizontal Scroll ---- */
@media (max-width: 768px) {
  .tab-bar {
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .tab-item {
    padding: 7px 16px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 20px;
    flex-shrink: 0;
  }
}

/* ---- CTA Section Mobile ---- */
@media (max-width: 768px) {
  .cta-section {
    padding: 32px 0;
  }
  .cta-section h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .cta-section p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .cta-section .btn-warning {
    font-size: 15px;
    padding: 12px 32px;
    min-height: 44px;
  }
  .cta-section .cta-phone {
    margin-top: 12px;
    font-size: 12px;
  }
  .cta-section .cta-phone strong {
    font-size: 18px;
  }
}

/* ---- Section Header Mobile ---- */
@media (max-width: 768px) {
  .section {
    padding: 28px 0;
  }
  .section-sm {
    padding: 20px 0;
  }
  .section-header {
    margin-bottom: 20px;
  }
  .section-header h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }
  .section-header p {
    font-size: 13px;
  }
  .section-header .accent-line {
    width: 36px;
    margin-top: 8px;
  }
}

/* ---- Page Banner Mobile ---- */
@media (max-width: 768px) {
  .page-banner {
    padding: 40px 0 28px;
  }
  .page-banner h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .page-banner p {
    font-size: 13px;
  }
  .page-banner::before {
    width: 260px;
    height: 260px;
    top: -40%;
  }
}

/* ---- Pagination Mobile ---- */
@media (max-width: 768px) {
  .pagination {
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination a {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---- Map Placeholder Mobile ---- */
@media (max-width: 768px) {
  .map-placeholder {
    height: 300px;
    font-size: 14px;
    border-radius: 10px;
  }
}

/* ---- Modal Mobile Enhancement ---- */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    animation: slideUp .3s ease;
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-header {
    padding: 18px 20px 12px;
  }
  .modal-header h3 {
    font-size: 18px;
  }
  .modal-header p {
    font-size: 13px;
  }
  .modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .modal-body {
    padding: 16px 20px 20px;
  }
  .modal-body .form-group {
    margin-bottom: 12px;
  }
  .modal-body .form-group label {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .modal-body input,
  .modal-body textarea,
  .modal-body select {
    padding: 10px 12px;
    font-size: 16px;
  }
  .modal-body .btn-lg {
    min-height: 48px;
    font-size: 16px;
  }
}

/* ---- Mobile Call Bar Enhancement ---- */
@media (max-width: 768px) {
  .mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: #fff;
    border-top: 1px solid var(--rule);
    display: flex !important;
    z-index: 800;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }
  body.has-mobile-bar {
    padding-bottom: 54px;
  }
  .mobile-call-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 10px;
    color: #fff;
    gap: 1px;
    font-weight: 600;
  }
  .mobile-call-bar .bar-icon {
    font-size: 18px;
    line-height: 1;
  }
  .mobile-call-bar a.m-contact { background: #07c160; }
  .mobile-call-bar a.m-call { background: var(--primary); }
  .mobile-call-bar a.m-trial { background: var(--warning); }
}

/* ---- Float Bar Hidden on Mobile ---- */
@media (max-width: 768px) {
  .float-bar {
    display: none !important;
  }
}

/* ---- 480px Small Mobile Extra ---- */
@media (max-width: 480px) {
  body {
    font-size: 13px;
    line-height: 1.6;
  }
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 20px 0;
  }
  .section-sm {
    padding: 16px 0;
  }
  .section-header h2 {
    font-size: 17px;
  }
  .page-banner {
    padding: 32px 0 20px;
  }
  .page-banner h1 {
    font-size: 19px;
  }
  .page-banner p {
    font-size: 12px;
  }
  .hero-content h1 {
    font-size: 19px;
    line-height: 1.3;
  }
  .hero-content .hero-sub {
    font-size: 12px;
    line-height: 1.5;
  }
  .hero-stats {
    gap: 10px;
  }
  .hero-stat .num {
    font-size: 16px;
  }
  .hero-stat .label {
    font-size: 10px;
  }
  .hero-card {
    padding: 12px;
  }
  .hero-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-num {
    font-size: 22px;
  }
  .stat-num .unit {
    font-size: 12px;
  }
  .stat-label {
    font-size: 11px;
  }
  .course-card-body {
    padding: 12px;
  }
  .course-card-body h3 {
    font-size: 15px;
  }
  .course-card-footer .btn {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 34px;
  }
  .course-card-footer .course-price {
    font-size: 13px;
  }
  .article-card-body {
    padding: 12px;
  }
  .article-card-body h3 {
    font-size: 14px;
  }
  .content-block {
    padding: 14px;
  }
  .content-block h2 {
    font-size: 16px;
  }
  .content-block p {
    font-size: 13px;
  }
  .cta-section h2 {
    font-size: 16px;
  }
  .cta-section .btn-warning {
    font-size: 14px;
    padding: 10px 24px;
  }
  .modal-header h3 {
    font-size: 16px;
  }
  .modal-body {
    padding: 14px 16px 16px;
  }
  .breadcrumb {
    font-size: 11px;
    padding: 8px 0;
  }
  .tab-item {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ---- Landscape Phone ---- */
@media (max-width: 768px) and (orientation: landscape) {
  .modal {
    max-height: 90vh;
    border-radius: var(--radius-lg);
    margin: auto;
  }
  .modal-overlay {
    align-items: center;
    padding: 16px;
  }
}

/* Print */
@media print {
  .header, .float-bar, .footer, .menu-toggle, .mobile-nav, .mobile-call-bar { display: none !important; }
  body { background: #fff; }
}
