/* ============================================================
   现场演示：入口页 + 全屏四屏播放器
   ============================================================ */

/* ---------------- 入口页 ---------------- */
.demo-grid { align-items: start; }
.scope-tag {
  font-size: 11.5px; color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand-line); padding: 4px 10px; border-radius: 6px;
}
.dh2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dh2 h3 { font-size: 14.5px; font-weight: 650; }
.pain-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; line-height: 1.75; font-family: inherit; color: var(--text);
  background: #FFFCF8; resize: vertical; min-height: 84px; transition: .15s;
}
.pain-input:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(187,122,68,.1); }
.qp-h { font-size: 11px; color: var(--muted); margin: 14px 0 8px; }
.quick-pains { display: flex; flex-wrap: wrap; gap: 6px; }
.qp {
  font-size: 11.5px; padding: 5px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); transition: .14s; max-width: 100%; text-align: left;
}
.qp:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.demo-act { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.recent-list { padding: 6px; max-height: 420px; overflow-y: auto; }
.rl-i {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border-radius: 9px;
  cursor: pointer; transition: .14s;
}
.rl-i:hover { background: var(--brand-soft); }
.rl-i + .rl-i { border-top: 1px solid var(--line-soft); }
.rl-main { min-width: 0; flex: 1; }
.rl-p {
  font-size: 12.3px; line-height: 1.6; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rl-m { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.rl-t { font-size: 10.5px; color: var(--muted); }
.rl-x { width: 24px; height: 24px; opacity: 0; flex: 0 0 auto; }
.rl-x svg { width: 13px; height: 13px; }
.rl-i:hover .rl-x { opacity: 1; }
.pill.brand { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); }

.demo-tips { margin-top: 16px; }
.dt-h { font-size: 12.5px; font-weight: 650; margin-bottom: 12px; }
.dt-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dt-list > div { display: flex; gap: 9px; font-size: 11.8px; line-height: 1.65; color: var(--text-2); }
.dt-list b {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; background: #FFF0E2; color: var(--brand);
}

/* ---------------- 全屏播放器 ---------------- */
.dstage {
  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column;
  background: #34261D; opacity: 0; transition: opacity .2s;
}
.dstage.in { opacity: 1; }
.ds-top {
  height: 54px; flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 0 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ds-brand { display: flex; align-items: baseline; gap: 7px; }
.ds-logo { font-size: 14px; font-weight: 650; color: #fff; letter-spacing: .5px; }
.ds-by { font-size: 9.5px; color: rgba(255,255,255,.34); letter-spacing: 1px; }
.ds-mid { display: flex; align-items: center; gap: 9px; margin-left: 8px; }
.ds-mid b { font-size: 12.5px; color: rgba(255,255,255,.9); font-weight: 550; }
.ds-fmt { font-size: 10.5px; color: #FFD5AE; background: rgba(197,140,94,.16); padding: 2px 8px; border-radius: 5px; }
.ds-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ds-btn {
  height: 28px; padding: 0 12px; border-radius: 7px; font-size: 11.5px; color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
}
.ds-btn:hover { background: rgba(255,255,255,.13); color: #fff; }
.ds-btn.x { width: 28px; padding: 0; display: grid; place-items: center; }
.ds-btn svg { width: 14px; height: 14px; }

.ds-body { flex: 1; display: grid; place-items: center; padding: 22px 30px; overflow-y: auto; }
.ds-slide {
  width: min(1180px, 100%); background: #fff; border-radius: 16px; padding: 34px 46px 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.34); min-height: min(70vh, 620px);
  display: flex; flex-direction: column;
}
.sl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sl-no { font-size: 11px; color: #BCAD9A; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.sl-label { font-size: 10.5px; color: var(--brand); background: var(--brand-soft); padding: 2px 9px; border-radius: 5px; }
.sl-body { flex: 1; display: flex; flex-direction: column; }
.sl-t { font-size: 27px; line-height: 1.36; letter-spacing: -.5px; font-weight: 650; color: #38291F; margin-bottom: 14px; }
.sl-lead { font-size: 13.5px; line-height: 1.8; color: #826C5A; margin-bottom: 22px; max-width: 900px; }
.sl-foot { margin-top: auto; padding-top: 16px; font-size: 10.8px; color: #B4A593; border-top: 1px dashed #F2EBE2; }

/* 第 1 屏：痛点复述 */
.pain-quote {
  position: relative; font-size: 21px; line-height: 1.65; color: #38291F; font-weight: 550;
  padding: 20px 26px; background: #FCF9F6; border-left: 3px solid #E8590C; border-radius: 0 10px 10px 0;
  margin-bottom: 24px; letter-spacing: -.2px;
}
.pq-mark { color: #E8590C; font-size: 26px; font-weight: 700; opacity: .5; }
.pq-mark.e { margin-left: 2px; }
.pain-lead { font-size: 13.5px; color: #826C5A; margin-bottom: 16px; }
.pain-list { display: grid; gap: 11px; max-width: 940px; }
.pl-i { display: flex; gap: 13px; align-items: flex-start; font-size: 14px; line-height: 1.7; color: #503C2B; }
.pl-n {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; background: #F9F4EE; color: var(--brand); margin-top: 1px;
}

/* 第 2 屏：现状数字 */
.bigkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.bk { padding: 20px 18px; border-radius: 12px; background: linear-gradient(170deg, #FDFBF8, #FAF5F0); border: 1px solid #F5EDE3; }
.bk-l { font-size: 11.5px; color: #96806E; margin-bottom: 10px; }
.bk-v { font-size: 38px; font-weight: 680; letter-spacing: -1.4px; color: #38291F; font-variant-numeric: tabular-nums; line-height: 1; }
.bk-v small { font-size: 14px; font-weight: 500; color: #96806E; margin-left: 3px; letter-spacing: 0; }
.bk-s { font-size: 11px; color: #AC9A8B; margin-top: 9px; line-height: 1.5; }

/* 第 3 屏：做法 */
.steps { display: grid; gap: 0; }
.stp-i { display: flex; gap: 14px; padding: 11px 0; position: relative; }
.stp-i + .stp-i { border-top: 1px solid #F9F5F0; }
.stp-n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 650; color: #fff; background: linear-gradient(160deg, #B8491D, #AD461D);
  font-variant-numeric: tabular-nums; margin-top: 1px;
}
.stp-c { min-width: 0; }
.stp-t { font-size: 14px; font-weight: 600; color: #38291F; margin-bottom: 3px; }
.stp-d { font-size: 12.5px; line-height: 1.7; color: #826C5A; }
.stp-m { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.tag-mod {
  font-size: 10px; padding: 1px 7px; border-radius: 4px; background: #FFF0E2; color: var(--brand); border: 1px solid #F3EADE;
}
.tag-doc { font-size: 10px; padding: 1px 7px; border-radius: 4px; background: #F9F7F4; color: #9C897A; border: 1px solid #F5F1EB; }

/* 第 4 屏：效果 */
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.gn { padding: 18px; border-radius: 12px; background: #FDFBF8; border: 1px solid #F5EDE3; }
.gn-v { font-size: 19px; font-weight: 650; color: var(--brand); letter-spacing: -.4px; margin-bottom: 5px; }
.gn-k { font-size: 12.5px; font-weight: 600; color: #503C2B; margin-bottom: 6px; }
.gn-d { font-size: 11px; line-height: 1.6; color: #9C897A; }
.next-box { padding: 16px 20px; border-radius: 12px; background: #FFF8F2; border: 1px solid #FBE3CE; margin-bottom: 16px; }
.nb-h { font-size: 11.5px; font-weight: 650; color: #B4560F; margin-bottom: 9px; }
.nb-i { display: flex; gap: 9px; font-size: 12.8px; line-height: 1.7; color: #5C493A; }
.nb-i + .nb-i { margin-top: 5px; }
.nb-i span {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9.5px; background: #FBE3CE; color: #B4560F; margin-top: 2px;
}
.closing {
  margin-top: auto; font-size: 15px; font-weight: 550; color: #38291F; padding-top: 16px;
  border-top: 1px dashed #F2EBE2; letter-spacing: -.2px;
}

/* 底部 */
.ds-foot {
  flex: 0 0 auto; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 26px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.ds-nav {
  height: 30px; padding: 0 14px; border-radius: 7px; font-size: 12px;
  color: rgba(255,255,255,.78); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
}
.ds-nav:hover:not(:disabled) { background: rgba(255,255,255,.14); color: #fff; }
.ds-nav:disabled { opacity: .28; cursor: not-allowed; }
.ds-nav.primary { background: linear-gradient(180deg, #B8491D, #AD461D); border-color: #CA602B; color: #fff; }
.ds-dots { display: flex; gap: 6px; margin: 0 auto; }
.dd {
  width: 26px; height: 26px; border-radius: 7px; font-size: 11px; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06); border: 1px solid transparent; font-variant-numeric: tabular-nums;
}
.dd.on { background: #fff; color: #38291F; font-weight: 650; }
.dd:hover:not(.on) { background: rgba(255,255,255,.14); color: #fff; }
.ds-kbd { font-size: 10.5px; color: rgba(255,255,255,.28); }

/* 讲解词抽屉 */
.ds-script {
  position: absolute; right: 0; bottom: 56px; width: 372px; max-height: 46vh; overflow-y: auto;
  background: rgba(255,255,255,.97); border-radius: 12px 0 0 0; padding: 16px 20px;
  transform: translateY(110%); transition: transform .24s; box-shadow: -8px -8px 30px rgba(0,0,0,.2);
}
.ds-script.on { transform: translateY(0); }
.dsc-h { font-size: 10.5px; color: var(--brand); font-weight: 650; letter-spacing: .4px; margin-bottom: 8px; }
.dsc-b { font-size: 13px; line-height: 1.95; color: #503C2B; }

@media (max-width: 1100px) {
  .bigkpis { grid-template-columns: repeat(2, 1fr); }
  .gains { grid-template-columns: 1fr; }
  .dt-list { grid-template-columns: repeat(2, 1fr); }
  .ds-slide { padding: 24px 26px; }
  .sl-t { font-size: 22px; }
}

/* 打开讲解词时，正文让出右侧空间，避免遮挡 */
.dstage.with-script .ds-body { padding-right: 404px; justify-items: end; }
.dstage.with-script .ds-slide { width: min(1020px, 100%); padding: 30px 38px 26px; }
@media (max-width: 1240px) {
  .dstage.with-script .ds-slide { padding: 22px 24px; }
  .dstage.with-script .sl-t { font-size: 21px; }
  .dstage.with-script .bigkpis { grid-template-columns: repeat(2, 1fr); }
}

/* 内容比视口高时，从顶部开始滚，不要被居中裁掉脑袋 */
.ds-body { display: flex; align-items: center; justify-content: center; }
.ds-slide { margin: auto; }

/* 投影/笔记本常见矮屏：整体收紧一档 */
@media (max-height: 860px) {
  .ds-body { padding: 14px 22px; }
  .ds-slide { padding: 22px 34px 20px; min-height: 0; }
  .sl-head { margin-bottom: 10px; }
  .sl-t { font-size: 22px; margin-bottom: 10px; }
  .sl-lead { font-size: 12.5px; margin-bottom: 14px; }
  .pain-quote { font-size: 17px; padding: 13px 20px; margin-bottom: 16px; }
  .pain-list { gap: 7px; }
  .pl-i { font-size: 12.8px; }
  .bk { padding: 14px 14px; }
  .bk-v { font-size: 30px; }
  .stp-i { padding: 6px 0; }
  .stp-t { font-size: 13px; }
  .stp-d { font-size: 11.8px; line-height: 1.55; }
  .stp-m { margin-top: 4px; }
  .gn { padding: 13px; }
  .gn-v { font-size: 16px; }
  .next-box { padding: 12px 16px; margin-bottom: 12px; }
  .closing { font-size: 13.5px; padding-top: 12px; }
  .sl-foot { padding-top: 10px; }
}

/* 再矮就卡片内部滚，保住外框 */
.ds-slide { max-height: calc(100vh - 140px); overflow-y: auto; }
@media (max-height: 780px) {
  .sl-t { font-size: 20px; }
  .stp-i { padding: 4px 0; }
  .stp-d { font-size: 11.4px; }
  .pain-quote { font-size: 16px; padding: 11px 16px; }
  .bigkpis { gap: 10px; }
  .bk-v { font-size: 27px; }
}

/* ==================== 演示页：四屏流程带 ==================== */
.demo-flow {
  display: flex; align-items: stretch; gap: 10px; margin-bottom: 14px; padding: 14px 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(232,89,12,.05), transparent 55%),
    linear-gradient(180deg,#fff,#FEFDFB);
  border: 1px solid #F5EDE4; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(62,43,28,.04);
}
.df-i { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.df-no {
  font-size: 11px; font-weight: 700; color: #E0D3C2; letter-spacing: .5px;
  font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.df-ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(150deg,#FAF6F1,#F6EEE5); color: var(--brand); border: 1px solid #F4EBDF;
}
.df-ic svg { width: 15px; height: 15px; }
.df-c { min-width: 0; }
.df-t { font-size: 12.5px; font-weight: 650; color: #4B3422; }
.df-d { font-size: 10.5px; color: #A89484; margin-top: 2px; line-height: 1.5; }
.df-ar { display: grid; place-items: center; color: #E6D9C9; flex: 0 0 auto; }
.df-ar svg { width: 13px; height: 13px; }
@media (max-width: 1180px) {
  .demo-flow { flex-wrap: wrap; }
  .df-ar { display: none; }
  .df-i { flex: 0 0 calc(50% - 5px); }
}

/* 最近生成：左侧色条 */
.rl-i { position: relative; padding-left: 12px; }
.rl-i::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg,#C58C5E,#CA602B); opacity: .5;
}
.rl-i:hover::before { opacity: 1; background: linear-gradient(180deg,#E8590C,#F08A3C); }
.df-d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-t { white-space: nowrap; }

/* 全屏演示里的「换个模板」浮层 */
.ds-swap { position: absolute; top: 58px; right: 20px; width: 380px; display: none;
  background: #fff; border: 1px solid #F5EDE4; border-radius: 12px; padding: 12px 14px 14px;
  box-shadow: 0 12px 40px rgba(62,43,28,.18); z-index: 5; }
.ds-swap.on { display: block; }
.dsw-h { font-size: 12px; color: #A08B7A; margin-bottom: 9px; }
.dsw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.dsw-i { text-align: left; font-size: 12px; padding: 7px 10px; border-radius: 7px;
  border: 1px solid #F5EDE4; background: #FEFDFC; color: #5E4633; cursor: pointer; transition: .14s; }
.dsw-i:hover { border-color: #AD461D; color: #763819; background: #FCF9F6; }
.dsw-i.on { border-color: #AD461D; background: #F9F4EE; color: #AD461D; font-weight: 600; }
