/* ============================================================
   present.css —— 分享主站（讲解载体）与高频问题页
   配合 site.css 使用：site.css 提供基础与案例页样式，本文件补主站与讲解模式
   ============================================================ */
:root { --pbar-h: 48px; }

/* ---------------- 讲解模式顶栏 ---------------- */
.pbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, #0B2E5C 0%, #123A72 60%, #0B2E5C 100%);
  color: #E5EDF8; box-shadow: 0 2px 10px rgba(11, 46, 92, .22);
}
.pbar-in {
  display: flex; align-items: center; gap: 12px;
  height: calc(var(--pbar-h) - 3px); padding: 0 18px;
  font-size: 13px; white-space: nowrap;
}
.pb-idx { font-family: var(--mono); font-weight: 700; color: var(--cyan); letter-spacing: .5px; }
.pb-name { font-weight: 700; color: #fff; }
.pb-timer {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  background: rgba(34, 211, 238, .14); border: 1px solid rgba(34, 211, 238, .35);
  padding: 2px 10px; border-radius: 999px; display: inline-flex; align-items: baseline; gap: 6px;
}
.pb-timer-l { font-size: 10px; font-weight: 400; opacity: .7; font-family: var(--sans); }
.pb-timer.warn { background: rgba(245, 158, 11, .18); border-color: #F59E0B; color: #FDE68A; }
.pb-timer.over { background: rgba(220, 38, 38, .22); border-color: #F87171; color: #FECACA; }
.pb-note { color: #9DB6D8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.pb-btn {
  font: inherit; font-size: 12.5px; color: #E5EDF8; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  padding: 4px 10px; border-radius: 7px;
}
.pb-btn:hover { background: rgba(255, 255, 255, .16); }
.pb-btn kbd {
  font-family: var(--mono); font-size: 10.5px; background: rgba(255,255,255,.16);
  border-radius: 4px; padding: 0 4px; margin-left: 3px;
}
.pb-a { color: #CFE0F5; font-size: 12.5px; }
.pb-a:hover { color: #fff; }
.pbar-prog { height: 3px; background: rgba(255, 255, 255, .12); }
.pbar-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bright), var(--cyan)); transition: width .25s; }

/* ---------------- 侧边导航（点） ---------------- */
.dotnav {
  position: fixed; right: 12px; top: 50%; transform: translateY(-50%);
  z-index: 35; display: flex; flex-direction: column; gap: 6px;
}
.dot {
  display: flex; align-items: center; gap: 8px; justify-content: flex-end;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 8px 3px 6px; cursor: pointer;
  font: inherit; font-size: 11px; color: var(--muted); backdrop-filter: blur(4px);
  transition: all .18s;
}
.dot:hover { border-color: var(--bright); color: var(--brand); }
.dot-n { font-family: var(--mono); font-weight: 700; font-size: 11px; }
.dot-t { display: none; }
.dot:hover .dot-t, .dot.on .dot-t { display: inline; }
.dot.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------- 提词器 ---------------- */
.tele {
  position: fixed; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 92vw); max-height: 62vh; display: none; flex-direction: column;
  background: rgba(9, 26, 51, .96); color: #E8F0FB;
  border-left: 3px solid var(--cyan); border-top-left-radius: 12px;
  box-shadow: -10px -6px 30px rgba(0, 0, 0, .3);
}
.tele.on { display: flex; }
.tele-h {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 13px;
}
.tele-h b { color: var(--cyan); }
.tele-tip { flex: 1; font-size: 11px; color: #8FA8C8; }
.tele-x { background: none; border: 0; color: #9DB6D8; font-size: 20px; line-height: 1; cursor: pointer; }
.tele-body { overflow: auto; padding: 12px 14px 16px; }
.tele-name { font-family: var(--mono); font-size: 12px; color: var(--cyan); margin-bottom: 4px; }
.tele-name em { font-style: normal; opacity: .7; margin-left: 6px; }
.tele-head { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.6; }
.tele-sec ul { margin: 0; padding-left: 18px; }
.tele-sec li { font-size: 14px; line-height: 1.85; margin-bottom: 7px; }
.tele-sec li b { color: #7FD8EA; }

/* ---------------- 屏幕 ---------------- */
.deck-body { background: var(--bg); }
.scr-more { text-align: center; margin-top: 16px; }
.screen { display: block; border-bottom: 1px solid var(--line); }
.screen:nth-child(even) { background: #FBFCFE; }
.scr-wrap { max-width: 1180px; margin: 0 auto; padding: 38px 28px 46px; }
.scr-foot {
  display: flex; justify-content: space-between; gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 0 28px 18px;
  font-size: 11.5px; color: var(--faint);
}
.scr-foot .sf-pos { font-family: var(--mono); }
.scr-foot .sf-hint { display: none; }

/* 讲解模式：一屏一节 */
body.present { overflow: hidden; }
body.present .pbar { position: fixed; left: 0; right: 0; top: 0; }
body.present .deck { margin-top: var(--pbar-h); height: calc(100vh - var(--pbar-h)); overflow: hidden; }
body.present .screen { display: none; height: 100%; overflow: auto; border-bottom: 0; }
body.present .screen.active { display: flex; flex-direction: column; }
body.present .scr-wrap { margin: auto 0; padding-top: 30px; padding-bottom: 54px; }
body.present .scr-foot { position: sticky; bottom: 0; padding-bottom: 10px; }
body.present .scr-foot .sf-hint { display: block; }

/* ---------------- Hero（开场屏） ---------------- */
.hero-main { max-width: 940px; margin: 1.5vh auto 0; text-align: center; }
.hm-kicker {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--brand);
  border: 1px solid #C9DCF6; background: #EEF4FE; border-radius: 999px; padding: 4px 16px;
}
.hm-title { font-size: 42px; line-height: 1.22; margin: 14px 0 4px; color: var(--navy); letter-spacing: -1px; }
.hm-sub { font-size: 18px; color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.hm-tag { font-size: 16px; color: #33475F; line-height: 1.75; max-width: 700px; margin: 0 auto 20px; }
.hm-nums { display: flex; justify-content: center; gap: 40px; margin-bottom: 22px; }
.hm-num b {
  display: block; font-family: var(--mono); font-size: 38px; line-height: 1.1; color: var(--bright);
}
.hm-num span { font-size: 13px; color: var(--muted); }
.hm-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hm-meta { display: flex; gap: 18px; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.scr-cover .cmp { margin: 0; }

.btn {
  display: inline-block; font: inherit; font-size: 14.5px; cursor: pointer;
  padding: 10px 22px; border-radius: 9px; border: 1px solid transparent; text-decoration: none;
  transition: all .18s;
}
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--bright)); color: #fff; box-shadow: 0 4px 14px rgba(30, 95, 191, .28); }
.btn.primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--brand); }
.btn.ghost:hover { border-color: var(--bright); text-decoration: none; }

/* ---------------- 章节头 ---------------- */
.scr-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.scr-num {
  font-family: var(--mono); font-size: 62px; line-height: .95; font-weight: 700;
  color: #D8E6FA; letter-spacing: -3px; flex: 0 0 auto;
  border-right: 3px solid var(--bright); padding-right: 20px;
}
.scr-kicker { font-size: 12.5px; color: var(--brand); letter-spacing: 1px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.scr-time {
  font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: #EEF4FE; border-radius: 999px; padding: 1px 9px;
}
.scr-headline { font-size: 27px; line-height: 1.45; margin: 0 0 10px; color: var(--navy); }
.scr-lead { font-size: 15.5px; color: #3B4B60; margin: 0; line-height: 1.8; }
.scr-note {
  margin-top: 20px; padding: 12px 16px; font-size: 13.5px; line-height: 1.75;
  background: #FFFDF5; border: 1px solid #F3E3B8; border-left: 3px solid #F0C24B;
  border-radius: 8px; color: #6B5220;
}

/* ---------------- 对比两栏 ---------------- */
.cmp { margin: 6px 0 22px; }
.cmp-t { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-col { border-radius: 12px; padding: 16px 20px; border: 1px solid var(--line); background: #fff; }
.cmp-col h4 { margin: 0 0 10px; font-size: 14.5px; }
.cmp-col ul { margin: 0; padding-left: 18px; }
.cmp-col li { font-size: 14.5px; line-height: 1.9; margin-bottom: 5px; }
.cmp-col.left { background: #F8FAFC; }
.cmp-col.left h4 { color: var(--muted); }
.cmp-col.right { background: #EEF5FF; border-color: #CFE2FA; }
.cmp-col.right h4 { color: var(--brand); }
.cmp-col.right b { color: var(--navy); }

/* ---------------- 要点 ---------------- */
.pts { margin: 0 0 22px; padding-left: 0; list-style: none; }
.pts li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 15.5px; line-height: 1.85;
}
.pts li::before {
  content: ''; position: absolute; left: 6px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--bright);
}
.pts2 {
  margin: 0 0 22px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--cyan); border-radius: 10px; padding: 16px 22px;
}
.pts2-t { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.pts2 ul { margin: 0; padding-left: 18px; }
.pts2 li { font-size: 14.5px; line-height: 1.9; margin-bottom: 6px; }

/* ---------------- 落地四步 ---------------- */
.flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 10px; }
.flow-i { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.flow-n {
  flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--bright)); color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.flow-i h4 { margin: 3px 0 6px; font-size: 15px; color: var(--navy); }
.flow-i p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #43536A; }

/* ---------------- 详讲案例卡 ---------------- */
.cds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cd {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px 14px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: all .18s;
}
.cd:hover { border-color: var(--bright); transform: translateY(-2px); text-decoration: none; }
.cd-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cd-k { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.cd-demo { font-size: 11px; background: #F1F5F9; color: var(--muted); border-radius: 999px; padding: 1px 9px; }
.cd-demo.live { background: #E7F8EE; color: #15803D; }
.cd-badge { font-size: 11px; background: #FEF3C7; color: #92400E; border-radius: 999px; padding: 1px 9px; }
.cd h3 { margin: 0 0 7px; font-size: 16.5px; color: var(--navy); line-height: 1.5; }
.cd p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.75; color: #43536A; }
.cd-bot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.cd-steps { background: #EEF4FE; color: var(--brand); border-radius: 999px; padding: 1px 9px; }
.cd-m s { color: var(--faint); }
.cd-m b { color: var(--brand); font-family: var(--mono); }

/* ---------------- 案例墙 ---------------- */
.wall { margin-top: 22px; }
.wall-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.wall-h span {
  font-size: 13px; font-weight: 700; color: var(--navy);
  border-left: 3px solid var(--cyan); padding-left: 9px;
}
.wall-h em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.wall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wc {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; text-decoration: none; color: inherit; transition: all .18s;
}
.wc:hover { border-color: var(--bright); box-shadow: var(--shadow); text-decoration: none; }
.wc-n {
  font-family: var(--mono); font-size: 11px; color: var(--brand); font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.wc-n span { font-family: var(--sans); font-weight: 400; font-size: 10.5px; color: var(--faint); }
.wc h4 { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--navy); }
.wc p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--muted); }

/* ---------------- 三个建议 / 资源 ---------------- */
.adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.adv-i { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--bright); border-radius: 10px; padding: 16px 18px; }
.adv-n { font-family: var(--mono); font-size: 22px; font-weight: 700; color: #D8E6FA; }
.adv-i h4 { margin: 6px 0 8px; font-size: 16px; color: var(--navy); }
.adv-i p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #43536A; }
.res { background: #F7FAFF; border: 1px solid #DCE9FA; border-radius: 12px; padding: 16px 20px; }
.res-t { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.res-i { display: block; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; text-decoration: none; }
.res-i:hover { border-color: var(--bright); text-decoration: none; }
.res-i b { display: block; font-size: 13.5px; color: var(--brand); margin-bottom: 5px; }
.res-i span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ---------------- 答疑屏（缩略） ---------------- */
.faq-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fm-g { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.fm-gt { font-size: 13px; color: var(--navy); margin-bottom: 8px; display: flex; align-items: baseline; gap: 6px; }
.fm-gt b { font-family: var(--mono); color: var(--brand); }
.fm-gt span { font-size: 11px; color: var(--faint); margin-left: auto; }
.fm-g ul { margin: 0; padding-left: 0; list-style: none; }
.fm-g li { font-size: 12.5px; line-height: 1.7; color: #43536A; margin-bottom: 5px; }
.fm-g li em { font-style: normal; font-family: var(--mono); color: var(--brand); margin-right: 5px; font-size: 11.5px; }

/* ---------------- 高频问题页 ---------------- */
.qa-list { display: grid; gap: 10px; }
.qa {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 18px; box-shadow: 0 1px 2px rgba(15, 40, 80, .04);
}
.qa[open] { border-color: #BFD8F7; }
.qa summary {
  cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 700; color: var(--navy);
  display: flex; align-items: baseline; gap: 10px; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '＋'; margin-left: auto; color: var(--faint); font-weight: 400; }
.qa[open] summary::after { content: '－'; }
.qa-id {
  font-family: var(--mono); font-size: 12px; color: #fff; background: var(--brand);
  border-radius: 5px; padding: 1px 7px; flex: 0 0 auto;
}
.qa-a { padding: 0 0 16px 40px; font-size: 14.5px; line-height: 1.9; color: #33475F; }
.qa-a b { color: var(--navy); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid, .faq-mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pb-note, .dotnav { display: none; }
  .cmp-cols, .flow, .cds, .adv, .wall-grid, .res-grid, .faq-mini { grid-template-columns: 1fr; }
  .hm-title { font-size: 30px; }
  .hm-nums { gap: 24px; }
  .scr-num { font-size: 40px; padding-right: 12px; }
  .scr-headline { font-size: 20px; }
  .qa-a { padding-left: 0; }
}
@media print {
  .pbar, .dotnav, .tele, .scr-foot { display: none !important; }
  .screen { display: block !important; height: auto !important; page-break-after: always; }
}
