:root{
  --ink:#263b49;
  --muted:#7d8b91;
  --line:#e8e9e4;
  --canvas:#f4f5f2;
  --white:#fff;
  --yellow:#f5c34e;
  --yellow-light:#ffdc7d;
  --orange:#ed982d;
  --navy:#203e52;
  --teal:#3f8175;
  --soft:#faf8f2;
  --shadow:0 8px 24px rgba(37,56,69,.06);
  --sidebar-w:240px;
  --rail-w:302px;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--canvas);color:var(--ink);overflow:hidden;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
button,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
button:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #c88f2e;outline-offset:2px}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:#d7dcd7;border-radius:10px}
::-webkit-scrollbar-track{background:transparent}

.app{
  height:100vh;min-height:640px;
  display:grid;grid-template-columns:var(--sidebar-w) minmax(0,1fr);
  overflow:hidden;
}

/* Sidebar */
.sidebar{
  min-height:0;
  background:linear-gradient(180deg,#f8d36e 0%,#f5c34e 55%,#efb63d 100%);
  border-right:1px solid #e7b23c;
  padding:20px 14px 16px;
  display:flex;flex-direction:column;
  overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;
  z-index:40;
}
.brand{display:flex;align-items:center;gap:11px;padding:0 8px 20px}
.brand-icon{
  width:38px;height:38px;border-radius:12px;background:#263f52;color:#fff;
  display:grid;place-items:center;font-size:20px;font-weight:900;
  box-shadow:0 5px 12px rgba(118,80,13,.16);flex:none;
}
.brand-name{font-size:15px;font-weight:900;letter-spacing:.13em;line-height:1}
.brand-sub{font-size:9px;letter-spacing:.15em;color:#73531e;margin-top:5px;font-weight:650}
.sidebar-close{display:none;margin-left:auto;font-size:22px;line-height:1;color:#6b4d15;padding:2px 6px;border-radius:8px}

.slogan-card{
  position:relative;display:flex;align-items:center;flex:none;padding:13px 14px 13px 17px;
  background:linear-gradient(135deg,rgba(255,251,238,.95),rgba(255,241,206,.7));
  border:1px solid #fff8e2;border-radius:10px;
  margin:0 2px 20px;overflow:hidden;
}
.slogan-card::before{
  content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,#f3a16f,#c8804d);
}
.slogan-card b{display:block;font-size:13.5px;font-weight:900;letter-spacing:.1em;color:#3a2a0b;line-height:1.35;
  white-space:nowrap}

.nav-label{font-size:10px;letter-spacing:.18em;font-weight:850;color:#79571e;padding:0 10px 9px}
.nav-label.spaced{margin-top:20px}
.nav{display:grid;gap:3px}
.nav button{
  height:40px;border-radius:9px;color:#394b50;text-align:left;padding:0 11px;
  display:flex;align-items:center;gap:11px;font-size:13px;font-weight:650;
  transition:background .16s ease,color .16s ease;
}
.nav button:hover{background:rgba(255,245,220,.6)}
.nav button.active{background:#fffdf6;color:#263e4d;box-shadow:0 3px 10px rgba(140,100,27,.12);font-weight:800}
.nav-icon{width:18px;text-align:center;font-size:14px;flex:none;opacity:.9}
.nav-badge{margin-left:auto;font-size:10px;font-weight:800;background:#efdfb6;color:#6f5218;padding:3px 7px;border-radius:20px}
.nav-badge.new{background:#203e52;color:#ffe6b0}

.sidebar-foot{margin-top:auto;padding-top:14px;position:sticky;bottom:0;background:linear-gradient(180deg,rgba(243,197,79,0) 0%,#f2c04c 22%)}
@media(max-height:900px){.side-hot{display:none}.brand{padding-bottom:14px}.slogan-card{margin-bottom:16px}.nav-label.spaced{margin-top:14px}}
/* 矮屏：收紧间距，保证额度卡与用户行不被挤出视口 */
@media(max-height:840px){
  .sidebar{padding:14px 12px 12px}
  .brand{padding-bottom:10px}
  .brand-sub{display:none}
  .slogan-card{margin-bottom:12px;padding:9px 11px 9px 14px}
  .slogan-card b{font-size:12.5px;letter-spacing:.08em}
  .nav{gap:2px}
  .nav button{height:36px}
  .nav-label{padding-bottom:7px}
  .nav-label.spaced{margin-top:10px}
  .quota{padding:9px 10px;margin-bottom:9px}
  .quota small{font-size:9.5px}
  .sidebar-foot{padding-top:10px}
}
@media(max-height:760px){
  .quota small{display:none}
  .meter{margin:6px 0 4px}
  .quota-head.bean{margin-top:5px}
  .user{padding-top:9px}
  .nav button{height:34px}
}
.quota{background:rgba(255,247,228,.68);border:1px solid #fff9e8;border-radius:10px;padding:11px;margin:0 2px 12px}
.quota-head{display:flex;justify-content:space-between;font-size:11px;font-weight:800}
.quota-head span:last-child{color:#7b622e;font-weight:650}
.meter{height:5px;border-radius:5px;background:#fff;margin:8px 0 6px;overflow:hidden}
.meter i{display:block;width:38%;height:100%;background:#29485b;border-radius:5px;transition:width .5s ease}
.quota-head.bean{margin-top:7px;font-size:10.5px}
.quota-head.bean span:first-child{color:#8a6a24;font-weight:750}
.meter.bean{margin:6px 0 7px}
.meter.bean i{background:linear-gradient(90deg,#e7c25f,#c1902f)}
.meter.bean.low i{background:linear-gradient(90deg,#d8724f,#b8452b)}
.quota-bean-off{display:none}
.quota small{font-size:10px;color:#806632}
.user{border-top:1px solid rgba(149,107,38,.22);padding:12px 4px 0;display:flex;align-items:center;gap:9px}
.avatar{width:30px;height:30px;border-radius:50%;background:#29485b;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800;flex:none}
.user-copy b{display:block;font-size:11.5px}
.user-copy small{display:block;font-size:10px;color:#755b2b;margin-top:3px}

/* Main */
.main{min-width:0;min-height:0;display:grid;grid-template-rows:54px minmax(0,1fr);overflow:hidden}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px;background:#fff;border-bottom:1px solid var(--line)}
.topbar-left{display:flex;align-items:center;gap:12px;min-width:0}
.menu-btn{display:none;font-size:18px;color:#4a5f6a;padding:4px 8px;border-radius:8px}
.crumb{font-size:12px;color:#8b979b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crumb b{color:#344b57;font-weight:750}
.top-actions{display:flex;align-items:center;gap:9px}
.engine{display:flex;align-items:center;gap:6px;background:#edf5f1;color:#3d7b70;border-radius:20px;padding:6px 10px;font-size:11px;white-space:nowrap}
.led{width:7px;height:7px;border-radius:50%;background:#4b9d88;box-shadow:0 0 0 3px rgba(75,157,136,.16)}
.icon-btn{width:29px;height:29px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#62727b;font-size:13px}
.icon-btn:hover{border-color:#dfc79a;color:#96651f}

/* Workspace */
.workspace{min-height:0;min-width:0;padding:14px 20px 16px;display:grid;grid-template-columns:minmax(0,1fr) var(--rail-w);gap:14px;overflow:hidden}
.chat-shell{
  min-width:0;min-height:0;background:#fff;border:1px solid #e6e8e3;border-radius:14px;
  box-shadow:var(--shadow);display:grid;grid-template-rows:54px minmax(0,1fr) auto;overflow:hidden;
}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px;border-bottom:1px solid #eff0ec}
.chat-identity{display:flex;align-items:center;gap:10px;min-width:0}
.bot-mark{width:30px;height:30px;border-radius:10px;flex:none;background:linear-gradient(145deg,#ffe4a9,#f4b94d);display:grid;place-items:center;color:#694813;font-size:15px}
.chat-identity b{display:block;font-size:13px}
.chat-identity small{display:block;font-size:10.5px;color:#8e999d;margin-top:3px}
.chat-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.secure-label{font-size:10.5px;color:#438276;background:#edf5f1;padding:5px 9px;border-radius:20px;white-space:nowrap}
.head-action{border:1px solid #e9ebe6;background:#fff;border-radius:8px;color:#718087;padding:6px 10px;font-size:11px;white-space:nowrap}
.head-action:hover{border-color:#e6bd78;color:#96651f}

.thread{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px clamp(18px,3vw,44px) 26px;scrollbar-width:thin;scrollbar-color:#d9ded9 transparent}
.welcome{max-width:780px;margin:2.5vh auto 0;text-align:center;animation:fadeUp .5s ease both}
.welcome-symbol{
  width:52px;height:52px;margin:0 auto 14px;border-radius:16px;
  background:linear-gradient(145deg,#fff0d2,#f9d27b);display:grid;place-items:center;
  color:#9c681b;font-size:24px;box-shadow:0 7px 18px rgba(232,189,107,.24);
}
.welcome-kicker{font-size:10px;font-weight:850;letter-spacing:.2em;color:#b17b2f}
.welcome .welcome-h1{font-size:clamp(26px,2.4vw,34px);letter-spacing:-.03em;margin:12px 0 10px;color:#263f50;font-weight:750}
.welcome .welcome-h1 em{font-style:normal;color:#e6952d}
.welcome p{max-width:590px;margin:0 auto;color:#7e8b90;font-size:13px;line-height:1.85}
.welcome-prompts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:26px auto 0;max-width:780px;text-align:left}
.welcome-prompt{
  border:1px solid #e9e9e2;background:#fffefa;border-radius:11px;padding:13px;min-width:0;
  display:flex;flex-direction:column;gap:9px;transition:.18s ease;text-align:left;
}
.welcome-prompt:hover{border-color:#e6bd78;background:#fffaf0;transform:translateY(-2px);box-shadow:0 8px 18px rgba(180,140,60,.08)}
.wp-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:14px;flex:none}
.wp-icon.amber{background:#fff0d8;color:#b77920}
.wp-icon.blue{background:#edf2f5;color:#56788c}
.wp-icon.green{background:#eaf3ef;color:#438276}
.wp-copy b{display:block;font-size:12.5px}
.wp-copy small{display:block;font-size:11px;color:#8e999d;margin-top:4px;line-height:1.55}
.welcome-foot{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:22px;color:#929da1;font-size:11px}
.welcome-foot span{display:flex;align-items:center;gap:5px}
.welcome-foot i{font-style:normal;color:#438276;font-weight:900}

/* Messages */
.message-row{display:flex;gap:10px;max-width:1020px;margin:0 auto 20px;align-items:flex-start;animation:fadeUp .28s ease both}
.message-row.user{justify-content:flex-end}
.message-avatar{width:30px;height:30px;flex:none;border-radius:10px;display:grid;place-items:center;background:#fff0d5;color:#9b671e;font-size:12px}
.message-row.user .message-avatar{background:#eaf0f3;color:#496879}
.message-content{max-width:min(820px,calc(100% - 44px));min-width:0}
.message-meta{font-size:10.5px;color:#929da1;margin:1px 0 7px}
.bubble{
  font-size:13px;line-height:1.8;padding:11px 15px;border-radius:4px 12px 12px 12px;
  background:#f7f8f5;border:1px solid #edf0eb;color:#40535e;white-space:pre-wrap;word-break:break-word;
}
.user .bubble{background:#fff5e4;border-color:#f5e4c8;border-radius:12px 4px 12px 12px}

.thinking{max-width:1020px;margin:0 auto 20px;animation:fadeUp .28s ease both}
.thinking-card{background:#fff;border:1px solid #eef0ea;border-radius:12px;padding:14px 16px;max-width:540px}
.thinking-head{display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:750;color:#3c545f}
.pulse{width:8px;height:8px;border-radius:50%;background:#eda42f;animation:pulse 1.1s infinite;flex:none}
.think-steps{margin-top:11px;display:grid;gap:7px}
.think-step{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#98a3a6;transition:color .2s}
.think-dot{width:15px;height:15px;border-radius:50%;border:1px solid #e2e6e0;display:grid;place-items:center;font-size:8px;color:#fff;flex:none}
.think-step.doing{color:#44595f;font-weight:700}
.think-step.doing .think-dot{border-color:#eda42f;background:#f6b64a;animation:pulse 1.1s infinite}
.think-step.done{color:#5f7368}
.think-step.done .think-dot{border-color:#3e806f;background:#3e806f}

/* Answer */
.assistant-answer{max-width:1020px;margin:0 auto 32px;animation:fadeUp .35s ease both}
.answer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:11px;margin-bottom:14px;border-bottom:1px solid #edf0eb;flex-wrap:wrap}
.answer-label{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800;color:#3b5260}
.answer-label .mini-bot{width:30px;height:30px;border-radius:9px;background:#ffefcf;display:grid;place-items:center;color:#a46e1e;font-size:14px;flex:none}
.answer-label small{display:block;font-size:10px;font-weight:500;color:#929da1;margin-top:3px}
.answer-top-actions{display:flex;align-items:center;gap:6px}
.demo-tag{font-size:10px;color:#a47a39;background:#fff7e8;border:1px solid #f1e4cc;border-radius:20px;padding:5px 9px;white-space:nowrap}
.answer-tool{border:1px solid #e8ebe5;background:#fff;border-radius:7px;padding:6px 9px;color:#728087;font-size:11px}
.answer-tool:hover{border-color:#e7bd78;color:#9b6b23}
.answer-intro{font-size:13px;line-height:1.95;color:#52656e;margin:0 0 16px}

.answer-summary{
  position:relative;border:1px solid #eadfca;border-left:3px solid #e7a13a;
  background:linear-gradient(110deg,#fffdf8 0%,#fffaf0 100%);
  border-radius:10px;padding:16px 18px;margin:0 0 18px;
}
.answer-summary-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:9px}
.summary-eyebrow{display:block;font-size:9px;letter-spacing:.15em;color:#b18a4b;font-weight:850;margin-bottom:5px}
.answer-summary-head b{font-size:16.5px;color:#2c4453}
.summary-state{font-size:10px;color:#b17b2f;background:#fff3df;padding:5px 9px;border-radius:20px;white-space:nowrap}
.answer-summary p{font-size:13px;line-height:1.95;color:#5d6d73;margin:0}
.summary-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.summary-tags span{font-size:10.5px;color:#8a713f;background:#fff4df;border:1px solid #f2e6cf;border-radius:20px;padding:4px 9px}

.answer-section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 0 9px}
.answer-section-title span{font-size:14.5px;font-weight:850;color:#344c5b}
.answer-section-title small{font-size:9px;letter-spacing:.14em;color:#a1aaad}
.answer-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 16px}
.answer-stat{background:#fafbf8;border:1px solid #e9ede7;border-radius:9px;padding:12px 13px;min-width:0}
.answer-stat small{display:block;font-size:10.5px;color:#829096}
.answer-stat b{display:block;font-size:19px;color:#304a59;margin-top:5px;letter-spacing:-.01em}
.answer-stat em{display:block;font-size:10px;color:#9aa4a7;font-style:normal;margin-top:4px}

.answer-section{border-top:1px solid #e9ede8;padding:15px 0 14px}
.section-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:9px}
.section-number{width:26px;height:26px;border-radius:8px;background:#f5f0e5;color:#8a6a2f;display:grid;place-items:center;font-size:12px;font-weight:900;letter-spacing:.02em;flex:none;margin-top:-2px}
.section-heading>div{min-width:0;flex:1}
.answer-section h3{font-size:17px;font-weight:850;line-height:1.3;letter-spacing:.01em;margin:0;color:#182f3e}
.section-heading small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.1em;color:#7f8d93;margin-top:3px}
.section-status{font-size:10px;color:#8d999d;background:#f5f7f4;border-radius:20px;padding:5px 9px;white-space:nowrap}
.answer-section p{font-size:12.5px;line-height:1.95;color:#687980;margin:0 0 9px}
.answer-section ul{margin:6px 0 0;padding-left:19px}
.answer-section li{font-size:12.5px;line-height:1.9;color:#687980}
.analysis-points{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.analysis-points span{font-size:10.5px;color:#61757e;background:#f5f7f4;border:1px solid #e9ede7;border-radius:6px;padding:5px 9px}
.table-wrap{overflow-x:auto;border:1px solid #e9ede8;border-radius:8px;margin-top:10px}
.sample-table{min-width:560px;width:100%;border-collapse:collapse;font-size:11.5px}
.sample-table th{text-align:left;color:#839096;font-weight:750;background:#f7f8f5;padding:9px 11px;white-space:nowrap}
.sample-table td{padding:9px 11px;border-top:1px solid #edf0eb;color:#566a73}
.table-pending{font-size:10px;color:#9b783f;background:#fff5e3;border-radius:12px;padding:3px 7px;white-space:nowrap}
.answer-evidence{display:flex;align-items:flex-start;gap:10px;background:#f7faf7;border:1px solid #e5eee7;border-radius:9px;padding:12px 13px;margin-top:14px}
.evidence-mark{width:21px;height:21px;border-radius:50%;background:#e5f1e9;color:#3e806f;display:grid;place-items:center;font-size:10px;font-weight:900;flex:none}
.answer-evidence b{display:block;font-size:11.5px;color:#4b625d}
.answer-evidence small{display:block;font-size:10.5px;line-height:1.75;color:#81918d;margin-top:3px}
.answer-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:15px;padding-top:13px;border-top:1px solid #edf0eb}
.actions-label{font-size:10.5px;color:#929da1;margin-right:2px}
.answer-actions button{border:1px solid #e6e9e3;background:#fff;border-radius:7px;padding:7px 11px;color:#657780;font-size:11px}
.answer-actions button:hover{border-color:#e6bd78;color:#96651f;background:#fffaf0}
    /* 失败/用错工具的提示卡 */
    .notice-answer .notice-card{display:flex;gap:12px;border:1px solid #f0d9a8;background:linear-gradient(180deg,#fffaf0,#fffdf8);border-radius:12px;padding:14px 16px}
    .notice-icon{width:26px;height:26px;border-radius:50%;background:#f3c35a;color:#5a3f0d;display:grid;place-items:center;font-weight:900;font-size:14px;flex:none}
    .notice-body{min-width:0}
    .notice-body b{display:block;font-size:13.5px;color:#4a3410;margin-bottom:4px}
    .notice-body p{font-size:12.5px;line-height:1.65;color:#6b5a38;margin:0}
    .notice-body small{display:block;margin-top:7px;font-size:11.5px;color:#8c7a55;line-height:1.6}
    .answer-actions button.solid{background:#263f52;border-color:#263f52;color:#fff}
    .answer-actions button.solid:hover{background:#1d3346;border-color:#1d3346;color:#fff}

/* Composer */
.composer-wrap{padding:11px 18px 12px;background:#fff;border-top:1px solid #eff0ec}
.composer{max-width:920px;margin:0 auto;border:1px solid #e1e5df;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(38,60,75,.05);padding:10px 12px 9px}
.composer:focus-within{border-color:#e5bd79;box-shadow:0 0 0 3px rgba(245,219,169,.34),0 5px 16px rgba(38,60,75,.05)}
.composer textarea{
  display:block;width:100%;height:44px;min-height:44px;max-height:150px;resize:none;border:0;outline:0;
  background:transparent;font-size:13.5px;line-height:1.7;color:#304652;padding:2px 2px 6px;
}
.composer textarea::placeholder{color:#a0aaad}
.file-chip{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.file-chip span{font-size:10.5px;background:#f5f7f4;border:1px solid #e9ede7;border-radius:20px;padding:4px 9px;color:#63747c}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.composer-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.tool-select{border:1px solid #eceee8;background:#fafbf8;border-radius:7px;padding:5px 8px;color:#68777e;font-size:11px;display:flex;align-items:center;gap:4px;white-space:nowrap}
.tool-select select{border:0;background:transparent;color:inherit;font-size:11px;outline:0;cursor:pointer;max-width:112px}
.attach{border:1px solid #eceee8;background:#fff;border-radius:7px;padding:5px 9px;color:#68777e;font-size:11px}
.attach:hover{border-color:#e6bd78;color:#96651f}
.send{border:0;background:#f2a02f;color:#263e4b;border-radius:8px;padding:9px 16px;font-size:12px;font-weight:900;white-space:nowrap;transition:background .16s}
.send:hover{background:#ffb54c}
.send[disabled]{background:#e8e5dc;color:#98a2a5;cursor:not-allowed}
.composer-hint{max-width:920px;margin:7px auto 0;display:flex;justify-content:space-between;gap:10px;color:#a1aaad;font-size:10px}
.composer-hint span:last-child{white-space:nowrap}

/* Right rail */
.context-rail{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;scrollbar-width:thin}
.context-card{background:#fff;border:1px solid #e7e9e3;border-radius:12px;padding:12px;flex:none}
.context-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.context-title b{font-size:13px}
.context-title small{font-size:9px;color:#a0aaad;letter-spacing:.1em}
.rail-subtitle{font-size:10.5px;color:#8a969a;line-height:1.6;margin:0 0 8px}
.roadmap-step{display:flex;align-items:center;gap:9px;min-width:0;padding:5px 0}
.roadmap-num{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;background:#fff3df;color:#a97424;font-size:10px;font-weight:900;flex:none;transition:.2s}
.roadmap-copy{min-width:0;flex:1}
.roadmap-copy b{display:block;font-size:12px;color:#405560}
.roadmap-copy small{display:block;font-size:10px;color:#98a2a5;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roadmap-state{font-size:10px;color:#9ba5a7;background:#f5f6f3;border-radius:10px;padding:4px 7px;white-space:nowrap}
.roadmap-step.doing .roadmap-num{background:#f7c65b;color:#5c3f0e;animation:pulse 1.2s infinite}
.roadmap-step.doing .roadmap-state{background:#fff3df;color:#a97424}
.roadmap-step.doing .roadmap-copy b{color:#263e4b}
.roadmap-step.done .roadmap-num{background:#eaf4ef;color:#3e806f}
.roadmap-step.done .roadmap-state{background:#edf5f1;color:#438276}
.roadmap-connector{height:7px;width:1px;background:#e9e5dc;margin-left:12px}

.deliver-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.deliver-chips{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 0}
.deliver-chips span{display:inline-flex;align-items:center;gap:5px;background:#fafbf8;border:1px solid #f0f1ec;border-radius:7px;padding:4px 8px;font-size:10.5px;color:#4d5c62}
.deliver-chips i{font-style:normal;font-size:10px}
.deliver-chips i.amber{color:#b8862b}.deliver-chips i.blue{color:#3f6f8c}.deliver-chips i.green{color:#3f7a5e}.deliver-chips i.purple{color:#6a5a8c}
.deliver-item{display:flex;align-items:center;gap:8px;min-width:0;padding:7px;background:#fafbf8;border:1px solid #f0f1ec;border-radius:8px}
.deliver-icon{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;font-size:12px;flex:none}
.deliver-icon.amber{background:#fff0d8;color:#b77920}
.deliver-icon.blue{background:#edf2f5;color:#56788c}
.deliver-icon.green{background:#eaf3ef;color:#438276}
.deliver-icon.purple{background:#f1edf7;color:#816da3}
.deliver-item b{display:block;font-size:11px;white-space:nowrap}
.deliver-item small{display:block;font-size:9.5px;color:#98a2a5;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.evidence-note{display:flex;align-items:center;gap:8px;border-top:1px solid #f0f1ed;margin-top:10px;padding-top:9px}
.evidence-check{width:20px;height:20px;border-radius:50%;background:#eaf4ef;color:#438276;display:grid;place-items:center;font-size:10px;font-weight:900;flex:none}
.evidence-note b{display:block;font-size:11px}
.evidence-note small{display:block;font-size:9.5px;color:#98a2a5;margin-top:2px}

.recent-list{display:grid}
.recent-item{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid #f0f1ed;min-width:0;animation:fadeUp .3s ease both}
.recent-item:first-child{border-top:0;padding-top:3px}
.recent-icon{width:25px;height:25px;border-radius:7px;background:#f4f5f1;display:grid;place-items:center;font-size:10px;flex:none}
.recent-text{min-width:0;flex:1}
.recent-text b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-text small{display:block;font-size:9.5px;color:#9aa4a7;margin-top:3px}
.recent-state{font-size:9.5px;color:#438276;background:#edf5f1;border-radius:12px;padding:4px 7px;white-space:nowrap}
.view-all{color:#a87936;font-size:10px;padding:3px}

.toast{
  position:fixed;left:50%;bottom:20px;transform:translate(-50%,16px);opacity:0;pointer-events:none;
  background:#203e52;color:#fff;border-radius:10px;padding:10px 15px;font-size:12px;
  transition:.22s ease;z-index:80;box-shadow:0 10px 26px rgba(20,40,55,.22);max-width:80vw;
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.scrim{position:fixed;inset:0;background:rgba(24,42,56,.42);opacity:0;pointer-events:none;transition:.2s;z-index:35}

@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}

/* Responsive */
@media(max-width:1240px){
  :root{--rail-w:272px}
  .workspace{padding-left:14px;padding-right:14px;gap:10px}
  .context-card{padding:11px}
}
@media(max-width:1080px){
  :root{--sidebar-w:214px;--rail-w:252px}
  .nav button{font-size:12.5px;height:38px}
  .nav-icon{font-size:13px}
  .topbar{padding:0 14px}
  .composer-hint span:first-child{display:none}
}

/* Tablet / mobile: sidebar becomes a drawer */
@media(max-width:980px){
  body{overflow:auto}
  .app{height:auto;min-height:100vh;display:block;overflow:visible}
  .sidebar{
    position:fixed;left:0;top:0;bottom:0;width:248px;padding-top:22px;
    transform:translateX(-100%);transition:transform .24s ease;
    box-shadow:0 12px 34px rgba(25,45,60,.24);
  }
  body.nav-open .sidebar{transform:none}
  body.nav-open .scrim{opacity:1;pointer-events:auto}
  .sidebar-close{display:block}
  .main{height:auto;min-height:100vh;display:flex;flex-direction:column;overflow:visible}
  .topbar{height:52px;flex:none}
  .menu-btn{display:block}
  .engine{display:none}
  .workspace{display:flex;flex-direction:column;gap:10px;padding:10px 12px 18px;overflow:visible}
  .chat-shell{height:calc(100vh - 90px);min-height:520px;grid-template-rows:52px minmax(0,1fr) auto}
  .thread{padding:18px 14px 20px}
  .welcome{margin-top:10px}
  .welcome-prompts{grid-template-columns:1fr;gap:8px;margin-top:18px;max-width:560px}
  .welcome-prompt{flex-direction:row;align-items:center;padding:11px}
  .wp-copy small{margin-top:2px}
  .context-rail{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:10px;overflow:visible}
  .roadmap-card{grid-column:1/-1}
  .recent-card{grid-column:1/-1}
  .context-card{overflow:visible}
}

@media(max-width:640px){
  .crumb-prefix{display:none}
  .crumb{font-size:11px}
  .chat-head{padding:0 12px}
  .secure-label{display:none}
  .chat-shell{height:calc(100vh - 84px);min-height:480px}
  .welcome .welcome-h1{font-size:25px}
  .welcome p{font-size:12px}
  .welcome-foot{gap:10px;font-size:10px}
  .composer-wrap{padding:9px 10px 10px}
  .composer{padding:8px 10px 8px}
  .composer textarea{font-size:13px;height:42px;min-height:42px}
  .composer-tools{gap:5px}
  .tool-select{padding:5px 6px;font-size:10.5px}
  .tool-select select{font-size:10.5px;max-width:92px}
  .attach{display:none}
  .send{padding:8px 13px}
  .composer-hint{display:none}
  .context-rail{grid-template-columns:1fr}
  .roadmap-card,.recent-card{grid-column:auto}
  .deliver-grid{grid-template-columns:1fr 1fr}
  .answer-stats{grid-template-columns:1fr 1fr}
  .answer-top{gap:8px}
  .answer-top-actions{flex-wrap:wrap}
  .thread{padding:14px 11px 18px}
  .answer-summary{padding:13px 14px}
  .answer-summary-head{display:block}
  .summary-state{display:inline-block;margin-top:7px}
  .answer-section p,.answer-section li{font-size:12px}
  .bubble{font-size:12.5px}
  .welcome-prompts{max-width:100%}
}

@media(prefers-reduced-motion:reduce){
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* ---------------- Plans & pricing ---------------- */
.plan-chip{
  display:flex;align-items:center;gap:5px;border:1px solid #ecdfc2;background:#fffaf0;color:#6d5a35;
  border-radius:20px;padding:6px 11px;font-size:11px;white-space:nowrap;transition:.16s;
}
.plan-chip b{color:#2f4653;font-weight:800}
.plan-chip:hover{border-color:#e2b96f;background:#fff4dd}
.chip-dot{width:6px;height:6px;border-radius:50%;background:#eda42f}
.chip-sep{opacity:.5}

.plan-card{cursor:pointer;transition:border-color .16s,box-shadow .16s}
.plan-card:hover{border-color:#e6bd78;box-shadow:0 4px 12px rgba(160,120,50,.08)}
.plan-card .quota-head span:first-child{color:#6f5218}

.rail-lock{
  flex:none;border:1px solid #f0e2c8;border-radius:12px;padding:12px;
  background:linear-gradient(135deg,#fff8ea 0%,#fffdf7 100%);
}
.rail-lock-top{display:flex;align-items:center;gap:7px;margin-bottom:6px}
.lock-badge{font-size:9.5px;font-weight:800;background:#203e52;color:#ffe6b0;border-radius:20px;padding:3px 7px;flex:none}
.rail-lock b{font-size:12px;color:#3c545f}
.rail-lock p{margin:0 0 9px;font-size:10.5px;line-height:1.6;color:#8a7a5f}
.rail-lock button{
  width:100%;border:0;background:#f2a02f;color:#263e4b;border-radius:7px;padding:7px;
  font-size:11px;font-weight:800;
}
.rail-lock button:hover{background:#ffb54c}

/* Modal shell */
.modal-open{overflow:hidden}
.modal{position:fixed;inset:0;z-index:90;display:none}
.modal.open{display:block}
.modal-scrim{position:absolute;inset:0;background:rgba(20,38,52,.5)}
.modal-panel{
  position:relative;margin:4vh auto;max-height:92vh;overflow-y:auto;background:#fff;
  border-radius:16px;box-shadow:0 24px 80px rgba(15,35,50,.3);
  width:min(1000px,calc(100% - 32px));padding:26px 28px;
  animation:fadeUp .22s ease both;
}
.modal-close{position:absolute;right:12px;top:10px;width:34px;height:34px;border-radius:9px;font-size:22px;line-height:1;color:#8b979b}
.modal-close:hover{background:#f5f7f4;color:#3c545f}

.pricing-head{text-align:center;padding:2px 10px 0}
.pricing-kicker{font-size:9.5px;letter-spacing:.18em;font-weight:850;color:#b17b2f}
.pricing-head h2{font-size:clamp(22px,2vw,28px);margin:9px 0 8px;color:#263f50;letter-spacing:-.02em}
.pricing-head p{font-size:12.5px;line-height:1.8;color:#7e8b90;max-width:640px;margin:0 auto}
.billing-toggle{
  display:inline-flex;gap:3px;background:#f4f5f1;border:1px solid #e9ebe3;border-radius:20px;
  padding:3px;margin-top:16px;
}
.billing-btn{border-radius:16px;padding:7px 14px;font-size:11.5px;color:#6d7d84;font-weight:650;display:flex;align-items:center;gap:6px}
.billing-btn.active{background:#fff;color:#263e4b;box-shadow:0 2px 6px rgba(35,55,70,.08)}
.billing-btn em{font-style:normal;font-size:9.5px;color:#b17b2f;background:#fff3df;border-radius:10px;padding:2px 5px}

.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 10px}
.plan-card-item{
  position:relative;border:1px solid #e9ebe3;border-radius:13px;padding:18px 17px 16px;background:#fff;
  display:flex;flex-direction:column;gap:10px;
}
.plan-card-item.featured{border:2px solid #e7a13a;background:linear-gradient(180deg,#fffdf8,#fffaf0);box-shadow:0 10px 26px rgba(200,140,50,.12)}
.plan-flag{position:absolute;right:14px;top:-10px;background:#e7a13a;color:#fff;font-size:10px;font-weight:800;border-radius:20px;padding:3px 9px;letter-spacing:.05em}
.plan-item-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.plan-item-head b{font-size:15px;color:#2f4756}
.plan-price{font-size:25px;font-weight:850;color:#263f50;letter-spacing:-.02em}
.plan-price i{font-size:11px;font-style:normal;font-weight:600;color:#93a0a4;margin-left:3px}
.plan-desc{font-size:11px;line-height:1.7;color:#8a969a;margin:0;min-height:34px}
.plan-card-item ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.plan-card-item li{position:relative;padding-left:17px;font-size:11.5px;line-height:1.6;color:#5b6d76}
.plan-card-item li:before{content:"✓";position:absolute;left:0;top:0;color:#3e806f;font-weight:900;font-size:10px}
.plan-card-item li b{color:#2f4756}
.plan-btn{margin-top:auto;border-radius:9px;padding:10px;font-size:12px;font-weight:800;border:1px solid transparent}
.plan-btn.solid{background:#f2a02f;color:#263e4b}
.plan-btn.solid:hover{background:#ffb54c}
.plan-btn.ghost{border-color:#e4e7e0;background:#fff;color:#5f7079}
.plan-btn.ghost:hover{border-color:#e6bd78;color:#96651f}
.plan-card-item.current .plan-btn{background:#edf5f1;color:#3d7b70;border-color:#d9ebe3}
.pricing-foot{text-align:center;font-size:10.5px;color:#9aa4a7;line-height:1.7;margin:6px 0 0}

/* Profit calculator */
.profit-panel{width:min(760px,calc(100% - 32px))}
.profit-head{padding-right:34px}
.profit-head h2{font-size:22px;margin:8px 0 6px;color:#263f50}
.profit-head p{font-size:12px;line-height:1.75;color:#7e8b90;margin:0}
.profit-body{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-top:18px}
.profit-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.profit-inputs label{font-size:10.5px;color:#7c8b91;display:flex;flex-direction:column;gap:4px}
.profit-inputs input{
  border:1px solid #e6e9e2;border-radius:8px;padding:8px 9px;font-size:12.5px;color:#2f4756;
  background:#fcfdfa;outline:none;
}
.profit-inputs input:focus{border-color:#e5bd79;box-shadow:0 0 0 3px rgba(245,219,169,.3)}
.profit-out{background:#fafbf8;border:1px solid #eceee8;border-radius:11px;padding:13px}
.profit-metric{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #e6e9e2}
.profit-metric:last-of-type{border-bottom:0}
.profit-metric small{font-size:10.5px;color:#87959a}
.profit-metric b{font-size:17px;color:#2f4756}
.profit-bar{height:6px;border-radius:6px;background:#e9ede6;margin:10px 0 8px;overflow:hidden}
.profit-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#f2b23f,#3e806f);transition:width .25s}
.profit-note{font-size:10px;line-height:1.65;color:#9aa4a7;margin:0}

/* Free-plan answer */
.answer-upgrade{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  border:1px solid #eadfca;background:linear-gradient(110deg,#fffaf0,#fff6e3);
  border-radius:10px;padding:13px 15px;margin-top:16px;
}
.answer-upgrade b{display:block;font-size:12.5px;color:#4c4636;margin-bottom:3px}
.answer-upgrade small{font-size:10.5px;color:#94815f;line-height:1.6}
.answer-upgrade button{
  flex:none;border-radius:8px;padding:8px 13px;font-size:11.5px;font-weight:800;
  background:#203e52;color:#ffe6b0;
}
.answer-upgrade button:hover{background:#2b5068}
.free-tag{font-size:10px;color:#3d7b70;background:#edf5f1;border:1px solid #dcece5;border-radius:20px;padding:5px 9px;white-space:nowrap}

/* 深度评估 */
.answer-depth{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  border:1px solid #dfe7ea;background:#f7fafb;border-radius:10px;padding:13px 15px;
}
.answer-depth b{display:block;font-size:12.5px;color:#2f4756;margin-bottom:3px}
.answer-depth small{font-size:10.5px;color:#7d8b91;line-height:1.6}
.answer-depth button{
  flex:none;border-radius:8px;padding:9px 15px;font-size:11.5px;font-weight:800;
  background:#203e52;color:#ffe6b0;
}
.answer-depth button:hover{background:#2b5068}
.answer-depth button:disabled{opacity:.65;cursor:progress}
.review-cue{margin:10px 0 4px}
.depth-h4{display:flex;align-items:flex-start;gap:12px;margin:30px 0 14px;padding-top:18px;border-top:1px solid #eef1ee;scroll-margin-top:88px}
.depth-block>.depth-h4:first-of-type{border-top:0;padding-top:4px;margin-top:14px}
.dsec-no{flex:none;width:28px;height:28px;border-radius:9px;background:#203e52;color:#ffe6b0;display:grid;place-items:center;font-size:12px;font-weight:900;letter-spacing:.02em;margin-top:-2px}
.dsec-copy{display:flex;flex-direction:column;gap:4px;min-width:0;padding-top:1px}
.dsec-copy b{font-size:18px;line-height:1.35;color:#182f3e;font-weight:850;letter-spacing:.005em}
.dsec-copy small{font-size:12.5px;color:#8b979d;line-height:1.55}
.depth-meta{font-size:11.5px;color:#7d8b91;line-height:1.7;margin:2px 0 0}
.dsec-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:13px 0 2px;padding:9px 10px;border:1px dashed #dfe7ea;border-radius:11px;background:#fbfcfb}
.dsec-chip{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#43606f;text-decoration:none;background:#fff;border:1px solid #e6ecef;border-radius:9px;padding:6px 9px 6px 6px;transition:.15s;min-width:0}
.dsec-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dsec-chip i{font-style:normal;width:18px;height:18px;border-radius:50%;background:#eef3f1;color:#3f8175;display:grid;place-items:center;font-size:9.5px;font-weight:800}
.dsec-chip:hover{border-color:#c9dcd6;background:#f3f9f6;color:#2b6a5c}
/* 深度采集进度：阶段清单 + 进度条 + 预计时间 */
.dep-prog{margin:12px 0 4px;padding:12px 14px 11px;border:1px solid #d8e6e0;border-radius:12px;background:linear-gradient(180deg,#f7fbf9,#f2f8f5)}
.dep-prog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dep-prog-head b{font-size:12.5px;color:#24524a}
.dep-timer{display:inline-flex;gap:8px;align-items:center;font-size:11px;color:#7d8b91}
.dep-timer i{font-style:normal}
.dep-timer .eta{color:#2c6b5a;font-weight:700;background:#e7f3ee;border-radius:20px;padding:3px 8px}
.dep-bar{height:6px;border-radius:6px;background:#e3ece8;overflow:hidden;margin:9px 0 10px}
.dep-bar b{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#7fb3a5,#2f7a5c);transition:width .35s ease}
.dep-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:7px 13px}
.dep-step{display:flex;align-items:center;gap:7px;font-size:11px;color:#98a3a6;min-width:0}
.dep-step b{font-weight:700;white-space:nowrap}
.dep-step small{font-size:10px;color:#a3adb0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dep-step em{margin-left:auto;font-style:normal;font-size:10.5px;font-weight:700;color:#5c7b86}
.dep-dot{width:9px;height:9px;border-radius:50%;background:#dfe7e4;flex:none}
.dep-step.run{color:#2f4756}
.dep-step.run .dep-dot{background:#3f8175;box-shadow:0 0 0 3px rgba(63,129,117,.18);animation:depPulse 1.2s infinite}
.dep-step.done{color:#5e6d74}
.dep-step.done .dep-dot{background:#3f8175}
@keyframes depPulse{0%,100%{opacity:1}50%{opacity:.45}}
.dep-tip{margin:9px 0 0;font-size:10.5px;color:#8b979d;line-height:1.55}
/* 表格：斑马线 + 表头固定 + 长表格折叠 */
.depth-table thead th{position:sticky;top:0;background:#f4f7f4;z-index:1}
.depth-table tbody tr:nth-child(even){background:#fafbf9}
.table-wrap{position:relative}
.table-wrap.is-folded{max-height:400px;overflow:auto;-webkit-mask-image:linear-gradient(180deg,#000 80%,rgba(0,0,0,.35));mask-image:linear-gradient(180deg,#000 80%,rgba(0,0,0,.35))}
.table-wrap.is-folded::after{display:none}
.tbl-more{margin:7px 0 2px;font-size:11.5px;color:#2f6f86;background:#f2f7f9;border:1px solid #dde8ec;border-radius:8px;padding:6px 12px;cursor:pointer}
.tbl-more:hover{background:#e9f2f6}
.depth-table{min-width:0}
.depth-table th,.depth-table td{padding:7px 8px;font-size:11px;white-space:nowrap}
.depth-table .snap-title{white-space:normal;max-width:220px;line-height:1.45}
.depth-aspects{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:7px}
.depth-aspects li{font-size:11px;line-height:1.6;color:#566a73;border-top:1px dashed #eef1ee;padding-top:7px}
.depth-aspects li b{color:#2f4756;font-weight:800}
.depth-aspects li em{display:block;color:#8b9095;font-style:normal;font-size:10.5px;margin-top:2px}

@media(max-width:980px){
  .plan-chip{display:flex;padding:5px 9px;font-size:10.5px}
  .modal-panel{margin:3vh auto;max-height:94vh;padding:16px 14px 20px;border-radius:14px}
  .modal-close{position:sticky;top:0;float:right;margin:-6px -2px 0 0;background:#fff;z-index:5}
  .pricing-head{padding-right:30px}
  .plan-grid{grid-template-columns:1fr;gap:10px;margin-top:16px}
  .plan-card-item{padding:15px}
  .plan-desc{min-height:0}
  .profit-body{grid-template-columns:1fr}
}
@media(max-width:640px){
  .pricing-head h2{font-size:20px}
  .pricing-head p{font-size:11.5px}
  .profit-inputs{grid-template-columns:1fr 1fr;gap:7px}
  .modal-close{right:6px;top:4px}
}

/* ---------- 免费版：公开网页速览 ---------- */
.intel-block{border-top:1px solid var(--line);padding-top:16px}
.intel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin:12px 0 10px}
.intel-card{border:1px solid var(--line);border-radius:10px;background:var(--soft);padding:12px 13px 11px;display:flex;flex-direction:column;gap:8px;min-width:0}
.intel-card-head{display:flex;flex-direction:column;gap:2px}
.intel-card-head b{font-size:13px;color:var(--navy);letter-spacing:.2px}
.intel-card-head small{font-size:11.5px;color:var(--muted)}
.intel-card p{margin:0;font-size:12.5px;line-height:1.62;color:#3a4d59;overflow-wrap:anywhere}
.intel-card .intel-empty{color:var(--muted);font-style:normal}
.intel-srcs{display:flex;flex-direction:column;gap:5px;margin-top:auto;padding-top:8px;border-top:1px dashed #e3e0d5}
.intel-src{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#4a6473;text-decoration:none;line-height:1.35;min-width:0}
.intel-src:hover{color:var(--orange)}
.intel-src em{flex:1 1 auto;min-width:0;font-style:normal;color:#8b979d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.intel-dot{width:5px;height:5px;border-radius:50%;background:var(--orange);flex:none}
.intel-note{font-size:11.5px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.intel-note span{background:#f2eee2;color:#8a7448;border-radius:5px;padding:2px 7px;font-size:11px}
.section-status.ok{color:var(--teal);border-color:#d6e6df;background:#f1f7f4}
@media (max-width:640px){
  .intel-grid{grid-template-columns:minmax(0,1fr)}
  .intel-src em{max-width:none}
}

/* ---------- 免费版：货架快照 ---------- */
.snap-block{border-top:1px solid var(--line);padding-top:16px}
.snap-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:10px;margin:12px 0}
.snap-metric{border:1px solid var(--line);border-radius:10px;background:linear-gradient(180deg,#fffdf7,#faf7ee);padding:11px 13px;display:flex;flex-direction:column;gap:3px;min-width:0}
.snap-metric small{font-size:11.5px;color:var(--muted)}
.snap-metric b{font-size:20px;color:var(--navy);letter-spacing:-.2px;font-weight:650}
.snap-metric em{font-style:normal;font-size:11px;color:#8b979d;line-height:1.4}
.snap-table th{white-space:nowrap}
.snap-table td{font-size:12.5px}
.snap-asin{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;color:#5c6f7b;white-space:nowrap}
.snap-title{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){
  .snap-metrics{grid-template-columns:1fr}
  .snap-title{max-width:180px}
}

/* ============ 排版修正 v6（2026-11-18 22:30） ============ */
/* 1) 右栏在 900px 高度下溢出 105px：整体压紧 */
.context-rail{gap:7px}
.context-card{padding:10px 12px}
.context-title{margin-bottom:6px}
.rail-subtitle{display:none}
.roadmap-step{padding:3.5px 0;gap:8px}
.roadmap-num{width:23px;height:23px;border-radius:6px;font-size:9.5px}
.roadmap-copy b{font-size:11.5px}
.roadmap-copy small{font-size:9.5px;margin-top:2px}
.roadmap-state{font-size:9.5px;padding:3px 6px}
.roadmap-connector{height:4px;margin-left:11px}
.deliver-grid{gap:6px}
.deliver-item{padding:6px 7px;gap:7px}
.deliver-icon{width:23px;height:23px;font-size:11px}
.deliver-item b{font-size:10.5px}
.deliver-item small{font-size:9px;margin-top:2px}
.recent-item{padding:5px 0;gap:7px}
.recent-icon{width:23px;height:23px;border-radius:6px}
.recent-text b{font-size:10.5px}
.recent-text small{font-size:9px;margin-top:2px}

/* 2) 免费版卡片文案与新额度对齐 */
.rail-lock{padding:11px 12px}
.rail-lock p{margin:6px 0 9px;font-size:10.5px;line-height:1.6}
.rail-lock button{padding:7px 0;font-size:11px}

/* 3) 输入区收紧，去掉一行噪声提示 */
.composer-wrap{padding:9px 18px 10px}
.composer{padding:9px 12px 8px}
.composer-hint{margin-top:5px}
.composer-hint span:first-child{display:none}
.composer-hint{justify-content:flex-end}

/* 4) 欢迎区节奏：标题紧凑、卡片贴近、底注上移 */
.welcome{margin-top:0}
.welcome .welcome-h1{margin:10px 0 8px}
.welcome p{max-width:560px;line-height:1.75}
.welcome-prompts{margin-top:20px;gap:12px}
.welcome-foot{margin-top:16px;font-size:11.5px}

/* 5) 首页时欢迎区在聊天区垂直居中，避免上挤下空 */
.thread:has(> .welcome){display:flex;flex-direction:column}
.welcome{margin-block:auto}

/* 6) 首屏文案断行更自然 + 去掉输入区那行孤儿提示 */
.welcome p{max-width:640px;text-wrap:pretty}
.thread .welcome p br{display:none}
@media (min-width:1100px){.thread .welcome p br.br-wide{display:block}}
@media (max-width:980px){.thread .welcome p br{display:none}}
.composer-hint{display:none}
.composer-wrap{padding-bottom:12px}

/* 7) 左栏「热门类目」：把底部空白变成可点的免费入口 */
.side-hot{margin-top:14px}
.side-hot .nav-label{display:flex;align-items:center;gap:6px}
.hot-tag{font-size:9px;font-weight:800;letter-spacing:0;color:#3f7d69;background:rgba(63,125,105,.12);border-radius:20px;padding:2px 6px}
.hot-list{display:flex;flex-direction:column;gap:5px;margin-top:8px}
.hot-list button{
  text-align:left;font-size:11.5px;color:#5d4a20;background:rgba(255,252,240,.5);
  border:1px solid rgba(255,255,255,.55);border-radius:8px;padding:6px 9px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.16s;
}
.hot-list button:hover{background:#fffdf5;border-color:rgba(255,255,255,.9);color:#3d2f10}
.hot-list button::before{content:"⌕";margin-right:6px;color:#a8813a;font-size:10px}
@media (max-width:980px){.side-hot{display:none}}

/* 8) 引导卡加一点分量，别像三个虚线空盒 */
.welcome-prompt{background:linear-gradient(180deg,#fffdf8,#fffaf1);border-color:#efe6d6;padding:13px 14px}
.welcome-prompt:hover{background:#fff;border-color:#e2c07a}
.wp-icon{width:24px;height:24px;font-size:12px}

/* 9) 手机端输入区：工具条一行横滑，别把发送按钮挤到下一行 */
@media (max-width:640px){
  .composer-tools{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;gap:5px}
  .composer-tools>*{flex:none}
  .tool-select{font-size:10.5px;gap:3px}
  .tool-select select{font-size:11px;max-width:120px}
  .composer textarea{min-height:40px;font-size:12.5px}
  .send{flex:none;padding:8px 14px;font-size:12px}
  .composer-bottom{gap:6px}
  .welcome-foot{margin-top:14px;font-size:11px}
}

/* 10) 修正：flex 居中时欢迎块按 max-content 撑宽（手机端右侧被切） */
.thread:has(> .welcome) .welcome{width:100%;max-width:780px;margin-left:auto;margin-right:auto}
@media (max-width:640px){
  .thread:has(> .welcome) .welcome{max-width:100%}
  .welcome .welcome-h1{font-size:clamp(22px,6.4vw,26px)}
}

/* 11) 根治：chat-shell 的隐式列被内容 max-content 撑开（手机端把欢迎块顶宽到 501） */
.chat-shell{grid-template-columns:minmax(0,1fr)}
.thread{min-width:0}
.chat-head,.composer-wrap{min-width:0}

/* 侧栏改为链接的入口（类目情报库 / 关键词对比），与 button 同款视觉 */
.nav a{
  height:40px;border-radius:9px;color:#394b50;text-align:left;padding:0 11px;text-decoration:none;
  display:flex;align-items:center;gap:11px;font-size:13px;font-weight:650;
  transition:background .16s ease,color .16s ease;
}
.nav a:hover{background:rgba(255,245,220,.6)}
.nav a .nav-icon{width:18px;text-align:center;font-size:14px;flex:none;opacity:.9}

/* 公开报告页分享行 */
.snap-share{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;
  background:#fbfaf3;border:1px dashed #e6dcbd;border-radius:10px;padding:9px 12px;font-size:12.5px;color:#6b6250;
}
.snap-share b{color:#3f3524}
.snap-share a{color:#8a6420;font-weight:700;text-decoration:none}
.snap-share a:hover{text-decoration:underline}
.snap-share button{
  margin-left:auto;border:1px solid #e2d5b3;background:#fff;border-radius:8px;
  padding:5px 11px;font-size:12px;font-weight:700;color:#6b5219;cursor:pointer;
}
.snap-share button:hover{background:#fffdf4}

/* 对话框：运行预告行 + 上传词表 chip + ASIN 单品评估 */
.composer-hint{flex-wrap:wrap}
.plan-hint{
  flex:1 1 100%;max-width:100%;color:#8d7a54;background:#fdf9ef;border:1px dashed #ecdfbc;
  border-radius:8px;padding:6px 10px;font-size:11px;line-height:1.5;
}
.file-chip button{
  border:1px solid #e6e9e2;background:#fff;border-radius:20px;padding:3px 9px;
  font-size:10.5px;color:#7b8790;cursor:pointer;
}
.file-chip button:hover{border-color:#e6bd78;color:#96651f}

.asin-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:14px}
.asin-img{width:104px;height:104px;object-fit:contain;border:1px solid #eef0ea;border-radius:10px;background:#fff;flex:none}
.asin-copy{min-width:0}
.asin-copy h4{margin:0 0 7px;font-size:16px;line-height:1.45;font-weight:750}
.asin-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.asin-meta span{
  font-size:10.5px;color:#67767e;background:#f5f7f4;border:1px solid #e9ede7;
  border-radius:20px;padding:3px 9px;
}
.asin-link{font-size:11.5px;font-weight:700;color:#96651f;text-decoration:none}
.asin-link:hover{text-decoration:underline}

.rating-dist{display:grid;gap:7px;margin:10px 0 4px}
.rd-row{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;font-size:11.5px;color:#68777e}
.rd-row i{display:block;height:8px;border-radius:6px;background:linear-gradient(90deg,#ffe3a1,#f5c34e);min-width:2px}
.rd-row b{text-align:right;color:#3f5160;font-weight:700}

.risk-list{list-style:none;padding:0;margin:0}
.risk-list li{
  position:relative;padding:9px 13px 9px 32px;background:#fdf5f2;border:1px solid #f3ded6;
  border-radius:9px;margin-bottom:7px;font-size:12.5px;color:#7d4a37;
}
.risk-list li:before{content:"!";position:absolute;left:12px;top:8px;width:14px;height:14px;border-radius:50%;
  background:#e07b57;color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center}
.muted-note{font-size:11px;color:#94a0a4;margin-top:6px}
@media (max-width:640px){.asin-head{flex-direction:column}.asin-img{width:84px;height:84px}}

/* 运行预告条：放在输入框上方，一行说明这次会跑什么 */
.plan-hint{
  max-width:920px;margin:0 auto 7px;color:#8a7444;background:#fdf8ea;
  border:1px dashed #ecd9ac;border-radius:9px;padding:6px 11px;
  font-size:11px;line-height:1.5;display:flex;align-items:center;gap:7px;
}
.plan-hint:before{content:"▶";font-size:8px;color:#c99a2e;flex:none}

/* AI 研判卡片（大模型输出，后台可换线路） */
.ai-card{margin:16px 0 6px;border:1px solid #f0e2c8;background:linear-gradient(180deg,#fffdf7,#fff9ee);border-radius:12px;padding:14px 16px}
.ai-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.ai-mark{width:24px;height:24px;border-radius:8px;flex:none;display:grid;place-items:center;color:#7a5413;font-size:12px;background:linear-gradient(145deg,#ffe4a9,#f4b94d)}
.ai-title b{font-size:12.5px;color:#8a5a13}
.ai-title small{display:block;font-size:10px;color:#a08650;margin-top:2px}
.ai-meta{margin-left:auto;font-size:10px;color:#a08a63;white-space:nowrap;max-width:44%;overflow:hidden;text-overflow:ellipsis;flex:none}
.ai-body{font-size:12.5px;line-height:1.85;color:#3f4f56}
.ai-body p{margin:0 0 8px}
.ai-body p:last-child{margin-bottom:0}
.ai-h{margin:14px 0 7px;font-size:14px;font-weight:750;letter-spacing:.01em;color:#7d4f0d}
.ai-h:first-child{margin-top:0}
.ai-body ul{margin:0 0 8px;padding-left:18px}
.ai-body li{margin:3px 0}
.ai-body code{background:#fff;border:1px solid #efe3cd;border-radius:4px;padding:1px 4px;font-size:11px}
.ai-skeleton{display:block;height:9px;border-radius:5px;background:linear-gradient(90deg,#f4ebdb,#fbf5e9,#f4ebdb);margin:7px 0;animation:pulse 1.4s ease-in-out infinite}
.ai-skeleton.short{width:62%}

/* 本次对话：词列表 + 换词按钮 */
.session-list{display:flex;flex-direction:column;gap:6px;margin:8px 0 9px}
.session-item{display:grid;grid-template-columns:1fr auto;grid-template-areas:"kw arrow" "meta arrow";align-items:center;gap:1px 8px;
  background:#fff;border:1px solid #e8ecdf;border-radius:9px;padding:7px 10px;cursor:pointer;text-align:left;transition:border-color .15s}
.session-item:hover{border-color:#cfd9c0;background:#fdfefb}
.session-item b{grid-area:kw;font-size:12px;color:#22322b;font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.session-item small{grid-area:meta;font-size:10px;color:#8b9690}
.session-item i{grid-area:arrow;font-style:normal;font-size:11px;color:#b6bfb2}
.session-item.on{border-color:#c9a961;background:#fffdf5}
.session-item.on b{color:#6b4d12}
.session-item.on i{color:#c9a961}
.session-new{width:100%;background:#2c3f36;color:#fff;border:1px solid #2c3f36;border-radius:9px;padding:8px 0;
  font-size:11.5px;font-weight:600;cursor:pointer;letter-spacing:.01em}
.session-new:hover{background:#35503f;border-color:#35503f}
.answer-actions button.act-next{background:#22322b;border-color:#22322b;color:#fff}
.answer-actions button.act-next:hover{background:#2d423a;border-color:#2d423a;color:#fff}
.assistant-answer.flash{animation:flashIn 1.2s ease}
@keyframes flashIn{0%{box-shadow:0 0 0 3px rgba(201,169,97,.35)}100%{box-shadow:none}}

/* 关键词回执 + 候选选择（2026-11-20） */
.kw-receipt{margin:10px 0 4px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:11.5px;color:#5b6a70}
.kw-receipt span{background:#f3f6f4;border:1px solid #e2e9e4;color:#4b6b57;border-radius:999px;padding:2px 9px;font-size:10.5px}
.kw-receipt b{font-size:13px;color:#1d2b31;letter-spacing:-.01em}
.kw-receipt i{font-style:normal;color:#7d8b91;font-size:11px}
.kw-receipt em{margin-left:auto;font-style:normal;color:#8d979b;font-size:10.5px}
.kw-chips{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 4px}
.kw-chips button{text-align:left;background:#fff;border:1px solid #e3e7ea;border-radius:10px;padding:9px 13px;cursor:pointer;display:flex;flex-direction:column;gap:2px;min-width:180px;max-width:280px}
.kw-chips button:hover{border-color:#c99a2e;box-shadow:0 4px 14px rgba(160,120,20,.08)}
.kw-chips b{font-size:12.5px;color:#1d2b31;font-weight:650}
.kw-chips small{font-size:11px;color:#6b767c}
.kw-chips i{font-style:normal;font-size:10.5px;color:#9aa4a9}
.kw-suggest{margin:2px 0 6px;padding:10px 12px;border:1px dashed #e0e6e9;border-radius:10px;background:#fbfcfc}
.kw-suggest .td-label{display:block;font-size:10.5px;color:#8d979b;margin-bottom:6px}
.kw-suggest .kw-chips{margin:0}

/* 规则框架：模型给了正文就收起，供对照 */
.rule-body{margin-top:4px}
.rule-body.rule-hidden{display:none}
.rule-toggle{margin:10px 0 0 2px}
.rule-toggle button{background:#fbfaf7;border:1px solid #e7e2d8;border-radius:8px;padding:6px 12px;font-size:11px;color:#6f6a60;cursor:pointer}
.rule-toggle button:before{content:"▸ ";color:#b9ab8d}
.rule-toggle button:hover{border-color:#c99a2e;color:#8a5a13}
.ai-card.ai-off{border-color:#e6dfd3;background:#fbfaf7}
.ai-card.ai-off .ai-mark{background:#eee7da;color:#8d8577}

/* ============ 右栏 v7（2026-11-19）：一栏到底、层级统一、真实最近研究 ============ */
.context-rail{gap:10px}
.context-card{padding:12px 13px}
.context-title{margin-bottom:9px;align-items:center}
.context-title b{font-size:13px}
.context-title small{font-size:9px;letter-spacing:.12em}
.rail-subtitle{display:block;margin:0 0 8px;font-size:10.5px;line-height:1.6}
.rail-lock{padding:12px 13px}
.rail-lock-top{margin-bottom:7px}
.rail-lock p{font-size:11px;line-height:1.65;margin:0 0 10px}
.roadmap-step{padding:4px 0;gap:9px}
.roadmap-copy b{font-size:12px}
.roadmap-copy small{font-size:10px}
.roadmap-state{min-width:54px;text-align:center}
.roadmap-connector{height:6px}
.deliver-item{padding:8px;gap:8px}
.deliver-item b{font-size:11px}
.deliver-item small{font-size:9.5px}
.recent-card{flex:1;display:flex;flex-direction:column;min-height:0}
.recent-list{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}
.recent-item{display:flex;width:100%;align-items:center;gap:9px;padding:8px 6px;border:0;border-top:1px solid #f0f1ed;background:transparent;border-radius:8px;text-align:left}
.recent-item:first-child{border-top:0}
.recent-item:hover{background:#fffaf1}
.recent-text b{font-size:11.5px}
.recent-text small{font-size:10px;margin-top:3px}
.recent-state{font-size:9.5px;color:#a87936;background:#fff3df;border-radius:12px;padding:4px 8px}
.recent-empty{padding:14px 4px;color:#9aa4a7;font-size:11.5px;line-height:1.7;text-align:center}
.recent-empty small{display:block;margin-top:3px;font-size:10px;color:#b3bcbe}
@media(max-height:880px){.context-rail{gap:8px}.context-card{padding:10px 12px}.rail-subtitle{display:none}}
@media(max-height:840px){.deliver-card{display:none}}

/* 回访用户：欢迎区收紧，只留标题 + 快捷入口 */
.welcome.compact{padding:8px 0 2px}
.welcome.compact .welcome-symbol{font-size:22px;margin-bottom:4px}
.welcome.compact .welcome-kicker{display:none}
.welcome.compact h1{font-size:clamp(22px,3vw,30px);margin:4px 0 12px}
.welcome.compact p,.welcome.compact .welcome-foot{display:none}
.welcome.compact .welcome-prompts{margin-top:6px}

/* 右栏：最近研究卡底部填满（避免大片空白） */
.recent-more{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:5px;border-top:1px solid #f0f1ed;margin-top:auto;padding:10px 0 2px;color:#a87936;font-size:10.5px;font-weight:700;text-decoration:none}
.recent-more:hover{color:#8a5a13}
.recent-more b{font-weight:900}

/* ============ 彩豆（2026-11-19）：1 颗 = 1 次深度采集 ============ */
.composer-meta{display:flex;align-items:center;gap:8px;max-width:920px;margin:0 auto 7px}
.composer-meta .plan-hint{flex:1;min-width:0;margin:0;max-width:none}
.bean-chip{
  flex:none;display:inline-flex;align-items:center;gap:5px;cursor:pointer;
  border:1px solid #ecd9ac;background:#fffdf4;color:#8a6a22;border-radius:20px;
  padding:5px 11px;font-size:11px;line-height:1;font-family:inherit;
}
.bean-chip b{font-size:12px;color:#b07c12}
.bean-chip:hover{background:#fff8e3;border-color:#e2c37a}
.bean-chip.low{border-color:#f0c7a8;background:#fff6f1;color:#a8562c}
.bean-chip.low b{color:#c2521f}
.bean-modal-bal{display:flex;align-items:baseline;gap:7px;margin:2px 0 12px}
.bean-modal-bal b{font-size:30px;color:#b07c12;letter-spacing:-.5px}
.bean-modal-bal small{font-size:11.5px;color:#8d8574}
.bean-rules{margin:0;padding-left:17px;font-size:12px;line-height:1.9;color:#5c6a6f}
.bean-rules b{color:#8a5a13}
@media (max-width:640px){.composer-meta{flex-wrap:wrap}.composer-meta .plan-hint{flex:1 1 100%}.composer-meta .bean-chip{margin-left:auto}}

/* ============ 需求强度（2026-11-19）：月销下限 + 广告压力，不外推搜索量 ============ */
.demand-block{margin:12px 0 4px;border:1px solid #eef0ea;background:#fbfcf9;border-radius:11px;padding:12px 14px}
.demand-head{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.demand-head b{font-size:12.5px;color:#3c545f}
.demand-head span{font-size:11px;color:#8b979b;line-height:1.6}
.demand-head span b{font-size:11px;color:#8a5a13}
.demand-row{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.demand-cell{background:#fff;border:1px solid #eef0ea;border-radius:9px;padding:9px 10px}
.demand-cell small{display:block;font-size:10.5px;color:#8b979b;margin-bottom:4px}
.demand-cell b{display:block;font-size:17px;color:#2f4a55;letter-spacing:-.3px}
.demand-cell em{display:block;font-style:normal;font-size:10px;color:#9aa5a8;margin-top:3px}
.demand-trend{margin-top:10px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:11px;color:#8b979b}
.demand-trend b{font-size:12px;color:#8a5a13}
.demand-trend b.up{color:#1f7a4d}
.demand-trend b.down{color:#b4442c}
.demand-trend em{font-style:normal;font-size:10.5px;color:#a2abae}
@media (max-width:720px){.demand-row{grid-template-columns:repeat(2,1fr)}}

/* ============ 每轮回答：解读 / 采集数据 两层分开（2026-11-19） ============ */
.ans-tabs{display:flex;align-items:center;gap:6px;margin:2px 0 14px;padding-bottom:10px;border-bottom:1px solid #eceee9;flex-wrap:wrap}
.ans-tab{border:1px solid #e6e9e3;background:#fff;border-radius:8px;padding:7px 13px;font-size:12px;color:#6b7c83;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.ans-tab:hover{border-color:#e6bd78;color:#96651f;background:#fffaf0}
.ans-tab.on{background:#2f4756;border-color:#2f4756;color:#fff}
.ans-tab i{font-style:normal;font-size:10px;background:#fff3df;color:#a87936;border-radius:10px;padding:1px 6px}
.ans-tab.on i{background:rgba(255,255,255,.18);color:#fff}
.ans-tabs-note{margin-left:auto;font-size:10.5px;color:#a3adaf}
.ans-pane[hidden]{display:none}
.ans-datacue{display:flex;align-items:center;gap:8px;width:100%;margin:12px 0 2px;padding:11px 13px;border:1px dashed #e3d3b4;background:#fffcf4;border-radius:10px;font-size:12px;color:#6f5a34;text-align:left;cursor:pointer}
.ans-datacue b{color:#8a5a13;font-size:13px}
.ans-datacue em{margin-left:auto;font-style:normal;color:#a87936;font-size:11.5px;white-space:nowrap}
.ans-datacue:hover{border-color:#e6bd78;background:#fff8ea}
.cue-dot{width:7px;height:7px;border-radius:50%;background:#63a58c;flex:none;box-shadow:0 0 0 3px #e6f2ec}
.data-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 0 14px;padding:10px 12px;background:#f6f8f5;border:1px solid #e6ebe4;border-radius:10px;font-size:11px;color:#7d8a8d}
.ds-badge{background:#2f4756;color:#fff;border-radius:6px;padding:3px 8px;font-size:10.5px}
.ds-item{color:#5f7076}
.ds-item b{color:#354d5a;margin-right:3px}
.ds-cached{background:#eef4f0;color:#4c7c6a;border-radius:6px;padding:2px 7px}
.ds-note{margin-left:auto;color:#9aa4a7;font-size:10.5px}
.intel-lang{margin-top:6px;font-size:10.5px;color:#a0a9ab}
.intel-raw{margin-top:6px;font-size:11px;color:#8b9699}
.intel-raw summary{cursor:pointer;color:#7d8f86}
.intel-card p.en{color:#5c6a70;line-height:1.7}
@media (max-width:640px){.ans-tabs-note{display:none}.ds-note{margin-left:0;flex-basis:100%}}
.read-list{margin:8px 0 0;padding-left:19px}
.read-list li{font-size:12.5px;line-height:1.9;color:#5d6d73;margin:2px 0}
.read-list b{color:#354d5a}
.ds-refresh{margin-left:auto;border:1px solid #dfe5dc;background:#fff;border-radius:7px;padding:4px 9px;font-size:10.5px;color:#5f7d70;cursor:pointer}
.ds-refresh:hover{border-color:#e6bd78;color:#96651f;background:#fffaf0}
.ds-refresh[disabled]{opacity:.6;cursor:default}

/* ---- ASIN 数据页：未获取 / Customers say / 方面摘要 / 补抓说明（2026-11-20） ---- */
.snap-metric b i.na{font-style:normal;font-size:12.5px;font-weight:600;color:#a9a29a;letter-spacing:0;background:#f4f1ea;border:1px dashed #ded6c6;border-radius:6px;padding:3px 8px;display:inline-block}
.say-block{background:linear-gradient(180deg,#fbf8f0,#fffdf8);border:1px solid #eee5d3;border-left:3px solid #c8a86a;border-radius:10px;padding:12px 14px;margin:10px 0 14px}
.say-eyebrow{display:block;font-size:10.5px;letter-spacing:1.2px;color:#a08a5c;font-weight:700;margin-bottom:6px}
.say-block p{font-size:12.5px;line-height:1.75;color:#3b4d58;margin:0}
.aspect-sum{font-size:11.5px;line-height:1.65;color:#6b7c85;margin:0 0 6px}
.intel-note.fill-note{background:#f7f9f7;border:1px solid #e3ebe4;border-radius:9px;padding:8px 11px;margin-top:6px}
.intel-note.fill-note span{background:#e8f0e8;color:#4a7a56}

/* ---- 收藏的竞品（2026-11-20） ---- */
.fav-panel{max-width:720px}
.modal-head h3{font-size:18px;color:#263f50;margin:2px 0 5px;letter-spacing:-.2px}
.modal-head p{font-size:12px;color:#7e8b90;line-height:1.7;margin:0 0 14px}
.fav-list{display:flex;flex-direction:column;gap:8px}
.fav-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e9ece5;border-radius:11px;padding:11px 13px;background:linear-gradient(180deg,#fffdf8,#fbfaf5)}
.fav-main{min-width:0;display:flex;flex-direction:column;gap:3px}
.fav-main b{font-size:12.5px;color:#263f50;font-weight:650;line-height:1.45;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fav-main small{font-size:11.5px;color:#8b979d}
.fav-acts{display:flex;align-items:center;gap:6px;flex-shrink:0}
.fav-acts button,.fav-acts a{border:1px solid #dfd8c6;background:#fff;color:#3c545f;border-radius:7px;padding:6px 10px;font-size:11.5px;line-height:1;text-decoration:none;white-space:nowrap}
.fav-acts button:hover,.fav-acts a:hover{background:#faf6ea;border-color:#c8a86a}
.fav-acts button.ghost{border-color:#eee;color:#a1948a}
.fav-empty{font-size:12.5px;color:#8b979d;line-height:1.85;background:#fbfaf5;border:1px dashed #e2dccc;border-radius:11px;padding:16px}
.fav-empty small{font-size:11.5px;color:#a09a90;display:block;margin-top:6px;line-height:1.7}
.answer-actions button.faved{border-color:#c8a86a;background:#fff8e8;color:#8a6b28;font-weight:650}
@media(max-width:560px){
  .fav-row{flex-direction:column;align-items:stretch}
  .fav-main,.fav-main b{max-width:100%;width:100%}
  .fav-acts{width:100%;justify-content:flex-end;flex-wrap:wrap}
}

/* 评论主题：中文主名 + 英文原词 */
.intel-card-head b .aspect-en{font-size:10px;color:#a9a29a;font-weight:600;letter-spacing:0;margin-left:4px}

/* 评论中英双排（中文主、英文原字） */
.q-en{display:block;font-size:10px;line-height:1.55;color:#a9a29a;font-style:normal;margin-top:3px}
.sum-en{display:block;font-size:10px;line-height:1.6;color:#a9a29a;margin-top:4px}
.say-orig{margin-top:8px;border-top:1px dashed #eee5d3;padding-top:7px}
.say-orig summary{font-size:10.5px;color:#a08a5c;cursor:pointer;list-style:none}
.say-orig summary::-webkit-details-marker{display:none}
.say-orig summary::before{content:'▸ ';font-size:10px}
.say-orig[open] summary::before{content:'▾ '}
.say-orig p{font-size:11px;line-height:1.7;color:#8b979d;margin:6px 0 0}

/* ASIN 标题：中文主、英文原文小字 */
.asin-title-en{font-size:11.5px;line-height:1.6;color:#a9a29a;margin:5px 0 0}

/* 交付卡：已完成环节点亮（2026-11-20） */
.deliver-chips span.op,.deliver-chips span:not(.on){opacity:.5}
.deliver-chips span.on{opacity:1;border-color:#d8c49a;background:#fdf8ea;color:#8a6b28}
.deliver-progress{font-size:10.5px;line-height:1.7;color:#98a2a5;margin:8px 0 0}

/* 手机端输入区：三个下拉必须全部可见（原来「深度」被横滑藏到屏幕外） */
@media (max-width:640px){
  .composer-bottom{flex-wrap:wrap;row-gap:6px}
  .composer-tools{flex:1 1 100%;flex-wrap:nowrap;overflow:visible;row-gap:0;gap:5px}
  .composer-tools>*{flex:0 0 auto}
  .tool-select{font-size:0;padding:5px 7px}
  .tool-select select{font-size:11px;max-width:90px}
  .send{margin-left:auto}
}

/* ============ 手机端表格改卡片 + 交付「可测算」弱亮（2026-11-20 15:40） ============ */
/* 8 列表格在 390 宽只能横滑，看着累：≤640px 直接变一条条卡片，标签取表头 */
@media (max-width:640px){
  .table-wrap{overflow-x:visible;border:0;border-radius:0;margin-top:8px}
  .table-wrap>.sample-table{margin:0}
  .sample-table{min-width:0;display:block;font-size:12.5px}
  .sample-table thead{display:none}
  .sample-table tbody{display:block}
  .sample-table tr{display:flex;flex-direction:column;border:1px solid #e9ede8;border-radius:10px;background:#fff;padding:9px 11px;margin:0 0 8px}
  .sample-table tr:last-child{margin-bottom:0}
  .sample-table td{display:flex;gap:10px;align-items:flex-start;padding:3px 0;border:0;font-size:12.5px;color:#41535c;line-height:1.5;word-break:break-word}
  .sample-table td::before{content:attr(data-label);flex:0 0 68px;color:#8b979d;font-size:11.5px;font-weight:700;line-height:1.7}
  .sample-table td[data-label=""]::before{display:none}
  .sample-table td.snap-title{order:-1;display:block;white-space:normal;max-width:none;overflow:visible;text-overflow:clip;font-weight:650;color:#22323b;font-size:12.5px;padding:0 0 3px}
  .sample-table td.snap-title::before{display:none}
  .sample-table td.snap-asin{order:-1;display:block;padding:0 0 2px;border:0}
  .sample-table td.snap-asin::before{display:none}
  .sample-table td a{color:#3f6f8c}
}
.deliver-chips span.half{opacity:1;border-style:dashed;border-color:#dcbf86;background:#fdf9ee;color:#94702c}

/* 恢复上次对话后的分隔感：旧回答略淡，最后一条正常 */
.assistant-answer.restored{border-top:1px dashed #e6eae4;padding-top:18px}
.assistant-answer.restored:first-child{border-top:0;padding-top:0}

/* ============ 首屏只有一个输入框；开始采集后才变成对话（2026-11-20 15:55） ============ */
.start-panel{display:none}
body[data-stage="start"] .start-panel{display:block;text-align:center;max-width:720px;margin:0 auto 16px}
.start-mark{width:46px;height:46px;margin:0 auto 12px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(145deg,#fff0d2,#f9d27b);color:#9c681b;font-size:21px;box-shadow:0 7px 18px rgba(232,189,107,.24)}
.start-panel h1{font-size:clamp(22px,2.3vw,30px);letter-spacing:-.02em;color:#263f50;font-weight:750;margin:0 0 10px}
.start-panel p{margin:0;color:#7e8b90;font-size:13px;line-height:1.85}
.start-examples{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.start-examples button{border:1px solid #e9e9e2;background:#fffefa;border-radius:20px;padding:6px 13px;font-size:12px;color:#5c6b73;transition:.15s}
.start-examples button:hover{border-color:#e6bd78;color:#96651f;background:#fff8ea}
.start-resume{display:inline-flex;align-items:center;gap:7px;margin-top:14px;border:1px dashed #dcc89c;background:#fdf9ee;
  color:#8a6b28;border-radius:20px;padding:7px 14px;font-size:12px;max-width:100%}
.start-resume b{font-weight:750;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.start-resume:hover{background:#fbf3e0}

body[data-stage="start"] .workspace{display:flex;flex-direction:column;justify-content:center;
  max-width:880px;margin:0 auto;width:100%;padding-top:0}
body[data-stage="start"] .chat-shell{background:transparent;border:0;box-shadow:none;display:block;
  height:auto;min-height:0;overflow:visible}
body[data-stage="start"] .chat-head,
body[data-stage="start"] #thread,
body[data-stage="start"] .context-rail,
body[data-stage="start"] .composer-meta,
body[data-stage="start"] .composer-hint{display:none}
body[data-stage="start"] .composer-wrap{border-top:0;background:transparent;padding:0}
body[data-stage="start"] .composer{border-radius:16px;padding:14px 14px 10px;box-shadow:0 14px 34px rgba(38,63,80,.10)}
body[data-stage="start"] .composer textarea{font-size:15px;line-height:1.6}

/* 每条回答后面：继续提问 / 研究下一个词 */
.turn-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px dashed #e8ece7}
.turn-actions .ta-label{font-size:11px;color:#9aa4a8;letter-spacing:.04em}
.turn-actions button{border:1px solid #e5e9e4;background:#fff;border-radius:20px;padding:7px 15px;font-size:12.5px;color:#4d5f68;transition:.15s}
.turn-actions button:hover{border-color:#cdd6d1;background:#fafbf9}
.turn-actions button.ta-primary{border-color:#e3c68e;background:#fdf8ea;color:#8a6b28;font-weight:700}
.turn-actions button.ta-primary:hover{background:#fbefd6;border-color:#dbb877}
/* 下一步按钮下方的研究维度提示 */
.turn-dims{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.turn-dims .td-label{flex:0 0 auto;font-size:11px;color:#a4aeb1;letter-spacing:.03em}
.turn-dims .dim-chip{border:1px dashed #e2e7e1;background:#fbfcfa;border-radius:999px;padding:5px 12px;font-size:12px;color:#5b6d75;transition:.15s}
.turn-dims .dim-chip:hover{border-style:solid;border-color:#cfd8d1;background:#fff;color:#3f5259}
.turn-dims .dim-chip:active{background:#f2f6f0}
@media (max-width:640px){
  .turn-actions{gap:6px}
  .turn-actions .ta-label{flex:1 1 100%}
  .turn-actions button{flex:1 1 0;text-align:center;padding:9px 10px}
  .turn-dims{gap:6px;margin-top:8px}
  .turn-dims .td-label{flex:1 1 100%;font-size:10.5px}
  .turn-dims .dim-chip{padding:6px 11px;font-size:11.5px}
  body[data-stage="start"] .workspace{padding:0 12px}
  .start-panel h1{font-size:20px}
}

/* ============ 输入区重做：奶白暖调、站点 + 快速/深度采集（2026-11-20 16:20） ============ */
.composer{
  border:1px solid #e8e3d7;border-radius:16px;
  background:linear-gradient(180deg,#fffdf8 0%,#fffefc 42%,#ffffff 100%);
  box-shadow:0 10px 26px rgba(38,60,75,.07);
  padding:12px 14px 10px;transition:border-color .18s ease,box-shadow .18s ease
}
.composer:focus-within{border-color:#e2b476;box-shadow:0 0 0 4px rgba(230,189,120,.14),0 12px 30px rgba(38,60,75,.09)}
.composer textarea{font-size:13.5px;line-height:1.62}
.composer-note{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  font-size:11.5px;line-height:1.6;color:#8c8a80;
  background:#fbf7ee;border:1px solid #f1e8d6;border-radius:9px;padding:6px 10px;margin:2px 0 9px
}
.composer-note b{color:#8a6b28;font-weight:750}
.collect-toggle{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:9px;background:#f4f3ec;border:1px solid #eaece5}
.collect-toggle button{
  border:0;background:transparent;border-radius:7px;padding:5px 11px;font-size:11.5px;color:#7d888d;
  display:inline-flex;align-items:center;gap:4px;white-space:nowrap;transition:.15s
}
.collect-toggle button.on{background:#fff;color:#263f50;font-weight:750;box-shadow:0 1px 3px rgba(38,60,75,.12)}
.collect-toggle button i{font-style:normal;font-size:9.5px;color:#a9761f;background:#fdf1dc;border-radius:8px;padding:1px 5px}
.collect-toggle button.on i{background:#fbe7c6}
.send{
  border:0;border-radius:10px;padding:10px 18px;font-size:12.5px;font-weight:900;white-space:nowrap;
  color:#fff;background:linear-gradient(135deg,#f7ad3f,#ee9120);
  box-shadow:0 4px 12px rgba(238,145,32,.28);transition:filter .15s,box-shadow .15s
}
.send:hover{filter:brightness(1.04);box-shadow:0 6px 16px rgba(238,145,32,.34)}
.send:disabled{filter:grayscale(.35);opacity:.75;box-shadow:none}
@media (max-width:640px){
  .composer{padding:10px 11px 9px;border-radius:14px}
  .composer-note{font-size:11px;padding:5px 8px}
  .collect-toggle button{padding:5px 9px;font-size:11px}
  .collect-toggle button i{display:none}
  .send{padding:9px 14px}
}

/* 输入框去掉多余滚动条 + 说明条对比度提高 */
.composer textarea{overflow-y:auto;scrollbar-width:none}
.composer textarea::-webkit-scrollbar{width:0;height:0}
.composer-note{color:#7c7869}
.composer-note b{color:#7d5f21}
@media (max-width:640px){
  .composer textarea{font-size:14px}
}

/* ===== 2026-11-20 品牌标识（沿用旧站 logo）+ 采集方式按钮加强 + 研究历史/热门类目 ===== */
.brand-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;
  box-shadow:0 5px 12px rgba(118,80,13,.16);text-decoration:none;overflow:hidden;background:#263f52}
.brand-mark svg{width:40px;height:40px;display:block}

.collect-toggle{background:#f0ede2;border:1px solid #e0dbc9;border-radius:11px;padding:3px;gap:3px}
.collect-toggle button{padding:7px 13px;font-size:12.5px;font-weight:650;color:#6e787d;border-radius:8px;gap:5px}
.collect-toggle button small{font-size:9.5px;font-weight:600;color:#9a9c92}
.collect-toggle button.on{background:#263f52;color:#fff;font-weight:800;box-shadow:0 2px 6px rgba(38,63,82,.22)}
.collect-toggle button.on small{color:rgba(255,255,255,.72)}
.collect-toggle button i{background:#fdf1dc;color:#a9761f;font-weight:750}
.collect-toggle button.on i{background:#f0a63c;color:#3a2a08}

.hist-list{display:flex;flex-direction:column;gap:6px}
.hist-item{display:flex;align-items:center;gap:6px;border:1px solid #eceee7;background:#fff;border-radius:10px;padding:6px 8px}
.hist-main{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:0;cursor:pointer}
.hist-main b{display:block;font-size:12px;color:#22322b;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-main small{display:block;font-size:10.5px;color:#8b9690;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-go{flex:none;border:1px solid #e6d9b8;background:#fdf7e9;color:#8a6b28;font-size:11px;font-weight:800;
  border-radius:8px;padding:5px 8px;white-space:nowrap;transition:.15s}
.hist-go:hover{background:#f9ebce;border-color:#dcc38c}
.hist-item:hover{border-color:#e0e4d8;background:#fdfefb}

.hot-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.hot-grid button{display:block;border:1px solid #eceee7;background:#fff;border-radius:9px;padding:6px 8px;
  font-size:11px;color:#2c3f36;text-align:left;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.15s}
.hot-grid button small{display:block;font-size:9.5px;color:#9aa39d;margin-top:1px}
.hot-grid button:hover{border-color:#e2cfa0;background:#fffdf5}

@media (max-width:980px){
  .collect-toggle button{flex:1;justify-content:center}
  .hot-grid{grid-template-columns:1fr 1fr}
}

/* ===== 2026-11-20 额度用完：升级引导卡 ===== */
.paywall-answer{padding:0}
.paywall{
  position:relative;overflow:hidden;border:1px solid #f0e2c4;border-radius:18px;
  background:linear-gradient(150deg,#fffaf0 0%,#fffdf9 46%,#fdf6e8 100%);
  box-shadow:0 12px 30px rgba(160,116,36,.10);padding:18px 18px 14px
}
.paywall::before{
  content:"";position:absolute;right:-60px;top:-70px;width:200px;height:200px;border-radius:50%;
  background:radial-gradient(circle,rgba(240,166,60,.22),rgba(240,166,60,0) 70%)
}
.paywall-head{display:flex;align-items:flex-start;gap:12px;position:relative}
.paywall-icon{
  width:38px;height:38px;border-radius:12px;flex:none;display:grid;place-items:center;
  background:linear-gradient(135deg,#f9c96a,#ee9120);color:#fff;font-size:17px;
  box-shadow:0 6px 14px rgba(238,145,32,.30)
}
.paywall-copy b{display:block;font-size:15.5px;color:#22322b;font-weight:850;letter-spacing:.2px}
.paywall-copy p{margin:4px 0 0;font-size:12px;line-height:1.65;color:#7d8078}
.paywall-plans{display:grid;grid-template-columns:1.15fr .85fr;gap:12px;margin-top:14px;position:relative}
.paywall-plan{
  background:#fff;border:1px solid #f1e5cd;border-radius:14px;padding:12px 13px;
  box-shadow:0 4px 14px rgba(160,116,36,.06)
}
.pp-tag{
  display:inline-block;font-size:9.5px;font-weight:800;letter-spacing:.08em;color:#8a5a12;
  background:#fdefd2;border-radius:20px;padding:2px 8px;margin-bottom:6px
}
.paywall-plan>b{font-size:19px;color:#22322b;font-weight:900}
.paywall-plan>b i{font-style:normal;font-size:11px;font-weight:650;color:#8a969a;margin-left:2px}
.paywall-plan ul{list-style:none;margin:8px 0 10px;padding:0}
.paywall-plan li{
  position:relative;padding-left:15px;font-size:11.5px;line-height:1.85;color:#4c5a55
}
.paywall-plan li::before{content:"✓";position:absolute;left:0;color:#bf8a2a;font-weight:900;font-size:10.5px}
.paywall-cta{
  width:100%;border:0;border-radius:10px;padding:10px 12px;cursor:pointer;
  background:linear-gradient(135deg,#f7ad3f,#ea8b16);color:#fff;font-size:13px;font-weight:850;
  box-shadow:0 6px 16px rgba(234,139,22,.28);transition:filter .15s,box-shadow .15s
}
.paywall-cta em{display:block;font-style:normal;font-size:10px;font-weight:600;opacity:.9;margin-top:2px}
.paywall-cta:hover{filter:brightness(1.04);box-shadow:0 8px 20px rgba(234,139,22,.34)}
.paywall-side{display:flex;flex-direction:column;gap:8px}
.paywall-ghost{
  flex:1;border:1px solid #eceee7;background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer;
  text-align:left;font-size:12px;font-weight:750;color:#33443e;transition:.15s
}
.paywall-ghost small{display:block;font-size:10px;font-weight:600;color:#98a19b;margin-top:3px}
.paywall-ghost:hover{border-color:#e2cfa0;background:#fffdf6}
.paywall-foot{margin:12px 0 0;font-size:10.5px;color:#9aa09a;position:relative}
@media (max-width:640px){
  .paywall{padding:14px 13px 12px;border-radius:15px}
  .paywall-plans{grid-template-columns:1fr;gap:9px}
  .paywall-copy b{font-size:14.5px}
  .paywall-cta{font-size:12.5px}
}

/* ---------- 深度采集：图形 + 单品详情 + 评论主题（2026-11-20） ---------- */
.viz-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:10px 0 4px}
.viz{margin:0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px 12px 9px;min-width:0}
.viz figcaption{display:flex;flex-direction:column;gap:1px;margin-bottom:8px}
.viz figcaption b{font-size:12px;color:#2f4756;font-weight:800}
.viz figcaption small{font-size:10.5px;color:#8b979c}
.viz-note{margin:8px 0 0;font-size:10.5px;color:#8b979c;line-height:1.55}
.viz-empty{margin:6px 0;font-size:11px;color:#9aa4a8}
.viz-bars{display:flex;flex-direction:column;gap:6px}
.viz-row{display:grid;grid-template-columns:76px 1fr 62px;align-items:center;gap:8px;font-size:11px;color:#5c6d76}
.viz-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#68777e}
.viz-track{display:block;height:9px;border-radius:6px;background:#f1f3f0;overflow:hidden}
.viz-track b{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#ffe3a1,#f5c34e)}
.viz-val{text-align:right;font-weight:700;color:#3f5160;white-space:nowrap}
.viz-row.tone-pos .viz-track b{background:linear-gradient(90deg,#cfe8df,#3f8175)}
.viz-row.tone-neg .viz-track b{background:linear-gradient(90deg,#f6d3c8,#c1543f)}
.viz-row.tone-mix .viz-track b{background:linear-gradient(90deg,#f3e2c2,#c98b3a)}
.viz-donut-wrap{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.viz-donut{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;flex:none}
.viz-donut span{width:66px;height:66px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;line-height:1.15}
.viz-donut b{font-size:15px;color:#2f4756}
.viz-donut small{font-size:9px;color:#8b979c;display:block}
.viz-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px;font-size:11px;color:#5c6d76}
.viz-legend li{display:flex;align-items:center;gap:6px}
.viz-legend i{width:9px;height:9px;border-radius:3px;flex:none}
.viz-legend b{margin-left:auto;color:#3f5160}
.pill-ad{display:inline-block;font-size:9.5px;font-weight:700;color:#93611c;background:#fdf0d4;border:1px solid #f3e0b6;border-radius:20px;padding:1px 6px}
.depth-lead{margin:2px 0 10px;font-size:11.5px;color:#7d8b91;line-height:1.65}
.detail-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px;margin:0 0 12px}
.detail-head{display:flex;gap:12px;align-items:flex-start}
.detail-img{width:74px;height:74px;object-fit:contain;border:1px solid #eef1ee;border-radius:9px;background:#fbfbf8;flex:none}
.detail-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.detail-rank{font-size:10px;color:#9aa4a8;letter-spacing:.06em}
.detail-copy b{font-size:13px;color:#2f4756;line-height:1.45}
.detail-en{font-size:10.5px;color:#9aa4a8;line-height:1.5}
.detail-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px;font-size:10.5px;color:#68777e}
.detail-tags i{font-style:normal;background:#f4f6f3;border:1px solid #eaece7;border-radius:20px;padding:1px 7px}
.detail-tags a{color:#2f6f86;text-decoration:none;font-weight:700}
.kv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:6px;margin:11px 0 4px}
.kv{background:#fafaf7;border:1px solid #f0f1ec;border-radius:8px;padding:6px 8px;min-width:0}
.kv small{display:block;font-size:9.5px;color:#9aa4a8;margin-bottom:2px}
.kv span{font-size:11.5px;color:#33454f;font-weight:650;overflow-wrap:anywhere}
.detail-cols{display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px;margin-top:10px}
.detail-cols h5{margin:0 0 6px;font-size:10.5px;color:#8b979c;font-weight:700;letter-spacing:.04em}
.detail-bullets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.detail-bullets li{font-size:11.5px;line-height:1.6;color:#3a4d59}
.detail-missing{margin:9px 0 0;font-size:10.5px;color:#a1834a;background:#fdf8ec;border:1px solid #f4e7c9;border-radius:8px;padding:6px 8px}
.aspect-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.aspect{border-top:1px dashed #eef1ee;padding-top:9px}
.aspect:first-child{border-top:0;padding-top:0}
.aspect-top{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.aspect-top b{font-size:12.5px;color:#2f4756}
.aspect-senti{margin-left:auto;font-size:10.5px;font-weight:700;color:#8b979c}
.aspect.tone-neg .aspect-senti{color:#b5513c}
.aspect.tone-pos .aspect-senti{color:#3f8175}
.aspect-bar{display:block;height:6px;border-radius:5px;background:#f1f3f0;margin:6px 0;overflow:hidden}
.aspect-bar b{display:block;height:100%;border-radius:5px;background:#c9d3cd}
.aspect.tone-pos .aspect-bar b{background:#7fb3a5}
.aspect.tone-neg .aspect-bar b{background:#d99a89}
.aspect.tone-mix .aspect-bar b{background:#e0bd7f}
.aspect-sum{margin:4px 0 6px;font-size:11.5px;line-height:1.6;color:#566a73}
.aspect-sum .sum-en{display:block;font-size:10px;color:#a3aaad;margin-top:2px}
@media(max-width:640px){
  .table-wrap.is-folded{max-height:none;overflow:visible;-webkit-mask-image:none;mask-image:none}
  .tbl-more{display:none}
  .viz-grid{grid-template-columns:1fr}
  .detail-cols{grid-template-columns:1fr}
  .kv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .viz-row{grid-template-columns:66px 1fr 54px}
  .depth-h4{gap:9px;margin:24px 0 11px;padding-top:14px}
  .dsec-no{width:24px;height:24px;border-radius:8px;font-size:11px;margin-top:-1px}
  .dsec-copy b{font-size:16px}
  .dsec-copy small{font-size:11.5px}
  .dsec-nav{grid-template-columns:1fr 1fr;gap:5px;padding:8px}
  .dsec-chip{font-size:10.5px;padding:5px 8px 5px 5px;border-radius:8px}
  .dsec-chip i{width:16px;height:16px;font-size:9px}
  .dep-steps{grid-template-columns:1fr 1fr}
  .dep-step small{display:none}
}

/* ---------- 维度解读 / 需求侧 / 更多参数（2026-11-20 18:5x） ---------- */
.dim-note{margin:10px 0 4px;padding:9px 12px 9px 13px;border-left:3px solid #7fb3a5;background:#f5f9f7;border-radius:0 9px 9px 0;font-size:11.5px;line-height:1.75;color:#3f5560}
.dim-note b{display:inline-block;margin-right:7px;font-size:10.5px;color:#fff;background:#3f8175;border-radius:5px;padding:1px 7px;letter-spacing:.04em;vertical-align:1px}
.demand-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin:4px 0 14px;padding:11px 12px;border:1px dashed #cfded8;border-radius:11px;background:#fbfdfc}
.demand-strip div{display:flex;flex-direction:column;gap:2px;min-width:0}
.demand-strip small{font-size:10.5px;color:#7d8b91}
.demand-strip b{font-size:17px;color:#2f4756;letter-spacing:-.2px}
.demand-strip em{font-style:normal;font-size:10px;color:#9aa4a8;line-height:1.4}
.entry-card{margin:8px 0 4px;padding:13px 15px;border:1px solid #d9e6df;border-radius:12px;background:linear-gradient(180deg,#f7fbf9,#f2f7f4)}
.entry-card b{display:block;font-size:12.5px;color:#2f4756;margin-bottom:5px}
.entry-card p{margin:0 0 6px;font-size:12.5px;line-height:1.8;color:#33454f}
.entry-card small{font-size:10.5px;color:#8b979c;line-height:1.5}
.detail-more{margin-top:10px;border-top:1px dashed #eef1ee;padding-top:8px}
.detail-more summary{cursor:pointer;font-size:11px;font-weight:700;color:#2f6f86;list-style:none}
.detail-more summary::-webkit-details-marker{display:none}
.detail-more summary:before{content:'+ ';color:#9aa4a8}
.detail-more[open] summary:before{content:'– '}
.detail-more .kv-grid{margin-top:9px}
.detail-thumbs{display:flex;gap:7px;margin-top:9px;flex-wrap:wrap}
.detail-thumbs img{width:58px;height:58px;object-fit:contain;border:1px solid #eef1ee;border-radius:8px;background:#fbfbf8}

/* paywall 细节调整（对齐 / 间距 / 对比度） */
.paywall-plan{display:flex;flex-direction:column}
.paywall-plan ul{margin:8px 0 12px}
.paywall-plan .paywall-cta{margin-top:auto}
.paywall-side{justify-content:space-between}
.paywall-ghost{background:#fbfaf5;border-color:#e9e6da}
.paywall-ghost small{color:#7f8a84}
.paywall-foot{margin-top:14px;padding-top:10px;border-top:1px dashed #efe4cd;color:#8f948d}
.paywall{padding-bottom:16px}

/* paywall：右栏也加一个同款标签，两栏顶对齐；底部说明加深 */
.paywall-side{display:flex;flex-direction:column;gap:8px}
.paywall-side .pp-tag{background:#f2f1ea;color:#6d746d;margin-bottom:0;align-self:flex-start}
.paywall-foot{color:#6f756e;font-size:10.5px}

/* 右栏只剩两张卡：研究历史撑满剩余高度，内部滚动，避免大片空白 */
.context-rail .history-card{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.context-rail .history-card .hist-list{overflow-y:auto;scrollbar-width:thin;padding-right:2px}
.context-rail .history-card .session-new{margin-top:8px}
.context-rail .hot-card{flex:none}
@media (max-width:980px){
  .context-rail .history-card{flex:none}
  .context-rail .history-card .hist-list{overflow:visible;max-height:none}
}

/* 研究历史：列表撑满卡片，按钮贴底 */
.context-rail .history-card .hist-list{flex:1 1 auto;min-height:0}

/* 研究历史：列表改 flex，底部小提示把空白补成有内容的留白 */
.context-rail .history-card .hist-list{display:flex;flex-direction:column}
.hist-tip{
  margin-top:auto;padding:10px 11px;border-radius:10px;background:#fbf8f0;border:1px dashed #eee2c9;
  font-size:10.5px;line-height:1.7;color:#8b9187
}
.hist-tip b{display:block;font-size:11px;color:#6f7a70;margin-bottom:2px;font-weight:800}

/* 研究历史：条目均匀铺满卡片，热门关键词胶囊等高 */
.context-rail .history-card .hist-list{justify-content:space-between}
.hot-grid button{min-height:54px;display:flex;flex-direction:column;justify-content:center}
.viz-donut-wrap{gap:10px}
.viz-legend{flex:1;min-width:110px}
.viz-grid{align-items:stretch}
.viz-legend{flex:0 1 auto;min-width:96px}
.viz-donut-wrap{gap:12px}
@media(min-width:900px){.viz-grid .viz:last-child:nth-child(odd){grid-column:span 2}}

/* ============ 首屏也显示右侧栏目（2026-11-20 18:15） ============ */
body[data-stage="start"] .workspace{
  display:grid;grid-template-columns:minmax(0,1fr) 300px;
  grid-template-rows:auto auto;gap:18px 24px;
  align-items:start;justify-content:normal;
  max-width:1180px;width:100%;margin:0 auto;padding-top:6px
}
body[data-stage="start"] .start-panel{grid-column:1;grid-row:1;max-width:720px;margin:0 auto;width:100%}
body[data-stage="start"] .chat-shell{grid-column:1;grid-row:2;max-width:720px;margin:0 auto;width:100%}
body[data-stage="start"] .context-rail{
  display:flex;flex-direction:column;gap:10px;
  grid-column:2;grid-row:1 / span 2;
  max-height:none;height:auto;min-height:0;overflow:visible;position:sticky;top:10px
}
@media (max-width:980px){
  body[data-stage="start"] .workspace{display:flex;flex-direction:column;gap:14px}
  body[data-stage="start"] .start-panel,body[data-stage="start"] .chat-shell{max-width:100%}
  body[data-stage="start"] .context-rail{position:static;display:grid;grid-template-columns:1fr 1fr;overflow:visible}
}
@media (max-width:640px){
  body[data-stage="start"] .context-rail{grid-template-columns:1fr}
}

/* ============ 顶部「正在研究的关键词」+ 研究下一个词（2026-11-20 18:40） ============ */
.chat-kw{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;padding:0 6px}
.chat-kw .ck-label{font-size:10.5px;color:#98a4a8;letter-spacing:.04em;white-space:nowrap}
.chat-kw b{font-size:12.5px;color:#263f50;font-weight:700;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-kw .ck-next{
  flex:none;border:1px solid #e3cf9f;background:#fdf8ea;color:#8a6b28;
  border-radius:20px;padding:5px 12px;font-size:11.5px;font-weight:650;white-space:nowrap;transition:.15s
}
.chat-kw .ck-next:hover{background:#fbefd6;border-color:#dbb877}
@media (max-width:1100px){
  .chat-kw{justify-content:flex-start}
  .chat-kw b{max-width:170px}
}
@media (max-width:860px){
  .chat-kw .ck-label{display:none}
  .chat-head .secure-label{display:none}
}
@media (max-width:640px){
  .chat-kw{gap:6px;padding:0}
  .chat-kw b{max-width:104px;font-size:11.5px}
  .chat-kw .ck-next{padding:5px 9px;font-size:10.5px}
}

/* 只有一种采集方式：把分段按钮做成一个静态徽标 */
.collect-toggle button[data-collect="deep"]{cursor:default}

/* ===== 对话页 = 聊天输入（不再显示采集开关与采集说明，2026-11-20 18:55） ===== */
body[data-stage="chat"] #collectToggle,
body[data-stage="chat"] #collectNote{display:none}
body[data-stage="chat"] .composer-bottom{justify-content:space-between}
body[data-stage="chat"] .send{padding:0 22px}

/* ===== 账号与套餐标识（2026-11-21） ===== */
.user-copy{min-width:0}
.user-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}
.user-plan-badge{font-size:9px;font-weight:850;letter-spacing:.08em;border-radius:20px;padding:3px 7px;flex:none;
  color:#0f2e3a;background:linear-gradient(135deg,#ffe2a1,#e7a13a);box-shadow:0 2px 6px rgba(200,140,50,.25)}
.user-plan-badge.ultra{color:#ffe6b0;background:linear-gradient(135deg,#2c4a5d,#0f2836)}
.user-gear{margin-left:auto;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex:none;
  font-size:13px;color:#6a5426;background:#f7f1e2;border:1px solid rgba(149,107,38,.18);transition:background .16s}
.user-gear:hover{background:#fff6df;color:#3f3120}

.acct-panel{max-width:470px}
.acct-sub{font-size:12px;color:#7e8b90;line-height:1.75;margin:0 0 14px}
.acct-tabs{display:flex;gap:6px;margin-bottom:12px}
.acct-tab{flex:1;padding:9px 0;border-radius:9px;font-size:12.5px;font-weight:700;color:#6d7d84;border:1px solid #e7eae1;background:#fafbf7}
.acct-tab.active{background:#203e52;color:#ffe6b0;border-color:#203e52}
.acct-field{display:block;margin:0 0 10px}
.acct-field span{display:block;font-size:11px;font-weight:700;color:#5f717a;margin-bottom:5px}
.acct-field input{width:100%;padding:10px 12px;border:1px solid #dfe4da;border-radius:9px;font-size:12.5px;background:#fff}
.acct-field input:focus{outline:none;border-color:#c9a35a;box-shadow:0 0 0 3px rgba(231,161,58,.14)}
.acct-msg{min-height:16px;font-size:11.5px;color:#c1543f;margin:2px 0 10px;line-height:1.6}
.acct-msg.ok{color:#3e806f}
.acct-submit{width:100%}
.acct-id{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:11px;background:#f7f9f4;border:1px solid #e7ecdf;margin-bottom:6px}
.acct-id>div{min-width:0}
.acct-id b{display:block;font-size:12.5px;color:#2f4756;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-id small{display:block;font-size:10.5px;color:#7e8b90;margin-top:2px}
.acct-avatar{width:34px;height:34px;border-radius:50%;background:#29485b;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}
.plan-badge{margin-left:auto;font-size:9px;font-weight:850;letter-spacing:.08em;border-radius:20px;padding:3px 8px;
  background:linear-gradient(135deg,#ffe2a1,#e7a13a);color:#0f2e3a;flex:none}
.plan-badge.ultra{background:linear-gradient(135deg,#2c4a5d,#0f2836);color:#ffe6b0}
.acct-block{border-top:1px dashed #e6e9df;padding-top:13px;margin-top:13px}
.acct-block>b{display:block;font-size:12.5px;color:#2f4756;margin-bottom:9px}
.acct-block .btn{width:100%}
.acct-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}

/* 智能助手思考中：三个点 + 暖色底 */
.ai-dots{display:inline-flex;gap:3px;align-items:center;margin-right:5px;vertical-align:-1px}
.ai-dots i{width:4px;height:4px;border-radius:50%;background:#c8963c;animation:aidot 1.1s infinite ease-in-out}
.ai-dots i:nth-child(2){animation-delay:.16s}
.ai-dots i:nth-child(3){animation-delay:.32s}
@keyframes aidot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.ai-card[data-state="thinking"]{border-color:#efd9a8;background:linear-gradient(180deg,#fffdf5,#fff7e6)}
.ai-card[data-state="thinking"] .ai-meta{color:#b1792c;font-weight:700}
/* 长邮箱（移动端）不撑破弹窗 */
.acct-msg{word-break:break-all}
.acct-id b{max-width:100%}
.acct-id>div{flex:1;min-width:0}
@media (max-width:520px){
  .acct-panel{width:calc(100% - 20px);padding:20px 16px}
  .acct-id b{font-size:12px}
}

/* ---------- 差评与改款方向（2026-11-21） ---------- */
.fix-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-top:10px}
.fix-card{border:1px solid #e9ede7;border-radius:11px;padding:12px 13px;background:#fff;display:flex;flex-direction:column;gap:8px}
.fix-card.tone-neg{border-color:#f0d9c8;background:#fffaf6}
.fix-head{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.fix-head b{font-size:13px;color:#22323c}
.fix-head small{font-size:10.5px;color:#7b8b93}
.fix-tag{font-size:10px;font-weight:700;letter-spacing:.03em;border-radius:5px;padding:1px 6px;background:#f1f4f2;color:#5c6f78}
.fix-card.tone-neg .fix-tag{background:#fbe9dd;color:#b4611f}
.fix-why{margin:0;font-size:11.5px;line-height:1.7;color:#55696f}
.fix-list{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:4px}
.fix-list li{font-size:12px;line-height:1.65;color:#2f4149}
@media (max-width:640px){.fix-grid{grid-template-columns:1fr}}

/* ---------------- 2026-11-21：每块数据后面的交叉分析 ---------------- */
.an-list{display:flex;flex-direction:column;gap:9px;margin:12px 0 6px}
.an-block{border:1px solid #e7ecef;border-left:4px solid #6f8fa6;border-radius:0 11px 11px 0;background:linear-gradient(180deg,#fbfcfd,#f6f9fa);padding:11px 14px 12px}
.an-block.tone-good{border-left-color:#3d8f6d;background:linear-gradient(180deg,#fafdfb,#f2f9f5)}
.an-block.tone-risk{border-left-color:#d1793f;background:linear-gradient(180deg,#fffbf7,#fdf4ec)}
.an-block.tone-act{border-left-color:#3f7fb0;background:linear-gradient(180deg,#fafcfe,#f1f7fc)}
.an-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:5px}
.an-k{font-size:10px;font-weight:800;letter-spacing:.08em;color:#fff;background:#3d5b6e;border-radius:5px;padding:1.5px 6px}
.an-block.tone-good .an-k{background:#2f7a5c}
.an-block.tone-risk .an-k{background:#b8621f}
.an-block.tone-act .an-k{background:#356f9c}
.an-tag{font-size:10px;font-weight:700;border-radius:5px;padding:1px 7px;background:#eef3f6;color:#4a6172}
.an-block.tone-good .an-tag{background:#e6f4ec;color:#2c6f52}
.an-block.tone-risk .an-tag{background:#fbe9dd;color:#a35618}
.an-block.tone-act .an-tag{background:#e9f2fa;color:#2f6389}
.an-head b{font-size:13px;color:#20323d;line-height:1.45;font-weight:700}
.an-block p{margin:0;font-size:12px;line-height:1.78;color:#3c4f5a}
@media (max-width:640px){.an-block{padding:10px 11px 11px}.an-head b{font-size:12.5px}.an-block p{font-size:11.5px}}

/* ---------------- 2026-11-21：站内通知 / 支付 / 彩豆包 ---------------- */
.bell-btn{position:relative}
.bell-dot{position:absolute;top:-3px;right:-3px;min-width:15px;height:15px;border-radius:9px;background:#e05a3a;color:#fff;font-size:9.5px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px;box-shadow:0 0 0 2px #fff}
.acct-check{display:flex;gap:7px;align-items:flex-start;font-size:11.5px;color:#5d6b7a;line-height:1.5;margin:2px 0 10px}
.acct-check input{margin-top:2px}
/* 注册：验证码 / 域名提示 / 协议勾选（2026-11-21） */
.acct-hint{font-size:11px;color:#93a0ad;line-height:1.6;margin:-4px 0 10px}
/* 忘记密码 / 返回登录：放在密码下面的一行小链接 */
.acct-forgot{display:inline-block;margin:-4px 0 10px;padding:0;border:0;background:none;color:#8a6b28;font-size:11.5px;font-weight:700;cursor:pointer;text-decoration:underline dotted}
.acct-forgot:hover{color:#6d5218}
.acct-forgot[hidden]{display:none}
.acct-code-row{display:flex;gap:8px;margin:0 0 10px}
.acct-code-row input{flex:1;padding:10px 12px;border:1px solid #dfe4da;border-radius:9px;font-size:12.5px;letter-spacing:2px;background:#fff}
.acct-code-row input:focus{outline:none;border-color:#c9a35a;box-shadow:0 0 0 3px rgba(231,161,58,.14)}
.acct-code-row .btn{flex:0 0 auto;min-width:108px;height:auto;padding:0 12px;font-size:12px;border:1px solid #e3c68e;background:#fdf8ea;color:#8a6b28;font-weight:700;border-radius:9px}
.acct-code-row .btn:disabled{background:#f4f6f3;border-color:#e4e9e2;color:#a3aeb2;font-weight:400}
.acct-agree{display:flex;gap:7px;align-items:flex-start;font-size:11.5px;color:#5d6b7a;line-height:1.55;margin:2px 0 10px}
.acct-agree input{margin-top:2px}
.acct-agree a{color:#b4813a;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(180,129,58,.4)}
.terms-panel{max-width:640px}
.terms-updated{font-size:11px;color:#9aa6b4;margin:0 0 12px}
.terms-body{max-height:52vh;overflow:auto;padding-right:6px;font-size:12.6px;line-height:1.95;color:#54636f}
.terms-body h3{font-size:13px;color:#172d45;margin:16px 0 6px}
.terms-body p{margin:0 0 8px}
.terms-foot{display:flex;justify-content:flex-end;margin-top:14px}
.acct-planline{font-size:11.5px;color:#a06a22;background:#fdf7ec;border:1px solid #f2e3c6;border-radius:8px;padding:7px 10px;margin:8px 0 0}
.pay-line{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed #e8edf2;font-size:12.5px}
.pay-line:last-child{border-bottom:0}
.pay-line b{font-variant-numeric:tabular-nums}
.pay-amount{font-size:26px;font-weight:800;letter-spacing:-.5px;color:#172d45;margin:4px 0 2px}
.pay-method{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 4px}
.pay-method button{border:1px solid #dfe6ee;background:#fff;border-radius:9px;padding:7px 11px;font-size:12px;cursor:pointer}
.pay-method button.on{border-color:#e96b28;background:#fff6ef;color:#c34f0f;font-weight:700}
.pay-note{font-size:11.5px;color:#6b7a8b;line-height:1.65;background:#f7f9fb;border-radius:9px;padding:9px 11px;margin-top:10px}
.pay-order-no{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;font-weight:700;letter-spacing:.5px}
.notice-item{padding:11px 0;border-bottom:1px solid #eef1f4}
.notice-item:last-child{border-bottom:0}
.notice-item b{font-size:13px;display:block;margin-bottom:3px}
.notice-item p{margin:0;font-size:12px;color:#5d6b7a;line-height:1.65;white-space:pre-wrap}
.notice-item small{font-size:10.5px;color:#9aa6b4;display:block;margin-top:4px}
.notice-item.unread b::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#e05a3a;margin-right:6px;vertical-align:1px}
.notice-item.danger b{color:#a33b32}
.notice-item.warn b{color:#a06a22}
.bean-packs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.bean-packs button{flex:1;min-width:110px;border:1px solid #dfe6ee;background:#fff;border-radius:10px;padding:9px 10px;cursor:pointer;text-align:left}
.bean-packs button b{display:block;font-size:13px;color:#172d45}
.bean-packs button small{font-size:10.5px;color:#8b98a6}
.bean-packs button:hover{border-color:#e96b28;background:#fff8f3}

.pay-hero{background:linear-gradient(160deg,#172d45,#22405f);border-radius:12px;padding:14px 16px;margin-bottom:12px;color:#fff}
.pay-hero .pay-amount{color:#fff;font-size:30px;margin:2px 0 4px}
.pay-hero-title{font-size:12.5px;color:#c9d6e4}
.pay-hero .pay-order-no{color:#9fb0c3;font-size:11.5px;letter-spacing:.3px}
.pay-account{font-size:12px;color:#435164;margin-top:8px;background:#f7f9fb;border-radius:8px;padding:8px 10px;line-height:1.6;word-break:break-all}
.pay-msg{font-size:11.5px;color:#5d6b7a;margin-top:10px;line-height:1.6;min-height:16px}
/* 在线支付（易支付） */
.pay-online{background:#f7fbf6;border:1px solid #e2ebdd;border-radius:11px;padding:12px 13px 11px;margin:12px 0 10px}
.pay-online-label{font-size:11.5px;color:#6b7f63;margin-bottom:9px;letter-spacing:.02em}
.pay-online-btns{display:flex;gap:8px;flex-wrap:wrap}
.pay-online-btns .btn{flex:1 1 110px;justify-content:center;height:38px}
.pay-ch{background:#fff;border:1px solid #e3c68e;color:#8a6b28;font-weight:700;border-radius:9px}
.pay-ch:hover{background:#fdf8ea;border-color:#dbb877}
.pay-ch:disabled{opacity:.6;cursor:default}
.pay-online-hint{font-size:11px;color:#93a08a;margin-top:10px;line-height:1.6}
.pay-alt{display:block;width:100%;text-align:left;background:none;border:0;padding:0 0 10px;font-size:11.5px;color:#8a97a6;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pay-alt:hover{color:#5d6b7a}
#payCheck{background:#f5f8f6;border:1px solid #dfe6e0;border-radius:9px;height:40px;font-weight:700;color:#3f5259}
#payCheck:hover{background:#edf2ee}
.pay-check-ghost{background:none !important;border:0 !important;height:auto !important;font-weight:400 !important;color:#96a2ae !important;font-size:11.5px !important;padding:6px 0 !important;text-decoration:underline;text-underline-offset:3px}
.pay-check-ghost:hover{color:#5d6b7a !important}
.pay-panel{padding-bottom:22px}
/* 被弹窗拦截时的保底链接（2026-11-25） */
.pay-open-link{display:inline-block;margin-top:6px;font-weight:700;color:#c34f0f;text-decoration:underline;text-underline-offset:3px}
.pay-open-link:hover{color:#a63f08}
@media (max-width:480px){.pay-panel .modal-body,.pay-panel{padding-left:16px;padding-right:16px}.pay-hero .pay-amount{font-size:26px}}

/* 通用按钮（后台/弹窗共用；app.css 之前只定义了 .plan-btn 等专用按钮） */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #dfe6ee;background:#fff;color:#26394f;border-radius:9px;padding:9px 14px;font-size:12.5px;font-weight:650;cursor:pointer;transition:background .16s,border-color .16s,transform .12s}
.btn:hover{border-color:#c9d4e0;background:#f8fafc}
.btn:active{transform:translateY(1px)}
.btn.primary{background:#e96b28;border-color:#e96b28;color:#fff;box-shadow:0 6px 16px rgba(233,107,40,.22)}
.btn.primary:hover{background:#d75f20;border-color:#d75f20}
.btn.ghost{background:transparent;border-color:transparent;color:#5d6b7a}
.btn.ghost:hover{background:#f1f4f7}
.btn:disabled{opacity:.55;cursor:not-allowed}

/* ============ 采集数据排版优化（2026-11-23 16:30） ============ */
/* 1) 数字列统一右对齐 + 等宽数字：价格/评分/评论/月销可以纵向比 */
.sample-table th.c-num,.sample-table td.c-num{text-align:right;white-space:nowrap}
.sample-table td.c-num{font-variant-numeric:tabular-nums;color:#3d5162;font-weight:600}
.sample-table td.c-num .v{display:inline-block}
.sample-table td.c-num .u{font-style:normal;color:#9aa4a8;font-weight:600;margin-left:1px}
.sample-table th.c-rank,.sample-table td.c-rank{width:38px;text-align:center}
.sample-table td.c-asin{white-space:nowrap;font-size:10.5px;letter-spacing:.02em}
.sample-table td.c-brand{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sample-table .na{color:#c2cace;font-weight:400}

/* 2) 名次徽标：前三名单独着色，一眼看出头部 */
.rk{display:inline-grid;place-items:center;min-width:21px;height:20px;padding:0 4px;border-radius:6px;
  background:#f3f5f2;color:#8b979c;font-size:10.5px;font-weight:800;font-variant-numeric:tabular-nums}
.rk-1{background:linear-gradient(180deg,#fde9b6,#f5ca6c);color:#87570d;box-shadow:0 1px 0 rgba(255,255,255,.7) inset}
.rk-2{background:linear-gradient(180deg,#eef1f3,#d9e1e5);color:#56666f}
.rk-3{background:linear-gradient(180deg,#f8e3cf,#eccdaa);color:#8a5a2c}

/* 3) 广告位整行浅底 + 左侧色条，自然位保持干净 */
.depth-table tbody tr.row-ad td{background:#fffdf5}
.depth-table tbody tr.row-ad td:first-child{box-shadow:inset 3px 0 0 #f0cb85}
.depth-table tbody tr:hover td{background:#f6faf8}
.depth-table tbody tr.row-ad:hover td{background:#fef9ec}
.pill-org{display:inline-block;font-size:9.5px;font-weight:700;color:#5b7a70;background:#f1f5f2;
  border:1px solid #e3eae4;border-radius:20px;padding:1px 6px}

/* 4) 表格工具条：样本构成 + 类型筛选 */
.tbl-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:11px 0 0;padding:8px 11px;
  border:1px solid #e6ece6;border-radius:10px;background:linear-gradient(180deg,#fbfcfb,#f6f9f6)}
.tbl-sum{font-size:11.5px;color:#6b7c85;font-variant-numeric:tabular-nums}
.tbl-sum b{font-size:13px;color:#2f4756;margin:0 2px}
.tbl-sum i{font-style:normal;color:#c5ced2;margin:0 3px}
.tbl-tabs{display:flex;gap:3px;margin-left:auto;background:#eef2ee;border-radius:8px;padding:2px}
.tbl-tabs button{border:0;background:transparent;font-size:11px;font-weight:700;color:#6b7c85;
  padding:4px 10px;border-radius:6px;cursor:pointer;white-space:nowrap;transition:.14s}
.tbl-tabs button:hover{color:#2f6a5c}
.tbl-tabs button.on{background:#fff;color:#2f6a5c;box-shadow:0 1px 3px rgba(23,47,58,.1)}
.tbl-block>.table-wrap{margin-top:6px}

/* 5) 单品详情：指标分组，价格/评分/评论/BSR 放大 */
.kv-groups{margin:10px 0 2px}
.kv-group{margin:0 0 11px}
.kv-group:last-child{margin-bottom:0}
.kv-group h5{margin:0 0 6px;font-size:10px;font-weight:800;color:#93a0a6;letter-spacing:.09em}
.kv-group .kv-grid{margin:0;grid-template-columns:repeat(var(--kc,4),minmax(0,1fr))}
.kv-group .kv-grid+.kv-grid{margin-top:6px}
.kv-group .kv-grid.kv-one{grid-template-columns:1fr}
.kv.kv-full{grid-column:1/-1}
.kv.kv-big span{font-size:13.5px;letter-spacing:-.2px;color:#263d4b;font-variant-numeric:tabular-nums}
.kv span.na{color:#b9c2c6;font-weight:500}

/* 6) 英文原文折叠：中文为主，英文按需展开，长报告不再被英文淹掉 */
.en-fold{margin:5px 0 0}
.en-fold>summary{font-size:10.5px;color:#8fa2ab;cursor:pointer;list-style:none;display:inline-flex;
  align-items:center;gap:4px;padding:2px 0}
.en-fold>summary::-webkit-details-marker{display:none}
.en-fold>summary::before{content:"›";display:inline-block;transition:transform .15s;font-weight:800}
.en-fold[open]>summary::before{transform:rotate(90deg)}
.en-fold>summary:hover{color:#5f7b88}
.en-list{margin:4px 0 0;padding-left:18px;font-size:10.5px;line-height:1.6;color:#8b979d}
.en-fold p{margin:3px 0 0;font-size:10.5px;line-height:1.6;color:#8b979d}
.aspect .en-fold{margin-top:3px}

/* 7) 图表数值列加宽一点，避免「无标注」被挤 */
.viz-row{grid-template-columns:80px 1fr 68px}
.viz-val{font-variant-numeric:tabular-nums}

@media (max-width:640px){
  .sample-table td.c-num{justify-content:flex-start}
  .sample-table td.c-num .v{margin-left:auto;text-align:right}
  .sample-table th.c-num{display:none}
  .tbl-bar{padding:8px 10px;gap:6px}
  .tbl-tabs{margin-left:0;width:100%;justify-content:space-between}
  .tbl-tabs button{flex:1}
  .depth-table tbody tr.row-ad td:first-child{box-shadow:none}
  .depth-table tbody tr.row-ad{border-color:#f0dfb8;background:#fffdf5}
  .kv-group .kv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 英文兜底样式：没有中文译文时用浅灰小字标明，不冒充中文 */
.aspect-sum.en-only{color:#8b979d;font-size:11px}
.aspect-sum.en-only b,.en-fold p.en-only b{font-weight:600;color:#b0b8bb;margin-left:4px}
.depth-aspects em.en-only{color:#9aa4a8;font-size:10.5px}

/* ---------------- 2026-11-23：帮助中心弹窗 / 侧栏退出 / 导出 PDF ---------------- */
.user-exit{margin-left:6px}
.user-exit:hover{background:#fdeee9;color:#b4451f;border-color:#f0c9bb}

.help-panel{max-width:600px;padding:0;overflow:hidden;border-radius:18px}
.help-hero{display:flex;gap:14px;align-items:flex-start;padding:26px 26px 18px;
  background:linear-gradient(135deg,#fff8ea 0%,#f4f8fb 62%,#eef4f8 100%);border-bottom:1px solid #eef1f3}
.help-mark{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;flex:none;
  font-size:21px;font-weight:900;color:#fff;background:linear-gradient(135deg,#eda83f,#c9761f);
  box-shadow:0 10px 22px rgba(201,118,31,.28)}
.help-hero-copy h2{margin:2px 0 6px;font-size:20px;letter-spacing:-.3px;color:#1d2f3d}
.help-hero-copy p{margin:0;font-size:12.5px;color:#6d7b84;line-height:1.75;max-width:430px}
.help-mail{display:flex;align-items:center;gap:13px;margin:16px 26px 14px;padding:14px 16px;border-radius:14px;
  border:1px solid #ecdfc4;background:linear-gradient(180deg,#fffdf7,#fff8ea);text-decoration:none;
  transition:border-color .16s,box-shadow .16s,transform .16s}
.help-mail:hover{border-color:#dfb877;box-shadow:0 10px 24px rgba(180,130,40,.14);transform:translateY(-1px)}
.help-mail-ico{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none;font-size:15px;
  color:#9a6a1c;background:#fdf0d4;border:1px solid #f0dfb8}
.help-mail-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.help-mail-copy small{font-size:10.5px;color:#98a3a8;letter-spacing:.02em}
.help-mail-copy b{font-size:14px;color:#20323d;font-weight:750;word-break:break-all}
.help-mail-act{margin-left:auto;flex:none;font-size:11.5px;font-weight:750;color:#8a6b28;background:#fdf3dd;
  border:1px solid #efdcb4;border-radius:9px;padding:6px 12px}
.help-mail-act:hover{background:#fbebcd}
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 26px 6px}
.help-card{border:1px solid #edf1f3;border-radius:12px;padding:12px 13px;background:#fcfdfd}
.help-card b{display:block;font-size:12.5px;color:#20323d;margin-bottom:4px}
.help-card p{margin:0;font-size:11.5px;line-height:1.72;color:#61717b}
.help-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:14px 26px 18px;margin-top:10px;border-top:1px solid #f0f3f4;font-size:11.5px;color:#8d9aa1}
.help-foot .btn{text-decoration:none}
@media (max-width:640px){
  .help-panel{max-width:calc(100vw - 24px)}
  .help-hero{padding:20px 18px 14px;gap:11px}
  .help-mark{width:38px;height:38px;border-radius:12px;font-size:17px}
  .help-hero-copy h2{font-size:17px}
  .help-mail{margin:12px 18px 12px;padding:12px;gap:10px;flex-wrap:wrap}
  .help-mail-act{margin-left:0}
  .help-grid{grid-template-columns:1fr;padding:0 18px 4px}
  .help-foot{padding:12px 18px 16px}
}

/* ---------------- 导出 PDF：只输出 #printDoc ---------------- */
#printDoc{display:none}
.pd-wrap{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#22303f;font-size:12px;line-height:1.72}
.pd-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;
  border-bottom:2.5px solid #172d45;padding-bottom:10px;margin-bottom:16px}
.pd-brand{font-size:17px;font-weight:850;letter-spacing:-.3px;color:#172d45}
.pd-brand-sub{font-size:10.5px;color:#7b8a94;margin-top:2px;letter-spacing:.02em}
.pd-meta{font-size:10px;color:#7b8a94;text-align:right;line-height:1.6}
.pd-h1{font-size:21px;margin:0 0 6px;color:#11283a;letter-spacing:-.3px}
.pd-sub{font-size:10.5px;color:#6d7b84;line-height:1.65;margin-bottom:6px;padding-bottom:12px;border-bottom:1px solid #e9eef1}
.pd-sec{margin-top:16px}
.pd-sec>h3{font-size:12.5px;margin:0 0 8px;color:#172d45;padding-bottom:5px;border-bottom:1px solid #e3eaee;letter-spacing:.02em}
.pd-foot{margin-top:18px;padding-top:9px;border-top:1px solid #e6ecef;font-size:9.5px;color:#98a4ac}
#printDoc h2{font-size:14px;margin:12px 0 6px;color:#172d45;page-break-after:avoid}
#printDoc h3{font-size:12.5px;margin:10px 0 5px;page-break-after:avoid}
#printDoc h4{font-size:11.5px;margin:9px 0 4px;page-break-after:avoid}
#printDoc p{margin:0 0 6px}
#printDoc ul,#printDoc ol{margin:0 0 7px;padding-left:17px}
#printDoc li{margin-bottom:3px}
#printDoc table{width:100%;border-collapse:collapse;font-size:9.8px;margin:6px 0 8px}
#printDoc th,#printDoc td{border:1px solid #dbe4e9;padding:3.5px 5px;text-align:left;vertical-align:top}
#printDoc th{background:#f1f6f8;font-weight:700}
#printDoc tr{page-break-inside:avoid}
#printDoc .tbl-wrap{overflow:visible!important}
#printDoc .tbl-wrap table{min-width:0!important}
#printDoc .mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:9px}
#printDoc img{max-width:100%!important;height:auto!important}
#printDoc svg{max-width:100%!important;height:auto!important}

@media print{
  @page{size:A4;margin:13mm 12mm}
  html,body{background:#fff!important}
  body>*{display:none!important}
  #printDoc{display:block!important}
  #printDoc .pd-wrap{font-size:11px}
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .pd-sec,.pd-head{-webkit-break-inside:avoid;break-inside:avoid}
}
.user-exit{margin-left:6px;width:auto;min-width:44px;padding:0 9px;font-size:10.5px;font-weight:700;letter-spacing:.02em}
.user-exit:hover{background:#fdeee9;color:#b4451f;border-color:#f0c9bb}
.user-gear[hidden]{display:none}
@media (max-width:640px){
  .help-mail{flex-wrap:nowrap;gap:10px;padding:12px 12px}
  .help-mail-sla{display:none}
  .help-mail-copy{flex:1 1 auto}
  .help-mail-copy b{font-size:13px}
  .help-mail-act{margin-left:auto;padding:6px 10px;font-size:11px}
}

/* ===== 2026-11-24 附件上传 / 账号按钮 / 意见箱 / 升级按钮配色 ===== */

/* 输入区：文件与图片两个入口（桌面与手机都显示） */
.attach{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.attach span{font-size:12px;line-height:1}
.img-chip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.img-chip .thumb{position:relative;width:56px;height:56px;border-radius:9px;overflow:hidden;border:1px solid #e7ebdf;background:#f6f8f2}
.img-chip .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.img-chip .thumb button{position:absolute;top:2px;right:2px;width:17px;height:17px;border-radius:50%;border:0;background:rgba(24,38,50,.72);color:#fff;font-size:11px;line-height:1;display:grid;place-items:center;cursor:pointer}
.img-chip .thumb-name{font-size:10.5px;color:#7b868c;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 左侧账号区：账号设置做成看得见文字的按钮 */
.user{flex-wrap:wrap;row-gap:8px}
.user-tools{display:flex;gap:6px;width:100%}
.user-btn{flex:1;height:27px;border-radius:8px;border:1px solid rgba(94,66,10,.26);background:#fff8e8;color:#5b4318;
  font-size:10.5px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:4px;cursor:pointer;transition:background .16s,border-color .16s,color .16s}
.user-btn:hover{background:#fff;border-color:#c98f2a;color:#7a4f0c}
.user-btn[hidden]{display:none}
.user-exit{flex:0 0 auto;min-width:48px;margin-left:0}
.user-exit:hover{background:#fdeee9;color:#b4451f;border-color:#f0c9bb}

/* 右侧「升级专业版」：保持站内统一的行动黄（#f2a02f），只用细边和浅阴影和底色分开，不改深蓝 */
.rail-lock button{background:#f2a02f;color:#263e4b;font-weight:800;letter-spacing:.02em;
  border:1px solid rgba(196,132,16,.22);box-shadow:0 3px 9px rgba(178,112,10,.16)}
.rail-lock button:hover{background:#ffb54c;color:#263e4b;box-shadow:0 4px 12px rgba(178,112,10,.22)}

/* 意见箱 */
.fb-panel{max-width:520px}
.fb-cats{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.fb-cats button{border:1px solid #e7eae1;background:#fafbf7;color:#65757c;border-radius:20px;padding:6px 12px;font-size:11.5px;font-weight:700;cursor:pointer}
.fb-cats button.on{background:#203e52;color:#ffe6b0;border-color:#203e52}
.acct-field textarea{width:100%;border:1px solid #e3e8ea;border-radius:9px;padding:9px 10px;font-size:12.5px;line-height:1.7;font-family:inherit;color:#22303f;background:#fff;resize:vertical}
.acct-field textarea:focus{outline:none;border-color:#e6bd78;box-shadow:0 0 0 3px rgba(242,160,47,.12)}
.fb-login-note{font-size:12px;color:#7e8b90;line-height:1.7;background:#f7f9f5;border:1px solid #e9eee4;border-radius:9px;padding:10px 12px;margin:0 0 10px}
.fb-mine{margin-top:16px;border-top:1px solid #eef1ec;padding-top:12px}
.fb-mine h4{margin:0 0 8px;font-size:12.5px;color:#31414c}
.fb-item{border:1px solid #edf0ea;border-radius:10px;padding:9px 11px;margin:0 0 8px;background:#fcfdfb}
.fb-item .fb-meta{font-size:10.5px;color:#93a0a6;display:flex;gap:8px;align-items:center;margin-bottom:4px}
.fb-item .fb-meta .pill{font-size:9.5px;padding:2px 7px;border-radius:20px}
.fb-item p{margin:0;font-size:12px;line-height:1.7;color:#3f4d57;white-space:pre-wrap}
.fb-reply{margin:8px 0 0;background:#f3f8f4;border-left:3px solid #203e52;border-radius:0 8px 8px 0;padding:7px 10px}
.fb-reply b{display:block;font-size:10.5px;color:#203e52;margin-bottom:3px}
.fb-reply p{font-size:11.5px;color:#4b5a63}

/* 用户消息里的附图 + 意见箱状态标 */
.bubble-thumbs{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.bubble-thumbs img{max-width:170px;max-height:120px;border-radius:8px;border:1px solid rgba(0,0,0,.07);display:block;object-fit:cover}
.fb-item .fb-meta .pill.g{background:#e8f4ea;color:#2f6b3f;border:1px solid #cfe6d5}
.fb-item .fb-meta .pill.n{background:#f4f6f4;color:#7b868c;border:1px solid #e6eae4}

/* ===== 2026-11-24 09:5x 黄色整体加深一档（用户要求「整个页面的黄色再深一些」） =====
   色阶：浅 #f3c14c / 中 #eaa92a / 深 #dc9615；主行动统一 #ec9618（hover #f7a72e） */
.sidebar{background:linear-gradient(180deg,#f3c14c 0%,#eaa92a 55%,#dc9615 100%);border-right:1px solid #cf8f14}
.sidebar-foot{background:linear-gradient(180deg,rgba(224,158,22,0) 0%,#e0a01c 22%)}
.slogan-card{background:rgba(255,241,210,.8);border-color:#ffe9bd}
.quota{background:rgba(255,239,203,.72);border-color:#ffe6b5}
.nav button:hover{background:rgba(255,238,197,.62)}
.nav-badge{background:#e6c98c;color:#64480f}

/* 主行动：搜索、升级、套餐统一到加深后的金 */
.send{background:linear-gradient(135deg,#f5a52c,#e88a10);box-shadow:0 4px 12px rgba(232,138,16,.3)}
.send:hover{filter:brightness(1.04);box-shadow:0 6px 16px rgba(232,138,16,.36)}
.rail-lock button{background:#ec9618;color:#263e4b;border:1px solid rgba(186,124,10,.24);box-shadow:0 3px 9px rgba(166,104,8,.18)}
.rail-lock button:hover{background:#f7a72e;color:#263e4b;box-shadow:0 4px 12px rgba(166,104,8,.24)}
.plan-btn.solid{background:#ec9618;color:#263e4b}
.plan-btn.solid:hover{background:#f7a72e}

/* 右栏「研究下一个词」原来是墨绿，改成同一支金 */
.session-new{background:#ec9618;color:#263e4b;border:1px solid rgba(186,124,10,.24);
  border-radius:9px;box-shadow:0 3px 9px rgba(166,104,8,.16)}
.session-new:hover{background:#f7a72e;border-color:rgba(186,124,10,.3);color:#263e4b}

/* 零星黄色小件同步加深 */
.plan-chip{border-color:#e8cd9c;background:#fdf4e2}
.plan-chip:hover{border-color:#dcae62;background:#fbedcd}
.chip-dot{background:#e59315}
.collect-toggle button i{background:#fbe8c4}
.collect-toggle button.on i{background:#f9dfb0}
.hist-go{background:#fbefd0;border-color:#e0cb98;color:#7f611f}
.hist-go:hover{background:#f8e4bb;border-color:#d4b877}

/* ===== 2026-11-24 10:5x 下载 PDF 按钮挪到回答末尾「研究下一个词」后面（更醒目） ===== */
.turn-actions button.ta-pdf{border-color:rgba(186,124,10,.3);background:#ec9618;color:#263e4b;font-weight:800;
  box-shadow:0 3px 10px rgba(166,104,8,.18)}
.turn-actions button.ta-pdf:hover{background:#f7a72e;border-color:rgba(186,124,10,.36);color:#263e4b}
.turn-actions button.ta-pdf:disabled{opacity:.7;box-shadow:none}

/* ===== 2026-11-24 采集回复排版重做：先结论、再分节、每节一张卡 ===== */
.ans-tabs-note{display:none}
.answer-intro{font-size:13.5px;line-height:1.9;color:#4f636d;background:#f8faf7;border:1px solid #eaf0e9;border-radius:10px;padding:11px 13px;margin:0 0 14px}
.answer-intro b{color:#1d3a4a}

/* AI 研判：白底卡片 + 每节独立，结论单独做成 hero */
.ai-card{background:#fff;border:1px solid #ece7dc;border-radius:14px;padding:16px 18px;box-shadow:0 1px 2px rgba(31,49,63,.04)}
.ai-head{padding-bottom:10px;border-bottom:1px dashed #eee3cf;margin-bottom:6px}
.ai-title b{font-size:12.5px;letter-spacing:.04em}
.ai-body{font-size:13px;line-height:1.9;color:#3d4f58}

.ai-sec{padding:14px 0 2px}
.ai-sec + .ai-sec{border-top:1px solid #eef1ec;margin-top:4px}
.ai-h{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:16px;font-weight:850;color:#16293a;letter-spacing:.01em}
.ai-hn{width:24px;height:24px;border-radius:7px;background:#203e52;color:#ffe6b0;display:grid;place-items:center;font-size:10.5px;font-weight:800;flex:none;letter-spacing:.04em}
.ai-sec.lead{background:linear-gradient(180deg,#fffdf4,#fff8e8);border:1px solid #f3e3bd;border-radius:12px;padding:14px 16px 8px;margin:12px 0 2px}
.ai-sec.lead .ai-h{color:#7a4c10;font-size:16.5px}
.ai-sec.lead .ai-hn{background:#f0b429;color:#3a2606}
.ai-sec.lead > p{font-size:14px;line-height:1.95;color:#37474f}
.ai-body p{margin:0 0 9px}
.ai-body b{font-weight:800;color:#10283a;background:linear-gradient(180deg,rgba(255,255,255,0) 60%,#ffe9b0 60%)}
.ai-body ul{margin:2px 0 10px;padding-left:0;list-style:none}
.ai-body li{position:relative;padding-left:16px;margin:5px 0;font-size:12.8px;line-height:1.9}
.ai-body li:before{content:'';position:absolute;left:2px;top:9px;width:6px;height:6px;border-radius:2px;background:#e3a72f}

/* 规则区块：每节一张卡，编号徽章统一深蓝 */
.answer-section{border:1px solid #edf1ec;background:#fff;border-radius:12px;padding:15px 17px 13px;margin:12px 0}
.answer-section h3{font-size:16.5px}
.section-number{background:#203e52;color:#ffe6b0;width:24px;height:24px;font-size:11px}
.section-status{background:#f3f6f4}
.analysis-points span{background:#fff;border-color:#e6ece6;color:#485e69;font-weight:650}

/* 结论区加强 + 关键数字做成卡片 */
.ai-sec.lead{border-left:3px solid #eab32c;padding-left:14px}
.ai-sec.lead .ai-h{font-size:17.5px;font-weight:900}
.ai-sec.lead > p b{background:none;color:#12303f}
.ai-nums{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin:10px 0 4px}
.ai-num{background:#fbfcf9;border:1px solid #e9eee7;border-radius:10px;padding:11px 12px;min-width:0}
.ai-num small{display:block;font-size:10.5px;color:#7f8d93;line-height:1.4}
.ai-num b{display:block;font-size:22px;line-height:1.15;color:#1b3a4d;margin:5px 0 4px;letter-spacing:-.02em;background:none;font-weight:850}
.ai-num span{font-size:10.5px;line-height:1.55;color:#8b989e;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media (max-width:640px){.ai-nums{grid-template-columns:1fr 1fr}.ai-num b{font-size:19px}.ai-sec.lead .ai-h{font-size:16px}}

/* 2026-11-24 15:05 左下角游客态「登录 / 注册」：深藏青胶囊 + 暖米字（用户指定样式，要显眼） */
.user-tools{gap:6px}
.user-btn.signin{flex:1;height:34px;border-radius:999px;border:1px solid #16293d;background:linear-gradient(135deg,#26456a,#182f47);color:#fdf3dd;font-size:12.5px;font-weight:800;letter-spacing:.06em;box-shadow:0 4px 14px rgba(22,41,61,.32);text-align:center;padding:0 10px}
.user-btn.signin:hover{background:linear-gradient(135deg,#2d5180,#1d3a58);border-color:#0f2133;color:#fff8e6;box-shadow:0 6px 18px rgba(22,41,61,.4)}
.user-btn.signin span[aria-hidden]{color:#f3c14c;font-weight:800;margin-right:2px}

/* ===== 回答卡片：按小节语义区分视觉分量（2026-11-24） ===== */
.ai-body{padding:0}
.ai-sec{padding:16px 0 4px}
.ai-sec + .ai-sec{margin-top:6px}
.ai-sec > p{margin:0 0 8px;font-size:13.5px;line-height:1.9;color:#3d4f58}
.ai-sec > p:last-child{margin-bottom:0}

/* 数字卡：数字放大、说明最多三行、等高对齐 */
.ai-nums{grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:10px;margin:12px 0 6px;align-items:stretch}
.ai-num{display:flex;flex-direction:column;background:linear-gradient(180deg,#fdfefc,#f6f9f7);border:1px solid #e4ebe4;border-radius:12px;padding:12px 13px 13px;min-width:0;box-shadow:0 1px 1px rgba(32,62,82,.03)}
.ai-num small{font-size:10.5px;color:#7f8d93;letter-spacing:.02em;line-height:1.4;min-height:14px}
.ai-num b{font-size:25px;line-height:1.1;color:#16374a;margin:7px 0 6px;letter-spacing:-.02em;font-weight:850;word-break:break-word}
.ai-num span{font-size:11px;line-height:1.6;color:#8a979d;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin-top:auto}
.ai-num::after{content:'';display:block;height:2px;margin-top:9px;border-radius:2px;background:linear-gradient(90deg,#e8c98f,#f3e3bd);opacity:.85}

/* 02 数字：序号用金色 */
.ai-sec.nums .ai-hn{background:#f0b429;color:#3a2606}
/* 03 洞察：引用卡 */
.ai-sec.insight .ai-hn{background:#2c5f80;color:#eaf5fc}
.ai-sec.insight ul{list-style:none;padding:0;margin:8px 0 2px}
.ai-sec.insight li{position:relative;background:#f5fafd;border:1px solid #ddeaf3;border-left:3px solid #7fb3d1;border-radius:10px;padding:10px 14px 10px 32px;margin:7px 0;color:#1d3d4e;font-size:13px;line-height:1.85}
.ai-sec.insight li::before{content:'\201C';position:absolute;left:11px;top:2px;font-size:24px;line-height:1.4;color:#a8c9dd;font-family:Georgia,serif}
.ai-sec.insight li::after{content:none}
/* 04 动作：编号清单 */
.ai-sec.action .ai-hn{background:#1f4d63;color:#e9f4fb}
.ai-sec.action ul{list-style:none;padding:0;margin:8px 0 2px;counter-reset:aiact}
.ai-sec.action li{counter-increment:aiact;position:relative;padding:10px 13px 10px 42px;background:#f7fafb;border:1px solid #e6edf1;border-radius:10px;margin:7px 0;font-size:13px;line-height:1.85;color:#2b414d}
.ai-sec.action li::before{content:counter(aiact,decimal-leading-zero);position:absolute;left:11px;top:10px;width:21px;height:21px;border-radius:7px;background:#203e52;color:#ffe6b0;font-size:10.5px;font-weight:800;display:grid;place-items:center;letter-spacing:.03em}
/* 05 风险：红线 */
.ai-sec.risk .ai-hn{background:#b4573f;color:#fff3ee}
.ai-sec.risk ul{list-style:none;padding:0;margin:8px 0 2px}
.ai-sec.risk li{position:relative;background:#fdf5f3;border:1px solid #f2ddd6;border-left:3px solid #d9735c;border-radius:9px;padding:9px 13px 9px 30px;margin:7px 0;font-size:13px;line-height:1.8;color:#6f3a2e}
.ai-sec.risk li::before{content:'\00D7';position:absolute;left:12px;top:7px;font-size:16px;font-weight:800;color:#c85a42}
/* 06 下一步：勾选项 */
.ai-sec.next .ai-hn{background:#4b6b4a;color:#f0f7ee}
.ai-sec.next ul{list-style:none;padding:0;margin:8px 0 2px}
.ai-sec.next li{position:relative;background:#f6f9f4;border:1px dashed #cdd9ca;border-radius:9px;padding:9px 13px 9px 33px;margin:7px 0;font-size:13px;line-height:1.8;color:#33493a}
.ai-sec.next li::before{content:'';position:absolute;left:12px;top:12px;width:11px;height:11px;border:1.6px solid #7ba07a;border-radius:3px;background:#fff}
/* 列表在其它小节保持金色小方块 */
.ai-sec ul li::marker{color:#b98b3d}
@media (max-width:640px){
  .ai-nums{grid-template-columns:1fr 1fr;gap:8px}
  .ai-num b{font-size:20px}
  .ai-num span{-webkit-line-clamp:2;font-size:10.5px}
  .ai-sec{padding:14px 0 3px}
  .ai-sec > p{font-size:13px;line-height:1.85}
  .ai-sec.action li,.ai-sec.risk li,.ai-sec.next li,.ai-sec.insight li{font-size:12.5px;line-height:1.8}
}
/* 高亮色跟随小节语义，避免红线卡里出现黄色荧光 */
.ai-sec.risk b{background:rgba(217,115,92,.14);color:#7a2f22}
.ai-sec.next b{background:rgba(122,160,122,.16);color:#2c4531}
.ai-sec.action b{background:rgba(90,141,168,.14);color:#17394b}
.ai-sec.insight b{background:rgba(127,179,209,.18);color:#123648}

/* 2026-11-24 15:52 账号弹窗按设计稿重做（小标 + 大标题 + 图标输入框 + 橙色主按钮） */
.acct-panel{max-width:476px;padding:26px 28px 22px}
.acct-head{margin:0}
.auth-head{margin:0 0 18px;padding-right:24px}
.auth-kicker{font-size:10.5px;font-weight:850;letter-spacing:.17em;color:#ec9618;text-transform:uppercase}
.auth-title{font-size:23px;font-weight:850;letter-spacing:-.02em;color:#16233a;margin:8px 0 0;line-height:1.25}
.auth-lead{font-size:12.5px;color:#7b8794;margin:6px 0 0;line-height:1.65}
.acct-tabs{display:flex;gap:4px;padding:4px;background:#eef1f5;border-radius:11px;margin:0 0 16px}
.acct-tabs[hidden]{display:none}
.acct-tab{flex:1;padding:9px 0;border:0;border-radius:8px;background:transparent;color:#63717f;font-size:13.5px;font-weight:800;line-height:1.4;transition:background .15s,color .15s,box-shadow .15s}
.acct-tab:hover{color:#26374a}
.acct-tab.active{background:#1e3a5c;color:#fff;box-shadow:0 2px 8px rgba(24,47,71,.22)}
.acct-tab[hidden]{display:none}
.acct-field{margin:0 0 14px}
.acct-field[hidden]{display:none}
.acct-field>span{display:block;font-size:12.5px;font-weight:800;color:#26374a;margin-bottom:7px}
.acct-inp{display:flex;align-items:center;gap:9px;height:44px;padding:0 12px;border:1px solid #dfe4ea;border-radius:10px;background:#fff;transition:border-color .15s,box-shadow .15s}
.acct-inp:focus-within{border-color:#e6a552;box-shadow:0 0 0 3px rgba(236,150,24,.13)}
.acct-inp>svg{width:16px;height:16px;flex:none;fill:none;stroke:#9aa7b4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.acct-inp input{flex:1;min-width:0;height:100%;border:0;background:none;padding:0;font-size:13px;color:#1f2c3a;outline:none}
.acct-inp input::placeholder{color:#a8b2bd;font-size:12.5px}
.acct-eye{flex:none;display:grid;place-items:center;width:26px;height:26px;border:0;background:none;padding:0;cursor:pointer;border-radius:7px}
.acct-eye svg{width:17px;height:17px;fill:none;stroke:#9aa7b4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.acct-eye:hover svg{stroke:#63717f}
.acct-eye.on svg{stroke:#3f5566}
.acct-eye .eye-shut{display:none}
.acct-eye.on .eye-open{display:none}
.acct-eye.on .eye-shut{display:block}
.acct-inp-row{display:flex;gap:10px}
.acct-inp-row .acct-inp{flex:1;min-width:0}
.acct-code-btn{flex:none;height:44px;padding:0 15px;border:1px solid #f0ae63;border-radius:10px;background:#fff9f1;color:#e08a12;font-size:12.5px;font-weight:800;cursor:pointer;white-space:nowrap}
.acct-code-btn:hover{background:#fff3e4;border-color:#ec9618}
.acct-code-btn:disabled{background:#f5f7f9;border-color:#e4e9ef;color:#a3aeb8;font-weight:600;cursor:default}
.acct-forgot{display:block;width:100%;margin:-4px 0 14px;padding:0;border:0;background:none;text-align:right;color:#8a94a0;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none}
.acct-forgot:hover{color:#ec9618}
.acct-forgot.is-reset{text-align:left;color:#ec9618}
.acct-forgot.is-reset:hover{color:#cf7f0e}
.acct-forgot[hidden]{display:none}
.acct-agree,.acct-check{display:flex;align-items:flex-start;gap:8px;margin:0 0 11px;font-size:12px;color:#5c6b7a;line-height:1.55}
.acct-agree[hidden],.acct-check[hidden]{display:none}
.acct-agree input,.acct-check input{flex:none;width:15px;height:15px;margin:1px 0 0;accent-color:#ec9618}
.acct-agree a,.acct-agree b{color:#e08a12;font-weight:800;text-decoration:none}
.acct-agree a:hover{text-decoration:underline}
.acct-msg{margin:2px 0 10px}
.acct-msg:empty{display:none;min-height:0}
.acct-panel .acct-submit{width:100%;height:50px;border:0;border-radius:11px;font-size:15px;font-weight:850;letter-spacing:.02em;background:linear-gradient(135deg,#f7a72e,#ec9618);color:#fff;box-shadow:0 8px 20px rgba(236,150,24,.26)}
.acct-panel .acct-submit:hover{background:linear-gradient(135deg,#ffb542,#f7a72e)}
.acct-switch{margin:14px 0 0;text-align:center;font-size:12.5px;color:#8a94a0}
.acct-switch[hidden]{display:none}
.acct-switch button{border:0;background:none;padding:0 0 0 5px;color:#ec9618;font-size:12.5px;font-weight:800;cursor:pointer}
.acct-switch button:hover{text-decoration:underline}
@media (max-width:640px){
  .acct-panel{padding:22px 18px 18px}
  .auth-title{font-size:21px}
  .auth-head{margin-bottom:14px}
}
/* ===== 第二轮打磨：小节边界、数字卡对齐、四类卡片辨识度（2026-11-24） ===== */
.ai-sec{padding:18px 0 6px}
.ai-sec + .ai-sec{margin-top:10px;border-top:1px solid #eef1ec}
.ai-h{font-size:16.5px;font-weight:900;margin:0 0 10px}
.ai-hn{width:25px;height:25px;font-size:11px}
/* 数字卡：等高、底部装饰线水平 */
.ai-num{min-height:124px;padding:13px 14px 12px}
.ai-num b{white-space:nowrap;font-variant-numeric:tabular-nums}
.ai-num small{min-height:15px}
.ai-num span{-webkit-line-clamp:2}
/* 洞察：放大引号做背景装饰 */
.ai-sec.insight li{padding-left:36px}
.ai-sec.insight li::before{content:'\201C';position:absolute;left:8px;top:-2px;font-size:34px;line-height:1.15;color:rgba(127,179,209,.45);font-family:Georgia,serif}
/* 风险：加粗红线 + 实心叉 */
.ai-sec.risk li{border-left-width:4px;border-left-color:#cf6a4f;padding-left:32px;color:#6b3226}
.ai-sec.risk li::before{content:'\00D7';left:11px;top:5px;font-size:17px;color:#c14a30}
/* 待办：实心浅绿勾选框 */
.ai-sec.next li{padding-left:36px}
.ai-sec.next li::before{content:'';left:12px;top:11px;width:13px;height:13px;border:1.6px solid #86ab84;border-radius:4px;background:#fff}
.ai-sec.next li::after{content:'';position:absolute;left:15px;top:14px;width:6px;height:3px;border-left:1.6px solid #86ab84;border-bottom:1.6px solid #86ab84;transform:rotate(-45deg)}
/* 手机：数字卡单列、内边距与行高放宽 */
@media (max-width:480px){
  .ai-nums{grid-template-columns:1fr;gap:8px}
  .ai-num{min-height:0;padding:11px 14px 10px}
  .ai-num b{font-size:22px;margin:5px 0 4px}
  .ai-num span{-webkit-line-clamp:3;font-size:11px}
  .ai-sec{padding:16px 0 5px}
  .ai-sec > p{line-height:1.9}
  .ai-sec.action li,.ai-sec.risk li,.ai-sec.next li,.ai-sec.insight li{padding-left:38px;line-height:1.85}
}
/* 数字卡说明固定两行高度，保证底部金线水平 */
.ai-num span{min-height:35px}
.ai-num::after{margin-top:10px}
/* 序号徽章统一圆角，避免与动作清单形成「一圆一方」的混搭 */
.ai-sec .ai-hn{border-radius:8px}
.ai-sec.action li::before{border-radius:8px}

/* ===== 套餐与定价弹窗（2026-11-24 按参考稿重做；文案/数字在后台「套餐与定价」改） ===== */
.pricing-panel{
  --pm-navy:#18324d;--pm-ink:#203247;--pm-muted:#718093;--pm-orange:#f18416;--pm-blue:#2876c7;
  --pm-purple:#6045d8;--pm-line:#e7ebf0;--pm-green:#16805d;
  width:min(1180px,calc(100% - 28px));max-height:calc(100vh - 40px);
  padding:28px 32px 24px;border:1px solid rgba(255,255,255,.9);border-radius:26px;
  box-shadow:0 28px 80px rgba(19,39,61,.22);
}
.pricing-panel .modal-close{
  right:18px;top:14px;width:38px;height:38px;border-radius:50%;font-size:28px;color:#84909d;
  display:grid;place-items:center;
}
.pricing-panel .modal-close:hover{background:#f1f4f7;color:var(--pm-navy)}
.pricing-brand{
  position:absolute;left:30px;top:25px;display:flex;align-items:center;gap:9px;
  color:var(--pm-navy);font-size:15px;font-weight:900;letter-spacing:-.02em;text-decoration:none;
}
.pricing-brand[hidden]{display:none}
.pricing-logo{display:block;width:30px;height:30px;border-radius:9px;overflow:hidden;flex:none}
.pricing-logo svg{display:block;width:30px;height:30px}
.pricing-brand-name{font-size:15px;font-weight:900;color:var(--pm-navy);white-space:nowrap}
.pricing-brand-name span{font-weight:750;color:#52657a;margin-left:2px}
.pricing-head{text-align:center;padding:8px 50px 0}
.pricing-kicker{
  color:#c97716;font-size:12px;font-weight:900;letter-spacing:.18em;text-transform:uppercase;
}
.pricing-head h2{
  margin:13px 0 8px;color:var(--pm-navy);font-size:clamp(24px,3vw,36px);line-height:1.22;
  letter-spacing:-.035em;font-weight:900;
}
.pricing-head p{max-width:760px;margin:0 auto;color:var(--pm-muted);font-size:13.5px;line-height:1.8}
.pricing-cycle{
  width:max-content;max-width:100%;margin:19px auto 24px;padding:9px 19px;
  border:1px solid #e9edf2;border-radius:999px;display:flex;align-items:center;gap:9px;
  background:#f5f7fa;color:var(--pm-navy);font-size:13px;font-weight:800;
}
.pricing-cycle svg{width:18px;height:18px;flex:none}
.pricing-panel .plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;margin:0}
.pricing-panel .plan-card{
  --plan-accent:var(--pm-blue);
  position:relative;min-width:0;display:flex;flex-direction:column;
  padding:24px 22px 20px;border:1px solid var(--pm-line);border-radius:21px;
  background:linear-gradient(150deg,#fff 35%,#f5f9ff 100%);
  box-shadow:0 8px 26px rgba(28,53,79,.045);
}
.pricing-panel .plan-card.orange{
  --plan-accent:var(--pm-orange);border:2px solid #f4a03c;
  background:linear-gradient(150deg,#fff 25%,#fff8ef 100%);
  box-shadow:0 12px 30px rgba(241,132,22,.11);
}
.pricing-panel .plan-card.purple{--plan-accent:var(--pm-purple);background:linear-gradient(150deg,#fff 30%,#f6f3ff 100%)}
.pricing-panel .plan-card.green{--plan-accent:var(--pm-green);background:linear-gradient(150deg,#fff 35%,#f4fbf8 100%)}
.pricing-panel .plan-card.slate{--plan-accent:#64748b;background:linear-gradient(150deg,#fff 35%,#f6f8fb 100%)}
.pricing-panel .recommend{
  position:absolute;right:18px;top:-15px;padding:6px 14px;border-radius:999px;
  background:linear-gradient(90deg,#f28b16,#ff9e1f);color:#fff;font-size:12px;font-weight:900;
  box-shadow:0 5px 14px rgba(241,132,22,.25);white-space:nowrap;
}
.plan-top{display:flex;align-items:center;gap:13px}
.plan-icon{
  flex:0 0 52px;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;
  color:var(--plan-accent);background:#eef4fd;
}
.pricing-panel .plan-card.orange .plan-icon{background:#fff1e0}
.pricing-panel .plan-card.purple .plan-icon{background:#f0ecff}
.pricing-panel .plan-card.green .plan-icon{background:#e6f6ef}
.plan-icon svg{width:28px;height:28px}
.plan-title{margin:0;color:var(--pm-navy);font-size:21px;font-weight:900;line-height:1.2}
.plan-subtitle{margin:5px 0 0;color:#788697;font-size:12px;line-height:1.5}
.price-row{display:flex;align-items:baseline;justify-content:center;gap:3px;margin:20px 0 16px;color:var(--pm-navy)}
.price-row .currency{font-size:22px;font-weight:900}
.pricing-panel .plan-card .price{font-size:42px;line-height:1;font-weight:900;letter-spacing:-.05em}
.pricing-panel .plan-card.orange .price{color:#ef7c12}
.pricing-panel .plan-card.purple .price{color:var(--pm-purple)}
.price-row .per-month{font-size:13.5px;color:#68798c;font-weight:650}
.quota-panel{
  display:grid;grid-template-columns:1fr 1fr;padding:14px 6px;border:1px solid #edf0f3;
  border-radius:15px;background:rgba(255,255,255,.78);
}
.quota{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.quota+.quota{border-left:1px solid #e7ebef}
.quota svg{flex:0 0 24px;width:24px;height:24px}
.quota.chat svg{color:var(--pm-blue)}
.quota.beans svg{color:var(--pm-orange)}
.quota strong{display:block;color:var(--pm-navy);font-size:19px;line-height:1.2;font-weight:900;white-space:nowrap}
.quota span{display:block;margin-top:4px;color:#788697;font-size:11px;white-space:nowrap}
.pricing-panel .plan-cta{
  width:100%;min-height:47px;margin-top:18px;border:1px solid var(--plan-accent);border-radius:12px;
  background:#fff;color:var(--plan-accent);font-size:14.5px;font-weight:900;cursor:pointer;
  transition:transform .18s,box-shadow .18s,background .18s;
}
.pricing-panel .plan-cta:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 18px rgba(26,49,73,.12)}
.pricing-panel .plan-card.orange .plan-cta{background:linear-gradient(90deg,#f18a13,#f5a01e);border-color:transparent;color:#fff}
.pricing-panel .plan-card.purple .plan-cta{border-color:#8068ed;color:#5037c4}
.pricing-panel .plan-card.green .plan-cta{border-color:#cfd9e4;color:#3d556c}
.pricing-panel .plan-card .plan-cta:disabled{cursor:default;background:#eef1f4;border-color:#e7ebef;color:#657487;box-shadow:none;transform:none}
.pricing-includes{
  margin-top:22px;padding:16px 18px;display:grid;grid-template-columns:1.2fr repeat(4,1fr);
  align-items:center;gap:10px;border:1px solid #e8edf2;border-radius:17px;
  background:linear-gradient(90deg,#f5f9ff,#fff 45%,#fff);
}
.pi-head{display:flex;align-items:center;gap:10px;color:var(--pm-navy);font-size:13px;font-weight:900;line-height:1.4}
.pi-head .pi-ico{flex:0 0 38px;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e9f2ff;color:var(--pm-blue)}
.pi-head .pi-ico svg{width:22px;height:22px}
.pi-list{display:contents}
.feature{
  min-height:58px;padding:2px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  border-left:1px solid #e9edf1;text-align:center;color:#5c6e82;font-size:12px;line-height:1.45;
}
.feature svg{width:24px;height:24px;color:#3985d3}
.feature small{display:block;font-size:10px;color:#93a0af;margin-top:2px}
.pricing-notes{margin-top:15px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:11px 18px;color:#66778a;font-size:12px;line-height:1.7}
.pricing-bean{
  display:flex;align-items:center;gap:8px;padding:9px 15px;border:1px solid #ffdfb6;border-radius:999px;
  background:#fff9f1;color:#bb6811;font-weight:800;
}
.pricing-bean svg{width:20px;height:20px;color:#ed941b;flex:none}
.pricing-bean b{font-weight:900}
.pricing-fine{display:flex;align-items:center;gap:8px;max-width:640px}
.pricing-fine svg{width:16px;height:16px;color:#8492a1;flex:none}
@media(max-width:980px){
  .pricing-panel{padding:24px 20px 20px}
  .pricing-brand{left:22px;top:21px}
  .pricing-panel .plan-card{padding:21px 15px 17px}
  .plan-title{font-size:19px}
  .pricing-panel .plan-card .price{font-size:36px}
  .quota strong{font-size:17px}
  .pricing-includes{grid-template-columns:repeat(4,1fr)}
  .pi-head{grid-column:1/-1;justify-content:center}
  .feature:first-child{border-left:0}
}
@media(max-width:680px){
  .pricing-panel{padding:60px 14px 18px;border-radius:19px;width:calc(100% - 12px)}
  .pricing-brand{left:16px;top:16px}
  .pricing-panel .modal-close{right:10px;top:9px}
  .pricing-head{padding:0 2px}
  .pricing-head h2{font-size:24px;margin:8px 0}
  .pricing-head p{font-size:12px}
  .pricing-cycle{margin:14px auto 18px;padding:8px 14px;font-size:12px}
  .pricing-panel .plan-grid{grid-template-columns:1fr;gap:16px;max-width:430px;margin:0 auto}
  .pricing-panel .plan-card.orange{order:-1}
  .pricing-panel .plan-card{padding:19px}
  .price-row{margin:16px 0}
  .pricing-panel .plan-card .price{font-size:38px}
  .pricing-includes{grid-template-columns:repeat(2,1fr);padding:13px 10px}
  .pi-head{justify-content:flex-start;padding:0 6px 8px}
  .feature{border-left:0;border-top:1px solid #e9edf1;padding:12px 5px}
  .feature:nth-child(2),.feature:nth-child(3){border-top:0}
  .pricing-notes{justify-content:flex-start;align-items:flex-start}
  .pricing-bean{font-size:11.5px}
  .pricing-fine{font-size:11px;align-items:flex-start}
}@media(max-width:680px){.pricing-panel .modal-close{box-shadow:0 3px 10px rgba(20,40,60,.12)}}


/* ==========================================================
   AMZHELM WORKSPACE REDESIGN · 2026-11
   Visual refresh + contextual research drawer.
   Existing IDs, APIs, forms and research components are retained.
   ========================================================== */
:root{
  --sidebar-w:252px;
  --rail-w:0px;
  --canvas:#f2f5f9;
  --ink:#1d3449;
  --muted:#748396;
  --line:#e5eaf0;
  --navy:#172f46;
  --navy-2:#203e58;
  --orange:#ef8b1b;
  --orange-soft:#fff4e5;
  --green:#27846a;
  --shadow:0 12px 34px rgba(23,47,70,.055);
}
html,body{background:var(--canvas);color:var(--ink)}
body{overflow:hidden}
.app{
  grid-template-columns:var(--sidebar-w) minmax(0,1fr);
  background:var(--canvas);
}

/* Left navigation: move the large yellow panel to a quieter navy rail. */
.sidebar{
  background:linear-gradient(180deg,#172f46 0%,#1b3852 58%,#162d43 100%);
  border-right:1px solid #29445d;
  padding:18px 13px 14px;
  color:#e8eff6;
  scrollbar-color:#3a536b transparent;
}
.brand{padding:0 8px 22px;gap:11px}
.brand-mark{
  width:40px;height:40px;border-radius:13px;
  background:#f5a02b;border:1px solid rgba(255,255,255,.24);
  box-shadow:0 7px 18px rgba(0,0,0,.18);
}
.brand-name{color:#fff;font-size:15px;letter-spacing:.08em}
.brand-sub{color:#a9bdce;font-size:9px;letter-spacing:.16em}
.sidebar-close{color:#dce6ef}
.slogan-card{
  padding:12px 13px 12px 16px;margin:0 2px 23px;
  background:linear-gradient(120deg,rgba(255,255,255,.11),rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.12);border-radius:12px;
}
.slogan-card::before{top:9px;bottom:9px;background:linear-gradient(180deg,#ffbf58,#ef8b1b)}
.slogan-card b{color:#fff;font-size:13px;letter-spacing:.08em}
.nav-label{color:#8fa6ba;padding:0 11px 9px;font-size:9.5px;letter-spacing:.2em}
.nav-label.spaced{margin-top:23px}
.nav{gap:4px}
.nav button{
  height:41px;border-radius:10px;padding:0 11px;gap:11px;
  color:#c7d4e0;font-size:12.5px;font-weight:620;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.nav button:hover{background:rgba(255,255,255,.075);color:#fff}
.nav button.active{
  position:relative;background:rgba(239,139,27,.17);color:#fff;
  border:1px solid rgba(255,177,73,.22);box-shadow:none;font-weight:800;
}
.nav button.active::before{
  content:"";position:absolute;left:-1px;top:8px;bottom:8px;width:3px;
  border-radius:0 3px 3px 0;background:#ffad3f;
}
.nav-icon{color:#ffbd62;width:19px;font-size:15px}
.nav-badge{background:#36516a;color:#e8f0f7}
.nav-badge.new{background:#ef9625;color:#fff}
.sidebar-foot{
  background:linear-gradient(180deg,rgba(23,47,70,0),#172f46 18%);
  padding-top:15px;
}
.quota{
  background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.13);
  border-radius:13px;padding:12px;margin:0 2px 12px;
}
.quota-head{color:#f0f5fa;font-size:10.5px}
.quota-head span:last-child{color:#d0dce6}
.meter{background:rgba(255,255,255,.15)}
.meter i{background:linear-gradient(90deg,#f4a12d,#ffd078)}
.quota-head.bean span:first-child{color:#f3c16f}
.meter.bean i{background:linear-gradient(90deg,#f6bd52,#ef8b1b)}
.quota small{color:#b4c4d2}
.user{border-top:1px solid rgba(255,255,255,.12);padding:13px 4px 0}
.avatar{background:#f0a02b;color:#fff}
.user-copy b{color:#fff}
.user-copy small{color:#a9bdce}
.user-btn{color:#c7d4e0}
.user-btn:hover{color:#fff;background:rgba(255,255,255,.08)}
.user-plan-badge{background:#e78c20;color:#fff}

/* Top bar: compact workspace controls and an explicit utility drawer trigger. */
.main{grid-template-rows:64px minmax(0,1fr);background:#f2f5f9}
.topbar{
  height:64px;padding:0 24px;background:rgba(255,255,255,.94);
  border-bottom:1px solid #e7ecf1;box-shadow:0 2px 10px rgba(22,47,70,.025);
}
.crumb{font-size:12px;color:#94a1af}
.crumb b{color:#243c52;font-weight:800}
.top-actions{gap:10px}
.plan-chip{
  border:1px solid #f1d6b2;background:#fff8ed;color:#94611d;
  border-radius:9px;padding:7px 11px;font-size:11px;
}
.plan-chip b{color:#24415a}
.plan-chip:hover{background:#fff1dc;border-color:#efb66d}
.chip-dot{background:#ef9625}
.engine{background:#edf6f2;color:#26765f;border-radius:9px;padding:7px 10px;font-size:10.5px}
.led{background:#2c9b78}
.context-toggle{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;
  padding:0 11px;border:1px solid #e4eaf0;border-radius:9px;
  background:#fff;color:#4c6277;font-size:11px;font-weight:750;
  transition:.16s ease;
}
.context-toggle svg{width:15px;height:15px}
.context-toggle:hover,.context-toggle[aria-expanded="true"]{
  border-color:#e9b46e;background:#fff8ee;color:#a66512;
}
.icon-btn{width:33px;height:33px;border-color:#e4eaf0;border-radius:9px;color:#64778a}
.icon-btn:hover{border-color:#e8b16b;color:#a66512}

/* Main canvas: one spacious research surface; right-side content is on demand. */
.workspace{
  display:block;min-height:0;min-width:0;overflow:hidden;
  padding:17px 20px 19px;
}
.chat-shell{
  width:100%;height:100%;min-height:0;
  border:1px solid #e5eaf0;border-radius:19px;
  background:#fff;box-shadow:0 10px 34px rgba(25,48,71,.045);
  grid-template-rows:62px minmax(0,1fr) auto;
}
.chat-head{
  padding:0 22px;border-bottom:1px solid #edf1f5;background:#fff;
}
.bot-mark{
  width:36px;height:36px;border-radius:12px;
  background:linear-gradient(145deg,#fff0d8,#f7bd61);color:#a9610d;
  box-shadow:inset 0 0 0 1px rgba(232,153,44,.12);
}
.chat-identity b{font-size:13.5px;color:#1d354b}
.chat-identity small{font-size:10.5px;color:#8b9aaa}
.chat-head-actions{gap:9px}
.secure-label{background:#edf7f2;color:#278064;border:1px solid #d9eee5;padding:6px 10px}
.head-action{border:1px solid #e4eaf0;border-radius:9px;padding:7px 11px;color:#526b81;font-weight:700}
.head-action:hover{border-color:#e7b36d;background:#fff9f1;color:#a66512}
.chat-kw .ck-next{
  border:1px solid #f1d6b2;background:#fff8ed;color:#a66512;
  padding:6px 12px;font-weight:750;
}
.chat-kw .ck-next:hover{background:#fff0dc}
.thread{
  background:linear-gradient(180deg,#fbfcfe 0%,#fff 210px);
  padding:28px clamp(22px,4vw,64px) 34px;
  scrollbar-color:#cbd5df transparent;
}
.assistant-answer,.message-row,.thinking{max-width:1120px}
.assistant-answer{margin-bottom:38px}
.answer-top{border-bottom:1px solid #e9eef3;padding-bottom:14px;margin-bottom:17px}
.answer-label{color:#203a52}
.answer-label .mini-bot{background:#fff0d7;color:#b16c15}
.answer-intro{color:#52667a}
.answer-summary{
  border:1px solid #f0dfc5;border-left:4px solid #ed982d;
  border-radius:14px;background:linear-gradient(110deg,#fffaf1,#fff 90%);
  padding:18px 20px;box-shadow:0 5px 16px rgba(172,123,48,.035);
}
.answer-summary-head b{color:#243e56}
.answer-section{border-top:1px solid #edf1f5;padding:19px 0 17px}
.answer-section h3{color:#1e3850}
.answer-section p,.answer-section li{color:#5f7184}
.answer-stat{background:#f8fafc;border:1px solid #e8edf2;border-radius:12px}
.answer-stat b{color:#24425e}
.table-wrap{border-color:#e5eaf0;border-radius:11px}
.sample-table th{background:#f4f7fa;color:#61778d}
.sample-table td{border-top-color:#edf1f5;color:#4d6277}
.message-row.user .bubble{background:#fff5e8;border-color:#f2dfc7}
.bubble{background:#f5f8fb;border-color:#e8edf2;color:#40566b;border-radius:5px 13px 13px 13px}
.thinking-card{border-color:#e5ebf1;border-radius:15px;box-shadow:0 5px 18px rgba(25,48,71,.04)}
.thinking-head{color:#29445d}
.think-step.doing .think-dot{background:#ed982d;border-color:#ed982d}
.turn-actions{border-top-color:#e8edf2}
.turn-actions button{border-color:#e2e9ef;color:#52677b}
.turn-actions button.ta-primary{background:#fff5e7;border-color:#efcf9d;color:#a66512}
.turn-dims .dim-chip{border-color:#e3eaf0;background:#f8fafc;color:#566c80}
.turn-dims .dim-chip:hover{border-color:#edc184;background:#fff9f1;color:#a66512}

/* Composer becomes a persistent tool dock, with a clearer hierarchy. */
.composer-wrap{
  padding:14px 22px 11px;background:#fff;border-top:1px solid #e9eef3;
}
.composer{
  max-width:1120px;padding:13px 15px 11px;border:1px solid #dfe7ef;
  border-radius:16px;box-shadow:0 7px 22px rgba(27,52,76,.055);
}
.composer:focus-within{
  border-color:#e9b66f;box-shadow:0 0 0 3px rgba(239,153,44,.12),0 8px 22px rgba(27,52,76,.055);
}
.composer textarea{min-height:52px;height:52px;font-size:14px;color:#263f56}
.composer textarea::placeholder{color:#9aa8b6}
.composer-bottom{padding-top:5px}
.tool-select{background:#f7f9fb;border-color:#e5ebf1;border-radius:9px;color:#63788c;padding:7px 9px}
.tool-select select{color:#3e566e}
.collect-toggle{background:#f1f5f8;border-color:#e2e9ef;border-radius:10px}
.collect-toggle button{border-radius:8px}
.collect-toggle button.on{background:#1e3c56;box-shadow:0 2px 7px rgba(26,56,81,.18)}
.attach{border-color:#e4eaf0;border-radius:9px;padding:7px 10px;color:#5f7387}
.attach:hover{border-color:#eab76f;background:#fff9f1;color:#a66512}
.send{
  background:linear-gradient(100deg,#ed8b19,#f5a32f);color:#fff;
  border-radius:10px;padding:10px 18px;font-size:12px;font-weight:850;
  box-shadow:0 5px 12px rgba(228,132,21,.16);
}
.send:hover{background:linear-gradient(100deg,#e77f0d,#f19a20)}
.composer-hint{max-width:1120px;color:#97a4b1;font-size:10px;margin-top:8px}
.composer-note{color:#9a6c2b}

/* Start screen is a deliberate research landing state, not a tiny centered form. */
body[data-stage="start"] .workspace{
  display:flex;flex-direction:column;justify-content:center;gap:20px;
  max-width:1160px;width:100%;margin:0 auto;padding:30px 30px 38px;
  overflow-y:auto;
}
body[data-stage="start"] .start-panel{
  display:block;max-width:920px;width:100%;margin:0 auto 2px;
  padding:28px 30px 22px;border:1px solid #e5ebf1;border-radius:22px;
  background:
    radial-gradient(circle at 50% 0%,rgba(250,188,93,.14),transparent 38%),
    linear-gradient(145deg,#fff 0%,#fbfcfe 100%);
  box-shadow:0 14px 38px rgba(23,47,70,.055);
}
body[data-stage="start"] .start-mark{
  width:54px;height:54px;border-radius:17px;
  background:linear-gradient(145deg,#fff0d8,#f6bd62);color:#a65f0d;
  box-shadow:0 8px 20px rgba(221,151,52,.17);
}
body[data-stage="start"] .start-panel h1{font-size:clamp(25px,2.5vw,34px);color:#1d3852;font-weight:850}
body[data-stage="start"] .start-panel p{color:#77899b;font-size:13px}
body[data-stage="start"] .start-examples{margin-top:19px}
body[data-stage="start"] .start-examples button{
  background:#fff;border-color:#e3eaf1;color:#526b81;border-radius:10px;
  padding:8px 13px;font-weight:650;
}
body[data-stage="start"] .start-examples button:hover{border-color:#eab56c;background:#fff9f1;color:#a66512}
body[data-stage="start"] .start-resume{background:#fff8ec;border-color:#eecb91;color:#98631c}
body[data-stage="start"] .chat-shell{width:100%;max-width:920px;margin:0 auto;background:transparent}
body[data-stage="start"] .composer-wrap{padding:0;background:transparent;border:0}
body[data-stage="start"] .composer{background:#fff;border:1px solid #dfe7ef;border-radius:17px;padding:14px 15px 11px;box-shadow:0 12px 32px rgba(25,48,71,.085)}
body[data-stage="start"] .composer textarea{height:58px;min-height:58px;font-size:14.5px}

/* Right-side research desk: a slide-in utility panel instead of a permanently
   competing third column. The history and hot-keyword handlers remain intact. */
.context-scrim{
  position:fixed;inset:64px 0 0 0;z-index:48;
  background:rgba(17,35,53,.22);backdrop-filter:blur(2px);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease;
}
.context-rail{
  position:fixed;z-index:49;top:78px;right:18px;bottom:18px;
  width:min(365px,calc(100vw - 32px));min-width:0;min-height:0;
  display:flex;flex-direction:column;gap:11px;overflow-y:auto;
  padding:14px;border:1px solid #e3eaf1;border-radius:19px;
  background:#f5f8fb;box-shadow:0 22px 60px rgba(17,38,59,.22);
  scrollbar-color:#cbd5df transparent;
  transform:translateX(calc(100% + 28px));opacity:0;visibility:hidden;
  pointer-events:none;transition:transform .24s cubic-bezier(.2,.75,.2,1),opacity .2s ease,visibility .2s ease;
}
body.context-open .context-scrim{
  opacity:1;visibility:visible;pointer-events:auto;
}
body.context-open .context-rail{
  transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto;
}
body[data-stage="start"].context-open .context-rail{display:flex}
.context-rail-head{
  flex:none;display:flex;align-items:center;justify-content:space-between;
  padding:3px 3px 8px;border-bottom:1px solid #e4eaf0;
}
.context-rail-head b{display:block;color:#203b55;font-size:14px;font-weight:900}
.context-rail-head small{display:block;color:#98a7b5;font-size:9px;letter-spacing:.15em;margin-top:3px}
.context-rail-head button{
  width:30px;height:30px;border:1px solid #e2e9ef;border-radius:9px;
  background:#fff;color:#73869a;font-size:21px;line-height:1;
}
.context-rail-head button:hover{background:#fff5e8;border-color:#edc38a;color:#a66512}
.context-card{
  background:#fff;border:1px solid #e5ebf1;border-radius:14px;padding:14px;
  box-shadow:0 4px 14px rgba(27,52,76,.025);
}
.context-title b{color:#223d56;font-size:13px}
.context-title small{color:#9aa8b5;font-size:9px}
.rail-subtitle{color:#8797a7;font-size:10.5px}
.rail-lock{
  border:1px solid #f1d8b6;border-radius:14px;padding:14px;
  background:linear-gradient(135deg,#fff7eb,#fffdf9);
}
.rail-lock b{color:#40566b}
.rail-lock button{
  border-radius:9px;background:linear-gradient(100deg,#ed8b19,#f5a32f);
  color:#fff;padding:9px;font-weight:850;
}
.rail-lock button:hover{background:#e77f0d}
.hist-item{border-color:#e7edf2;border-radius:10px;padding:8px}
.hist-main b{color:#203b55}
.hist-main small{color:#8b9aaa}
.hist-go{border-color:#efd7b5;background:#fff8ed;color:#a66512;border-radius:8px}
.hist-go:hover{background:#fff0dc;border-color:#e8bb7a}
.hot-grid button{border-color:#e6edf2;border-radius:10px;padding:8px;background:#fbfcfd;color:#314b63}
.hot-grid button:hover{border-color:#e9b46e;background:#fff9f1}
.hot-grid button small{color:#92a0ad}
.session-new{
  border-radius:9px;background:#203e58;color:#fff;padding:9px;font-weight:800;
}
.session-new:hover{background:#2b506d}
.recent-empty{color:#8191a1}

/* Small interaction polish */
.context-rail :focus-visible{outline:2px solid #efa23d;outline-offset:2px}
.plan-chip,.head-action,.context-toggle,.send,.attach,.tool-select,.hist-go,.session-new{transition:all .16s ease}
.scrim{background:rgba(15,32,49,.5)}
.toast{background:#18334c;border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 32px rgba(12,29,46,.22)}

/* Responsive refinements */
@media(max-width:1240px){
  :root{--sidebar-w:230px}
  .workspace{padding:14px 15px 16px}
  .context-rail{right:14px;width:min(350px,calc(100vw - 28px))}
}
@media(max-width:1080px){
  :root{--sidebar-w:218px}
  .topbar{padding:0 15px}
  .workspace{padding:12px}
  .chat-head{padding:0 15px}
  .composer-wrap{padding:12px 15px 10px}
}
@media(max-width:980px){
  body{overflow:auto}
  .app{height:auto;min-height:100vh;display:block;overflow:visible}
  .sidebar{
    position:fixed;left:0;top:0;bottom:0;width:248px;padding-top:22px;
    transform:translateX(-100%);transition:transform .24s ease;
    box-shadow:0 12px 34px rgba(8,24,39,.3);z-index:60;
  }
  body.nav-open .sidebar{transform:none}
  body.nav-open .scrim{opacity:1;pointer-events:auto}
  .sidebar-close{display:block}
  .main{height:auto;min-height:100vh;display:flex;flex-direction:column;overflow:visible}
  .topbar{height:58px;flex:none;padding:0 12px}
  .menu-btn{display:block;color:#526a80}
  .engine{display:none}
  .workspace{display:flex;flex-direction:column;gap:10px;padding:10px 10px 18px;overflow:visible}
  .chat-shell{height:calc(100vh - 78px);min-height:520px;grid-template-rows:54px minmax(0,1fr) auto}
  .thread{padding:20px 15px 24px}
  .context-scrim{inset:58px 0 0 0;z-index:70}
  .context-rail{
    display:flex;top:66px;right:10px;bottom:10px;width:min(390px,calc(100vw - 20px));
    z-index:71;transform:translateX(calc(100% + 18px));
  }
  body[data-stage="start"] .context-rail{display:flex}
  .context-card{overflow:visible}
  body[data-stage="start"] .workspace{max-width:100%;padding:24px 16px}
  body[data-stage="start"] .start-panel{padding:24px 18px 20px}
}
@media(max-width:640px){
  .topbar{height:56px;padding:0 10px}
  .crumb-prefix{display:none}
  .crumb{font-size:11px}
  .top-actions{gap:6px}
  .plan-chip{padding:6px 8px;font-size:10px}
  .context-toggle{width:34px;min-width:34px;padding:0;justify-content:center}
  .context-toggle span{display:none}
  .context-toggle svg{width:17px;height:17px}
  .icon-btn{width:31px;height:31px}
  .workspace{padding:8px}
  .chat-shell{height:calc(100dvh - 72px);min-height:480px;border-radius:15px;grid-template-rows:50px minmax(0,1fr) auto}
  .chat-head{padding:0 10px}
  .chat-identity{gap:7px}
  .bot-mark{width:30px;height:30px}
  .chat-identity b{font-size:12px}
  .chat-identity small{font-size:9px}
  .chat-head-actions{gap:5px}
  .head-action{padding:6px 8px;font-size:10px}
  .chat-kw{display:none}
  .thread{padding:14px 11px 18px}
  .composer-wrap{padding:8px 9px 9px}
  .composer{padding:9px 10px;border-radius:13px}
  .composer textarea{font-size:13px;height:46px;min-height:46px}
  .composer-tools{gap:5px}
  .tool-select{padding:5px 6px;font-size:10px}
  .tool-select select{font-size:10px;max-width:84px}
  .attach{display:inline-flex;padding:6px 7px;font-size:10px}
  .collect-toggle button{padding:6px 8px;font-size:10px}
  .send{padding:8px 11px;font-size:11px}
  .composer-hint{display:none}
  .context-scrim{inset:56px 0 0 0}
  .context-rail{top:63px;right:7px;bottom:7px;width:calc(100vw - 14px);padding:11px;border-radius:15px}
  .context-rail-head{padding-bottom:7px}
  .context-rail-head b{font-size:13px}
  body[data-stage="start"] .workspace{padding:22px 10px}
  body[data-stage="start"] .start-panel{padding:21px 14px 18px;border-radius:17px}
  body[data-stage="start"] .start-panel h1{font-size:24px}
  body[data-stage="start"] .start-panel p{font-size:12px}
  body[data-stage="start"] .chat-shell{height:auto;min-height:0}
  body[data-stage="start"] .composer textarea{height:54px;min-height:54px}
}
@media(prefers-reduced-motion:reduce){
  .context-rail,.context-scrim,.context-toggle{transition:none!important}
}

/* Sidebar component isolation: pricing-modal .quota styles must not leak into account quota card. */
.sidebar .quota{
  display:block;
  width:auto;
  min-width:0;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.13);
  border-radius:13px;
  padding:12px;
  margin:0 2px 12px;
}
.sidebar .quota-head{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  gap:8px;
  font-size:10.5px;
}
.sidebar .quota-head span{white-space:nowrap;min-width:0}
.sidebar .quota-head.bean{margin-top:8px}
.sidebar .quota small{display:block;margin-top:6px;font-size:9.5px;line-height:1.45;white-space:normal;color:#b4c4d2}
.sidebar .meter{display:block;width:100%;height:5px;margin:8px 0 6px}
.sidebar .meter.bean{margin:6px 0 7px}

/* Library links share the same contrast and hit area as navigation buttons. */
.sidebar .nav a{
  min-height:41px;
  border-radius:10px;
  padding:0 11px;
  display:flex;
  align-items:center;
  gap:11px;
  color:#c7d4e0;
  text-decoration:none;
  font-size:12.5px;
  font-weight:620;
  transition:background .16s ease,color .16s ease;
}
.sidebar .nav a:hover{background:rgba(255,255,255,.075);color:#fff}
.sidebar .nav a .nav-icon{color:#ffbd62}
.sidebar .nav a .nav-badge{margin-left:auto}

/* ===== 2026-11-24 接入改版 UI：沿用官方 logo 素材 + 保留「数据处理中」提示条 ===== */
.brand-mark{background:transparent;border:0;box-shadow:none;border-radius:13px}
.brand-mark img{display:block;width:40px;height:40px;border-radius:13px;
  box-shadow:0 0 0 1px rgba(255,255,255,.18),0 7px 18px rgba(0,0,0,.28)}
.pricing-logo img{display:block;width:30px;height:30px;border-radius:9px}

.busy-bar{
  max-width:920px;margin:0 auto 8px;display:flex;align-items:center;gap:9px;
  position:relative;overflow:hidden;padding:8px 12px 9px;border-radius:10px;
  background:linear-gradient(90deg,#fff9ee,#fffdf8);border:1px solid #f0dfbe;
  color:#4a5b68;font-size:12.5px;line-height:1.4;
  box-shadow:0 2px 8px rgba(23,47,70,.06);
}
.busy-bar[hidden]{display:none}
.busy-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#f5a02b;animation:busyPulse 1.3s ease-out infinite}
.busy-text{font-weight:700;color:#2c3e4b;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.busy-time{margin-left:auto;flex:none;font-size:11.5px;color:#8598a6;font-variant-numeric:tabular-nums}
.busy-bar::after{
  content:"";position:absolute;left:0;bottom:0;height:2px;width:38%;
  background:linear-gradient(90deg,transparent,#f5a02b,transparent);animation:busySlide 1.5s linear infinite;
}
@keyframes busyPulse{0%{box-shadow:0 0 0 0 rgba(245,160,43,.45)}70%{box-shadow:0 0 0 7px rgba(245,160,43,0)}100%{box-shadow:0 0 0 0 rgba(245,160,43,0)}}
@keyframes busySlide{0%{transform:translateX(-110%)}100%{transform:translateX(320%)}}
@media (max-width:640px){
  .busy-bar{font-size:11.5px;padding:7px 10px 8px;gap:7px}
  .busy-text{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .busy-time{font-size:11px}
}
@media (prefers-reduced-motion:reduce){.busy-dot,.busy-bar::after{animation:none}}

/* ===== 2026-11-24 改版抽屉修正：旧「首屏常驻右栏」规则（body[data-stage="start"] .context-rail，特异性更高）
   把抽屉压成了文档流里的 sticky 块，导致桌面被截断、手机抽屉跑到页面底部看不见。这里按抽屉重写。 ===== */
body[data-stage="start"] .context-rail,
.context-rail{
  position:fixed;z-index:49;top:78px;right:18px;bottom:18px;left:auto;
  width:min(365px,calc(100vw - 32px));height:auto;max-height:none;min-height:0;
  display:flex;flex-direction:column;gap:11px;overflow-y:auto;
  padding:14px;border:1px solid #e3eaf1;border-radius:19px;background:#f5f8fb;
  box-shadow:0 22px 60px rgba(17,38,59,.22);scrollbar-color:#cbd5df transparent;
  grid-column:auto;grid-row:auto;
  transform:translateX(calc(100% + 28px));opacity:0;visibility:hidden;pointer-events:none;
  transition:transform .24s cubic-bezier(.2,.75,.2,1),opacity .2s ease,visibility .2s ease;
}
body[data-stage="start"].context-open .context-rail,
body.context-open .context-rail{
  transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto;
}
@media (max-width:980px){
  .context-rail{
    display:flex;top:64px;right:10px;bottom:10px;
    width:min(390px,calc(100vw - 20px));padding:12px;
  }
}
@media (max-width:640px){
  .context-rail{top:62px;right:7px;bottom:7px;width:calc(100vw - 14px);padding:11px;border-radius:15px}
}

/* [hidden] 被组件样式（inline-flex / flex）盖过：空按钮和空提示条会露出细虚线/细条 */
.start-panel .start-resume[hidden]{display:none}
.composer-note[hidden]{display:none}

/* 矮屏侧栏收紧：10 个导航 + 额度卡总高超过视口时，底部 sticky 额度卡会盖住「意见箱」 */
@media (max-height:940px){
  .sidebar{padding:14px 12px 12px}
  .brand{padding:0 8px 13px}
  .slogan-card{margin:0 2px 14px;padding:10px 12px 10px 15px}
  .slogan-card b{font-size:12.5px}
  .nav-label{padding-bottom:7px}
  .nav-label.spaced{margin-top:13px}
  .nav{gap:2px}
  .nav button,.sidebar .nav a{height:36px;min-height:36px}
  .sidebar .quota{padding:10px}
  .sidebar .quota small{margin-top:4px}
}
@media (max-height:820px){
  .slogan-card{display:none}
  .brand{padding-bottom:10px}
  .nav button,.sidebar .nav a{height:34px;min-height:34px}
  .nav-label.spaced{margin-top:11px}
}

/* ===== 2026-11-24 顶栏右上：研究资料胶囊 + 铃铛 + 帮助（按用户截图） ===== */
.top-actions{gap:8px}
.top-actions .context-toggle{
  min-height:36px;padding:0 13px;border:1px solid #ecd7b2;border-radius:11px;
  background:#fffdf7;color:#7d5a1c;font-size:12px;font-weight:800;
}
.top-actions .context-toggle svg{width:17px;height:17px;color:#8a6a2a}
.top-actions .context-toggle:hover,.top-actions .context-toggle[aria-expanded="true"]{
  border-color:#e3bd7c;background:#fff7e8;color:#a66512
}
.top-actions .icon-btn{
  width:36px;height:36px;border:1px solid #ecd7b2;border-radius:11px;background:#fffdf7;
  color:#31465c;display:inline-flex;align-items:center;justify-content:center;
}
.top-actions .icon-btn svg{width:18px;height:18px;display:block}
.top-actions .icon-btn:hover{border-color:#e3bd7c;background:#fff7e8;color:#a66512}
.bell-dot{min-width:9px;width:9px;height:9px;padding:0;font-size:0;top:4px;right:5px;box-shadow:0 0 0 2px #fffdf7}
.top-actions .icon-btn[hidden],.bell-dot[hidden]{display:none}

/* 左侧导航：桌面默认不出现滚动条；窗口太矮（额度卡 + 导航放不下）时允许滑动，避免额度卡被裁掉 */
@media (min-width:981px){
  .sidebar{overflow-y:auto;scrollbar-width:none}
  .sidebar::-webkit-scrollbar{width:0;height:0}
  .sidebar-foot{position:static}
}
@media (max-width:640px){
  .top-actions .icon-btn{width:33px;height:33px}
  .top-actions .context-toggle{min-height:33px;padding:0 10px}
}

/* 首页/对话头徽章图标：换成指南针 App 图标（原 ✳ 星芒） */
.start-mark,.bot-mark{background:none!important;box-shadow:none!important;padding:0;border-radius:0;overflow:visible}
.start-mark img,.bot-mark img{
  display:block;width:100%;height:100%;object-fit:contain;
  filter:drop-shadow(0 6px 14px rgba(214,155,54,.20));
}
body[data-stage="start"] .start-mark{background:none;box-shadow:none}
.welcome-symbol{background:none;box-shadow:none;display:block;overflow:visible}
.welcome-symbol img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 14px rgba(214,155,54,.20))}

/* 助手头像：研究助手=网站 logo；智能助手=首页黄色指南针图标 */
.answer-label .mini-bot{background:none;box-shadow:none}
.answer-label .mini-bot img{display:block;width:100%;height:100%;object-fit:contain;border-radius:9px}
.ai-mark{background:none!important}
.ai-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px}

/* ===== 2026-11-25 侧栏「智能研究助手」图标 = 首页同一枚指南针 ===== */
.sidebar .nav .nav-icon-mark{
  width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;
  flex:none;opacity:1;font-size:0;line-height:0;
}
.sidebar .nav .nav-icon-mark img{
  display:block;width:18px;height:18px;border-radius:5px;
  box-shadow:0 1px 4px rgba(0,0,0,.28);
}
@media (max-height:840px){
  .sidebar .nav .nav-icon-mark{width:18px;height:18px}
  .sidebar .nav .nav-icon-mark img{width:17px;height:17px;border-radius:5px}
}

/* ===== 研究主题卡（2026-11-25 用户改版：替掉顶部「正在研究 X / 研究下一个词」） =====
   结构：header 下面一条 .session-bar（隐藏时整行 0 高），卡片里
   图标 + 关键词 + 关键词研究/单品评估 + 站点 + 采集状态 + 「＋ 新建研究」。 */
.chat-shell{grid-template-rows:auto minmax(0,1fr) auto}
.chat-top{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}
.chat-head{flex:none;height:62px}
.chat-top.has-bar .chat-head{border-bottom:0}
@media(max-width:980px){.chat-head{height:54px}}
@media(max-width:640px){.chat-head{height:50px}}

.session-bar{
  display:flex;align-items:center;justify-content:center;
  padding:10px clamp(14px,3vw,44px) 11px;
  background:#fff;border-bottom:1px solid #f2f4f7;min-width:0;
}
.session-bar[hidden]{display:none}
.sb-card{
  display:flex;align-items:center;gap:12px;width:100%;max-width:760px;
  padding:10px 14px;border:1px solid #eef1f6;border-radius:14px;background:#fff;
  box-shadow:0 4px 14px rgba(24,44,66,.045);min-width:0;
}
.sb-ico{
  width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;
  background:linear-gradient(145deg,#fdf1dd,#fbe2b8);color:#c2872a;
  box-shadow:inset 0 0 0 1px rgba(226,163,58,.14);
}
.sb-ico svg{width:20px;height:20px}
.sb-copy{flex:1 1 auto;min-width:0}
.sb-line{display:flex;align-items:baseline;gap:8px;min-width:0}
.sb-line b{
  font-size:15.5px;font-weight:800;color:#1f3b52;letter-spacing:-.01em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.sb-kind{font-size:12px;font-weight:700;color:#b07c33;white-space:nowrap;flex:none}
.sb-sub{display:flex;align-items:center;gap:8px;margin-top:3px;font-size:11.5px;color:#7d8b99;min-width:0}
.sb-site{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.sb-flag{font-style:normal;font-size:11px;line-height:1}
.sb-sep{width:1px;height:11px;background:#e0e7ef;flex:none}
.sb-badge{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:#1d8a63;white-space:nowrap}
.sb-badge.muted{color:#8b98a6;font-weight:600}
.sb-badge.warn{color:#b07817}
.sb-badge .sb-ok{font-style:normal;font-size:10px;opacity:.85}
.sb-badge .sb-ping{
  width:6px;height:6px;border-radius:50%;background:#e2a33a;
  box-shadow:0 0 0 0 rgba(226,163,58,.55);animation:sbPing 1.4s infinite;
}
@keyframes sbPing{70%{box-shadow:0 0 0 6px rgba(226,163,58,0)}100%{box-shadow:0 0 0 0 rgba(226,163,58,0)}}
.sb-new{
  flex:none;margin-left:auto;cursor:pointer;border:0;border-radius:11px;
  padding:10px 15px;font-size:12.5px;font-weight:800;color:#fff;letter-spacing:.01em;
  background:linear-gradient(135deg,#f5a52c,#e88a10);
  box-shadow:0 3px 10px rgba(232,138,16,.28);
}
.sb-new:hover{filter:brightness(1.05)}
.sb-new:active{transform:translateY(1px)}
@media(max-width:640px){
  .session-bar{padding:8px 10px 9px}
  .sb-card{padding:9px 11px;gap:9px;border-radius:12px}
  .sb-ico{width:34px;height:34px;border-radius:10px}
  .sb-ico svg{width:17px;height:17px}
  .sb-line b{font-size:13.5px}
  .sb-kind{font-size:10.5px}
  .sb-sub{font-size:10.5px;gap:6px}
  .sb-badge{gap:4px}
  .sb-new{padding:9px 11px;font-size:11px;border-radius:10px}
}

/* ===== 2026-11-25 09:2x 侧栏品牌标语卡：去掉左侧黄色竖线，文字改显眼金黄 ===== */
.slogan-card::before{display:none!important;content:none!important}
.slogan-card{padding-left:14px}
.slogan-card b{color:#ffcb3d;text-shadow:0 1px 0 rgba(90,58,0,.35)}
/* 旧浏览器（Safari <14.1 / 360 老内核）兼容兜底：只在不支持 inset / dvh 时才生效，不影响现代浏览器 */
@supports not (inset: 0) {
  .scrim,.modal,.modal-scrim{top:0;right:0;bottom:0;left:0}
  .context-scrim{top:64px;right:0;bottom:0;left:0}
}
@supports not (height: 100dvh) {
  .chat-shell{height:calc(100vh - 72px)}
}
/* iOS Safari：输入框字号小于 16px 时，聚焦会自动放大整页（偏完要手动缩回去），
   手机上统一抬到 16px；桌面端不受影响 */
@media (max-width: 640px) {
  input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px !important; }
}
.thread.has-welcome{display:flex;flex-direction:column}
.thread.has-welcome .welcome{width:100%;max-width:780px;margin-left:auto;margin-right:auto}


/* ===== 账号设置 · 我的上传（2026-11-25）===== */
.acct-files{font-size:12px;color:#6b7c8c;margin:2px 0 8px;line-height:1.6}
.acct-filelist{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.acct-filelist:empty{display:none}
.acct-file{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 8px;border:1px solid #e3eaf1;border-radius:8px;background:#fbfdff;font-size:11.5px;color:#3d4a55}
.acct-file b{cursor:pointer;color:#a33b32;font-weight:700;line-height:1}
#acctFileClear{margin-top:2px}

/* 「一键清空我的上传」在没文件时必须真的隐藏（[hidden] 会被 .btn 的 display 盖过） */
#acctFileClear[hidden]{display:none !important}
