
/* ============ 设计令牌 ============ */
:root{
  --bg:#F6F2EA; --surface:#FFFFFF; --surface-2:#FAF6EF; --sidebar:#FBF8F2;
  --ink:#1E1B16; --ink-2:#4A443C; --muted:#8A8174; --faint:#A9A093;
  --line:#E7DFD2; --line-2:#D5C9B6;
  --brand:#1F4A3D; --brand-2:#2E6B56; --brand-soft:#E6EFE9; --brand-ring:rgba(31,74,61,.14); --on-brand:#FFFFFF;
  --accent:#B4611F; --accent-soft:#F7E8D9;
  --blue:#38536E; --blue-soft:#E6ECF2;
  --red:#A6402F; --red-soft:#F7E3DE; --ok:#2C7A5B;
  --band:linear-gradient(135deg,#204A3D 0%,#173A30 100%);
  --band-ink:#F2EDE3;
  --r:14px; --r-sm:10px;
  --sh-1:0 1px 2px rgba(38,32,24,.04),0 8px 20px -12px rgba(38,32,24,.18);
  --sh-2:0 2px 6px rgba(38,32,24,.05),0 24px 48px -20px rgba(38,32,24,.24);
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --serif:Georgia,"Songti SC","Noto Serif SC","SimSun",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
[data-theme="dark"]{
  --bg:#12110E; --surface:#1B1915; --surface-2:#232019; --sidebar:#171510;
  --ink:#EFE9DF; --ink-2:#C9C1B3; --muted:#958C7D; --faint:#7B7365;
  --line:#2E2A23; --line-2:#3D382E;
  --brand:#7FBFA8; --brand-2:#9BD3BE; --brand-soft:#1D2C26; --brand-ring:rgba(127,191,168,.16); --on-brand:#10231C;
  --accent:#E09A62; --accent-soft:#33241A;
  --blue:#8FAECB; --blue-soft:#1B2733;
  --red:#E08A78; --red-soft:#33201C; --ok:#7FBFA8;
  --band:linear-gradient(135deg,#1E3A31 0%,#16281F 100%);
  --band-ink:#EDE7DC;
  --sh-1:0 1px 2px rgba(0,0,0,.3),0 8px 20px -12px rgba(0,0,0,.6);
  --sh-2:0 2px 6px rgba(0,0,0,.35),0 24px 48px -20px rgba(0,0,0,.7);
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:var(--sans); font-size:14px; line-height:1.6; color:var(--ink);
  background:var(--bg); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  background-image:radial-gradient(900px 420px at 8% -10%,rgba(31,74,61,.05),transparent 60%);
}
[data-theme="dark"] body{background-image:radial-gradient(900px 420px at 8% -10%,rgba(127,191,168,.05),transparent 60%)}
button,input,textarea,select{font-family:inherit}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,p{margin:0}
button{cursor:pointer}
::selection{background:var(--brand-soft);color:var(--brand)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--line-2);border:3px solid transparent;background-clip:padding-box;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:var(--muted);background-clip:padding-box;border:3px solid transparent}
::-webkit-scrollbar-track{background:transparent}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ic{width:16px;height:16px;flex:none;display:block}
.badge .ic{width:12px;height:12px}
.bl-item .ic,.pal-item .ic,.match-strip .ic,.need-foot .ic{width:13px;height:13px}

/* ============ 布局骨架 ============ */
.app{display:grid;grid-template-columns:250px minmax(0,1fr);height:100vh;overflow:hidden}
.sidebar{
  background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;
  padding:18px 14px 12px;min-height:0;z-index:120;
}
.brand{display:flex;align-items:center;gap:11px;padding:4px 6px 18px;cursor:pointer}
.brand-mark{
  width:38px;height:38px;border-radius:11px;background:var(--brand);color:var(--on-brand);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 14px -6px rgba(31,74,61,.5);flex:none;
}
.brand-logo{display:block;width:22px;height:22px}
.brand-mark .brand-logo{width:25px;height:25px}
.brand-name{font-size:13.5px;font-weight:700;letter-spacing:.01em;line-height:1.3}
.brand-sub{font-size:10.5px;color:var(--muted);letter-spacing:.06em;margin-top:2px}
.nav-scroll{flex:1;overflow-y:auto;min-height:0;padding-bottom:8px}
.nav-group{margin-top:14px}
.nav-group:first-child{margin-top:2px}
.nav-label{font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--faint);padding:0 12px;margin-bottom:6px;text-transform:uppercase}
.nav-item{
  position:relative;display:flex;align-items:center;gap:10px;width:100%;height:36px;padding:0 10px 0 12px;
  border:0;background:transparent;border-radius:9px;color:var(--ink-2);font-size:13px;font-weight:500;
  transition:background .16s,color .16s;text-align:left;
}
.nav-item svg{width:16px;height:16px;color:var(--muted);flex:none;transition:color .16s}
.nav-item:hover{background:var(--surface-2);color:var(--ink)}
.nav-item:hover svg{color:var(--ink-2)}
.nav-item.on{background:var(--brand-soft);color:var(--brand);font-weight:650}
.nav-item.on svg{color:var(--brand)}
.nav-item.on::before{content:"";position:absolute;left:0;top:9px;width:3px;height:18px;border-radius:2px;background:var(--brand)}
.nav-count{margin-left:auto;font-size:10.5px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:0 6px;height:17px;display:flex;align-items:center}
.nav-item.on .nav-count{background:var(--surface);color:var(--brand);border-color:transparent}
.side-foot{border-top:1px solid var(--line);padding-top:10px;margin-top:6px}
.side-user{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:10px;cursor:pointer;transition:background .16s;width:100%;border:0;background:transparent;text-align:left}
.side-user:hover{background:var(--surface-2)}
.side-user .meta{min-width:0;flex:1}
.side-user .nm{font-size:12.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-user .rl{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-note{font-size:10px;color:var(--faint);padding:6px 8px 0;line-height:1.6}
.side-reset{margin-left:5px;font-size:10px;color:var(--brand);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px;font-weight:600}
.side-reset:hover{color:var(--accent)}
/* 演示说明 */
.demo-strip{display:flex;align-items:center;gap:10px;padding:8px 11px;border:1px dashed var(--line-2);background:var(--surface-2);border-radius:9px;margin-bottom:16px;font-size:11.5px;color:var(--muted);line-height:1.55}
.ds-main{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
.ds-actions{display:flex;align-items:center;gap:8px;flex:none}
.ds-badge{display:inline-flex;align-items:center;height:19px;padding:0 6px;border-radius:4px;background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:700;letter-spacing:.03em;flex:none;cursor:pointer;border:0}
.ds-badge:hover{background:var(--accent);color:#fff}
.ds-text{min-width:0;flex:1}
.ds-link{color:var(--brand);font-weight:650;background:none;border:0;padding:0;font-size:11.5px;cursor:pointer;white-space:nowrap}
.ds-link:hover{text-decoration:underline;text-underline-offset:2px}
.ds-x{width:22px;height:22px;border-radius:6px;border:0;background:transparent;color:var(--faint);display:flex;align-items:center;justify-content:center;flex:none}
.ds-x:hover{background:var(--surface);color:var(--ink)}
.ds-x svg{width:12px;height:12px}
.demo-list{display:flex;flex-direction:column;gap:11px;margin-top:2px}
.demo-list>div{display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px;font-size:12px;line-height:1.75}
.demo-list b{font-weight:650;color:var(--ink)}
.demo-list span{color:var(--muted)}

.main{display:flex;flex-direction:column;min-width:0;min-height:0}
.topbar{
  height:58px;flex:none;display:flex;align-items:center;gap:14px;padding:0 24px;
  border-bottom:1px solid var(--line);background:rgba(246,242,234,.82);backdrop-filter:blur(12px);z-index:80;
}
[data-theme="dark"] .topbar{background:rgba(18,17,14,.84)}
.crumb{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);min-width:0}
.crumb b{font-weight:500;color:var(--ink);white-space:nowrap}
.crumb span{opacity:.55}
.crumb .sep{color:var(--faint)}
.search-trigger{
  margin-left:auto;display:flex;align-items:center;gap:8px;height:34px;padding:0 10px 0 11px;width:268px;
  border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:12.5px;
  transition:.16s;
}
.search-trigger:hover{border-color:var(--line-2);box-shadow:var(--sh-1)}
.search-trigger svg{width:14px;height:14px;flex:none}
.kbd{margin-left:auto;font-family:var(--sans);font-size:10px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:5px;padding:2px 5px;letter-spacing:.03em}
.sync{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);white-space:nowrap}
.sync i{width:6px;height:6px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(44,122,91,.12);display:block}
.seg{display:flex;align-items:center;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:2px;height:32px}
.seg button{height:26px;padding:0 10px;border:0;background:transparent;border-radius:7px;font-size:11.5px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:5px;transition:.15s}
.seg button svg{width:13px;height:13px}
.seg button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.seg button.on.admin{color:var(--accent)}
.icon-btn{width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink-2);display:flex;align-items:center;justify-content:center;transition:.15s;flex:none}
.icon-btn:hover{background:var(--surface-2);border-color:var(--line-2)}
.icon-btn svg{width:15px;height:15px}
.menu-btn{display:none}
.page{flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;scroll-behavior:smooth}
.page-inner{max-width:1160px;margin:0 auto;padding:30px 30px 104px;animation:fadeUp .34s cubic-bezier(.22,1,.36,1)}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.scrim{display:none}

/* ============ 基础组件 ============ */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-1)}
.card-hd{display:flex;align-items:center;gap:10px;padding:15px 20px;border-bottom:1px solid var(--line);min-height:54px}
.card-hd h3{font-size:13px;font-weight:650;letter-spacing:.01em}
.card-hd .right{margin-left:auto;display:flex;align-items:center;gap:8px}
.card-bd{padding:20px}
.card-bd.tight{padding:14px 20px}
.card-bd.flush{padding:0}
.sub{font-size:12.5px;color:var(--muted);line-height:1.7}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 16px;border-radius:10px;
  border:1px solid transparent;font-size:13px;font-weight:600;letter-spacing:.01em;transition:.16s;white-space:nowrap;
}
.btn svg{width:15px;height:15px}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--brand);color:var(--on-brand);box-shadow:0 8px 18px -12px rgba(31,74,61,.9)}
.btn-primary:hover{background:var(--brand-2);box-shadow:0 10px 22px -12px rgba(31,74,61,.9)}
.btn-ghost{background:var(--surface);border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--line-2);background:var(--surface-2)}
.btn-accent{background:var(--accent);color:#FFF}
.btn-quiet{background:transparent;color:var(--muted);height:32px;padding:0 8px;font-weight:500}
.btn-quiet:hover{background:var(--surface-2);color:var(--ink)}
.btn-sm{height:30px;padding:0 10px;font-size:11.5px;border-radius:8px}
.btn-sm svg{width:13px;height:13px}
.btn-block{width:100%}
.btn[disabled]{opacity:.5;pointer-events:none}
.link{color:var(--brand);font-weight:600;font-size:12.5px;cursor:pointer;display:inline-flex;align-items:center;gap:4px;background:none;border:0;padding:0}
.link:hover{text-decoration:underline;text-underline-offset:3px}
.link svg{width:13px;height:13px}
.badge{display:inline-flex;align-items:center;gap:4px;height:21px;padding:0 7px;border-radius:5px;font-size:10.5px;font-weight:650;letter-spacing:.02em;white-space:nowrap}
.b-person{background:var(--brand-soft);color:var(--brand)}
.b-concept{background:var(--accent-soft);color:var(--accent)}
.b-event{background:var(--blue-soft);color:var(--blue)}
.b-red{background:var(--red-soft);color:var(--red)}
.b-gray{background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.b-new{background:var(--brand-soft);color:var(--brand)}
.b-upd{background:var(--accent-soft);color:var(--accent)}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{display:inline-flex;align-items:center;height:23px;padding:0 8px;border-radius:6px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);font-size:11px;white-space:nowrap}
.chips{display:flex;flex-wrap:wrap;gap:7px}
.chip{display:inline-flex;align-items:center;gap:5px;height:31px;padding:0 11px;border-radius:8px;border:1px solid var(--line);background:var(--surface);font-size:12.5px;color:var(--ink-2);cursor:pointer;transition:.14s;user-select:none}
.chip:hover{border-color:var(--line-2);background:var(--surface-2)}
.chip.on{background:var(--brand-soft);border-color:transparent;color:var(--brand);font-weight:650}
.chip svg{width:12px;height:12px}
.chip-add{border-style:dashed;color:var(--muted)}
.inp{width:100%;height:40px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:0 12px;font-size:13px;outline:none;transition:.15s;appearance:none}
.inp::placeholder{color:var(--faint)}
.inp:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-ring)}
textarea.inp{height:auto;padding:10px 12px;line-height:1.8;resize:vertical}
select.inp{background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 16px) 17px,calc(100% - 11px) 17px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:32px}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}
.field>label{font-size:12px;font-weight:650;color:var(--ink-2);display:flex;align-items:center;gap:6px}
.field>label .opt{font-weight:400;color:var(--faint);font-size:11px}
.hint{font-size:11.5px;color:var(--muted);line-height:1.65}
.av{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-weight:650;flex:none;letter-spacing:0;font-size:12px}
.av-ring{border:2px solid var(--surface)}
.row{display:flex;align-items:center;gap:10px}
.row-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.spacer{flex:1}
.dot-div{width:3px;height:3px;border-radius:50%;background:var(--faint);display:inline-block;vertical-align:middle}
.empty{padding:48px 20px;text-align:center;color:var(--muted);font-size:12.5px}
.empty svg{width:26px;height:26px;color:var(--faint);margin-bottom:10px}
.meter{height:5px;border-radius:6px;background:var(--surface-2);overflow:hidden;border:1px solid var(--line)}
.meter i{display:block;height:100%;background:var(--brand);border-radius:6px}
.bar{height:6px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);border-radius:6px;transition:width .5s cubic-bezier(.22,1,.36,1)}
.divider{height:1px;background:var(--line);margin:16px 0}

/* ============ 首页 ============ */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:center;padding:12px 0 30px}
.eyebrow{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650;letter-spacing:.1em;color:var(--accent);text-transform:uppercase}
.eyebrow i{width:18px;height:1px;background:var(--accent);display:block;opacity:.6}
.display{font-family:var(--serif);font-size:42px;line-height:1.24;font-weight:600;letter-spacing:-.015em;margin:14px 0 0;color:var(--ink)}
.lede{margin-top:14px;font-size:14px;line-height:1.9;color:var(--ink-2);max-width:560px}
.hero-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.orbit{position:relative;height:262px;display:flex;align-items:center;justify-content:center}
.orbit svg{width:100%;max-width:300px;height:auto;overflow:visible}
.orbit .spin{transform-origin:160px 145px;animation:spin 60s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.stat-strip{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-1);overflow:hidden}
.stat{padding:17px 20px;border-right:1px solid var(--line);min-width:0}
.stat:last-child{border-right:0}
.stat-k{font-size:11px;color:var(--muted);letter-spacing:.03em;display:flex;align-items:center;gap:5px}
.stat-v{font-family:var(--serif);font-size:27px;font-weight:600;line-height:1.25;margin-top:5px;letter-spacing:-.01em}
.stat-v small{font-size:12px;font-family:var(--sans);font-weight:500;color:var(--muted);margin-left:3px;letter-spacing:0}
.stat-d{font-size:10.5px;color:var(--muted);margin-top:2px}
.stat-d.up{color:var(--ok)}
.home-grid{display:grid;grid-template-columns:1.42fr 1fr;gap:20px;margin-top:20px;align-items:start}
.home-side{display:flex;flex-direction:column;gap:20px}
.section-head{display:flex;align-items:center;gap:8px;padding:15px 20px;border-bottom:1px solid var(--line)}
.section-head h2{font-size:13px;font-weight:650}
.section-head .cnt{font-size:10.5px;color:var(--muted);background:var(--surface-2);border-radius:20px;padding:1px 6px}
.section-head .link{margin-left:auto}
.note-list{display:flex;flex-direction:column}
.note-row{display:flex;gap:12px;padding:15px 20px;border-bottom:1px solid var(--line);cursor:pointer;transition:background .14s;position:relative}
.note-row:last-child{border-bottom:0}
.note-row:hover{background:var(--surface-2)}
.note-main{min-width:0;flex:1}
.note-title{font-size:13.5px;font-weight:650;line-height:1.5;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.note-ex{font-size:12px;color:var(--muted);line-height:1.7;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.note-meta{font-size:10.5px;color:var(--faint);margin-top:6px;display:flex;align-items:center;gap:6px}
.note-arrow{color:var(--faint);display:flex;align-items:center;opacity:0;transition:.16s;transform:translateX(-3px)}
.note-row:hover .note-arrow{opacity:1;transform:none}
.note-arrow svg{width:14px;height:14px}
.need-mini{padding:14px 18px;border-bottom:1px solid var(--line);cursor:pointer;transition:background .14s}
.need-mini:last-child{border-bottom:0}
.need-mini:hover{background:var(--surface-2)}
.need-mini h4{font-size:12.8px;font-weight:600;line-height:1.55}
.need-mini .nm{display:flex;align-items:center;gap:6px;font-size:10.5px;color:var(--faint);margin-top:6px}
.pulse{padding:16px 20px 18px}
.pulse-top{display:flex;align-items:flex-end;gap:10px}
.pulse-top b{font-family:var(--serif);font-size:24px;font-weight:600;line-height:1}
.pulse-top span{font-size:11px;color:var(--muted);line-height:1.4;padding-bottom:2px}
.bars{display:flex;align-items:flex-end;gap:6px;height:56px;margin-top:14px}
.bars div{flex:1;background:var(--brand-soft);border-radius:3px 3px 0 0;position:relative;transition:.2s}
.bars div.hi{background:var(--brand)}
.bars div:hover{background:var(--brand-2)}
.bars-x{display:flex;gap:6px;margin-top:6px}
.bars-x span{flex:1;text-align:center;font-size:9.5px;color:var(--faint)}
.quote-band{
  margin-top:20px;background:var(--band);border-radius:var(--r);padding:30px 34px;color:var(--band-ink);
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;align-items:center;position:relative;overflow:hidden;
  box-shadow:0 20px 40px -28px rgba(23,58,48,.9);
}
.quote-band::after{content:"“";position:absolute;right:26px;top:-42px;font-family:var(--serif);font-size:190px;line-height:1;color:rgba(255,255,255,.06);pointer-events:none}
.qb-text{font-family:var(--serif);font-size:20px;line-height:1.85;letter-spacing:.01em;position:relative;z-index:1;max-width:640px}
.qb-by{font-size:11.5px;color:rgba(242,237,227,.62);margin-top:12px;display:flex;align-items:center;gap:7px}
.qb-by i{width:14px;height:1px;background:rgba(242,237,227,.4);display:block}
.attend{display:flex;flex-direction:column;gap:10px;position:relative;z-index:1;min-width:172px}
.attend-k{font-size:10px;letter-spacing:.12em;color:rgba(242,237,227,.55);text-transform:uppercase}
.attend-row{display:flex;align-items:center}
.attend-row .av{border:2px solid #214438;margin-left:-8px}
.attend-row .av:first-child{margin-left:0}
.attend-more{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.1);color:rgba(255,255,255,.75);font-size:10px;display:flex;align-items:center;justify-content:center;margin-left:-8px;border:2px solid #214438}
.attend-names{font-size:11px;color:rgba(242,237,227,.55);line-height:1.7}
.quote-band .av{color:#F2EDE3!important;background:rgba(255,255,255,.13)!important}

/* ============ 知识库 ============ */
.wiki-grid{display:grid;grid-template-columns:262px minmax(0,1fr);gap:20px;align-items:start}
.wiki-index{position:sticky;top:0;overflow:hidden;display:flex;flex-direction:column;max-height:calc(100vh - 118px)}
.wi-search{padding:12px;border-bottom:1px solid var(--line);position:relative}
.wi-search svg{position:absolute;left:23px;top:24px;width:14px;height:14px;color:var(--faint)}
.wi-search input{height:34px;padding-left:32px;font-size:12.5px}
.wi-scroll{overflow-y:auto;padding:8px 8px 14px;min-height:0}
.wi-group{margin-top:12px}
.wi-group:first-child{margin-top:4px}
.wi-label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--faint);padding:0 8px;margin-bottom:4px;text-transform:uppercase}
.wi-label span{margin-left:auto;font-weight:500;letter-spacing:0;font-size:10px}
.wi-item{display:flex;align-items:center;gap:7px;width:100%;border:0;background:transparent;padding:7px 8px;border-radius:7px;font-size:12.2px;color:var(--ink-2);text-align:left;transition:.14s;line-height:1.4}
.wi-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wi-item:hover{background:var(--surface-2);color:var(--ink)}
.wi-item.on{background:var(--brand-soft);color:var(--brand);font-weight:650}
.wi-item .raw-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);flex:none;margin-left:auto}
.wi-item .raw-dot.done{background:var(--line-2)}
.wi-empty{padding:10px 8px;font-size:11.5px;color:var(--faint)}
.reader{min-height:520px;overflow:hidden}
.reader-top{display:flex;align-items:center;gap:8px;padding:12px 26px;border-bottom:1px solid var(--line);font-family:var(--mono);font-size:10.5px;color:var(--muted);letter-spacing:.01em}
.reader-top .path{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reader-top .sync{margin-left:auto;font-family:var(--sans);font-size:10.5px}
.reader-body{padding:30px 36px 34px}
.reader-title{font-family:var(--serif);font-size:29px;line-height:1.35;font-weight:600;letter-spacing:-.01em;margin-bottom:10px}
.reader-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11.5px;color:var(--muted)}
.reader-tags{margin:14px 0 4px}
.reader-actions{display:flex;gap:8px;margin-left:auto}
.reader-head{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.md{margin-top:22px;font-size:14.2px;line-height:1.95;color:var(--ink-2)}
.md h1{display:none}
.md h2{font-size:16.5px;font-weight:650;color:var(--ink);margin:32px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}
.md h2::before{content:"";width:3px;height:13px;background:var(--brand);border-radius:2px;display:block}
.md h3{font-size:14.5px;font-weight:650;color:var(--ink);margin:22px 0 8px}
.md p{margin:10px 0}
.md strong{color:var(--ink);font-weight:650}
.md ul,.md ol{margin:10px 0;padding-left:0;list-style:none}
.md ul li{position:relative;padding-left:17px;margin:6px 0}
.md ul li::before{content:"";position:absolute;left:3px;top:.78em;width:4px;height:4px;border-radius:1px;background:var(--line-2)}
.md ol{counter-reset:n}
.md ol li{position:relative;padding-left:21px;margin:8px 0;counter-increment:n}
.md ol li::before{content:counter(n);position:absolute;left:0;top:.2em;font-size:10.5px;font-weight:700;color:var(--accent);background:var(--accent-soft);width:16px;height:16px;border-radius:4px;display:flex;align-items:center;justify-content:center;line-height:1}
.md blockquote{margin:16px 0;padding:13px 18px;background:var(--surface-2);border-left:3px solid var(--accent);border-radius:0 10px 10px 0;color:var(--ink-2);font-family:var(--serif);font-size:14.5px;line-height:1.85}
.md blockquote p{margin:0}
.md code{font-family:var(--mono);font-size:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:4px;padding:1px 5px;color:var(--accent)}
.md hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.wl{color:var(--brand);font-weight:600;border-bottom:1px dashed var(--brand);cursor:pointer;transition:.12s;text-underline-offset:3px}
.wl:hover{background:var(--brand-soft);border-bottom-style:solid}
.backlinks{margin-top:34px;padding-top:18px;border-top:1px solid var(--line)}
.bl-k{font-size:10px;letter-spacing:.12em;color:var(--faint);font-weight:700;margin-bottom:9px;text-transform:uppercase}
.bl-list{display:flex;flex-wrap:wrap;gap:7px}
.bl-item{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--ink-2);background:var(--surface-2);border:1px solid var(--line);border-radius:7px;padding:5px 9px;cursor:pointer;transition:.14s}
.bl-item:hover{border-color:var(--brand);color:var(--brand)}
.source-note{margin-top:16px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);background:var(--surface-2);border:1px dashed var(--line-2);border-radius:9px;padding:9px 12px}
.source-note svg{width:13px;height:13px;flex:none;color:var(--accent)}
.raw-banner{margin:0 0 22px;padding:14px 16px;border-radius:10px;background:var(--accent-soft);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.raw-banner .txt{font-size:11.5px;color:var(--ink-2);line-height:1.6}
.raw-banner b{color:var(--accent)}
.raw-text{font-family:var(--mono);font-size:12.2px;line-height:2;color:var(--ink-2);white-space:pre-wrap;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:18px 20px;max-height:520px;overflow:auto}

/* ============ 图谱 ============ */
.graph-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.graph-card{overflow:hidden}
.graph-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.legend{display:flex;align-items:center;gap:4px;font-size:10.5px;color:var(--muted);height:24px;padding:0 8px;border-radius:6px;border:1px solid var(--line);background:var(--surface);cursor:pointer;user-select:none}
.legend i{width:7px;height:7px;border-radius:50%;display:block}
.legend.off{opacity:.4}
.graph-canvas{position:relative;height:560px;background:var(--surface-2);background-image:radial-gradient(var(--line-2) .7px,transparent .7px);background-size:18px 18px;overflow:hidden;cursor:grab}
.graph-canvas:active{cursor:grabbing}
.graph-canvas svg{display:block;width:100%;height:100%;touch-action:none}
.gnode{cursor:pointer}
.gnode text{font-family:var(--sans);font-size:11.5px;font-weight:600;fill:var(--ink-2);paint-order:stroke;stroke:var(--surface-2);stroke-width:3.5px;stroke-linejoin:round;pointer-events:none}
.gnode.sel text{fill:var(--ink);font-weight:700}
.gnode.dim{opacity:.16}
.gline{stroke:var(--line-2);stroke-width:1.2;transition:opacity .18s}
.gline.dim{opacity:.15}
.graph-hint{position:absolute;left:14px;bottom:12px;font-size:10.5px;color:var(--faint);background:rgba(255,255,255,.72);border-radius:6px;padding:3px 8px;pointer-events:none}
[data-theme="dark"] .graph-hint{background:rgba(27,25,21,.8)}
.graph-side .card-bd{padding:18px}
.gs-cat{margin-bottom:12px}
.gs-title{font-family:var(--serif);font-size:19px;line-height:1.4;font-weight:600;margin:8px 0 8px}
.gs-ex{font-size:12px;color:var(--muted);line-height:1.75;margin-bottom:14px}
.gs-links{display:flex;flex-direction:column;gap:2px;margin-top:6px}
.gs-link{display:flex;align-items:center;gap:7px;padding:7px 8px;border-radius:7px;font-size:12px;color:var(--ink-2);cursor:pointer;transition:.14s;border:0;background:none;text-align:left;width:100%}
.gs-link:hover{background:var(--surface-2);color:var(--brand)}
.gs-link i{width:6px;height:6px;border-radius:50%;background:var(--line-2);flex:none}
.gs-link.p i{background:var(--brand)} .gs-link.c i{background:var(--accent)} .gs-link.e i{background:var(--blue)}

/* ============ 需求大厅 ============ */
.page-head-row{display:flex;align-items:flex-start;gap:20px;margin-bottom:20px;flex-wrap:wrap}
.h1{font-family:var(--serif);font-size:30px;font-weight:600;letter-spacing:-.01em;line-height:1.3}
.page-sub{font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.7;max-width:640px}
.page-head-row .btn{margin-left:auto}
.tabs{display:flex;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:3px;width:max-content;max-width:100%;overflow-x:auto;margin-bottom:18px}
.tabs button{height:30px;padding:0 12px;border:0;background:transparent;border-radius:7px;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap;transition:.14s}
.tabs button.on{background:var(--brand-soft);color:var(--brand)}
.tabs button:hover:not(.on){color:var(--ink)}
.need-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.need-card{padding:17px 18px;transition:.18s;cursor:pointer;position:relative;display:flex;flex-direction:column}
.need-card:hover{border-color:var(--line-2);box-shadow:var(--sh-2);transform:translateY(-1px)}
.need-card.fresh{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-ring)}
.need-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.need-top .time{margin-left:auto;font-size:10.5px;color:var(--faint)}
.need-card h3{font-size:14.5px;font-weight:650;line-height:1.55}
.need-desc{font-size:12.5px;color:var(--muted);line-height:1.8;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.need-tags{margin-top:10px}
.need-foot{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.need-author{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--ink-2);min-width:0}
.need-author b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.need-author span{color:var(--faint);font-size:10.5px;white-space:nowrap}
.need-foot .btn{margin-left:auto}
.match-strip{margin-top:12px;background:var(--brand-soft);border-radius:9px;padding:10px 12px;font-size:11.5px;line-height:1.7;color:var(--ink-2)}
.match-strip b{color:var(--brand)}
.match-strip .mm{display:flex;align-items:center;gap:5px;margin-top:4px;color:var(--muted);font-size:10.5px}

/* ============ 个人主页 ============ */
.profile-grid{display:grid;grid-template-columns:318px minmax(0,1fr);gap:20px;align-items:start}
.profile-card{overflow:hidden}
.pc-cover{height:92px;background:var(--band);position:relative;overflow:hidden}
.pc-cover::after{content:"";position:absolute;right:-30px;top:-50px;width:160px;height:160px;border-radius:50%;border:1px solid rgba(255,255,255,.14)}
.pc-cover::before{content:"";position:absolute;right:12px;top:-10px;width:90px;height:90px;border-radius:50%;border:1px solid rgba(255,255,255,.1)}
.pc-body{padding:0 20px 20px;position:relative}
.pc-avatar{width:64px;height:64px;border-radius:18px;margin-top:-32px;border:3px solid var(--surface);box-shadow:var(--sh-1);font-size:26px;border-radius:18px}
.pc-name{font-family:var(--serif);font-size:22px;font-weight:600;margin-top:10px;line-height:1.35;display:flex;align-items:center;gap:7px}
.pc-alias{font-size:11.5px;color:var(--muted);margin-top:2px}
.pc-title{font-size:12.5px;color:var(--ink-2);line-height:1.7;margin-top:10px}
.pc-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:16px 0 14px;padding:11px 0}
.pc-stats div{text-align:center;border-right:1px solid var(--line)}
.pc-stats div:last-child{border-right:0}
.pc-stats b{display:block;font-family:var(--serif);font-size:18px;font-weight:600;line-height:1.2}
.pc-stats span{font-size:10px;color:var(--muted)}
.pc-section{margin-top:14px}
.pc-k{font-size:10px;letter-spacing:.1em;color:var(--faint);font-weight:700;margin-bottom:6px;text-transform:uppercase}
.pc-li{font-size:12px;color:var(--ink-2);line-height:1.8;display:flex;gap:6px}
.pc-li::before{content:"";width:4px;height:4px;border-radius:50%;background:var(--line-2);margin-top:8px;flex:none}
.pc-actions{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.profile-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.timeline{display:flex;flex-direction:column;padding:4px 0}
.tl-item{display:flex;gap:14px;padding:12px 0;position:relative}
.tl-item:not(:last-child)::before{content:"";position:absolute;left:5px;top:26px;bottom:-4px;width:1px;background:var(--line)}
.tl-dot{width:11px;height:11px;border-radius:50%;border:2px solid var(--brand);background:var(--surface);flex:none;margin-top:5px;z-index:1}
.tl-item.past .tl-dot{border-color:var(--line-2)}
.tl-body{min-width:0;flex:1}
.tl-title{font-size:13px;font-weight:600;line-height:1.5;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tl-meta{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.6}
.promo{background:var(--surface-2);border-style:dashed;display:flex;align-items:center;gap:16px;padding:18px 20px;flex-wrap:wrap}
.promo .promo-t{font-size:13px;font-weight:650;margin-bottom:3px}
.promo .promo-d{font-size:11.5px;color:var(--muted);line-height:1.65}
.promo .btn{margin-left:auto}

/* ============ 管理台 ============ */
.stat-strip.compact{grid-template-columns:repeat(4,1fr)}
.flow{display:grid;grid-template-columns:1fr 32px 1fr 32px 1fr;align-items:center;gap:0;padding:20px 22px}
.flow-node{padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);min-width:0;position:relative}
.flow-node .fk{font-size:10px;letter-spacing:.08em;color:var(--faint);font-weight:700;text-transform:uppercase}
.flow-node .fv{font-family:var(--serif);font-size:23px;font-weight:600;line-height:1.3;margin-top:2px}
.flow-node .fv small{font-size:11px;font-family:var(--sans);color:var(--muted);font-weight:400;margin-left:4px}
.flow-node .fd{font-size:10.5px;color:var(--muted);margin-top:2px}
.flow-arrow{display:flex;align-items:center;justify-content:center;color:var(--faint)}
.flow-arrow svg{width:15px;height:15px}
.log-list{display:flex;flex-direction:column;padding:4px 0}
.log-item{display:flex;gap:12px;padding:11px 20px;align-items:flex-start;border-bottom:1px solid var(--line)}
.log-item:last-child{border-bottom:0}
.log-time{font-family:var(--mono);font-size:10.5px;color:var(--faint);flex:none;padding-top:2px;width:38px}
.log-text{font-size:12px;color:var(--ink-2);line-height:1.7;min-width:0}
.log-text b{font-weight:650;color:var(--ink)}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 18px}
.quick{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:13px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:left;transition:.16s}
.quick:hover{border-color:var(--brand);background:var(--brand-soft);transform:translateY(-1px)}
.quick svg{width:16px;height:16px;color:var(--brand)}
.quick b{font-size:12px;font-weight:650}
.quick span{font-size:10.5px;color:var(--muted);line-height:1.5}

/* ============ 知识入库 ============ */
.ingest-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:start;margin-bottom:20px}
.ingest-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.drop{
  border:1px dashed var(--line-2);border-radius:10px;padding:16px;text-align:center;cursor:pointer;transition:.16s;
  background:var(--surface-2);display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;color:var(--muted);
}
.drop:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}
.drop svg{width:16px;height:16px}
.drop b{font-weight:650;color:var(--ink)}
.file-chip{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--ink-2);background:var(--surface-2);border:1px solid var(--line);border-radius:7px;padding:5px 9px;margin-top:8px}
.file-chip svg{width:12px;height:12px;color:var(--brand)}
.file-chip .x{margin-left:auto;cursor:pointer;color:var(--faint);font-size:14px;line-height:1}
.steps{display:flex;flex-direction:column;gap:0;margin-bottom:14px}
.step{display:flex;gap:10px;padding:7px 0;align-items:center;font-size:12px;color:var(--faint);transition:.2s}
.step .sd{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--line-2);display:flex;align-items:center;justify-content:center;flex:none;font-size:9px}
.step .sd svg{width:10px;height:10px}
.step.on{color:var(--ink);font-weight:600}
.step.on .sd{border-color:var(--brand);background:var(--brand);color:var(--on-brand)}
.step.done{color:var(--ink-2)}
.step.done .sd{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.step .sd .pulse-dot{width:6px;height:6px;border-radius:50%;background:var(--brand);animation:pulse 1s infinite}
@keyframes pulse{0%,100%{opacity:.35}50%{opacity:1}}
.console{background:#171A17;border:1px solid #262B26;border-radius:10px;padding:13px 14px;height:196px;overflow-y:auto;font-family:var(--mono);font-size:11.3px;line-height:1.85;color:#A8B3A6}
[data-theme="dark"] .console{background:#0E100E;border-color:#242822}
.console .cl{display:flex;gap:8px}
.console .t{color:#5F6B5D;flex:none}
.console .ok{color:#8FCFAA}
.console .hl{color:#D8C08E}
.console .path{color:#E0E7DA}
.console .warn{color:#D8A17E}
.console-empty{height:196px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:11.5px;color:var(--faint);line-height:1.8;border:1px dashed var(--line);border-radius:10px;background:var(--surface-2)}
.drafts{margin-top:0}
.draft-list{display:flex;flex-direction:column}
.draft{padding:14px 20px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:flex-start;transition:background .14s}
.draft:last-child{border-bottom:0}
.draft:hover{background:var(--surface-2)}
.cbox{width:17px;height:17px;border-radius:5px;border:1.5px solid var(--line-2);background:var(--surface);flex:none;margin-top:2px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.14s}
.cbox svg{width:11px;height:11px;color:var(--on-brand);opacity:0}
.cbox.on{background:var(--brand);border-color:var(--brand)}
.cbox.on svg{opacity:1}
.draft-main{min-width:0;flex:1}
.draft-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.draft-title{font-size:13px;font-weight:650}
.draft-path{font-family:var(--mono);font-size:10px;color:var(--faint);margin-top:4px}
.draft-ex{font-size:11.5px;color:var(--muted);line-height:1.7;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.draft-more{font-size:11px;color:var(--brand);cursor:pointer;margin-top:4px;background:none;border:0;padding:0;font-weight:600}
.draft-full{margin-top:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:12px 14px;font-size:11.5px;line-height:1.85;color:var(--ink-2);white-space:pre-wrap;max-height:220px;overflow:auto;font-family:var(--mono)}

/* ============ 表格 / 档案 ============ */
.toolbar{display:flex;align-items:center;gap:10px;padding:13px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.toolbar .inp{height:34px;font-size:12.5px}
.toolbar .grow{flex:1;min-width:150px;position:relative}
.toolbar .grow svg{position:absolute;left:11px;top:10px;width:14px;height:14px;color:var(--faint)}
.toolbar .grow .inp{padding-left:32px}
.toolbar select.inp{width:auto;min-width:120px}
.tbl-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;min-width:760px}
.tbl th{text-align:left;font-size:10.5px;letter-spacing:.05em;color:var(--muted);font-weight:650;padding:9px 16px;background:var(--surface-2);border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:11px 16px;border-bottom:1px solid var(--line);font-size:12.5px;vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr{cursor:pointer;transition:background .12s}
.tbl tbody tr:hover{background:var(--surface-2)}
.tbl .who{display:flex;align-items:center;gap:9px;min-width:150px}
.tbl .who b{font-size:12.8px;font-weight:650;display:block;line-height:1.35}
.tbl .who span{font-size:10.5px;color:var(--faint);display:block}
.tbl .mini-meter{display:flex;align-items:center;gap:8px;min-width:110px}
.tbl .mini-meter .meter{flex:1;height:4px}
.tbl .mini-meter span{font-size:10.5px;color:var(--muted);font-family:var(--mono)}
.tbl .tags{gap:4px}
.tbl .tag{height:20px;font-size:10px}
.sheet-wrap{position:fixed;inset:0;z-index:900;display:flex;justify-content:flex-end;background:rgba(18,16,12,.34);backdrop-filter:blur(3px);animation:fadeIn .18s}
.sheet{width:560px;max-width:94vw;height:100%;background:var(--surface);border-left:1px solid var(--line);box-shadow:-20px 0 60px -30px rgba(0,0,0,.4);display:flex;flex-direction:column;animation:slideIn .26s cubic-bezier(.22,1,.36,1)}
@keyframes slideIn{from{transform:translateX(30px);opacity:.6}to{transform:none;opacity:1}}
.sheet-hd{display:flex;align-items:flex-start;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}
.sheet-hd h2{font-family:var(--serif);font-size:22px;font-weight:600;line-height:1.35}
.sheet-bd{overflow-y:auto;padding:20px 22px 30px;flex:1}
.sheet-ft{padding:14px 22px;border-top:1px solid var(--line);display:flex;gap:9px;align-items:center;background:var(--surface)}
.sheet-ft .btn{flex:1}
.drawer-id{display:flex;align-items:center;gap:12px}
.drawer-id .av{font-size:20px}
.drawer-sub{font-size:11.5px;color:var(--muted);margin-top:3px;line-height:1.6}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin:4px 0 18px}
.info-grid .ik{font-size:10px;color:var(--faint);letter-spacing:.04em}
.info-grid .iv{font-size:12px;color:var(--ink-2);line-height:1.65;margin-top:2px;word-break:break-word}
.quote-block{background:var(--surface-2);border-left:2px solid var(--accent);border-radius:0 8px 8px 0;padding:10px 13px;margin-bottom:9px}
.quote-block p{font-size:12px;line-height:1.8;color:var(--ink-2)}
.quote-block .qm{font-size:9.5px;color:var(--faint);margin-top:5px;display:flex;gap:8px;font-family:var(--mono)}

/* ============ 撮合 ============ */
.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mcard{padding:18px 19px}
.mcard-top{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.mcard-pair{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.mcard-pair .nm{font-size:11.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcard-pair .ids{font-size:10px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcard-pair .arrow{color:var(--faint);flex:none}
.mcard-pair .arrow svg{width:14px;height:14px}
.score{font-family:var(--serif);font-size:21px;font-weight:600;color:var(--brand);line-height:1;flex:none;text-align:right}
.score small{font-size:9px;font-family:var(--sans);color:var(--faint);display:block;font-weight:400;text-align:right;letter-spacing:.04em}
.mcard-title{font-size:13px;font-weight:650;line-height:1.55}
.mcard-why{margin-top:9px;font-size:11.5px;line-height:1.75;color:var(--muted);background:var(--surface-2);border-radius:8px;padding:9px 11px}
.mcard-why b{color:var(--ink-2);font-weight:600}
.mcard-foot{display:flex;align-items:center;gap:7px;margin-top:12px}
.mcard-foot .btn{margin-left:auto}

/* ============ 战报 ============ */
.report-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;align-items:start}
.report-preview{background:var(--surface);min-height:520px;overflow:hidden}
.rp-head{padding:13px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;font-size:10.5px;color:var(--muted);letter-spacing:.05em}
.rp-head .ok{margin-left:auto;color:var(--ok);display:flex;align-items:center;gap:4px}
.rp-head .ok svg{width:12px;height:12px}
.article{padding:34px 44px 44px;max-width:720px;margin:0 auto}
.article h1{font-family:var(--serif);font-size:27px;line-height:1.45;font-weight:600;letter-spacing:-.01em;margin-bottom:10px}
.art-meta{font-size:11px;color:var(--muted);letter-spacing:.04em;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:22px}
.article h2{font-family:var(--serif);font-size:17px;font-weight:600;margin:26px 0 10px}
.article p{font-size:14px;line-height:2;color:var(--ink-2);margin:10px 0}
.article ul{margin:10px 0;padding-left:0;list-style:none}
.article li{font-size:14px;line-height:1.95;color:var(--ink-2);position:relative;padding-left:16px;margin:7px 0}
.article li::before{content:"";position:absolute;left:2px;top:.8em;width:4px;height:4px;border-radius:50%;background:var(--accent)}
.article blockquote{margin:18px 0;padding:14px 18px;background:var(--surface-2);border-left:3px solid var(--accent);font-family:var(--serif);font-size:15px;line-height:1.9;border-radius:0 10px 10px 0}
.article strong{color:var(--ink);font-weight:650}
.article .art-foot{margin-top:28px;padding-top:14px;border-top:1px solid var(--line);font-size:11px;color:var(--faint);line-height:1.8}
.sk{background:linear-gradient(90deg,var(--surface-2) 25%,var(--line) 37%,var(--surface-2) 63%);background-size:400% 100%;animation:shimmer 1.3s infinite;border-radius:5px;height:12px;margin:10px 0}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
.gen-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:10.5px;color:var(--faint);margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.tone-list{display:flex;flex-direction:column;gap:7px}
.tone{display:flex;gap:10px;align-items:flex-start;padding:10px 11px;border:1px solid var(--line);border-radius:9px;cursor:pointer;transition:.14s}
.tone:hover{background:var(--surface-2)}
.tone.on{border-color:var(--brand);background:var(--brand-soft)}
.tone .rk{width:14px;height:14px;border-radius:50%;border:1.5px solid var(--line-2);flex:none;margin-top:2px;display:flex;align-items:center;justify-content:center}
.tone.on .rk{border-color:var(--brand)}
.tone.on .rk::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--brand)}
.tone b{font-size:12px;font-weight:650;display:block;line-height:1.4}
.tone span{font-size:10.5px;color:var(--muted);line-height:1.5;display:block;margin-top:2px}

/* ============ 弹层 ============ */
.overlay{position:fixed;inset:0;z-index:1000;background:rgba(22,19,15,.42);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;animation:fadeIn .2s}
[data-theme="dark"] .overlay{background:rgba(0,0,0,.6)}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.sheet-modal{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--sh-2);width:560px;max-width:100%;max-height:88vh;overflow:auto;animation:pop .26s cubic-bezier(.22,1,.36,1)}
@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.m-hd{display:flex;align-items:flex-start;gap:12px;padding:20px 22px 14px}
.m-hd h2{font-family:var(--serif);font-size:21px;font-weight:600;line-height:1.4}
.m-hd .sub{margin-top:3px;font-size:11.5px}
.m-bd{padding:0 22px 20px}
.m-ft{padding:14px 22px;border-top:1px solid var(--line);display:flex;gap:9px;justify-content:flex-end;align-items:center;background:var(--surface-2);border-radius:0 0 18px 18px}
.m-x{position:absolute;right:16px;top:14px;width:30px;height:30px;border-radius:8px;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.m-x:hover{background:var(--surface-2);color:var(--ink)}
.m-x svg{width:16px;height:16px}
.pos-rel{position:relative}
.note-editor{width:min(980px,100%);max-height:90vh;display:flex;flex-direction:column;overflow:hidden}
.editor-body{display:grid;grid-template-columns:1fr 1fr;gap:0;flex:1;min-height:0;border-top:1px solid var(--line)}
.editor-col{display:flex;flex-direction:column;min-height:0}
.editor-col+.editor-col{border-left:1px solid var(--line);background:var(--surface-2)}
.editor-bar{display:flex;align-items:center;gap:8px;padding:8px 14px;font-size:10px;letter-spacing:.08em;color:var(--faint);border-bottom:1px solid var(--line);font-weight:700}
.editor-bar .tag{margin-left:auto}
.editor-pane{flex:1;border:0;background:transparent;color:var(--ink);font-family:var(--mono);font-size:12px;line-height:1.9;padding:16px 18px;resize:none;outline:none;min-height:380px}
.preview-pane{flex:1;overflow:auto;padding:6px 22px 24px}
.editor-pane::placeholder{color:var(--faint)}

/* 数字名片 */
.biz-card{width:348px;max-width:100%;background:var(--surface);border-radius:20px;overflow:hidden;border:1px solid var(--line);box-shadow:0 24px 60px -30px rgba(0,0,0,.5);position:relative}
.bc-top{height:104px;background:var(--band);position:relative;overflow:hidden;padding:15px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.bc-brand{font-size:9.5px;letter-spacing:.16em;color:rgba(242,237,227,.62);text-transform:uppercase}
.bc-era{font-size:10.5px;color:rgba(242,237,227,.82)}
.bc-body{padding:0 20px 18px;position:relative}
.bc-av{width:56px;height:56px;border-radius:16px;margin-top:-28px;border:3px solid var(--surface);font-size:22px}
.bc-name{font-family:var(--serif);font-size:23px;font-weight:600;margin-top:8px;line-height:1.3}
.bc-alias{font-size:10.5px;color:var(--faint);letter-spacing:.04em;margin-top:1px}
.bc-title{font-size:11.5px;color:var(--muted);line-height:1.6;margin-top:7px}
.bc-tags{margin-top:10px;gap:5px}
.bc-tags .tag{height:20px;font-size:9.5px;padding:0 6px}
.bc-line{height:1px;background:var(--line);margin:14px 0 11px}
.bc-stats{display:flex;justify-content:space-between;padding:0 2px}
.bc-stats div{text-align:center}
.bc-stats b{display:block;font-family:var(--serif);font-size:15px;font-weight:600}
.bc-stats span{font-size:9px;color:var(--faint)}
.bc-foot{display:flex;align-items:center;gap:6px;margin-top:14px;padding-top:10px;border-top:1px dashed var(--line);font-size:9px;color:var(--faint);letter-spacing:.06em}
.bc-foot .qr{width:26px;height:26px;margin-left:auto;border-radius:4px;background:
  repeating-conic-gradient(var(--ink) 0% 25%,transparent 0% 50%) 0 0/6px 6px;opacity:.5}
.dc-actions{display:flex;gap:8px;width:348px;max-width:100%;margin-top:12px}
.dc-actions .btn{flex:1}

/* 引导 */
.onb{width:min(920px,100%);max-height:90vh;display:grid;grid-template-columns:minmax(0,1fr) 340px;background:var(--surface);border-radius:20px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--sh-2);position:relative;animation:pop .3s cubic-bezier(.22,1,.36,1)}
.onb-left{padding:30px 34px 26px;display:flex;flex-direction:column;min-height:0;overflow:auto}
.onb-brand{display:flex;align-items:center;gap:9px;margin-bottom:22px}
.onb-brand .bm{width:28px;height:28px;border-radius:8px;background:var(--brand);color:var(--on-brand);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:15px}
.onb-brand span{font-size:11px;color:var(--muted);letter-spacing:.04em}
.onb h1{font-family:var(--serif);font-size:26px;font-weight:600;line-height:1.4}
.onb .lead{font-size:12px;color:var(--muted);line-height:1.8;margin-top:6px}
.onb-steps{display:flex;align-items:center;gap:7px;margin:18px 0 20px}
.onb-step{display:flex;align-items:center;gap:6px;font-size:10.5px;color:var(--faint)}
.onb-step i{width:17px;height:17px;border-radius:50%;border:1.5px solid var(--line-2);display:flex;align-items:center;justify-content:center;font-style:normal;font-size:9px}
.onb-step.on{color:var(--ink);font-weight:650}
.onb-step.on i{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.onb-step.done i{background:var(--brand-soft);border-color:var(--brand);color:var(--brand)}
.onb-sep{flex:1;height:1px;background:var(--line)}
.onb-body{flex:1}
.onb-foot{display:flex;align-items:center;gap:9px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.onb-foot .btn-quiet{margin-right:auto}
.onb-right{background:var(--brand-soft);padding:26px 24px;display:flex;flex-direction:column;justify-content:center;gap:14px;position:relative;overflow:hidden}
.onb-right::after{content:"";position:absolute;right:-60px;bottom:-80px;width:220px;height:220px;border-radius:50%;border:1px solid rgba(31,74,61,.13)}
.onb-rk{font-size:9.5px;letter-spacing:.14em;color:var(--brand);opacity:.7;font-weight:700;text-transform:uppercase}
.mini-card{background:var(--surface);border-radius:14px;border:1px solid var(--line);padding:18px;box-shadow:var(--sh-1);position:relative;z-index:1}
.mini-top{display:flex;align-items:center;gap:10px}
.mini-name{font-family:var(--serif);font-size:18px;font-weight:600;line-height:1.3}
.mini-title{font-size:10px;color:var(--muted);margin-top:2px;line-height:1.5}
.mini-line{height:1px;background:var(--line);margin:12px 0 10px}
.mini-k{font-size:9px;letter-spacing:.1em;color:var(--faint);font-weight:700;margin-bottom:5px}
.mini-v{font-size:11px;color:var(--ink-2);line-height:1.7}
.mini-v.muted{color:var(--faint)}
.onb-hint{font-size:10px;color:var(--muted);line-height:1.7;text-align:center;position:relative;z-index:1}

/* 命令面板 */
.palette-wrap{position:fixed;inset:0;z-index:1100;background:rgba(22,19,15,.36);backdrop-filter:blur(4px);display:flex;justify-content:center;align-items:flex-start;padding-top:12vh;animation:fadeIn .16s}
.palette{width:min(580px,92vw);background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-2);overflow:hidden;animation:pop .22s cubic-bezier(.22,1,.36,1)}
.pal-input{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.pal-input svg{width:16px;height:16px;color:var(--faint)}
.pal-input input{flex:1;border:0;background:transparent;outline:none;font-size:14px;color:var(--ink)}
.pal-input input::placeholder{color:var(--faint)}
.pal-res{max-height:52vh;overflow-y:auto;padding:8px}
.pal-group{font-size:9.5px;letter-spacing:.12em;color:var(--faint);font-weight:700;padding:8px 10px 4px;text-transform:uppercase}
.pal-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;cursor:pointer;font-size:12.5px;color:var(--ink-2);width:100%;text-align:left;background:transparent;border:0;font-family:inherit}
.pal-item:hover,.pal-item.act{background:var(--brand-soft);color:var(--brand)}
.pal-item .ti{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pal-item .ty{font-size:9.5px;color:var(--faint)}
.pal-empty{padding:26px;text-align:center;font-size:12px;color:var(--muted)}
.pal-foot{padding:8px 14px;border-top:1px solid var(--line);font-size:9.5px;color:var(--faint);display:flex;gap:14px;background:var(--surface-2)}

/* 知识库助手 */
.ask-fab{position:fixed;right:24px;bottom:24px;z-index:320;display:flex;align-items:center;justify-content:center;gap:0;height:46px;width:46px;padding:0;border-radius:23px;border:1px solid rgba(255,255,255,.14);background:var(--brand);color:var(--on-brand);font-size:12.5px;font-weight:650;box-shadow:0 14px 30px -14px rgba(31,74,61,.85);transition:width .18s,padding .18s,gap .18s,background .18s;overflow:hidden}
.ask-fab:hover{background:var(--brand-2);width:auto;padding:0 16px 0 14px;gap:8px}
.ask-fab span{display:none;white-space:nowrap}
.ask-fab:hover span{display:inline}
#overlays:not(:empty) ~ #ask-root,#palette-root:not(:empty) ~ #ask-root{opacity:0;pointer-events:none}
#ask-root{transition:opacity .15s}
.ask-fab svg{width:18px;height:18px;flex:none}
.ask-panel{position:fixed;right:24px;bottom:80px;width:402px;height:min(566px,calc(100vh - 118px));background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-2);z-index:320;display:flex;flex-direction:column;overflow:hidden;animation:pop .22s cubic-bezier(.22,1,.36,1)}
.ask-hd{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);flex:none}
.ask-hd .t{font-size:13px;font-weight:650;line-height:1.3}
.ask-hd .s{font-size:10px;color:var(--muted);margin-top:1px}
.ask-hd .x{margin-left:auto;width:26px;height:26px;border-radius:7px;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.ask-hd .x:hover{background:var(--surface-2);color:var(--ink)}
.ask-hd .x svg{width:14px;height:14px}
.ask-body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:9px;background:var(--surface-2)}
.ask-msg{max-width:90%;padding:10px 12px;border-radius:11px;font-size:12.4px;line-height:1.8}
.ask-msg.ai{background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:3px;align-self:flex-start;color:var(--ink-2)}
.ask-msg.me{background:var(--brand);color:var(--on-brand);border-bottom-right-radius:3px;align-self:flex-end}
.ask-msg.ai b{color:var(--ink);font-weight:650}
.ask-cites{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
.ask-cite{font-size:10px;color:var(--brand);background:var(--brand-soft);border-radius:5px;padding:3px 6px;cursor:pointer;border:0;display:inline-flex;align-items:center;gap:3px}
.ask-cite .ic{width:10px;height:10px}
.ask-cite:hover{text-decoration:underline;text-underline-offset:2px}
.ask-sug{display:flex;flex-direction:column;gap:6px;margin-top:2px}
.ask-sug button{text-align:left;font-size:11.5px;color:var(--ink-2);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:7px 10px;transition:.14s}
.ask-sug button:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}
.ask-typing{display:flex;gap:4px;align-items:center;height:12px}
.ask-typing i{width:5px;height:5px;border-radius:50%;background:var(--muted);animation:bounce 1s infinite}
.ask-typing i:nth-child(2){animation-delay:.14s}.ask-typing i:nth-child(3){animation-delay:.28s}
@keyframes bounce{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
.ask-in{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:var(--surface);flex:none}
.ask-in .inp{height:36px;font-size:12.5px}
.ask-in button{width:36px;height:36px;border-radius:9px;padding:0;display:flex;align-items:center;justify-content:center;flex:none}
.ask-in button svg{width:15px;height:15px}
@media(max-width:520px){
  .demo-strip{align-items:flex-start;gap:8px;flex-wrap:wrap}
  .ds-main{flex:1 1 100%;align-items:flex-start}
  .ds-badge{margin-top:1px}
  .ds-actions{margin-left:auto}
  .ask-fab{right:14px;bottom:14px;height:44px;width:44px;padding:0}
  .ask-fab span{display:none}
  .ask-panel{right:10px;left:10px;width:auto;bottom:64px;height:min(74vh,560px)}
}

/* toast */
.toasts{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:1300;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.toast{display:flex;align-items:center;gap:9px;background:#22201B;color:#F3EEE4;border-radius:10px;padding:9px 15px;font-size:12px;box-shadow:0 12px 30px -12px rgba(0,0,0,.5);animation:toastIn .24s cubic-bezier(.22,1,.36,1);max-width:86vw}
[data-theme="dark"] .toast{background:#2B2720;border:1px solid #3A342B}
.toast svg{width:14px;height:14px;color:#8FCFAA;flex:none}
.toast.bad svg{color:#E08A78}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* 工具类 */
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}
.mb-0{margin-bottom:0}.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}
.fs-11{font-size:11px}.fs-12{font-size:12px}.muted{color:var(--muted)}.faint{color:var(--faint)}
.mono{font-family:var(--mono)}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.nowrap{white-space:nowrap}
.w-full{width:100%}

/* ============ 响应式 ============ */
@media(max-width:1180px){
  .hero{grid-template-columns:minmax(0,1fr) 240px}
  .display{font-size:37px}
  .home-grid{grid-template-columns:1fr}
  .home-side{flex-direction:row}
  .home-side>*{flex:1}
  .need-grid{grid-template-columns:1fr}
  .match-grid{grid-template-columns:1fr}
  .wiki-grid{grid-template-columns:230px minmax(0,1fr)}
  .graph-grid{grid-template-columns:1fr}
  .graph-side{order:-1}
  .profile-grid{grid-template-columns:280px minmax(0,1fr)}
  .report-grid{grid-template-columns:280px minmax(0,1fr)}
  .ingest-grid{grid-template-columns:1fr}
}
@media(max-width:940px){
  .app{grid-template-columns:1fr}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:262px;transform:translateX(-100%);transition:transform .26s cubic-bezier(.22,1,.36,1);box-shadow:var(--sh-2)}
  .sidebar.open{transform:none}
  .scrim{display:block;position:fixed;inset:0;z-index:110;background:rgba(22,19,15,.4);opacity:0;pointer-events:none;transition:opacity .2s}
  .scrim.on{opacity:1;pointer-events:auto}
  .menu-btn{display:flex}
  .search-trigger{width:auto;padding:0 9px}
  .search-trigger .ph,.search-trigger .kbd{display:none}
  .sync{display:none}
  .page-inner{padding:22px 18px 92px}
  .topbar{padding:0 14px;gap:9px}
  .crumb .sep,.crumb .pre{display:none}
  .hero{grid-template-columns:1fr;padding-top:4px}
  .orbit{display:none}
  .display{font-size:33px}
  .stat-strip{grid-template-columns:1fr 1fr}
  .stat{border-bottom:1px solid var(--line)}
  .stat:nth-child(2){border-right:0}
  .stat:nth-child(n+3){border-bottom:0}
  .quote-band{grid-template-columns:1fr;gap:20px;padding:24px}
  .home-side{flex-direction:column}
  .wiki-grid{grid-template-columns:1fr}
  .wiki-index{position:static;max-height:none}
  .wi-scroll{max-height:230px}
  .graph-canvas{height:430px}
  .profile-grid,.report-grid{grid-template-columns:1fr}
  .reader-body{padding:22px 20px 26px}
  .reader-title{font-size:24px}
  .article{padding:24px 20px 30px}
  .onb{grid-template-columns:1fr}
  .onb-right{display:none}
  .onb-left{padding:24px 22px 20px}
  .editor-body{grid-template-columns:1fr}
  .editor-col+.editor-col{display:none}
  .flow{grid-template-columns:1fr;gap:8px;padding:16px}
  .flow-arrow{transform:rotate(90deg);height:20px}
  .ingest-row{grid-template-columns:1fr}
  .quick-grid{grid-template-columns:1fr 1fr}
  .tbl{min-width:660px}
  .sheet{width:100%;max-width:100%}
  .g2{grid-template-columns:1fr}
}
@media(max-width:520px){
  .display{font-size:29px}
  .stat-v{font-size:23px}
  .stat{padding:14px}
  .hero-actions .btn{flex:1}
  .seg button span{display:none}
  .seg button{padding:0 8px}
  .crumb b{font-size:11.5px}
  .card-bd{padding:16px}
  .article h1{font-size:22px}
  .tabs button{padding:0 9px;font-size:11px}
  .promo .btn{margin-left:0;width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ============ 需求对接 / 编辑 / 删除 ============ */
.btn-danger{background:var(--red);border-color:transparent;color:#FFF;box-shadow:0 8px 18px -12px rgba(166,64,47,.8)}
.btn-danger:hover{background:var(--red);border-color:transparent;filter:brightness(1.06)}
[data-theme="dark"] .btn-danger{color:#1B1915}
.sheet-sm{width:440px}
.link-btn{background:none;border:0;padding:0 2px;color:var(--brand);font-size:inherit;font-weight:650;cursor:pointer}
.link-btn:hover{text-decoration:underline;text-underline-offset:3px}
.field-hint{font-size:10.5px;color:var(--faint);line-height:1.7;margin-top:6px}

.need-claims{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.need-claims-hd{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:var(--ink-2);margin-bottom:10px}
.need-claims-hd .ic{width:13px;height:13px;color:var(--accent)}
.need-claims-hd span{margin-left:auto;color:var(--faint);font-weight:400}
.claim-item{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-top:8px;background:var(--surface-2)}
.claim-item.accepted{border-color:var(--brand);background:var(--brand-soft)}
.claim-hd{display:flex;align-items:center;gap:8px}
.claim-who{min-width:0;flex:1}
.claim-who b{display:block;font-size:12.5px;font-weight:650}
.claim-who span{display:block;font-size:10.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.claim-msg{margin:8px 0 0;font-size:11.5px;line-height:1.7;color:var(--ink-2);white-space:pre-wrap;overflow-wrap:anywhere}
.claim-ft{display:flex;align-items:center;gap:7px;margin-top:8px}
.claim-ft>span{margin-right:auto}
.claim-ft .btn{flex:none;margin-left:0}
.claim-empty{font-size:11.5px;color:var(--muted);line-height:1.7;margin:4px 0 0}
.need-claim-box{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.need-claim-box label{display:block;margin-bottom:6px}
.claim-state{font-size:12px;line-height:1.75;color:var(--ink-2);background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:9px 11px;margin-bottom:10px}
.claim-state.ok{color:var(--ok);background:var(--brand-soft);border-color:transparent}
.claim-state.muted{color:var(--muted)}

/* ============ 撮合：已介绍 ============ */
.mcard.is-introduced{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-ring)}
.intro-done,.intro-done[disabled]{color:var(--brand);border-color:var(--brand);background:var(--brand-soft);opacity:1}
.intro-list{padding:4px 20px 16px}
.intro-row{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}
.intro-row:last-child{border-bottom:0}
.intro-dot{width:22px;height:22px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:none;margin-top:1px}
.intro-dot .ic{width:12px;height:12px}
.intro-main{min-width:0}
.intro-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px}
.intro-line b{font-weight:650}
.intro-arrow{color:var(--faint)}
.intro-need{background:none;border:0;padding:0;color:var(--brand);font-size:12.5px;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.intro-need:hover{text-decoration:underline;text-underline-offset:3px}
.intro-meta{font-size:10.5px;color:var(--faint);margin-top:3px}

/* ============ 问知识库 ============ */
.ask-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:start}
.ask-samples{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 16px}
.ask-samples .chip{font-size:11px;height:28px}
.ask-input{resize:vertical;line-height:1.8}
.ask-answer-card{min-height:420px}
.ask-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:80px 20px;color:var(--muted);font-size:12px}
.ask-loading .ic{width:22px;height:22px;color:var(--faint);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:.4}50%{opacity:1}}
.ask-answer{font-size:13.5px;line-height:1.95;color:var(--ink-2)}
.ask-answer p{margin:10px 0}
.ask-src-head{display:flex;align-items:center;gap:6px;margin:24px 0 10px;padding-top:16px;border-top:1px solid var(--line);font-size:11px;font-weight:650;color:var(--ink-2)}
.ask-src-head .ic{width:13px;height:13px;color:var(--accent)}
.ask-src-head span{margin-left:auto;font-weight:400;color:var(--faint)}
.ask-sources{display:flex;flex-direction:column;gap:8px}
.ask-source{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);transition:.14s}
.ask-source:hover{border-color:var(--line-2);background:var(--surface)}
.ask-source-no{width:19px;height:19px;border-radius:5px;background:var(--brand-soft);color:var(--brand);font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;margin-top:1px}
.ask-source-main{min-width:0;flex:1}
.ask-source-main b{display:block;font-size:12px;font-weight:650;line-height:1.5}
.ask-src-heading{display:block;font-style:normal;font-size:10px;color:var(--accent);margin-top:2px;letter-spacing:.02em}
.ask-source-main small{font-size:10.5px;color:var(--muted);line-height:1.6;margin-top:2px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ask-source-score{font-size:10px;color:var(--faint);font-family:var(--mono);flex:none;margin-top:2px}
/* 回答里的 [来源 N] 可点，直达原文片段 */
.ask-answer .cite{color:var(--brand);font-weight:650;text-decoration:none;border-bottom:1px solid var(--brand-ring);padding-bottom:1px}
.ask-answer .cite:hover{background:var(--brand-soft);border-bottom-color:transparent}
.ask-no-src{margin-top:14px;font-size:11px;color:var(--faint)}

/* ============ 词条编辑 ============ */
.entry-editor{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}
.entry-side{position:sticky;top:0;overflow:hidden;padding:0}
.entry-search{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}
.entry-search .ic{width:14px;height:14px;color:var(--faint);flex:none}
.entry-search .inp{height:32px;border:0;background:transparent;padding:0;font-size:12px}
.entry-list{max-height:calc(100vh - 260px);overflow-y:auto;padding:6px}
.entry-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:transparent;padding:8px 9px;border-radius:8px;font-size:12px;color:var(--ink-2);font-family:inherit}
.entry-item:hover{background:var(--surface-2)}
.entry-item.on{background:var(--brand-soft);color:var(--brand);font-weight:650}
.entry-item-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.entry-item-meta{font-size:9.5px;color:var(--faint);flex:none}
.entry-main{padding:0;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.entry-bar{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.entry-id{min-width:0;flex:1}
.entry-id b{display:block;font-family:var(--serif);font-size:17px;font-weight:600;line-height:1.4}
.entry-id span{display:block;font-size:10px;color:var(--faint);margin-top:2px}
.entry-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.entry-state{font-size:10px;padding:2px 7px;border-radius:5px;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.entry-state.dirty{color:var(--accent);background:var(--accent-soft);border-color:transparent}
.entry-state.saved{color:var(--ok);background:var(--brand-soft);border-color:transparent}
.entry-ok{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--ok);background:var(--brand-soft);padding:8px 16px;border-bottom:1px solid var(--line)}
.entry-ok .ic{width:13px;height:13px}
.entry-ok a{margin-left:auto;font-weight:650;color:var(--brand)}
.entry-split{display:grid;grid-template-columns:1fr 1fr;min-height:560px}
.entry-col{display:flex;flex-direction:column;min-width:0}
.entry-col+.entry-col{border-left:1px solid var(--line);background:var(--surface-2)}
.entry-col-hd{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.08em;color:var(--faint);font-weight:700;padding:9px 14px;border-bottom:1px solid var(--line)}
.entry-col-hd span{margin-left:auto;font-weight:400;letter-spacing:0;font-size:9.5px}
.entry-editor .editor-pane{width:100%;min-height:520px}
.entry-editor .preview-pane.md{margin-top:0;min-height:520px;max-height:calc(100vh - 250px)}

/* 版本历史 */
.entry-history{border-bottom:1px solid var(--line);background:var(--surface-2)}
.entry-history-hd{display:flex;align-items:center;gap:8px;padding:8px 16px;font-size:11px;border-bottom:1px solid var(--line)}
.entry-history-hd b{font-size:11.5px}
.entry-history-hd .icon-btn{margin-left:auto}
.ver-row{display:flex;align-items:center;gap:10px;padding:7px 16px;font-size:11px;border-bottom:1px solid var(--line)}
.ver-row:last-child{border-bottom:0}
.ver-row:hover{background:var(--surface)}
.ver-no{font-family:var(--mono);font-size:10px;color:var(--faint);width:38px;flex:none}
.ver-time{font-family:var(--mono);font-size:10.5px;color:var(--ink-2);flex:none}
.ver-meta{color:var(--muted);font-size:10.5px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ver-acts{display:flex;gap:4px;flex:none}
.ver-acts .btn{padding:0 7px;height:24px;font-size:10.5px}

/* 词条 diff */
.entry-diff{border-top:1px solid var(--line);background:var(--surface)}
.diff-stat{display:flex;gap:8px;font-family:var(--mono);font-size:10.5px}
.diff-stat .add{color:var(--ok);font-style:normal}
.diff-stat .del{color:var(--red);font-style:normal}
.diff-body{max-height:420px;overflow:auto;font-family:var(--mono);font-size:11.5px;line-height:1.55}
.diff-line{display:flex;gap:10px;padding:0 16px;white-space:pre-wrap;word-break:break-word}
.diff-line.add{background:rgba(46,107,86,.09);color:var(--brand)}
.diff-line.del{background:rgba(166,64,47,.09);color:var(--red)}
.diff-sign{width:10px;flex:none;color:var(--faint);user-select:none}
.diff-line.add .diff-sign{color:var(--brand)}
.diff-line.del .diff-sign{color:var(--red)}
.diff-note{padding:6px 16px;font-size:10.5px;color:var(--muted);border-top:1px solid var(--line)}

/* ============ 战报归档 ============ */
.report-archive{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--ok);background:var(--brand-soft);border-radius:8px;padding:8px 11px;margin-bottom:12px}
.report-archive .ic{width:13px;height:13px}
.report-archive a{font-weight:650;color:var(--brand)}
.report-archive span{margin-left:auto;color:var(--muted);font-size:10.5px}

@media(max-width:1080px){
  .ask-grid{grid-template-columns:1fr}
  .entry-editor{grid-template-columns:1fr}
  .entry-side{position:static}
  .entry-list{max-height:260px}
  .entry-split{grid-template-columns:1fr}
  .entry-col+.entry-col{border-left:0;border-top:1px solid var(--line)}
  .entry-editor .preview-pane.md{max-height:none}
}
@media(max-width:520px){
  .sheet-ft{flex-wrap:wrap}
  .sheet-ft .btn{white-space:nowrap}
  .claim-ft{flex-wrap:wrap}
  .entry-split{min-height:0}
  .report-archive{flex-wrap:wrap}
  .report-archive span{margin-left:0}
}

/* ============ 数字名片（独立页 /card 与社区弹层共用） ============ */
.dcard{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--sh-2);overflow:hidden;position:relative;animation:pop .28s cubic-bezier(.22,1,.36,1)}
.dc-band{height:134px;background:var(--band);position:relative;padding:18px 24px;color:var(--band-ink);overflow:hidden}
.dc-wm{position:absolute;right:-16px;bottom:-46px;width:190px;height:190px;color:rgba(255,255,255,.06);pointer-events:none}
.dc-brand{font-size:9.5px;letter-spacing:.18em;color:rgba(242,237,227,.6);text-transform:uppercase}
.dc-era{font-size:11.5px;color:rgba(242,237,227,.86);margin-top:3px;position:relative;z-index:1}
.dc-body{padding:0 26px 22px;position:relative}
.dc-av{width:84px;height:84px;border-radius:24px;margin-top:-42px;border:4px solid var(--surface);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:31px;color:#FFF;box-shadow:0 8px 20px -12px rgba(0,0,0,.45);position:relative}
.dc-name{font-family:var(--serif);font-size:30px;font-weight:600;line-height:1.3;margin-top:9px}
.dc-alias{font-size:10.5px;letter-spacing:.06em;color:var(--faint);margin-top:2px}
.dc-role{font-size:12px;color:var(--muted);line-height:1.7;margin-top:7px}
.dc-contact{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:3px 8px;margin-top:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-bio{font-size:12.5px;line-height:1.85;color:var(--ink-2);margin-top:14px}
.dc-sec{margin-top:16px}
.dc-k{font-size:9.5px;letter-spacing:.14em;color:var(--faint);font-weight:700;margin-bottom:7px;text-transform:uppercase}
.dc-tags{display:flex;flex-wrap:wrap;gap:5px}
.dc-tag{font-size:10px;color:var(--brand);background:var(--brand-soft);border-radius:5px;padding:3px 7px;line-height:1.4}
.dc-need{font-size:10px;color:var(--accent);background:var(--accent-soft);border-radius:5px;padding:3px 7px;line-height:1.4}
.dc-list{display:flex;flex-direction:column;gap:5px}
.dc-li{position:relative;padding-left:12px;font-size:11.5px;line-height:1.65;color:var(--ink-2)}
.dc-li::before{content:"";position:absolute;left:0;top:.68em;width:4px;height:4px;border-radius:50%;background:var(--accent)}
.dc-stats{display:flex;gap:26px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.dc-stats b{display:block;font-family:var(--serif);font-size:19px;font-weight:600;line-height:1.2}
.dc-stats span{font-size:9px;color:var(--faint)}
.dc-foot{display:flex;align-items:center;gap:12px;margin-top:16px;padding-top:14px;border-top:1px dashed var(--line)}
.dc-qr{width:76px;height:76px;padding:4px;background:#FFF;border:1px solid var(--line);border-radius:8px;flex:none}
.dc-qr img{width:100%;height:100%;display:block;image-rendering:pixelated}
.dc-foot-txt b{display:block;font-size:11px;font-weight:650}
.dc-foot-txt span{display:block;font-size:9.5px;color:var(--faint);line-height:1.7;margin-top:2px;max-width:190px}

/* 社区页里的名片弹层 */
.card-sheet{width:470px}
.card-sheet-bd{padding:18px;display:flex;justify-content:center;background:var(--surface-2)}
.card-sheet-bd .dcard{width:100%;max-width:420px}
.card-sheet-ft .btn{flex:1 1 0}
.card-sheet-ft .btn .ic{width:13px;height:13px}
@media(max-width:520px){
  .card-sheet{width:100%}
  .card-sheet-bd{padding:12px}
  .card-sheet-bd .dcard{max-width:100%}
  .card-sheet-bd .dc-name{font-size:26px}
}

/* 弹层版名片：头尾固定，中间卡片区自己滚动（否则按钮会被挤出屏幕） */
.card-sheet{width:470px;display:flex;flex-direction:column;max-height:88vh;overflow:hidden}
.card-sheet .sheet-hd{flex:none}
.card-sheet .card-sheet-bd{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.card-sheet .sheet-ft{flex:none}

/* 词条编辑器左侧分组 */
.entry-group{margin-bottom:6px}
.entry-group-hd{display:flex;align-items:center;gap:6px;padding:8px 9px 4px;font-size:9.5px;letter-spacing:.1em;color:var(--faint);font-weight:700}
.entry-group-hd i{margin-left:auto;font-style:normal;font-weight:400;letter-spacing:0}

/* 知识入库：上传转写文件的落区 */
.upload-box{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 18px;margin-bottom:14px;
  border:1.5px dashed var(--line-2);border-radius:12px;background:var(--surface-2);cursor:pointer;
  text-align:center;transition:border-color .15s,background .15s}
.upload-box:hover,.upload-box.on{border-color:var(--brand);background:var(--brand-soft)}
.upload-box .ic{width:22px;height:22px;color:var(--brand);margin-bottom:2px}
.upload-box.on .ic{transform:scale(1.05)}
.upload-title{font-size:12.5px;color:var(--ink-2);line-height:1.7}
.upload-title b{color:var(--brand);font-weight:650}
.upload-sub{font-size:10.5px;color:var(--faint)}
.upload-file{display:flex;align-items:center;gap:8px;padding:8px 11px;margin-bottom:12px;
  border:1px solid var(--line);border-radius:9px;background:var(--surface-2);font-size:11.5px}
.upload-file .ic{width:14px;height:14px;color:var(--brand);flex:none}
.upload-file .name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono)}
.upload-file i{margin-left:auto;font-style:normal;color:var(--faint);font-size:10.5px;flex:none}


/* ============ 对接被采纳提示条 ============ */
.alert-banner{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.alert-item{display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:12px;
  background:var(--brand-soft);border:1px solid var(--brand-ring)}
.alert-item .alert-icon{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;background:var(--brand);color:var(--on-brand);flex:0 0 auto}
.alert-item .alert-icon .ic{width:14px;height:14px}
.alert-item .alert-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.alert-item .alert-main b{font-size:13px;color:var(--ink)}
.alert-item .alert-main span{font-size:12px;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:720px){.alert-item{flex-wrap:wrap}.alert-item .alert-main span{white-space:normal}}


/* ============ 战报附带素材勾选 ============ */
.chk{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-2);
  padding:7px 0;cursor:pointer;user-select:none}
.chk input{width:15px;height:15px;accent-color:var(--brand);cursor:pointer;margin:0}

/* ================= 线下签到 ================= */
.ck-board { display:grid; grid-template-columns: 320px minmax(0,1fr); gap:16px; align-items:start; }
.ck-qr { padding:22px; text-align:center; }
.ck-qr-hd { font-weight:600; color:var(--green); letter-spacing:.08em; margin-bottom:14px; }
.ck-qr-img { width:230px; height:230px; max-width:100%; display:block; margin:0 auto 12px; border-radius:12px; background:#fff; }
.ck-qr-event { font-weight:600; font-size:14px; line-height:1.5; }
.ck-qr-url { font-size:11px; color:var(--muted); word-break:break-all; margin:8px 0 14px; }
.ck-qr-actions { display:flex; gap:8px; justify-content:center; }
.ck-side { padding:20px 22px; }
.ck-stats { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.ck-stats div { text-align:center; }
.ck-stats b { display:block; font-size:22px; line-height:1.2; }
.ck-stats span { font-size:12px; color:var(--muted); }
.ck-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.ck-members { display:flex; flex-direction:column; gap:6px; max-height:420px; overflow:auto; }
.ck-row { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; }
.ck-who { flex:1; min-width:0; }
.ck-who b { display:block; font-size:14px; }
.ck-who span { display:block; font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ck-form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.ck-form .inp { flex:1; min-width:170px; }
.ck-session { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); }
.ck-session:first-of-type { border-top:0; }
.ck-session-main { flex:1; min-width:0; }
.ck-session-main b { display:block; }
.ck-session-main span { font-size:12px; color:var(--muted); }
.ck-session-stats { font-size:12px; color:var(--muted); white-space:nowrap; }

@media (max-width: 900px) {
  .ck-board { grid-template-columns: 1fr; }
  .ck-stats { grid-template-columns:repeat(3,1fr); }
}
@media print {
  body * { visibility:hidden; }
  #ck-print, #ck-print * { visibility:visible; }
  #ck-print { position:fixed; inset:0; margin:0; border:0; box-shadow:none; }
  #ck-print .ck-qr-actions { display:none; }
  #ck-print .ck-qr-img { width:300px; height:300px; }
}

