/**
 * StoryOS｜短剧风向标系统 V1.4
 * 单剧拆解页独立样式层。
 * 由 V1.3 的内联 <style> 抽离，方便浏览器缓存与后续模块化维护。
 */
        /* 性能优化：已去掉 Google Fonts 外链，使用系统字体栈 */

html.storyos-signal-shortcode-mode,
body.storyos-signal-shortcode-mode{margin:0!important;padding:0!important;overflow:hidden!important;background:#edf0f5!important}
body.storyos-signal-shortcode-mode #wpadminbar,
body.storyos-signal-shortcode-mode header,
body.storyos-signal-shortcode-mode footer,
body.storyos-signal-shortcode-mode .site-header,
body.storyos-signal-shortcode-mode .site-footer,
body.storyos-signal-shortcode-mode .entry-title{display:none!important}
body.storyos-signal-shortcode-mode .entry-content>*:not(#dd3-app){display:none!important}

#dd3-app{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:2147483000;background:#edf0f5;color:#1a1a2e;font-family:'DM Sans',-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden}
#dd3-app *{box-sizing:border-box}

/* 外壳：菜单 + 中心区 */
.d3-shell{width:100%;height:100vh;display:flex;flex-direction:row}
.d3-center{flex:1;min-width:0;display:flex;flex-direction:column;height:100vh;overflow:hidden}

/* 顶栏 */
.d3-top{height:52px;background:linear-gradient(135deg,#edf8f5 0%,#f5fbfa 58%,#fbfdfd 100%);border-radius:16px;border:1px solid #dceee8;box-shadow:0 1px 2px rgba(5,0,56,.05),0 1px 1px rgba(5,0,56,.03);display:flex;align-items:center;padding:0 16px 0 20px;gap:12px;flex-shrink:0;margin:10px 316px 0 16px;width:auto}
.d3-bcp{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:0.04em;color:#9aa0b8;cursor:pointer;text-decoration:none;transition:color .18s;white-space:nowrap}.d3-bcp:hover{color:#2db88a}
.d3-bcs{font-size:11px;font-weight:700;color:#b0b5c8;margin:0 3px;flex-shrink:0}
.d3-bcc{font-size:18px;font-weight:600;color:#1a1a2e;line-height:1.4;white-space:nowrap}
.d3-tr{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0}
.d3-search{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.68);backdrop-filter:saturate(120%) blur(4px);border-radius:12px;padding:6px 12px;font-size:12px;font-weight:500;color:#9aa0b8;width:160px;border:1px solid #e3f0ec;transition:border-color .2s,background .2s;flex-shrink:0}.d3-search:hover{border-color:#2db88a}
.d3-ndiv{width:1px;height:16px;background:#dce9e5;flex-shrink:0}
.d3-dot{width:6px;height:6px;border-radius:50%;background:#2db88a;flex-shrink:0}
.d3-meta{font-family:'DM Sans',sans-serif;font-size:12px;font-weight:600;color:#1a1a2e;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}
.d3-back{display:none!important}

/* 内容行 */
.d3-row{flex:1;min-height:0;display:flex;overflow:hidden}

/* 主力区 */
.d3-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.d3-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 14px 20px;scrollbar-width:none;-ms-overflow-style:none}.d3-scroll::-webkit-scrollbar{display:none}

/* 右栏 */
.d3-right{width:300px;min-width:300px;flex-shrink:0;height:100%;overflow-y:auto;background:#edf0f5;border-left:1px solid #f0f2f8;padding:12px 12px 24px 10px;display:flex;flex-direction:column;gap:12px;scrollbar-width:none;-ms-overflow-style:none}.d3-right::-webkit-scrollbar{display:none}

/* Hero */
.d3-hero{background:#fff;border-radius:18px;padding:16px 18px;margin-bottom:10px;border:1px solid #eef0f7;box-shadow:0 1px 3px rgba(5,0,56,.08), 0 1px 2px rgba(5,0,56,.06);display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.d3-name{font-size:18px;font-weight:600;color:#1a1a2e;margin-bottom:4px;line-height:1.4}
.d3-meta2{font-size:12px;font-weight:600;color:#6B6B9A;margin-bottom:7px}
.d3-tags{display:flex;gap:5px;flex-wrap:wrap}
.d3-tag{font-size:12px;font-weight:600;padding:3px 9px;border-radius:8px;background:#f4f5fb;color:#64748B;border:1px solid #eef0f7}
.d3-hero-idea{margin-top:14px;padding-top:14px;border-top:1px solid #f0f2f8;display:flex;flex-direction:column;gap:12px;max-width:860px}
.d3-hero-block{display:flex;flex-direction:column;gap:5px}
.d3-hero-label{font-size:12px;font-weight:600;color:#64748B;line-height:1.5;letter-spacing:.02em}
.d3-hero-text{font-size:14px;font-weight:400;color:#475569;line-height:1.7}
.d3-hero-text.lead{font-weight:500;color:#334155}
.d3-hero-assets{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.d3-hero-asset{font-size:12px;font-weight:600;color:#0f6e56;background:#e8faf7;border:1px solid #c6efe9;border-radius:999px;padding:3px 9px}

.d3-people-method{display:flex;flex-direction:column;gap:10px}
.d3-people-hook{font-size:14px;font-weight:400;color:#475569;line-height:1.65}
.d3-people-kv{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.d3-people-mini{padding:9px 10px;border-radius:12px;background:#f8f9fc;border:1px solid #eef0f7}
.d3-people-label{font-size:12px;font-weight:600;color:#64748B;line-height:1.5;margin-bottom:3px}
.d3-people-value{font-size:14px;font-weight:600;color:#1a1a2e;line-height:1.4}
.d3-people-formula{font-size:12px;font-weight:500;color:#0f6e56;line-height:1.55;background:#e8faf7;border:1px solid #c6efe9;border-radius:12px;padding:8px 10px}
.m-char-wrap{display:flex;flex-direction:column;gap:14px}
.m-char-tabs{display:inline-flex;align-self:flex-start;background:#f4f5fb;border:1px solid #eef0f7;border-radius:12px;padding:4px;margin-bottom:2px}
.m-char-tab-btn{border:none;background:transparent;border-radius:9px;padding:7px 14px;font-size:12px;font-weight:600;color:#64748B;cursor:pointer;transition:all .18s ease}
.m-char-tab-btn.active{background:#fff;color:#1a1a2e;box-shadow:0 1px 3px rgba(5,0,56,.08)}
.m-char-panel{display:none}
.m-char-panel.active{display:block}
.m-char-doc{display:flex;flex-direction:column;gap:14px}
.m-char-core{background:#f4f5fb;border:1px solid #eef0f7;border-radius:14px;padding:16px 18px}
.m-char-core-title{font-size:16px;font-weight:600;color:#1a1a2e;line-height:1.4;margin-bottom:8px}
.m-char-core-text{font-size:14px;font-weight:400;color:#475569;line-height:1.75}
.m-char-section{padding:0 0 14px;border-bottom:1px solid #f0f2f8}
.m-char-section:last-of-type{border-bottom:none;padding-bottom:0}
.m-char-section-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.m-char-index{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#2db88a;background:#e8faf7;border:1px solid #c6efe9;border-radius:6px;padding:2px 7px;line-height:1.4}
.m-char-label{font-size:15px;font-weight:600;color:#1a1a2e;line-height:1.4}
.m-char-value{font-size:14px;font-weight:500;color:#334155;line-height:1.7;margin-bottom:5px}
.m-char-note{font-size:14px;font-weight:400;color:#6B6B9A;line-height:1.7}
.m-char-formula{background:#e8faf7;border:1px solid #c6efe9;border-radius:14px;padding:16px 18px;margin-top:2px}
.m-char-formula .m-char-label{color:#0f6e56;margin-bottom:8px}
.m-char-formula .m-char-value{color:#0f6e56;font-weight:600;margin-bottom:6px}
.m-char-formula .m-char-note{color:#3f7c69}
@media(max-width:760px){.d3-people-kv{grid-template-columns:1fr}.m-char-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}.m-char-tab-btn{width:100%}}
.d3-heat{font-family:'DM Mono',monospace;font-size:24px;font-weight:500;color:#2db88a;line-height:1;text-align:right}
.d3-heat-l{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:0.04em;color:#9aa0b8;text-align:right;margin-top:4px}

/* 网格 */
.d3-r2{display:grid;grid-template-columns:1.5fr 1fr;gap:10px;margin-bottom:10px;align-items:start}
.d3-r3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}

/* 分析卡片 */
.d3-card{background:#fff;border-radius:16px;padding:15px 16px;border:1px solid #eef0f7;box-shadow:0 1px 3px rgba(5,0,56,.08), 0 1px 2px rgba(5,0,56,.06);cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}
.d3-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(5,0,56,.10);border-color:#2db88a}
.d3-ch{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.d3-ct{font-size:14px;font-weight:600;color:#1a1a2e;display:flex;align-items:center;gap:6px;line-height:1.4}
.d3-cn{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;background:#f4f5fb;padding:1px 6px;border-radius:4px;}
.d3-cta{font-size:12px;font-weight:600;color:#2db88a}
.d3-struct-preview{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:14px;align-items:end}
.d3-struct-summary{font-size:14px;font-weight:400;color:#475569;line-height:1.65;max-width:520px;margin-bottom:10px}
.d3-struct-nodes{display:flex;gap:6px;flex-wrap:wrap}
.d3-struct-node{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#f8f9fc;border:1px solid #eef0f7}
.d3-struct-ep{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#2db88a}
.d3-struct-label{font-size:12px;font-weight:600;color:#64748B;line-height:1.4}
.d3-mini-chart{height:52px;display:flex;align-items:flex-end;gap:5px;justify-content:flex-end}
.d3-mini-bar{width:10px;border-radius:3px 3px 2px 2px}
.d3-mini-note{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-transform:uppercase;letter-spacing:.04em;text-align:right;margin-top:8px}
@media(max-width:960px){.d3-struct-preview{grid-template-columns:1fr}.d3-mini-chart{justify-content:flex-start}.d3-mini-note{text-align:left}}

/* 迷你柱状图 (重构排版) */
.d3-chart-wrapper { width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; margin-bottom: 12px; padding-bottom: 4px; }
.d3-chart-wrapper::-webkit-scrollbar { display: none; }
.d3-chart-inner { display: flex; align-items: flex-end; gap: 6px; min-width: max-content; }
.d3-bar-group { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 24px; }
.d3-bar-container { height: 48px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.d3-bar-fill { width: 16px; border-radius: 3px; }
.d3-bar-label { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: #9aa0b8; line-height: 1; }
.d3-bar-label.pk { color: #f43f5e; font-weight: 600; }
.d3-legend { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.d3-leg { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #64748B; }
.d3-ld { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.d3-anns { display: flex; flex-direction: column; gap: 5px; }
.d3-ann { display: flex; align-items: center; gap: 6px; }
.d3-aep { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: #fff; background: #2db88a; padding: 1px 6px; border-radius: 4px; flex-shrink: 0; }
.d3-at { font-size: 12px; font-weight: 600; color: #475569; }

/* 人物预览 */
.d3-pc{border:1px solid #eef0f7;border-radius:10px;padding:10px 12px;margin-bottom:8px}
.d3-pc:last-of-type{margin-bottom:0}
.d3-pr{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-transform:uppercase;letter-spacing:0.04em;margin-bottom:2px}
.d3-pn{font-size:14px;font-weight:600;color:#1a1a2e;margin-bottom:4px;line-height:1.4}
.d3-pd{font-size:12px;font-weight:400;color:#6B6B9A;line-height:1.65}
.d3-cp{background:#f4f5fb;border-radius:10px;padding:10px 12px;margin-top:8px}
.d3-cpn{font-size:14px;font-weight:600;color:#1a1a2e;margin-bottom:4px;line-height:1.4}
.d3-cpd{font-size:12px;font-weight:400;color:#6B6B9A;line-height:1.65}

/* 触发器预览 */
.d3-tr2{display:flex;gap:7px;align-items:flex-start;padding:8px 10px;border-radius:9px;background:#f4f5fb;border-left:3px solid;margin-bottom:8px}.d3-tr2:last-child{margin-bottom:0}
.d3-trt{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:0.04em;white-space:nowrap;flex-shrink:0;padding-top:1px}
.d3-trh{font-size:14px;font-weight:600;color:#1a1a2e;margin-bottom:2px;line-height:1.4}
.d3-trc{font-size:12px;font-weight:600;color:#9aa0b8}

/* 时间轴预览 */
.d3-tl{position:relative;padding-left:14px}
.d3-tll{position:absolute;left:4px;top:4px;bottom:4px;width:1.5px;background:#f0f2f8}
.d3-tli{position:relative;display:flex;gap:8px;align-items:flex-start;margin-bottom:10px}.d3-tli:last-child{margin-bottom:0}
.d3-tld{width:9px;height:9px;border-radius:50%;flex-shrink:0;margin-top:2px;position:relative;z-index:1;border:2px solid #fff}
.d3-tlt{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;width:32px;flex-shrink:0;margin-top:1px}
.d3-tlh{font-size:14px;font-weight:600;color:#1a1a2e;line-height:1.4}

/* 节拍器预览 */
.d3-bm{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #f0f2f8}.d3-bm:last-child{border-bottom:none}
.d3-bmd{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.d3-bmn{font-size:12px;font-weight:600;color:#475569;flex:1}
.d3-bmv{display:flex;align-items:center;gap:5px}
.d3-bmd2{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#1a1a2e;}
.d3-bms{font-size:12px;font-weight:600;color:#9aa0b8}
.d3-bma{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-decoration:line-through}

/* 右栏卡片 */
.d3-rc{background:#fff;border-radius:16px;padding:14px 16px;border:1px solid #eef0f7;box-shadow:0 1px 3px rgba(5,0,56,.08), 0 1px 2px rgba(5,0,56,.06)}
.d3-rph{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.d3-rpt{font-size:16px;font-weight:600;color:#1a1a2e;line-height:1.4}
.d3-rpm{font-size:12px;font-weight:400;color:#6B6B9A;line-height:1.65}

/* 用户卡 */
.d3-uc{background:#fff;border-radius:16px;border:1px solid #eef0f7;overflow:hidden;box-shadow:0 1px 3px rgba(5,0,56,.08), 0 1px 2px rgba(5,0,56,.06)}
.d3-uh{background:linear-gradient(135deg,#e8faf7 0%,#f4f5fb 100%);padding:14px 16px;border-bottom:1px solid #f0f2f8;display:flex;align-items:center;gap:10px}
.d3-uav{width:42px;height:42px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.10)}
.d3-un{font-size:16px;font-weight:600;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
.d3-ulv{font-size:12px;font-weight:400;color:#6B6B9A;margin-top:2px;line-height:1.65}
.d3-vip{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#0f6e56;background:#e8faf7;border:1px solid #c6efe9;padding:2px 8px;border-radius:999px;flex-shrink:0;letter-spacing:0.04em;text-transform:uppercase}
.d3-us{padding:12px 16px;display:grid;grid-template-columns:1fr 1fr}
.d3-ustat{padding:6px 0}
.d3-ustat:nth-child(odd){border-right:1px solid #f0f2f8;padding-right:12px}
.d3-ustat:nth-child(even){padding-left:12px}
.d3-usl{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;margin-bottom:3px;letter-spacing:0.04em;text-transform:uppercase}
.d3-usv{font-family:'DM Mono',monospace;font-size:16px;font-weight:500;color:#1a1a2e;}
.d3-usv.g{color:#2db88a}
.d3-ug{background:#fff;border-radius:16px;border:1px solid #eef0f7;padding:20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:0 1px 3px rgba(5,0,56,.08), 0 1px 2px rgba(5,0,56,.06)}
.d3-ugi{width:48px;height:48px;border-radius:50%;background:#f4f5fb;border:1px solid #eef0f7;display:flex;align-items:center;justify-content:center}
.d3-ugt{font-size:16px;font-weight:600;color:#1a1a2e;line-height:1.4}
.d3-ugd{font-size:14px;font-weight:400;color:#6B6B9A;line-height:1.65}
.d3-lgn{display:block;width:100%;font-size:14px;font-weight:600;color:#fff;background:#2db88a;border:none;border-radius:12px;padding:10px 0;cursor:pointer;box-shadow:0 2px 8px rgba(45,184,138,.25);transition:all .2s}.d3-lgn:hover{background:#27a87e;transform:translateY(-1px);box-shadow:0 4px 16px rgba(45,184,138,.35)}

/* 关注列表 */
.d3-fw{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f0f2f8}.d3-fw:last-child{border-bottom:none}
.d3-fwn{font-size:14px;font-weight:600;color:#1a1a2e;line-height:1.4}
.d3-fws{font-size:14px;font-weight:400;color:#6B6B9A;margin-top:2px;line-height:1.65}
.d3-fwd{width:8px;height:8px;border-radius:50%;flex-shrink:0}

/* 行动按钮 */
.d3-bp{width:100%;font-size:14px;font-weight:600;color:#fff;background:#2db88a;border:none;border-radius:12px;padding:12px;cursor:pointer;text-align:center;transition:all .2s;box-shadow:0 2px 8px rgba(45,184,138,.25)}.d3-bp:hover{background:#27a87e;transform:translateY(-1px);box-shadow:0 4px 16px rgba(45,184,138,.35)}
.d3-bs{width:100%;font-size:14px;font-weight:600;color:#0f6e56;background:#e8faf7;border:1px solid #c6efe9;border-radius:12px;padding:11px;cursor:pointer;text-align:center;transition:all .2s}.d3-bs:hover{background:#d0f5ec;transform:translateY(-1px);box-shadow:0 4px 12px rgba(45,184,138,.12)}
.d3-bg{width:100%;font-size:14px;font-weight:600;color:#64748B;background:#f4f5fb;border:1px solid #eef0f7;border-radius:12px;padding:11px;cursor:pointer;text-align:center;transition:all .2s}.d3-bg:hover{border-color:#2db88a;color:#2db88a;transform:translateY(-1px)}

/* Modal */
.d3-overlay{position:fixed;inset:0;background:rgba(15,20,30,.48);display:flex;align-items:center;justify-content:center;z-index:2147483100;opacity:0;pointer-events:none;transition:opacity .2s}
.d3-overlay.open{opacity:1;pointer-events:all}
.d3-modal{background:#fff;border-radius:20px;width:720px;max-width:94vw;max-height:84vh;overflow:hidden;display:flex;flex-direction:column;transform:translateY(16px);transition:transform .2s;border:1px solid #eef0f7;box-shadow:0 24px 64px rgba(5,0,56,.18)}
.d3-overlay.open .d3-modal{transform:translateY(0)}
.d3-mh{padding:18px 24px 16px;border-bottom:1px solid #f0f2f8;display:flex;align-items:center;gap:12px;flex-shrink:0}
.d3-mn{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;background:#f4f5fb;padding:2px 8px;border-radius:6px}
.d3-mt{font-size:18px;font-weight:600;color:#1a1a2e;flex:1;line-height:1.4}
.d3-ms{font-size:14px;font-weight:400;color:#6B6B9A;margin-top:2px;line-height:1.65}
.d3-saveblk{display:none;align-items:center;justify-content:center;height:32px;padding:0 13px;border-radius:999px;border:1px solid #e6eaf3;background:#fff;color:#64748B;font-size:12px;font-weight:600;line-height:1;cursor:pointer;white-space:nowrap;transition:all .18s ease;flex-shrink:0}
.d3-saveblk:hover{border-color:#2db88a;color:#0f6e56;background:#e8faf7;transform:translateY(-1px)}
.d3-saveblk.saved{border-color:#c6efe9;background:#e8faf7;color:#0f6e56}
.d3-mx{width:32px;height:32px;border-radius:50%;background:#f4f5fb;border:none;cursor:pointer;font-size:14px;color:#64748B;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s}.d3-mx:hover{background:#eef0f7;color:#1a1a2e}
.d3-mb{flex:1;overflow-y:auto;padding:24px;scrollbar-width:thin}.d3-mb::-webkit-scrollbar{width:4px}.d3-mb::-webkit-scrollbar-thumb{background:#e0e4f8;border-radius:4px}
.d3-mf{padding:14px 24px;border-top:1px solid #f0f2f8;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;background:#f9fafb}
.d3-mpg{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8}
.d3-mnav{display:flex;gap:8px}
.d3-mnb{font-size:12px;font-weight:600;color:#64748B;padding:8px 16px;border-radius:8px;border:1px solid #eef0f7;background:#fff;cursor:pointer;transition:all .15s}.d3-mnb:hover{border-color:#2db88a;color:#2db88a}

/* Modal 内部内容 */
.m-ab{background:#f4f5fb;border-radius:12px;padding:16px 20px;margin-top:16px}
.m-abl{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-transform:uppercase;letter-spacing:0.04em;margin-bottom:8px}
.m-abt{font-size:14px;font-weight:400;color:#475569;line-height:1.65}
.m-struct-top{display:grid;grid-template-columns:1.05fr .95fr;gap:12px;margin-bottom:14px}
.m-struct-card{background:#f4f5fb;border-radius:12px;padding:14px 16px}
.m-struct-k{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.m-struct-title{font-size:16px;font-weight:600;color:#1a1a2e;line-height:1.4;margin-bottom:6px}
.m-struct-text{font-size:14px;font-weight:400;color:#475569;line-height:1.65}
.m-struct-section{margin-top:16px}
.m-struct-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.m-struct-h{font-size:15px;font-weight:600;color:#1a1a2e;line-height:1.4}
.m-struct-sub{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-transform:uppercase;letter-spacing:.04em}
.m-epgrid{display:flex;flex-direction:column;gap:0;border:1px solid #eef0f7;border-radius:14px;overflow:hidden;background:#fff}
.m-epitem{display:grid;grid-template-columns:52px 1fr;gap:12px;padding:14px 16px;background:#fff;border-bottom:1px solid #f0f2f8}
.m-epitem:last-child{border-bottom:none}
.m-epno{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#fff;background:#2db88a;border-radius:7px;height:26px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.m-eptitle{font-size:15px;font-weight:600;color:#1a1a2e;line-height:1.4;margin-bottom:5px}
.m-epdesc{font-size:14px;font-weight:400;color:#6B6B9A;line-height:1.7}
.m-turns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.m-turn{padding:10px 12px;background:#fff;border:1px solid #eef0f7;border-radius:10px}
.m-turn-node{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#f43f5e;margin-bottom:4px}
.m-turn-title{font-size:14px;font-weight:600;color:#1a1a2e;line-height:1.4;margin-bottom:3px}
.m-turn-desc{font-size:12px;font-weight:400;color:#6B6B9A;line-height:1.55}
.m-formula{display:flex;flex-direction:column;gap:7px}
.m-formula-li{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:flex-start}
.m-formula-n{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#0f6e56;background:#e8faf7;border:1px solid #c6efe9;border-radius:6px;height:22px;display:flex;align-items:center;justify-content:center}
.m-formula-t{font-size:14px;font-weight:400;color:#475569;line-height:1.6}
@media(max-width:760px){.m-struct-top,.m-turns{grid-template-columns:1fr}}

.m-idea-doc{display:flex;flex-direction:column;gap:14px}
.m-idea-block{background:#f4f5fb;border:1px solid #eef0f7;border-radius:14px;padding:16px 18px}
.m-idea-block.plain{background:#fff;border-color:#f0f2f8}
.m-idea-label{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.m-idea-title{font-size:16px;font-weight:600;color:#1a1a2e;line-height:1.4;margin-bottom:8px}
.m-idea-text{font-size:14px;font-weight:400;color:#475569;line-height:1.75}
.m-idea-text.lead{font-size:15px;font-weight:500;color:#334155;line-height:1.7}
.m-idea-asset-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.m-idea-asset{display:grid;grid-template-columns:22px 1fr;gap:8px;font-size:14px;font-weight:400;color:#475569;line-height:1.65}
.m-idea-asset-no{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#0f6e56;background:#e8faf7;border:1px solid #c6efe9;border-radius:6px;height:22px;display:flex;align-items:center;justify-content:center}
.m-idea-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.m-idea-tag{font-size:12px;font-weight:600;color:#64748B;background:#fff;border:1px solid #eef0f7;border-radius:999px;padding:3px 9px}
.m-chart{display:flex;gap:4px;align-items:flex-end;height:64px;margin-bottom:6px}
.m-bar{border-radius:3px;flex-shrink:0;width:22px}
.m-eps{display:flex;gap:4px;margin-bottom:12px}
.m-ep{width:22px;font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-align:center;flex-shrink:0}
.m-ep.pk{color:#f43f5e;font-weight:600}
.m-leg{display:flex;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.m-li{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#64748B}
.m-ld{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.m-anns{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.m-ann{display:flex;align-items:center;gap:8px;background:#f4f5fb;border-radius:10px;padding:8px 12px}
.m-aep{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#fff;background:#2db88a;padding:2px 8px;border-radius:4px;flex-shrink:0}
.m-at{font-size:14px;font-weight:600;color:#475569}
.m-pcg{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.m-pc{background:#f4f5fb;border-radius:12px;padding:14px 16px}
.m-pcr{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;text-transform:uppercase;letter-spacing:0.04em;margin-bottom:4px}
.m-pcn{font-size:16px;font-weight:600;color:#1a1a2e;margin-bottom:6px;line-height:1.4}
.m-pcd{font-size:14px;font-weight:400;color:#6B6B9A;line-height:1.65}
.m-cp{background:#f4f5fb;border-radius:12px;padding:14px 16px;margin-bottom:12px}
.m-tr{padding:12px 16px;background:#f4f5fb;border-radius:12px;border-left:3px solid;margin-bottom:10px}.m-tr:last-child{margin-bottom:0}
.m-trt{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:0.04em;margin-bottom:4px}
.m-trh{font-size:16px;font-weight:600;color:#1a1a2e;margin-bottom:6px;line-height:1.4}
.m-trd{font-size:14px;font-weight:400;color:#6B6B9A;line-height:1.65}
.m-tl{position:relative;padding-left:18px}
.m-tll{position:absolute;left:5px;top:6px;bottom:6px;width:1.5px;background:#f0f2f8}
.m-tli{position:relative;display:flex;gap:10px;align-items:flex-start;margin-bottom:16px}.m-tli:last-child{margin-bottom:0}
.m-tld{width:11px;height:11px;border-radius:50%;flex-shrink:0;margin-top:2px;position:relative;z-index:1;border:2px solid #fff}
.m-tlt{font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#9aa0b8;width:38px;flex-shrink:0;margin-top:1px}
.m-tlh{font-size:16px;font-weight:600;color:#1a1a2e;line-height:1.4;margin-bottom:4px}
.m-tld2{font-size:14px;font-weight:400;color:#6B6B9A;line-height:1.65}
.m-beat{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid #f0f2f8}.m-beat:first-child{padding-top:0}.m-beat:last-child{border-bottom:none;padding-bottom:0}
.m-bd{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px}
.m-bn{font-size:16px;font-weight:600;color:#475569;margin-bottom:4px;line-height:1.4}
.m-bc{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.m-bdr{font-family:'DM Mono',monospace;font-size:14px;font-weight:500;color:#1a1a2e;}
.m-bsp{font-size:12px;font-weight:600;color:#9aa0b8}
.m-bav{font-family:'DM Mono',monospace;font-size:14px;font-weight:500;color:#9aa0b8;text-decoration:line-through}
.m-bnt{font-size:14px;font-weight:400;color:#6B6B9A;line-height:1.65}

@media(max-width:1200px){.d3-right{display:none}.d3-top{margin-right:16px}}
@media(max-width:960px){.d3-r2,.d3-r3,.d3-info-grid{grid-template-columns:1fr}.d3-info-grid .d3-story-panel{grid-column:auto}.d3-search{display:none}.d3-meta{max-width:150px}}


/* =========================================================
 * V4.8 最终合并样式护栏
 * 说明：
 * 之前 V4.2 ~ V4.7 的多轮 CSS 覆盖已合并到这里。
 * 页面真实功能、数据读取、弹窗模板不动，只清理样式冗余。
 * ========================================================= */

:root{
    --sos-bg:#EDF0F5;
    --sos-card:#FFFFFF;
    --sos-soft:#F4F4F9;
    --sos-soft-2:#F8F9FC;
    --sos-line:#EEF0F7;
    --sos-green:#2DB88A;
    --sos-green-dark:#0F6E56;
    --sos-green-soft:#E8FAF7;
    --sos-green-line:#C6EFE9;
    --sos-text-900:#050038;
    --sos-text-800:#1A1A40;
    --sos-text-500:#6B6B9A;
    --sos-shadow-sm:0 1px 3px rgba(5,0,56,.08),0 1px 2px rgba(5,0,56,.06);
    --sos-shadow-md:0 4px 16px rgba(5,0,56,.10);
}

#dd3-app,
#dd3-app *{
    font-family:'DM Sans',-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",sans-serif!important;
}

/* 数据/编号类保留等宽字体 */
.d3-cn,
.d3-struct-ep,
.d3-mini-note,
.d3-opening-time,
.m-epno,
.m-turn-node,
.m-formula-n,
.m-char-index,
.d3-usl,
.d3-usv,
.d3-vip,
.d3-bcp{
    font-family:'DM Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;
}

/* 布局：顶栏随中间栏滚动，右栏不产生灰色夹层 */
.d3-row{
    padding-top:0!important;
}
.d3-scroll{
    padding:16px 12px 40px 16px!important;
}
.d3-top{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    width:auto!important;
    margin:0 0 12px 0!important;
    z-index:10!important;
    background:linear-gradient(135deg,#EDF8F5 0%,#F5FBFA 58%,#FBFDFD 100%)!important;
    border-color:#DCEEE8!important;
    box-shadow:0 1px 3px rgba(5,0,56,.08),0 1px 2px rgba(5,0,56,.05)!important;
}
.d3-right{
    border-left:none!important;
    background:transparent!important;
    padding-left:0!important;
}
.d3-right::before,
.d3-right::after{
    display:none!important;
    content:none!important;
}

/* 页面标题、模块标题、字段标签、正文四级规范 */
.d3-name,
.d3-mt{
    font-size:18px!important;
    font-weight:600!important;
    line-height:1.4!important;
    color:var(--sos-text-900)!important;
}
.d3-bcc{
    font-size:18px!important;
    font-weight:600!important;
    line-height:1.4!important;
    color:var(--sos-text-900)!important;
}
.d3-ct,
.d3-rpt,
.m-struct-title,
.m-struct-h,
.m-char-core-title,
.m-trh,
.m-tlh,
.m-bn,
.m-eptitle,
.m-turn-title,
.d3-trigger-title,
.d3-opening-title,
.d3-fwn{
    font-size:16px!important;
    font-weight:600!important;
    line-height:1.4!important;
    color:var(--sos-text-900)!important;
}
.d3-hero-v46 .d3-brief-label,
.d3-mini-label,
.d3-people-label,
.d3-trigger-type,
.d3-retention-label,
.m-struct-k,
.m-struct-sub,
.m-abl,
.m-pcr,
.d3-pr,
.d3-usl,
.d3-rpm,
.d3-heat-l{
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.5!important;
    color:var(--sos-text-800)!important;
    letter-spacing:0!important;
    text-transform:none!important;
}
.d3-hero-v46 .d3-brief-lead,
.d3-hero-v46 .d3-brief-text,
.d3-hero-v46 .d3-moral-text,
.d3-card-lead,
.d3-struct-summary,
.d3-people-hook,
.d3-card-people .d3-people-mini .d3-people-value,
.d3-trigger-desc,
.d3-trigger-effect,
.d3-opening-task,
.d3-retention-line,
.m-struct-text,
.m-epdesc,
.m-turn-desc,
.m-formula-t,
.m-char-core-text,
.m-char-value,
.m-char-note,
.m-trd,
.m-tld2,
.m-bnt,
.m-abt,
.m-pcd,
.m-cpd,
.d3-pd,
.d3-cpd,
.d3-fws,
.d3-ulv,
.d3-ugd,
.d3-meta2{
    font-size:14px!important;
    font-weight:400!important;
    line-height:1.75!important;
    color:var(--sos-text-500)!important;
    letter-spacing:0!important;
}

/* Hero：左栏故事信息，右栏创意判断；右侧模块上下居中 */
.d3-hero-v46{
    background:var(--sos-card)!important;
    border:1px solid var(--sos-line)!important;
    border-radius:18px!important;
    box-shadow:var(--sos-shadow-sm)!important;
    padding:24px 24px 28px!important;
    margin-bottom:16px!important;
    overflow:hidden!important;
}
.d3-hero-v46 .d3-hero-main{
    max-width:100%!important;
}
.d3-hero-v46 .d3-hero-titleline{
    margin-bottom:12px!important;
}
.d3-hero-v46 .d3-meta2{
    margin:0!important;
}
.d3-hero-v46 .d3-tags{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    margin:12px 0 0!important;
}
.d3-hero-v46 .d3-tag{
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.5!important;
    color:var(--sos-text-500)!important;
    background:var(--sos-soft)!important;
    border:1px solid var(--sos-line)!important;
    border-radius:999px!important;
    padding:4px 12px!important;
}
.d3-hero-v46 .d3-hero-divider{
    height:1px!important;
    background:var(--sos-line)!important;
    margin:20px 0!important;
}
.d3-hero-v46 .d3-hero-brief{
    display:grid!important;
    grid-template-columns:minmax(0,1.42fr) minmax(320px,.86fr)!important;
    gap:24px!important;
    align-items:center!important;
}
.d3-hero-v46 .d3-brief-left{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:22px!important;
    padding-right:24px!important;
    border-right:1px solid var(--sos-line)!important;
}
.d3-hero-v46 .d3-brief-right{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    align-self:stretch!important;
}
.d3-hero-v46 .d3-brief-core{
    width:100%!important;
    align-self:center!important;
    background:var(--sos-soft-2)!important;
    border:1px solid var(--sos-line)!important;
    border-radius:16px!important;
    padding:20px!important;
}
.d3-hero-v46 .d3-brief-synopsis{
    padding-right:0!important;
    border-right:none!important;
}
.d3-hero-v46 .d3-brief-label{
    margin:0 0 8px!important;
}
.d3-hero-v46 .d3-moral-box{
    margin-top:16px!important;
    padding-top:16px!important;
    border-top:1px solid var(--sos-line)!important;
}
.d3-hero-v46 .d3-heat,
.d3-hero-v46 .d3-heat-l,
.d3-hero-v46 .d3-hero-assets,
.d3-hero-v46 .d3-hero-asset{
    display:none!important;
}

/* 四模块分析矩阵 */
.d3-analysis-row{
    display:grid!important;
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important;
    gap:16px!important;
    margin-bottom:16px!important;
    align-items:stretch!important;
}
.d3-analysis-row .d3-card{
    min-height:248px!important;
    padding:24px!important;
    border-radius:24px!important;
    border:1px solid var(--sos-line)!important;
    background:var(--sos-card)!important;
    box-shadow:var(--sos-shadow-sm)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
}
.d3-analysis-row .d3-card:hover{
    transform:translateY(-2px)!important;
    box-shadow:var(--sos-shadow-md)!important;
    border-color:var(--sos-green-line)!important;
}
.d3-analysis-row .d3-ch{
    margin-bottom:16px!important;
}
.d3-analysis-row .d3-cn{
    font-size:12px!important;
    font-weight:500!important;
    line-height:1.5!important;
    color:var(--sos-text-500)!important;
    background:var(--sos-soft)!important;
    border-radius:8px!important;
    padding:2px 8px!important;
}
.d3-analysis-row .d3-cta{
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.5!important;
    color:var(--sos-green)!important;
    white-space:nowrap!important;
}

/* 01 结构骨架 */
.d3-structure-layout{
    flex:1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 160px!important;
    gap:24px!important;
    align-items:end!important;
}
.d3-chain{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:6px!important;
    margin:8px 0 16px!important;
}
.d3-chain-node,
.d3-struct-node{
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.5!important;
    color:var(--sos-text-500)!important;
    background:var(--sos-soft-2)!important;
    border:1px solid var(--sos-line)!important;
    border-radius:999px!important;
    padding:5px 10px!important;
}
.d3-chain-arrow{
    font-size:12px!important;
    color:#C2C2D9!important;
}
.d3-struct-nodes{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
}
.d3-struct-ep{
    font-size:12px!important;
    font-weight:500!important;
    color:var(--sos-green)!important;
}
.d3-rhythm-box{
    align-self:end!important;
}
.d3-mini-chart{
    height:56px!important;
    justify-content:flex-end!important;
    gap:6px!important;
}
.d3-mini-bar{
    width:12px!important;
    border-radius:5px 5px 3px 3px!important;
}

/* 02 人物设计 */
.d3-people-method-v44{
    flex:1!important;
    display:flex!important;
    flex-direction:column!important;
    gap:16px!important;
}
.d3-people-mini-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:12px!important;
}
.d3-people-mini{
    background:var(--sos-soft-2)!important;
    border:1px solid var(--sos-line)!important;
    border-radius:16px!important;
    padding:16px!important;
}
.d3-people-formula{
    margin-top:auto!important;
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.5!important;
    color:var(--sos-green-dark)!important;
    background:var(--sos-green-soft)!important;
    border:1px solid var(--sos-green-line)!important;
    border-radius:14px!important;
    padding:12px 16px!important;
}

/* 03 爆点设计 */
.d3-trigger-grid{
    flex:1!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
}
.d3-trigger-card{
    min-width:0!important;
    background:var(--sos-soft-2)!important;
    border:1px solid var(--sos-line)!important;
    border-left:3px solid var(--trigger-color,var(--sos-green))!important;
    border-radius:16px!important;
    padding:16px!important;
    display:flex!important;
    flex-direction:column!important;
    gap:6px!important;
}
.d3-trigger-effect{
    margin-top:auto!important;
}

/* 04 首集前 3 分钟 */
.d3-opening-list{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
}
.d3-opening-item{
    display:grid!important;
    grid-template-columns:10px 44px minmax(0,1fr)!important;
    gap:8px!important;
    align-items:start!important;
}
.d3-opening-dot{
    width:8px!important;
    height:8px!important;
    border-radius:999px!important;
    margin-top:7px!important;
}
.d3-retention-goal{
    margin-top:auto!important;
    background:var(--sos-green-soft)!important;
    border:1px solid var(--sos-green-line)!important;
    border-radius:16px!important;
    padding:12px 16px!important;
}
.d3-retention-label,
.d3-retention-line{
    color:var(--sos-green-dark)!important;
}

/* 按钮、标签、弹窗辅助 */
.d3-cta,
.d3-saveblk,
.d3-mnb,
.d3-bp,
.d3-bs,
.d3-bg,
.d3-lgn{
    font-size:14px!important;
    font-weight:600!important;
    line-height:1.5!important;
    letter-spacing:0!important;
}
.d3-tag,
.d3-chain-node,
.d3-struct-node,
.d3-bms,
.d3-bsp,
.m-bsp{
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.5!important;
    letter-spacing:0!important;
}
.d3-ms,
.d3-mpg{
    font-size:12px!important;
    font-weight:400!important;
    line-height:1.6!important;
    color:var(--sos-text-500)!important;
}

/* 响应式 */
@media(max-width:1200px){
    .d3-right{display:none!important}
    .d3-top{margin-right:0!important}
}
@media(max-width:960px){
    .d3-analysis-row,
    .d3-hero-v46 .d3-hero-brief{
        grid-template-columns:1fr!important;
    }
    .d3-hero-v46 .d3-brief-left{
        padding-right:0!important;
        padding-bottom:18px!important;
        border-right:none!important;
        border-bottom:1px solid var(--sos-line)!important;
    }
    .d3-structure-layout{
        grid-template-columns:1fr!important;
    }
    .d3-trigger-grid{
        grid-template-columns:1fr!important;
    }
    .d3-rhythm-box{
        justify-self:start!important;
    }
    .d3-mini-note{
        text-align:left!important;
    }
}
@media(max-width:760px){
    .d3-scroll{padding:12px!important}
    .d3-analysis-row .d3-card{
        padding:16px!important;
        border-radius:18px!important;
    }
    .d3-people-mini-grid{
        grid-template-columns:1fr!important;
    }
    .d3-hero-v46{
        padding:20px!important;
    }
    .d3-hero-v46 .d3-brief-core{
        padding:16px!important;
    }
}


/* =========================================================
 * V4.8.2 爆点设计提炼数据增强
 * 预览卡更有信息密度；弹窗增加核心手法/观众作用/复用方式/编剧提示。
 * ========================================================= */
.d3-trigger-card{
    gap:8px!important;
}

.d3-trigger-desc{
    min-height:42px!important;
}

.d3-trigger-effect{
    color:var(--sos-green-dark)!important;
    background:var(--sos-green-soft)!important;
    border:1px solid var(--sos-green-line)!important;
    border-radius:10px!important;
    padding:7px 9px!important;
}

.m-tr-rich{
    padding:16px 18px!important;
    margin-bottom:14px!important;
}

.m-tr-rich .m-trd{
    margin-bottom:14px!important;
}

.m-tr-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
}

.m-tr-info{
    background:#fff!important;
    border:1px solid #EEF0F7!important;
    border-radius:12px!important;
    padding:12px!important;
}

.m-tr-k{
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.5!important;
    color:#1A1A40!important;
    margin-bottom:5px!important;
}

.m-tr-v{
    font-size:14px!important;
    font-weight:400!important;
    line-height:1.75!important;
    color:#6B6B9A!important;
}

@media(max-width:760px){
    .m-tr-grid{
        grid-template-columns:1fr!important;
    }
}


/* =========================================================
 * V4.9 性能护栏：去外链字体 + 弹窗模板 text/template 懒注入
 * ========================================================= */
#dd3-app,
#dd3-app *{
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",Roboto,Arial,sans-serif!important;
}

.d3-cn,
.d3-struct-ep,
.d3-mini-note,
.d3-opening-time,
.m-epno,
.m-turn-node,
.m-formula-n,
.m-char-index,
.d3-usl,
.d3-usv,
.d3-vip,
.d3-bcp,
.d3-bms,
.m-bdr,
.m-bav{
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace!important;
}


/* =========================================================
 * V5.1 结构骨架：编剧工作台式弹层
 * - 取消节奏对照 / 可复用结构公式 / 单独关键转折点
 * - 关键转折并入分集节奏表
 * - 默认展示前 10 集 + 全集会员入口
 * ========================================================= */
.m-structure-workbench{
    display:flex!important;
    flex-direction:column!important;
    gap:22px!important;
}

.m-struct-top-v51{
    display:grid!important;
    grid-template-columns:minmax(0,1.35fr) minmax(320px,.9fr)!important;
    gap:16px!important;
    margin-bottom:0!important;
    align-items:stretch!important;
}

.m-struct-top-v51 .m-struct-card{
    border-radius:18px!important;
    padding:20px!important;
    background:#F4F4F9!important;
    border:1px solid #EEF0F7!important;
}

.m-struct-judge-card{
    min-height:210px!important;
}

.m-struct-chips{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    margin-top:16px!important;
}

.m-struct-chip{
    display:inline-flex!important;
    align-items:center!important;
    min-height:28px!important;
    padding:4px 10px!important;
    border-radius:999px!important;
    background:#FFFFFF!important;
    border:1px solid #EEF0F7!important;
    color:#6B6B9A!important;
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.5!important;
}

.m-struct-headline{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin-bottom:16px!important;
}

.m-struct-mini-sub,
.m-struct-note,
.m-struct-member-text{
    font-size:12px!important;
    font-weight:400!important;
    color:#6B6B9A!important;
    line-height:1.6!important;
}

.m-more-btn{
    border:none!important;
    background:#2DB88A!important;
    color:#FFFFFF!important;
    border-radius:999px!important;
    padding:8px 12px!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.4!important;
    cursor:pointer!important;
    white-space:nowrap!important;
    box-shadow:0 4px 12px rgba(45,184,138,.18)!important;
}

.m-more-btn-ghost{
    background:#E8FAF7!important;
    color:#0F6E56!important;
    border:1px solid #C6EFE9!important;
    box-shadow:none!important;
}

.m-struct-head-v51{
    align-items:flex-start!important;
    margin-bottom:14px!important;
    padding-bottom:12px!important;
    border-bottom:1px solid #EEF0F7!important;
}

.m-episode-workbench{
    margin-top:0!important;
}

.m-epgrid-rich{
    border:none!important;
    border-radius:0!important;
    gap:10px!important;
    background:transparent!important;
    overflow:visible!important;
}

.m-epitem-rich{
    display:grid!important;
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:16px!important;
    padding:16px!important;
    border:1px solid #EEF0F7!important;
    border-radius:18px!important;
    background:#FFFFFF!important;
    box-shadow:0 1px 2px rgba(5,0,56,.04)!important;
}

.m-ep-side{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:8px!important;
}

.m-epitem-rich .m-epno{
    width:54px!important;
    height:32px!important;
    border-radius:10px!important;
    background:#2DB88A!important;
    color:#FFFFFF!important;
    font-size:13px!important;
    font-weight:700!important;
}

.m-eptype{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:4px 8px!important;
    border-radius:999px!important;
    background:#F4F4F9!important;
    color:#6B6B9A!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.4!important;
    white-space:nowrap!important;
}

.m-ep-main{
    min-width:0!important;
}

.m-ep-title-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin-bottom:12px!important;
}

.m-ep-tags{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    justify-content:flex-end!important;
}

.m-ep-tag{
    display:inline-flex!important;
    align-items:center!important;
    min-height:24px!important;
    padding:3px 9px!important;
    border-radius:999px!important;
    background:#E8FAF7!important;
    border:1px solid #C6EFE9!important;
    color:#0F6E56!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.4!important;
}

.m-ep-fields{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px 14px!important;
}

.m-ep-field{
    min-width:0!important;
    padding:10px 12px!important;
    border-radius:12px!important;
    background:#F8F9FC!important;
    border:1px solid #EEF0F7!important;
}

.m-ep-field-wide{
    grid-column:1 / -1!important;
}

.m-ep-field-k{
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.5!important;
    color:#1A1A40!important;
    margin-bottom:4px!important;
}

.m-ep-field-v{
    font-size:14px!important;
    font-weight:400!important;
    line-height:1.7!important;
    color:#6B6B9A!important;
}

.m-struct-member-tip{
    margin-top:14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:16px 18px!important;
    border-radius:18px!important;
    background:#E8FAF7!important;
    border:1px solid #C6EFE9!important;
}

.m-struct-member-title{
    font-size:14px!important;
    font-weight:700!important;
    line-height:1.5!important;
    color:#0F6E56!important;
    margin-bottom:2px!important;
}

@media(max-width:900px){
    .m-struct-top-v51{
        grid-template-columns:1fr!important;
    }

    .m-struct-headline,
    .m-struct-head-v51,
    .m-struct-member-tip{
        flex-direction:column!important;
        align-items:flex-start!important;
    }

    .m-epitem-rich{
        grid-template-columns:1fr!important;
    }

    .m-ep-side{
        flex-direction:row!important;
        justify-content:flex-start!important;
    }

    .m-ep-title-row{
        align-items:flex-start!important;
        flex-direction:column!important;
    }

    .m-ep-tags{
        justify-content:flex-start!important;
    }

    .m-ep-fields{
        grid-template-columns:1fr!important;
    }
}


/* =========================================================
 * V5.1.2 全部集按钮生效
 * - 默认隐藏 E11+
 * - VIP 点击底部按钮后展开
 * ========================================================= */
.m-epitem-extra{
    display:none!important;
}

.m-epitem-extra.show{
    display:grid!important;
}

.m-more-btn.is-done,
.m-more-btn:disabled{
    opacity:.72!important;
    cursor:default!important;
    box-shadow:none!important;
}

.m-struct-member-tip.unlocked{
    background:#F8F9FC!important;
    border-color:#EEF0F7!important;
}

.m-struct-member-tip.unlocked .m-struct-member-title::after{
    content:" · 已展开";
    color:#2DB88A;
}


/* =========================================================
 * V5.2 人物设计资产化第一步
 * - 人物概览：主要人物资产卡
 * - 人物关系：轻量关系图谱预览 + 关系列表
 * ========================================================= */
.d3-card-people .d3-people-formula{
    color:#0F6E56!important;
    background:#E8FAF7!important;
    border-color:#C6EFE9!important;
}

.m-char-asset-wrap{
    gap:20px!important;
}

.m-char-asset-core{
    display:flex!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    gap:18px!important;
    background:#F4F4F9!important;
    border:1px solid #EEF0F7!important;
    border-radius:20px!important;
    padding:20px!important;
}

.m-char-export-btn{
    border:none!important;
    border-radius:999px!important;
    background:#2DB88A!important;
    color:#FFFFFF!important;
    padding:10px 16px!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.4!important;
    white-space:nowrap!important;
    cursor:pointer!important;
    box-shadow:0 4px 12px rgba(45,184,138,.18)!important;
}

.m-char-export-btn.ghost{
    background:#E8FAF7!important;
    color:#0F6E56!important;
    border:1px solid #C6EFE9!important;
    box-shadow:none!important;
}

.m-asset-section-head{
    display:flex!important;
    justify-content:space-between!important;
    align-items:flex-end!important;
    gap:14px!important;
    margin:20px 0 12px!important;
}

.m-asset-section-title{
    font-size:16px!important;
    font-weight:800!important;
    color:#050038!important;
    line-height:1.45!important;
}

.m-asset-section-sub{
    font-size:12px!important;
    font-weight:400!important;
    color:#6B6B9A!important;
    line-height:1.6!important;
    margin-top:3px!important;
}

.m-asset-count{
    border-radius:999px!important;
    background:#F4F4F9!important;
    color:#6B6B9A!important;
    border:1px solid #EEF0F7!important;
    padding:6px 10px!important;
    font-size:12px!important;
    font-weight:800!important;
    white-space:nowrap!important;
}

.m-char-asset-list{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
}

.m-char-asset-card{
    background:#FFFFFF!important;
    border:1px solid #EEF0F7!important;
    border-radius:20px!important;
    padding:18px!important;
    box-shadow:0 1px 2px rgba(5,0,56,.04)!important;
}

.m-char-asset-top{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    margin-bottom:12px!important;
}

.m-char-avatar-dot{
    width:44px!important;
    height:44px!important;
    border-radius:14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:900!important;
    flex-shrink:0!important;
}

.m-char-asset-main{
    flex:1!important;
    min-width:0!important;
}

.m-char-asset-title{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    flex-wrap:wrap!important;
}

.m-char-asset-title span{
    font-size:12px!important;
    font-weight:800!important;
    color:#2DB88A!important;
    background:#E8FAF7!important;
    border:1px solid #C6EFE9!important;
    border-radius:999px!important;
    padding:3px 9px!important;
}

.m-char-asset-title strong{
    font-size:16px!important;
    font-weight:800!important;
    line-height:1.4!important;
    color:#050038!important;
}

.m-char-asset-tier{
    font-size:12px!important;
    color:#6B6B9A!important;
    margin-top:4px!important;
    font-weight:600!important;
}

.m-char-asset-summary{
    font-size:14px!important;
    color:#6B6B9A!important;
    line-height:1.75!important;
    margin-bottom:12px!important;
}

.m-char-tags{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    margin-bottom:14px!important;
}

.m-char-tags span{
    display:inline-flex!important;
    border-radius:999px!important;
    background:#F8F9FC!important;
    border:1px solid #EEF0F7!important;
    color:#6B6B9A!important;
    padding:4px 9px!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.4!important;
}

.m-char-asset-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
}

.m-char-asset-grid>div{
    background:#F8F9FC!important;
    border:1px solid #EEF0F7!important;
    border-radius:14px!important;
    padding:12px!important;
}

.m-char-asset-grid>div.wide{
    grid-column:1/-1!important;
}

.m-char-asset-k{
    font-size:12px!important;
    font-weight:800!important;
    color:#1A1A40!important;
    line-height:1.5!important;
    margin-bottom:5px!important;
}

.m-char-asset-v{
    font-size:14px!important;
    font-weight:400!important;
    color:#6B6B9A!important;
    line-height:1.7!important;
}

/* 关系图谱预览 */
.m-rel-preview{
    position:relative!important;
    min-height:300px!important;
    border-radius:24px!important;
    background:
        radial-gradient(rgba(176,181,200,.28) 1px, transparent 1px),
        #F8F9FC!important;
    background-size:24px 24px!important;
    border:1px solid #EEF0F7!important;
    overflow:hidden!important;
    margin-top:14px!important;
}

.m-rel-node{
    position:absolute!important;
    min-width:118px!important;
    max-width:168px!important;
    padding:12px 14px!important;
    border-radius:16px!important;
    background:#FFFFFF!important;
    border:1px solid #EEF0F7!important;
    color:#050038!important;
    font-size:13px!important;
    font-weight:800!important;
    text-align:center!important;
    box-shadow:0 6px 18px rgba(5,0,56,.08)!important;
    z-index:2!important;
}

.m-rel-node-main{
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    border-color:#C6EFE9!important;
    box-shadow:0 8px 24px rgba(45,184,138,.16)!important;
}

.m-rel-node-a{left:9%!important;top:16%!important}
.m-rel-node-b{right:9%!important;top:16%!important}
.m-rel-node-c{left:11%!important;bottom:16%!important}
.m-rel-node-d{right:11%!important;bottom:16%!important}

.m-rel-line{
    position:absolute!important;
    height:2px!important;
    background:#CBD5E1!important;
    transform-origin:center!important;
    z-index:1!important;
}

.m-rel-line span{
    position:absolute!important;
    left:50%!important;
    top:-15px!important;
    transform:translateX(-50%)!important;
    background:#fff!important;
    border:1px solid #EEF0F7!important;
    color:#6B6B9A!important;
    border-radius:999px!important;
    padding:2px 8px!important;
    font-size:11px!important;
    font-weight:800!important;
    white-space:nowrap!important;
}

.m-rel-line-a{width:32%!important;left:23%!important;top:38%!important;transform:rotate(14deg)!important;background:#7083DF!important}
.m-rel-line-b{width:32%!important;right:23%!important;top:38%!important;transform:rotate(-14deg)!important;background:#F43F5E!important}
.m-rel-line-c{width:31%!important;left:24%!important;bottom:38%!important;transform:rotate(-16deg)!important;background:#D4900A!important}
.m-rel-line-d{width:31%!important;right:24%!important;bottom:38%!important;transform:rotate(16deg)!important;background:#10B981!important}

.m-rel-card-list{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:12px!important;
}

.m-rel-card{
    background:#FFFFFF!important;
    border:1px solid #EEF0F7!important;
    border-radius:18px!important;
    padding:16px!important;
    border-left:4px solid #CBD5E1!important;
}

.m-rel-card.tone-ally{border-left-color:#7083DF!important}
.m-rel-card.tone-enemy{border-left-color:#F43F5E!important}
.m-rel-card.tone-secret{border-left-color:#D4900A!important}
.m-rel-card.tone-protect{border-left-color:#10B981!important}

.m-rel-card-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-bottom:8px!important;
}

.m-rel-pair{
    font-size:15px!important;
    font-weight:800!important;
    color:#050038!important;
    line-height:1.45!important;
}

.m-rel-badge{
    font-size:12px!important;
    font-weight:800!important;
    color:#0F6E56!important;
    background:#E8FAF7!important;
    border:1px solid #C6EFE9!important;
    border-radius:999px!important;
    padding:3px 9px!important;
    white-space:nowrap!important;
}

.m-rel-desc{
    font-size:14px!important;
    color:#6B6B9A!important;
    line-height:1.7!important;
    margin-bottom:10px!important;
}

.m-rel-meta{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
}

.m-rel-meta div{
    background:#F8F9FC!important;
    border:1px solid #EEF0F7!important;
    border-radius:12px!important;
    padding:10px!important;
    font-size:13px!important;
    color:#6B6B9A!important;
    line-height:1.6!important;
}

.m-rel-meta strong{
    display:block!important;
    color:#1A1A40!important;
    font-size:12px!important;
    margin-bottom:4px!important;
}

.m-char-save-note{
    margin-top:16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:16px 18px!important;
    border-radius:20px!important;
    background:#E8FAF7!important;
    border:1px solid #C6EFE9!important;
}

.m-char-save-title{
    font-size:14px!important;
    font-weight:800!important;
    color:#0F6E56!important;
    line-height:1.5!important;
}

.m-char-save-text{
    font-size:12px!important;
    font-weight:400!important;
    color:#0F6E56!important;
    line-height:1.6!important;
    margin-top:3px!important;
}

@media(max-width:900px){
    .m-char-asset-core,
    .m-asset-section-head,
    .m-char-save-note{
        flex-direction:column!important;
        align-items:flex-start!important;
    }
    .m-char-asset-grid,
    .m-rel-card-list{
        grid-template-columns:1fr!important;
    }
    .m-rel-preview{
        min-height:430px!important;
    }
    .m-rel-node-main{top:50%!important}
    .m-rel-node-a{left:50%!important;top:7%!important;transform:translateX(-50%)!important}
    .m-rel-node-b{right:auto!important;left:50%!important;top:25%!important;transform:translateX(-50%)!important}
    .m-rel-node-c{left:50%!important;bottom:25%!important;transform:translateX(-50%)!important}
    .m-rel-node-d{right:auto!important;left:50%!important;bottom:7%!important;transform:translateX(-50%)!important}
    .m-rel-line{display:none!important}
}


/* =========================================================
 * V5.2.1 人物模拟数据命名版
 * - 显示：姓名 + 角色定位 + 阵营 + 身份字段
 * - 关系卡显示连线方向，方便后续转 Drawflow
 * ========================================================= */
.m-char-profile-line{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    margin:0 0 12px!important;
}

.m-char-profile-line span{
    display:inline-flex!important;
    align-items:center!important;
    min-height:24px!important;
    padding:3px 9px!important;
    border-radius:999px!important;
    background:#F4F4F9!important;
    border:1px solid #EEF0F7!important;
    color:#6B6B9A!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.4!important;
}

.m-rel-direction{
    display:inline-flex!important;
    align-items:center!important;
    margin:0 0 10px!important;
    padding:5px 10px!important;
    border-radius:999px!important;
    background:#F8F9FC!important;
    border:1px solid #EEF0F7!important;
    color:#6B6B9A!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.4!important;
}


/* =========================================================
 * V5.3 人物设计一键保存
 * ========================================================= */
.m-char-export-btn.is-loading,
.m-char-export-btn:disabled{
    opacity:.72!important;
    cursor:default!important;
    box-shadow:none!important;
}

.m-char-export-btn.is-done{
    background:#7083DF!important;
    box-shadow:0 4px 12px rgba(112,131,223,.18)!important;
}


/* V5.3.1 防卡死：失败后按钮恢复可点 */
.m-char-export-btn:not(.is-loading):not(.is-done){
    cursor:pointer!important;
}


/* V5.3.2 保存成功 / 已保存过：1秒自动消失轻提示 */
.dd3-toast{
    position:fixed!important;
    left:50%!important;
    top:76px!important;
    transform:translateX(-50%) translateY(-8px)!important;
    z-index:2147483647!important;
    min-width:132px!important;
    max-width:280px!important;
    padding:10px 16px!important;
    border-radius:999px!important;
    background:rgba(26,26,64,.92)!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:800!important;
    line-height:1.4!important;
    text-align:center!important;
    box-shadow:0 10px 30px rgba(5,0,56,.18)!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:opacity .18s ease, transform .18s ease!important;
}

.dd3-toast.show{
    opacity:1!important;
    transform:translateX(-50%) translateY(0)!important;
}

.m-char-export-btn.is-done{
    cursor:pointer!important;
}


/* V5.3.3 覆盖：人物图谱保存轻提示，不使用浏览器原生弹窗 */
.dd3-toast{
    position:fixed!important;
    left:50%!important;
    top:74px!important;
    transform:translateX(-50%) translateY(-6px) scale(.98)!important;
    z-index:2147483647!important;
    min-width:auto!important;
    max-width:240px!important;
    padding:8px 14px!important;
    border-radius:999px!important;
    background:rgba(45,184,138,.96)!important;
    border:1px solid rgba(198,239,233,.95)!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.35!important;
    text-align:center!important;
    box-shadow:0 8px 22px rgba(45,184,138,.20)!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:opacity .16s ease, transform .16s ease!important;
}

.dd3-toast.show{
    opacity:1!important;
    transform:translateX(-50%) translateY(0) scale(1)!important;
}


/* =========================================================
 * V5.3.4 人物卡标题优化
 * - 删除左侧性别色块
 * - 标题一行：姓名大字 + 角色定位小字
 * ========================================================= */
.m-char-asset-top-v534{
    align-items:flex-start!important;
    gap:0!important;
    margin-bottom:10px!important;
}

.m-char-asset-title-v534{
    display:flex!important;
    align-items:baseline!important;
    gap:10px!important;
    flex-wrap:wrap!important;
}

.m-char-asset-title-v534 strong{
    order:1!important;
    font-size:20px!important;
    font-weight:900!important;
    line-height:1.25!important;
    color:#050038!important;
    letter-spacing:-.02em!important;
}

.m-char-asset-title-v534 span{
    order:2!important;
    display:inline-flex!important;
    align-items:center!important;
    padding:2px 9px!important;
    min-height:24px!important;
    border-radius:999px!important;
    background:#E8FAF7!important;
    border:1px solid #C6EFE9!important;
    color:#0F6E56!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.35!important;
}

.m-char-asset-top-v534 .m-char-asset-tier{
    margin-top:6px!important;
    font-size:13px!important;
    font-weight:800!important;
    color:#6B6B9A!important;
}

/* =========================================================
 * V1.6 爆点设计提炼 2.0：通用观众反馈机制卡
 * - 展开前：机制速览，给编剧快速拿走公式和位置
 * - 展开后：爆点拆招工作台，提供节奏地图与机制拆解
 * ========================================================= */
.d3-card-triggers .d3-trigger-summary{
    font-size:13px!important;
    font-weight:500!important;
    line-height:1.7!important;
    color:#6B6B9A!important;
    background:#F8F9FC!important;
    border:1px solid #EEF0F7!important;
    border-radius:14px!important;
    padding:10px 12px!important;
    margin-bottom:12px!important;
}

.d3-trigger-grid-v16{
    grid-template-columns:repeat(auto-fit,minmax(172px,1fr))!important;
    gap:10px!important;
}

.d3-trigger-mechanism-card{
    padding:13px 14px!important;
    gap:7px!important;
}

.d3-trigger-card-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
}

.d3-trigger-index{
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.3!important;
}

.d3-trigger-mechanism-card .d3-trigger-type{
    font-size:11px!important;
    font-weight:700!important;
    color:#8A8FA8!important;
    background:#FFFFFF!important;
    border:1px solid #EEF0F7!important;
    border-radius:999px!important;
    padding:3px 8px!important;
    white-space:nowrap!important;
}

.d3-trigger-mechanism-card .d3-trigger-title{
    font-size:17px!important;
    font-weight:800!important;
    line-height:1.35!important;
    color:#09092B!important;
}

.d3-trigger-mechanism-card .d3-trigger-desc{
    min-height:44px!important;
    font-size:13px!important;
    font-weight:400!important;
    line-height:1.65!important;
    color:#6B6B9A!important;
}

.d3-trigger-formula,
.d3-trigger-position{
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.55!important;
    color:#0F6E56!important;
    background:#E8FAF7!important;
    border:1px solid #C6EFE9!important;
    border-radius:10px!important;
    padding:7px 9px!important;
}

.d3-trigger-position{
    margin-top:auto!important;
    color:#6B6B9A!important;
    background:#FFFFFF!important;
    border-color:#EEF0F7!important;
}

.m-trigger-workbench{
    display:flex!important;
    flex-direction:column!important;
    gap:14px!important;
}

.m-trigger-summary-box,
.m-trigger-takeaway{
    background:#F8F9FC!important;
    border:1px solid #EEF0F7!important;
    border-radius:16px!important;
    padding:16px 18px!important;
}

.m-trigger-summary-k,
.m-trigger-takeaway-k{
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.5!important;
    color:#09092B!important;
    margin-bottom:6px!important;
}

.m-trigger-summary-v,
.m-trigger-takeaway-v{
    font-size:14px!important;
    font-weight:400!important;
    line-height:1.8!important;
    color:#6B6B9A!important;
}

.m-trigger-map{
    overflow:hidden!important;
    border:1px solid #E7EAF3!important;
    border-radius:16px!important;
    background:#FFFFFF!important;
}

.m-trigger-map-head,
.m-trigger-map-row{
    display:grid!important;
    grid-template-columns:88px 118px 1fr 1fr 1fr!important;
    gap:10px!important;
    align-items:start!important;
}

.m-trigger-map-head{
    background:#F4F6FB!important;
    border-bottom:1px solid #E7EAF3!important;
    padding:12px 14px!important;
}

.m-trigger-map-head div{
    font-size:12px!important;
    font-weight:800!important;
    color:#09092B!important;
    line-height:1.4!important;
}

.m-trigger-map-row{
    padding:12px 14px!important;
    border-bottom:1px solid #F0F2F8!important;
}

.m-trigger-map-row:last-child{
    border-bottom:none!important;
}

.m-trigger-map-row div{
    font-size:13px!important;
    font-weight:400!important;
    line-height:1.65!important;
    color:#6B6B9A!important;
}

.m-trigger-map-row .m-trigger-map-pos{
    font-weight:800!important;
    color:#0F6E56!important;
}

.m-trigger-card-list{
    display:flex!important;
    flex-direction:column!important;
    gap:14px!important;
}

.m-tr-mechanism{
    background:#FFFFFF!important;
    border-left-width:4px!important;
}

.m-tr-topline{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin-bottom:8px!important;
}

.m-tr-position{
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.4!important;
    color:#0F6E56!important;
    background:#E8FAF7!important;
    border:1px solid #C6EFE9!important;
    border-radius:999px!important;
    padding:5px 10px!important;
    white-space:nowrap!important;
}

.m-tr-grid-v16{
    grid-template-columns:1fr 1fr!important;
}

.m-tr-grid-v16 .m-tr-info-wide,
.m-tr-grid-v16 .m-tr-info-formula{
    grid-column:span 2!important;
}

.m-tr-grid-v16 .m-tr-info-formula{
    background:#E8FAF7!important;
    border-color:#C6EFE9!important;
}

.m-trigger-takeaway{
    background:#E8FAF7!important;
    border-color:#C6EFE9!important;
}

/* 展开全部集之后：只保留右侧状态按钮，不再显示左侧说明文字 */
.m-struct-member-tip.unlocked{
    background:#F8F9FC!important;
    border-color:#EEF0F7!important;
    justify-content:flex-end!important;
    align-items:center!important;
}

.m-struct-member-tip.unlocked > div,
.m-struct-member-tip.unlocked .m-struct-member-title,
.m-struct-member-tip.unlocked .m-struct-member-text{
    display:none!important;
}

@media(max-width:960px){
    .m-trigger-map-head,
    .m-trigger-map-row{
        grid-template-columns:1fr!important;
    }
    .m-trigger-map-head{
        display:none!important;
    }
    .m-trigger-map-row{
        gap:4px!important;
    }
}

@media(max-width:760px){
    .d3-trigger-grid-v16{
        grid-template-columns:1fr!important;
    }
    .m-tr-topline{
        align-items:flex-start!important;
        flex-direction:column!important;
    }
    .m-tr-position{
        white-space:normal!important;
    }
    .m-tr-grid-v16{
        grid-template-columns:1fr!important;
    }
    .m-tr-grid-v16 .m-tr-info-wide,
    .m-tr-grid-v16 .m-tr-info-formula{
        grid-column:auto!important;
    }
}

/* =========================================================
 * V1.7 爆点设计提炼：展开前极简速览 + 展开后紧凑全集清单
 * ========================================================= */
.d3-card-triggers .d3-trigger-summary-compact{
    padding:10px 12px!important;
    margin-bottom:10px!important;
    font-size:13px!important;
    line-height:1.65!important;
}

.d3-trigger-chipline{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    margin-top:2px!important;
}

.d3-trigger-chip{
    display:inline-flex!important;
    align-items:center!important;
    min-height:28px!important;
    padding:5px 10px!important;
    border-radius:999px!important;
    background:#FFFFFF!important;
    border:1px solid #EEF0F7!important;
    color:#1A1A40!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.4!important;
    box-shadow:0 1px 2px rgba(5,0,56,.04)!important;
}

.d3-trigger-chip::before{
    content:"";
    width:6px!important;
    height:6px!important;
    border-radius:999px!important;
    background:var(--trigger-chip-color,#2DB88A)!important;
    margin-right:6px!important;
    flex-shrink:0!important;
}

.m-trigger-workbench-v17{
    gap:12px!important;
}

.m-trigger-summary-box-v17{
    padding:12px 14px!important;
    border-radius:14px!important;
}

.m-trigger-summary-box-v17 .m-trigger-summary-v{
    font-size:13px!important;
    line-height:1.7!important;
}

.m-trigger-mechanism-strip{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
}

.m-trigger-mechanism-pill{
    display:inline-flex!important;
    align-items:center!important;
    min-height:28px!important;
    padding:5px 10px!important;
    border-radius:999px!important;
    background:#F8F9FC!important;
    border:1px solid #EEF0F7!important;
    color:#1A1A40!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.4!important;
}

.m-trigger-mechanism-pill::before{
    content:"";
    width:6px!important;
    height:6px!important;
    border-radius:999px!important;
    background:var(--trigger-pill-color,#2DB88A)!important;
    margin-right:6px!important;
    flex-shrink:0!important;
}

.m-trigger-episode-section{
    border:1px solid #E7EAF3!important;
    border-radius:16px!important;
    background:#FFFFFF!important;
    overflow:hidden!important;
}

.m-trigger-section-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:12px 14px!important;
    background:#F8F9FC!important;
    border-bottom:1px solid #EEF0F7!important;
}

.m-trigger-section-title{
    font-size:14px!important;
    font-weight:900!important;
    line-height:1.45!important;
    color:#09092B!important;
}

.m-trigger-section-sub{
    margin-top:2px!important;
    font-size:12px!important;
    font-weight:400!important;
    line-height:1.55!important;
    color:#6B6B9A!important;
}

.m-trigger-episode-list{
    display:flex!important;
    flex-direction:column!important;
    background:#FFFFFF!important;
}

.m-trigger-episode-row{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    align-items:center!important;
    gap:10px!important;
    padding:9px 14px!important;
    border-bottom:1px solid #F0F2F8!important;
    background:#FFFFFF!important;
}

.m-trigger-episode-row:last-child{
    border-bottom:none!important;
}

.m-trigger-ep-no{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:42px!important;
    height:26px!important;
    border-radius:9px!important;
    background:#E8FAF7!important;
    color:#0F6E56!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1!important;
}

.m-trigger-ep-main{
    min-width:0!important;
}

.m-trigger-ep-title-row{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
}

.m-trigger-ep-mechanism{
    flex-shrink:0!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1.45!important;
    color:#09092B!important;
}

.m-trigger-ep-beat{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:13px!important;
    font-weight:400!important;
    line-height:1.45!important;
    color:#6B6B9A!important;
}

.m-trigger-ep-meta{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px 14px!important;
    margin-top:3px!important;
}

.m-trigger-ep-meta span{
    font-size:12px!important;
    font-weight:500!important;
    line-height:1.45!important;
    color:#8A8FA8!important;
}

.m-trigger-member-tip{
    margin:0!important;
    border-left:none!important;
    border-right:none!important;
    border-bottom:none!important;
    border-radius:0!important;
    padding:12px 14px!important;
}

.m-trigger-takeaway-v17{
    padding:12px 14px!important;
    border-radius:14px!important;
}

.m-trigger-takeaway-v17 .m-trigger-takeaway-v{
    font-size:13px!important;
    line-height:1.7!important;
}

@media(max-width:760px){
    .m-trigger-episode-row{
        grid-template-columns:1fr!important;
        align-items:flex-start!important;
    }
    .m-trigger-ep-title-row{
        align-items:flex-start!important;
        flex-direction:column!important;
        gap:3px!important;
    }
    .m-trigger-ep-beat{
        white-space:normal!important;
    }
}

/* V1.9 首集3分钟留人拆解：与爆点节奏模块明确分工 */
.d3-opening-retention-summary{
    font-size:14px!important;
    line-height:1.65!important;
    color:#4B5563!important;
    background:#F8FAFC!important;
    border:1px solid #EEF2F7!important;
    border-radius:14px!important;
    padding:12px 14px!important;
}
.d3-opening-retention-steps{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:10px!important;
}
.d3-opening-retention-step{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    padding:9px 10px!important;
    border-radius:12px!important;
    background:#fff!important;
    border:1px solid #EDF1F6!important;
    border-left:3px solid var(--opening-step-color,#2DB88A)!important;
}
.d3-opening-retention-time{
    flex-shrink:0!important;
    font-size:11px!important;
    font-weight:700!important;
    color:#8A92A6!important;
    font-family:'DM Mono',ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;
}
.d3-opening-retention-role{
    min-width:0!important;
    font-size:12px!important;
    font-weight:700!important;
    color:#20243A!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

.m-opening-retention-wrap{display:flex!important;flex-direction:column!important;gap:14px!important;}
.m-opening-retention-intro{
    background:linear-gradient(135deg,#F5FBF9 0%,#F8FAFC 100%)!important;
    border:1px solid #DDEEE8!important;
    border-radius:18px!important;
    padding:14px 16px!important;
}
.m-opening-retention-k{font-size:12px!important;font-weight:800!important;color:#0F6E56!important;margin-bottom:4px!important;}
.m-opening-retention-v{font-size:14px!important;line-height:1.7!important;color:#374151!important;}
.m-opening-retention-list{display:flex!important;flex-direction:column!important;gap:10px!important;}
.m-opening-retention-row{
    display:grid!important;
    grid-template-columns:74px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:start!important;
    background:#fff!important;
    border:1px solid #EEF1F6!important;
    border-left:3px solid var(--opening-row-color,#2DB88A)!important;
    border-radius:14px!important;
    padding:12px 14px!important;
}
.m-opening-retention-row .m-opening-retention-time{
    width:auto!important;
    color:#6B7280!important;
    font-size:12px!important;
    line-height:1.6!important;
    padding-top:1px!important;
}
.m-opening-retention-body{min-width:0!important;display:flex!important;flex-direction:column!important;gap:5px!important;}
.m-opening-retention-head{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;}
.m-opening-retention-row .m-opening-retention-role{
    flex-shrink:0!important;
    font-size:12px!important;
    color:#0F6E56!important;
    background:#EAF8F3!important;
    border:1px solid #CFEDE3!important;
    border-radius:999px!important;
    padding:2px 8px!important;
}
.m-opening-retention-title{font-size:15px!important;font-weight:800!important;color:#1F2433!important;line-height:1.45!important;}
.m-opening-retention-action{font-size:13px!important;line-height:1.65!important;color:#4B5563!important;}
.m-opening-retention-question{font-size:12px!important;line-height:1.55!important;color:#7C8496!important;}
.m-opening-checklist{
    background:#F8F9FC!important;
    border:1px solid #EEF1F6!important;
    border-radius:16px!important;
    padding:14px 16px!important;
}
.m-opening-checklist-title{font-size:13px!important;font-weight:800!important;color:#20243A!important;margin-bottom:10px!important;}
.m-opening-checklist-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 12px!important;}
.m-opening-checklist-grid div{font-size:13px!important;line-height:1.55!important;color:#5D6475!important;}
@media (max-width: 900px){
    .d3-opening-retention-steps,.m-opening-checklist-grid{grid-template-columns:1fr!important;}
    .m-opening-retention-row{grid-template-columns:1fr!important;}
}

/* =========================================================
 * V2.0 首集3分钟留人拆解：展开前极简入口
 * - 单剧页展开前只保留 4 个步骤条
 * - 删除长说明与留人链路，减少高度，一目了然
 * ========================================================= */
.d3-opening-retention-summary{
    display:none!important;
}
.d3-retention-goal,
.d3-retention-goal *,
.d3-retention-label,
.d3-retention-line{
    display:none!important;
}
.d3-opening-retention-steps{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px 12px!important;
    margin-top:4px!important;
}
.d3-opening-retention-step{
    min-height:56px!important;
    padding:10px 14px!important;
    border-radius:16px!important;
    background:#FFFFFF!important;
    border:1px solid #E9EDF4!important;
    border-left:4px solid var(--opening-step-color,#2DB88A)!important;
    box-shadow:none!important;
}
.d3-opening-retention-time{
    min-width:64px!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.4!important;
    color:#8A92A6!important;
}
.d3-opening-retention-role{
    font-size:14px!important;
    font-weight:800!important;
    line-height:1.45!important;
    color:#1F2433!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
}
@media (max-width: 760px){
    .d3-opening-retention-steps{
        grid-template-columns:1fr!important;
    }
}

/* =========================================================
 * V2.3.6 单剧页顶栏统一固定
 * 顶栏固定在中间主内容栏顶部，不横跨右栏；滚动只发生在 .d3-scroll。
 * ========================================================= */
#dd3-app .d3-row{
    overflow:hidden!important;
}
#dd3-app .d3-main{
    display:flex!important;
    flex-direction:column!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
}
#dd3-app .d3-main > .d3-top{
    flex-shrink:0!important;
    width:auto!important;
    margin:0 0 12px 0!important;
    position:relative!important;
    z-index:70!important;
}
#dd3-app .d3-main > .d3-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-top:0!important;
}

/* =========================================================
 * V2.3.8 单剧页顶栏内容区对齐
 * - 顶栏已位于 .d3-main 内部，本版只修正它的内容沟槽。
 * - 左右边界与 .d3-scroll 内的内容卡片一致。
 * - 不再横向铺满整个主栏，避免贴近右栏。
 * ========================================================= */
#dd3-app .d3-main > .d3-top{
    margin:16px 12px 12px 16px!important;
    width:auto!important;
    max-width:none!important;
    box-sizing:border-box!important;
}

#dd3-app .d3-main > .d3-scroll{
    padding-left:16px!important;
    padding-right:12px!important;
    padding-top:0!important;
}

@media(max-width:760px){
    #dd3-app .d3-main > .d3-top{
        margin:12px 12px 10px 12px!important;
    }
    #dd3-app .d3-main > .d3-scroll{
        padding-left:12px!important;
        padding-right:12px!important;
    }
}

/* V2.3.9 结构骨架保存按钮状态 */
.d3-saveblk.is-loading,
.d3-saveblk:disabled{
    opacity:.72;
    cursor:wait;
    transform:none!important;
}


/* V2.3.10：单剧页保存故事灵感按钮 */
.d3-hero-v46 .d3-hero-titleline-with-save{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:16px!important;
}
.d3-hero-v46 .d3-hero-titlecopy{
    min-width:0!important;
    flex:1!important;
}
.d3-story-idea-save{
    flex:0 0 auto;
    height:36px;
    padding:0 16px;
    border-radius:999px;
    border:1px solid rgba(45,184,138,.24);
    background:#e8faf7;
    color:#0f6e56;
    font-size:13px;
    font-weight:800;
    line-height:1;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:.18s ease;
    box-shadow:0 1px 3px rgba(5,0,56,.05);
}
.d3-story-idea-save:hover{
    background:#dff7f2;
    border-color:rgba(45,184,138,.38);
    transform:translateY(-1px);
}
.d3-story-idea-save.saved,
.d3-story-idea-save:disabled{
    background:#f4f5fb;
    color:#8a8fa8;
    border-color:#e8eaf0;
    cursor:default;
    transform:none;
}
.d3-story-idea-save.is-loading{
    opacity:.78;
}
@media (max-width: 860px){
    .d3-hero-v46 .d3-hero-titleline-with-save{
        flex-direction:column!important;
        align-items:flex-start!important;
    }
}
