/* ===========================================================
   招标经营看板 · 响应式样式
   移动优先： base(<640) → tablet(≥640) → desktop(≥1024)
   =========================================================== */

:root{
  --bg:#f5f6f8;
  --surface:#ffffff;
  --surface-2:#f9fafb;
  --border:#e5e7eb;
  --border-strong:#d1d5db;
  --text:#111827;
  --text-2:#4b5563;
  --muted:#9ca3af;
  --brand:#2563eb;
  --brand-soft:#eff6ff;
  --green:#059669;
  --green-soft:#ecfdf5;
  --amber:#d97706;
  --amber-soft:#fffbeb;
  --red:#dc2626;
  --red-soft:#fef2f2;
  --radius:12px;
  --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.06);
  --shadow:0 4px 14px rgba(16,24,40,.10);
  --shadow-lg:0 18px 46px rgba(16,24,40,.18);
  --sidebar-w:216px;
  --topbar-h:56px;
  --safe-b:env(safe-area-inset-bottom,0px);
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* hidden 属性必须优先于组件自身的 display（.sheet/.date-wrap/.chips-bar 都是 display:flex，
   否则 hidden 会被覆盖，弹层与筛选条会一直挂在界面上） */
[hidden]{display:none !important}
html,body{margin:0;padding:0}
body{
  background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:14px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,p{margin:0}
button{font-family:inherit;font-size:inherit;cursor:pointer;border:0;background:none;color:inherit}
input,select{font-family:inherit;font-size:inherit;color:inherit}
code{background:var(--surface-2);border:1px solid var(--border);border-radius:4px;padding:1px 5px;font-size:12px}
.muted{color:var(--muted)}
.hidden{display:none !important}

/* ---------------- 侧边栏（桌面） ---------------- */
.sidebar{display:none}
.brand{display:flex;align-items:center;gap:10px;padding:18px 16px;border-bottom:1px solid var(--border)}
.brand-mark{width:34px;height:34px;border-radius:9px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:700;font-size:16px;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.brand-text strong{font-size:14px}
.brand-text span{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav{padding:10px 8px;display:flex;flex-direction:column;gap:2px}
.nav-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:var(--radius-sm);color:var(--text-2);font-size:13.5px;text-align:left;transition:background .15s,color .15s}
.nav-item i{font-style:normal;font-size:15px;width:18px;text-align:center}
.nav-item:hover{background:var(--surface-2);color:var(--text)}
.nav-item.is-active{background:var(--brand-soft);color:var(--brand);font-weight:600}
.side-foot{margin-top:auto;padding:12px 16px;border-top:1px solid var(--border);display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--muted)}

/* ---------------- 顶栏 ---------------- */
.main{min-height:100vh;display:flex;flex-direction:column}
.topbar{
  position:sticky;top:0;z-index:30;height:var(--topbar-h);
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:10px;padding:0 12px;
}
.topbar-title{flex:1;min-width:0}
.topbar-title h1{font-size:16px;font-weight:650;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-sub{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-actions{display:flex;align-items:center;gap:6px}
.icon-btn{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-size:16px;color:var(--text-2);transition:background .15s}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn:active{transform:scale(.94)}
.icon-btn:focus-visible,.nav-item:focus-visible,.tab:focus-visible,.btn:focus-visible,.chip:focus-visible{
  outline:2px solid var(--brand);outline-offset:2px}

.sync-pill{display:none;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);
  background:var(--surface-2);border:1px solid var(--border);border-radius:99px;padding:4px 10px}
.dot,.sync-dot{width:7px;height:7px;border-radius:50%;background:var(--green);flex:none;transition:background .2s}
.dot.loading{background:var(--amber);animation:pulse 1s infinite}
.dot.err{background:var(--red)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}

/* ---------------- 周期 chips ---------------- */
.chips-bar{position:sticky;top:var(--topbar-h);z-index:25;background:var(--bg);
  padding:10px 12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--border)}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;flex:1}
.chips::-webkit-scrollbar{display:none}
.chip{white-space:nowrap;padding:6px 13px;border-radius:99px;border:1px solid var(--border);
  background:var(--surface);color:var(--text-2);font-size:12.5px;transition:all .15s}
.chip:hover{border-color:var(--border-strong)}
.chip.is-active{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}
.date-wrap{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--text-2);flex:none}
.date-wrap input{border:1px solid var(--border);border-radius:var(--radius-sm);padding:5px 8px;background:var(--surface)}

/* ---------------- 内容区 ---------------- */
.content{flex:1;padding:14px 12px calc(78px + var(--safe-b));max-width:1400px;width:100%;margin:0 auto}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:22px 2px 10px}
.section-head h2{font-size:14.5px;font-weight:650}
.hint{font-size:11.5px;color:var(--muted)}

.brief{background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--brand);
  border-radius:var(--radius-sm);padding:11px 13px;font-size:13px;color:var(--text-2);margin-bottom:14px}
.brief b{color:var(--text)}

/* ---------------- KPI ---------------- */
.kpi-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:13px 14px;box-shadow:var(--shadow-sm)}
.kpi-label{font-size:11.5px;color:var(--muted);margin-bottom:5px;display:flex;align-items:center;gap:5px}
.kpi-val{font-size:21px;font-weight:680;letter-spacing:-.3px;line-height:1.15}
.kpi-val small{font-size:11.5px;font-weight:500;color:var(--muted);margin-left:3px}
.kpi-sub{font-size:11.5px;color:var(--text-2);margin-top:5px}
.bar{height:5px;border-radius:99px;background:var(--border);overflow:hidden;margin-top:8px}
.bar>i{display:block;height:100%;border-radius:99px;background:var(--brand);transition:width .5s ease}
.kpi.warn .kpi-val{color:var(--red)}
.kpi.good .kpi-val{color:var(--green)}

/* ---------------- 看板 ---------------- */
.board{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:6px;margin:0 -12px;padding-left:12px;padding-right:12px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.board::-webkit-scrollbar{display:none}
.lane{flex:0 0 86%;scroll-snap-align:start;background:var(--surface-2);
  border:1px solid var(--border);border-radius:var(--radius);padding:10px;min-height:80px}
.lane-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:0 2px}
.lane-title{font-size:12.5px;font-weight:650;display:flex;align-items:center;gap:6px}
.lane-count{font-size:11px;color:var(--muted);background:var(--surface);border:1px solid var(--border);
  border-radius:99px;padding:1px 8px}
.lane.blue .lane-title i,.lane.red .lane-title i,.lane.amber .lane-title i,.lane.green .lane-title i{font-style:normal}
.lane.blue{border-top:2px solid var(--brand)}
.lane.red{border-top:2px solid var(--red)}
.lane.amber{border-top:2px solid var(--amber)}
.lane.green{border-top:2px solid var(--green)}

.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:10px 11px;margin-bottom:8px;box-shadow:var(--shadow-sm);cursor:pointer;
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s}
.card:hover{border-color:var(--brand);box-shadow:var(--shadow)}
.card:active{transform:scale(.985)}
.card.danger{border-left:3px solid var(--red);background:var(--red-soft)}
.card.ok{border-left:3px solid var(--green)}
.c-tag{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:6px}
.tag{font-size:10.5px;padding:1.5px 7px;border-radius:99px;background:var(--surface-2);
  border:1px solid var(--border);color:var(--text-2);white-space:nowrap}
.tag.warn{background:var(--amber-soft);border-color:#fde68a;color:#92400e}
.tag.err{background:var(--red-soft);border-color:#fecaca;color:#991b1b}
.tag.ok{background:var(--green-soft);border-color:#a7f3d0;color:#065f46}
.tag.brand{background:var(--brand-soft);border-color:#bfdbfe;color:#1e40af}
.c-title{font-size:13px;font-weight:600;line-height:1.4;margin-bottom:3px}
.c-meta{font-size:11.5px;color:var(--muted)}
.c-drill{font-size:11px;color:var(--brand);margin-top:6px}
.empty{padding:16px 10px;text-align:center;color:var(--muted);font-size:12px}

/* ---------------- 面板 / 表格 ---------------- */
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:12px;box-shadow:var(--shadow-sm);overflow:hidden}
.table-wrap{display:none;padding:0}
table{width:100%;border-collapse:collapse;font-size:12.5px}
thead th{position:sticky;top:0;background:var(--surface-2);text-align:left;font-weight:650;
  color:var(--text-2);padding:9px 11px;border-bottom:1px solid var(--border);white-space:nowrap;z-index:1}
tbody td{padding:9px 11px;border-bottom:1px solid var(--border);vertical-align:top}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:var(--surface-2)}
th.num,td.num{text-align:right;font-variant-numeric:tabular-nums}
.ellip{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 移动端线索卡片列表 */
.card-list{display:flex;flex-direction:column;gap:9px}
.lead-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:11px 12px;box-shadow:var(--shadow-sm);cursor:pointer;transition:border-color .14s,box-shadow .14s}
.lead-card:hover{border-color:var(--brand);box-shadow:var(--shadow)}
.lead-card:active{transform:scale(.99)}
.lc-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.lc-name{font-size:13px;font-weight:600;line-height:1.4}
.lc-amt{font-size:13.5px;font-weight:680;white-space:nowrap;font-variant-numeric:tabular-nums}
.lc-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;font-size:11.5px;color:var(--muted)}
.lc-meta span{background:var(--surface-2);border:1px solid var(--border);border-radius:99px;padding:1px 8px}

/* ---------------- 工具栏（线索视图） ---------------- */
.toolbar{display:flex;flex-direction:column;gap:9px;margin-bottom:10px}
.search{position:relative;flex:1}
.search-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted)}
.search input{width:100%;padding:9px 11px 9px 32px;border:1px solid var(--border);border-radius:var(--radius-sm);
  background:var(--surface);outline:none}
.search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.filters select{width:100%;padding:8px 9px;border:1px solid var(--border);border-radius:var(--radius-sm);
  background:var(--surface);outline:none}
.filters select:focus{border-color:var(--brand)}
.result-bar{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--text-2);
  margin:0 2px 9px}
.load-more-wrap{display:flex;justify-content:center;margin-top:14px}
.btn{padding:8px 16px;border-radius:var(--radius-sm);border:1px solid var(--border);
  background:var(--surface);font-size:13px;color:var(--text-2);transition:all .15s}
.btn:hover{border-color:var(--brand);color:var(--brand)}
.btn.ghost{background:transparent}

/* ---------------- 底部 tab（移动） ---------------- */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;
  background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-top:1px solid var(--border);
  padding-bottom:var(--safe-b)}
.tab{flex:1;padding:7px 0 6px;display:flex;flex-direction:column;align-items:center;gap:2px;
  color:var(--muted);font-size:10.5px;transition:color .15s}
.tab i{font-style:normal;font-size:17px;line-height:1}
.tab.is-active{color:var(--brand);font-weight:600}

/* ---------------- 弹层 ---------------- */
.overlay{position:fixed;inset:0;background:rgba(17,24,39,.45);z-index:50;animation:fade .18s}
@keyframes fade{from{opacity:0}to{opacity:1}}
.sheet{position:fixed;z-index:60;background:var(--surface);
  left:0;right:0;bottom:0;max-height:86vh;border-radius:16px 16px 0 0;
  box-shadow:var(--shadow-lg);display:flex;flex-direction:column;animation:up .22s cubic-bezier(.2,.8,.3,1)}
@keyframes up{from{transform:translateY(100%)}to{transform:translateY(0)}}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:15px 16px 11px;border-bottom:1px solid var(--border)}
.sheet-head h3{font-size:15px;font-weight:650;line-height:1.35}
.sheet-head p{font-size:11.5px;margin-top:3px}
.sheet-body{overflow-y:auto;padding:12px 16px calc(18px + var(--safe-b));-webkit-overflow-scrolling:touch}
.sheet-body .panel{margin-bottom:12px}

/* 明细键值对 */
.kv{display:grid;grid-template-columns:88px 1fr;gap:7px 10px;font-size:12.5px}
.kv dt{color:var(--muted)}
.kv dd{margin:0;word-break:break-word}

/* ---------------- Toast ---------------- */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(76px + var(--safe-b));z-index:70;
  background:#111827;color:#fff;font-size:12.5px;padding:9px 15px;border-radius:99px;
  box-shadow:var(--shadow);animation:up .2s;max-width:90vw;text-align:center}

/* ---------------- 骨架屏 ---------------- */
.skeleton-wrap{display:grid;gap:10px}
.sk{background:linear-gradient(90deg,#eef0f3 25%,#f6f7f9 37%,#eef0f3 63%);
  background-size:400% 100%;animation:shimmer 1.3s ease infinite;border-radius:var(--radius-sm)}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
.sk-row{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.sk-kpi{height:78px}
.sk-line{height:14px;margin:8px 0}
.sk-board{display:grid;grid-template-columns:1fr;gap:10px;height:150px}
.sk-box{height:110px}

/* ---------------- 错误 / 空态 ---------------- */
.state{padding:34px 16px;text-align:center}
.state .emoji{font-size:26px;display:block;margin-bottom:8px}
.state p{font-size:13px;color:var(--text-2);margin-bottom:12px}

/* ---------------- 日报专用 ---------------- */
.rp-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px}
.rp-title{font-size:15px;font-weight:650}
.rp-meta{font-size:11.5px;color:var(--muted)}
.rp-sec{margin-bottom:16px}
.rp-sec h3{font-size:13px;font-weight:650;margin:0 2px 8px;display:flex;align-items:center;gap:6px}
.rp-sec h3::before{content:'';width:3px;height:13px;border-radius:2px;background:var(--brand)}
.note{background:var(--amber-soft);border:1px solid #fde68a;border-radius:var(--radius-sm);
  padding:9px 11px;font-size:11.5px;color:#78350f;margin-top:8px;line-height:1.5}
.warnbox{background:var(--red-soft);border:1px solid #fecaca;border-radius:var(--radius-sm);
  padding:10px 12px;font-size:12px;color:#991b1b;margin-top:12px}

/* ===========================================================
   Tablet ≥640
   =========================================================== */
@media (min-width:640px){
  .content{padding:16px 18px calc(84px + var(--safe-b))}
  .kpi-grid{grid-template-columns:repeat(4,1fr)}
  .lane{flex:0 0 46%}
  .board{flex-wrap:wrap;overflow:visible;margin:0;padding:0}
  .lane{flex:1 1 calc(50% - 6px);min-width:0}
  .toolbar{flex-direction:row;align-items:center}
  .filters{grid-template-columns:repeat(3,auto);gap:8px}
  .search{max-width:320px}
  .sync-pill{display:flex}
  .sk-row{grid-template-columns:repeat(4,1fr)}
  .sk-board{grid-template-columns:repeat(2,1fr)}
  .sheet{left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);
    width:min(760px,92vw);max-height:82vh;border-radius:14px;animation:pop .18s cubic-bezier(.2,.8,.3,1)}
  @keyframes pop{from{opacity:0;transform:translate(-50%,-46%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
  .toast{bottom:calc(80px + var(--safe-b))}
  .card-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
}

/* ===========================================================
   Desktop ≥1024
   =========================================================== */
@media (min-width:1024px){
  body{display:flex}
  .sidebar{display:flex;flex-direction:column;width:var(--sidebar-w);flex:none;
    background:var(--surface);border-right:1px solid var(--border);
    height:100vh;position:sticky;top:0}
  .main{flex:1;min-width:0}
  .topbar{padding:0 22px;height:60px}
  .topbar-title h1{font-size:17px}
  .only-mobile{display:none !important}
  .tabbar{display:none}
  .chips-bar{padding:12px 22px}
  .content{padding:18px 22px 40px}
  .board{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
  .lane{flex:none;min-width:0}
  .kpi-grid{grid-template-columns:repeat(5,1fr);gap:12px}
  .table-wrap{display:block}
  .card-list{display:none}
  .toolbar{gap:12px}
  .filters{grid-template-columns:repeat(3,140px)}
  .toast{bottom:32px}
  .sheet{width:min(880px,90vw)}
  .card-list{display:none}
}

/* 超宽屏 */
@media (min-width:1440px){
  .content{max-width:1560px}
}

/* ---------------- 移动端侧边抽屉（<1024） ---------------- */
@media (max-width:1023px){
  .sidebar{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;z-index:56;
    width:min(280px,84vw);background:var(--surface);border-right:1px solid var(--border);
    transform:translateX(-100%);transition:transform .24s cubic-bezier(.2,.8,.3,1);
    box-shadow:var(--shadow-lg)}
  .sidebar.open{transform:translateX(0)}
  .side-foot{margin-top:auto}
}

/* 减少动效偏好 */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
}

/* ---------------- 图表 / 导出（增强） ---------------- */
.chart-2col{display:grid;grid-template-columns:1fr;gap:14px}
.chart-box{position:relative;width:100%}
.chart-svg{display:block;width:100%;height:auto;touch-action:pan-y}
.chart-hit{cursor:crosshair}
.chart-tip{position:absolute;z-index:5;pointer-events:none;background:#111827;color:#fff;
  font-size:11.5px;line-height:1.5;padding:6px 9px;border-radius:8px;box-shadow:var(--shadow);
  white-space:nowrap;max-width:220px}

.seg{display:flex;gap:2px;background:var(--surface-2);border:1px solid var(--border);
  border-radius:99px;padding:2px}
.seg-btn{padding:3px 10px;border-radius:99px;font-size:11.5px;color:var(--text-2);white-space:nowrap}
.seg-btn.is-active{background:var(--surface);color:var(--brand);font-weight:600;box-shadow:var(--shadow-sm)}

.donut-wrap{display:flex;align-items:center;gap:16px}
.donut-wrap.stacked{flex-direction:column;gap:10px}
.donut-svg{position:relative;flex:none}
.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;pointer-events:none}
.donut-center b{font-size:19px;font-weight:680;line-height:1.1}
.donut-center span{font-size:11px;color:var(--muted);margin-top:1px}
.donut-legend{list-style:none;margin:0;padding:0;flex:1;min-width:0;display:grid;gap:6px}
.donut-legend li{display:flex;align-items:center;gap:7px;font-size:12.5px}
.donut-legend i{width:9px;height:9px;border-radius:3px;flex:none}
.dl-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-2)}
.dl-val{font-variant-numeric:tabular-nums;color:var(--text);font-weight:600}

.bar-list{display:grid;gap:11px}
.bl{cursor:default}
.bl.is-link{cursor:pointer;border-radius:var(--radius-sm);padding:2px 4px;margin:0 -4px;transition:background .15s}
.bl.is-link:hover{background:var(--surface-2)}
.bl-top{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;margin-bottom:5px}
.bl-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.bl-val{flex:none;font-variant-numeric:tabular-nums;font-weight:600}
.bl-track{height:7px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.bl-track>i{display:block;height:100%;border-radius:99px;transition:width .5s ease}
.bl-sub{font-size:11px;color:var(--muted);margin-top:4px}

.btn.mini{padding:4px 10px;font-size:12px;border-radius:99px}
.rb-right{display:flex;align-items:center;gap:10px}

@media (min-width:1024px){
  .chart-2col{grid-template-columns:1.6fr 1fr;gap:16px}
}

/* 打印 */
@media print{
  .sidebar,.tabbar,.topbar,.chips-bar,.overlay,.sheet,.toast,.seg,.toolbar{display:none !important}
  body{background:#fff}
  .content{padding:0}
  .panel,.kpi,.lane{box-shadow:none;break-inside:avoid}
  .chart-2col{grid-template-columns:1fr 1fr}
  .card-list,.load-more-wrap,.chart-tip{display:none !important}
}

/* ===========================================================
   模块页（解锁 / 无人机 / L4 / 取证 …）统一骨架
   =========================================================== */
.modpage{max-width:920px;margin:0 auto;padding:20px 16px 56px}
.mp-top{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.mp-top .back{font-size:13px;color:var(--brand);font-weight:600;text-decoration:none;
  padding:6px 10px;border-radius:8px;background:var(--brand-soft)}
.mp-top .back:hover{background:#dbeafe}
.mp-top h1{font-size:20px;font-weight:720}
.mp-top .tag{margin-left:auto;font-size:11.5px;font-weight:600;padding:4px 11px;border-radius:99px;
  background:var(--amber-soft);color:var(--amber)}
.mp-hero{display:flex;gap:16px;align-items:flex-start;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm);margin-bottom:18px}
.mp-hero .ico{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:26px;flex:none}
.mp-hero .ico.b-amber{background:var(--amber-soft);color:var(--amber)}
.mp-hero .ico.b-teal{background:#ecfeff;color:#0891b2}
.mp-hero .ico.b-purple{background:#eef2ff;color:#7c3aed}
.mp-hero .ico.b-rose{background:#fff1f2;color:#e11d48}
.mp-hero h2{font-size:16px;font-weight:700;margin-bottom:5px}
.mp-hero p{font-size:13px;color:var(--text-2);line-height:1.65}
.empty{background:var(--surface);border:1px dashed var(--border-strong);border-radius:var(--radius);
  padding:30px 22px;text-align:center}
.empty .empty-ico{font-size:34px;margin-bottom:8px}
.empty h3{font-size:16px;font-weight:700;margin-bottom:8px}
.empty>p{font-size:13px;color:var(--muted);line-height:1.7;max-width:560px;margin:0 auto 16px}
.empty .todo{list-style:none;padding:0;margin:0 auto 16px;max-width:560px;text-align:left;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.empty .todo li{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;
  padding:9px 12px;font-size:12.5px;color:var(--text-2);line-height:1.5}
.empty .todo li b{color:var(--text);font-weight:650}
.empty .hint{font-size:12px;color:var(--brand);background:var(--brand-soft);
  display:inline-block;padding:8px 14px;border-radius:8px;line-height:1.6}

/* 图表穿透（点击下钻） */
.donut-seg.is-link{cursor:pointer;transition:opacity .15s}
.donut-seg.is-link:hover{opacity:.82}
.donut-legend li.is-link{cursor:pointer;border-radius:6px;padding:1px 4px;margin:-1px -4px}
.donut-legend li.is-link:hover{background:var(--surface-2)}
