/* ============================================
   考研教育官网 - 公共样式
   主色调：深蓝 #0B3D91  辅助金：#C9A961
============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0B3D91;
  --primary-dark: #082c6a;
  --primary-light: #1e5cb8;
  --accent: #C9A961;
  --accent-dark: #a88947;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e4e9f0;
  --shadow-sm: 0 2px 8px rgba(11, 61, 145, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 61, 145, 0.1);
  --shadow-lg: 0 16px 48px rgba(11, 61, 145, 0.15);
  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1.4;
}
/* ============ 教研院老师（横向滑动卡片） ============ */
.faculty-heading {
  text-align: center;
  margin: 40px 0 24px;
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 700;
  position: relative;
  display: block;
}
.faculty-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #D4B474, #C9A961);
  margin: 12px auto 0;
  border-radius: 2px;
}
.faculty-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  scrollbar: none;
}
.faculty-scroll::-webkit-scrollbar {
  display: none;
}
.faculty-scroll {
  scrollbar-width: none;
}
.faculty-scroll-inner {
  display: flex;
  gap: 24px;
  padding: 4px 4px 16px;
  min-width: max-content;
}
.faculty-card {
  flex: 0 0 380px;
  padding: 28px 28px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 35, 95, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faculty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 35, 95, 0.14);
  border-color: rgba(201, 169, 97, 0.35);
}
.faculty-card .faculty-name {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.faculty-card .faculty-name::after {
  content: "展开 ▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  transition: transform 0.3s;
}
.faculty-card.open .faculty-name::after {
  content: "收起 ▴";
}
.faculty-card .faculty-tags,
.faculty-card .faculty-desc {
  display: none;
}
.faculty-card.open .faculty-tags,
.faculty-card.open .faculty-desc {
  display: flex;
  animation: facultyFadeIn 0.3s ease;
}
.faculty-card.open .faculty-desc {
  display: block;
}
.faculty-card.open {
  gap: 14px;
}
@keyframes facultyFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faculty-name {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(201, 169, 97, 0.25);
}
.faculty-name-text {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #D4B474 0%, #C9A961 50%, #A88947 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  line-height: 1.2;
}
.faculty-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #D4B474 0%, #C9A961 100%);
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
}
.faculty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.f-tag {
  font-size: 12px;
  font-weight: 400;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(58, 90, 140, 0.3);
  color: var(--primary);
  letter-spacing: 0;
  line-height: 1.6;
}
.faculty-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  margin: 0;
  flex: 1;
}
@media (max-width: 768px) {
  .faculty-card {
    flex: 0 0 300px;
    padding: 24px 20px 20px;
  }
  .faculty-name-text {
    font-size: 26px;
  }
}
/* ============ 金色长条按钮 ============ */
.btn-long-orange {
  display: inline-block;
  min-width: 220px;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #D4B474 0%, #C9A961 50%, #A88947 100%);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 2px;
}
.btn-long-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(201, 169, 97, 0.5);
  filter: brightness(1.08);
}
.btn-long-orange:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.35);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}
.btn-block { display: block; width: 100%; }

/* ============ 导航栏 ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}
.header-inner .logo,
.header-inner .nav a {
  color: #fff;
}
.header-inner .nav a:hover {
  color: var(--accent);
}
.header-inner .nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}
.header.scrolled .header-inner .logo,
.header.scrolled .header-inner .nav a {
  color: var(--primary);
}
.header.scrolled .header-inner .nav a:hover {
  color: var(--accent);
}
.header.scrolled .header-inner .nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 2px;
}

/* 顶部透明导航栏（有颜色背景）：logo文字为白色 */
.header:not(.scrolled) .logo,
.header:not(.scrolled) .logo-sub {
  color: #fff;
}

/* 滚动后白色背景：logo文字为蓝色 */
.header.scrolled .logo,
.header.scrolled .logo-sub {
  color: var(--primary);
}
.logo-mark {
  color: #ffffff;
  box-sizing: content-box;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35);
  flex-shrink: 0;
}
.logo-mark img {
  font-family: Helvetica, Arial, sans-serif;
  background-color: transparent;
  border-width: 0px;
  border-style: solid;
  border-color: #000000;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.25), 0px 4px 8px 0px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* 下拉菜单样式已移除（在线咨询现为普通链接，无需下拉） */

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.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); }

.header-cta {
  padding: 8px 22px;
  font-size: 14px !important;
}

/* ============ 页面 Banner（内页） ============ */
.page-banner {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.2), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 40%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.page-banner p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}
.breadcrumb {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ============ 栏目 Section ============ */
.section {
  padding: 80px 0;
}
.section-soft { background: var(--bg-soft); }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 15px;
}
/* ============ 首页 Hero 轮播 Banner ============ */
.hero {
  background-color: transparent;
  display: block;
  padding: 0;
  color: #ffffff;
  position: relative;
  overflow: visible;
  width: 100%;
  border-radius: 0;
  margin-bottom: 80px;
}
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  max-height: 680px;
  overflow: hidden;
  border-radius: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  border-radius: 0;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.hero-slide:nth-child(3) img {
  color: #0400fa;
  font-weight: 600;
  line-height: normal;
  text-align: left;
}
.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  color: #fff;
  box-sizing: border-box;
  background-color: transparent;
  border-radius: 0;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* ============ Hero 底部 2 个横向功能卡片 ============ */
.hero-features {
  position: relative;
  z-index: 10;
  margin-top: -70px;
  padding: 0;
}
.hero-features .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 12px 32px rgba(15, 35, 95, 0.12), 0 4px 12px rgba(15, 35, 95, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(15, 35, 95, 0.05);
  width: fit-content;
}
.hero-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 35, 95, 0.18), 0 8px 20px rgba(15, 35, 95, 0.08);
}
.hf-text {
  flex: 1;
  min-width: 0;
}
.hf-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.hf-text p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ============ 倒计时卡片（红白配色，正方形，居中布局） ============ */
.hero-feature-countdown {
  background: #ffffff;
  border: 2px solid rgba(231, 76, 60, 0.15);
  position: relative;
  overflow: hidden;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 280px;
  height: 280px;
  padding: 24px;
  box-sizing: border-box;
}
.hero-feature-countdown::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-feature-countdown::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-feature-countdown .hf-text {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-feature-countdown .cd-title {
  font-size: 16px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.hero-feature-countdown .cd-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  border-radius: 2px;
}
.countdown-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cd-days {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}
.cd-days .cd-big {
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 10px rgba(192, 57, 43, 0.25));
}
.cd-days .cd-unit-label {
  font-size: 20px;
  font-weight: 600;
  color: #c0392b;
}
.cd-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(231, 76, 60, 0.15);
  width: 100%;
}
.cd-sub-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.cd-sub-num {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  text-align: center;
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cd-sub-label {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero-feature-countdown {
    width: 240px;
    height: 240px;
    padding: 18px;
  }
  .cd-days .cd-big {
    font-size: 48px;
  }
  .cd-sub {
    gap: 16px;
  }
  .cd-sub-num {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .hero-feature-countdown {
    width: 220px;
    height: 220px;
    padding: 16px;
  }
  .cd-days .cd-big {
    font-size: 40px;
  }
  .cd-sub {
    gap: 12px;
  }
  .cd-sub-num {
    font-size: 16px;
  }
}

.hf-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(11, 61, 145, 0.08);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.hf-link:hover {
  background: var(--primary);
  color: #fff;
}
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.hero-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

@media (max-width: 900px) {
  .hero-slider { aspect-ratio: 16 / 10; min-height: 280px; }
  .hero h1 { font-size: 30px; margin-bottom: 18px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 22px; }
}
.hero-form input,
.hero-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

/* 数据统计 */
.stats {
  margin-top: 60px;
  padding: 40px 0;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ============ 特色卡片（首页） ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.1), rgba(201, 169, 97, 0.15));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}
.feature-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

/* 课程卡片 */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.course-cover {
  height: 180px;
  background: var(--primary);
  display: block;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  background: rgba(201, 169, 97, 0.95);
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.course-body { padding: 24px; }
.course-body h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}
.course-body p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 18px;
  min-height: 44px;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.course-price {
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 700;
}
.course-duration { font-size: 13px; color: var(--text-light); }

/* 教师卡片 */
.teacher-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(11, 61, 145, 0.25);
}

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group label .req { color: #e74c3c; margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* 咨询页 */
.consult-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.consult-card h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

/* ============ 成功弹框 ============ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal-mask.show { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: popIn 0.3s ease;
}
.modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}
.modal h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 10px;
}
.modal p { color: var(--text-light); margin-bottom: 24px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============ 滚动动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 返回顶部 ============ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 40px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  font-size: 20px;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
}
.back-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ============ 页脚 ============ */
.footer {
  background: #081f47;
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact .ic { color: var(--accent); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* ============ 督学老师横向滑动卡片 ============ */
.teacher-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 20px 4px 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}
.teacher-scroll::-webkit-scrollbar {
  height: 6px;
}
.teacher-scroll::-webkit-scrollbar-track {
  background: #f0f2f7;
  border-radius: 3px;
}
.teacher-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}
.teacher-scroll-inner {
  display: flex;
  gap: 20px;
  min-width: max-content;
}
.teacher-scroll-card {
  flex: 0 0 180px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 35, 95, 0.08);
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border);
}
.teacher-scroll-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 35, 95, 0.16);
}
.teacher-scroll-card .teacher-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(11, 61, 145, 0.2);
  overflow: hidden;
}
.teacher-scroll-card .teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.teacher-scroll-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.teacher-scroll-card .teacher-school {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ============ 微信聊天截图卡片 ============ */
.wechat-case-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.wechat-case-grid::-webkit-scrollbar {
  height: 6px;
}
.wechat-case-grid::-webkit-scrollbar-thumb {
  background: rgba(11, 61, 145, 0.3);
  border-radius: 3px;
}
.wechat-case-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
.wechat-case-card {
  flex: 0 0 calc((100% - 80px) / 5);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 35, 95, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.wechat-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 35, 95, 0.16);
}
.wechat-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 17;
  overflow: hidden;
  background: #f0f2f7;
  flex-shrink: 0;
}
.wechat-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
.wechat-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  background: #f0f2f7;
}
.ws-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 16px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wechat-slider:hover .ws-arrow { opacity: 1; }
.ws-arrow:hover { background: #fff; }
.ws-prev { left: 6px; }
.ws-next { right: 6px; }
.ws-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.ws-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}
.ws-dot.active {
  background: #fff;
}
.wechat-info {
  padding: 12px 14px;
  text-align: center;
  background: #fff;
  flex-shrink: 0;
}
.wechat-info p {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0;
}

/* 浮窗放大预览 */
.wechat-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.wechat-lightbox.show {
  display: flex;
}
.wechat-lightbox-inner {
  position: relative;
  max-width: min(92vw, 520px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  gap: 16px;
}
.wechat-lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.wechat-lightbox-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.wechat-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.wechat-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
}
.wechat-lightbox-title {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .wechat-case-card { flex: 0 0 calc((100% - 40px) / 3); min-width: 180px; }
}
@media (max-width: 600px) {
  .wechat-case-card { flex: 0 0 calc((100% - 20px) / 2); min-width: 150px; }
}

/* ============ 学员感言（简易列表） ============ */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
}
.testimonial-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.testimonial-item:last-child {
  border-bottom: none;
}
.testimonial-item:hover {
  background: rgba(11, 61, 145, 0.02);
}
.testimonial-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 10px;
}
.testimonial-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .hero h1 { font-size: 36px; }
  .feature-grid,
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-num { font-size: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero { padding: 130px 0 70px; }
  .page-banner { padding: 120px 0 60px; }
  .page-banner h1 { font-size: 32px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav > a {
    width: 100%;
    text-align: left;
  }
  .nav a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
  }
  .nav a.active::after { display: none; }
  .header-cta {
    text-align: center;
    margin-top: 8px;
  }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .section-title h2 { font-size: 26px; }
  .feature-grid,
  .course-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-banner h1 { font-size: 26px; }
  .section { padding: 50px 0; }
  .section-title { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat-num { font-size: 28px; }
  .btn { padding: 10px 22px; font-size: 14px; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: 26px; }
  .logo span.logo-text { font-size: 18px; }
}
