
:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --primary:#3157f6;
  --primary2:#6b48ff;
  --soft:#eef2ff;
  --green:#0f9f6e;
  --amber:#d97706;
  --danger:#dc2626;
  --shadow:0 18px 60px rgba(15,23,42,.09);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.nav{
  position:sticky;top:0;z-index:50;
  backdrop-filter:blur(18px);
  background:rgba(246,248,252,.82);
  border-bottom:1px solid rgba(226,232,240,.8);
}
.nav-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.02em}
.logo{
  width:34px;height:34px;border-radius:10px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  position:relative;box-shadow:0 8px 22px rgba(49,87,246,.25);
}
.logo:before,.logo:after{content:"";position:absolute;border:2px solid white;border-radius:5px}
.logo:before{inset:8px 11px 8px 7px}
.logo:after{width:8px;height:8px;right:6px;top:6px;background:white;border:0;border-radius:50%}
.nav-links{display:flex;align-items:center;gap:26px;font-size:14px;color:#334155}
.nav-links a:hover{color:var(--primary)}
.nav-actions{display:flex;align-items:center;gap:10px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:12px;padding:11px 18px;font-weight:700;cursor:pointer;
  transition:.22s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-ghost{background:transparent;color:#334155}
.btn-primary{color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 10px 24px rgba(49,87,246,.25)}
.btn-light{background:#fff;border:1px solid var(--line)}
.hero{
  position:relative;overflow:hidden;
  padding:88px 0 52px;
}
.hero:before{
  content:"";position:absolute;inset:-120px auto auto 52%;
  width:660px;height:660px;border-radius:50%;
  background:radial-gradient(circle,rgba(99,102,241,.20),rgba(99,102,241,0) 66%);
  pointer-events:none;
}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:58px;align-items:center}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;
  color:#4338ca;background:#eef2ff;border:1px solid #dfe3ff;font-size:13px;font-weight:700
}
.dot{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.1)}
h1{font-size:58px;line-height:1.08;margin:20px 0 20px;letter-spacing:-.045em}
.gradient{background:linear-gradient(90deg,#3157f6,#7747ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{font-size:18px;color:#536075;max-width:680px;margin:0 0 30px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-note{margin-top:18px;color:#64748b;font-size:13px;display:flex;gap:18px;flex-wrap:wrap}
.hero-note span:before{content:"✓";color:var(--green);font-weight:900;margin-right:6px}
.mock{
  background:rgba(255,255,255,.90);border:1px solid rgba(226,232,240,.9);border-radius:26px;
  box-shadow:0 28px 90px rgba(30,41,59,.14);overflow:hidden;transform:rotate(.8deg)
}
.mock-top{height:48px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 16px;gap:7px;background:#fbfcff}
.mock-top i{width:8px;height:8px;border-radius:50%;background:#cbd5e1}
.mock-body{padding:20px}
.mini-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.mini-title{font-weight:800}
.mini-badge{font-size:11px;padding:4px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:800}
.searchbox{display:flex;gap:10px;background:#f8fafc;border:1px solid var(--line);padding:10px;border-radius:14px;margin-bottom:14px}
.searchbox input{flex:1;border:0;background:transparent;outline:none;color:#475569}
.searchbox button{border:0;background:var(--primary);color:#fff;border-radius:10px;padding:8px 12px;font-weight:700}
.topic{border:1px solid var(--line);border-radius:15px;padding:14px;margin-top:10px;background:#fff}
.topic-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.topic-title{font-weight:800;font-size:14px}
.score{font-weight:900;color:var(--primary);font-size:14px}
.bars{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.bar{font-size:10px;color:#64748b}
.barline{height:5px;border-radius:999px;background:#eef2f7;margin-top:5px;overflow:hidden}
.barline b{display:block;height:100%;background:linear-gradient(90deg,#3157f6,#8b5cf6);border-radius:999px}
.stats{padding:36px 0}
.stats-row{
  display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);
  border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.04)
}
.stat{padding:22px;text-align:center;border-right:1px solid var(--line)}
.stat:last-child{border-right:0}
.stat strong{display:block;font-size:25px;letter-spacing:-.02em}
.stat span{font-size:13px;color:var(--muted)}
section{padding:84px 0}
.section-head{display:flex;justify-content:space-between;gap:34px;align-items:flex-end;margin-bottom:34px}
.kicker{color:var(--primary);font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
h2{font-size:38px;line-height:1.2;margin:7px 0 0;letter-spacing:-.035em}
.section-desc{max-width:500px;color:var(--muted)}
.flow{
  display:grid;grid-template-columns:repeat(7,1fr);align-items:center;gap:8px;
  padding:22px;background:#fff;border:1px solid var(--line);border-radius:20px
}
.flow-item{padding:16px 12px;border-radius:14px;background:#f8fafc;text-align:center;font-size:13px;font-weight:800}
.flow-item.active{color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2))}
.arrow{text-align:center;color:#94a3b8;font-weight:900}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:0 8px 26px rgba(15,23,42,.04)
}
.icon{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:var(--soft);color:var(--primary);font-weight:900;font-size:20px;margin-bottom:18px
}
.card h3{font-size:21px;margin:0 0 10px}
.card p{color:var(--muted);font-size:14px;margin:0 0 16px}
.list{margin:0;padding:0;list-style:none}
.list li{padding:7px 0;font-size:13px;color:#475569}
.list li:before{content:"✓";font-weight:900;color:var(--green);margin-right:8px}
.feature-main{
  margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:18px
}
.feature-panel{
  background:linear-gradient(145deg,#111827,#172554);
  color:#fff;border-radius:26px;padding:32px;min-height:420px;position:relative;overflow:hidden
}
.feature-panel:after{
  content:"";position:absolute;width:290px;height:290px;border-radius:50%;right:-80px;bottom:-100px;
  background:radial-gradient(circle,rgba(129,140,248,.45),rgba(129,140,248,0) 70%)
}
.feature-panel p{color:#cbd5e1;max-width:520px}
.doc{
  margin-top:28px;background:#fff;color:#111827;border-radius:16px;padding:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.24);position:relative;z-index:2
}
.doc-head{display:flex;justify-content:space-between;border-bottom:1px solid #e5e7eb;padding-bottom:11px;font-size:12px}
.doc-lines{padding:12px 0}
.doc-lines i{display:block;height:7px;background:#e5e7eb;border-radius:10px;margin:9px 0}
.doc-lines i:nth-child(2){width:84%}.doc-lines i:nth-child(3){width:72%}.doc-lines i:nth-child(4){width:90%}
.side-stack{display:grid;grid-template-rows:1fr 1fr;gap:18px}
.side-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:28px}
.side-card strong{font-size:22px}
.side-card p{font-size:14px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.chip{padding:7px 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:700}
.wizard-shell{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 14px 44px rgba(15,23,42,.06);overflow:hidden}
.wizard-head{padding:22px 26px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(180deg,#fff,#fbfcff)}
.wizard-head-copy h3{margin:0 0 4px;font-size:19px;letter-spacing:-.02em}.wizard-head-copy p{margin:0;color:#94a3b8;font-size:13px}
.wizard-progress{display:flex;align-items:center;gap:8px}.progress-dot{width:8px;height:8px;border-radius:50%;background:#dbe1ea;transition:.2s}.progress-dot.on{width:26px;border-radius:999px;background:linear-gradient(90deg,#4f46e5,#8b5cf6)}
.wizard-body{display:grid;grid-template-columns:210px 1fr;min-height:590px}
.wizard-rail{padding:26px 20px;border-right:1px solid #edf0f5;background:#fafbfe}
.rail-label{font-size:11px;font-weight:900;color:#94a3b8;letter-spacing:.12em;margin-bottom:16px}
.rail-step{display:flex;align-items:flex-start;gap:11px;padding:12px 10px;border-radius:13px;color:#94a3b8;margin-bottom:6px}
.rail-step .rail-num{width:28px;height:28px;border-radius:9px;background:#eef1f5;display:grid;place-items:center;font-size:11px;font-weight:900;flex:0 0 auto}
.rail-step b{display:block;font-size:13px;color:inherit;margin-top:2px}.rail-step small{display:block;font-size:11px;font-weight:600;margin-top:2px;line-height:1.4}
.rail-step.active{background:#eef2ff;color:#4338ca}.rail-step.active .rail-num{background:#4f46e5;color:#fff}.rail-step.done{color:#475569}.rail-step.done .rail-num{background:#dcfce7;color:#15803d}
.wizard-main{padding:30px 32px;position:relative;overflow:hidden}
.stage{display:none;animation:stageIn .28s ease}.stage.active{display:block}@keyframes stageIn{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
.stage-kicker{font-size:12px;color:#6366f1;font-weight:900;margin-bottom:7px}.stage h3{font-size:26px;line-height:1.25;margin:0 0 8px;letter-spacing:-.035em}.stage-intro{color:#64748b;margin:0 0 26px;font-size:14px}
.question{margin-bottom:24px}.question-title{font-size:14px;font-weight:900;margin-bottom:11px;color:#0f172a}.question-hint{font-size:11px;color:#94a3b8;font-weight:600;margin-left:8px}
.choice-row{display:flex;gap:10px;flex-wrap:wrap}.choice{border:1px solid #e4e8ef;background:#fff;border-radius:12px;padding:11px 15px;color:#475569;font-size:13px;font-weight:800;cursor:pointer;transition:.18s}.choice:hover{border-color:#c7d2fe;background:#fafaff}.choice.active{border-color:#818cf8;background:#eef2ff;color:#3730a3;box-shadow:inset 0 0 0 1px rgba(99,102,241,.08)}
.intent-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.intent-card{border:1px solid #e6e9ef;border-radius:16px;padding:17px 18px;cursor:pointer;transition:.18s;background:#fff}.intent-card:hover{transform:translateY(-1px);border-color:#c7d2fe}.intent-card.active{background:linear-gradient(145deg,#f5f3ff,#eef2ff);border-color:#a5b4fc;box-shadow:0 10px 26px rgba(79,70,229,.08)}
.intent-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.intent-icon{width:38px;height:38px;border-radius:11px;background:#f3f4f6;display:grid;place-items:center;font-weight:900;color:#475569}.intent-card.active .intent-icon{background:#4f46e5;color:#fff}.intent-card strong{font-size:15px}.intent-card p{font-size:12px;color:#94a3b8;margin:8px 0 0;line-height:1.55}.intent-radio{width:17px;height:17px;border:2px solid #cbd5e1;border-radius:50%;position:relative}.intent-card.active .intent-radio{border-color:#6366f1}.intent-card.active .intent-radio:after{content:"";position:absolute;inset:3px;background:#6366f1;border-radius:50%}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-field{border:1px solid #e7eaf0;border-radius:15px;padding:13px 14px;background:#fbfcfe}.profile-field.wide{grid-column:1/-1}.profile-field label{display:block;font-size:12px;color:#64748b;font-weight:800;margin-bottom:7px}.profile-field select,.profile-field input{width:100%;border:0;outline:0;background:transparent;color:#111827;font-size:14px;font-weight:800}
.profile-field select:invalid{color:#94a3b8}.profile-field select option{color:#111827}.profile-field input::placeholder{color:#94a3b8;font-weight:600}.project-choice-row{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}@media(max-width:760px){.profile-grid{grid-template-columns:1fr}.profile-field.wide{grid-column:auto}.project-choice-row{grid-template-columns:1fr 1fr}}\n.wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}.wizard-actions .left-note{font-size:11px;color:#94a3b8}.wizard-actions-right{display:flex;gap:9px}.btn-step{border:0;border-radius:12px;padding:11px 17px;font-weight:900;cursor:pointer}.btn-next{color:#fff;background:#111827;box-shadow:0 8px 18px rgba(15,23,42,.12)}.btn-back{background:#f8fafc;color:#475569;border:1px solid #e5e7eb}
.ai-thinking{display:none;align-items:center;gap:10px;padding:14px 16px;border-radius:14px;background:#f8fafc;color:#475569;font-size:13px;margin-bottom:18px}.ai-thinking.show{display:flex}.thinking-dots{display:flex;gap:4px}.thinking-dots i{width:5px;height:5px;border-radius:50%;background:#6366f1;animation:bounce 1s infinite}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,70%,100%{transform:translateY(0);opacity:.4}35%{transform:translateY(-4px);opacity:1}}
.match-list{display:grid;gap:12px}.match-card{border:1px solid #e5e7eb;border-radius:17px;padding:16px;cursor:pointer;background:#fff;transition:.18s}.match-card:hover{border-color:#c7d2fe}.match-card.active{border-color:#818cf8;background:#fafaff;box-shadow:0 8px 24px rgba(79,70,229,.08)}.match-top{display:flex;justify-content:space-between;gap:14px}.match-title{font-size:15px;font-weight:900}.match-score{font-size:12px;font-weight:900;color:#4f46e5;background:#eef2ff;border-radius:999px;padding:5px 9px;white-space:nowrap}.match-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.match-meta span{font-size:11px;padding:5px 8px;border-radius:8px;background:#f8fafc;color:#64748b;font-weight:700}.match-reason{margin-top:10px;font-size:12px;color:#94a3b8;line-height:1.55}
.selected-plan{display:flex;justify-content:space-between;gap:14px;padding:16px 17px;border-radius:16px;background:#f8fafc;border:1px solid #e8ebf0;margin-bottom:18px}.selected-plan b{font-size:14px}.selected-plan p{margin:3px 0 0;font-size:12px;color:#64748b}.change-link{border:0;background:transparent;color:#4f46e5;font-weight:900;font-size:12px;cursor:pointer;white-space:nowrap}
.topic-input-wrap{border:1px solid #dfe3ea;border-radius:16px;background:#fff;padding:15px 16px;margin-bottom:14px}.topic-input-wrap label{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#64748b;font-weight:800;margin-bottom:9px}.topic-input-wrap input{width:100%;border:0;outline:0;font-size:17px;font-weight:800;color:#111827;padding:0;background:transparent}.topic-input-wrap small{color:#94a3b8;font-weight:600}.keyword-suggest{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.keyword-suggest button{border:1px solid #e5e7eb;background:#fff;color:#64748b;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:800;cursor:pointer}.keyword-suggest button:hover{border-color:#c7d2fe;color:#4338ca}
.result-stage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.result-stage-head p{margin:0;color:#94a3b8;font-size:12px}.result-toolbar{display:flex;gap:8px}.tool-btn{border:1px solid #e5e7eb;background:#fff;color:#64748b;border-radius:10px;padding:8px 10px;font-size:11px;font-weight:800;cursor:pointer}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.topic-result{border:1px solid #e5e7eb;border-radius:17px;padding:17px;background:#fff;min-height:235px;display:flex;flex-direction:column;transition:.18s}.topic-result:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.07)}.topic-result .rank{font-size:10px;color:#94a3b8;font-weight:900;letter-spacing:.08em}.topic-result h4{font-size:14px;line-height:1.55;margin:8px 0 10px}.topic-result p{font-size:11px;color:#94a3b8;margin:0 0 14px}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:auto}.metric{background:#f8fafc;border-radius:9px;padding:8px 6px;text-align:center}.metric b{display:block;font-size:13px;color:#0f172a}.metric span{font-size:9px;color:#94a3b8}.topic-footer{display:flex;justify-content:space-between;align-items:center;margin-top:13px;padding-top:12px;border-top:1px dashed #e5e7eb}.risk-low{font-size:10px;color:#15803d;font-weight:900}.detail-link{font-size:10px;color:#4f46e5;font-weight:900;cursor:pointer}
@media(max-width:960px){.wizard-body{grid-template-columns:1fr}.wizard-rail{display:flex;gap:8px;border-right:0;border-bottom:1px solid #edf0f5;overflow:auto;padding:12px}.rail-label{display:none}.rail-step{min-width:160px;margin:0}.result-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.wizard-main{padding:22px 18px}.wizard-head{padding:18px}.intent-cards,.result-grid{grid-template-columns:1fr}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-field{border:1px solid #e7eaf0;border-radius:15px;padding:13px 14px;background:#fbfcfe}.profile-field.wide{grid-column:1/-1}.profile-field label{display:block;font-size:12px;color:#64748b;font-weight:800;margin-bottom:7px}.profile-field select,.profile-field input{width:100%;border:0;outline:0;background:transparent;color:#111827;font-size:14px;font-weight:800}.project-choice-row{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}@media(max-width:760px){.profile-grid{grid-template-columns:1fr}.profile-field.wide{grid-column:auto}.project-choice-row{grid-template-columns:1fr 1fr}}\n.wizard-actions{align-items:flex-end}.wizard-actions .left-note{display:none}.stage h3{font-size:22px}.rail-step small{display:none}.rail-step{min-width:auto;flex:1}.wizard-rail{padding:8px}.topic-input-wrap input{font-size:15px}} 

/* ===== V6: five-step topic-selection assistant ===== */
.wizard-body{min-height:670px}
.wizard-progress .progress-dot{transition:.25s}
.stage2-layout{display:grid;grid-template-columns:.88fr 1.12fr;gap:18px;align-items:start}
.reference-panel{border:1px solid #e6e9ef;border-radius:18px;background:#fbfcff;overflow:hidden;min-height:430px}
.reference-head{padding:15px 16px 12px;border-bottom:1px solid #e8ebf1;background:#fff}
.reference-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.reference-head h4{margin:0;font-size:14px}
.reference-count{font-size:10px;font-weight:900;color:#4f46e5;background:#eef2ff;padding:4px 8px;border-radius:999px}
.reference-head p{margin:5px 0 0;color:#94a3b8;font-size:11px}
.reference-tabs{display:flex;gap:6px;margin-top:11px}
.ref-tab{border:1px solid #e5e7eb;background:#fff;color:#64748b;padding:6px 9px;border-radius:9px;font-size:10px;font-weight:900;cursor:pointer}
.ref-tab.active{border-color:#c7d2fe;background:#eef2ff;color:#4338ca}
.reference-list{padding:10px;display:grid;gap:8px;max-height:510px;overflow:auto}
.ref-item{background:#fff;border:1px solid #e8ebf0;border-radius:13px;padding:12px 13px;transition:.15s}
.ref-item:hover{border-color:#c7d2fe;transform:translateY(-1px)}
.ref-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ref-type{font-size:9px;font-weight:900;letter-spacing:.05em;padding:4px 7px;border-radius:7px}
.ref-type.project{background:#ecfdf5;color:#047857}
.ref-type.paper{background:#eff6ff;color:#1d4ed8}
.ref-year{font-size:10px;color:#94a3b8;font-weight:800}
.ref-title{font-size:12px;font-weight:900;line-height:1.55;margin:7px 0 5px;color:#1e293b}
.ref-meta{font-size:10px;color:#94a3b8;line-height:1.45}
.ref-score{margin-top:7px;font-size:10px;color:#6366f1;font-weight:800}
.match-card{position:relative}
.match-card.active:before{content:"";position:absolute;left:-1px;top:16px;bottom:16px;width:3px;background:#6366f1;border-radius:0 4px 4px 0}
.match-selection-tip{margin-top:10px;font-size:10px;color:#6366f1;font-weight:800;display:none}
.match-card.active .match-selection-tip{display:block}
.topic-result{cursor:pointer;position:relative}
.topic-result.selected{border-color:#818cf8;background:linear-gradient(180deg,#fff,#fafaff);box-shadow:0 12px 30px rgba(79,70,229,.10)}
.topic-select-mark{position:absolute;right:13px;top:13px;width:19px;height:19px;border-radius:50%;border:2px solid #cbd5e1;background:#fff}
.topic-result.selected .topic-select-mark{border-color:#6366f1}
.topic-result.selected .topic-select-mark:after{content:"";position:absolute;inset:3px;background:#6366f1;border-radius:50%}
.selection-banner{display:none;margin:16px 0 0;padding:11px 13px;border-radius:12px;background:#eef2ff;color:#4338ca;font-size:11px;font-weight:800}
.selection-banner.show{display:block}
.report-loading{display:none;align-items:center;justify-content:center;min-height:340px;text-align:center;color:#64748b}
.report-loading.show{display:flex}
.report-loading .loader{width:38px;height:38px;border-radius:50%;border:3px solid #e5e7eb;border-top-color:#6366f1;animation:spin .9s linear infinite;margin:0 auto 13px}
@keyframes spin{to{transform:rotate(360deg)}}
.report-wrap{display:none}
.report-wrap.show{display:block}
.report-hero{border:1px solid #e5e7eb;border-radius:18px;padding:20px;background:linear-gradient(145deg,#fafaff,#f8fafc);margin-bottom:14px}
.report-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.report-hero h4{font-size:18px;line-height:1.5;margin:0 0 8px}
.report-grade{flex:0 0 auto;width:62px;height:62px;border-radius:17px;background:#111827;color:#fff;display:grid;place-items:center;text-align:center}
.report-grade b{display:block;font-size:19px;line-height:1}.report-grade span{font-size:9px;color:#cbd5e1}
.report-tags{display:flex;gap:7px;flex-wrap:wrap}.report-tags span{font-size:10px;background:#fff;border:1px solid #e5e7eb;padding:5px 8px;border-radius:999px;color:#64748b;font-weight:800}
.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.report-card{border:1px solid #e5e7eb;border-radius:16px;padding:16px;background:#fff}
.report-card.wide{grid-column:1/-1}
.report-card h5{margin:0 0 9px;font-size:13px}
.report-card p{margin:0;color:#64748b;font-size:11px;line-height:1.75}
.report-points{margin:0;padding-left:18px;color:#64748b;font-size:11px;line-height:1.8}
.report-score-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.report-score{background:#fff;border:1px solid #e8ebf0;border-radius:12px;padding:10px;text-align:center}
.report-score b{display:block;font-size:16px}.report-score span{font-size:9px;color:#94a3b8}
.nav-hint{font-size:10px;color:#94a3b8;margin-right:auto}
@media(max-width:1080px){.stage2-layout{grid-template-columns:1fr}.reference-list{max-height:380px}}
@media(max-width:760px){.report-grid{grid-template-columns:1fr}.report-card.wide{grid-column:auto}.report-hero-top{display:block}.report-grade{margin-top:14px}.wizard-actions{align-items:center;flex-wrap:wrap}.wizard-actions-right{width:100%;justify-content:flex-end}}

/* Editable Word-style topic report */
.word-report-toolbar{
  position:sticky;top:86px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 12px;margin-bottom:12px;border:1px solid #dfe6ef;border-radius:14px;background:rgba(255,255,255,.96);
  box-shadow:0 9px 24px rgba(15,23,42,.07);backdrop-filter:blur(12px)
}
.word-report-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.word-report-tools button{
  border:0;border-radius:8px;padding:7px 9px;background:#f5f7fa;color:#536075;font-size:9px;font-weight:900;cursor:pointer
}
.word-report-tools button:hover{background:#e9eef5;color:#1e293b}.word-report-tools button.ai{background:#eef2ff;color:#4338ca}
.word-report-tools button:disabled{opacity:.55;cursor:wait}
.word-report-state{text-align:right;white-space:nowrap}.word-report-state span{display:block;color:#94a3b8;font-size:8px}.word-report-state b{display:block;color:#64748b;font-size:9px;margin-top:2px}
.word-report-canvas{padding:24px;border-radius:18px;background:#e8edf4;border:1px solid #dfe5ed;overflow:auto}
.topic-report-paper{
  width:min(100%,820px);min-height:1120px;margin:0 auto;padding:66px 72px 48px;background:#fff;border:1px solid #d9dee6;
  box-shadow:0 18px 48px rgba(15,23,42,.14);font-family:"SimSun","Songti SC","Microsoft YaHei",serif;color:#1f2937
}
.topic-report-editable{min-height:1000px;outline:none}
.topic-report-editable:focus{box-shadow:inset 0 0 0 2px rgba(49,87,246,.08)}
.topic-report-letterhead{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:2px solid #234fc7;color:#234fc7}
.topic-report-letterhead span{font-family:Inter,"PingFang SC",sans-serif;font-size:14px;font-weight:900}.topic-report-letterhead b{font:700 8px/1 Inter,sans-serif;letter-spacing:.11em}
.topic-report-title-group{text-align:center;padding:34px 18px 24px;border-bottom:1px solid #dce2ea}
.topic-report-title-group>div:first-child{font-size:23px;font-weight:900;letter-spacing:.08em;color:#111827}
.topic-report-title-group h4{font-size:18px;line-height:1.75;margin:18px auto 13px;max-width:620px;color:#111827}
.topic-report-title-group .report-tags{justify-content:center}
.topic-report-title-group .report-tags span{font-family:Inter,"PingFang SC",sans-serif;background:#f8fafc;font-size:9px}
.topic-report-summary{display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:8px;margin:22px 0 28px}
.topic-report-summary .report-grade,.topic-report-summary .report-score{width:auto;height:68px;border-radius:8px;margin:0}
.topic-report-summary .report-score{display:grid;place-items:center;background:#f8fafc;border:1px solid #dfe5ec}
.topic-report-summary .report-score b{font-size:18px;line-height:1.1}.topic-report-summary .report-score span{font-family:Inter,"PingFang SC",sans-serif;font-size:8px}
.topic-report-section{padding:0;margin:0 0 25px}
.topic-report-section h5{font-size:15px;margin:0 0 10px;padding-bottom:7px;border-bottom:1px solid #d8dee8;color:#111827}
.topic-report-section p,.topic-report-section li{font-size:12px;line-height:2.05;color:#374151;text-align:justify}
.topic-report-section p{margin:0}.topic-report-section ul{margin:0;padding-left:22px}
.topic-report-section p:hover,.topic-report-section li:hover{background:#f8faff}
.topic-report-section .paragraph-selected{background:#eef2ff;box-shadow:inset 3px 0 0 #4f70e8;padding-left:9px}
.topic-report-section .ai-working{background:#f4f1ff;animation:pulseSoft .8s ease-in-out infinite alternate}
.topic-report-section .ai-complete{background:#ecfdf5;box-shadow:inset 3px 0 0 #22c55e;padding-left:9px}
.topic-report-notice{margin-top:32px;padding:12px 14px;border:1px solid #dfe5ec;background:#f8fafc;color:#64748b;font-size:9px;line-height:1.8}
.topic-report-footer{display:flex;justify-content:space-between;gap:18px;margin-top:32px;padding-top:10px;border-top:1px solid #dfe5ec;color:#94a3b8;font:8px/1.5 Inter,"PingFang SC",sans-serif}
.report-export-btn{color:#fff!important;background:#3267f5!important;border-color:#3267f5!important}.report-export-btn:disabled{color:#94a3b8!important;background:#eef1f5!important;border-color:#e2e8f0!important;cursor:not-allowed}
@media(max-width:760px){
  .word-report-toolbar{top:78px;align-items:flex-start;flex-direction:column}.word-report-state{text-align:left}
  .word-report-canvas{padding:10px}.topic-report-paper{min-width:660px;padding:52px 56px}
}


/* ===== V6.1: 选题查重结果页 ===== */
.topic-check-shell{
  background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;
  box-shadow:0 18px 55px rgba(15,23,42,.07)
}
.check-appbar{
  min-height:64px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:18px;
  border-bottom:1px solid #e8edf4;background:#fbfcff
}
.check-brand{display:flex;align-items:center;gap:12px}
.check-brand-icon{
  width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;display:grid;place-items:center;font-weight:900;font-size:14px
}
.check-brand b{display:block;font-size:14px}
.check-brand span{display:block;font-size:10px;color:#94a3b8;margin-top:1px}
.check-app-actions{display:flex;gap:8px;flex-wrap:wrap}
.check-btn{
  border:1px solid #e0e6ef;background:#fff;color:#475569;padding:8px 12px;border-radius:10px;
  font-size:11px;font-weight:900;cursor:pointer
}
.check-btn.primary{border:0;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2))}
.check-btn:disabled{cursor:default;opacity:.58;box-shadow:none}
.check-content{padding:22px}
.check-query{
  display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;
  padding:18px;border:1px solid #e8edf4;border-radius:18px;background:#f8fafc;margin-bottom:16px
}
.check-query-label{font-size:10px;color:#94a3b8;font-weight:900;letter-spacing:.05em;margin-bottom:5px}
.check-query-title{font-size:16px;font-weight:900;line-height:1.55;color:#1e293b}
.check-query-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.check-query-meta span{font-size:10px;padding:5px 8px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;color:#64748b;font-weight:800}
.check-run{
  min-width:112px;height:42px;border:0;border-radius:12px;background:#111827;color:#fff;font-size:12px;font-weight:900;cursor:pointer
}
.check-loading{
  display:none;min-height:360px;align-items:center;justify-content:center;text-align:center;color:#64748b
}
.check-loading.show{display:flex}
.check-loading .loader{
  width:42px;height:42px;border-radius:50%;border:3px solid #e5e7eb;border-top-color:#6366f1;
  animation:spin .85s linear infinite;margin:0 auto 14px
}
.check-result-wrap{display:none}
.check-result-wrap.show{display:block}
.check-summary{
  display:grid;grid-template-columns:1.35fr repeat(3,.75fr);gap:12px;margin-bottom:16px
}
.check-overall{
  border:1px solid #e8edf4;border-radius:20px;padding:18px;background:linear-gradient(145deg,#fafcff,#f8fafc);
  display:flex;align-items:center;gap:18px
}
.risk-ring{
  width:92px;height:92px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;
  background:conic-gradient(#6366f1 var(--risk-angle,76deg),#eef2f7 0);
  position:relative
}
.risk-ring:after{content:"";position:absolute;inset:9px;background:#fff;border-radius:50%}
.risk-ring div{position:relative;z-index:2;text-align:center}
.risk-ring strong{display:block;font-size:24px;line-height:1}
.risk-ring span{font-size:9px;color:#94a3b8}
.overall-copy h4{margin:0 0 5px;font-size:17px}
.overall-copy p{margin:0;color:#64748b;font-size:11px;line-height:1.6}
.risk-badge{display:inline-flex;margin-top:9px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}
.risk-badge.low{background:#ecfdf5;color:#047857}
.risk-badge.medium{background:#fffbeb;color:#b45309}
.risk-badge.high{background:#fef2f2;color:#b91c1c}
.check-stat{
  border:1px solid #e8edf4;border-radius:20px;padding:17px;background:#fff
}
.check-stat span{font-size:10px;color:#94a3b8;font-weight:800}
.check-stat strong{display:block;font-size:22px;margin-top:7px}
.check-stat small{display:block;font-size:10px;color:#64748b;margin-top:5px;line-height:1.5}
.check-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:14px}
.sim-panel,.analysis-panel{border:1px solid #e8edf4;border-radius:20px;background:#fff;overflow:hidden}
.panel-head{padding:15px 16px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;gap:10px}
.panel-head h4{margin:0;font-size:14px}
.panel-head span{font-size:10px;color:#94a3b8}
.sim-list{padding:10px;display:grid;gap:8px}
.sim-item{
  border:1px solid #e8edf4;border-radius:14px;padding:13px;background:#fbfcff;cursor:pointer;transition:.16s
}
.sim-item:hover,.sim-item.active{border-color:#c7d2fe;background:#fafaff}
.sim-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.sim-rank{font-size:9px;font-weight:900;color:#6366f1;background:#eef2ff;padding:4px 7px;border-radius:7px;white-space:nowrap}
.sim-score{font-size:13px;font-weight:900;white-space:nowrap}
.sim-title{font-size:12px;font-weight:900;line-height:1.55;margin:7px 0 5px}
.sim-meta{font-size:10px;color:#94a3b8}
.sim-overlap{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.sim-overlap span{font-size:9px;padding:4px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-weight:800}
.analysis-body{padding:16px}
.analysis-hero{
  padding:14px;border-radius:15px;background:#f8fafc;border:1px solid #edf0f5;margin-bottom:12px
}
.analysis-hero b{display:block;font-size:12px;margin-bottom:5px}
.analysis-hero p{margin:0;font-size:10px;color:#64748b;line-height:1.7}
.analysis-section{margin-top:14px}
.analysis-section h5{margin:0 0 8px;font-size:12px}
.analysis-tags{display:flex;gap:7px;flex-wrap:wrap}
.analysis-tags span{font-size:9px;padding:5px 8px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:900}
.suggestion-list{margin:0;padding-left:18px;color:#64748b;font-size:10px;line-height:1.8}
.check-conclusion{
  margin-top:14px;border-radius:16px;padding:14px 16px;background:#f8fafc;border:1px solid #e8edf4;
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px
}
.check-conclusion b{font-size:12px}
.check-conclusion p{margin:4px 0 0;color:#64748b;font-size:10px;line-height:1.65}
.conclusion-mark{padding:6px 9px;border-radius:999px;font-size:9px;font-weight:900;white-space:nowrap}
.conclusion-mark.low{background:#ecfdf5;color:#047857}
.conclusion-mark.medium{background:#fffbeb;color:#b45309}
.conclusion-mark.high{background:#fef2f2;color:#b91c1c}
.check-footer{
  padding:16px 22px;border-top:1px solid #e8edf4;background:#fbfcff;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap
}
.check-footer-note{font-size:10px;color:#94a3b8;max-width:650px}
.check-footer-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:980px){
  .check-summary{grid-template-columns:1fr 1fr}
  .check-overall{grid-column:1/-1}
  .check-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .check-query{grid-template-columns:1fr}
  .check-summary{grid-template-columns:1fr}
  .check-overall{grid-column:auto;align-items:flex-start}
  .check-content{padding:15px}
}


/* ===== V6.2: intro / product view switch ===== */
.main-view{display:none}
.main-view.active{display:block}
body.product-mode #landingNav,body.product-mode #landingFooter{display:none}
.nav-main-switch{gap:10px}
.main-nav-link{
  display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:12px;
  font-size:14px;font-weight:800;color:#475569;border:1px solid transparent;transition:.18s ease
}
.main-nav-link:hover{color:var(--primary);background:#f8fafc}
.main-nav-link.active{
  background:#eef2ff;color:#4338ca;border-color:#dfe3ff
}
.product-hub{
  padding:28px 0 84px;min-height:calc(100vh - 68px);
  background:linear-gradient(180deg,#f7f9fd 0%, #f6f8fc 100%);
}
.workspace-nav{
  position:sticky;top:0;z-index:110;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);
  border-bottom:1px solid #e8edf4;box-shadow:0 6px 22px rgba(15,23,42,.04)
}
.workspace-nav-inner{min-height:68px;display:flex;align-items:center;gap:18px}
.workspace-brand{display:flex;align-items:center;gap:10px;min-width:180px;color:#0f172a;font-weight:900}
.workspace-brand .logo{width:30px;height:30px;border-radius:10px}
.workspace-brand small{display:block;color:#94a3b8;font-size:9px;font-weight:800;margin-top:1px}
.workspace-module-nav{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex:1;overflow-x:auto;scrollbar-width:none}
.workspace-module-nav::-webkit-scrollbar{display:none}
.workspace-module-nav .product-switch-btn{padding:8px 13px;font-size:10px;white-space:nowrap;text-align:left}
.workspace-module-nav .workspace-app-tab b{display:block;font-size:11px}
.workspace-module-nav .workspace-app-tab small{display:block;margin-top:2px;font-size:8px;font-weight:700;opacity:.72}
.workspace-actions{display:flex;align-items:center;gap:7px}
.workspace-action{
  border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:11px;padding:8px 10px;
  font-size:10px;font-weight:900;cursor:pointer
}
.workspace-account{display:flex;align-items:center;gap:8px;padding:5px 8px 5px 5px}
.workspace-account .user-avatar{width:28px;height:28px;border-radius:9px}
.workspace-account b{display:block;font-size:10px;color:#1e293b;text-align:left}
.workspace-account small{display:block;font-size:8px;color:#94a3b8;text-align:left;margin-top:1px}
.workspace-context{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:14px 16px;margin-bottom:18px;border-radius:17px;background:#fff;border:1px solid #e8edf4
}
.workspace-context b{display:block;font-size:13px;color:#1e293b}
.workspace-context span{display:block;margin-top:3px;font-size:10px;color:#94a3b8}
.workspace-context-flow{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.workspace-context-flow[hidden]{display:none}
.workspace-context-flow i{font-style:normal;font-size:9px;font-weight:900;color:#64748b;padding:6px 9px;border-radius:999px;background:#f1f5f9}
.workspace-context-flow i.active{color:#4338ca;background:#eef2ff}
.product-hub-top{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;
  margin-bottom:24px
}
.product-hub-top p{margin:0;color:#64748b;max-width:560px}
.product-switch{
  display:inline-flex;gap:8px;padding:7px;border-radius:18px;background:#fff;border:1px solid #e8edf4;
  box-shadow:0 8px 24px rgba(15,23,42,.05)
}
.product-switch-btn{
  border:0;background:transparent;color:#64748b;padding:12px 18px;border-radius:12px;
  font-size:14px;font-weight:900;cursor:pointer;transition:.18s ease
}
.product-switch-btn.active{
  color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));
  box-shadow:0 10px 22px rgba(49,87,246,.18)
}
.product-module{display:none}
.product-module.active{display:block}
.product-module-tip{
  width:min(100% - 32px,1180px);margin:14px auto 0;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid #e8edf4;
  color:#64748b;font-size:12px
}
.product-module-tip b{color:#0f172a}
@media(max-width:960px){
  .product-hub{padding:56px 0 70px}
  .workspace-brand{min-width:auto}
  .workspace-brand-copy,.workspace-actions .workspace-history-action{display:none}
  .workspace-module-nav{justify-content:flex-start;overflow-x:auto}
}
@media(max-width:680px){
  .workspace-nav-inner{gap:8px}
  .workspace-module-nav .product-switch-btn{padding:8px 9px;font-size:9px;white-space:nowrap}
  .workspace-module-nav .workspace-app-tab small{display:none}
  .workspace-account b,.workspace-account small{display:none}
  .workspace-action{padding:7px}
  .product-hub{padding:18px 0 60px}
}


/* ===== V6.3: 标书生成与排版 ===== */
.proposal-shell{
  background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;
  box-shadow:0 14px 44px rgba(15,23,42,.06)
}
.proposal-appbar{
  padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;
  border-bottom:1px solid #edf0f5;background:linear-gradient(180deg,#fff,#fbfcff)
}
.proposal-appbar .wizard-head-copy h3{font-size:19px}
.proposal-head-progress{display:flex;align-items:center;gap:8px}
.proposal-head-progress .progress-dot.done{width:8px;background:#a5b4fc}
.proposal-wizard-body{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:670px}
.proposal-flow-rail{padding:26px 20px;border-right:1px solid #edf0f5;background:#fafbfe}
.proposal-flow-step{display:flex;align-items:flex-start;gap:11px;padding:12px 10px;border-radius:13px;color:#94a3b8;margin-bottom:6px;cursor:pointer;transition:.18s}
.proposal-flow-step:hover{background:#f1f5f9;color:#64748b}
.proposal-flow-step .rail-num{width:28px;height:28px;border-radius:9px;background:#eef1f5;display:grid;place-items:center;font-size:11px;font-weight:900;flex:0 0 auto}
.proposal-flow-step b{display:block;font-size:13px;color:inherit;margin-top:2px}.proposal-flow-step small{display:block;font-size:11px;font-weight:600;margin-top:2px;line-height:1.4}
.proposal-flow-step.active{background:#eef2ff;color:#4338ca}.proposal-flow-step.active .rail-num{background:#4f46e5;color:#fff}
.proposal-flow-step.done{color:#475569}.proposal-flow-step.done .rail-num{background:#dcfce7;color:#15803d}
.proposal-main{padding:30px 32px;min-width:0;background:#fff}
.proposal-generation-stage{display:none;animation:stageIn .28s ease}.proposal-generation-stage.active{display:block}
.proposal-stage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}
.proposal-stage-copy h3{font-size:26px;line-height:1.25;margin:0 0 8px;letter-spacing:-.035em}.proposal-stage-copy p{color:#64748b;margin:0;font-size:14px;max-width:620px}
.proposal-chapter-stage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px}
.proposal-chapter-stage-head h3{font-size:26px;line-height:1.25;margin:0 0 8px;letter-spacing:-.035em}.proposal-chapter-stage-head p{color:#64748b;margin:0;font-size:14px}
.proposal-chapter-counter{font-size:11px;font-weight:900;color:#4338ca;background:#eef2ff;padding:8px 11px;border-radius:999px;white-space:nowrap}
.proposal-top-actions{display:flex;gap:8px;flex-wrap:wrap}
.proposal-btn{
  border:1px solid #e5e7eb;background:#fff;color:#475569;padding:10px 14px;border-radius:12px;
  font-size:11px;font-weight:900;cursor:pointer;transition:.18s
}
.proposal-btn:hover{border-color:#c7d2fe;background:#fafaff;color:#4338ca}
.proposal-btn.primary{
  border:0;color:#fff;background:#111827;box-shadow:0 8px 18px rgba(15,23,42,.12)
}
.proposal-context{
  padding:16px 17px;border:1px solid #e8ebf0;border-radius:16px;background:#f8fafc;
  display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center
}
.proposal-context-label{font-size:9px;color:#94a3b8;font-weight:900;letter-spacing:.07em}
.proposal-context-title{font-size:15px;font-weight:900;line-height:1.55;margin-top:4px}
.proposal-context-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.proposal-context-tags span{
  font-size:9px;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-weight:800
}
.proposal-pass{
  display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:12px;background:#ecfdf5;color:#047857;
  font-size:10px;font-weight:900;white-space:nowrap
}
.proposal-intake{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end;margin-bottom:18px
}
.proposal-intake-field{border:1px solid #e7eaf0;border-radius:15px;padding:13px 14px;background:#fbfcfe}
.proposal-intake-field.wide{grid-column:1/-1}
.proposal-intake-field label{display:block;margin-bottom:7px;font-size:12px;font-weight:800;color:#64748b}
.proposal-intake-field input,.proposal-intake-field select{
  width:100%;height:auto;border:0;background:transparent;padding:0;color:#111827;font-size:14px;font-weight:800;outline:none
}
.proposal-intake-field:focus-within{border-color:#818cf8;box-shadow:0 0 0 3px #eef2ff}
.proposal-intake-field input::placeholder{color:#a8b2c1;font-weight:700}
.proposal-intake-field select:required:invalid{color:#a8b2c1;font-weight:700}
.proposal-intake-field select option,.proposal-intake-field select optgroup{color:#111827}
.proposal-intake-field select:disabled{color:#a8b2c1;cursor:not-allowed}
.proposal-btn.primary:disabled{background:#e5e7eb;color:#94a3b8;box-shadow:none;cursor:not-allowed;transform:none}
.proposal-context.proposal-context-empty{background:#f8fafc;color:#64748b}
.proposal-context.proposal-context-empty .proposal-context-title{color:#94a3b8}
.proposal-context.proposal-context-empty .proposal-context-tags span{background:#eef1f5;color:#94a3b8}
.proposal-context.proposal-context-empty .proposal-pass{background:#f1f5f9;color:#94a3b8}

.proposal-form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid #edf0f5}
.proposal-form-actions span{font-size:11px;color:#94a3b8}
.proposal-intake-action{min-height:44px;white-space:nowrap;padding:11px 18px}
.proposal-subnav{
  padding:0;margin:18px 0 12px;background:transparent;display:flex;gap:10px;flex-wrap:wrap
}
.proposal-subtab{
  border:1px solid #e4e8ef;background:#fff;color:#475569;padding:11px 15px;border-radius:12px;
  font-size:12px;font-weight:800;cursor:pointer;transition:.18s
}
.proposal-subtab:hover{border-color:#c7d2fe;background:#fafaff}.proposal-subtab.active{background:#eef2ff;color:#3730a3;border-color:#818cf8;box-shadow:inset 0 0 0 1px rgba(99,102,241,.08)}
.proposal-subtab:disabled{opacity:.45;cursor:not-allowed;background:#f8fafc;color:#94a3b8}
.proposal-view{display:none}
.proposal-view.active{display:block}
.proposal-loading{
  min-height:480px;display:none;align-items:center;justify-content:center;text-align:center;color:#64748b
}
.proposal-loading.show{display:flex}
.proposal-loading .loader{
  width:44px;height:44px;border-radius:50%;border:3px solid #e5e7eb;border-top-color:#6366f1;
  animation:spin .85s linear infinite;margin:0 auto 14px
}
.proposal-loading-steps{margin-top:16px;display:grid;gap:7px;text-align:left;min-width:250px}
.proposal-loading-steps span{
  display:flex;gap:8px;align-items:center;font-size:10px;padding:7px 9px;background:#f8fafc;border-radius:9px
}
.proposal-loading-steps i{width:7px;height:7px;border-radius:50%;background:#22c55e}
.proposal-result{display:none;border:1px solid #e8ebf0;border-radius:18px;overflow:hidden}
.proposal-result.show{display:block}
.proposal-workspace{
  display:grid;grid-template-columns:190px minmax(0,1fr);min-height:570px;background:#f8fafc
}
.proposal-outline{padding:16px;background:#fff;border-right:1px solid #e8edf4}
.proposal-outline h4,.proposal-side h4{font-size:12px;margin:0 0 12px}
.chapter-list{display:grid;gap:7px}
.chapter-item{
  padding:12px;border:1px solid #e7eaf0;border-radius:13px;background:#fff;cursor:pointer;transition:.15s
}
.chapter-item:hover{border-color:#c7d2fe}.chapter-item.active{border-color:#818cf8;background:#eef2ff}
.chapter-item.pending{opacity:.58;background:#f8fafc}.chapter-item.pending:hover{border-color:#e7eaf0;cursor:not-allowed}
.chapter-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.chapter-item b{font-size:12px;line-height:1.45}
.chapter-state{font-size:8px;padding:3px 6px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:900}
.chapter-state.pending{background:#f1f5f9;color:#94a3b8}
.chapter-item small{display:block;margin-top:5px;color:#94a3b8;font-size:10px}
.chapter-add-btn{
  width:100%;margin-top:10px;border:1px dashed #c7d2fe;background:#f8faff;color:#4338ca;
  border-radius:12px;padding:10px;font-size:10px;font-weight:900;cursor:pointer;transition:.18s
}
.chapter-add-btn:hover{background:#eef2ff;border-color:#818cf8}
.chapter-add-form{display:none;margin-top:9px;padding:10px;border-radius:12px;background:#f8fafc;border:1px solid #e8edf4}
.chapter-add-form.show{display:block}
.chapter-add-form input{width:100%;border:1px solid #dfe4ec;border-radius:9px;background:#fff;padding:8px 9px;font-size:10px;outline:none}
.chapter-add-form input:focus{border-color:#818cf8;box-shadow:0 0 0 2px #eef2ff}
.chapter-add-actions{display:flex;gap:6px;margin-top:7px}.chapter-add-actions button{flex:1;border:0;border-radius:8px;padding:7px;font-size:9px;font-weight:900;cursor:pointer}
.chapter-add-actions .confirm{background:#4f46e5;color:#fff}.chapter-add-actions .cancel{background:#e9edf3;color:#64748b}
.proposal-editor{padding:18px;min-width:0}
.editor-toolbar{
  min-height:44px;padding:7px 10px;border:1px solid #e8edf4;border-radius:13px;background:#fff;
  display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:12px
}
.editor-tool{padding:6px 8px;border:0;border-radius:8px;background:#f8fafc;color:#64748b;font-size:9px;font-weight:900;cursor:pointer;font-family:inherit}
.editor-tool:hover{background:#eef2f7;color:#334155}.editor-tool:disabled{opacity:.58;cursor:wait}
.editor-tool.ai{background:#eef2ff;color:#4338ca}
.editor-tool.upload{background:#ecfeff;color:#0f766e}
.editor-status{margin-left:auto;font-size:9px;color:#94a3b8;font-weight:800}
.proposal-paper{
  max-width:720px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:7px;
  min-height:640px;padding:42px 50px;box-shadow:0 12px 35px rgba(15,23,42,.07)
}
.paper-section-label{font-size:10px;color:#64748b;margin-bottom:10px}
.proposal-paper h3{font-size:17px;line-height:1.6;margin:0 0 18px;text-align:center}
.proposal-paper h5{font-size:13px;margin:18px 0 9px}
.proposal-paper p{font-size:11px;color:#374151;line-height:2;margin:0 0 10px;text-align:justify}
.proposal-chapter-content{min-height:380px;border-radius:8px;outline:none;transition:.18s}
.proposal-chapter-content:focus{box-shadow:0 0 0 3px rgba(99,102,241,.09);background:#fefeff}
.proposal-chapter-content p,.proposal-chapter-content h5{border-radius:6px;transition:.18s}
.proposal-chapter-content p:hover{background:#fafbff}
.proposal-chapter-content p.paragraph-selected{background:#eef2ff;box-shadow:inset 3px 0 0 #6366f1;padding-left:9px}
.proposal-chapter-content p.ai-expanding{background:#f5f3ff;animation:pulseSoft .8s ease-in-out infinite alternate}
.proposal-chapter-content p.ai-expanded{background:#ecfdf5;box-shadow:inset 3px 0 0 #22c55e;padding-left:9px}
@keyframes pulseSoft{from{opacity:.62}to{opacity:1}}
.proposal-ai-note{
  border-left:3px solid #818cf8;background:#f5f7ff;padding:10px 12px;border-radius:0 10px 10px 0;
  font-size:10px;color:#4f46e5;margin:14px 0
}
.literature-analysis-card{display:none;margin:14px 0 0;border:1px solid #dfe5f0;border-radius:16px;background:linear-gradient(135deg,#fbfdff,#f6f7ff);padding:15px}
.literature-analysis-card.show{display:block}
.literature-analysis-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.literature-analysis-head b{display:block;font-size:12px}.literature-analysis-head p{margin:4px 0 0;color:#64748b;font-size:10px;line-height:1.6}
.literature-analysis-status{font-size:9px;font-weight:900;color:#4338ca;background:#eef2ff;padding:6px 8px;border-radius:999px;white-space:nowrap}
.literature-file-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.literature-file-chip{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:9px;background:#fff;border:1px solid #e5e9f2;font-size:9px;color:#475569}
.literature-file-chip i{width:6px;height:6px;border-radius:50%;background:#22c55e}
.literature-plan{display:none;margin-top:12px;padding-top:12px;border-top:1px solid #e4e8f2}.literature-plan.show{display:block}
.literature-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}
.literature-plan-item{padding:10px;border-radius:11px;background:#fff;border:1px solid #e6eaf2}
.literature-plan-item b{display:block;font-size:10px;color:#1e293b}.literature-plan-item span{display:block;margin-top:4px;font-size:8px;color:#94a3b8;line-height:1.5}
.literature-plan-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.literature-side-summary{display:grid;gap:7px}.literature-side-summary div{padding:8px 9px;border-radius:9px;background:#f8fafc;font-size:9px;color:#64748b;line-height:1.5}
.literature-side-summary b{color:#334155}.literature-side-empty{font-size:9px;color:#94a3b8;line-height:1.6}
.proposal-side{grid-column:1/-1;padding:16px;background:#fff;border-top:1px solid #e8edf4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.side-block{margin-bottom:16px}
.side-label{font-size:9px;color:#94a3b8;font-weight:900;margin-bottom:7px}
.side-value{padding:10px 11px;border-radius:11px;background:#f8fafc;color:#475569;font-size:10px;line-height:1.6}
.generation-stat{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.generation-stat div{padding:10px;background:#f8fafc;border-radius:11px}
.generation-stat b{display:block;font-size:14px}
.generation-stat span{font-size:8px;color:#94a3b8}
.reference-mini{display:grid;gap:7px}
.reference-mini div{padding:9px 10px;border:1px solid #e8edf4;border-radius:10px;font-size:9px;color:#64748b;line-height:1.5}
.proposal-footer{
  padding:14px 20px;border-top:1px solid #e8edf4;background:#fff;
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap
}
.proposal-footer-note{font-size:9px;color:#94a3b8}
.proposal-footer-actions{display:flex;gap:8px;flex-wrap:wrap}

/* 排版结果 */
.layout-result-wrap{padding:18px;background:#f8fafc}
.layout-summary{
  display:grid;grid-template-columns:1fr repeat(3,.45fr);gap:10px;margin-bottom:12px
}
.layout-summary-main,.layout-stat{
  background:#fff;border:1px solid #e8edf4;border-radius:16px;padding:14px
}
.layout-summary-main{display:flex;align-items:center;gap:12px}
.layout-ok{
  width:42px;height:42px;border-radius:13px;background:#ecfdf5;color:#047857;display:grid;place-items:center;font-size:18px;font-weight:900
}
.layout-summary-main b{font-size:12px;display:block}
.layout-summary-main p{margin:4px 0 0;color:#64748b;font-size:9px}
.layout-stat span{font-size:8px;color:#94a3b8;font-weight:900}
.layout-stat b{display:block;font-size:15px;margin-top:5px}
.layout-workspace{
  display:grid;grid-template-columns:170px minmax(0,1fr) 250px;gap:12px;align-items:start
}
.page-thumbs,.format-panel{
  background:#fff;border:1px solid #e8edf4;border-radius:16px;padding:13px
}
.page-thumbs h4,.format-panel h4{font-size:11px;margin:0 0 10px}
.thumb-list{display:grid;gap:9px}
.page-thumb{
  height:150px;border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:14px;cursor:pointer;position:relative
}
.page-thumb.active{border:2px solid #6366f1}
.page-thumb:after{
  content:attr(data-page);position:absolute;right:6px;bottom:4px;font-size:8px;color:#94a3b8
}
.thumb-line{height:4px;background:#e5e7eb;border-radius:999px;margin:6px 0}
.layout-preview-area{min-width:0}
.layout-preview-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 11px;
  background:#fff;border:1px solid #e8edf4;border-radius:13px;margin-bottom:10px
}
.layout-preview-toolbar span{font-size:9px;color:#64748b}
.zoom-tools{display:flex;gap:5px}
.zoom-tools button{border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:5px 8px;font-size:9px;color:#64748b}
.a4-page{
  width:min(100%,700px);margin:0 auto;min-height:760px;background:#fff;border:1px solid #dfe3e8;
  box-shadow:0 14px 40px rgba(15,23,42,.10);padding:58px 64px
}
.a4-page .doc-title{text-align:center;font-size:17px;font-weight:900;line-height:1.7;margin-bottom:26px}
.a4-page h4{font-size:13px;margin:18px 0 10px}
.a4-page p{font-size:10px;line-height:2;color:#374151;margin:0 0 10px;text-align:justify}
.a4-page .page-number{text-align:center;color:#94a3b8;font-size:9px;margin-top:40px}
.format-list{display:grid;gap:8px}
.format-row{
  display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px;border-radius:11px;background:#f8fafc;align-items:center
}
.format-row b{font-size:9px;display:block}
.format-row span{font-size:8px;color:#94a3b8;display:block;margin-top:2px}
.format-pass{font-size:8px;color:#047857;background:#ecfdf5;padding:4px 6px;border-radius:999px;font-weight:900}
.format-warning{font-size:8px;color:#b45309;background:#fffbeb;padding:4px 6px;border-radius:999px;font-weight:900}
.export-box{margin-top:12px;padding:12px;border-radius:13px;background:#111827;color:#fff}
.export-box b{font-size:10px}
.export-box p{font-size:8px;color:#cbd5e1;margin:4px 0 9px;line-height:1.5}
.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.export-actions button{border:0;border-radius:8px;padding:7px;font-size:8px;font-weight:900;cursor:pointer}
.export-actions button:first-child{background:#fff;color:#111827}
.export-actions button:last-child{background:#6366f1;color:#fff}
@media(max-width:1100px){
  .proposal-wizard-body{grid-template-columns:1fr}
  .proposal-flow-rail{display:flex;gap:8px;border-right:0;border-bottom:1px solid #edf0f5;overflow-x:auto;padding:12px}
  .proposal-flow-rail .rail-label{display:none}
  .proposal-flow-step{min-width:170px;margin:0}
  .proposal-main{padding:26px 24px}
  .proposal-stage-head{flex-wrap:wrap}
  .proposal-intake{grid-template-columns:1fr 1fr}
  .proposal-intake-field.wide{grid-column:1/-1}
  .proposal-workspace{grid-template-columns:190px 1fr}
  .layout-workspace{grid-template-columns:140px 1fr}
  .format-panel{grid-column:1/-1}
}
@media(max-width:760px){
  .proposal-intake{grid-template-columns:1fr}
  .proposal-intake-field.wide{grid-column:auto}
  .proposal-form-actions{align-items:stretch;flex-direction:column}
  .proposal-intake-action{width:100%}
  .proposal-main{padding:22px 18px}
  .proposal-appbar{padding:18px}
  .proposal-stage-copy h3{font-size:22px}
  .proposal-chapter-stage-head{align-items:flex-start;flex-direction:column}.proposal-chapter-stage-head h3{font-size:22px}
  .proposal-stage-head{display:block}
  .proposal-top-actions{margin-top:14px}
  .proposal-flow-step{min-width:145px}.proposal-flow-step small{display:none}
  .proposal-context{grid-template-columns:1fr}
  .literature-plan-grid{grid-template-columns:1fr}
  .literature-analysis-head{display:block}.literature-analysis-status{display:inline-block;margin-top:9px}
  .proposal-workspace{grid-template-columns:1fr}
  .proposal-outline{border-right:0;border-bottom:1px solid #e8edf4}
  .proposal-side{display:block}
  .proposal-paper{padding:28px 22px}
  .layout-summary{grid-template-columns:1fr 1fr}
  .layout-summary-main{grid-column:1/-1}
  .layout-workspace{grid-template-columns:1fr}
  .page-thumbs{display:none}
  .a4-page{padding:34px 24px;min-height:650px}
}

/* ===== Post-proposal workflow ===== */
.post-shell{background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:0 18px 55px rgba(15,23,42,.07)}
.post-appbar{padding:18px 20px;border-bottom:1px solid #e8edf4;background:#fbfcff;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.post-brand{display:flex;align-items:center;gap:11px}
.post-brand-icon{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#3157f6,#7c3aed);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900}
.post-brand h3{margin:0;font-size:17px}.post-brand p{margin:3px 0 0;color:#94a3b8;font-size:10px}
.post-status{padding:6px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:9px;font-weight:900}
.post-body{padding:18px;background:#f8fafc}
.post-summary{display:grid;grid-template-columns:1.3fr repeat(3,.7fr);gap:10px;margin-bottom:13px}
.post-summary-main,.post-stat{padding:15px;border:1px solid #e8edf4;border-radius:17px;background:#fff}
.post-summary-main b{display:block;font-size:14px}.post-summary-main p{margin:5px 0 0;color:#64748b;font-size:10px;line-height:1.65}
.post-stat span{font-size:9px;color:#94a3b8}.post-stat b{display:block;font-size:21px;margin-top:6px}
.post-grid{display:grid;grid-template-columns:220px minmax(0,1fr) 270px;gap:12px}
.post-panel{background:#fff;border:1px solid #e8edf4;border-radius:18px;overflow:hidden}
.post-panel-head{padding:13px 14px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;gap:10px}
.post-panel-head b{font-size:12px}.post-panel-head span{font-size:9px;color:#94a3b8}
.post-panel-body{padding:13px}
.scan-section,.issue-card,.review-item{padding:11px;border-radius:12px;background:#f8fafc;margin-bottom:8px;cursor:pointer;border:1px solid transparent}
.scan-section.active,.issue-card.active{background:#eef2ff;border-color:#c7d2fe}
.scan-section b,.issue-card b,.review-item b{display:block;font-size:10px}.scan-section span,.issue-card span,.review-item span{display:block;font-size:9px;color:#94a3b8;margin-top:4px;line-height:1.55}
.scan-rate{float:right;color:#b45309!important;font-weight:900}
.check-paper{padding:24px;min-height:480px;background:#fff}
.check-paper h4{font-size:15px;margin:0 0 14px}.check-paper p{font-size:10px;color:#475569;line-height:2;text-align:justify}
.duplicate-mark{background:#fef3c7;color:#92400e;padding:2px 3px;border-radius:4px}.revised-mark{background:#dcfce7;color:#166534;padding:2px 3px;border-radius:4px}
.source-card,.ai-action-card{padding:11px;border-radius:12px;background:#f8fafc;margin-bottom:8px}
.source-card b,.ai-action-card b{display:block;font-size:9px}.source-card p,.ai-action-card p{margin:4px 0 0;color:#64748b;font-size:9px;line-height:1.65}
.revision-compare{display:grid;grid-template-columns:1fr 36px 1fr;gap:10px;align-items:stretch}
.revision-copy{padding:15px;border:1px solid #e8edf4;border-radius:14px;background:#fff}
.revision-copy label{display:block;font-size:9px;color:#94a3b8;font-weight:900;margin-bottom:8px}.revision-copy p{font-size:10px;line-height:1.9;color:#475569;margin:0}
.revision-arrow{display:grid;place-items:center;color:#6366f1;font-weight:900}
.post-footer{padding:15px 18px;border-top:1px solid #e8edf4;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.post-footer span{font-size:9px;color:#94a3b8}.post-actions{display:flex;gap:8px;flex-wrap:wrap}
.post-btn{border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:10px;padding:9px 12px;font-size:10px;font-weight:900;cursor:pointer}
.post-btn.primary{border:0;background:linear-gradient(135deg,#3157f6,#6b48ff);color:#fff}
.review-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:12px}
.review-list{display:grid;gap:8px}.review-item{margin:0;display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;background:#fff;border:1px solid #e8edf4}
.review-icon{width:28px;height:28px;border-radius:9px;background:#ecfdf5;color:#047857;display:grid;place-items:center;font-weight:900}.review-tag{font-size:8px!important;color:#047857!important;background:#ecfdf5;padding:4px 6px;border-radius:999px;font-weight:900}
.score-card{padding:22px;border-radius:20px;background:linear-gradient(145deg,#111827,#312e81);color:#fff;text-align:center}.score-card strong{display:block;font-size:48px}.score-card span{font-size:10px;color:#cbd5e1}.score-card p{font-size:9px;color:#cbd5e1;line-height:1.7}
.export-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.export-card{padding:18px;border:1px solid #e8edf4;border-radius:18px;background:#fff;cursor:pointer;transition:.18s}.export-card:hover,.export-card.active{border-color:#818cf8;box-shadow:0 10px 24px rgba(99,102,241,.08)}.export-icon{width:42px;height:42px;border-radius:13px;background:#eef2ff;color:#4338ca;display:grid;place-items:center;font-size:11px;font-weight:900}.export-card h4{margin:12px 0 5px;font-size:14px}.export-card p{margin:0;color:#64748b;font-size:9px;line-height:1.65}.export-card button{margin-top:13px;width:100%}
.archive-hero{text-align:center;padding:28px 18px}.archive-icon{width:68px;height:68px;margin:0 auto 14px;border-radius:22px;background:#ecfdf5;color:#047857;display:grid;place-items:center;font-size:30px;font-weight:900}.archive-hero h3{margin:0 0 6px;font-size:24px}.archive-hero p{margin:0 auto;color:#64748b;font-size:10px;line-height:1.7;max-width:560px}.archive-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:20px}.archive-meta div{padding:12px;border-radius:13px;background:#f8fafc}.archive-meta span{display:block;font-size:8px;color:#94a3b8}.archive-meta b{display:block;margin-top:5px;font-size:10px}.archive-timeline{display:flex;justify-content:center;gap:0;margin-top:20px;overflow-x:auto}.archive-step{min-width:110px;position:relative;padding-top:22px;font-size:8px;color:#64748b;font-weight:800}.archive-step:before{content:'✓';position:absolute;top:0;left:50%;transform:translateX(-50%);width:18px;height:18px;border-radius:50%;background:#6366f1;color:#fff;display:grid;place-items:center;font-size:8px}.archive-step:not(:last-child):after{content:'';position:absolute;top:8px;left:58%;width:84%;height:2px;background:#c7d2fe}
@media(max-width:980px){.post-grid{grid-template-columns:1fr}.post-summary{grid-template-columns:1fr 1fr}.post-summary-main{grid-column:1/-1}.review-grid{grid-template-columns:1fr}.export-grid{grid-template-columns:1fr}.archive-meta{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.post-summary{grid-template-columns:1fr}.post-summary-main{grid-column:auto}.revision-compare{grid-template-columns:1fr}.revision-arrow{transform:rotate(90deg)}.archive-meta{grid-template-columns:1fr}}


/* ===== V6.6 realistic auth / checkout / user center ===== */
body.modal-open{overflow:hidden}
.user-nav{position:relative;align-items:center;gap:9px}
.user-pill{
  display:flex;align-items:center;gap:9px;border:1px solid #e2e8f0;background:#fff;border-radius:14px;
  padding:7px 10px;cursor:pointer;box-shadow:0 5px 16px rgba(15,23,42,.04)
}
.user-avatar{
  width:30px;height:30px;border-radius:10px;background:linear-gradient(135deg,#3157f6,#7c3aed);
  color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900;flex:0 0 auto
}
.user-avatar.large{width:40px;height:40px;border-radius:13px;font-size:14px}
.user-pill-copy{text-align:left;display:block;min-width:86px}
.user-pill-copy b{display:block;font-size:11px;color:#1e293b}
.user-pill-copy small{display:block;font-size:9px;color:#94a3b8;margin-top:1px}
.user-chevron{font-size:12px;color:#94a3b8}
.user-menu{
  display:none;position:absolute;right:0;top:54px;width:245px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;
  padding:10px;box-shadow:0 22px 60px rgba(15,23,42,.16);z-index:120
}
.user-menu.show{display:block}
.user-menu-head{display:flex;align-items:center;gap:10px;padding:9px 9px 11px;border-bottom:1px solid #eef1f5}
.user-menu-head b{display:block;font-size:12px}
.user-menu-head span{display:block;font-size:9px;color:#94a3b8;margin-top:2px}
.user-menu-plan{
  margin:9px 4px;padding:9px 10px;border-radius:11px;background:#f8fafc;display:flex;justify-content:space-between;gap:10px;
  font-size:10px;color:#64748b
}
.user-menu-plan b{color:#4338ca}
.user-menu button{
  width:100%;border:0;background:transparent;border-radius:10px;padding:9px 10px;text-align:left;
  font-size:11px;font-weight:800;color:#475569;cursor:pointer
}
.user-menu button:hover{background:#f8fafc}


/* Private-domain lead conversion */
.lead-float{
  position:fixed;right:22px;bottom:22px;z-index:210;border:0;border-radius:999px;padding:12px 16px;
  background:linear-gradient(135deg,#3157f6,#6b48ff);color:#fff;font-weight:900;font-size:13px;cursor:pointer;
  box-shadow:0 14px 34px rgba(49,87,246,.28);display:flex;align-items:center;gap:8px
}
.lead-float:before{content:"";width:8px;height:8px;border-radius:50%;background:#86efac;box-shadow:0 0 0 4px rgba(134,239,172,.18)}
.lead-modal-shell{width:min(760px,calc(100% - 56px));position:relative}
.lead-modal-card{width:100%;overflow:hidden}
.lead-external-close{
  position:absolute;right:-46px;top:-46px;width:38px;height:38px;border:0;border-radius:50%;
  display:grid;place-items:center;background:rgba(255,255,255,.16);color:#fff;font-size:28px;font-weight:300;
  line-height:1;cursor:pointer;z-index:6;backdrop-filter:blur(8px);transition:.18s ease
}
.lead-external-close:hover{background:rgba(255,255,255,.27);transform:scale(1.04)}
.lead-modal-grid{display:grid;grid-template-columns:1.02fr .98fr;min-height:430px}
.lead-modal-copy{padding:38px 38px 34px;background:linear-gradient(145deg,#0f172a,#172554);color:#fff;position:relative;overflow:hidden}
.lead-modal-copy:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:-170px;bottom:-170px;background:radial-gradient(circle,rgba(129,140,248,.48),transparent 70%)}
.lead-modal-tag{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.11);font-size:11px;font-weight:900;color:#c7d2fe}
.lead-modal-copy h3{font-size:28px;line-height:1.3;margin:16px 0 10px;letter-spacing:-.03em;position:relative;z-index:1}
.lead-modal-copy p{font-size:13px;line-height:1.8;color:#cbd5e1;margin:0;position:relative;z-index:1}
.lead-benefits{display:grid;gap:9px;margin-top:22px;position:relative;z-index:1}
.lead-benefit{display:flex;align-items:center;gap:9px;font-size:12px;color:#e2e8f0}
.lead-benefit i{font-style:normal;width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:rgba(34,197,94,.13);color:#86efac;font-weight:900}
.lead-modal-qr{padding:34px 32px 28px;background:#fff;text-align:center;display:flex;flex-direction:column;justify-content:center}
.lead-modal-qr h4{font-size:20px;margin:0 0 7px;color:#0f172a}.lead-modal-qr>p{font-size:12px;color:#64748b;margin:0 0 16px;line-height:1.7}
.lead-qr-img{width:218px;height:218px;object-fit:contain;margin:0 auto 13px;border:10px solid #fff;border-radius:18px;box-shadow:0 0 0 1px #e5e7eb,0 14px 34px rgba(15,23,42,.09)}
.lead-qr-note{font-size:11px;color:#475569;font-weight:800}.lead-qr-sub{font-size:10px;color:#94a3b8;margin-top:4px}
.lead-modal-actions{display:flex;justify-content:center;gap:8px;margin-top:16px}.lead-modal-actions .btn{padding:9px 14px;font-size:11px}
@media(max-width:720px){.lead-modal-shell{width:min(100% - 18px,760px)}.lead-external-close{right:0;top:-44px}.lead-modal-grid{grid-template-columns:1fr}.lead-modal-copy{padding:27px 24px}.lead-modal-copy h3{font-size:23px}.lead-modal-qr{padding:24px}.lead-qr-img{width:190px;height:190px}.lead-float{right:14px;bottom:14px;padding:10px 13px}}

/* Modal base */
.real-modal{
  position:fixed;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(5px);z-index:300;
  display:none;align-items:center;justify-content:center;padding:22px
}
.real-modal.show{display:flex}
.modal-card{
  width:min(920px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:26px;
  box-shadow:0 32px 100px rgba(15,23,42,.28);position:relative
}
.modal-close{
  position:absolute;right:16px;top:14px;width:34px;height:34px;border-radius:11px;border:1px solid #e5e7eb;
  background:#fff;color:#64748b;font-size:18px;cursor:pointer;z-index:3
}

/* Login modal */
.login-modal-grid{display:grid;grid-template-columns:.9fr 1.1fr;min-height:560px}
.login-brand-side{
  padding:32px;background:linear-gradient(145deg,#0f172a,#172554);color:#fff;position:relative;overflow:hidden
}
.login-brand-side:after{
  content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:-150px;bottom:-150px;
  background:radial-gradient(circle,rgba(129,140,248,.5),transparent 70%)
}
.login-brand-side h3{font-size:28px;line-height:1.35;margin:12px 0}
.login-brand-side p{font-size:13px;color:#cbd5e1;line-height:1.8;max-width:360px}
.login-brand-points{display:grid;gap:10px;margin-top:22px;position:relative;z-index:2}
.login-brand-point{padding:12px 13px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.06);border-radius:14px}
.login-brand-point b{display:block;font-size:12px;margin-bottom:4px}
.login-brand-point span{font-size:10px;color:#cbd5e1;line-height:1.65}
.login-pane{padding:30px 34px}
.login-pane-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}
.login-pane-head h4{margin:0;font-size:23px}
.login-mode-tabs{display:flex;gap:5px;padding:5px;border-radius:13px;background:#f8fafc;border:1px solid #edf0f5}
.login-mode-tab{
  border:0;background:transparent;padding:8px 12px;border-radius:9px;font-size:10px;font-weight:900;color:#64748b;cursor:pointer
}
.login-mode-tab.active{background:#fff;color:#4338ca;box-shadow:0 3px 10px rgba(15,23,42,.06)}
.login-mode-view{display:none}
.login-mode-view.active{display:block}
.qr-login-box{text-align:center;padding:16px 0 4px}
.real-qr{
  width:190px;height:190px;margin:0 auto 15px;border:10px solid #fff;border-radius:18px;
  box-shadow:0 0 0 1px #e5e7eb,0 14px 32px rgba(15,23,42,.08);
  background:
    linear-gradient(90deg,#111 9px,transparent 9px) 0 0/27px 27px,
    linear-gradient(#111 9px,transparent 9px) 0 0/27px 27px,
    linear-gradient(45deg,transparent 46%,#111 47% 53%,transparent 54%) 0 0/18px 18px,
    #fff;
  position:relative
}
.qr-center-logo{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:13px;
  background:linear-gradient(135deg,#3157f6,#7c3aed);color:#fff;display:grid;place-items:center;font-weight:900;
  border:5px solid #fff
}
.qr-login-box h5{font-size:14px;margin:0 0 5px}
.qr-login-box p{font-size:11px;color:#94a3b8;margin:0}
.qr-demo-actions{display:flex;justify-content:center;gap:8px;margin-top:14px;flex-wrap:wrap}
.qr-demo-actions button{
  border:1px solid #e5e7eb;background:#fff;color:#475569;border-radius:11px;padding:9px 12px;font-size:10px;font-weight:900;cursor:pointer
}
.qr-demo-actions .primary{border:0;background:#111827;color:#fff}
.qr-state{
  display:none;margin:14px auto 0;max-width:300px;padding:11px 12px;border-radius:12px;background:#eff6ff;color:#1d4ed8;
  font-size:10px;font-weight:800;line-height:1.6
}
.qr-state.show{display:block}
.login-form-grid{display:grid;gap:13px}
.real-field label{display:block;font-size:10px;font-weight:900;color:#64748b;margin-bottom:6px}
.real-field input{
  width:100%;border:1px solid #dbe2ea;border-radius:12px;padding:12px 13px;outline:none;font-size:12px
}
.real-field input:focus{border-color:#9db0ff;box-shadow:0 0 0 3px rgba(99,102,241,.08)}
.real-login-submit{
  width:100%;height:43px;border:0;border-radius:13px;background:linear-gradient(135deg,#3157f6,#6b48ff);
  color:#fff;font-size:12px;font-weight:900;cursor:pointer
}
.login-helper-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#94a3b8}
.login-helper-row a{color:#6366f1;font-weight:800}
.login-policy{font-size:9px;color:#94a3b8;line-height:1.65;margin-top:14px}

/* Checkout modal */
.checkout-card{width:min(1080px,100%)}
.checkout-head{
  padding:20px 24px;border-bottom:1px solid #e8edf4;background:#fbfcff;display:flex;justify-content:space-between;gap:16px;align-items:flex-start
}
.checkout-head h3{margin:0 0 5px;font-size:22px}
.checkout-head p{margin:0;color:#64748b;font-size:11px}
.checkout-user{padding:7px 10px;border-radius:11px;background:#fff;border:1px solid #e5e7eb;font-size:10px;color:#64748b}
.checkout-body{display:grid;grid-template-columns:1.1fr .9fr}
.checkout-left{padding:20px;border-right:1px solid #e8edf4}
.checkout-right{padding:20px;background:#fbfcff}
.checkout-plan-switch{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:15px}
.checkout-plan{
  border:1px solid #e5e7eb;background:#fff;border-radius:16px;padding:14px;cursor:pointer;position:relative
}
.checkout-plan.active{border-color:#818cf8;background:#fafaff;box-shadow:0 8px 20px rgba(99,102,241,.08)}
.checkout-plan.active:after{
  content:"✓";position:absolute;right:10px;top:10px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  background:#6366f1;color:#fff;font-size:10px;font-weight:900
}
.checkout-plan b{display:block;font-size:13px}
.checkout-plan strong{display:block;font-size:20px;margin-top:5px}
.checkout-plan span{font-size:9px;color:#94a3b8}
.checkout-section-title{font-size:11px;font-weight:900;margin:14px 0 9px}
.checkout-methods{display:flex;gap:8px;flex-wrap:wrap}
.checkout-method{
  border:1px solid #e5e7eb;background:#fff;border-radius:11px;padding:9px 12px;font-size:10px;font-weight:900;color:#64748b;cursor:pointer
}
.checkout-method.active{border-color:#c7d2fe;background:#eef2ff;color:#4338ca}
.checkout-pay-view{display:none}
.checkout-pay-view.active{display:block}
.checkout-qr-wrap{padding:16px;border:1px dashed #dbe2ea;border-radius:16px;text-align:center;margin-top:10px}
.checkout-qr{width:138px;height:138px;margin:0 auto 9px;border:7px solid #fff;border-radius:13px;box-shadow:0 0 0 1px #e5e7eb;
  background:
  linear-gradient(90deg,#111 8px,transparent 8px) 0 0/24px 24px,
  linear-gradient(#111 8px,transparent 8px) 0 0/24px 24px,
  #fff
}
.checkout-qr-wrap p{margin:0;color:#94a3b8;font-size:9px}
.checkout-pay-demo{margin-top:10px;border:0;border-radius:10px;padding:8px 10px;background:#111827;color:#fff;font-size:9px;font-weight:900;cursor:pointer}
.checkout-summary-card{background:#fff;border:1px solid #e8edf4;border-radius:18px;padding:16px}
.checkout-summary-card h4{margin:0 0 12px;font-size:13px}
.checkout-row{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#64748b;margin:8px 0}
.checkout-row.total{border-top:1px dashed #d9dfeb;padding-top:11px;margin-top:12px;font-size:14px;color:#111827;font-weight:900}
.checkout-benefits{margin:13px 0 0;padding:12px;border-radius:13px;background:#f8fafc}
.checkout-benefits b{font-size:10px;display:block;margin-bottom:6px}
.checkout-benefits ul{margin:0;padding-left:18px;font-size:9px;color:#64748b;line-height:1.8}
.checkout-footer-note{margin-top:12px;font-size:9px;color:#94a3b8;line-height:1.65}

/* payment status and order detail */
.pay-status-view{display:none;padding:28px}
.pay-status-view.show{display:block}
.pay-status-center{text-align:center;max-width:600px;margin:0 auto}
.pay-status-icon{
  width:66px;height:66px;border-radius:22px;background:#ecfdf5;color:#047857;display:grid;place-items:center;
  font-size:30px;font-weight:900;margin:0 auto 15px
}
.pay-status-center h3{font-size:25px;margin:0 0 6px}
.pay-status-center p{margin:0;color:#64748b;font-size:11px;line-height:1.7}
.pay-order-mini{
  margin:18px auto 0;max-width:520px;background:#f8fafc;border:1px solid #e8edf4;border-radius:18px;padding:16px;text-align:left
}
.pay-order-mini .checkout-row{font-size:11px}
.pay-status-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:18px}
.pay-status-actions button{
  border:1px solid #e5e7eb;background:#fff;border-radius:11px;padding:10px 13px;font-size:10px;font-weight:900;cursor:pointer
}
.pay-status-actions .primary{border:0;background:linear-gradient(135deg,#3157f6,#6b48ff);color:#fff}

/* User center */
.user-center-card{width:min(1050px,100%)}
.user-center-layout{display:grid;grid-template-columns:220px 1fr;min-height:620px}
.user-center-side{padding:20px;background:#0f172a;color:#cbd5e1}
.user-center-profile{padding:10px 6px 18px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:12px}
.user-center-profile b{display:block;color:#fff;font-size:13px;margin-top:8px}
.user-center-profile span{font-size:9px;color:#94a3b8}
.uc-nav{display:grid;gap:5px}
.uc-nav button{
  border:0;background:transparent;color:#cbd5e1;text-align:left;padding:10px 11px;border-radius:10px;font-size:11px;font-weight:800;cursor:pointer
}
.uc-nav button.active{background:#1e293b;color:#fff}
.user-center-main{padding:22px;background:#fbfcff}
.uc-view{display:none}
.uc-view.active{display:block}
.uc-title-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px}
.uc-title-row h3{margin:0;font-size:23px}
.uc-title-row p{margin:5px 0 0;color:#64748b;font-size:11px}
.profile-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.profile-info-card{background:#fff;border:1px solid #e8edf4;border-radius:18px;padding:16px}
.profile-info-card label{display:block;font-size:9px;color:#94a3b8;font-weight:900;margin-bottom:6px}
.profile-info-card b{font-size:13px}
.membership-card{
  border-radius:22px;padding:22px;background:linear-gradient(135deg,#111827,#312e81);color:#fff;position:relative;overflow:hidden
}
.membership-card:after{
  content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-70px;top:-70px;background:rgba(255,255,255,.08)
}
.membership-card span{font-size:9px;color:#cbd5e1;position:relative;z-index:2}
.membership-card h4{font-size:25px;margin:5px 0 9px;position:relative;z-index:2}
.membership-card p{font-size:10px;color:#cbd5e1;margin:0;position:relative;z-index:2}
.order-table{background:#fff;border:1px solid #e8edf4;border-radius:18px;overflow:hidden}
.order-table-head,.order-record{
  display:grid;grid-template-columns:1.2fr .7fr .65fr .7fr .55fr;gap:10px;align-items:center;padding:12px 14px
}
.order-table-head{background:#f8fafc;font-size:9px;color:#94a3b8;font-weight:900}
.order-record{border-top:1px solid #edf0f5;font-size:10px;color:#475569}
.order-record b{font-size:10px}
.order-record button{
  border:0;background:#eef2ff;color:#4338ca;border-radius:8px;padding:6px 8px;font-size:9px;font-weight:900;cursor:pointer
}
.empty-order{padding:38px;text-align:center;color:#94a3b8;font-size:11px}
.order-detail-box{background:#fff;border:1px solid #e8edf4;border-radius:18px;padding:18px}
.order-detail-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding-bottom:13px;border-bottom:1px solid #edf0f5}
.order-detail-head h4{margin:0 0 5px;font-size:16px}
.order-detail-head p{margin:0;color:#94a3b8;font-size:9px}
.paid-badge{padding:6px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:9px;font-weight:900}
.order-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}
.order-detail-item{padding:11px;border-radius:12px;background:#f8fafc}
.order-detail-item span{display:block;font-size:9px;color:#94a3b8}
.order-detail-item b{display:block;font-size:11px;margin-top:4px}
.history-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}
.history-stat{padding:14px 15px;border-radius:16px;background:#fff;border:1px solid #e8edf4}
.history-stat span{display:block;font-size:9px;color:#94a3b8;font-weight:900}
.history-stat b{display:block;margin-top:5px;font-size:20px;color:#1e293b}
.history-list{display:grid;gap:10px}
.history-record{
  padding:16px;border-radius:18px;background:#fff;border:1px solid #e8edf4;
  transition:.18s ease;cursor:pointer;outline:none
}
.history-record:hover{border-color:#c7d2fe;box-shadow:0 10px 24px rgba(99,102,241,.06)}
.history-record:focus-visible{border-color:#818cf8;box-shadow:0 0 0 3px rgba(99,102,241,.12)}
.history-record-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.history-record-kind{display:inline-flex;padding:5px 8px;border-radius:8px;background:#eef2ff;color:#4338ca;font-size:9px;font-weight:900}
.history-record-status{padding:5px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:9px;font-weight:900;white-space:nowrap}
.history-record-status.draft{background:#f1f5f9;color:#475569}
.history-record h4{margin:9px 0 6px;font-size:13px;line-height:1.6;color:#1e293b}
.history-record-summary{margin:9px 0 0;color:#64748b;font-size:10px;line-height:1.75}
.history-record-meta{display:flex;gap:6px;flex-wrap:wrap}
.history-record-meta span{padding:4px 7px;border-radius:999px;background:#f8fafc;color:#64748b;font-size:9px;font-weight:800}
.history-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}
.history-metric{padding:9px;border-radius:11px;background:#f8fafc;text-align:center}
.history-metric b{display:block;font-size:13px;color:#1e293b}
.history-metric span{display:block;margin-top:2px;font-size:8px;color:#94a3b8}
.history-chapter-preview{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px}
.history-chapter-preview span{padding:5px 8px;border-radius:8px;background:#f8fafc;color:#475569;font-size:9px;font-weight:800}
.history-record-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding-top:12px;border-top:1px solid #edf0f5}
.history-record-time{font-size:9px;color:#94a3b8}
.history-record-actions{display:flex;gap:7px;flex-wrap:wrap}
.history-record-actions button{
  border:1px solid #e5e7eb;background:#fff;color:#475569;border-radius:9px;padding:7px 9px;font-size:9px;font-weight:900;cursor:pointer
}
.history-record-actions button.primary{border:0;background:#eef2ff;color:#4338ca}
.history-score{font-size:11px;font-weight:900;color:#4338ca}
.history-detail-note{margin-top:14px;padding:12px 13px;border-radius:13px;background:#eef2ff;color:#4338ca;font-size:10px;line-height:1.7}
.history-detail-content{display:grid;gap:10px;margin-top:14px}
.history-detail-section{padding:14px;border-radius:14px;background:#fff;border:1px solid #e8edf4}
.history-detail-section h5{margin:0 0 7px;font-size:12px;color:#1e293b}
.history-detail-section p{margin:0;color:#64748b;font-size:10px;line-height:1.8}
.history-detail-section p+p{margin-top:7px}
.history-detail-section .proposal-ai-note{margin-top:9px;padding:9px 10px;border-radius:10px;background:#eef2ff;color:#4338ca;font-size:9px;line-height:1.7}
@media(max-width:920px){
  .login-modal-grid,.checkout-body,.user-center-layout{grid-template-columns:1fr}
  .login-brand-side{display:none}
  .checkout-left{border-right:0;border-bottom:1px solid #e8edf4}
  .user-center-side{display:none}
}
@media(max-width:660px){
  .checkout-plan-switch,.profile-card-grid,.order-detail-grid,.history-summary{grid-template-columns:1fr}
  .order-table-head{display:none}
  .order-record{grid-template-columns:1fr 1fr}
  .history-record-top,.history-record-bottom{display:block}
  .history-record-status{display:inline-flex;margin-top:8px}
  .history-record-actions{margin-top:10px}
  .history-metrics{grid-template-columns:repeat(2,1fr)}
}

.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.price-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:27px;position:relative}
.price-card.pop{border:1.5px solid #7c84ff;box-shadow:0 18px 50px rgba(79,70,229,.13)}
.pop-tag{position:absolute;right:18px;top:18px;background:#111827;color:white;font-size:11px;border-radius:999px;padding:5px 9px;font-weight:800}
.price{font-size:36px;font-weight:900;margin:16px 0 0}
.price small{font-size:13px;color:var(--muted);font-weight:600}
.price-sub{color:var(--muted);font-size:13px;margin:0 0 18px}
.compare{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:20px}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{padding:15px 18px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}
th{background:#f8fafc;color:#475569}
td strong{color:var(--primary)}
.security{
  display:grid;grid-template-columns:1.1fr .9fr;gap:20px;align-items:stretch
}
.security-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px}
.security-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}
.sec{padding:14px;background:#f8fafc;border-radius:14px;font-size:13px;color:#475569}
.sec b{display:block;color:#0f172a;margin-bottom:4px}
.faq{max-width:900px;margin:0 auto}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:15px;margin-bottom:10px;overflow:hidden}
.faq-q{padding:17px 20px;display:flex;justify-content:space-between;cursor:pointer;font-weight:800}
.faq-a{padding:0 20px 18px;color:var(--muted);font-size:14px;display:none}
.faq-item.open .faq-a{display:block}
.cta{
  margin:70px auto 84px;background:linear-gradient(135deg,#2039e8,#6c3df0);
  color:#fff;border-radius:30px;padding:50px;text-align:center;position:relative;overflow:hidden
}
.cta:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;left:-160px;top:-250px;background:rgba(255,255,255,.08)}
.cta h2{margin:0 auto 12px;max-width:700px}
.cta p{color:#dbe3ff}
.cta .btn-light{color:#1e293b;background:#fff;border:1px solid rgba(255,255,255,.72);position:relative;z-index:2;min-width:204px;font-size:17px;font-weight:900;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.cta .btn-light:hover{color:#3157f6;background:#fff;transform:translateY(-2px)}
.cta:before{pointer-events:none}
.footer{border-top:1px solid var(--line);padding:28px 0 42px;color:#64748b;font-size:13px}
.footer-row{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.toast{
  position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);
  opacity:0;pointer-events:none;background:#111827;color:#fff;padding:11px 15px;border-radius:12px;
  box-shadow:var(--shadow);transition:.25s;z-index:100;font-size:13px
}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:960px){
  .nav-links{display:none}
  .hero-grid,.feature-main,.demo-wrap,.security{grid-template-columns:1fr}
  .cards,.pricing{grid-template-columns:1fr}
  .hero{padding-top:56px}
  h1{font-size:44px}
  .stats-row{grid-template-columns:1fr 1fr}
  .stat:nth-child(2){border-right:0}
  .stat:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .flow{grid-template-columns:1fr}
  .arrow{transform:rotate(90deg)}
}
@media(max-width:620px){
  .container{width:min(100% - 24px,1180px)}
  .nav-actions .btn-ghost{display:none}
  h1{font-size:37px}
  h2{font-size:30px}
  .section-head{display:block}
  .section-desc{margin-top:14px}
  .stats-row{grid-template-columns:1fr}
  .stat{border-right:0;border-bottom:1px solid var(--line)!important}
  .stat:last-child{border-bottom:0!important}
  section{padding:62px 0}
  .hero-actions .btn{width:100%}
}

/* ===== V7: full-page workbench + sticky step guide ===== */
body.product-mode{
  --workspace-ink:#10223f;
  --workspace-blue:#3267f5;
  --workspace-mint:#eaf4ff;
  background:#edf3fb;
}
body.product-mode .container{width:min(1480px,calc(100% - 48px))}
body.product-mode .workspace-nav{
  background:var(--workspace-ink);border-bottom:0;box-shadow:0 8px 30px rgba(15,35,67,.18)
}
body.product-mode .workspace-nav-inner{min-height:74px;gap:22px}
body.product-mode .workspace-brand{min-width:172px;color:#fff;cursor:pointer}
body.product-mode .workspace-brand .logo{background:linear-gradient(135deg,#72a7ff,#8b7cff);box-shadow:0 8px 22px rgba(93,137,255,.32)}
body.product-mode .workspace-brand small{color:rgba(255,255,255,.52)}
body.product-mode .workspace-module-nav{align-self:stretch;justify-content:center;gap:8px;overflow:visible}
.workspace-nav-group{position:relative;display:flex;align-self:stretch}
.workspace-nav-link{
  position:relative;align-self:stretch;min-width:154px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  border:0;background:transparent;color:rgba(255,255,255,.62);padding:0 20px;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer
}
.workspace-nav-link:hover{color:#fff;background:rgba(255,255,255,.05)}
.workspace-nav-link.active{color:#fff}
.workspace-nav-link>span{font-size:14px;line-height:1.2}.workspace-nav-link>small{display:block;margin-top:5px;color:rgba(255,255,255,.42);font-size:8px;font-weight:700}
.workspace-nav-link.active>small,.workspace-nav-link:hover>small{color:rgba(255,255,255,.68)}
.workspace-nav-link>i{position:absolute;right:14px;top:27px;font-style:normal;font-size:11px;color:rgba(255,255,255,.46);transition:.18s}
.workspace-nav-group.menu-open .workspace-nav-link>i,.workspace-nav-group:hover .workspace-nav-link>i{transform:rotate(180deg)}
.workspace-nav-link.active:after{
  content:"";position:absolute;left:12px;right:12px;bottom:0;height:4px;border-radius:4px 4px 0 0;background:#7aa8ff
}
.workspace-nav-menu{
  display:none;position:absolute;left:0;top:calc(100% - 1px);z-index:130;width:340px;padding:10px;border:1px solid #dfe7f2;border-radius:0 0 16px 16px;
  background:#fff;box-shadow:0 18px 42px rgba(15,35,67,.18)
}
.workspace-nav-menu.proposal-menu{width:520px;grid-template-columns:1fr 1fr;gap:6px}
.workspace-nav-group:hover .workspace-nav-menu,.workspace-nav-group.menu-open .workspace-nav-menu{display:grid}
.workspace-nav-menu button{
  display:block;width:100%;padding:12px 13px;border:0;border-radius:11px;background:#fff;color:#1e293b;text-align:left;cursor:pointer
}
.workspace-nav-menu button:hover,.workspace-nav-menu button.active{background:#eef3ff;color:#284fb8}
.workspace-nav-menu button b{display:block;font-size:11px}.workspace-nav-menu button span{display:block;margin-top:3px;color:#8491a3;font-size:8px;line-height:1.5}
.workspace-nav-menu button.active span{color:#6680bf}
.workspace-nav-menu button:disabled{background:#f7f8fa;color:#aeb8c7;cursor:not-allowed;opacity:.72}
.workspace-nav-menu button:disabled:hover{background:#f7f8fa;color:#aeb8c7}.workspace-nav-menu button:disabled span{color:#bdc5d0}
body.product-mode .workspace-action{
  color:#dbeafe;border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.08)
}
body.product-mode .workspace-account b{color:#fff}
body.product-mode .workspace-account small{color:rgba(255,255,255,.5)}
body.product-mode .workspace-account .user-avatar{background:#fff;color:#274690}
body.product-mode .product-hub{
  padding:18px 0 88px;background:
  radial-gradient(circle at 50% 10%,rgba(111,162,255,.18),transparent 36%),
  linear-gradient(180deg,#eaf2fd 0,#f6f8fc 520px,#f6f8fc 100%)
}
body.product-mode .workspace-context{
  position:relative;margin:0 0 12px;padding:12px 18px;border:1px solid #dbe7f7;border-radius:16px;
  background:rgba(255,255,255,.88);box-shadow:0 8px 24px rgba(29,53,87,.05)
}
.workspace-context-copy{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.workspace-context-copy em{
  font-style:normal;color:#3157f6;background:#eef3ff;border:1px solid #dbe5ff;padding:5px 8px;border-radius:999px;
  font-size:9px;font-weight:900
}
.workspace-context-copy b{font-size:13px!important}
.workspace-context-copy span{margin:0!important}
.workspace-context-flow{margin-left:auto}
.workspace-context-flow i{background:#edf2f8}
body.product-mode #demo{padding:42px 0 20px}
body.product-mode #demo>.container>.section-head{align-items:center;margin-bottom:24px}
body.product-mode #demo>.container>.section-head h2{font-size:46px;letter-spacing:-.045em}
body.product-mode #demo>.container>.section-head .section-desc{font-size:14px;max-width:560px}
.workspace-value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}
.workspace-value-grid article{
  min-height:118px;display:flex;align-items:flex-start;gap:14px;padding:22px 24px;border:1px solid rgba(255,255,255,.9);
  border-radius:20px;background:rgba(255,255,255,.78);box-shadow:0 12px 32px rgba(35,67,110,.06)
}
.workspace-value-grid article:nth-child(2){background:linear-gradient(145deg,#fffaf1,#fff)}
.workspace-value-grid article:nth-child(3){background:linear-gradient(145deg,#f0fbf7,#fff)}
.workspace-value-grid article>span{
  width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;border-radius:12px;background:#eaf0ff;color:#3157f6;
  font-size:11px;font-weight:900
}
.workspace-value-grid b{display:block;font-size:16px}.workspace-value-grid p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.65}
body.product-mode .wizard-shell{overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
body.product-mode .wizard-head{display:none}
body.product-mode .wizard-body{grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start;min-height:0}
body.product-mode .wizard-rail{
  position:sticky;top:96px;z-index:5;padding:18px 6px 18px 0;border:0;background:transparent;height:max-content
}
body.product-mode .wizard-rail .rail-label{padding-left:10px;color:#8090a7}
body.product-mode .rail-step{
  position:relative;gap:14px;margin:0;padding:8px 8px 34px;background:transparent!important;border-radius:0;cursor:pointer;color:#8998ab
}
body.product-mode .rail-step:last-child{padding-bottom:8px}
body.product-mode .rail-step:not(:last-child):after{
  content:"";position:absolute;left:27px;top:45px;bottom:0;width:2px;background:#cad6e5
}
body.product-mode .rail-step .rail-num{
  position:relative;z-index:1;width:40px;height:40px;border-radius:50%;background:#dfe7f1;color:#6b7c91;font-size:12px
}
body.product-mode .rail-step b{font-size:14px;margin-top:2px;color:inherit}
body.product-mode .rail-step small{font-size:10px;max-width:170px}
body.product-mode .rail-step.active{color:#234fc7}
body.product-mode .rail-step.active .rail-num{background:#3267f5;color:#fff;box-shadow:0 0 0 7px rgba(50,103,245,.10)}
body.product-mode .rail-step.done{color:#40536d}
body.product-mode .rail-step.done .rail-num{background:#dff6ec;color:#08795a}
body.product-mode .wizard-main{padding:0;overflow:visible;background:transparent}
body.product-mode #assistantModule .stage{
  display:none!important;position:relative;scroll-margin-top:100px;margin:0 0 22px;padding:34px 36px;border:1px solid #e1e8f2;
  border-radius:24px;background:#fff;box-shadow:0 14px 40px rgba(35,58,91,.07);animation:none;transition:.22s ease
}
body.product-mode #assistantModule .stage.active{display:block!important;border-color:#b9cdfb;box-shadow:0 16px 44px rgba(49,87,246,.10)}
body.product-mode #assistantModule .stage.stage-locked{opacity:.55;filter:saturate(.7);pointer-events:none}
body.product-mode #assistantModule .stage.stage-locked:after{
  content:"完成上一步后解锁";position:absolute;right:24px;top:24px;padding:6px 9px;border-radius:999px;background:#eef2f7;color:#718096;
  font-size:9px;font-weight:900
}
body.product-mode #assistantModule .stage h3{font-size:27px}
body.product-mode #assistantModule .wizard-actions{padding-top:18px;border-top:1px solid #edf1f6}
body.product-mode .btn-next,body.product-mode .proposal-btn.primary{background:#3267f5;box-shadow:0 8px 20px rgba(50,103,245,.22)}

body.product-mode #proposalModule>section{padding:42px 0 20px}
body.product-mode .proposal-shell{overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
body.product-mode .proposal-appbar{border:1px solid #dfe7f1;border-radius:20px;margin-bottom:24px;box-shadow:0 10px 30px rgba(35,58,91,.05)}
body.product-mode .proposal-wizard-body{grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start;min-height:0}
body.product-mode .proposal-flow-rail{
  position:sticky;top:96px;z-index:5;padding:18px 6px 18px 0;border:0;background:transparent;height:max-content
}
body.product-mode .proposal-flow-step{position:relative;gap:14px;margin:0;padding:8px 8px 30px;background:transparent!important;border-radius:0}
body.product-mode .proposal-flow-step:last-child{padding-bottom:8px}
body.product-mode .proposal-flow-step:not(:last-child):after{content:"";position:absolute;left:27px;top:45px;bottom:0;width:2px;background:#cad6e5}
body.product-mode .proposal-flow-step .rail-num{position:relative;z-index:1;width:40px;height:40px;border-radius:50%;font-size:12px}
body.product-mode .proposal-flow-step b{font-size:14px}body.product-mode .proposal-flow-step small{font-size:10px;max-width:170px}
body.product-mode .proposal-flow-step.active{color:#234fc7}
body.product-mode .proposal-flow-step.active .rail-num{background:#3267f5;box-shadow:0 0 0 7px rgba(50,103,245,.10)}
body.product-mode .proposal-flow-step.locked{color:#a5b2c5;cursor:not-allowed;pointer-events:none;opacity:.72}
body.product-mode .proposal-flow-step.locked .rail-num{background:#e8edf4;color:#9cabc0;box-shadow:none}
body.product-mode .proposal-flow-step.locked:hover{color:#a5b2c5;background:transparent!important}
body.product-mode .proposal-flow-step.locked:not(:last-child):after{background:#d8e0eb}
body.product-mode .proposal-main{padding:0;background:transparent;overflow:visible}
body.product-mode .proposal-generation-stage{
  display:none!important;position:relative;scroll-margin-top:100px;margin-bottom:22px;padding:34px 36px;border:1px solid #e1e8f2;
  border-radius:24px;background:#fff;box-shadow:0 14px 40px rgba(35,58,91,.07);animation:none
}
body.product-mode .proposal-generation-stage.active{display:block!important}
body.product-mode .proposal-generation-stage.stage-locked{opacity:.55;pointer-events:none}
body.product-mode .proposal-generation-stage.stage-locked:after{
  content:"创建项目后解锁章节生成";position:absolute;right:24px;top:24px;padding:6px 9px;border-radius:999px;background:#eef2f7;color:#718096;
  font-size:9px;font-weight:900
}
body.product-mode .proposal-result{border-radius:18px}
body.product-mode .post-shell,body.product-mode .check-shell{box-shadow:0 14px 40px rgba(35,58,91,.07)}

@media(max-width:1240px){
  body.product-mode .workspace-brand{min-width:auto}
  body.product-mode .workspace-brand-copy{display:none}
  .workspace-nav-link{min-width:132px;padding:0 15px;font-size:11px}
  body.product-mode .workspace-actions .workspace-history-action{display:none}
}
@media(max-width:980px){
  body.product-mode .container{width:min(100% - 28px,1480px)}
  body.product-mode .workspace-nav-inner{gap:10px}
  body.product-mode .workspace-module-nav{justify-content:flex-start;overflow:visible}
  body.product-mode #demo>.container>.section-head h2{font-size:36px}
  .workspace-value-grid{grid-template-columns:1fr}
  body.product-mode .wizard-body,body.product-mode .proposal-wizard-body{grid-template-columns:1fr;gap:16px}
  body.product-mode .wizard-rail,body.product-mode .proposal-flow-rail{
    position:sticky;top:74px;display:flex;gap:8px;overflow-x:auto;padding:10px;background:rgba(237,243,251,.96);border-radius:16px;z-index:12
  }
  body.product-mode .wizard-rail .rail-label,body.product-mode .proposal-flow-rail .rail-label{display:none}
  body.product-mode .rail-step,body.product-mode .proposal-flow-step{min-width:170px;padding:7px 10px!important;border-radius:12px}
  body.product-mode .rail-step:not(:last-child):after,body.product-mode .proposal-flow-step:not(:last-child):after{display:none}
  body.product-mode .rail-step .rail-num,body.product-mode .proposal-flow-step .rail-num{width:32px;height:32px}
}
@media(max-width:680px){
  body.product-mode .container{width:min(100% - 20px,1480px)}
  body.product-mode .workspace-actions{display:none}
  body.product-mode .workspace-brand .logo{width:28px;height:28px}
  .workspace-nav-link{min-width:94px;padding:0 9px;font-size:10px}.workspace-nav-link>span{font-size:11px}.workspace-nav-link>small{display:none}.workspace-nav-link>i{right:7px;top:29px}
  .workspace-nav-menu{position:fixed;left:10px;right:10px;top:74px;width:auto!important;max-height:calc(100vh - 90px);overflow:auto;border-radius:0 0 16px 16px}
  .workspace-nav-menu.proposal-menu{grid-template-columns:1fr 1fr}
  .workspace-context-flow{display:none}
  body.product-mode #demo{padding-top:28px}
  body.product-mode #demo>.container>.section-head h2{font-size:31px}
  .workspace-value-grid article{min-height:auto;padding:17px}
  body.product-mode #assistantModule .stage,body.product-mode .proposal-generation-stage{padding:26px 18px;border-radius:19px}
  body.product-mode #assistantModule .stage.stage-locked:after,body.product-mode .proposal-generation-stage.stage-locked:after{position:static;display:inline-block;margin-bottom:12px}
}

/* V-next: 体验版去商业化与账号入口 */
#pricing,#loginModal,#checkoutModal,#userCenterModal,#orderDetailModal{display:none!important}
.workspace-actions{display:none!important}

/* ===== V10: 结果私域锁定与精简流程 ===== */
#stage5,#checkModule,#contentCheckModule,#revisionModule,#finalReviewModule,#exportModule,#archiveModule{display:none!important}
#leadQrModal.result-lock{background:rgba(15,23,42,.72);backdrop-filter:blur(8px) grayscale(.18)}
#leadQrModal.result-lock .lead-modal-shell{width:min(430px,calc(100% - 56px))}#leadQrModal.result-lock .lead-modal-card{width:100%;max-height:calc(100vh - 40px);overflow:auto}
#leadQrModal.result-lock .lead-modal-grid{grid-template-columns:1fr;min-height:0}
#leadQrModal.result-lock .lead-modal-copy,#leadQrModal.result-lock .lead-modal-actions{display:none!important}
#leadQrModal.result-lock .lead-modal-qr{padding:34px 28px 30px;min-height:420px}
#leadQrModal.result-lock .lead-modal-qr h4{font-size:22px}
#leadQrModal.result-lock .lead-qr-img{width:236px;height:236px}
@media(max-width:620px){#leadQrModal.result-lock .lead-modal-shell{width:min(390px,calc(100% - 18px))}#leadQrModal.result-lock .lead-modal-qr{padding:28px 20px;min-height:390px}#leadQrModal.result-lock .lead-qr-img{width:215px;height:215px}}


/* ---- original style block boundary ---- */

@page{size:A4;margin:2.4cm 2.2cm}body{font-family:SimSun,"宋体",serif;color:#222;line-height:1.9}.topic-report-letterhead{display:flex;justify-content:space-between;border-bottom:2px solid #234fc7;padding-bottom:10px;color:#234fc7}.topic-report-title-group{text-align:center;padding:28px 0 20px;border-bottom:1px solid #ccc}.topic-report-title-group h4{font-size:18pt;line-height:1.6}.report-tags span{margin:0 4px;font-size:9pt}.topic-report-summary{display:table;width:100%;margin:22px 0}.topic-report-summary>div{display:table-cell;text-align:center;border:1px solid #ccc;padding:10px}.topic-report-summary b{display:block;font-size:16pt}.topic-report-summary span{font-size:9pt}.topic-report-section{margin:0 0 22px;padding:0}.topic-report-section h5{font-size:13pt;border-bottom:1px solid #ccc;padding-bottom:6px}.topic-report-section p,.topic-report-section li{font-size:11pt;line-height:1.9;text-align:justify}.topic-report-notice{margin-top:28px;border:1px solid #ccc;background:#f5f5f5;padding:10px;font-size:9pt}.topic-report-footer{display:flex;justify-content:space-between;border-top:1px solid #ccc;margin-top:30px;padding-top:8px;font-size:8pt;color:#777}

/* ---- original style block boundary ---- */

@page{size:A4;margin:2.2cm}body{font-family:SimSun,"宋体",serif;color:#222;line-height:1.8}h1{text-align:center;font-size:20pt;margin:0 0 22px}h2{font-size:13pt;border-left:4px solid #315efb;padding-left:9px;margin-top:24px}.meta{text-align:center;color:#666;font-size:10pt;margin-bottom:28px}.summary{background:#f5f7fb;border:1px solid #d9e0ec;padding:14px}.score{font-size:24pt;color:#315efb;font-weight:bold}table{width:100%;border-collapse:collapse;font-size:9pt}th,td{border:1px solid #bbb;padding:7px;text-align:left;vertical-align:top}th{background:#eef2f8}.note{margin-top:28px;padding-top:10px;border-top:1px solid #bbb;color:#777;font-size:9pt}