/* =========================================================
   课程详情页：大健康门店 AI 智能体获客课（成交页紧凑版）
   结构：首屏（痛点/12节/99元/购买）→ 第二屏（五个经营价值）
        → 最后半屏（课程概览 + 折叠目录 + 购买说明）
   断点：<900 单列移动版 / ≥900 桌面版
   ========================================================= */

:root{--blue:#3760f9;--ink:#17161b;--muted:#65728b;--bg:#f3f6ff;--lime:#d2fc59}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:#e9edf7;color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:16px;line-height:1.7;overflow-x:hidden;
  /* 为移动端固定购买栏预留高度，避免遮挡正文 */
  padding-bottom:calc(84px + env(safe-area-inset-bottom));
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.page{max-width:480px;margin:auto;background:var(--bg);min-height:100vh}

/* ===== 返回官网 顶栏 ===== */
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 16px;background:#fff;border-bottom:1px solid #e6eaf6;
}
.topbar__back{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-size:14px;font-weight:700;color:var(--blue)}
.topbar__back svg{width:16px;height:16px}
.topbar__brand{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--muted)}

/* ===== Hero ===== */
.hero{
  position:relative;overflow:hidden;color:#fff;
  padding:20px 18px 18px;
  background:linear-gradient(145deg,#244bd6,#3760f9 60%,#5b7aff);
}
.hero-orb{position:absolute;border-radius:50%;pointer-events:none}
.hero-orb-a{width:220px;height:220px;right:-120px;top:-80px;background:rgba(210,252,89,.12)}
.hero-orb-b{width:150px;height:150px;right:-60px;bottom:-40px;background:rgba(218,217,251,.18)}

.hero-top{position:relative;z-index:1;display:flex;align-items:flex-end;gap:6px}
.hero-copy{flex:1;min-width:0}
.eyebrow{font-size:12.5px;font-weight:700;letter-spacing:.3px;color:rgba(255,255,255,.86)}
.hero-h1{font-size:26px;font-weight:800;letter-spacing:-.5px;line-height:1.32;margin-top:8px}
.hero-h1 .nowrap{white-space:nowrap}
.hero-sub{font-size:14.5px;font-weight:600;line-height:1.6;margin-top:8px;color:rgba(255,255,255,.95)}
.hero-sub em{font-style:normal;font-weight:800;color:var(--lime)}
.hero-bot{flex:none;width:92px;height:132px;object-fit:contain;margin-bottom:-6px;filter:drop-shadow(0 12px 20px rgba(10,25,80,.22))}

.hero-chips{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.hero-chips li{
  font-size:12.5px;font-weight:700;line-height:1;
  padding:7px 11px;border-radius:8px;
  background:rgba(255,255,255,.16);color:#fff;
}

.hero-metrics{
  position:relative;z-index:1;display:flex;align-items:center;
  margin-top:10px;padding:9px 0;border-radius:12px;
  background:rgba(255,255,255,.14);
}
.hero-metrics div{flex:1;text-align:center;display:flex;flex-direction:column;gap:1px}
.hero-metrics div + div{border-left:1px solid rgba(255,255,255,.26)}
.hero-metrics b{font-size:20px;font-weight:850;line-height:1.25;color:#fff}
.hero-metrics b i{font-style:normal;font-size:13px;font-weight:800;margin-right:1px}
.hero-metrics span{font-size:11.5px;color:rgba(255,255,255,.8)}

.hero-actions{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}
.btn-buy{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:48px;padding:12px 20px;border-radius:14px;
  background:linear-gradient(135deg,#244bd6,#3760f9);color:#fff;
  font-size:16px;font-weight:800;
  box-shadow:0 10px 24px rgba(55,96,249,.28);
  transition:transform .16s ease,background .18s ease,box-shadow .18s ease;
}
.btn-buy:active{transform:scale(.98)}
.btn-buy svg{width:16px;height:16px;flex:none}
.btn-buy--block{display:flex;width:100%;margin-top:14px}
.hero .btn-buy{background:var(--lime);color:#12295f;box-shadow:0 10px 26px rgba(0,0,0,.18)}
.hero .btn-buy:active{background:#c3ef3f}
.hero-link{
  display:inline-flex;align-items:center;min-height:44px;
  font-size:13.5px;font-weight:700;color:rgba(255,255,255,.94);
  text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(255,255,255,.45);
}

/* ===== Section ===== */
.section{padding:18px 16px 0;scroll-margin-top:10px}
.card{background:#fff;border-radius:18px;padding:18px 16px;box-shadow:0 8px 25px rgba(42,69,137,.035)}
.section-title{display:flex;align-items:flex-start;font-size:21px;font-weight:800;letter-spacing:-.3px;line-height:1.4;margin-bottom:10px}
.section-title::before{content:"";display:inline-block;width:5px;height:22px;border-radius:5px;background:var(--blue);margin-right:10px;flex-shrink:0;margin-top:3px}
.lead{font-size:14px;color:var(--muted);margin-bottom:12px;line-height:1.65}

/* ===== 五个经营价值 ===== */
.value-list{display:grid;gap:7px}
.v-item{display:flex;gap:12px;background:#fff;border-radius:14px;padding:11px 14px;box-shadow:0 4px 16px rgba(42,69,137,.045)}
.v-ico{
  flex:none;width:34px;height:34px;border-radius:10px;
  background:#eaf0ff;color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:800;
}
.v-item strong{display:block;font-size:16px;line-height:1.45;color:var(--ink)}
.v-item p{font-size:13px;line-height:1.6;color:var(--muted);margin-top:2px}

/* ===== 课程概览 ===== */
.overview{background:#fff;border-radius:14px;padding:4px 14px;box-shadow:0 4px 16px rgba(42,69,137,.045)}
.ov-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f7}
.ov-row:last-child{border-bottom:none}
.ov-tag{flex:none;font-size:11.5px;font-weight:800;color:var(--blue);background:#e8edff;border-radius:6px;padding:3px 7px;line-height:1}
.ov-row strong{font-size:15px;font-weight:700;color:var(--ink)}
.ov-num{margin-left:auto;font-size:12.5px;color:var(--muted)}

/* 折叠目录 */
.outline{margin-top:10px;background:#fff;border-radius:14px;box-shadow:0 4px 16px rgba(42,69,137,.045);overflow:hidden}
.outline summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:48px;padding:12px 14px;cursor:pointer;list-style:none;
  font-size:14.5px;font-weight:800;color:var(--blue);
}
.outline summary::-webkit-details-marker{display:none}
.outline summary svg{width:17px;height:17px;transition:transform .2s ease}
.outline[open] summary svg{transform:rotate(180deg)}
.outline__body{padding:0 14px 12px;border-top:1px solid #edf0f7}
.stage{padding:12px 0 2px}
.stage .tag{display:inline-block;font-size:11.5px;color:var(--blue);font-weight:800;background:#e8edff;border-radius:6px;padding:3px 8px;line-height:1;margin-bottom:6px}
.lesson{display:flex;gap:9px;padding:7px 0;border-top:1px solid #f1f4fa;font-size:13.5px;line-height:1.6;color:var(--ink)}
.lesson b{color:var(--blue);flex-shrink:0;font-size:13px;line-height:1.6}

/* ===== 购买区 ===== */
.card-offer{background:linear-gradient(145deg,#e5ebff,#fff);border:1px solid #dfe6ff}
.offer-h{font-size:21px;font-weight:800;color:var(--ink);line-height:1.4;margin-top:8px}
.offer-d{font-size:13px;color:#56647f;margin-top:6px;line-height:1.65}
.price-row{display:flex;align-items:flex-end;margin-top:8px}
.price-sym{font-size:19px;font-weight:800;color:var(--blue);margin-bottom:4px;line-height:1}
.price-num{font-size:46px;font-weight:850;color:var(--blue);line-height:1.05;margin-left:2px}
.offer-name{display:block;font-size:15.5px;font-weight:700;color:var(--ink);margin-top:2px}
.offer-who{display:block;font-size:12.5px;color:var(--muted);line-height:1.6;margin-top:4px}
.fine{display:block;font-size:11.5px;color:#7a8599;line-height:1.65;margin-top:7px}
.fine a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}

/* ===== Footer ===== */
.footer{padding:18px 20px 26px;text-align:center}
.footer-text{font-size:12.5px;color:#7b879b;display:block;line-height:1.4}
.footer-sub{font-size:11.5px;color:#8c96a8;margin-top:3px;display:block;line-height:1.6}
.footer-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:8px;font-size:13px;font-weight:700;color:var(--blue)}

/* ===== 移动端固定购买栏 ===== */
.buybar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;max-width:480px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:9px 16px calc(9px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97);
  border-top:1px solid #e3e8f6;
  box-shadow:0 -8px 24px rgba(24,49,74,.08);
  backdrop-filter:blur(8px);
}
.buybar__price{display:flex;flex-direction:column;line-height:1.2}
.buybar__price span{font-size:11px;color:var(--muted)}
.buybar__price b{font-size:21px;font-weight:850;color:var(--blue)}
.buybar__price i{font-style:normal;font-size:13px;font-weight:800;margin-right:1px}
.buybar__btn{flex:none;min-height:46px;padding:10px 20px;font-size:15px;border-radius:12px}

/* ===== 桌面 / 平板 ===== */
@media (min-width:900px){
  body{padding:28px 0;background:linear-gradient(155deg,#dfe5f8,#e9edf7 55%,#d9e0f5)}
  .page{max-width:820px;border-radius:24px;overflow:hidden;min-height:0;box-shadow:0 28px 70px rgba(24,49,74,.18)}
  .topbar{padding:12px 30px}
  .hero{padding:34px 36px 32px}
  .hero-h1{font-size:34px}
  .hero-sub{font-size:16px}
  .hero-bot{width:150px;height:215px}
  .hero-chips li{font-size:13.5px;padding:8px 13px}
  .hero-metrics{margin-top:16px;padding:12px 0}
  .hero-metrics b{font-size:24px}
  .hero-metrics span{font-size:12.5px}
  .hero-actions{margin-top:16px}
  .hero .btn-buy{min-height:52px;padding:14px 26px;font-size:17px}
  .section{padding:26px 30px 0}
  .section-title{font-size:24px}
  .value-list{grid-template-columns:1fr 1fr;gap:10px}
  .v-item{padding:15px 16px}
  .v-item strong{font-size:16.5px}
  .v-item p{font-size:13.5px}
  .outline{max-width:none}
  .footer{padding:26px 20px 38px}
  .buybar{display:none}
}
