/* ============================================================
   厦门市闽安消防安全职业培训学校 · 官网共享样式 v2
   主题：消防红 + 白，现代化改版
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --primary: #c62828;
  --primary-dark: #8f1d1d;
  --primary-deep: #4a0d12;
  --primary-light: #fde8e8;
  --primary-mist: #fdf3f3;
  --gold: #b45309;
  --gold-light: #fef3c7;

  --ink: #1f2430;
  --ink-soft: #4b5563;
  --muted: #7a8291;
  --line: #e8e6e4;
  --bg-soft: #f8f7f6;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 10px rgba(23, 18, 18, 0.05);
  --shadow: 0 6px 24px rgba(74, 13, 18, 0.08);
  --shadow-lg: 0 18px 44px rgba(74, 13, 18, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --nav-h: 76px;
}

/* ---------- 2. 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 3. 顶部信息条 ---------- */
.topbar {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar a { color: #fecaca; }
.topbar a:hover { color: #fff; }
.topbar .topbar-tel { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 4. 主导航（吸顶 + 毛玻璃） ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(23, 18, 18, 0.06);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.28);
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}
.logo-mark.logo-img {
  background: #fff;
  padding: 6px;
  border: 1px solid var(--line);
}
.logo-text { line-height: 1.25; }
.logo-text strong {
  display: block;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 1.5px;
  font-weight: 800;
}
.logo-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--primary); background: var(--primary-mist); }
.nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 3px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(198, 40, 40, 0.34); }

/* 汉堡按钮（移动端显示） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.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); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  font-family: var(--font);
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(198, 40, 40, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(198, 40, 40, 0.36);
  color: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: #fff; color: var(--primary-dark); border-color: #fff; transform: translateY(-2px); }

.btn-dark-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-dark-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 15px 40px; font-size: 16px; }

/* ---------- 6. 通用区块 ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--primary-mist); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 1.5px;
  line-height: 1.3;
}
.section-head .divider {
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  margin: 20px auto;
}
.section-head p { color: var(--muted); font-size: 15px; }

/* ---------- 7. 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 82% 18%, rgba(255, 255, 255, 0.12) 0%, transparent 48%),
    radial-gradient(ellipse at 12% 92%, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
    linear-gradient(128deg, var(--primary-deep) 0%, var(--primary-dark) 52%, var(--primary) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-top: 104px;
  padding-bottom: 110px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  color: #fde2e2;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.28;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.18);
}
.hero h1 .accent { color: #ffb4b4; }
.hero p {
  font-size: 17px;
  max-width: 660px;
  margin: 0 auto 42px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.4px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 72px;
}
.hero-stats .stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  transition: transform 0.25s, background 0.25s;
}
.hero-stats .stat:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.16); }
.hero-stats .stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.hero-stats .stat span {
  font-size: 13px;
  color: #ffd7d7;
  margin-top: 6px;
  display: block;
}

/* ---------- 8. 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(198, 40, 40, 0.22);
}
.card .icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--primary-mist), var(--primary-light));
  color: var(--primary);
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.25s, background 0.25s;
}
.card:hover .icon { transform: scale(1.06); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--ink); letter-spacing: 0.3px; }
.card p { font-size: 14px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* 课程卡 */
.course-card { display: flex; flex-direction: column; }
.course-card .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 5px 15px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.course-card .icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.26);
}
.course-card ul { margin: 16px 0 24px; }
.course-card ul li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 7px 0 7px 26px;
  position: relative;
}
.course-card ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0.7;
}
.course-card .price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.course-card .price { font-size: 14px; color: var(--muted); font-weight: 600; }

/* 特点条目 */
.feature { text-align: center; padding: 42px 24px; }
.feature .icon { margin: 0 auto 20px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); max-width: 250px; margin: 0 auto; }

/* ---------- 9. 资质证书占位 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.placeholder-box {
  border: 1.5px solid rgba(198, 40, 40, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(198, 40, 40, 0.05) 0%, transparent 50%),
    linear-gradient(160deg, #fff 0%, var(--bg-soft) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.placeholder-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(198, 40, 40, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.placeholder-box .ph-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.placeholder-box b { color: var(--ink-soft); font-size: 15px; font-weight: 600; position: relative; z-index: 1; }
.placeholder-box small { font-size: 12px; color: #a6adba; position: relative; z-index: 1; }
.placeholder-box.has-img::after { display: none; }

/* ---------- 10. 新闻 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(198, 40, 40, 0.2); }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.news-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.5px;
}
.news-meta time { font-size: 12.5px; color: var(--muted); }
.news-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.45; }
.news-summary {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-body {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  white-space: pre-line;
}
.news-more {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
}
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 14px;
}
.news-grid-full { grid-template-columns: repeat(2, 1fr); }

.news-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.news-filter button {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.news-filter button:hover { border-color: var(--primary); color: var(--primary); }
.news-filter button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.24);
}

/* ---------- 11. CTA 横幅 ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(120deg, var(--primary-deep), var(--primary));
  color: #fff;
  padding: 68px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 30px; letter-spacing: 1px; margin-bottom: 8px; }
.cta-band p { color: #ffd7d7; font-size: 15px; }
.cta-band .btn { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.cta-band .btn:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ---------- 12. 内页横幅 ---------- */
.page-hero {
  background:
    radial-gradient(ellipse at 82% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 52%),
    linear-gradient(120deg, var(--primary-deep), var(--primary));
  color: #fff;
  padding: 84px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #ffb4b4;
  margin-bottom: 14px;
  display: block;
  text-transform: uppercase;
}
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 3px; }
.page-hero p { margin-top: 14px; color: rgba(255, 255, 255, 0.86); font-size: 15px; letter-spacing: 0.5px; }

/* ---------- 13. 关于页 ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-intro .media { min-height: 400px; }
.about-intro h2 { font-size: 30px; margin-bottom: 18px; letter-spacing: 0.5px; }
.about-intro p { color: var(--ink-soft); margin-bottom: 16px; font-size: 15px; }
.about-points { margin-top: 22px; display: grid; gap: 12px; }
.about-points li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-soft); font-size: 14px;
}
.about-points li svg { flex-shrink: 0; margin-top: 4px; color: var(--primary); }

/* 时间线 */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.timeline-item .year {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.timeline-item h3 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--muted); }

/* 师资 */
.team-card { text-align: center; padding: 38px 24px; }
.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-mist), var(--primary-light));
  color: var(--primary);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.team-card h3 { font-size: 17px; }
.team-card .role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin: 5px 0 10px;
  display: block;
  letter-spacing: 0.5px;
}
.team-card p { font-size: 13px; color: var(--muted); }

/* ---------- 14. 课程页 ---------- */
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.lesson-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lesson-item:hover { border-color: rgba(198, 40, 40, 0.3); box-shadow: var(--shadow-sm); }
.lesson-item .num {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-mist), var(--primary-light));
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 17px;
}
.lesson-item b { color: var(--ink); font-weight: 700; display: block; margin-bottom: 4px; }

.step-list { counter-reset: step; display: grid; gap: 0; }
.step-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.step-list li:last-child { border-bottom: none; }
.step-list .step-num {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.24);
}
.step-list b { font-size: 15px; display: block; margin-bottom: 4px; }
.step-list p { font-size: 14px; color: var(--muted); }

/* 开班计划表 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table.schedule { width: 100%; border-collapse: collapse; min-width: 640px; }
table.schedule th, table.schedule td {
  padding: 15px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
table.schedule th {
  background: var(--primary-deep);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
table.schedule tr:last-child td { border-bottom: none; }
table.schedule tbody tr { transition: background 0.15s; }
table.schedule tbody tr:hover { background: var(--primary-mist); }
.badge-ok {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 14px;
}

/* 考站资质条 */
.qual-band {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(255,255,255,0.1) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary-deep), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.qual-band .q-item b,
.qual-band .stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #ffb4b4;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.qual-band .q-item span,
.qual-band .stat span { font-size: 14px; color: rgba(255, 255, 255, 0.88); }

/* ---------- 15. 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.contact-card { text-align: center; padding: 42px 24px; }
.contact-card .icon {
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.26);
}
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--ink-soft); }
.contact-card a { font-size: 14px; }

.contact-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.map-holder { min-height: 420px; }
.wechat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.wechat-card .wc-top {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  padding: 28px 30px;
}
.wechat-card .wc-top h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: 0.5px; }
.wechat-card .wc-top p { font-size: 13px; color: #ffd7d7; }
.wechat-card .wc-body {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.wechat-card .wc-body .qr { max-width: 220px; }
.wechat-card .wc-body small { color: var(--muted); font-size: 13px; }

/* FAQ 手风琴 */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(198, 40, 40, 0.25); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .arrow {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-mist);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: transform 0.25s;
}
.faq-item[open] summary .arrow { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--primary); }
.faq-item[open] { border-color: rgba(198, 40, 40, 0.3); }
.faq-item .faq-body {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- 16. 页脚 ---------- */
.footer {
  background: linear-gradient(180deg, var(--primary-deep), #2a070c);
  color: rgba(255, 255, 255, 0.78);
  padding: 68px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.footer .logo-text strong { color: #fff; }
.footer .logo-text span { color: rgba(255, 255, 255, 0.55); }
.footer-brand p { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.9; }
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  align-items: flex-start;
}
.footer-contact svg { flex-shrink: 0; margin-top: 4px; color: #ffb4b4; }
.footer-contact a { color: rgba(255, 255, 255, 0.85); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 17. 图片占位说明条 ---------- */
.ph-note {
  margin-top: 18px;
  font-size: 13px;
  color: #a6adba;
  text-align: center;
}

/* ---------- 18. 浮动咨询按钮 ---------- */
.float-bar {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
  padding: 13px 20px;
  box-shadow: 0 10px 26px rgba(198, 40, 40, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(198, 40, 40, 0.48); color: #fff; }
.float-wx { background: linear-gradient(135deg, #2fae5f, #1e8a46); box-shadow: 0 10px 26px rgba(31, 138, 70, 0.36); }
.float-wx:hover { box-shadow: 0 14px 32px rgba(31, 138, 70, 0.46); }

.float-wx-pop {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 260px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(23, 18, 18, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  border: 1px solid var(--line);
}
.float-wx-pop.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
}
.wx-head button {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.wx-body { padding: 20px 18px; text-align: center; }
.wx-body img { max-width: 180px; margin: 0 auto 12px; border-radius: 8px; border: 1px solid var(--line); }
.wx-hint { font-size: 13px; color: var(--muted); }
.qr-placeholder {
  width: 160px; height: 160px;
  margin: 0 auto 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1.5px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
}
.qr-placeholder small { font-size: 11px; }

/* ---------- 19. 动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .contact-main { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .section { padding: 76px 0; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 27px; }
  .section-head { margin-bottom: 40px; }

  /* 汉堡菜单 */
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 12px; font-size: 16px; }
  .nav-menu a.active::after { display: none; }
  .nav-cta { margin-top: 10px; justify-content: center; }

  .hero .container { padding-top: 72px; padding-bottom: 80px; }
  .hero h1 { font-size: 31px; letter-spacing: 2px; }
  .hero p { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 52px; }
  .hero-stats .stat b { font-size: 24px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .lesson-grid { grid-template-columns: 1fr; }
  .qual-band { grid-template-columns: 1fr; padding: 34px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-grid, .news-grid-full { grid-template-columns: 1fr; }

  .page-hero { padding: 60px 0; }
  .page-hero h1 { font-size: 29px; }
  .cta-band { padding: 52px 0; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-band h2 { font-size: 24px; }
  .footer { padding: 52px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar .topbar-name { display: none; }
  .topbar { text-align: center; }
  .topbar .container { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 27px; }
  .hero-stats .stat { padding: 20px 12px; }
  .hero-stats .stat b { font-size: 20px; }
  .btn-lg { padding: 14px 30px; font-size: 15px; }
  .float-btn span { display: none; }
  .float-btn { padding: 14px; border-radius: 50%; }
  .float-wx-pop { right: 0; bottom: 64px; }
  .logo-text span { display: none; }
}
