/* ============================================================
   昆一驾校官网 - 科技蓝 · 小米风
   ============================================================ */
:root {
  --blue: #0a5cf5;
  --blue-dark: #0846c0;
  --blue-light: #eaf1ff;
  --ink: #1a1a2e;
  --ink-2: #555;
  --ink-3: #888;
  --bg: #ffffff;
  --bg-gray: #f5f7fb;
  --line: #e8ecf3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 92, 245, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 92, 245, 0.16);
  --container: 1226px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--blue-dark); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
  text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,92,245,.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-light); color: var(--blue-dark); transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }
.brand-text { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 28px; list-style: none; }
.nav-link {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .3s;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { padding: 9px 22px; font-size: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero 轮播 ---------- */
.hero { position: relative; height: 560px; overflow: hidden; background: var(--ink); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,20,45,.72) 0%, rgba(10,20,45,.35) 55%, rgba(10,20,45,.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  transform: translateY(10px);
  animation: heroIn .8s ease forwards;
}
@keyframes heroIn { to { transform: translateY(0); opacity: 1; } }
.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.hero-content p { font-size: 19px; opacity: .95; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 8px;
}
.hero-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: all .3s;
}
.hero-dots span.active { background: #fff; width: 26px; border-radius: 6px; }
.hero-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: all .3s;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* ---------- 通用 section ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: 1px; }
.section-head p { color: var(--ink-3); margin-top: 8px; font-size: 16px; }

/* ---------- 数据区 ---------- */
.stats-section { background: var(--blue); color: #fff; padding: 56px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-label { margin-top: 6px; font-size: 16px; opacity: .9; }

/* ---------- 优势 ---------- */
.features-section { background: var(--bg-gray); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .35s ease;
  border: 1px solid transparent;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.feature-icon { font-size: 44px; margin-bottom: 18px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--ink-2); font-size: 14px; }

/* ---------- 班型卡片 ---------- */
.courses-section { background: var(--bg); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.course-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: all .35s ease;
  text-align: center;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card.highlight {
  border: 2px solid var(--blue);
  box-shadow: 0 12px 40px rgba(10,92,245,.18);
}
.course-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.course-badge.hot { background: #fff3e6; color: #ff7a00; }
.course-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.course-desc { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }
.course-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 22px;
}
.price-symbol { font-size: 22px; margin-right: 2px; vertical-align: super; }
.course-feats { list-style: none; text-align: left; margin-bottom: 28px; }
.course-feats li {
  padding: 8px 0;
  color: var(--ink-2);
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.course-feats li:last-child { border-bottom: none; }

/* ---------- 风采图集 ---------- */
.gallery-section { background: var(--bg-gray); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, #4a8bff 100%);
  padding: 88px 0;
  text-align: center;
  color: #fff;
}
.cta-inner h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-inner p { font-size: 17px; opacity: .95; margin-bottom: 32px; }

/* ---------- 内容页 ---------- */
.inner .site-header { background: rgba(255,255,255,.98); }
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, #27355c 100%);
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.page-crumb { margin-top: 8px; font-size: 14px; opacity: .75; }
.page-crumb a { color: #fff; opacity: .85; }
.page-crumb a:hover { opacity: 1; }
.content-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow);
  margin-top: -24px;
  position: relative;
}
.md-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}
.md-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.md-content p { margin-bottom: 14px; color: var(--ink-2); }
.md-content ul, .md-content ol { margin: 0 0 16px 22px; color: var(--ink-2); }
.md-content li { margin-bottom: 6px; }
.md-content blockquote {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  color: var(--ink-2);
}
.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.md-content th {
  background: var(--blue);
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
}
.md-content td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.md-content tr:nth-child(even) td { background: #fafbfe; }
.md-content tr:hover td { background: var(--blue-light); }
.md-content a { font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0d1530; color: #aab4d0; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding: 56px 20px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: #aab4d0; }
.footer-col a:hover { color: #fff; }
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.footer-about p { font-size: 14px; line-height: 1.9; }
.footer-qr { width: 110px; height: 110px; border-radius: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}
.footer-bottom a { color: #aab4d0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 滚动渐入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    transform: translateY(-120%);
    transition: transform .35s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 12px 0; font-size: 16px; }
  .nav-cta { text-align: center; }
  .hero { height: 440px; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 16px; }
  .hero-arrow { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-num { font-size: 40px; }
  .section { padding: 56px 0; }
  .courses-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .content-card { padding: 28px 20px; }
  .page-hero h1 { font-size: 26px; }
  .cta-inner h2 { font-size: 26px; }
}
