/* =====================================================
   显智单招升学网站 — 单招网课落地页样式
   文件：/css/course.css
   说明：配套 templates/course.html 与 StaticGenerator.BuildCoursePage
   ===================================================== */

/* 页面公共 */
.section--gray { background: var(--bg-secondary); }
/* 页面级版块标题：随页面 CSS 固定（左对齐 + 绿条），后台只改文字不改样式 */
.section-head { text-align: left; margin-bottom: 28px; }
.section-head h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; border-left: 4px solid var(--green-400); padding-left: 12px; }
.section-head p { font-size: 14px; color: var(--text-secondary); padding-left: 12px; }
.empty { padding: 24px; text-align: center; color: var(--text-hint); background: #fff; border: 1px dashed var(--border-light); border-radius: var(--radius); }

    /* Hero */
    .hero-course { background: linear-gradient(120deg, var(--green-800) 0%, var(--green-400) 100%); color: #fff; padding: 14px 0; }
    .hero-course-inner { max-width: 720px; }
    .hero-course .tagline { display: inline-block; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; margin-bottom: 6px; }
    .hero-course h1 { font-size: 23px; font-weight: 700; margin-bottom: 6px; line-height: 1.28; }
    .hero-course p { font-size: 13px; color: rgba(255,255,255,.92); margin-bottom: 10px; line-height: 1.5; }
    .hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
    .hero-btns a { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 24px; font-size: 13px; font-weight: 600; }
    .btn-primary { background: var(--coral-400); color: #fff; }
    .btn-primary:hover { background: var(--coral-800); }
    .btn-outline { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); }
    .btn-outline:hover { background: #fff; color: var(--green-800); }

    /* Sections */
    .section { padding: 38px 0; border-bottom: 1px solid var(--border-light); }
    .section:last-of-type { border-bottom: none; }
    .section-head { text-align: left; margin-bottom: 28px; }
    .section-head h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; border-left: 4px solid var(--green-400); padding-left: 12px; }
    .section-head p { font-size: 14px; color: var(--text-secondary); padding-left: 12px; }

    /* 通用栏目标题（与首页一致：绿条左对齐） */
    .col-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; border-left: 4px solid var(--green-400); padding-left: 12px; }
    .col-head h2 { font-size: 18px; font-weight: 600; }
    .col-head .more { font-size: 13px; color: var(--green-800); }
    .col-head .more:hover { color: var(--coral-400); }

    /* FAQ + 在线咨询 左右布局 */
    .faq-contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
    .fc-left, .fc-right { min-width: 0; }
    .fc-right .contact-wrap { grid-template-columns: 1fr; gap: 16px; max-width: none; margin: 0; }
    .fc-right .contact-qr { text-align: center; }
    /* 二维码卡（设计稿：素色，无绿色渐变卡） */
    .fc-right .contact-qr { background: none; border: none; box-shadow: none; padding: 0; }
    .fc-right .qr-img { object-fit: contain; background: none; padding: 0; margin: 0 auto 8px; }
    .fc-right .qr-label { font-size: 12px; color: var(--text-secondary); font-weight: 400; }

    /* 常见问题卡片 */
    .faq-list { display: flex; flex-direction: column; gap: 10px; }
    .faq-item { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 16px; }
    .faq-item .q { font-size: 14px; font-weight: 600; color: var(--green-800); margin-bottom: 8px; }
    .faq-item .a { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }
    
    /* 适合人群 */
    .audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .audience-card { background: var(--green-50); border: 1px solid #B9E6D6; border-radius: var(--radius); padding: 16px; text-align: left; }
    .audience-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
    .audience-card .icon { font-size: 22px; }
    .audience-card h3 { font-size: 17px; color: var(--green-800); margin: 0; }
    .audience-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

    /* 课程套餐 */
    .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
    .plan-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; position: relative; transition: border-color .15s, transform .15s; }
    .plan-card:hover { border-color: var(--green-400); transform: translateY(-2px); }
    .plan-card.recommend { border: 2px solid var(--coral-400); }
    .plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--coral-400); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 16px; border-radius: 20px; }
    .plan-head { text-align: center; margin-bottom: 16px; }
    .plan-head .type { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
    .plan-head h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
    .plan-price { font-size: 30px; font-weight: 700; color: var(--coral-400); }
    .plan-price small { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
    .plan-features { list-style: none; flex: 1; margin-bottom: 18px; }
    .plan-features li { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; font-size: 13px; color: var(--text-secondary); border-bottom: 1px dashed var(--border-light); }
    .plan-features li:last-child { border-bottom: none; }
    .plan-features li::before { content: "✓"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--green-50); color: var(--green-800); font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
    .plan-btn { display: block; width: 100%; text-align: center; padding: 12px; border-radius: 8px; background: var(--coral-400); color: #fff; font-size: 15px; font-weight: 600; }
    .plan-btn:hover { background: var(--coral-800); }
    .plan-note { text-align: center; font-size: 12px; color: var(--text-hint); margin-top: 14px; background: var(--gray-50); padding: 10px; border-radius: var(--radius); }

    /* 课程优势 */
    .advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .adv-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
    .adv-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: var(--green-400); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .adv-card h3 { font-size: 17px; margin-bottom: 4px; }
    .adv-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

    /* 课程服务 */
    .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .service-card { background: var(--bg-secondary); border-radius: var(--radius); padding: 18px; text-align: left; border: 1px solid var(--border-light); }
    .service-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
    .service-card .s-icon { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--green-800); border: 1px solid var(--border); flex-shrink: 0; }
    .service-card h3 { font-size: 17px; margin: 0; }
    .service-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

    /* 配套资料展示 */
    .materials { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .material-item { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
    .material-item img { width: 100%; height: auto; display: block; }
    .material-item .caption { padding: 12px 14px; font-size: 13px; color: var(--text-secondary); text-align: center; border-top: 1px solid var(--border-light); }

    /* 三重保障 */
    .guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .guarantee-card { background: linear-gradient(135deg, var(--green-50), #fff); border: 1px solid #B9E6D6; border-radius: var(--radius); padding: 18px; text-align: left; }
    .guarantee-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
    .guarantee-card .g-icon { font-size: 26px; flex-shrink: 0; }
    .guarantee-card h3 { font-size: 17px; margin: 0; color: var(--green-800); }
    .guarantee-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

    /* 督学+答疑 */
    .support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .support-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
    .support-card h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--green-800); }
    .support-card ul { list-style: none; }
    .support-card li { font-size: 13px; color: var(--text-secondary); padding: 5px 0; padding-left: 18px; position: relative; }
    .support-card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); }

    /* 学员评价（反馈截图 2 排 × 3 个） */
    .reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .review-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 10px; }
    .review-card img { width: 100%; height: auto; border-radius: 6px; display: block; }
    .review-card .r-name { font-size: 12px; color: var(--text-secondary); margin-top: 8px; text-align: center; }

/* FAQ */
.course .faq-list .faq-item { background: #fff; }

/* 响应式 */
@media (max-width: 992px) {
  .audience, .pricing, .advantages, .services, .guarantees, .support-grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: 1fr; }
}

/* =====================================================
   版块样式变体（后台可选，容器追加 .style-{code}）
   未选择或值非法时不带 style- 类，走上方默认样式
   ===================================================== */

/* ---- 适合人群 audience ---- */
/* 绿底卡片（设计稿风格） */
.audience.style-green .audience-card { background: var(--green-50); border: 1px solid #B9E6D6; border-radius: var(--radius); padding: 16px; box-shadow: none; text-align: left; }
.audience.style-green .audience-head h3 { font-size: 17px; color: var(--green-800); }
.audience.style-green .audience-card p { font-size: 12px; }
/* 线性卡片 */
.audience.style-line .audience-card { background: #fff; border: 1px solid var(--green-400); box-shadow: none; padding: 18px 16px; transition: box-shadow .15s, transform .15s; }
.audience.style-line .audience-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(45,140,90,.12); }
.audience.style-line .audience-head .icon { width: 34px; height: 34px; border-radius: 50%; background: var(--green-50); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.audience.style-line .audience-head h3 { font-size: 16px; color: var(--green-800); }

/* ---- 课程优势 advantage ---- */
/* 数字方块（设计稿风格） */
.advantages.style-design .adv-num { width: 34px; height: 34px; border-radius: 8px; background: var(--green-400); color: #fff; font-size: 15px; }
.advantages.style-design .adv-card h3 { font-size: 17px; }
.advantages.style-design .adv-card p { font-size: 12px; }
/* 图标置顶（纵排大序号 + 顶部绿条） */
.advantages.style-top .adv-card { flex-direction: column; gap: 0; padding: 22px 20px; border-top: 3px solid var(--green-400); }
.advantages.style-top .adv-num { width: 44px; height: 44px; border-radius: 50%; background: var(--green-50); color: var(--green-800); font-size: 18px; margin-bottom: 14px; }
.advantages.style-top .adv-card h3 { font-size: 17px; margin-bottom: 6px; }

/* ---- 配套资料 material ---- */
/* 图文自适应（设计稿风格：图高随比例，说明细字） */
.materials.style-design .material-item img { height: auto; }
.materials.style-design .material-item .caption { padding: 12px 14px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
/* 图文横排（左图右文） */
.materials.style-side .material-item { display: flex; align-items: stretch; }
.materials.style-side .material-item img { width: 42%; height: auto; min-height: 130px; object-fit: cover; flex-shrink: 0; }
.materials.style-side .material-item .caption { flex: 1; display: flex; align-items: center; text-align: left; padding: 14px 16px; font-size: 14px; border-left: 1px solid var(--border-light); }

/* ---- 学员评价 review ---- */
/* 紧凑留白（设计稿风格） */
.reviews.style-design .review-card { padding: 10px; }
.reviews.style-design .review-card img { height: auto; border-radius: 6px; }
.reviews.style-design .review-card .r-name { padding: 0; margin-top: 8px; font-size: 12px; font-weight: 400; color: var(--text-secondary); }
/* 引号卡片 */
.reviews.style-quote .review-card { position: relative; padding: 14px; }
.reviews.style-quote .review-card::before { content: "❝"; position: absolute; top: 8px; right: 14px; font-size: 30px; line-height: 1; color: var(--green-400); opacity: .35; }
.reviews.style-quote .review-card img { height: 180px; border-radius: 6px; }
.reviews.style-quote .review-card .r-name { padding: 10px 0 0; font-size: 13px; color: var(--green-800); }
@media (max-width: 768px) {
  .hero-course h1 { font-size: 26px; }
  .hero-course p { font-size: 15px; }
  .audience, .pricing, .advantages, .services, .guarantees, .support-grid, .reviews { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 20px; }
  .plan-card.recommend { order: -1; }
  /* 页面 CSS 后加载，必须在此覆盖本页非 media 的双列栅格（common 的 @768 单列会被压掉） */
  .faq-contact { grid-template-columns: 1fr; gap: 24px; }
}
