:root {
  --primary: #FF6A00;
  --primary-dark: #E85D04;
  --primary-soft: #FFF1E9;
  --grad: linear-gradient(135deg, #FF8A00, #FF5E3A);
  --ink: #242331;
  --muted: #6b7280;
  --line: #f0e6dd;
  --bg: #fffaf6;
  --alt: #fff5ee;
  --radius: 16px;
  --shadow: 0 18px 48px rgba(232, 93, 4, .12);
  --shadow-sm: 0 8px 24px rgba(36, 35, 49, .06);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 0, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 106, 0, .45); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .15); }

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 246, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-logo { display: inline-flex; }
.brand-logo img { display: block; height: 48px; width: auto; }
.footer-brand .brand-logo img { height: 52px; }
@media (max-width: 720px) { .brand-logo img { height: 34px; } .footer-brand .brand-logo img { height: 44px; } }
.brand-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-menu { display: flex; gap: 26px; margin-left: 14px; flex: 1; }
.nav-menu a { font-size: 15px; color: var(--ink); font-weight: 500; position: relative; padding: 4px 0; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu a:not(.nav-solution)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s;
}
.nav-menu a:not(.nav-solution):hover::after { width: 100%; }
.nav-solution { color: var(--primary) !important; font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.nav-phone span { font-size: 15px; font-weight: 800; color: var(--primary); letter-spacing: .3px; }
.nav-phone:hover span { color: var(--primary-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 138, 0, .18), transparent 60%),
    radial-gradient(700px 400px at -5% 20%, rgba(255, 94, 58, .12), transparent 55%);
}
.hero-inner {
  position: relative;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow.center { display: block; width: fit-content; margin: 0 auto 16px; }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: -1px; }
.hero-sub { margin: 22px 0 30px; font-size: 16px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-tags span {
  font-size: 13px; color: var(--primary-dark); background: #fff;
  border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px;
}

/* Hero 可视化面板 */
.hero-visual { position: relative; }
.dash {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--line);
}
.dash-head {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px;
  background: linear-gradient(90deg, #fff5ee, #fff); border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.dash-title { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dash-body { display: grid; grid-template-columns: 130px 1fr; min-height: 300px; }
.dash-side { background: #fbf3ec; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.s-item { font-size: 13px; color: var(--muted); padding: 9px 12px; border-radius: 10px; }
.s-item.active { background: var(--grad); color: #fff; font-weight: 600; }
.dash-main { padding: 18px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--alt); border-radius: 12px; padding: 12px; text-align: center; }
.kpi b { font-size: 22px; color: var(--primary-dark); display: block; }
.kpi b span { font-size: 13px; }
.kpi i { font-size: 12px; color: var(--muted); font-style: normal; }
.chart { height: 110px; margin-bottom: 14px; }
.chart svg { width: 100%; height: 100%; }
.line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.area { fill: rgba(255, 106, 0, .12); stroke: none; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 70px; }
.bars span { flex: 1; height: var(--h); background: var(--grad); border-radius: 6px 6px 0 0; opacity: .85; }
.float-card {
  position: absolute; background: #fff; border-radius: 12px; padding: 10px 14px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.float-card b { display: block; font-size: 14px; color: var(--primary-dark); }
.float-card span { font-size: 12px; color: var(--muted); }
.fc1 { top: 18px; right: -18px; }
.fc2 { bottom: 26px; left: -18px; }

/* ===== 数据统计 ===== */
.stats { background: var(--grad); padding: 46px 0; }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; color: #fff; }
.stat b { font-size: 40px; font-weight: 800; display: block; }
.stat span { font-size: 15px; opacity: .92; }

/* ===== 通用 section ===== */
.section { padding: 86px 0; }
.section-alt { background: var(--alt); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ===== 产品特性 ===== */
.feature-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.f-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ===== 客户案例 ===== */
.case-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; transition: transform .25s, box-shadow .25s;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-tag {
  display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-soft);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.case h4 { font-size: 18px; margin-bottom: 6px; }
.case p { font-size: 13px; color: var(--muted); }

/* ===== 时间线 ===== */
.timeline { max-width: 760px; margin: 0 auto; padding: 0 24px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
}
.tl-item { position: relative; padding-left: 56px; margin-bottom: 28px; }
.tl-dot {
  position: absolute; left: 24px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary-soft);
}
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.tl-card b { color: var(--primary-dark); font-size: 17px; }
.tl-card time { font-size: 13px; color: var(--muted); margin-left: 12px; }
.tl-card p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ===== 关于我们 ===== */
.about-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 30px; font-weight: 800; margin: 12px 0 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text .btn { margin-top: 8px; }
.about-cards { display: flex; flex-direction: column; gap: 18px; }
.addr-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.addr-card h4 { color: var(--primary-dark); font-size: 18px; margin-bottom: 8px; }
.addr-card p { font-size: 14px; color: var(--muted); }

/* ===== CTA ===== */
.cta-band { background: var(--grad); padding: 64px 0; }
.cta-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-text h2 { color: #fff; font-size: 30px; font-weight: 800; }
.cta-text p { color: rgba(255, 255, 255, .92); margin-top: 10px; }
.cta-actions { display: flex; gap: 14px; }

/* ===== 页脚 ===== */
.footer { background: #1f1d29; color: #cfcad6; padding: 60px 0 104px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px;
}
.footer-brand .brand-text { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.footer-brand p { font-size: 14px; margin-top: 14px; color: #9a95a6; max-width: 280px; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: #9a95a6; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-col .footer-phone a { display: inline; color: var(--primary); font-weight: 700; }
.footer-col .footer-phone a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding: 22px 24px 0; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7d7889;
}

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed; right: 24px; bottom: 104px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ===== 滚动揭示动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 13px 24px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .feature-grid, .case-grid, .stats-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .kpi-row { grid-template-columns: 1fr; }
}

/* ===== 课程 / 直播卡片 ===== */
.course-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.course {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-cover, .course img { width: 100%; height: 160px; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 800; }
.course-body { padding: 20px 22px 24px; }
.course-body h4 { font-size: 18px; margin-bottom: 8px; }
.course-body p { font-size: 14px; color: var(--muted); min-height: 42px; }
.course-price { display: inline-block; margin-top: 12px; font-weight: 800; color: var(--primary-dark); font-size: 18px; }
.course-skeleton { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== 预约表单 ===== */
.lead-form { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form .field { margin-bottom: 18px; }
.lead-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.lead-form label i { color: #e11d48; font-style: normal; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; outline: none; font-family: inherit; resize: vertical;
}
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--primary); }
.lead-form .btn { width: 100%; margin-top: 4px; }
.form-msg { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: #e11d48; }

@media (max-width: 760px) {
  .course-grid { grid-template-columns: 1fr; }
  .lead-row { grid-template-columns: 1fr; }
}

/* ===== 咨询电话（固定页面右下角） ===== */
.contact-phone {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px;
  background: #fff;
  border: 1px solid rgba(255, 106, 0, .22);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(232, 93, 4, .22);
  transition: transform .25s, box-shadow .25s;
}
.contact-phone:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(232, 93, 4, .3); }
.contact-phone[hidden] { display: none; }
.contact-phone .cp-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); color: #fff; flex: 0 0 auto;
  animation: cpPulse 2.4s ease-out infinite;
}
@keyframes cpPulse {
  0%   { box-shadow: 0 6px 16px rgba(255, 106, 0, .32), 0 0 0 0 rgba(255, 106, 0, .38); }
  70%  { box-shadow: 0 6px 16px rgba(255, 106, 0, .32), 0 0 0 14px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 6px 16px rgba(255, 106, 0, .32), 0 0 0 0 rgba(255, 106, 0, 0); }
}
.contact-phone .cp-txt { display: flex; flex-direction: column; line-height: 1.15; }
.contact-phone .cp-label { color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.contact-phone .cp-num {
  font-size: 19px; font-weight: 800; letter-spacing: .4px;
  color: var(--primary); white-space: nowrap; line-height: 1.25;
}
.contact-phone .cp-num:hover { color: var(--primary-dark); }

@media (max-width: 640px) {
  /* 小屏：悬浮电话更紧凑（页面底部留白由 .footer 的内边距统一提供，避免遮挡备案号） */
  .footer { padding-bottom: 92px; }
  .contact-phone { right: 10px; bottom: 10px; gap: 8px; padding: 7px 14px 7px 7px; }
  .contact-phone .cp-ico { width: 34px; height: 34px; }
  .contact-phone .cp-ico svg { width: 16px; height: 16px; }
  .contact-phone .cp-num { font-size: 15px; }
  .contact-phone .cp-label { font-size: 11px; }
  .to-top { right: 12px; bottom: 82px; width: 42px; height: 42px; font-size: 18px; }
}


/* ============================================================
   课程 / 直播 详情页（course.php）
   ============================================================ */
.crumbs {
  max-width: 1200px; margin: 22px auto 0; padding: 0 24px;
  font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.crumbs a:hover { color: var(--primary); }
.crumbs em { font-style: normal; color: var(--ink); font-weight: 600; }

.course-hero {
  max-width: 1200px; margin: 0 auto; padding: 24px 24px 0;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center;
}
.course-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -.6px; line-height: 1.25; }
.course-hero-sub { margin-top: 14px; font-size: 16px; color: var(--muted); }
.course-meta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.course-meta span {
  display: inline-flex; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px;
}
.course-meta span b { color: var(--muted); font-weight: 500; font-size: 13px; margin-right: 7px; }
.course-hero-actions { margin-top: 26px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.course-price-lg { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.course-hero-cover {
  border-radius: 20px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3;
}
.course-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 62px; font-weight: 800; letter-spacing: 6px;
}

.course-block { max-width: 1200px; margin: 56px auto 0; padding: 0 24px; }
.course-block-title {
  font-size: 26px; font-weight: 800; margin-bottom: 22px; position: relative; padding-left: 16px;
}
.course-block-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 22px; border-radius: 3px; background: var(--grad);
}

.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.highlight-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
}
.highlight-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.highlight-item .hl-no { font-size: 20px; font-weight: 800; color: var(--primary); opacity: .45; line-height: 1.3; }
.highlight-item p { font-size: 14.5px; line-height: 1.7; }

.course-content {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 38px; box-shadow: var(--shadow-sm);
}
.course-content h3 {
  font-size: 19px; font-weight: 800; margin: 28px 0 12px; position: relative; padding-left: 14px;
}
.course-content h3:first-child { margin-top: 0; }
.course-content h3::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 3px; background: var(--primary);
}
.course-content p { color: #4b5563; font-size: 15.5px; line-height: 1.9; margin-bottom: 12px; }
.course-content p:last-child { margin-bottom: 0; }
.course-content ul.course-list { list-style: none; margin: 12px 0 18px; }
.course-content ul.course-list li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
  color: #4b5563; font-size: 15px; line-height: 1.8;
}
.course-content ul.course-list li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: .75;
}

.course-lead { margin-top: 56px; }

/* 列表卡片可点击（首页 + 详情页推荐） */
.course-link { display: block; color: inherit; }
.course-more-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary); transition: transform .2s; }
.course:hover .course-more-link { transform: translateX(3px); }
.course-cover-0 { background: linear-gradient(135deg, #FF8A00, #F97316); }
.course-cover-1 { background: linear-gradient(135deg, #FF5E3A, #FB7185); }
.course-cover-2 { background: linear-gradient(135deg, #F59E0B, #EF4444); }

@media (max-width: 980px) {
  .course-hero { grid-template-columns: 1fr; gap: 30px; }
  .course-hero-cover { order: -1; }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .course-hero h1 { font-size: 27px; }
  .course-hero { padding-top: 18px; }
  .course-cover-ph { font-size: 46px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .course-block { margin-top: 42px; }
  .course-block-title { font-size: 22px; }
  .course-content { padding: 22px 20px; }
  .course-hero-actions .btn { width: 100%; }
}

/* ===== 首页「查看更多」入口 + 课程列表页（courses.php） ===== */
.section-more { margin-top: 42px; text-align: center; }
.section-more .btn { min-width: 190px; }

/* 列表页卡片上的补充信息胶囊 */
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.course-tags span {
  font-size: 12px; color: var(--primary-dark); background: var(--primary-soft);
  border-radius: 999px; padding: 3px 10px; line-height: 1.6;
}

/* 列表页主标题用 h1，样式与 section-head h2 对齐 */
.section-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1.25; }

/* 分页 */
.pager {
  max-width: 1200px; margin: 46px auto 0; padding: 0 24px;
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 44px; height: 44px; padding: 0 15px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .cur { background: var(--grad); border-color: transparent; color: #fff; }
.pager .dis { opacity: .45; }

@media (max-width: 640px) {
  .section-head h1 { font-size: 25px; }
  .section-more { margin-top: 32px; }
  .section-more .btn { width: 100%; }
  .pager { margin-top: 34px; gap: 8px; }
  .pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; font-size: 14px; }
}

/* ===== 页脚备案号（后台可维护） ===== */
.footer-bottom a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom p:empty { display: none; }

/* ===== 富文本正文（后台「图文编辑器」产出） ===== */
.course-content h2,
.course-content h3,
.course-content h4 { position: relative; padding-left: 14px; font-weight: 800; }
.course-content h2 { font-size: 21px; margin: 30px 0 12px; }
.course-content h4 { font-size: 16.5px; margin: 22px 0 10px; }
.course-content h2:first-child,
.course-content h4:first-child { margin-top: 0; }
.course-content h2::before,
.course-content h4::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 3px; background: var(--primary);
}
.course-content ul,
.course-content ol { margin: 12px 0 18px; padding-left: 24px; color: #4b5563; font-size: 15px; line-height: 1.85; }
.course-content ul li,
.course-content ol li { margin-bottom: 8px; }
.course-content ul li::marker,
.course-content ol li::marker { color: var(--primary); }
.course-content blockquote {
  margin: 16px 0; padding: 12px 18px; color: #6b7280; font-size: 15px; line-height: 1.85;
  background: #fff8f3; border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0;
}
.course-content img { display: block; width: 600px; height: 400px; max-width: 100%; object-fit: cover; margin: 18px auto; border-radius: 10px; }
.course-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.course-content a:hover { opacity: .85; }
.course-content hr { border: 0; border-top: 1px dashed var(--line); margin: 26px 0; }
.course-content strong { color: #374151; font-weight: 700; }
.course-content .ql-align-center { text-align: center; }
.course-content .ql-align-right { text-align: right; }
.course-content .ql-align-justify { text-align: justify; }
.course-content .ql-align-center img,
.course-content .ql-align-right img,
.course-content .ql-align-justify img { display: inline-block; margin: 18px 0; }
.course-content .ql-indent-1 { margin-left: 1.6em; }
.course-content .ql-indent-2 { margin-left: 3.2em; }
.course-content .ql-indent-3 { margin-left: 4.8em; }
.course-content .ql-indent-4 { margin-left: 6.4em; }
.course-content .ql-indent-5 { margin-left: 8em; }
.course-content .ql-indent-6 { margin-left: 9.6em; }
.course-content .ql-indent-7 { margin-left: 11.2em; }
.course-content .ql-indent-8 { margin-left: 12.8em; }

/* 正文插图：窄屏保持 600×400 的比例（3:2）自适应，不裁切 */
@media (max-width: 700px) {
  .course-content img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}
