/* =========================================================
   科睿尔科技 · Koriell Education
   教育网站主样式  (沉稳配色: 藏蓝 #1E3A5F + 香槟金 #C6A15B)
   ========================================================= */

/* ---------- 1. CSS 变量与重置 ---------- */
:root {
  --primary: #1E3A5F;
  --primary-dark: #142A4A;
  --primary-light: #E4EAF2;
  --secondary: #A9853C;
  --secondary-dark: #8C6E2F;
  --secondary-light: #F5EFE0;
  --gradient-main: linear-gradient(135deg, #1E3A5F 0%, #2F4E78 100%);
  --gradient-pink: linear-gradient(135deg, #C6A15B, #A9853C);
  --gradient-teal: linear-gradient(135deg, #5A7390, #3F5A78);
  --dark: #212529;
  --dark-2: #343a40;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --border: #e9ecef;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(33, 37, 41, 0.06);
  --shadow-md: 0 10px 30px rgba(33, 37, 41, 0.10);
  --shadow-lg: 0 20px 50px rgba(33, 37, 41, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 50px;
  --font: "Roboto", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s, background .25s, box-shadow .25s, transform .25s; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 区块通用 */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 55px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--dark);
}
.section-head h2 em {
  font-style: normal;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--gray); font-size: 16px; }

/* ---------- 2. 顶部信息条 ---------- */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a:hover { color: var(--secondary); }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar i { color: var(--secondary); margin-right: 6px; font-style: normal; }
.topbar .topbar-cta {
  color: #fff; font-weight: 600;
  background: var(--secondary);
  padding: 3px 14px; border-radius: var(--radius-pill);
}
.topbar .topbar-cta:hover { background: var(--primary-dark); }

/* ---------- 3. 导航栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 16px rgba(250, 38, 160, .35);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand-name span { background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-sub { font-size: 11px; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li > a {
  display: block; padding: 10px 16px;
  font-size: 15.5px; font-weight: 500; color: var(--dark-2);
  border-radius: 8px;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--primary); background: var(--primary-light); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-main); color: #fff;
  font-weight: 700; font-size: 14.5px;
  padding: 11px 24px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(30,58,95,.3);
  margin-left: 14px;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30,58,95,.4); color:#fff; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.6px; background: var(--dark); border-radius: 3px; transition: .3s; }

/* ---------- 4. Hero 轮播 ---------- */
.hero { position: relative; overflow: hidden; background: var(--gray-light); }
.hero-slide {
  display: none;
  min-height: 560px;
  align-items: center;
  padding: 70px 0;
}
.hero-slide.active { display: flex; animation: heroIn .7s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-pink); }
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900; line-height: 1.18;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--gradient-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc { color: var(--gray); font-size: 17px; max-width: 520px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-size: 15.5px; font-weight: 700; border: 0;
  transition: all .3s ease;
}
.btn-primary { background: var(--gradient-main); color: #fff; box-shadow: 0 10px 24px rgba(30,58,95,.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(30,58,95,.42); color:#fff; }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary-dark); background: var(--secondary-light); }
.btn-light { background: #fff; color: var(--dark); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-3px); }
.hero-stats { display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 30px; font-weight: 900; background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat span { font-size: 13.5px; color: var(--gray); }
.hero-visual { position: relative; }
.hero-visual-inner {
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.hero-visual-inner::before {
  content: ""; position: absolute; top: -70px; right: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.hero-visual-inner::after {
  content: ""; position: absolute; bottom: -50px; left: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(0,0,0,.10);
}
.hero-visual-tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  background: rgba(255,255,255,.22); align-self: flex-start;
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.hero-visual h3 { font-size: 24px; font-weight: 800; line-height: 1.4; position: relative; z-index: 1; }
.hero-visual p { font-size: 14px; opacity: .92; position: relative; z-index: 1; }
.hero-visual-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; }
.hero-visual-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 500; }
.hero-visual-list li::before { content: "✓"; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 5; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: 0; background: #d3d7db; transition: .3s; padding: 0;
}
.hero-dots button.active { width: 30px; border-radius: 6px; background: var(--primary); }

/* ---------- 5. 特色卡片 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all .35s ease; position: relative; overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-main); transform: scaleX(0); transform-origin: left; transition: .35s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 62px; height: 62px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--gray); font-size: 14.5px; }
.icon-pink { background: var(--primary-light); }
.icon-teal { background: var(--secondary-light); }
.icon-dark { background: #eaecef; }

/* ---------- 6. 课程卡片 ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all .35s ease;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.course-thumb {
  position: relative; height: 170px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; overflow: hidden;
}
.course-thumb .thumb-icon { font-size: 52px; position: relative; z-index: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.course-thumb .thumb-label {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--dark);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill);
}
.course-thumb .thumb-cert {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(0,0,0,.28); color: #fff;
  font-size: 11px; letter-spacing: 1px; padding: 4px 10px; border-radius: 6px;
}
.bg-pink { background: linear-gradient(135deg, #1E3A5F, #2F4E78); }
.bg-teal { background: linear-gradient(135deg, #5A7390, #3F5A78); }
.bg-purple { background: linear-gradient(135deg, #33465C, #4A5E78); }
.bg-orange { background: linear-gradient(135deg, #C6A15B, #A9853C); }
.bg-blue { background: linear-gradient(135deg, #2C4A6E, #4A6A8C); }
.course-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 18.5px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.course-body p { color: var(--gray); font-size: 14px; margin-bottom: 16px; flex: 1; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.course-tags span {
  font-size: 12px; color: var(--primary-dark);
  background: var(--primary-light); padding: 4px 11px; border-radius: 6px; font-weight: 600;
}
.course-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 16px; }
.course-price { font-size: 13px; color: var(--gray); }
.course-price b { font-size: 22px; font-weight: 800; color: var(--primary); }
.course-link { font-size: 14px; font-weight: 700; color: var(--secondary-dark); }
.course-link:hover { color: var(--primary); }

/* ---------- 7. 数据统计区 ---------- */
.stats-band {
  background: var(--gradient-main);
  padding: 60px 0; position: relative; overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; top: -90px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.10);
}
.stats-band::after {
  content: ""; position: absolute; bottom: -110px; left: -40px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.10);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 1; }
.stat-item { text-align: center; color: #fff; }
.stat-item b { display: block; font-size: 44px; font-weight: 900; line-height: 1.1; text-shadow: 0 4px 14px rgba(0,0,0,.15); }
.stat-item span { font-size: 14.5px; opacity: .92; }
.stat-item .stat-suffix { font-size: 22px; font-weight: 700; }

/* ---------- 8. 认证价值标签 ---------- */
.cert-cloud { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.cert-chip {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 10px 22px;
  font-size: 14.5px; font-weight: 600; color: var(--dark-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .3s;
}
.cert-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cert-chip.hot { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

/* ---------- 9. 开班计划 ---------- */
.class-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.class-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 28px; display: flex; gap: 22px; transition: all .35s;
}
.class-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.class-date {
  width: 86px; height: 86px; flex-shrink: 0;
  background: var(--gradient-pink); border-radius: 16px;
  color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 8px 18px rgba(250,38,160,.3);
}
.class-date b { font-size: 30px; line-height: 1; font-weight: 800; }
.class-date span { font-size: 12.5px; opacity: .92; margin-top: 4px; }
.class-info { flex: 1; }
.class-info .class-tag { font-size: 12px; color: var(--primary); font-weight: 700; letter-spacing: .5px; }
.class-info h3 { font-size: 17.5px; font-weight: 700; margin: 6px 0 8px; line-height: 1.45; }
.class-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.progress {
  flex: 1; height: 8px; background: var(--gray-light); border-radius: 6px; overflow: hidden;
}
.progress i { display: block; height: 100%; border-radius: 6px; background: var(--gradient-main); }
.progress-row em { font-style: normal; font-size: 12.5px; color: var(--gray); }
.class-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: #fff;
  background: var(--gradient-main); padding: 9px 20px; border-radius: var(--radius-pill);
  box-shadow: 0 6px 14px rgba(30,58,95,.28);
}
.class-btn:hover { transform: translateY(-2px); color: #fff; }

/* ---------- 10. 讲师卡片 ---------- */
.teachers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.teacher-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; text-align: center; transition: all .35s;
}
.teacher-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.teacher-avatar {
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--gradient-main);
  color: #fff; font-size: 40px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 34px auto 18px;
  box-shadow: 0 10px 24px rgba(250,38,160,.32);
}
.teacher-card h3 { font-size: 20px; font-weight: 700; }
.teacher-card .teacher-role {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light); padding: 4px 14px; border-radius: var(--radius-pill);
  margin: 8px 0 14px;
}
.teacher-card .teacher-desc { color: var(--gray); font-size: 14px; padding: 0 26px 14px; min-height: 66px; }
.teacher-tags { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; padding: 0 26px 24px; }
.teacher-tags span { font-size: 12px; background: var(--gray-light); color: var(--dark-2); padding: 4px 11px; border-radius: 6px; font-weight: 600; }

/* ---------- 11. 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 26px; display: flex; flex-direction: column;
  transition: all .35s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.news-card .news-cat { font-size: 12px; font-weight: 700; color: var(--secondary-dark); letter-spacing: 1px; }
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 10px 0 8px; flex: 1; }
.news-card h3 a:hover { color: var(--primary); }
.news-card .news-excerpt { color: var(--gray); font-size: 13.5px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--gray); border-top: 1px dashed var(--border); padding-top: 14px; }

/* ---------- 12. 步骤/流程 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step-card {
  position: relative; background: var(--white);
  border-radius: var(--radius); padding: 30px 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  text-align: center; transition: all .35s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 14px; right: 18px;
  font-size: 40px; font-weight: 900; color: var(--primary-light); line-height: 1;
}
.step-icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--gray); font-size: 13.5px; }

/* ---------- 13. CTA 区块 ---------- */
.cta-band {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 56px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
  background-image: var(--gradient-main);
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; top: -70px; right: -50px;
  width: 210px; height: 210px; border-radius: 50%; background: rgba(255,255,255,.13);
}
.cta-band h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; margin-bottom: 8px; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 15px; position: relative; z-index: 1; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; flex-shrink: 0; }

/* ---------- 14. 页脚 ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer h4 { color: #fff; font-size: 16.5px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--gradient-main); }
.footer-about p { font-size: 14px; line-height: 1.9; margin: 16px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.footer-social a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-links li { margin-bottom: 11px; font-size: 14px; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-links a::before { content: "› "; color: var(--primary); font-weight: 700; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; align-items: flex-start; }
.footer-contact .fc-icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--secondary); }
.footer-contact a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; font-size: 13px; text-align: center;
}
.footer-bottom a:hover { color: var(--secondary); }
.footer-bottom .icp { margin: 0 10px; color: rgba(255,255,255,.45); }

/* ---------- 15. 子页面头部横幅 ---------- */
.page-hero {
  background: var(--gradient-main);
  color: #fff; text-align: center;
  padding: 76px 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: -80px; left: -60px;
  width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.12);
}
.page-hero::after {
  content: ""; position: absolute; bottom: -90px; right: -50px;
  width: 230px; height: 230px; border-radius: 50%; background: rgba(255,255,255,.12);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 12px; position: relative; z-index: 1; }
.page-hero .breadcrumb { font-size: 14px; opacity: .92; position: relative; z-index: 1; }
.page-hero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .breadcrumb i { margin: 0 8px; font-style: normal; opacity: .7; }

/* ---------- 16. 详情/双栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; }
.split-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.25)); }
.split-body h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.3; margin-bottom: 18px; }
.split-body h2 em { font-style: normal; background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.split-body p { color: var(--gray); margin-bottom: 14px; }
.split-body .btn { margin-top: 12px; }
.checks { margin: 16px 0 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14.5px; }
.checks li::before { content: "✓"; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--secondary-light); color: var(--secondary-dark); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 3px; }

/* ---------- 17. 课程详情表格 ---------- */
.course-detail-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.course-detail-head {
  background: var(--gradient-main); color: #fff;
  padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.course-detail-head h3 { font-size: 21px; font-weight: 800; }
.course-detail-head .d-price { font-size: 15px; opacity: .95; }
.course-detail-head .d-price b { font-size: 28px; font-weight: 900; }
.course-detail-body { padding: 30px 32px; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.detail-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--dark-2); }
.detail-list li::before { content: "✓"; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.course-detail-foot { background: var(--gray-light); padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.course-detail-foot .foot-note { font-size: 13.5px; color: var(--gray); }

/* ---------- 18. 新闻列表页 ---------- */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-list-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  display: flex; gap: 26px; align-items: center; transition: all .3s;
}
.news-list-item:hover { box-shadow: var(--shadow-md); transform: translateX(6px); border-color: transparent; }
.news-date-box {
  width: 76px; flex-shrink: 0; text-align: center;
  background: var(--gray-light); border-radius: 12px; padding: 12px 6px;
}
.news-date-box b { display: block; font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.news-date-box span { font-size: 13px; color: var(--gray); }
.news-list-body { flex: 1; }
.news-list-body .news-cat { font-size: 12px; font-weight: 700; color: var(--secondary-dark); }
.news-list-body h3 { font-size: 18px; font-weight: 700; margin: 5px 0 8px; line-height: 1.5; }
.news-list-body h3 a:hover { color: var(--primary); }
.news-list-body p { color: var(--gray); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 19. 讲师详情 ---------- */
.teacher-detail {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 40px; display: grid; grid-template-columns: 240px 1fr; gap: 40px;
  margin-bottom: 26px; align-items: start;
}
.teacher-detail .td-avatar {
  width: 200px; height: 200px; border-radius: 24px;
  background: var(--gradient-main); color: #fff;
  font-size: 74px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 36px rgba(250,38,160,.32); margin: 0 auto;
}
.teacher-detail h3 { font-size: 26px; font-weight: 800; }
.teacher-detail .td-role {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light); padding: 5px 16px; border-radius: var(--radius-pill); margin: 10px 0 16px;
}
.teacher-detail .td-bio { color: var(--dark-2); font-size: 15px; line-height: 2; margin-bottom: 18px; }
.teacher-detail .td-cred { display: flex; flex-direction: column; gap: 10px; }
.teacher-detail .td-cred li { display: flex; gap: 10px; font-size: 14.5px; color: var(--dark-2); }
.teacher-detail .td-cred li::before { content: "•"; color: var(--primary); font-weight: 800; }

/* ---------- 20. 关于页 / 联系 ---------- */
.value-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); text-align: center; transition: all .35s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.value-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.value-card p { color: var(--gray); font-size: 14px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 34px 28px; text-align: center; transition: all .35s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.contact-card .cc-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.contact-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { color: var(--gray); font-size: 14.5px; }
.contact-card a:hover { color: var(--primary); }

/* ---------- 21. 浮动咨询 ---------- */
.float-widget {
  position: fixed; right: 22px; bottom: 22px; z-index: 1000;
  display: flex; flex-direction: column; gap: 12px;
}
.float-widget a {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  box-shadow: var(--shadow-md); transition: all .3s;
}
.float-widget a:hover { transform: scale(1.12); }
.float-phone { background: var(--gradient-main); }
.float-consult { background: var(--gradient-pink); }

/* ---------- 22. 响应式 ---------- */
@media (max-width: 992px) {
  .features-grid, .courses-grid, .teachers-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .teacher-detail { grid-template-columns: 1fr; text-align: center; }
  .teacher-detail .td-cred li { justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-slide { min-height: auto; padding: 50px 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .nav-menu {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 90px 26px 30px; gap: 6px; box-shadow: var(--shadow-lg);
    transition: right .35s ease; overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-menu > li > a { font-size: 16px; width: 100%; }
  .nav-cta { margin: 14px 0 0; width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 998; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 26px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .features-grid, .courses-grid, .teachers-grid, .news-grid, .steps-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; gap: 4px; }
  .topbar-left, .topbar-right { gap: 14px; }
  .hero h1 { font-size: 32px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .class-card { flex-direction: column; }
  .class-date { margin: 0 auto; }
  .news-list-item { flex-direction: column; align-items: flex-start; gap: 14px; }
  .detail-list { grid-template-columns: 1fr; }
  .course-detail-head { flex-direction: column; text-align: center; }
  .course-detail-body, .course-detail-foot { padding: 22px; }
  .teacher-detail { padding: 26px 20px; }
  .cta-btns { width: 100%; }
  .cta-btns .btn { width: 100%; justify-content: center; }
}

/* ---------- 23. 动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
