/* ==========================================================
   鲲鹏AI · 课程落地页样式（/course/*.html）
   与首页共用 style.css / home.css 的变量与基础类
   ========================================================== */

/* 顶栏品牌名（课程页用 span 替代 h1，保证页面唯一 h1 是课程名） */
.course-header-logo .site-name {
  font-size: 20px; font-weight: 700; margin: 0; color: #1f2329;
}
.c-course-header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- 面包屑 ---------- */
.crumb {
  padding: 16px 0 0;
  font-size: 13px; color: #8a9099;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.crumb a { color: #8a9099; }
.crumb a:hover { color: var(--blue); }
.crumb span.sep { color: #c9ced6; }
.crumb strong { color: #4e5969; font-weight: 400; }

/* ---------- 课程头部 ---------- */
.course-hero {
  margin-top: 16px;
  border-radius: 16px;
  padding: 38px 40px 34px;
  color: #fff;
  background: linear-gradient(135deg, #1f76f3 0%, #6a3ff0 100%);
  position: relative; overflow: hidden;
}
.course-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.course-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; position: relative; z-index: 1; }
.course-hero__tag {
  font-size: 12px; padding: 4px 12px; border-radius: 12px;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
}
.course-hero h1 {
  font-size: 32px; line-height: 1.35; margin: 0 0 12px;
  font-weight: 700; position: relative; z-index: 1;
}
.course-hero__sub {
  font-size: 16px; opacity: .9; margin: 0 0 22px; line-height: 1.7;
  position: relative; z-index: 1;
}
.course-hero__meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22);
  position: relative; z-index: 1;
}
.course-hero__meta div { font-size: 13px; opacity: .85; }
.course-hero__meta b {
  display: block; font-size: 22px; font-weight: 700;
  margin-bottom: 2px; opacity: 1;
}
.course-hero__acts { display: flex; gap: 12px; margin-top: 26px; position: relative; z-index: 1; flex-wrap: wrap; }
.course-hero__acts .btn--lg { background: #fff; color: #1f76f3; }
.course-hero__acts .btn--lg:hover { background: #f0f5ff; }
.course-hero__acts .btn-line {
  height: 46px; padding: 0 26px; border-radius: 23px;
  border: 1px solid rgba(255,255,255,.6); color: #fff; font-size: 16px;
  display: inline-flex; align-items: center;
}
.course-hero__acts .btn-line:hover { background: rgba(255,255,255,.16); }

/* ---------- 区块 ---------- */
.c-sec { padding: 44px 0 6px; }
.c-sec__title {
  font-size: 22px; font-weight: 700; color: #1f2329; margin: 0 0 8px;
  display: flex; align-items: center; gap: 10px;
}
.c-sec__title::before {
  content: ""; width: 4px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg, #1f76f3, #6a3ff0);
}
.c-sec__desc { font-size: 14px; color: #8a9099; margin: 0 0 20px 14px; line-height: 1.7; }

/* ---------- 要点列表（适合谁 / 能做什么） ---------- */
.point-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.point-card {
  background: #f7f8fa; border-radius: 12px; padding: 18px 20px;
  display: flex; gap: 12px; align-items: flex-start;
}
.point-card__ico {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #1f76f3, #6a3ff0);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.point-card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #3d4450; }

/* ---------- 课程大纲 ---------- */
.outline-item {
  border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; background: #fff;
}
.outline-head {
  padding: 15px 20px; background: #f7f8fa;
  display: flex; align-items: center; gap: 12px;
}
.outline-head__idx {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.outline-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; color: #1f2329; }
.outline-head__cnt { margin-left: auto; font-size: 12.5px; color: #8a9099; white-space: nowrap; }
.outline-body { padding: 14px 20px 16px 46px; }
.outline-body li {
  font-size: 14px; color: #4e5969; line-height: 2;
  position: relative; padding-left: 14px;
}
.outline-body li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: #c3ccd9;
}

/* ---------- 常见问题 ---------- */
.faq-item {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 {
  margin: 0 0 8px; font-size: 15.5px; font-weight: 600; color: #1f2329;
  display: flex; gap: 10px; align-items: flex-start;
}
.faq-item h3 .q {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  background: #eef4ff; color: var(--blue);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.faq-item p { margin: 0 0 0 30px; font-size: 14.5px; line-height: 1.85; color: #4e5969; }

/* ---------- 相关课程 ---------- */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  transition: transform .2s, box-shadow .2s; display: block;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(31,118,243,.12); }
.rel-card__name { font-size: 15px; font-weight: 600; color: #1f2329; margin-bottom: 6px; }
.rel-card__sub { font-size: 13px; color: #8a9099; line-height: 1.6; margin-bottom: 10px; }
.rel-card__meta { font-size: 12.5px; color: #b0b6bf; }

/* ---------- 底部转化区 ---------- */
.c-course-cta {
  margin: 52px 0 60px; border-radius: 16px; padding: 40px;
  background: #0e1524; color: #fff; text-align: center;
}
.c-course-cta h2 { font-size: 26px; margin: 0 0 12px; font-weight: 700; }
.c-course-cta p { font-size: 15px; opacity: .8; margin: 0 0 26px; line-height: 1.8; }
.c-course-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.c-course-cta .btn--lg { background: var(--yellow, #ffd800); color: #1f2329; }
.c-course-cta .btn-line {
  height: 46px; padding: 0 26px; border-radius: 23px; font-size: 16px;
  border: 1px solid rgba(255,255,255,.5); color: #fff;
  display: inline-flex; align-items: center;
}
.c-course-cta .btn-line:hover { background: rgba(255,255,255,.14); }

/* ==========================================================
   移动端适配
   ========================================================== */
@media (max-width: 900px) {
  .crumb { padding-top: 10px; font-size: 12px; overflow-x: auto; white-space: nowrap; }
  .course-hero {
    border-radius: 12px; padding: 24px 18px 22px; margin-top: 12px;
  }
  .course-hero h1 { font-size: 22px; }
  .course-hero__sub { font-size: 14px; margin-bottom: 18px; }
  .course-hero__meta {
    gap: 0; padding-top: 16px;
    display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 14px;
  }
  .course-hero__meta b { font-size: 19px; }
  .course-hero__acts { margin-top: 20px; gap: 10px; }
  .course-hero__acts .btn--lg,
  .course-hero__acts .btn-line {
    flex: 1; justify-content: center; min-width: 0;
    padding: 0 8px; font-size: 15px; white-space: nowrap;
  }

  .c-sec { padding: 32px 0 4px; }
  .c-sec__title { font-size: 19px; }
  .c-sec__title::before { height: 17px; }
  .c-sec__desc { font-size: 13px; margin-left: 14px; }

  .point-grid { grid-template-columns: 1fr; gap: 10px; }
  .point-card { padding: 15px 16px; border-radius: 10px; }
  .point-card p { font-size: 14px; }

  .outline-head { padding: 13px 14px; gap: 10px; }
  .outline-head h3 { font-size: 14.5px; }
  .outline-head__cnt { font-size: 12px; }
  .outline-body { padding: 12px 14px 14px 34px; }
  .outline-body li { font-size: 13.5px; line-height: 1.95; }

  .faq-item { padding: 15px 0; }
  .faq-item h3 { font-size: 14.5px; }
  .faq-item p { font-size: 14px; margin-left: 30px; }

  .rel-grid { grid-template-columns: 1fr; gap: 10px; }
  .rel-card { padding: 15px 16px; }

  .c-course-cta {
    margin: 36px 0 calc(40px + env(safe-area-inset-bottom, 0px));
    padding: 30px 20px; border-radius: 12px;
  }
  .c-course-cta h2 { font-size: 20px; }
  .c-course-cta p { font-size: 14px; }
  .c-course-cta .btns { flex-direction: column; }
  .c-course-cta .btn--lg,
  .c-course-cta .btn-line { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .course-hero h1 { font-size: 20px; }
  .course-hero__meta b { font-size: 17px; }
}
