/* ============================================================
   涓夎娲蹭氦鍗曠郴缁?V2 路 璁捐绯荤粺
   娴呰壊銆佸厠鍒躲€佹棤鏆楄壊鍒嗘敮銆佹棤 CDN銆佹棤鍥炬爣瀛椾綋
   ============================================================ */

:root{
  --bg-page:#ffffff;
  --bg-panel:#f7f8fa;
  --bg-card:#ffffff;
  --bg-hover:#f3f4f6;

  --border:#e5e7eb;
  --border-strong:#d1d5db;

  --shadow-sm:0 1px 3px rgba(16,24,40,.08);
  --shadow-md:0 4px 12px rgba(16,24,40,.10);

  --text:#1f2937;
  --text-sub:#6b7280;
  --text-weak:#9ca3af;

  --primary:#2563eb;
  --primary-hover:#1d4ed8;
  --primary-soft:#eff6ff;

  --success:#059669;  --success-soft:#ecfdf5;
  --warning:#d97706;  --warning-soft:#fffbeb;
  --danger:#dc2626;   --danger-soft:#fef2f2;
  --info:#0ea5e9;     --info-soft:#f0f9ff;

  --radius:10px;
  --radius-sm:8px;
  --radius-pill:999px;

  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px;

  --fs-xs:12px; --fs-sm:13px; --fs-md:14px; --fs-lg:16px; --fs-xl:20px; --fs-2xl:26px;

  --sidebar-w:232px;
  --topbar-h:56px;
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg-page);
  color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;
  font-size:var(--fs-md);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-hover)}
h1,h2,h3,h4{margin:0;font-weight:600}
p{margin:0 0 var(--sp-3)}
.muted{color:var(--text-sub)}
.weak{color:var(--text-weak)}
.num{font-variant-numeric:tabular-nums}
.money{font-variant-numeric:tabular-nums;font-weight:600}
.money-neg{color:var(--danger)}
.ico{flex:none;vertical-align:-3px}
.hidden{display:none !important}

/* ---------- 楠ㄦ灦 ---------- */
.app{display:flex;min-height:100vh}
.sidebar{
  width:var(--sidebar-w);flex:none;
  background:var(--bg-page);
  border-right:1px solid var(--border);
  display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;
}
.brand{
  height:var(--topbar-h);flex:none;
  display:flex;align-items:center;gap:10px;
  padding:0 var(--sp-4);
  border-bottom:1px solid var(--border);
  font-weight:600;font-size:var(--fs-lg);letter-spacing:.2px;
}
.brand-mark{
  width:26px;height:26px;border-radius:8px;flex:none;
  background:var(--primary-soft);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;
}
.nav{flex:1;overflow-y:auto;padding:var(--sp-3) var(--sp-2) var(--sp-5)}
.nav-group:first-child{margin-top:0}
.nav-item{
  display:flex;align-items:center;gap:10px;
  padding:9px var(--sp-3);
  border-radius:var(--radius-sm);
  color:var(--text-sub);
  font-size:var(--fs-md);
  position:relative;
  margin-bottom:2px;
}
.nav-item:hover{background:var(--bg-hover);color:var(--text)}
.nav-item.is-active{
  background:var(--primary-soft);color:var(--primary);font-weight:600;
}
.nav-item.is-active::before{
  content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;
  background:var(--primary);border-radius:0 3px 3px 0;
}
.nav-foot{padding:10px 12px;border-top:1px solid var(--border)}

.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{
  height:var(--topbar-h);flex:none;
  display:flex;align-items:center;gap:var(--sp-4);
  padding:0 var(--sp-5);
  background:var(--bg-page);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:20;
}
.topbar-title{font-weight:600}
.crumb{color:var(--text-weak);font-size:var(--fs-sm)}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:var(--sp-4)}
.wallet{
  display:flex;align-items:center;gap:var(--sp-3);
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  padding:6px 14px;
  font-size:var(--fs-sm);
}
.wallet-item{display:flex;align-items:center;gap:6px;color:var(--text-sub)}
.wallet-item b{color:var(--text);font-variant-numeric:tabular-nums}
.wallet-sep{width:1px;height:14px;background:var(--border-strong)}
.avatar{
  width:32px;height:32px;border-radius:50%;flex:none;
  background:var(--primary-soft);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:600;
}
.burger{display:none;background:none;border:0;padding:6px;color:var(--text);cursor:pointer}

/* 涓诲唴瀹瑰尯锛氫笉璁句笂闄愶紝姘歌繙閾烘弧鍙敤瀹藉害锛涘唴杈硅窛闅忚鍙ｇ缉鏀?*/
.content{
  padding:clamp(14px,1.4vw,32px);
  width:100%;max-width:none;margin:0 auto;
  flex:1;min-width:0;
}

/* ---------- 椤甸潰澶?---------- */
.page-head{display:flex;align-items:flex-start;gap:var(--sp-4);margin-bottom:var(--sp-5);flex-wrap:wrap}
.page-head h1{font-size:var(--fs-xl)}
.page-head .sub{color:var(--text-sub);font-size:var(--fs-sm);margin-top:2px}
.page-actions{margin-left:auto;display:flex;gap:var(--sp-2);flex-wrap:wrap}

/* ---------- 鍗＄墖 ---------- */
.card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.card-head{
  padding:var(--sp-4) var(--sp-5);
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:var(--sp-3);
}
.card-head h2{font-size:var(--fs-lg)}
.card-head .spacer{margin-left:auto}
.card-body{padding:var(--sp-5)}
.card-body.tight{padding:0}

/* ---------- KPI ---------- */
.kpi-grid{
  display:grid;gap:clamp(12px,1vw,20px);margin-bottom:var(--sp-5);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));
}
.kpi{
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);
  padding:var(--sp-4) var(--sp-5);box-shadow:var(--shadow-sm);
  display:flex;align-items:center;gap:var(--sp-4);
}
.kpi-icon{
  width:40px;height:40px;border-radius:10px;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--primary-soft);color:var(--primary);
}
.kpi-icon.ok{background:var(--success-soft);color:var(--success)}
.kpi-icon.warn{background:var(--warning-soft);color:var(--warning)}
.kpi-icon.bad{background:var(--danger-soft);color:var(--danger)}
.kpi-label{font-size:var(--fs-xs);color:var(--text-weak);letter-spacing:.04em}
.kpi-value{font-size:var(--fs-2xl);font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2}
.kpi-delta{font-size:var(--fs-xs);color:var(--text-sub)}

/* ---------- 鎸夐挳 ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:36px;padding:0 14px;
  border-radius:var(--radius-sm);
  border:1px solid transparent;
  font-size:var(--fs-md);font-family:inherit;
  cursor:pointer;white-space:nowrap;
  background:var(--bg-page);color:var(--text);
  transition:background .15s,border-color .15s,color .15s;
}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-hover);color:#fff}
.btn-ghost{background:var(--bg-page);border-color:var(--border);color:var(--text)}
.btn-ghost:hover{background:var(--bg-hover)}
.btn-danger{background:var(--danger);color:#fff}
.btn-danger:hover{background:#b91c1c;color:#fff}
.btn-danger-ghost{background:var(--danger-soft);color:var(--danger);border-color:#fecaca}
.btn-success{background:var(--success);color:#fff}
.btn-success:hover{background:#047857;color:#fff}
.btn-sm{height:30px;padding:0 10px;font-size:var(--fs-sm)}
.btn-icon{width:36px;padding:0}

/* ---------- 琛ㄥ崟 ---------- */
.field{margin-bottom:var(--sp-4)}
.field label{display:block;font-size:var(--fs-sm);color:var(--text-sub);margin-bottom:6px}
.input,.select,.textarea{
  width:100%;height:38px;padding:0 12px;
  background:var(--bg-page);
  border:1px solid var(--border-strong);
  border-radius:var(--radius-sm);
  color:var(--text);font-size:var(--fs-md);font-family:inherit;
  outline:none;transition:border-color .15s,box-shadow .15s;
}
.textarea{height:auto;min-height:96px;padding:10px 12px;line-height:1.6;resize:vertical}
.input:focus,.select:focus,.textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-soft);
}
.input::placeholder,.textarea::placeholder{color:var(--text-weak)}
.field-hint{font-size:var(--fs-xs);color:var(--text-weak);margin-top:6px}
.field-error{font-size:var(--fs-xs);color:var(--danger);margin-top:6px}
.checkbox{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-sm);color:var(--text-sub);cursor:pointer}
.checkbox input{width:16px;height:16px;accent-color:var(--primary)}
.form-grid{display:grid;gap:0 var(--sp-4);grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}

/* ---------- 绛涢€夋潯 ---------- */
.filter-bar{
  display:flex;gap:var(--sp-3);align-items:flex-end;flex-wrap:wrap;
  padding:var(--sp-4) var(--sp-5);
  background:var(--bg-panel);
  border-bottom:1px solid var(--border);
}
.filter-bar .field{margin:0;min-width:min(150px,100%)}
.filter-bar .field label{font-size:var(--fs-xs)}
.filter-bar .grow{flex:1;min-width:min(200px,100%)}
.filter-actions{display:flex;gap:var(--sp-2);margin-left:auto}

/* ---------- 琛ㄦ牸 ---------- */
.table-wrap{overflow-x:auto}
table.data{width:100%;border-collapse:collapse;font-size:var(--fs-md)}
table.data thead th{
  background:var(--bg-panel);
  color:#1f2937;
  font-weight:700;font-size:13.5px;
  letter-spacing:.02em;
  text-align:left;white-space:nowrap;
  padding:11px var(--sp-4);
  border-bottom:1px solid var(--border);
}
table.data tbody td{
  padding:12px var(--sp-4);
  border-bottom:1px solid var(--border);
  vertical-align:middle;
}
table.data tbody tr:hover{background:var(--bg-hover)}
table.data tbody tr:last-child td{border-bottom:0}
table.data .ta-r{text-align:right}
table.data .ta-c{text-align:center}
table.data .ta-l{text-align:left}
table.data .nowrap{white-space:nowrap}
table.data .num{font-variant-numeric:tabular-nums}

/* ---------- 寰界珷 ---------- */
.badge{
  display:inline-flex;align-items:center;justify-content:center;
  height:26px;padding:0 11px;border-radius:var(--radius-pill);
  font-size:12.5px;font-weight:600;line-height:1;letter-spacing:.01em;
  white-space:nowrap;
}
.badge-ok{background:var(--success-soft);color:var(--success)}
.badge-warn{background:var(--warning-soft);color:var(--warning)}
.badge-bad{background:var(--danger-soft);color:var(--danger)}
.badge-info{background:var(--info-soft);color:var(--info)}
.badge-mute{background:var(--bg-panel);color:var(--text-sub)}
.badge-primary{background:var(--primary-soft);color:var(--primary)}
.badge-indigo{background:#eef2ff;color:#4f46e5}
.badge-slate{background:#f1f5f9;color:#475569}

/* ---------- Tabs ---------- */
.tabs{display:flex;gap:var(--sp-5);border-bottom:1px solid var(--border);padding:0 var(--sp-5)}
.tab{
  padding:11px 0;font-size:var(--fs-md);color:var(--text-sub);
  border-bottom:2px solid transparent;margin-bottom:-1px;
}
.tab:hover{color:var(--text)}
.tab.is-active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}

/* ---------- 绌烘€?/ 鍒嗛〉 ---------- */
.empty{padding:56px var(--sp-5);text-align:center;color:var(--text-sub)}
.empty-icon{
  width:48px;height:48px;margin:0 auto var(--sp-3);
  border-radius:12px;background:var(--bg-panel);color:var(--text-weak);
  display:flex;align-items:center;justify-content:center;
}
.empty h3{font-size:var(--fs-lg);color:var(--text);margin-bottom:6px}
.empty p{font-size:var(--fs-sm);color:var(--text-sub);margin-bottom:var(--sp-4)}

.pager{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-3) var(--sp-5);border-top:1px solid var(--border)}
.pager-info{margin-right:auto;font-size:var(--fs-sm);color:var(--text-sub)}
.pager a,.pager span{
  min-width:32px;height:32px;padding:0 10px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--border);border-radius:var(--radius-sm);
  font-size:var(--fs-sm);color:var(--text-sub);background:var(--bg-page);
}
.pager a:hover{background:var(--bg-hover);color:var(--text)}
.pager .is-active{background:var(--primary-soft);border-color:#bfdbfe;color:var(--primary);font-weight:600}
.pager .is-disabled{opacity:.45;pointer-events:none}

/* ---------- 鎻愮ず鏉?---------- */
.alert{
  display:flex;gap:10px;align-items:flex-start;
  padding:12px var(--sp-4);border-radius:var(--radius-sm);
  font-size:var(--fs-md);margin-bottom:var(--sp-4);
  border:1px solid transparent;
}
.alert-err{background:var(--danger-soft);border-color:#fecaca;color:#991b1b}
.alert-ok{background:var(--success-soft);border-color:#a7f3d0;color:#065f46}
.alert-warn{background:var(--warning-soft);border-color:#fde68a;color:#92400e}
.alert-info{background:var(--info-soft);border-color:#bae6fd;color:#0c4a6e}

/* ---------- 鎶藉眽 / 寮圭獥 ---------- */
.overlay{
  position:fixed;inset:0;background:rgba(16,24,40,.35);
  display:none;z-index:60;
}
.overlay.open{display:block}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:520px;max-width:92vw;
  background:var(--bg-page);border-left:1px solid var(--border);
  box-shadow:var(--shadow-md);
  display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .2s ease;
  z-index:61;
}
.drawer.open{transform:translateX(0)}
.drawer-head{padding:var(--sp-4) var(--sp-5);border-bottom:1px solid var(--border);display:flex;align-items:center}
.drawer-head h2{font-size:var(--fs-lg)}
.drawer-body{flex:1;overflow-y:auto;padding:var(--sp-5)}
.drawer-foot{padding:var(--sp-4) var(--sp-5);border-top:1px solid var(--border);display:flex;gap:var(--sp-2);justify-content:flex-end}

.modal{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);
  width:440px;max-width:92vw;background:var(--bg-page);
  border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow-md);z-index:61;display:none;
}
.modal.open{display:block}
.modal-head{padding:var(--sp-4) var(--sp-5);border-bottom:1px solid var(--border)}
.modal-body{padding:var(--sp-5)}
.modal-foot{padding:var(--sp-4) var(--sp-5);border-top:1px solid var(--border);display:flex;gap:var(--sp-2);justify-content:flex-end}

.rv-cards{--rv-cols:minmax(174px,1fr) minmax(0,.84fr) minmax(0,1.66fr) 92px 76px 140px 344px;
  display:grid;gap:12px;padding:14px;grid-template-columns:1fr;
  align-content:start;overflow:auto;max-height:calc(100vh - 400px);overscroll-behavior:contain}
.rv-card{display:flex;flex-direction:column;align-self:start;background:#fff;border:1px solid var(--border);
  border-left:3px solid #e5e7eb;border-radius:10px;overflow:hidden;
  box-shadow:0 1px 3px rgba(16,24,40,.06);transition:.15s}
.rv-card:hover{border-color:#bfdbfe;border-left-color:#93c5fd;box-shadow:0 4px 14px rgba(37,99,235,.10)}
.rv-card[data-status="pending"]{border-left-color:#f59e0b}
.rv-card[data-status="approved"]{border-left-color:#10b981}
.rv-card[data-status="rejected"]{border-left-color:#ef4444}

.rv-card-head{display:grid;grid-template-columns:var(--rv-cols);align-items:center;
  height:30px;padding:0 14px;background:#f7f8fa;border-bottom:1px solid var(--border);
  font-size:11px;line-height:1;color:#9ca3af;letter-spacing:.05em}
.rv-card-head span{padding:0 8px;text-align:center}
.rv-card-head span:first-child{text-align:left}
.rv-card-head span:nth-child(3){text-align:left}
.rv-card-head span:first-child{padding-left:8px}
.rv-card-head .ta-r{text-align:center;padding-right:8px}

.rv-card-row{display:grid;grid-template-columns:var(--rv-cols);align-items:center;padding:9px 14px}

.rv-cell{display:flex;align-items:center;justify-content:center;min-width:0;padding:0 8px;text-align:center}
.rv-cell:first-child{padding-left:8px}
.rv-label{display:none;font-size:11px;line-height:1;color:#9ca3af;letter-spacing:.04em}
.rv-userline{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}
.rv-name{font-size:14px;line-height:1.25;font-weight:700;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-value{font-size:13px;line-height:1.3;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-tpl{font-size:12px;color:#6b7280}
.rv-sep{color:#cbd5e1;margin:0 4px}
.rv-points{font-size:15px;line-height:1.2;font-weight:700;color:#2563eb;font-variant-numeric:tabular-nums}
.rv-time{font-size:12px;color:#4b5563;font-variant-numeric:tabular-nums}

.rv-cell-cred{justify-content:flex-start;text-align:left}
    .rv-cred{display:inline-flex;align-items:center;max-width:100%;padding:3px 9px;
      background:#f7f8fa;border:1px solid var(--border);border-radius:7px;
      font-family:inherit;font-size:12.5px;line-height:1.6;color:#1f2937;
      cursor:pointer;user-select:none;
      transition:background .15s,border-color .15s,box-shadow .15s}
    .rv-cred:hover{background:#eff6ff;border-color:#bfdbfe;box-shadow:0 1px 3px rgba(37,99,235,.10)}
    .rv-cred:active{background:#dbeafe;border-color:#93c5fd}
    .rv-cred:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
    .rv-cred-u{font-weight:600;letter-spacing:.01em;max-width:200px;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .rv-cred-p{color:#6b7280;max-width:120px;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .rv-cred-p::before{content:'/';color:#cbd5e1;margin:0 6px}
.rv-cell-act{justify-content:center;padding-right:8px}
.rv-cell-user{justify-content:flex-start;text-align:left}
.rv-cell-user .rv-userline{justify-content:flex-start}

@media (max-width:1200px){
  .rv-card-head{display:none}
  .rv-card-row{grid-template-columns:repeat(12,1fr);row-gap:12px;padding:12px 14px}
  .rv-cell{flex-direction:column;align-items:flex-start;gap:5px;padding:0}
  .rv-label{display:block}
  .rv-cell:nth-child(1){grid-column:span 3}
  .rv-cell:nth-child(2){grid-column:span 4}
  .rv-cell:nth-child(3){grid-column:span 5}
  .rv-cell:nth-child(4){grid-column:span 2}
  .rv-cell:nth-child(6){grid-column:span 5}
  .rv-cell:nth-child(7){grid-column:span 3;align-items:flex-end}
  .rv-cell:nth-child(n+4){border-top:1px dashed #eef0f3;padding-top:12px}
  .rv-cell-act .btn{width:100%;justify-content:center}
}
@media (max-width:820px){
  .rv-card-row{grid-template-columns:1fr 1fr;row-gap:14px}
  .rv-cell{grid-column:auto !important;padding:0}
  .rv-cell:nth-child(n+3){border-top:1px dashed #eef0f3;padding-top:12px}
  .rv-cell-act{grid-column:1 / -1 !important;align-items:stretch}
  .rv-cell-act .btn{width:auto;min-width:120px;align-self:flex-end}
  .rv-cred-u{max-width:260px}
}
@media (max-width:560px){
  .rv-cards{padding:10px}
  .rv-card-row{grid-template-columns:1fr;padding:12px}
  .rv-cell{padding-top:10px}
  .rv-cell:first-child{padding-top:0}
  .rv-value,.rv-name{white-space:normal}
  .rv-cred-u{max-width:200px}
}

/* ---------- 瀹℃牳璇︽儏寮圭獥锛坮v- 鍓嶇紑锛屼笌鏃?.modal 闅旂锛?---------- */
.rv-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:var(--sp-4)}
.rv-modal[hidden]{display:none}
.rv-mask{position:absolute;inset:0;background:rgba(16,24,40,.42)}
.rv-panel{position:relative;width:min(760px,100%);max-height:min(88vh,920px);overflow:auto;background:var(--bg-page);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 48px rgba(16,24,40,.20)}
.rv-head{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;gap:var(--sp-3);padding:var(--sp-4) var(--sp-5);background:var(--bg-page);border-bottom:1px solid var(--border)}
.rv-head h3{margin:0;font-size:16px;font-weight:600;color:var(--text)}
.rv-sub{margin-top:4px;font-size:12px;color:var(--text-sub)}
.rv-x{margin-left:auto;border:0;background:transparent;color:var(--text-sub);font-size:22px;line-height:1;cursor:pointer;padding:2px 8px;border-radius:var(--radius-sm)}
.rv-x:hover{background:#f3f4f6;color:var(--text)}
.rv-body{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-5)}
.kv-grid{display:grid;gap:var(--sp-2) var(--sp-3);grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.kv{display:flex;flex-direction:column;gap:2px;padding:8px 10px;background:#f7f8fa;border:1px solid var(--border);border-radius:var(--radius-sm)}
.kv span{font-size:12px;color:var(--text-sub)}
.kv b{font-size:14px;color:var(--text);word-break:break-all}
.cred-box{padding:10px 12px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:var(--radius-sm)}
.cred-label{display:flex;align-items:center;gap:6px;margin-bottom:6px;font-size:12px;color:#2563eb}
.cred{font-size:13px;color:var(--text)}
.cred code{display:inline-block;padding:1px 6px;background:#fff;border:1px solid var(--border);border-radius:6px;font-size:12.5px}
.answer-list{display:flex;flex-direction:column;gap:var(--sp-3);max-height:300px;overflow:auto;padding-right:4px}
.answer-item{padding-bottom:10px;border-bottom:1px solid var(--border)}
.answer-item:last-child{border-bottom:0;padding-bottom:0}
.answer-q{margin-bottom:4px;font-size:13px;color:var(--text-sub)}
.answer-a{font-size:14px;color:var(--text);word-break:break-word}
.rv-result{padding:10px 12px;background:#f7f8fa;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px}
.rv-actions{display:flex;flex-wrap:wrap;gap:var(--sp-2);justify-content:flex-end}
.btn-xs{padding:2px 8px;font-size:12px;border-radius:6px}
@media (max-width:560px){
  .rv-modal{padding:0;align-items:flex-end}
  .rv-panel{width:100%;max-height:92vh;border-radius:12px 12px 0 0}
  .rv-body{padding:var(--sp-4)}
  .rv-actions{justify-content:stretch}
  .rv-actions .btn{flex:1 1 100%}
}

/* ---------- Toast ---------- */
.toasts{position:fixed;top:16px;right:16px;z-index:80;display:flex;flex-direction:column;gap:8px}
.toast{
  min-width:220px;max-width:360px;
  padding:10px 14px;border-radius:var(--radius-sm);
  background:var(--bg-page);border:1px solid var(--border);
  box-shadow:var(--shadow-md);font-size:var(--fs-md);
  display:flex;gap:8px;align-items:center;
  animation:slide-in .18s ease;
}
.toast-ok{border-color:#a7f3d0}
.toast-ok .ico{color:var(--success)}
.toast-err{border-color:#fecaca}
.toast-err .ico{color:var(--danger)}
@keyframes slide-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ---------- 涓婁紶 ---------- */
.uploader{
  border:1px dashed var(--border-strong);border-radius:var(--radius);
  padding:var(--sp-5);text-align:center;color:var(--text-sub);
  background:var(--bg-panel);cursor:pointer;
}
.uploader:hover{border-color:var(--primary);color:var(--primary)}
.uploader small{display:block;font-size:var(--fs-xs);color:var(--text-weak);margin-top:4px}
.thumbs{display:grid;gap:var(--sp-2);grid-template-columns:repeat(auto-fill,minmax(84px,1fr));margin-top:var(--sp-3)}
.thumb{position:relative;aspect-ratio:1;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--border)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb button{
  position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;
  border:0;background:rgba(16,24,40,.55);color:#fff;cursor:pointer;line-height:1;font-size:12px;
}

/* ---------- 鍊掕鏃?/ 鏃堕棿杞?---------- */
.countdown{font-variant-numeric:tabular-nums;font-weight:600}
.countdown.done{color:var(--success)}
.countdown.soon{color:var(--warning)}

.timeline{list-style:none;margin:0;padding:0 0 0 18px;border-left:1px solid var(--border)}
.timeline li{position:relative;padding:0 0 var(--sp-4) var(--sp-4)}
.timeline li::before{
  content:"";position:absolute;left:-23px;top:6px;width:9px;height:9px;border-radius:50%;
  background:var(--bg-page);border:2px solid var(--border-strong);
}
.timeline li.ok::before{border-color:var(--success)}
.timeline li.bad::before{border-color:var(--danger)}
.timeline time{display:block;font-size:var(--fs-xs);color:var(--text-weak)}

/* ---------- 杩蜂綘鏌辩姸 ---------- */
.bars{display:flex;align-items:flex-end;gap:6px;height:64px}
.bars span{
  flex:1;background:var(--primary-soft);border-radius:3px 3px 0 0;
  min-height:4px;position:relative;
}
.bars span b{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:10px;color:var(--text-weak)}

/* ---------- 鐧诲綍椤?---------- */
.auth-page{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:var(--bg-panel);padding:var(--sp-5);
}
.auth-main{width:100%;display:flex;justify-content:center}
.auth-card{
  width:400px;max-width:100%;background:var(--bg-page);
  border:1px solid var(--border);border-radius:12px;
  box-shadow:var(--shadow-sm);padding:var(--sp-6) var(--sp-5) var(--sp-5);
}
.auth-brand{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:var(--sp-2)}
.auth-brand .brand-mark{width:32px;height:32px;border-radius:9px;font-size:15px}
.auth-title{text-align:center;font-size:var(--fs-lg);font-weight:600}
.auth-sub{text-align:center;color:var(--text-sub);font-size:var(--fs-sm);margin:4px 0 var(--sp-5)}
.auth-tabs{display:flex;background:var(--bg-panel);border-radius:var(--radius-sm);padding:3px;margin-bottom:var(--sp-5)}
.auth-tabs a{
  flex:1;text-align:center;padding:7px;border-radius:6px;
  font-size:var(--fs-sm);color:var(--text-sub);
}
.auth-tabs a.is-active{background:var(--bg-page);color:var(--text);font-weight:600;box-shadow:var(--shadow-sm)}
.auth-foot{text-align:center;font-size:var(--fs-xs);color:var(--text-weak);margin-top:var(--sp-5)}
.auth-row{display:flex;align-items:center;justify-content:space-between;margin:var(--sp-3) 0 var(--sp-5);font-size:var(--fs-sm)}

/* ---------- 閿欒椤?---------- */
.err-page{
  min-height:100vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:var(--sp-3);
  color:var(--text-sub);text-align:center;padding:var(--sp-5);
}
.err-code{font-size:52px;font-weight:600;color:var(--text);letter-spacing:.04em;line-height:1}

/* ---------- 缁勪欢棰勮 ---------- */
.ui-section{margin-bottom:var(--sp-6)}
.ui-section > h2{font-size:var(--fs-lg);margin-bottom:var(--sp-3)}
.ui-row{display:flex;gap:var(--sp-3);flex-wrap:wrap;align-items:center;margin-bottom:var(--sp-3)}

/* ---------- 鍝嶅簲寮?---------- */
@media (max-width: 900px){
  .sidebar{
    position:fixed;left:0;top:0;bottom:0;z-index:70;
    transform:translateX(-100%);transition:transform .2s ease;
    box-shadow:var(--shadow-md);
  }
  .sidebar.open{transform:translateX(0)}
  .burger{display:inline-flex}
  .content{padding:var(--sp-4)}
  .topbar{padding:0 var(--sp-4);gap:var(--sp-2)}
  .wallet{padding:5px 10px;gap:8px;font-size:var(--fs-xs)}
  .wallet-item span{display:none}
  .kpi-value{font-size:var(--fs-xl)}
  .filter-bar{padding:var(--sp-3) var(--sp-4)}
  .filter-actions{margin-left:0;width:100%}
  .filter-actions .btn{flex:1}
  table.data thead{display:none}
  table.data tbody tr{
    display:block;border:1px solid var(--border);border-radius:var(--radius-sm);
    margin:0 0 var(--sp-2);padding:var(--sp-2) var(--sp-3);
  }
  table.data tbody td{
    display:flex;justify-content:space-between;gap:var(--sp-3);
    border:0;padding:6px 0;text-align:right;
  }
  table.data tbody td::before{
    content:attr(data-th);color:var(--text-weak);font-size:var(--fs-xs);
    text-align:left;flex:none;
  }
  .auth-card{padding:var(--sp-5) var(--sp-4)}
}

/* 灏忓睆锛堟墜鏈虹珫灞?鈮?20px锛夛細鍗曞垪銆佹寜閽拺婊°€佹爣棰橀檷绾?*/
@media (max-width: 520px){
  .content{padding:12px}
  .kpi-grid{grid-template-columns:1fr}
  .kpi{padding:var(--sp-3) var(--sp-4)}
  .kpi-value{font-size:var(--fs-lg)}
  .page-head{gap:10px}
  .page-head h1{font-size:var(--fs-lg)}
  .page-actions{margin-left:0;width:100%}
  .page-actions .btn{flex:1}
  .card-head{padding:var(--sp-3) var(--sp-4);flex-wrap:wrap;gap:var(--sp-2)}
  .card-body{padding:var(--sp-4)}
  .filter-bar{padding:var(--sp-3)}
  .filter-bar .field{min-width:100%}
  .filter-bar .grow{min-width:100%}
  .auth-page{padding:12px}
  .auth-card{padding:var(--sp-5) var(--sp-4)}
  .err-code{font-size:38px}
  .modal{width:calc(100vw - 24px);max-width:none}
  .drawer{width:100%;max-width:none}
}

/* 澶у睆 / 鏀惧ぇ閾烘弧锛堚墺1600px锛夛細鍐呭鏈潵灏遍摵婊★紝杩欓噷鏀惧ぇ鍛煎惛鎰熶笌淇℃伅瀵嗗害 */
@media (min-width: 1600px){
  .kpi-grid{gap:20px}
  .card-body{padding:var(--sp-5) var(--sp-6)}
  .card-head{padding:var(--sp-4) var(--sp-6)}
  .filter-bar{padding:var(--sp-4) var(--sp-6)}
  .topbar{padding:0 var(--sp-6)}
}

/* 瓒呭锛堚墺2200px锛夛細澶氱暀涓€鐐硅竟锛岄伩鍏嶄竴琛屾壂澶繙 */
@media (min-width: 2200px){
  .content{padding-left:clamp(32px,3vw,72px);padding-right:clamp(32px,3vw,72px)}
}

/* ------------------------------------------------------------------
   琛ㄦ牸鑷€傚簲锛氳〃鏍兼案杩滀笉璁告妸椤甸潰鎾戝锛堝垪澶氬氨鎹㈣锛屽埆纭《锛?   ------------------------------------------------------------------ */
table.data{table-layout:auto}
table.data th, table.data td{overflow-wrap:anywhere;word-break:break-word}

/* 涓瓑灞忥細鍗曞厓鏍奸噷鐨勬搷浣滆〃鍗曟敼鎴愮珫鎺掞紝杈撳叆妗嗘媺婊★紝鎶婃渶灏忓唴瀹瑰搴﹀帇涓嬪幓 */
@media (max-width: 1200px){
  table.data td.nowrap, table.data th.nowrap{white-space:normal}
  table.data td form{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%}
  table.data td form .input,
  table.data td form .select,
  table.data td form .btn{width:100%;min-width:0}
}

/* 鎵嬫満灞忥細鏁村紶琛ㄩ€€鍖栨垚鍧楋紝璺熺潃鍒楀璧?*/
@media (max-width: 900px){
  table.data{display:block;width:100%}
  table.data tbody{display:block;width:100%}
  table.data tbody tr{width:100%;box-sizing:border-box}
  table.data tbody td{max-width:100%}
  table.data td form{flex:1 1 100%}
}

/* ==================================================================
   鎺т欢缁熶竴灞傦細杈撳叆妗?/ 涓嬫媺 / 鎸夐挳 鍚屼竴楂樺害涓庡渾瑙掞紝涓嬫媺鑷粯绠ご锛?   绛涢€夋潯妗岄潰涓€琛屻€佹墜鏈哄崟鍒楋紝琛ㄦ牸鍐呭皬琛ㄥ崟妯帓瀵归綈銆?   ================================================================== */
:root{--control-h:38px}
.input,.select{height:var(--control-h)}
.btn{height:var(--control-h)}
.btn-sm{height:32px;padding:0 10px}
.input-sm{height:32px;padding:0 10px;font-size:var(--fs-sm)}
.input-inline{width:132px}
.input-inline.narrow{width:112px}
.input-inline.short{width:124px}
.auth-card.wide{width:440px}
.code-inline{background:#fff;border:1px solid #a7f3d0;border-radius:6px;padding:2px 8px;font-size:15px}

/* 涓嬫媺妗嗭細鍘绘帀绯荤粺绠ご锛屾崲鎴愮粺涓€ chevron锛屽彸渚х暀鍑虹┖闂翠笉鍘嬪瓧 */
.select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  padding-right:34px;cursor:pointer;
  background-color:var(--bg-page);
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
}
.select:hover{border-color:#cbd5e1}
.select:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}

/* 绛涢€夋潯锛氭闈竴琛屽埌搴曪紝鎺т欢搴曡竟瀵归綈 */
.filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.filter-bar .field{margin:0;flex:0 1 190px;min-width:min(150px,100%)}
.filter-bar .field.grow{flex:1 1 240px}
.filter-bar > .btn{flex:none}
.filter-actions{margin-left:auto;display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}

/* 绛涢€夎〃鍗曪細鍗犳弧绛涢€夋潯锛屽唴閮ㄥ悓涓€濂楁爡鏍硷紝涓嶅啀闈犲唴鑱旀牱寮?*/
.filter-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;width:100%}
.filter-form .field{margin:0;flex:0 1 190px;min-width:min(150px,100%)}
.filter-form .field.grow{flex:1 1 240px}
.filter-form .btn{flex:none}

/* 琛ㄦ牸閲岀殑灏忚〃鍗曪細妯帓锛屾帶浠跺悓楂橈紝涓嶅啀鍚勫啓鍚勭殑鍐呰仈鏍峰紡 */
table.data td form{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;vertical-align:middle}

@media (max-width: 1200px){
  table.data td form{flex-direction:column;align-items:stretch;gap:6px;width:100%}
  table.data td form .input,
  table.data td form .select,
  table.data td form .btn{width:100%;min-width:0}
}

/* 鎵嬫満锛氱瓫閫夋潯鏀瑰崟鍒楋紝鎺т欢鍏ㄩ儴鎾戞弧锛屼究浜庣偣 */
@media (max-width: 560px){
  .filter-bar{display:grid;grid-template-columns:1fr;gap:10px;padding:14px}
  .filter-bar .field,
  .filter-bar .field.grow{flex:none;width:100%;min-width:0}
  .filter-bar > .btn{width:100%}
  .filter-actions{margin-left:0;width:100%;
    display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
  .filter-actions .btn{width:100%}

  .filter-form{display:grid;grid-template-columns:1fr;gap:10px;width:100%}
  .filter-form .field,
  .filter-form .field.grow{width:100%;min-width:0}
  .filter-form .btn{width:100%}
}


/* 浠诲姟缂栬緫锛氭。娆℃ā鏉垮閫?*/
.field-wide{grid-column:1 / -1}
.chip-group{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#f9fafb}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;font-size:13px;color:#1f2937;cursor:pointer;user-select:none;transition:.15s}
.chip:hover{border-color:#c7d2fe;background:#f8fafc}
.chip input{accent-color:#2563eb;margin:0}
.chip:has(input:checked){background:#eff6ff;border-color:#2563eb;color:#1d4ed8}
.chip-sub{font-style:normal;font-size:11px;color:#6b7280;background:#f3f4f6;border-radius:4px;padding:1px 5px}
.chip-off{font-style:normal;font-size:11px;color:#b45309;background:#fef3c7;border-radius:4px;padding:1px 5px}

/* 妯℃澘鍒楄〃锛氬悕绉拌繃闀挎椂鎴柇涓嶆拺鐮磋〃鏍?*/
.data td.tpl-name{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- 鑷畾涔夊脊绐楀眰锛坲i.js锛夛細纭妗?/ 琛ㄥ崟寮圭獥 ---------- */
.ui-mask{position:fixed;inset:0;background:rgba(16,24,40,.38);z-index:90;animation:uiFade .12s ease}
.ui-mask.is-closing{opacity:0;transition:opacity .12s}
.ui-dialog{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);
  width:640px;max-width:calc(100vw - 32px);max-height:calc(100vh - 64px);
  display:none;flex-direction:column;z-index:91;
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;
  box-shadow:0 18px 48px rgba(16,24,40,.18);
  animation:uiPop .14s ease;
}
.ui-dialog.open{display:flex}
.ui-dialog-sm{width:440px}
.ui-dialog.is-closing{opacity:0;transform:translate(-50%,-48%);transition:.12s}
.ui-dialog-head{padding:16px 20px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:10px}
.ui-dialog-head h3{font-size:16px;font-weight:600;color:#1f2937;margin:0}
.ui-dialog-head .spacer{margin-left:auto}
.ui-dialog-body{padding:18px 20px;overflow-y:auto}
.ui-dialog-text{margin:0;color:#374151;font-size:14px;line-height:1.7}
.ui-dialog-foot{padding:14px 20px;border-top:1px solid #e5e7eb;display:flex;gap:8px;justify-content:flex-end}
.ui-dialog .form-grid{gap:14px}
.ui-dialog textarea.textarea{min-height:90px}
.ui-close{
  width:28px;height:28px;border-radius:8px;border:1px solid transparent;background:transparent;
  color:#6b7280;font-size:18px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
}
.ui-close:hover{background:#f3f4f6;color:#1f2937}
@keyframes uiFade{from{opacity:0}to{opacity:1}}
@keyframes uiPop{from{opacity:0;transform:translate(-50%,-46%)}to{opacity:1;transform:translate(-50%,-50%)}}
@media (max-width:640px){
  .ui-dialog,.ui-dialog-sm{width:calc(100vw - 24px);max-height:calc(100vh - 40px)}
}

.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Courier New',monospace;font-size:13px;letter-spacing:0}

/* ---------- 鎴戠殑璁㈠崟锛氬崱鐗囩綉鏍?---------- */
.order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px;padding:0 16px 16px}
.order-card{border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:12px;transition:box-shadow .16s ease,border-color .16s ease}
.order-card:hover{box-shadow:0 4px 16px rgba(16,24,40,.08);border-color:#d8e0ea}
.order-card-top{display:flex;align-items:center;gap:8px;justify-content:space-between}
.order-card-no{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:#6b7280;letter-spacing:.02em}
.order-card-title{font-size:14px;font-weight:600;color:#1f2937;line-height:1.4;margin:-2px 0 0;word-break:break-word}
.order-sec{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.order-kv{border:1px solid #eef1f5;background:#f8fafc;border-radius:8px;padding:8px 10px;min-width:0}
.order-kv .k{font-size:11px;color:#9ca3af;margin-bottom:3px}
.order-kv .v{font-size:13px;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all}
button.order-copy{border:1px solid #eef1f5;background:#f8fafc;border-radius:8px;padding:8px 10px;cursor:pointer;font:inherit;text-align:left;width:100%;transition:background .15s ease,border-color .15s ease}
button.order-copy:hover,button.order-copy:focus-visible{background:#eff6ff;border-color:#bfdbfe;outline:none}
button.order-copy:hover .v{color:#1d4ed8}
button.order-copy .k::after{content:' 路 鐐瑰嚮澶嶅埗';color:#c7cdd6}
.order-card-foot{display:flex;align-items:center;gap:8px;justify-content:space-between;border-top:1px solid #f1f3f6;padding-top:10px;margin-top:auto}
.order-meta{font-size:12px;color:#6b7280;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.order-meta b{font-weight:600;color:#1f2937}
@media (max-width:640px){.order-grid{grid-template-columns:1fr}.order-sec{grid-template-columns:1fr}}button.order-copy-plain{display:block;appearance:none;-webkit-appearance:none;border:0;background:none;padding:0;margin:0;width:100%;text-align:left;cursor:pointer;font:inherit;border-radius:6px}
button.order-copy-plain .v{display:inline-block;padding:1px 5px;margin-left:-5px;border-radius:6px;transition:background .15s ease,color .15s ease}
button.order-copy-plain:hover .v,button.order-copy-plain:focus-visible .v{background:#e8f0ff;color:#1d4ed8}
button.order-copy-plain:focus-visible{outline:2px solid #bfdbfe;outline-offset:2px}
/* ---------- 杞诲脊绐楋細搴曢儴灞呬腑锛屼笉鎸￠《閮ㄥ伐鍏锋爮 ---------- */
/* 杞绘彁绀猴細缁熶竴閽夊湪鍙充笂瑙掞紝浠庡彸渚ф粦鍏?*/
.toasts{
  position:fixed;top:16px;right:16px;left:auto;bottom:auto;transform:none;
  z-index:95;align-items:flex-end;
  width:auto;max-width:min(360px, calc(100vw - 32px));
}
.toast{
  background:#fff;border-color:#e5e7eb;
  box-shadow:0 8px 24px rgba(16,24,40,.14);
  border-radius:10px;padding-left:26px;position:relative;
  animation:toast-in .2s ease;
  max-width:100%;box-sizing:border-box;
}
.toast::before{
  content:'';position:absolute;left:11px;top:50%;transform:translateY(-50%);
  width:7px;height:7px;border-radius:50%;background:#10b981;
}
.toast-err::before{background:#ef4444}
@keyframes toast-in{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@media (max-width:640px){
  .toasts{left:auto;right:10px;top:10px;transform:none;align-items:flex-end}
  .toast{min-width:0;max-width:calc(100vw - 20px)}
}
/* ---------- 鎴戠殑璁㈠崟锛氬崟琛屼竴鏉?+ 澶撮儴鎼滅储瀵归綈 ---------- */
.card-head.order-head{padding:18px;gap:14px;flex-wrap:wrap}
.order-head .order-count{font-size:12px;color:#6b7280;margin-left:2px}
.order-search{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.order-search .input{width:300px;max-width:44vw;height:34px;padding-top:0;padding-bottom:0}
@media (max-width:820px){
  .order-search{width:100%;margin-left:0}
  .order-search .input{flex:1 1 auto;width:auto;max-width:none}
}

.order-grid{grid-template-columns:1fr;gap:10px;padding:14px 18px 18px}
.order-card{display:grid;grid-template-columns:minmax(200px,230px) minmax(300px,1fr) minmax(200px,250px);
  gap:16px 20px;align-items:center;padding:14px 16px}
.oc-main{display:flex;flex-direction:column;gap:6px;min-width:0}
.oc-no-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.oc-no-row .order-card-no{font-size:11.5px}
.oc-main .order-card-title{font-size:13.5px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oc-sec{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.oc-side{display:flex;flex-direction:column;gap:8px;align-items:flex-start;justify-self:end}
.oc-remark{grid-column:1/-1;border-top:1px dashed #eef1f5;padding-top:8px;font-size:12px;color:#6b7280}
@media (max-width:1080px){
  .order-card{grid-template-columns:1fr 1fr;gap:12px 16px}
  .oc-side{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;justify-self:stretch}
}
@media (max-width:640px){
  .order-card{grid-template-columns:1fr;gap:10px}
  .oc-sec{grid-template-columns:1fr}
  .oc-side{grid-column:auto;flex-direction:column;align-items:flex-start}
  .oc-main .order-card-title{white-space:normal}
}
/* ---------- 鎴戠殑璁㈠崟锛氱揣鍑戠増 ---------- */
.card-head.order-head{padding:13px 16px;gap:12px}
.order-head h2{font-size:15px}
.order-head .order-count{font-size:11.5px}
.order-search .input{width:270px;height:32px;font-size:12.5px}
.order-search .btn{height:32px;padding:0 12px;font-size:12.5px}

.order-grid{gap:8px;padding:10px 14px 14px}
.order-card{padding:9px 12px;gap:8px 12px;border-radius:10px;
  grid-template-columns:minmax(175px,220px) minmax(230px,1fr) minmax(160px,200px)}
.oc-main{gap:3px}
.oc-no-row{gap:6px}
.order-card-no{font-size:10.5px}
.oc-main .order-card-title{font-size:12.5px;line-height:1.3}
.oc-sec{gap:6px}
.order-kv{padding:5px 8px;border-radius:7px}
.order-kv .k{font-size:10px;margin-bottom:1px}
.order-kv .v{font-size:12px;line-height:1.35}
.order-copy-plain .v{padding:0 3px;margin-left:-3px}
.oc-side{gap:3px}
.order-meta{font-size:11px;gap:8px;line-height:1.4}
.oc-side .btn-sm{height:26px;padding:0 10px;font-size:11.5px}
.oc-remark-in{font-size:10.5px;color:#9ca3af;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media (max-width:1080px){
  .order-card{grid-template-columns:1fr 1fr;gap:8px 12px}
  .oc-side{grid-column:1/-1;justify-self:stretch;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
}
@media (max-width:640px){
  .order-card{grid-template-columns:1fr}
  .oc-sec{grid-template-columns:1fr}
  .oc-side{grid-column:auto;justify-content:flex-start}
}
.oc-no-row{flex-wrap:nowrap;min-width:0}
.order-card-no{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oc-no-row .badge{flex:none}
.order-meta{flex-wrap:nowrap;white-space:nowrap}

/* 璐﹀彿瀵嗙爜鏍硷細鍘嬫垚涓€琛屽唴鑱旓紝鍘绘帀鐩掑瓙 */
.oc-sec{display:flex;align-items:center;gap:18px;min-width:0;grid-template-columns:none}
.order-kv{display:flex;align-items:baseline;gap:6px;padding:0;border:0;background:none;border-radius:0;min-width:0}
.order-kv .k{font-size:10px;margin:0;flex:none;color:#9ca3af;line-height:1.2}
.order-kv .v{font-size:12px;padding:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.order-copy-plain{margin:0;width:auto;min-width:0;display:inline-flex}
.order-copy-plain .v{padding:0 2px;margin-left:0}
.order-card{grid-template-columns:minmax(175px,215px) minmax(0,1fr) minmax(150px,190px)}
@media (max-width:640px){
  .oc-sec{flex-direction:column;align-items:flex-start;gap:4px}
  .order-kv .v{max-width:100%}
}

/* 璐﹀彿瀵嗙爜鏍硷細鎭㈠鐙珛瀹瑰櫒锛堝皬涓€鍙凤紝淇濇寔鏁撮綈锛?*/
.oc-sec{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:0;align-items:stretch}
.order-kv{display:block;padding:4px 8px;border:1px solid #eef1f5;background:#f7f8fa;border-radius:6px;min-width:0}
.order-kv .k{font-size:10px;margin:0 0 2px;color:#9ca3af;line-height:1.2;display:block}
.order-kv .v{font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none;display:block}
.order-copy-plain{display:block;width:100%;text-align:left;margin:0}
.order-copy-plain .v{padding:0 2px;margin-left:-2px}
.order-card{grid-template-columns:minmax(175px,215px) minmax(300px,1fr) minmax(150px,190px)}
@media (max-width:640px){
  .oc-sec{grid-template-columns:1fr}
}

/* 璐﹀彿瀵嗙爜瀹瑰櫒锛氬搴﹁创鍚堝唴瀹癸紝涓嶆拺婊?*/
.oc-sec{display:flex;align-items:flex-start;gap:8px;min-width:0;grid-template-columns:none}
.oc-sec .order-kv{width:max-content;max-width:100%;flex:0 1 auto;box-sizing:border-box}
.oc-sec .order-kv .v{max-width:190px}
@media (max-width:640px){
  .oc-sec{flex-direction:column;align-items:flex-start;gap:4px;width:100%}
  .oc-sec .order-kv{width:100%}
}

/* 璁㈠崟鍗＄墖锛氱粺涓€ chip 椋庢牸 + 寮规€ц嚜閫傚簲 */
.order-card{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px 14px;padding:10px 14px}
.oc-main{flex:0 1 auto;min-width:0;max-width:260px}
.oc-sec{flex:0 0 auto;display:flex;align-items:flex-start;gap:8px}
.oc-side{margin-left:auto;flex:0 1 auto;display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0}
.oc-stats{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.oc-stats .order-kv{min-width:52px}
.oc-stats .order-kv .v{font-size:12.5px;font-weight:600;color:#1f2937}
.oc-stats .btn-sm{height:26px;padding:0 10px;font-size:11.5px}
.oc-remark-in{max-width:260px;text-align:right}
@media (max-width:1180px){
  .oc-side{margin-left:0;flex:1 0 100%;flex-direction:row;align-items:center;justify-content:space-between}
  .oc-stats{justify-content:flex-start}
  .oc-remark-in{text-align:right}
}
@media (max-width:640px){
  .order-card{flex-direction:column;align-items:flex-start;gap:8px}
  .oc-main{max-width:100%}
  .oc-sec{width:100%;flex-direction:column;gap:4px}
  .oc-sec .order-kv{width:100%}
  .oc-side{margin-left:0;flex:1 0 100%;flex-direction:column;align-items:flex-start;gap:6px;width:100%}
  .oc-stats{justify-content:flex-start;width:100%}
  .oc-remark-in{max-width:100%;text-align:left}
}

/* ===== 璁㈠崟琛細甯﹁〃澶寸殑鍒楀榻愬竷灞€ ===== */
.order-table{
  --oc-cols: minmax(170px,1.15fr) minmax(150px,1.5fr) minmax(90px,1fr) 56px 56px 88px minmax(120px,1.05fr);
  padding:0 0 12px;
}
.order-thead{
  display:grid;grid-template-columns:var(--oc-cols);gap:10px 12px;
  padding:9px 16px;margin:0 0 8px;
  background:#f7f8fa;border:1px solid #eef1f5;border-radius:8px;
  font-size:13.5px;color:#1f2937;font-weight:700;letter-spacing:.02em;
}
.order-thead span{text-align:center}
.order-thead span:first-child{text-align:left}
.order-grid{display:block;padding:0}
.order-card{
  display:grid;grid-template-columns:var(--oc-cols);gap:10px 12px;
  align-items:center;padding:9px 16px;margin-bottom:8px;
  border:1px solid #e5e7eb;border-radius:10px;background:#fff;
  transition:box-shadow .16s ease,border-color .16s ease;
}
.order-card:hover{box-shadow:0 4px 16px rgba(16,24,40,.08);border-color:#d8e0ea}
.oc-cell{min-width:0;display:flex;align-items:center;justify-content:center;text-align:center}
.oc-main{display:flex;flex-direction:column;gap:3px;min-width:0;align-items:flex-start;text-align:left}
.oc-num{font-size:12.5px;font-weight:600;color:#1f2937}
.oc-acc{
  display:inline-flex;flex-direction:column;gap:2px;
  padding:4px 8px;border:1px solid #eef1f5;background:#f7f8fa;border-radius:6px;
  max-width:100%;text-align:left;
}
.oc-acc .k{font-size:10px;color:#9ca3af;line-height:1.2}
.oc-acc .v{font-size:12px;line-height:1.35;white-space:nowrap;max-width:none}
.oc-acc .order-copy-plain{display:block;width:100%;text-align:left;margin:0}
.oc-acc .order-copy-plain .v{padding:0 2px;margin-left:-2px}
.oc-remark-in{font-size:11.5px;color:#6b7280;line-height:1.4;justify-content:center}
.order-thead .th-remark{justify-self:center}
.oc-no-row{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}
.order-card-no{font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oc-main .order-card-title{font-size:12.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

@media (max-width:1180px){
  .order-thead{display:none}
  .order-card{grid-template-columns:1fr 1fr;gap:8px 12px}
  .oc-main{grid-column:1/-1}
  .oc-cell{justify-content:flex-start;text-align:left}
}
@media (max-width:640px){
  .order-card{grid-template-columns:1fr}
  .oc-main{grid-column:auto}
  .oc-acc{width:100%}
}

.oc-cell>.oc-acc{width:max-content;max-width:100%;box-sizing:border-box}
.oc-cell{flex:1 1 auto}

.oc-acc{align-items:center;text-align:center}
.oc-acc .k{text-align:center;width:100%}
.oc-acc .order-copy-plain{text-align:center}
.oc-acc .v{text-align:center}

/* 璐﹀彿瀵嗙爜锛氬幓鎺夋爣绛撅紝鍙暀鏁版嵁锛涜〃鏍煎乏鍙抽摵婊?*/
.oc-acc{padding:5px 10px;display:inline-flex;align-items:center;justify-content:center}
.oc-acc .v{font-size:12.5px;line-height:1.3}
.order-table .order-thead{border-radius:8px}
.order-table .order-card{border-radius:8px}

/* 鍒楀唴鏁版嵁缁熶竴宸﹀榻愶紙鏁板€煎垪灞呬腑锛夛紝涓庤〃澶村悓鍩虹嚎 */
.order-thead span{text-align:left;padding-left:2px}
.order-thead span:nth-child(4),
.order-thead span:nth-child(6){text-align:center;padding-left:0}
.order-table .oc-cell{justify-content:flex-start;text-align:left}
.order-table .order-card>.oc-cell:nth-child(4),
.order-table .order-card>.oc-cell:nth-child(6){justify-content:center;text-align:center}
.order-table .oc-acc{margin-left:0}
.order-table .oc-remark-in{justify-content:flex-start;text-align:left}

/* 鎻愪氦椤碉細妗ｆ妯℃澘閫夋嫨 */
.tpl-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.tpl-card{
  position:relative;display:flex;flex-direction:column;gap:6px;
  padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;
  cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.tpl-card input{position:absolute;opacity:0;pointer-events:none}
.tpl-card:hover{border-color:#c7d7f0;box-shadow:0 2px 10px rgba(16,24,40,.06)}
.tpl-card.is-on{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 1px #2563eb inset}
.tpl-name{font-size:13px;font-weight:600;color:#1f2937;line-height:1.35}
.tpl-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;color:#6b7280}
.tpl-pts{color:#2563eb;font-weight:500}
.tpl-pts b{font-size:13px}
.tpl-card:has(input:checked){border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 1px #2563eb inset}

/* ===== 鎻愪氦椤碉細璐﹀彿鏉?/ 棰樼洰鍧?/ 搴曢儴鎿嶄綔 ===== */
.acc-card .card-head{padding:11px 16px}
.acc-tip{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#9ca3af}
.acc-strip{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px 14px}
.acc-item{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;background:#f7f8fa;border:1px solid #eef1f5;border-radius:8px;
}
.acc-k{font-size:11px;color:#9ca3af;line-height:1}
.acc-v{font-size:13.5px;font-weight:600;color:#1f2937;line-height:1.2;letter-spacing:.01em}
.acc-copy{
  border:1px solid #e5e7eb;background:#fff;color:#2563eb;
  font-size:11px;line-height:1;padding:3px 7px;border-radius:5px;cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.acc-copy:hover{background:#eff6ff;border-color:#bfdbfe}

.tpl-note{font-size:12px;margin:10px 0 0;color:#9ca3af}

.q-block{padding:15px 0;border-bottom:1px solid #eef1f5}
.q-block:first-child{padding-top:2px}
.q-block:last-child{border-bottom:0;padding-bottom:0}
.q-head{display:flex;align-items:center;gap:8px;margin-bottom:11px}
.q-no{
  flex:0 0 auto;width:22px;height:22px;border-radius:7px;
  background:#eff6ff;color:#2563eb;font-size:12px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;
}
.q-text{font-size:14.5px;font-weight:600;color:#1f2937;line-height:1.45}
.q-req,.q-opt{
  flex:0 0 auto;font-size:10.5px;line-height:1;padding:3px 6px;border-radius:4px;font-weight:500;
}
.q-req{color:#dc2626;background:#fef2f2;border:1px solid #fee2e2}
.q-opt{color:#9ca3af;background:#f7f8fa;border:1px solid #eef1f5}
.q-body{padding-left:30px}
.q-body .input{height:42px;font-size:14px;padding:0 12px}
.q-body .uploader{padding:22px 14px}
.q-body .uploader div{font-size:13.5px}
.q-body .uploader small{font-size:11.5px}

.q-opts{display:flex;flex-wrap:wrap;gap:8px}
.q-opt-item{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  padding:8px 14px 8px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;
  font-size:13.5px;color:#374151;transition:border-color .15s ease,background .15s ease;
}
.q-opt-item:hover{border-color:#bfdbfe;background:#f8fbff}
.q-opt-item input{width:15px;height:15px;accent-color:#2563eb;cursor:pointer}
.q-opt-item:has(input:checked){border-color:#2563eb;background:#eff6ff;color:#1e40af;font-weight:600}

.tpl-card{padding:12px 13px;gap:7px}
.tpl-name{font-size:13.5px}
.tpl-meta{font-size:12px}
.tpl-pts b{font-size:14px}

.form-foot{
  display:flex;align-items:center;gap:14px;
  margin-top:18px;padding-top:16px;border-top:1px solid #eef1f5;
}
.form-foot .weak{font-size:12px}
.btn-lg{height:40px;padding:0 22px;font-size:14px}

.acc-card{margin-bottom:14px}
form>.card{margin-bottom:14px}
form>.card:last-of-type{margin-bottom:0}

/* ===== 涓婁紶缂╃暐鍥撅細搴忓彿 / 鏌ョ湅澶у浘 / 鍒犻櫎 ===== */
.thumbs{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:12px;align-items:start}
.thumbs:empty{display:none}
.thumb-wrap{display:flex;flex-direction:column;gap:5px;min-width:0}
.thumb{
  display:flex;flex-direction:column;
  border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;
  background:#f7f8fa;aspect-ratio:1/1;box-shadow:0 1px 3px rgba(16,24,40,.06);
}
.thumb-bar{
  flex:0 0 26px;display:flex;align-items:center;justify-content:space-between;
  padding:0 6px;background:#f7f8fa;border-bottom:1px solid #eef1f5;
}
.thumb-no{
  min-width:19px;height:19px;padding:0 5px;border-radius:5px;
  background:#2563eb;color:#fff;font-size:11px;font-weight:700;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
}
.thumb-del{
  width:19px;height:19px;padding:0;border:0;border-radius:50%;
  background:#e5e7eb;color:#6b7280;font-size:13px;line-height:1;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .15s,color .15s;
}
.thumb-del:hover{background:#dc2626;color:#fff}
.thumb img{
  flex:1 1 auto;min-height:0;width:100%;display:block;
  object-fit:contain;object-position:center;background:#fff;cursor:zoom-in;
}
.thumb-view{
  display:block;width:100%;height:26px;padding:0;
  border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#2563eb;
  font-size:11.5px;line-height:1;cursor:pointer;transition:background .15s,border-color .15s;
}
.thumb-view:hover{background:#eff6ff;border-color:#bfdbfe}

.img-viewer{
  position:fixed;inset:0;z-index:9999;background:rgba(17,24,39,.78);
  display:flex;align-items:center;justify-content:center;padding:44px;cursor:zoom-out;
}
.img-viewer img{
  max-width:92vw;max-height:86vh;object-fit:contain;
  border-radius:10px;background:#fff;box-shadow:0 16px 56px rgba(0,0,0,.45);
}
.img-viewer-x{
  position:fixed;top:18px;right:22px;width:36px;height:36px;border:0;border-radius:50%;
  background:rgba(255,255,255,.94);color:#1f2937;font-size:20px;line-height:1;cursor:pointer;
}
.img-viewer-x:hover{background:#fff}

/* ===== 鎻愪氦璇存槑锛氬瘜鏂囨湰鍗＄墖 + wangEditor 瀹瑰櫒 ===== */
.notice-card{margin-bottom:14px}
.notice-card .card-head{background:#f8fbff;border-bottom-color:#e0edff}
.notice-card .card-head h2{color:#1e40af}

.rich-text{font-size:13.5px;line-height:1.78;color:#374151;word-break:break-word}
.rich-text p{margin:0 0 8px}
.rich-text p:last-child{margin-bottom:0}
.rich-text h1,.rich-text h2,.rich-text h3,.rich-text h4{margin:14px 0 8px;font-weight:600;color:#1f2937;line-height:1.4}
.rich-text h1{font-size:17px}
.rich-text h2{font-size:16px}
.rich-text h3{font-size:15px}
.rich-text h4{font-size:14px}
.rich-text ul,.rich-text ol{margin:0 0 8px;padding-left:22px}
.rich-text li{margin:3px 0}
.rich-text blockquote{
  margin:8px 0;padding:8px 12px;border-left:3px solid #bfdbfe;
  background:#f8fbff;color:#4b5563;border-radius:0 6px 6px 0;
}
.rich-text a{color:#2563eb;text-decoration:underline}
.rich-text a:hover{color:#1d4ed8}
.rich-text strong,.rich-text b{color:#1f2937;font-weight:600}
.rich-text hr{border:0;border-top:1px solid #e5e7eb;margin:12px 0}
.rich-text code{padding:1px 5px;border-radius:4px;background:#f3f4f6;font-size:12.5px}
.rich-text img{max-width:100%;border-radius:8px}

.wangeditor-host{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff}
.wangeditor-host .w-e-toolbar{border-bottom:1px solid #eef1f5 !important;background:#f7f8fa !important}
.wangeditor-host .w-e-text-container{min-height:240px;background:#fff !important}
.wangeditor-host .w-e-text p{margin:0 0 8px}

/* ===== 寮圭獥鍙粴鍔細form 鎾戞弧 + body 鍐呴儴婊氬姩 + 缂栬緫鍣ㄩ檺楂?===== */
.ui-dialog{
  max-height:calc(100vh - 40px);
}
.ui-dialog>form{
  display:flex;flex-direction:column;
  min-height:0;max-height:100%;overflow:hidden;
}
.ui-dialog-head,.ui-dialog-foot{flex:0 0 auto;background:#fff}
.ui-dialog-body{
  flex:1 1 auto;min-height:0;
  overflow-y:auto;overscroll-behavior:contain;
}
.ui-dialog-foot{border-top:1px solid #e5e7eb}
/* 缂栬緫鍣ㄥ湪寮圭獥閲岄檺楂橈紝鍒妸寮圭獥椤跺嚭灞忓箷 */
.ui-dialog .wangeditor-host{flex:0 0 auto}
.ui-dialog .w-e-text-container{height:220px !important;min-height:220px !important;overflow-y:auto}
.ui-dialog .w-e-toolbar{flex-wrap:wrap !important}

/* ===== 浠诲姟瀹℃牳锛? 鍒?KPI + 瀹藉脊绐?+ 鍗曞眰婊氬姩 + 鍥剧墖鐏 ===== */
.kpi-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.kpi-grid--3 .kpi{padding:14px 18px;gap:13px;border-radius:10px;transition:border-color .15s,box-shadow .15s}
.kpi-grid--3 .kpi:hover{border-color:#dbeafe;box-shadow:0 4px 14px rgba(37,99,235,.08)}
.kpi-grid--3 .kpi-icon{width:36px;height:36px;border-radius:9px}
.kpi-grid--3 .kpi-value{font-size:26px;line-height:1.15}
.kpi-grid--3 .kpi-label{font-size:11.5px}

.rv-panel{
  width:min(1120px,100%);
  max-height:min(92vh,980px);
  overflow:hidden;display:flex;flex-direction:column;
  border-radius:14px;
}
.rv-head{position:static;flex:0 0 auto;padding:16px 24px;background:#fff;border-bottom:1px solid #eef1f5}
.rv-head h3{font-size:17px}
.rv-sub{margin-top:3px;font-size:12px;color:#6b7280}
.rv-x{border-radius:8px}
.rv-main{display:grid;grid-template-columns:minmax(0,1fr) 336px;flex:1 1 auto;min-height:0}
.rv-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px 18px;gap:13px}
.rv-side{
  min-height:0;overflow-y:auto;overscroll-behavior:contain;
  border-left:1px solid #eef1f5;background:#fcfdff;
  padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;
}
.kv-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.kv{padding:7px 10px;border-radius:7px;background:#f8fafc;min-width:0}
.kv span{font-size:10.5px;color:#9ca3af;letter-spacing:.02em;line-height:1.2}
.kv b{font-size:12.5px;color:#1f2937;font-weight:600;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cred-box{padding:11px 14px;border-radius:8px}
.answer-list{max-height:none;overflow:visible;padding-right:0;gap:12px}
.answer-item{padding:12px 14px;border:1px solid #eef1f5;border-bottom:1px solid #eef1f5;border-radius:9px;background:#fff}
.answer-item:last-child{padding-bottom:12px;border-bottom:1px solid #eef1f5}
.answer-q{font-size:12.5px;color:#6b7280;margin-bottom:6px}
.answer-a{font-size:14px;line-height:1.65}
.rv-side .rv-form{border-top:0;margin:0;padding:0;background:transparent;display:flex;flex-direction:column;gap:12px;height:100%}
.rv-side .form-grid{grid-template-columns:1fr 1fr;gap:10px}
.rv-side .field label{font-size:12px;color:#6b7280}
.rv-side .textarea{min-height:96px}
.rv-side .rv-actions{
  position:static;margin:auto 0 0;padding:12px 0 0;
  border-top:1px solid #eef1f5;background:transparent;
  flex-direction:column;gap:8px;
}
.rv-side .rv-actions .btn{width:100%;justify-content:center}
.rv-result{border-radius:8px}
.rv-thumbs{grid-template-columns:repeat(auto-fill,minmax(124px,152px));gap:10px;margin-top:10px}
.rv-thumbs .thumb{aspect-ratio:4/3}
.rv-thumbs .thumb-link{flex:1 1 auto;min-height:0;display:block;overflow:hidden;background:#fff}
.rv-thumbs .thumb img{width:100%;height:100%;object-fit:contain;display:block;cursor:zoom-in}

@media (max-width:1180px){
  .kv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .kpi-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rv-panel{width:100%;max-height:92vh;border-radius:12px 12px 0 0}
  .rv-main{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
  .rv-side{border-left:0;border-top:1px solid #eef1f5;max-height:52vh}
  .kv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rv-body{padding:14px 16px 16px}
}
@media (max-width:560px){
  .kpi-grid--3{grid-template-columns:1fr}
  .kv-grid{grid-template-columns:1fr 1fr}
  .rv-actions .btn{flex:1 1 100%}
}

/* ===== 璐﹀彿搴撳瓨锛氫换鍔¤鍐呭姞搴撳瓨 / 鐪嬭处鍙峰簱 ===== */
.stock-table td{vertical-align:middle}
.stock-table tr.is-current{background:#f5f9ff}
.stock-table tr.is-current td:first-child{box-shadow:inset 3px 0 0 #2563eb}
.stock-task{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.stock-task-id{
  flex:0 0 auto;font-size:11.5px;font-weight:700;color:#2563eb;
  background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;padding:1px 7px;
}
.stock-task-title{
  font-size:13.5px;color:#1f2937;font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.stock-warn{
  flex:0 0 auto;font-size:10.5px;color:#b45309;background:#fffbeb;
  border:1px solid #fde68a;border-radius:5px;padding:1px 6px;line-height:1.6;
}
.stock-avail{font-size:15px;font-weight:700;color:#2563eb;font-variant-numeric:tabular-nums}
.stock-zero{font-size:15px;font-weight:700;color:#d1d5db;font-variant-numeric:tabular-nums}
.stock-table .btn + .btn{margin-left:6px}

.stock-seg{
  display:inline-flex;padding:3px;gap:3px;margin-bottom:16px;
  background:#f3f4f6;border:1px solid #e5e7eb;border-radius:9px;
}
.stock-seg-btn{
  height:30px;padding:0 14px;border:0;border-radius:7px;background:transparent;
  color:#6b7280;font-size:13px;cursor:pointer;transition:background .15s,color .15s;
}
.stock-seg-btn:hover{color:#1f2937}
.stock-seg-btn.is-on{background:#fff;color:#2563eb;font-weight:600;box-shadow:0 1px 3px rgba(16,24,40,.10)}
.stock-form{display:block}
.stock-form[hidden]{display:none}
@media (max-width:720px){
  .stock-table .btn{width:100%;margin:0 0 6px !important}
  .stock-task{flex-wrap:wrap}
}

/* 璐﹀彿搴擄細鎼滅储鏉?+ 鏄庢枃瀛楁 */
.stock-toolbar{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:12px 16px;border-bottom:1px solid #eef1f5;background:#fcfdff;
}
.stock-search{display:flex;align-items:center;gap:8px;flex:1 1 320px;min-width:0;color:#9ca3af}
.stock-search .input{flex:1 1 auto;min-width:0;height:34px}
.stock-search .btn{height:34px;flex:0 0 auto}
.stock-note{padding:7px 16px;background:#fffbeb;border-bottom:1px solid #fde68a;color:#b45309;font-size:12px}
.stock-list code.stock-cell{
  font-size:12.5px;padding:1px 6px;border-radius:5px;
  background:#f6f8fb;border:1px solid #eef1f5;color:#1f2937;white-space:nowrap;
}
.btn.is-on{background:#eff6ff;border-color:#bfdbfe;color:#2563eb}

/* 鎵归噺瀵煎叆棰勮 */
.stock-preview{border:1px solid #eef1f5;border-radius:9px;overflow:hidden;margin-bottom:4px}
.stock-preview-head{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:9px 12px;background:#fcfdff;border-bottom:1px solid #eef1f5;font-size:13px;color:#1f2937;
}
.stock-preview-sum{color:#6b7280;font-size:12px}
.stock-preview-sum b{color:#1f2937}
.stock-preview-wrap{max-height:240px;overflow-y:auto;overscroll-behavior:contain}
.stock-preview-table{font-size:12.5px}
.stock-preview-table th{position:sticky;top:0;z-index:1;background:#f8fafc;font-size:11.5px;font-weight:600;color:#6b7280}
.stock-preview-table td{vertical-align:middle}
.stock-preview tr.is-bad td{background:#fff7f7}
.stock-sep{
  font-size:11px;font-family:ui-monospace,Consolas,monospace;color:#6b7280;
  background:#f3f4f6;border-radius:5px;padding:1px 6px;
}
.stock-ok{color:#059669;font-weight:600;font-size:12px}
.stock-bad{color:#dc2626;font-weight:600;font-size:12px}

/* 鍔犲簱瀛樺脊绐楋細鍔犲 + 鎾戞弧瑙嗗彛 + 涓婁笅鑷€傚簲 */
.stock-dialog{width:min(1180px, calc(100vw - 32px)); height:min(820px, calc(100vh - 48px))}
.stock-dialog > form{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.stock-dialog .ui-dialog-body{
  display:flex;flex-direction:column;gap:12px;
  padding:16px 20px;overflow:hidden;
}
.stock-hint{flex:0 0 auto;font-size:12.5px;color:#6b7280;line-height:1.7}
.stock-hint code{
  font-family:ui-monospace,Consolas,monospace;font-size:11.5px;
  padding:1px 5px;border-radius:4px;background:#f3f4f6;color:#374151;
}
.stock-dialog .stock-lines{
  flex:1 1 auto;min-height:110px;margin:0;resize:none;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12.5px;line-height:1.75;
}
.stock-dialog .ui-dialog-body.is-preview .stock-lines{flex:0 0 28%;min-height:96px}
.stock-dialog .stock-preview{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0}
.stock-dialog .stock-preview[hidden]{display:none}
.stock-dialog .stock-preview-wrap{flex:1 1 auto;min-height:80px;max-height:none;overflow-y:auto}
.stock-foot-hint{margin-right:auto;align-self:center;font-size:12px;color:#9ca3af}
@media (max-width:760px){
  .stock-dialog{width:calc(100vw - 16px);height:calc(100vh - 24px)}
  .stock-dialog .stock-lines{min-height:90px}
  .stock-foot-hint{display:none}
}

/* 浠诲姟瀹℃牳锛氱姸鎬佸垎娈垫帶浠?*/
.rv-filter-bar{gap:12px}
.review-seg{
  display:inline-flex;padding:3px;gap:2px;
  background:#f3f4f6;border:1px solid #e5e7eb;border-radius:9px;
}
.review-seg-btn{
  display:inline-flex;align-items:center;gap:6px;
  height:32px;padding:0 13px;border-radius:7px;
  color:#6b7280;font-size:13px;text-decoration:none;white-space:nowrap;
  transition:background .15s,color .15s,box-shadow .15s;
}
.review-seg-btn:hover{color:#1f2937;background:#e9ebef}
.review-seg-btn.is-on{background:#fff;color:#2563eb;font-weight:600;box-shadow:0 1px 3px rgba(16,24,40,.10)}
.review-seg-num{
  min-width:18px;padding:0 5px;height:18px;line-height:18px;text-align:center;box-sizing:border-box;
  font-size:11px;font-weight:600;border-radius:9px;background:#e5e7eb;color:#6b7280;
  font-variant-numeric:tabular-nums;
}
.review-seg-btn.is-on .review-seg-num{background:#eff6ff;color:#2563eb}
.rv-filter-form{margin-left:auto;flex:0 1 520px;min-width:260px}
@media (max-width:900px){
  .rv-filter-form{margin-left:0;flex:1 1 100%}
  .review-seg{width:100%;justify-content:space-between}
  .review-seg-btn{flex:1 1 auto;justify-content:center;padding:0 8px}
}

/* ===== 鍒楄〃锛氬浐瀹氬鍣ㄩ珮搴?+ 婊氬姩鎳掑姞杞斤紙鍏ㄧ珯缁熶竴锛?===== */
[hidden]{display:none !important}

.table-wrap{
  max-height:calc(100vh - 300px);
  overflow:auto;
  overscroll-behavior:contain;
}
.table-wrap.stock-preview-wrap{max-height:240px;min-height:0}
table.data thead th{position:sticky;top:0;z-index:3}

.lazy-bar{
  flex:0 0 auto;padding:6px 14px;text-align:center;font-size:11.5px;line-height:1.5;
  color:#9ca3af;background:#fcfdff;border-top:1px dashed #e5e7eb;
}
.lazy-bar b{color:#2563eb;font-weight:600}
.lazy-bar.is-done{color:#c3c7ce;background:transparent;border-top-color:transparent}
.lazy-bar.is-done b{color:#9ca3af}

@media (max-width:900px){
  .table-wrap{max-height:none}
  .lazy-bar{display:none}
}

/* ===== 鍒楄〃椤碉細鏁撮〉涓嶆粴锛屽垪琛ㄥ悆婊″墿浣欓珮搴?===== */
body.list-fit{height:100vh;overflow:hidden}
body.list-fit .app,
body.list-fit .main{height:100vh;min-height:0}
body.list-fit .content{
  display:flex;flex-direction:column;min-height:0;
  overflow-y:auto;overscroll-behavior:contain;
}
body.list-fit .content > *{flex:0 0 auto}
/* 鎻愪氦琛ㄥ崟鍙槸澹冲瓙锛屽竷灞€涓婁笉鍗犱綅锛涘惁鍒欏垪琛ㄥ崱鐗囦笉鏄?content 鐨勭洿鎺ュ瓙椤癸紝涓嬮潰鐨?flex 閾惧叏鏂?*/
body.list-fit .content > form{display:contents}
body.list-fit .content .list-fit-card{
  flex:1 1 auto;min-height:200px;margin-bottom:0;padding-bottom:0;
  display:flex;flex-direction:column;overflow:hidden;
}
body.list-fit .list-fit-card > .table-wrap,
body.list-fit .list-fit-card > .rv-cards{border-bottom-left-radius:10px;border-bottom-right-radius:10px}
body.list-fit .list-fit-card > .table-wrap{
  flex:1 1 auto;min-height:0;max-height:none;
}
body.list-fit .list-fit-card > .rv-cards{
  flex:1 1 auto;min-height:0;max-height:none;height:auto;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  scrollbar-gutter:stable;
  /* grid 鍦ㄥ浐瀹氶珮搴︾殑瀹瑰櫒閲屼細鎶婇殣寮忚鍘嬫墎锛屾敼鎴愬垪鍚?flex锛屽崱鐗囨寜鍐呭鑷韩楂樺害鎺?*/
  display:flex;flex-direction:column;gap:12px;
}
body.list-fit .list-fit-card > .rv-cards > .rv-card{flex:0 0 auto;align-self:stretch}
/* 鍒楄〃閾哄埌搴曪紝搴曢儴鍒啀鐣?content 鐨勫唴杈硅窛 */
/* 列表铺到底，但底部必须留出行距：最后一条数据不贴着视口底边 */
body.list-fit .content{padding-bottom:18px}
/* 表体自身滚动时，最后一行与卡片底边之间也留一点呼吸 */
body.list-fit .list-fit-card > .table-wrap{padding-bottom:8px}
body.list-fit .list-fit-card > .rv-cards{padding-bottom:8px}
body.list-fit .list-fit-card > .lazy-bar{padding:3px 14px;font-size:11px;line-height:1.4}
@media (max-width:900px){
  body.list-fit{height:auto;overflow:visible}
  body.list-fit .app,
  body.list-fit .main{height:auto}
  body.list-fit .content{display:block;overflow:visible}
  body.list-fit .content .list-fit-card{display:block;min-height:0}
}

/* ===== 鎿嶄綔鎸夐挳锛氳涔夐厤鑹诧紙娴呰壊搴?+ 鍚岃壊瀛楋級 ===== */
.btn-tone-neutral{background:#f1f5f9;border-color:#e2e8f0;color:#475569}
.btn-tone-neutral:hover{background:#e8eef6;border-color:#cbd5e1}
.btn-tone-info{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.btn-tone-info:hover{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}
.btn-tone-success{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.btn-tone-success:hover{background:#d1fae5;border-color:#6ee7b7;color:#047857}
.btn-tone-danger{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.btn-tone-danger:hover{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}
.btn-tone-warn{background:#fffbeb;border-color:#fde68a;color:#b45309}
.btn-tone-warn:hover{background:#fef3c7;border-color:#fcd34d;color:#b45309}

/* 鎿嶄綔鍒楋細鍚岃壊绯绘寜閽帓鎴愪竴琛岋紝闂磋窛鏀剁揣 */
table.data td .btn + .btn,
.rv-card .btn + .btn{margin-left:6px}

/* ===== 鎵归噺瀹℃牳锛氬嬀閫夋爮 / 鎵规璁板綍 ===== */
.rv-batch-bar{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:10px 16px;margin-bottom:12px;
  background:#fff;border:1px solid #e5e7eb;
  border-radius:10px;
}
.rv-sel-info{display:flex;align-items:center;gap:16px;font-size:12.5px;color:#6b7280}
.rv-sel-all{display:inline-flex;align-items:center;gap:7px;cursor:pointer;user-select:none;color:#1f2937}
.rv-sel-all .rv-check{margin:0}
.rv-sel-count b{font-size:14px;font-weight:700;color:#1d4ed8;margin:0 3px}
.rv-all-hint{color:#3b82f6}
.rv-batch-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
/* 没选中东西时动作按钮变灰留在原位，界面不跳 */
.rv-batch-bar .btn[disabled],
.rv-batch-bar .btn:disabled{
  opacity:.45;cursor:not-allowed;box-shadow:none;
}
.rv-batch-bar .btn[disabled]:hover,
.rv-batch-bar .btn:disabled:hover{transform:none;box-shadow:none}
.rv-check{
  width:15px;height:15px;margin:0;flex:0 0 auto;
  accent-color:#2563eb;cursor:pointer;
}
.rv-userline .rv-check{margin-right:0}
.rv-userline .rv-name{flex:0 1 auto;min-width:0}
.rv-cell-user{padding-left:4px;padding-right:4px}
.rv-cell-user .rv-userline{gap:6px}
.rv-batch-num{
  display:inline-block;min-width:18px;padding:0 5px;margin-left:4px;
  font-size:11px;line-height:17px;text-align:center;border-radius:9px;
  background:#dbeafe;color:#1d4ed8;font-weight:600;
}
/* 鎵规鍒楄〃 */
.rv-batch-no{font-size:11.5px;letter-spacing:.01em;color:#374151;background:#f3f4f6;
  padding:2px 7px;border-radius:6px;border:1px solid #e5e7eb}
.rv-batch-tag{display:inline-block;padding:2px 8px;font-size:11.5px;line-height:1.6;
  border-radius:6px;border:1px solid;white-space:nowrap}
.rv-batch-tag.is-ok{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.rv-batch-tag.is-bad{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.rv-batch-tag.is-warn{background:#fffbeb;border-color:#fde68a;color:#b45309}
.rv-batch-ok{color:#047857;font-weight:600}
.rv-batch-skip{color:#b45309;font-weight:600}
.rv-batch-scope{font-size:12px;color:#6b7280;max-width:280px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.rv-batch-scope-line{font-size:12px;color:#6b7280}
.rv-batch-note{font-size:12px;color:#6b7280;max-width:220px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.rv-batch-table .rv-cell-title{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-batch-table tr.is-skipped{background:#fffdf5}
.rv-batch-table tr.is-skipped td{color:#92400e}
.rv-cred-only{font-weight:600;color:#1f2937}
.rv-cred-only::before{content:none}
.rv-batch-kpi{margin-bottom:14px}
/* 鍒嗛〉 */
.rv-pager{display:flex;align-items:center;justify-content:center;gap:6px;
  padding:14px 16px;border-top:1px solid var(--border);flex-wrap:wrap}
.rv-pager-btn{display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;height:30px;padding:0 8px;border-radius:8px;
  border:1px solid var(--border);background:#fff;color:#4b5563;font-size:13px}
.rv-pager-btn:hover{border-color:#bfdbfe;color:#1d4ed8;background:#eff6ff}
.rv-pager-btn.is-on{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:600}
.rv-pager-gap{color:#9ca3af;padding:0 2px}
/* 鎵归噺澶勭悊涓殑閬僵锛氭槑纭憡璇夌敤鎴疯繕鍦ㄨ窇 */
.rv-busy{
  position:fixed;inset:0;z-index:96;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.74);
}
.rv-busy[hidden]{display:none}
.rv-busy-box{
  display:flex;align-items:center;gap:12px;padding:16px 22px;background:#fff;
  border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px rgba(16,24,40,.16);
}
.rv-busy-spin{
  width:16px;height:16px;border-radius:50%;flex:0 0 auto;
  border:2px solid #dbeafe;border-top-color:#2563eb;animation:rv-spin .7s linear infinite;
}
@keyframes rv-spin{to{transform:rotate(360deg)}}
.rv-busy-text{font-size:13px;color:#1f2937;white-space:nowrap}
.btn[disabled]{opacity:.55;cursor:not-allowed;pointer-events:none}

/* ===== 鎺ュ崟澶у巺锛堜换鍔″崱 + 鎴戠殑璁㈠崟鍚堝苟锛?===== */
.mk-head h1{margin-bottom:2px}
.mk-kpi{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}

.mk-section{margin-top:18px}
.mk-section-head{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px;
}
.mk-section-head h2{font-size:16px;margin:0;color:#1f2937}
.mk-section-head .weak{font-size:12.5px;color:#9ca3af}

/* 浠诲姟鍗＄綉鏍?*/
.mk-grid{
  display:grid;gap:12px;
  grid-template-columns:repeat(auto-fill,minmax(268px,1fr));
}
.mk-task{
  display:flex;flex-direction:column;gap:10px;
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;
  padding:14px;box-shadow:0 1px 3px rgba(16,24,40,.05);
  transition:border-color .16s ease,box-shadow .16s ease;
}
.mk-task:hover{border-color:#bfdbfe;box-shadow:0 4px 16px rgba(37,99,235,.09)}
.mk-task.is-empty{background:#fbfcfd}
.mk-task-top{display:flex;align-items:flex-start;gap:8px}
.mk-task-title{
  font-size:14.5px;font-weight:600;color:#1f2937;line-height:1.35;flex:1;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.mk-stock{
  flex:0 0 auto;font-size:11.5px;line-height:1.6;padding:1px 8px;border-radius:999px;
  border:1px solid transparent;white-space:nowrap;
}
.mk-stock.ok{background:#ecfdf5;color:#059669;border-color:#a7f3d0}
.mk-stock.bad{background:#fef2f2;color:#dc2626;border-color:#fecaca}

.mk-task-desc{
  font-size:12.5px;color:#6b7280;line-height:1.5;height:38px;overflow:hidden;
}
.mk-task-meta{display:flex;gap:14px;flex-wrap:wrap}
.mk-meta{display:flex;flex-direction:column;gap:1px;min-width:0}
.mk-meta i{font-style:normal;font-size:11px;color:#9ca3af}
.mk-meta b{font-size:13px;font-weight:600;color:#1f2937;white-space:nowrap}

.mk-bar{
  height:4px;border-radius:999px;background:#f1f5f9;overflow:hidden;
}
.mk-bar span{display:block;height:100%;border-radius:999px;background:#93c5fd}
.mk-task:hover .mk-bar span{background:#2563eb}

.mk-buy{
  width:100%;height:34px;font-size:13px;border-radius:8px;
}

/* 璁㈠崟鍖?*/
.mk-order-search{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.mk-order-search .input{width:280px;max-width:42vw;height:32px;padding-top:0;padding-bottom:0}

.mk-tabs{
  display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;
}
.mk-tab{
  display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:999px;
  font-size:13px;color:#6b7280;background:#f7f8fa;border:1px solid #e5e7eb;
  text-decoration:none;transition:.15s;
}
.mk-tab:hover{color:#2563eb;border-color:#bfdbfe;background:#eff6ff}
.mk-tab.is-on{background:#eff6ff;color:#2563eb;border-color:#bfdbfe;font-weight:600}
.mk-tab{gap:6px;line-height:1}
.mk-tab .n{
  font-style:normal;font-size:11px;font-weight:600;line-height:1;
  min-width:18px;padding:2px 5px;border-radius:999px;
  background:#eef2f7;color:#64748b;text-align:center;
  font-variant-numeric:tabular-nums;
}
.mk-tab:hover .n{background:#dbeafe;color:#2563eb}
.mk-tab.is-on .n{background:#2563eb;color:#fff}
.mk-tab .n:empty{display:none}

.mk-orders{padding-bottom:0}
.mk-orders .order-grid{padding-top:0}

@media (max-width:900px){
  .mk-grid{grid-template-columns:1fr}
  .mk-order-search{margin-left:0;width:100%}
  .mk-order-search .input{width:100%;max-width:none}
}

/* ===== 鍙帴浠诲姟锛氭爣鍑嗚〃鏍?===== */
.mk-table{padding:0;overflow:hidden}
.mk-thead,.mk-tr{
  display:grid;
  grid-template-columns:minmax(150px,1fr) minmax(260px,3.6fr) 84px minmax(104px,.6fr) 96px;
  align-items:center;gap:16px;padding:11px 18px;
}
.mk-thead{
  background:#f7f8fa;border-bottom:1px solid #e5e7eb;
  font-size:13.5px;color:#1f2937;font-weight:700;letter-spacing:.02em;
}
.mk-tr{border-bottom:1px solid #f1f3f6;transition:background .14s}
.mk-tr:last-child{border-bottom:0}
.mk-tr:hover{background:#fcfdff}

.mk-td-name{display:flex;flex-direction:column;gap:1px;min-width:0}
.mk-td-name .t{
  font-size:13.5px;font-weight:600;color:#1f2937;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.mk-td-desc{
  font-size:12.5px;font-weight:500;color:#1f2937;line-height:1.45;
  min-width:0;
  background:#f7f9fc;border-left:2px solid #93c5fd;border-radius:0 5px 5px 0;
  padding:4px 9px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;word-break:break-word;
}
.mk-td-desc .weak{color:#b6bcc6;font-weight:400}

.mk-td-cost{display:flex;align-items:baseline;gap:3px}
.mk-td-cost b{font-size:15px;font-weight:700;color:#1f2937;font-variant-numeric:tabular-nums}
.mk-td-cost i{font-style:normal;font-size:11px;color:#9ca3af}

.mk-td-stock{display:flex;flex-direction:column;gap:5px;min-width:0}
.mk-td-stock .st{font-size:12px;color:#6b7280}
.mk-td-stock .st.ok{color:#059669}
.mk-td-stock .st.bad{color:#dc2626}
.mk-td-stock .bar{height:4px;background:#f1f5f9;border-radius:99px;overflow:hidden}
.mk-td-stock .bar span{display:block;height:100%;border-radius:99px;background:#93c5fd}
.mk-tr:hover .mk-td-stock .bar span{background:#2563eb}
.mk-td-stock .bar.is-empty span{display:none}

.mk-td-act{display:flex;justify-content:flex-end}
.mk-td-act form{margin:0}
.mk-td-act .btn{height:30px;font-size:12.5px;padding:0 14px;border-radius:7px;white-space:nowrap}

@media (max-width:980px){
  .mk-thead,.mk-tr{grid-template-columns:minmax(140px,1.3fr) 84px 96px;gap:10px;padding:10px 12px}
  .mk-td-tpl{display:none}
}
@media (max-width:680px){
  .mk-thead,.mk-tr{grid-template-columns:minmax(120px,1fr) 84px 96px;gap:8px}
  .mk-td-tpl,.mk-td-stock{display:none}
}

/* ===== 鏂颁笅鍗曞崱鐗囷細杈规闂儊 3 绉?===== */
@keyframes mk-flash{
  0%   {border-color:#e5e7eb;box-shadow:0 1px 3px rgba(16,24,40,.05)}
  50%  {border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.16)}
  100% {border-color:#e5e7eb;box-shadow:0 1px 3px rgba(16,24,40,.05)}
}
.order-card.is-flash{
  border-color:#2563eb;
  animation:mk-flash .6s ease-in-out 5;
}
@media (prefers-reduced-motion:reduce){
  .order-card.is-flash{animation:none;border-color:#2563eb}
}

/* ===== 鎴戠殑璁㈠崟锛氬鍣ㄥ唴婊氬姩 + 鎳掑姞杞?===== */
.mk-orders{padding-bottom:0;display:flex;flex-direction:column;min-height:0}
.mk-orders .order-table{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
.mk-orders .order-thead{flex:0 0 auto;position:sticky;top:0;z-index:2;background:#fff}
.order-scroll{
  flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;scrollbar-gutter:stable;
}
.order-scroll .order-grid{padding:0 0 6px}
.mk-lazy{
  padding:10px 0 14px;text-align:center;
  font-size:12px;color:#9ca3af;
}
.mk-lazy[style*="none"]{display:none}

/* ===== 鎴戠殑璁㈠崟锛? 鍒楁槑缁嗭紙琛ㄥご涓庢暟鎹弗鏍煎榻?/ 璐﹀彿瀵嗙爜闈犳嫝锛?===== */
.oc8-grid{display:flex;flex-direction:column;gap:8px;min-width:1120px}

/* 琛ㄥご涓庤鐢ㄥ畬鍏ㄧ浉鍚岀殑 grid 妯℃澘 + 瀹屽叏鐩稿悓鐨勫乏鍙冲唴杈硅窛锛屾墠鑳戒弗涓濆悎缂濆榻?*/
.oc8-head,.oc8{
  display:grid;
  grid-template-columns:
    minmax(0,.9fr)
    minmax(0,.46fr)
    minmax(0,.78fr)
    minmax(0,2.2fr)
    minmax(0,.38fr)
    minmax(0,.44fr)
    minmax(0,.58fr)
    minmax(0,.6fr)
    minmax(0,1.4fr);   /* order,status,date,acct,price,final,submit,rejecttime,remark */
  gap:6px 6px;
  align-items:center;
  justify-items:center;
  padding-left:14px;
  padding-right:14px;
}

/* ---- 琛ㄥご ---- */
.oc8-head{
  padding-top:12px;
  padding-bottom:12px;
  font-size:13.5px;font-weight:700;color:#1f2937;letter-spacing:.02em;
  background:#f7f8fa;
  border-bottom:1px solid #e5e7eb;
}
.oc8-head span{white-space:nowrap;text-align:center}
/* 璐﹀彿/瀵嗙爜琛ㄥご璺熺潃鏁版嵁涓€璧烽潬鎷?*/
.oc8-head span:nth-child(4){justify-self:start;text-align:left}

/* ---- 琛?---- */
.oc8{padding-top:10px;padding-bottom:10px;border-radius:10px}

.oc8 .oc-main{justify-self:stretch;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;gap:2px}
.oc8 .oc-main .order-card-no{display:block;width:100%;text-align:center}
.oc8 .oc-main .order-card-title{display:block;width:100%;text-align:center}

.oc8 .oc-badge-cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}

.oc8 .oc-date{
  justify-self:center;text-align:center;
  font-size:11.5px;font-weight:600;color:#1f2937;font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

/* 璐﹀彿璐村彸銆佸瘑鐮佽创宸?鈥斺€?涓ゅ垪鍐呭鑷劧闈犳嫝 */
.oc8 .oc-cell:nth-child(4){justify-self:start;text-align:left}
.oc8 .oc-cell:nth-child(4) .oc-acc,
.oc8 .oc-acc .v{
  display:block;font-size:11px;letter-spacing:-.01em;
  white-space:nowrap;overflow:visible;max-width:100%;
}

.oc8 .oc-num{justify-self:center;text-align:center;font-variant-numeric:tabular-nums}

.oc8 .oc-remark-in{
  justify-self:stretch;min-width:0;text-align:center;
  font-size:11.5px;line-height:1.45;color:#6b7280;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;word-break:break-word;white-space:normal;
}

@media (max-width:1180px){
  .order-scroll{overflow-x:auto}
}

/* ===== 渚ф爮 S4-A锛氬浘鏍囨柟鍧?+ 鎵嬮鐞寸埗瀛愯彍鍗曪紙鏀惧ぇ鐗堬級 ===== */
/* 绠＄悊鍛樹晶鏍忓崟鐙姞瀹斤紝鐢ㄦ埛 / 浠ｇ悊淇濇寔 232px */
.role-admin{--sidebar-w:248px}
.role-admin .nav{display:flex;flex-direction:column;gap:5px}
.role-admin .nav-node{display:flex;flex-direction:column}

/* 骞抽摵缁勶紙鎬昏锛夛細鐩存帴涓€绾ч」锛屼笉鍋氱埗瀛?*/
.role-admin .nav-flat{display:flex;flex-direction:column;gap:2px;margin-bottom:4px}
.role-admin .nav-item-lv1{
  display:flex;align-items:center;gap:12px;
  padding:8px 10px;border-radius:9px;
  font-size:14px;color:#4b5563;text-decoration:none;font-weight:500;
}
.role-admin .nav-item-lv1 .nav-ico{
  display:grid;place-items:center;flex:0 0 auto;
  width:30px;height:30px;border-radius:8px;background:#f3f5f9;color:#64748b;
  transition:background .14s,color .14s;
}
.role-admin .nav-item-lv1 .nav-ilabel{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.role-admin .nav-item-lv1:hover{background:#f7f9fc;color:#2563eb}
.role-admin .nav-item-lv1:hover .nav-ico{background:#e8eefb;color:#2563eb}
.role-admin .nav-item-lv1.is-active{background:#eff6ff;color:#1d4ed8;font-weight:700}
.role-admin .nav-item-lv1.is-active .nav-ico{background:#2563eb;color:#fff}

/* 鐖剁骇 */
.role-admin .nav-parent{
  display:flex;align-items:center;gap:12px;width:100%;
  padding:8px 10px;border:0;background:transparent;border-radius:9px;
  font:inherit;font-size:14px;color:#4b5563;cursor:pointer;text-align:left;
  transition:background .14s;
}
.role-admin .nav-parent:hover{background:#f7f9fc}
.role-admin .nav-parent .nav-ico{
  display:grid;place-items:center;flex:0 0 auto;
  width:30px;height:30px;border-radius:8px;background:#f3f5f9;color:#64748b;
  transition:background .14s,color .14s;
}
.role-admin .nav-parent:hover .nav-ico{background:#e8eefb;color:#2563eb}
.role-admin .nav-parent .nav-plabel{
  flex:1 1 auto;font-weight:600;color:#374151;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.role-admin .nav-parent .nav-chev{
  flex:0 0 auto;color:#c3cbd6;font-size:17px;line-height:1;
  transition:transform .18s ease,color .14s;
}
.role-admin .nav-node.is-open > .nav-parent{background:#eff6ff}
.role-admin .nav-node.is-open > .nav-parent .nav-ico{background:#2563eb;color:#fff}
.role-admin .nav-node.is-open > .nav-parent .nav-plabel{color:#1d4ed8}
.role-admin .nav-node.is-open > .nav-parent .nav-chev{transform:rotate(90deg);color:#2563eb}

/* 瀛愮骇 */
.role-admin .nav-kids{
  display:none;flex-direction:column;gap:2px;
  margin:3px 0 5px 25px;padding-left:14px;
  border-left:2px solid #e6ecf5;
}
.role-admin .nav-node.is-open > .nav-kids{display:flex}

.role-admin .nav-kids .nav-item{
  display:flex;align-items:center;gap:11px;
  padding:8px 10px;border-radius:8px;
  font-size:13px;color:#4b5563;text-decoration:none;
}
.role-admin .nav-kids .nav-item:hover{background:#f7f9fc;color:#2563eb}
.role-admin .nav-kids .nav-ico.sm{
  display:grid;place-items:center;flex:0 0 auto;
  width:24px;height:24px;border-radius:7px;background:#f6f8fb;color:#94a3b8;
  transition:background .14s,color .14s;
}
.role-admin .nav-kids .nav-item:hover .nav-ico.sm{background:#e8eefb;color:#2563eb}
.role-admin .nav-kids .nav-ilabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.role-admin .nav-kids .nav-item.is-active{background:#eef4ff;color:#1d4ed8;font-weight:700}
.role-admin .nav-kids .nav-item.is-active .nav-ico.sm{background:#2563eb;color:#fff}

@media (max-width:860px){
.role-admin .nav-kids{margin-left:22px;padding-left:12px}
.role-admin .nav-parent,.nav-item-lv1{font-size:13.5px;padding:8px 9px}
}

/* 寰呭姙鏁伴噺寰芥爣 */
.role-admin .nav-badge{
  flex:0 0 auto;margin-left:auto;
  font-size:10.5px;font-weight:700;line-height:1;
  padding:3px 6px;border-radius:999px;
  background:#fee2e2;color:#dc2626;
  font-variant-numeric:tabular-nums;
}
.role-admin .nav-badge.sm{
  font-size:10px;padding:2px 5px;
  background:#fef2f2;color:#dc2626;
}
.role-admin .nav-node.is-open > .nav-parent .nav-badge{
  background:#fff;color:#1d4ed8;
}
.role-admin .nav-kids .nav-item.is-active .nav-badge.sm{
  background:#fff;color:#1d4ed8;
}
.role-admin .nav-badge + .nav-chev{margin-left:6px}

/* ===== 闈炵鐞嗗憳锛堢敤鎴?/ 浠ｇ悊锛夛細鍘熸潵鐨勫垎缁勫钩閾烘牱寮?===== */
.nav-group{margin-bottom:var(--sp-4)}
.nav-group:last-child{margin-bottom:0}
.nav-group-title{
  font-size:var(--fs-xs);color:var(--text-weak);font-weight:600;
  letter-spacing:.04em;padding:4px var(--sp-3) 6px;
}

/* ===== 鐢ㄦ埛姒傝 ===== */
.ud-todo{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:var(--sp-4)}
.ud-todo-item{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:9px;
  background:#fffbeb;border:1px solid #fde68a;
  color:#92400e;font-size:13px;text-decoration:none;
}
.ud-todo-item:hover{background:#fef3c7}
.ud-todo-dot{width:6px;height:6px;border-radius:50%;background:#f59e0b;flex:none}
.ud-todo-k{font-weight:700}
.ud-todo-v{color:#b45309}
.ud-todo-arr{margin-left:2px;color:#d97706}

.ud-cols{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:var(--sp-4);align-items:start}
.ud-side{display:flex;flex-direction:column;gap:var(--sp-4)}

.ud-more{font-size:12.5px;text-decoration:none}
.ud-more:hover{color:var(--primary)}
.ud-body{padding-top:0}
.ud-table{margin-top:0}
.ud-table thead th{font-size:12.5px;padding-top:10px;padding-bottom:10px}
.ud-no{font-size:12.5px;color:var(--text-sub);font-variant-numeric:tabular-nums;white-space:nowrap}
.ud-title{color:var(--text);font-weight:600}
.ud-when{font-size:12.5px;color:var(--text-sub);white-space:nowrap;font-variant-numeric:tabular-nums}

.ud-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:30px 0}
.ud-empty-ico{
  width:52px;height:52px;border-radius:14px;display:grid;place-items:center;
  background:var(--bg-panel);color:#b6c0cd;
}
.ud-empty p{color:var(--text-sub);font-size:13px}

.ud-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ud-q{
  display:flex;flex-direction:column;gap:2px;
  padding:12px;border:1px solid var(--border);border-radius:10px;
  text-decoration:none;background:var(--bg-page);
  transition:border-color .14s,box-shadow .14s,transform .14s;
}
.ud-q:hover{border-color:#bfd3f5;box-shadow:0 2px 8px rgba(37,99,235,.10);transform:translateY(-1px)}
.ud-q-ico{
  width:32px;height:32px;border-radius:9px;display:grid;place-items:center;
  background:#eff6ff;color:var(--primary);margin-bottom:4px;
}
.ud-q-t{font-size:13.5px;font-weight:700;color:var(--text)}
.ud-q-d{font-size:12px;color:var(--text-weak)}

.ud-stat{display:flex;flex-direction:column;gap:2px;padding-top:6px}
.ud-stat-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 0;border-bottom:1px dashed var(--border);
  font-size:13px;color:var(--text-sub);
}
.ud-stat-row:last-of-type{border-bottom:0}
.ud-stat-row b{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
.ud-stat-link{
  display:inline-block;margin-top:10px;
  font-size:12.5px;color:var(--primary);text-decoration:none;
}
.ud-stat-link:hover{text-decoration:underline}

@media (max-width:1100px){
  .ud-cols{grid-template-columns:1fr}
}
@media (max-width:640px){
  .ud-quick{grid-template-columns:1fr}
}

/* ===== 姒傝 路 閫氱煡鍖哄潡 ===== */
.ud-notice-card{margin-bottom:var(--sp-4)}
.ud-notice-cnt{
  font-size:12px;font-weight:700;
  padding:2px 8px;border-radius:999px;
  background:#fee2e2;color:#dc2626;
}
.ud-notice-cnt.is-clear{background:#f1f5f9;color:#94a3b8;font-weight:600}
.ud-notice-body{padding-top:6px}
.ud-notice-list{display:flex;flex-direction:column;gap:6px}

.ud-notice{
  display:flex;align-items:flex-start;gap:10px;width:100%;
  padding:10px 12px 10px 14px;border:1px solid var(--border);border-radius:10px;
  background:var(--bg-page);text-align:left;cursor:pointer;
  font:inherit;position:relative;
  min-height:56px;
  transition:border-color .14s,background .14s,box-shadow .14s;
}
.ud-notice:hover{border-color:#bfd3f5;box-shadow:0 2px 8px rgba(37,99,235,.08)}
/* 宸︿晶鐘舵€佹潯锛氭湭璇昏摑銆佸凡璇婚€忔槑 */
.ud-notice::before{
  content:'';position:absolute;left:0;top:8px;bottom:8px;width:3px;
  border-radius:0 3px 3px 0;background:transparent;
}

.ud-notice-ico{
  width:30px;height:30px;flex:0 0 auto;border-radius:8px;
  display:grid;place-items:center;
  background:#f1f5f9;color:#94a3b8;
}

.ud-notice-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.ud-notice-line{display:flex;align-items:center;gap:6px;min-width:0}
.ud-notice-title{
  font-size:13.5px;font-weight:600;color:#4b5563;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ud-notice-ex{
  font-size:12px;color:var(--text-weak);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ud-notice-time{
  flex:0 0 auto;font-size:11.5px;color:#b6c0cd;
  font-variant-numeric:tabular-nums;white-space:nowrap;padding-top:2px;
}
.ud-notice-arr{flex:0 0 auto;color:#d5dbe4;font-size:15px;line-height:1;padding-top:1px}
.ud-notice:hover .ud-notice-arr{color:var(--primary)}

/* 鈥斺€?鏈锛氳摑鏉?+ 娴呰摑搴?+ 娣辫壊鍔犵矖鏍囬 + 钃濆浘鏍?鈥斺€?*/
.ud-notice.is-unread{background:#f5f9ff;border-color:#dbe8fb}
.ud-notice.is-unread::before{background:var(--primary)}
.ud-notice.is-unread .ud-notice-ico{background:#dbeafe;color:var(--primary)}
.ud-notice.is-unread .ud-notice-title{color:#1f2937;font-weight:700}
.ud-notice.is-unread .ud-notice-ex{color:#6b7a8d}

/* 鈥斺€?宸茶锛氱櫧搴?鐏板瓧 鈥斺€?*/
.ud-notice{background:#fff}
.ud-notice .ud-notice-title{color:#6b7280}
.ud-notice .ud-notice-ex{color:#a6b0bd}

/* 銆屾柊鍙戙€嶈鏍囷細24 灏忔椂鍐咃紝绾㈠簳 */
.ud-tag-new{
  flex:0 0 auto;font-style:normal;
  font-size:10px;font-weight:700;line-height:1;
  padding:3px 5px;border-radius:4px;
  background:#ef4444;color:#fff;
}
/* 銆屾湭璇汇€嶆爣绛撅細钃濆簳鎻忚竟 */
.ud-tag-unread{
  flex:0 0 auto;font-style:normal;
  font-size:10px;font-weight:700;line-height:1;
  padding:3px 5px;border-radius:4px;
  background:#dbeafe;color:#1d4ed8;
}

/* 鈥斺€?寮圭獥鍐呭 鈥斺€?*/
.ud-dlg-meta{
  display:flex;align-items:center;gap:8px;margin-bottom:14px;
  padding-bottom:12px;border-bottom:1px solid var(--border);
}
.ud-dlg-type{
  font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:6px;
  background:#eff6ff;color:var(--primary);
}
.ud-dlg-state{
  font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:6px;
  background:#f1f5f9;color:#94a3b8;
}
.ud-dlg-state.is-unread{background:#dbeafe;color:#1d4ed8}
.ud-dlg-time{font-size:12px;color:var(--text-weak);font-variant-numeric:tabular-nums}
.ud-dlg-content{
  font-size:13.5px;color:var(--text);line-height:1.75;
  white-space:pre-wrap;word-break:break-word;
  max-height:46vh;overflow-y:auto;
}

@media (max-width:640px){
  .ud-notice-time{display:none}
  .ud-notice-ex{display:none}
}

/* ===== 姒傝椤碉細閾烘弧瑙嗗彛 ===== */
.content:has(> .ud-fill){display:flex;flex-direction:column}
.ud-fill{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;gap:0}
.ud-fill > .page-head{flex:none}
.ud-fill > .ud-todo{flex:none}
.ud-fill > .ud-kpi{flex:none}
.ud-kpi{margin-bottom:var(--sp-4)}

.ud-cols{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  gap:var(--sp-4);
  flex:1 1 auto;min-height:0;
  align-items:stretch;
}
.ud-pane{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.ud-pane > .card-head{flex:none}
.ud-scroll{
  flex:1 1 auto;min-height:0;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-gutter:stable;
  padding-top:8px;
}

/* 鏈€杩戣鍗?路 绱у噾琛?*/
.ud-order-list{display:flex;flex-direction:column;gap:6px}
.ud-order{
  display:flex;flex-direction:column;gap:5px;
  padding:10px 12px;border:1px solid var(--border);border-radius:10px;
  background:var(--bg-page);text-decoration:none;
  min-height:56px;justify-content:center;
  transition:border-color .14s,box-shadow .14s;
}
.ud-order:hover{border-color:#bfd3f5;box-shadow:0 2px 8px rgba(37,99,235,.08)}
.ud-order-top{display:flex;align-items:center;gap:8px;min-width:0}
.ud-order-title{
  flex:1 1 auto;min-width:0;
  font-size:13.5px;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ud-order-bot{display:flex;align-items:center;gap:10px;min-width:0}
.ud-order-no{
  flex:1 1 auto;min-width:0;
  font-size:11.5px;color:var(--text-weak);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ud-order-cost{flex:0 0 auto;font-size:12px;font-weight:700;color:var(--text-sub);font-variant-numeric:tabular-nums}
.ud-order-when{flex:0 0 auto;font-size:11.5px;color:#b6c0cd;font-variant-numeric:tabular-nums}

@media (max-width:1100px){
  .ud-cols{grid-template-columns:1fr;flex:0 1 auto}
  .ud-pane{max-height:none}
  .ud-scroll{overflow:visible}
}

/* 鍙虫爮锛氳鍗?+ 璐︽埛姒傝 */
.ud-right{display:flex;flex-direction:column;gap:var(--sp-4);min-height:0;overflow:hidden}
.ud-right > .ud-pane{flex:1 1 0;min-height:0}
.ud-acc{flex:none}
.ud-acc > .card-body{padding-top:8px;padding-bottom:10px}
.ud-acc .ud-stat-row{padding:7px 0;font-size:12.5px}
.ud-acc .ud-stat-row:last-of-type{border-bottom:0}

/* ===== 姒傝 路 闂€欎細璇濆崱 ===== */
.ud-greet{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:12px 16px;margin-bottom:var(--sp-4);
  background:var(--bg-card);border:1px solid var(--border);border-radius:12px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  flex:none;
}
.ud-greet-art{
  flex:0 0 auto;width:48px;height:48px;border-radius:13px;
  display:grid;place-items:center;
  border:1px solid var(--pri-line);
  background:linear-gradient(150deg,#f4f9ff,#e8f1ff);
}
.ud-greet-art svg{display:block}
/* 姣忎釜鏃舵鎹㈠簳鑹?*/
.ud-greet-morning{background:linear-gradient(150deg,#fffbeb,#fef3c7);border-color:#fde68a}
.ud-greet-noon{background:linear-gradient(150deg,#f4f9ff,#e8f1ff);border-color:#dbe8fb}
.ud-greet-evening{background:linear-gradient(150deg,#fff8f3,#ffedd5);border-color:#fed7aa}
.ud-greet-night{background:linear-gradient(150deg,#f5f9ff,#e4eeff);border-color:#cfdffa}

.ud-greet-txt{min-width:0;flex:1 1 220px}
.ud-greet-hi{
  margin:0 0 2px;font-size:15px;font-weight:700;color:var(--text);
  display:flex;align-items:center;gap:0;flex-wrap:wrap;
}
.ud-greet-hi em{font-style:normal;color:var(--primary)}
.ud-greet-sub{margin:0;font-size:12.5px;color:var(--text-sub)}
.ud-greet-sub b{color:var(--text);font-weight:700}

.ud-greet-chip{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;
  padding:6px 11px;border-radius:999px;
  background:var(--primary-soft);color:var(--primary);
  border:1px solid var(--pri-line);
  font-size:12.5px;font-weight:700;
  white-space:nowrap;
}
.ud-greet-chip.is-clear{background:#ecfdf5;color:#059669;border-color:#a7f3d0}

.ud-greet-acts{flex:0 0 auto;display:flex;gap:8px;margin-left:auto}
.ud-greet-acts .btn-sm{padding:6px 12px;font-size:12.5px}

@media (max-width:900px){
  .ud-greet-acts{margin-left:0;width:100%}
  .ud-greet-chip{margin-left:auto}
}

/* 闈炵鐞嗗憳渚ф爮寰界珷锛堢敤鎴?/ 浠ｇ悊锛?*/
.role-user .nav-item{position:relative}
.role-agent .nav-item{position:relative}
.role-user .nav-badge,
.role-agent .nav-badge{
  margin-left:auto;
  flex:0 0 auto;
  min-width:18px;height:18px;padding:0 5px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
  background:#fee2e2;color:#dc2626;
  font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;
  line-height:1;
}
.role-user .nav-item.is-active .nav-badge,
.role-agent .nav-item.is-active .nav-badge{background:#fff;color:#1d4ed8}

/* ===== 鍏憡鏉?/ 鍏憡鍗＄墖 ===== */
.ud-announce{
  display:flex;align-items:center;gap:11px;flex-wrap:wrap;
  padding:10px 14px;margin-bottom:var(--sp-4);
  background:linear-gradient(96deg,#fffbeb,#fffaef);
  border:1px solid #fde68a;border-radius:10px;
  flex:none;
}
.ud-announce-ico{
  flex:0 0 auto;width:28px;height:28px;border-radius:8px;
  display:grid;place-items:center;
  background:#fef3c7;color:#b45309;
}
.ud-announce-txt{min-width:0;flex:1 1 240px}
.ud-announce-title{
  margin:0;font-size:13px;font-weight:700;color:#78350f;
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.ud-announce-body{
  margin:2px 0 0;font-size:12.5px;color:#a16207;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ud-announce-pin{
  font-style:normal;font-size:10px;font-weight:700;line-height:1;
  padding:3px 5px;border-radius:4px;background:#f59e0b;color:#fff;
}
.ud-announce-more{
  flex:0 0 auto;font-size:12px;font-weight:700;color:#b45309;
  text-decoration:none;white-space:nowrap;
}
.ud-announce-more:hover{text-decoration:underline}

.ud-announce-card{margin-bottom:var(--sp-4)}
.ud-announce-cnt{
  font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;
  background:#fef3c7;color:#b45309;
}
.ud-announce-item{
  padding:10px 12px;margin-bottom:6px;
  border:1px solid #fde68a;border-radius:9px;
  background:#fffdf6;
}
.ud-announce-item:last-child{margin-bottom:0}
.ud-announce-item-h{display:flex;align-items:center;gap:7px;margin-bottom:3px}
.ud-announce-item-h b{font-size:13px;color:#78350f}
.ud-announce-item-b{font-size:12.5px;color:#8a6320;line-height:1.7}

/* ===== 閫氱煡椤?===== */
.un-card{margin-bottom:var(--sp-4)}
.un-body{padding-top:8px}
.un-total{font-size:12px;color:var(--text-weak)}
.un-card .ud-notice{min-height:62px}
.un-card .ud-notice-ex{max-width:none}

/* ===== 瀵屾枃鏈紪杈戝櫒瀹瑰櫒 ===== */
.rt-wrap{
  border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;
}
.rt-wrap .w-e-toolbar{border-bottom:1px solid var(--border) !important;background:#fafbfc !important}
.rt-wrap .w-e-text-container{min-height:190px !important;background:#fff !important}
.rt-wrap .w-e-text-container [data-slate-editor]{min-height:190px}
#announceDialog,#pushDialog{width:760px}

/* ===== 鍏憡姝ｆ枃锛堝瘜鏂囨湰娓叉煋锛?===== */
.ud-announce-item-b{font-size:13px;color:#6b5a2e;line-height:1.75}
.ud-announce-item-b p{margin:0 0 6px}
.ud-announce-item-b p:last-child{margin-bottom:0}
.ud-announce-item-b ul,.ud-announce-item-b ol{margin:6px 0;padding-left:20px}
.ud-announce-item-b blockquote{
  margin:6px 0;padding:6px 12px;border-left:3px solid #fcd34d;
  background:#fffbeb;color:#8a6320;border-radius:0 6px 6px 0;
}
.ud-announce-item-b a{color:#b45309;text-decoration:underline}
.ud-announce-item-b img{max-width:100%;border-radius:6px}

/* ===== 棣栭〉鍏憡寮圭獥 ===== */
.ann-modal{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:20px}
.ann-modal.open{display:flex}
.ann-mask{position:absolute;inset:0;background:rgba(17,24,39,.45)}
.ann-box{
  position:relative;width:560px;max-width:100%;max-height:calc(100vh - 60px);
  background:#fff;border:1px solid var(--border);border-radius:14px;
  box-shadow:0 20px 48px rgba(16,24,40,.18);
  display:flex;flex-direction:column;overflow:hidden;
}
.ann-head{
  padding:16px 20px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:9px;flex:none;
  background:linear-gradient(96deg,#fffbeb,#fffaef);
}
.ann-head h3{margin:0;font-size:15px;color:#78350f}
.ann-head .ann-pin{
  font-style:normal;font-size:10px;font-weight:700;line-height:1;padding:3px 5px;
  border-radius:4px;background:#f59e0b;color:#fff;
}
.ann-close{
  margin-left:auto;width:26px;height:26px;border-radius:7px;border:0;cursor:pointer;
  background:transparent;color:#b8a179;font-size:16px;line-height:1;
}
.ann-close:hover{background:#fef3c7;color:#92400e}
.ann-body{
  padding:18px 22px;overflow-y:auto;font-size:13.5px;color:var(--text);line-height:1.8;
}
.ann-body p{margin:0 0 8px}
.ann-body p:last-child{margin-bottom:0}
.ann-body ul,.ann-body ol{margin:8px 0;padding-left:22px}
.ann-body blockquote{
  margin:8px 0;padding:8px 14px;border-left:3px solid #fcd34d;
  background:#fffbeb;color:#8a6320;border-radius:0 6px 6px 0;
}
.ann-body a{color:var(--primary);text-decoration:underline}
.ann-body img{max-width:100%;border-radius:8px}
.ann-foot{
  padding:12px 20px;border-top:1px solid var(--border);flex:none;
  display:flex;align-items:center;gap:10px;
}
.ann-foot .ann-count{font-size:12px;color:var(--text-weak)}
.ann-foot .btn{margin-left:auto}

/* ===== 姒傝椤堕儴鍏憡鐙珛鍗?===== */
.ann-card{
  flex:none;margin-bottom:var(--sp-4);
  background:#fff;border:1px solid #fde68a;border-radius:12px;
  box-shadow:0 1px 3px rgba(218,163,29,.08);
  overflow:hidden;
}
.ann-card-head{
  display:flex;align-items:center;gap:8px;
  padding:10px 14px;border-bottom:1px solid #fef3c7;
  background:linear-gradient(96deg,#fffbeb,#fffaef);
}
.ann-card-ico{
  width:24px;height:24px;border-radius:7px;flex:0 0 auto;
  display:grid;place-items:center;background:#fef3c7;color:#b45309;
}
.ann-card-t{font-size:13px;font-weight:700;color:#78350f}
.ann-card-n{
  font-size:11px;font-weight:700;padding:1px 6px;border-radius:999px;
  background:#fde68a;color:#92400e;
}
.ann-card-more{
  border:0;background:transparent;cursor:pointer;
  font-size:12px;font-weight:600;color:#b45309;padding:2px 2px;
}
.ann-card-more:hover{text-decoration:underline}

.ann-card-list{display:flex;flex-direction:column}

.ann-row{
  display:flex;align-items:center;gap:8px;width:100%;
  padding:10px 14px;border:0;background:transparent;cursor:pointer;
  text-align:left;font:inherit;border-bottom:1px solid #fef8ec;
  transition:background .12s;
}
.ann-row:last-child{border-bottom:0}
.ann-row:hover{background:#fffdf6}
.ann-row-t{
  flex:0 0 auto;font-size:13px;font-weight:600;color:#78350f;
  max-width:40%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ann-row-x{
  flex:1 1 auto;min-width:0;font-size:12px;color:#a98a4a;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ann-row-d{flex:0 0 auto;font-size:11.5px;color:#c9b184;font-variant-numeric:tabular-nums}
.ann-row-arr{flex:0 0 auto;color:#dcc9a0;font-size:14px;line-height:1}
.ann-row:hover .ann-row-arr{color:#b45309}

@media (max-width:640px){
  .ann-row-x{display:none}
  .ann-row-t{max-width:none;flex:1 1 auto}
}

/* ===== 鍏憡棰戠巼鏍囩 / 鍙屽垪琛ㄥ崟 ===== */
.ann-row-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:560px){.ann-row-2{grid-template-columns:1fr}}

.ann-mode-tag{
  display:inline-block;font-size:11px;font-weight:700;line-height:1;
  padding:4px 7px;border-radius:5px;white-space:nowrap;
}
.ann-mode-once{background:#eef2f7;color:#64748b}
.ann-mode-every{background:#fee2e2;color:#dc2626}
.ann-mode-daily{background:#dbeafe;color:#1d4ed8}
.ann-mode-weekly{background:#ede9fe;color:#6d28d9}

.ann-del-btn{color:#dc2626 !important}
.ann-del-btn:hover{background:#fef2f2 !important}

/* ===== 浠婃棩涓嶅啀鎻愮ず ===== */
.ann-snooze-btn{
  background:transparent;border:1px solid var(--border);color:var(--text-weak);
  font-weight:600;
}
.ann-snooze-btn:hover{border-color:#c7cdd6;color:var(--text);background:#f8fafc}
.ann-foot .ann-snooze-btn{margin-left:auto;margin-right:8px}
.ann-foot .btn:last-child{margin-left:0}
.ann-foot .ann-count + .ann-snooze-btn + .btn{margin-left:0}
.ann-foot .ann-count{margin-right:auto}

.ann-check{
  display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding:11px 13px;
  border:1px solid var(--border);border-radius:9px;background:#f8fafc;cursor:pointer;
}
.ann-check:hover{background:#f1f5f9}
.ann-check input{margin-top:2px;width:15px;height:15px;accent-color:var(--primary);cursor:pointer;flex:0 0 auto}
.ann-check b{display:block;font-size:13px;color:var(--text);margin-bottom:2px}
.ann-check i{display:block;font-style:normal;font-size:12px;color:var(--text-weak);line-height:1.6}

.ann-snooze-on{
  display:inline-block;font-size:11px;font-weight:700;line-height:1;
  padding:4px 7px;border-radius:5px;background:#dcfce7;color:#15803d;
}

/* 閫氱煡寮圭獥閲岀殑瀵屾枃鏈?*/
.ud-dlg-content p{margin:0 0 7px}
.ud-dlg-content p:last-child{margin-bottom:0}
.ud-dlg-content ul,.ud-dlg-content ol{margin:7px 0;padding-left:20px}
.ud-dlg-content blockquote{
  margin:7px 0;padding:7px 13px;border-left:3px solid #fcd34d;
  background:#fffbeb;color:#8a6320;border-radius:0 6px 6px 0;
}
.ud-dlg-content a{color:var(--primary);text-decoration:underline}
.ud-dlg-content img{max-width:100%;border-radius:6px}

/* ===== 鍒嗘鎺т欢 ===== */
.seg{
  display:inline-flex;gap:2px;padding:3px;background:#f1f5f9;
  border:1px solid var(--border);border-radius:9px;
}
.seg-btn{
  display:inline-flex;align-items:center;gap:6px;
  border:0;background:transparent;border-radius:7px;
  padding:6px 14px;font-size:13px;font-weight:600;line-height:1.4;
  color:var(--text-weak);cursor:pointer;font-family:inherit;
  transition:background .15s,color .15s,box-shadow .15s;white-space:nowrap;
}
.seg-btn:hover{color:var(--text)}
.seg-btn.is-on{
  background:#fff;color:var(--primary);
  box-shadow:0 1px 2px rgba(16,24,40,.09);
}
.seg-btn b{
  display:inline-block;min-width:17px;padding:1px 5px;border-radius:5px;
  font-size:11px;font-weight:700;line-height:1.4;text-align:center;
  background:#e2e8f0;color:var(--text-weak);
}
.seg-btn.is-on b{background:#eff6ff;color:var(--primary)}
.seg-pane[hidden]{display:none}

/* 灏忓睆锛氭帶浠跺崰婊′竴琛?*/
@media (max-width:720px){
  .card-head .seg{width:100%}
  .seg-btn{flex:1;justify-content:center}
}

/* 閫氱煡銆岀疆椤躲€嶆爣绛?*/
.ud-tag-pin{
  display:inline-block;font-style:normal;font-size:11px;font-weight:700;
  line-height:1;padding:3px 6px;border-radius:5px;
  background:#fef3c7;color:#b45309;margin-left:6px;vertical-align:middle;
}

/* 宸茶杩涘害鏉?*/
.read-bar{
  display:inline-block;vertical-align:middle;width:48px;height:6px;
  background:#eef2f7;border-radius:99px;overflow:hidden;margin-right:7px;
}
.read-bar i{
  display:block;height:100%;background:var(--primary);border-radius:99px;
  transition:width .3s;
}
.read-num{
  display:inline-block;vertical-align:middle;
  font-size:12px;font-weight:600;color:var(--text-weak);
  font-variant-numeric:tabular-nums;
}

/* ===== 琛ㄦ牸鎿嶄綔鍒楋細绛夊绛夎窛鎸夐挳缁?===== */
.act-row{
  display:inline-flex;align-items:center;justify-content:center;
  gap:6px;flex-wrap:wrap;vertical-align:middle;
}
.act-row .act-form{display:contents}
.act-row .btn{
  min-width:64px;height:30px;padding:0 12px;
  font-size:12.5px;line-height:1;white-space:nowrap;
}
@media (max-width:720px){
  .act-row{display:flex;width:100%}
  .act-row .btn{flex:1 1 calc(50% - 3px);min-width:0}
}
/* ===== 手输确认弹窗 ===== */
.cfm-dlg{width:440px}
.cfm-tip{margin:0 0 12px;font-size:13px;line-height:1.7;color:var(--text-weak)}
.cfm-tip b{color:var(--text);font-weight:700;padding:1px 6px;border-radius:5px;background:#f1f5f9}
.cfm-in{width:100%}
/* ===== 我的订单：账号 / 密码两列统一左对齐 ===== */
.oc8-head span:nth-child(4),
.oc8 > .oc-cell:nth-child(4),
.oc8 > .oc-cell:nth-child(4) .oc-acc,
.oc8 .oc-acc .order-copy-plain{text-align:left}

/* ===== 站点设置：铺满 + 自适应网格 ===== */
.set-card{max-width:none}
.set-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:16px 20px;
  align-items:start;
}
.set-field{margin-bottom:0;min-width:0}
.set-field-full{grid-column:1 / -1}
.set-field label{
  display:block;margin-bottom:7px;
  font-size:13px;font-weight:600;color:#374151;
}
.set-field .input,
.set-field .textarea{width:100%;box-sizing:border-box}
.set-field .textarea{resize:vertical;min-height:76px}
.set-actions{
  display:flex;align-items:center;gap:14px;
  margin-top:22px;padding-top:18px;border-top:1px solid var(--border);
}
.set-actions .set-count{margin-right:auto;font-size:12.5px}
@media (max-width:720px){
  .set-grid{grid-template-columns:1fr;gap:14px}
  .set-actions{flex-direction:column-reverse;align-items:stretch}
  .set-actions .btn{width:100%}
  .set-actions .set-count{text-align:center;margin:0}
}

/* ===== 站点公告条（后台「首页公告条」） ===== */
.site-notice{
  display:flex;align-items:flex-start;gap:9px;
  margin-bottom:14px;padding:11px 14px;
  background:#fffbeb;border:1px solid #fde68a;border-radius:10px;
  font-size:13px;line-height:1.65;color:#92400e;
}
.site-notice svg,
.site-notice .ico{flex:0 0 auto;margin-top:2px;color:#b45309}
.site-notice span{min-width:0;word-break:break-word}

/* ===== 任务模板：冻结时长继承标记 ===== */
.tpl-fh-inherit{
  display:inline-block;padding:2px 7px;border-radius:6px;
  background:#f1f5f9;color:#6b7280;font-size:12px;white-space:nowrap;
}

/* ===== 冻结状态（订单列表 / 冻结记录） ===== */
.fz-amt{font-weight:600}
.fz-tag{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  margin-left:7px;padding:0 10px;border-radius:999px;height:24px;
  font-size:12px;line-height:1;font-weight:600;letter-spacing:.01em;
  background:#fef3c7;color:#92400e;border:1px solid #fde68a;
  white-space:nowrap;vertical-align:middle;
}
.fz-tag.done{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.oc-countdown{
  display:block;margin-top:2px;
  font-size:11px;color:#b45309;white-space:nowrap;
}
.fz-acc,.fz-pwd{
  display:inline-block;padding:2px 7px;border-radius:6px;
  background:#f1f5f9;border:1px solid #e5e7eb;
  font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#1f2937;
  white-space:nowrap;
}
.fz-search{
  display:flex;align-items:center;gap:8px;
}
.fz-search .input{
  width:260px;height:34px;padding:0 10px;
}
.fz-table td[data-th="账号"],
.fz-table td[data-th="密码"]{white-space:nowrap}

@media (max-width:640px){
  .fz-search .input{width:100%}
  .fz-search{width:100%;flex-wrap:wrap}
}

/* ===== account card: inline pair with divider, wrapped in one box ===== */
.acct-card{
  display:inline-flex;align-items:center;gap:0;
  padding:5px 9px;border:1px solid #e5e7eb;border-radius:9px;background:#fff;
  font:inherit;font-family:ui-monospace,Consolas,"Cascadia Mono",monospace;
  font-size:12px;line-height:1.35;cursor:pointer;max-width:100%;
  transition:border-color .12s,background .12s;
  text-align:left;
}
.acct-card:hover{border-color:#bfdbfe;background:#f8fafc}
.acct-card:active{background:#eff6ff}
.acct-card.is-plain{cursor:default;background:#fafbfc}
.acct-card.is-plain:hover{border-color:#e5e7eb;background:#fafbfc}
.acct-u{
  color:#1f2937;font-weight:600;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:230px;
}
.acct-bar{width:1px;height:12px;background:#e5e7eb;margin:0 9px;flex:none}
.acct-p{
  color:#6b7280;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:230px;
}
.acct-n{color:#9ca3af;white-space:nowrap}
.acct-cp{
  margin-left:7px;flex:none;color:#cbd5e1;font-size:11px;line-height:1;
  transition:color .12s;
}
.acct-card:hover .acct-cp{color:#2563eb}
.fz-table .acct-card{white-space:nowrap}

/* 后台表格：账号 / 密码 列给足宽度 */
table.data td[data-th="账号 / 密码"]{min-width:250px}
table.data td[data-th="账号 / 密码"] .acct-card{max-width:none}
table.data td[data-th="账号 / 密码"] .acct-u,
table.data td[data-th="账号 / 密码"] .acct-p{max-width:none}

/* 冻结记录：账号列给足宽度，卡片不挤 */
.fz-table th:first-child{min-width:250px}
.fz-table td:first-child{min-width:250px}
.fz-table .acct-card{max-width:none}
.fz-table .acct-u,.fz-table .acct-p{max-width:none}

/* ===== 复制成功反馈：整卡回弹 + 图标变绿（1 次，播完复原） ===== */
@keyframes acctCopiedPop{
  0%{transform:scale(1);border-color:#e5e7eb}
  14%{transform:scale(1.03);border-color:#6ee7b7}
  30%{transform:scale(.995);border-color:#a7f3d0}
  55%{transform:scale(1);border-color:#a7f3d0}
  100%{transform:scale(1);border-color:#e5e7eb}
}
@keyframes acctCopiedCk{
  0%{color:#cbd5e1;transform:scale(1)}
  14%{color:#10b981;transform:scale(1.35)}
  34%{color:#10b981;transform:scale(1)}
  82%{color:#10b981}
  100%{color:#cbd5e1}
}
.acct-card.copied{animation:acctCopiedPop 1.15s ease}
.acct-card.copied .acct-cp{animation:acctCopiedCk 1.15s ease}
/* 动画期间别让 hover 的边框色抢戏 */
.acct-card.copied:hover{border-color:#e5e7eb}

/* ===== 实得列：金额一行，冻结标签 + 倒计时一行 ===== */
.fz-cell{display:inline-flex;flex-direction:column;align-items:center;gap:4px;line-height:1}
.fz-cell .fz-amt{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:#1f2937}
/* 冻结中：一个胶囊装状态 + 剩余时长，不再拆成两个视觉块 */
.fz-pill{
  display:inline-flex;align-items:center;gap:0;
  height:21px;padding:0 9px;border-radius:999px;
  background:#fef3c7;border:1px solid #fde68a;color:#92400e;
  font-size:11px;font-weight:600;line-height:1;white-space:nowrap;
  letter-spacing:.01em;
}
.fz-pill.done{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.fz-dot{
  width:5px;height:5px;border-radius:50%;background:currentColor;
  margin-right:5px;flex:none;opacity:.75;
}
.fz-div{
  width:1px;height:10px;background:currentColor;opacity:.28;
  margin:0 6px;flex:none;
}
.fz-pill .oc-countdown{
  display:inline-block;margin:0;font-size:11px;line-height:1;
  color:inherit;font-weight:500;font-variant-numeric:tabular-nums;
}

/* ===== 账号 / 密码 分段点击：点谁复制谁 ===== */
.acct-seg{
  border:0;background:none;padding:0;margin:0;font:inherit;
  font-family:inherit;cursor:pointer;border-radius:4px;
  transition:background .1s,color .1s;
}
.acct-seg:hover{background:#eff6ff}
.acct-seg:active{background:#dbeafe}
.acct-seg.acct-u{color:#1f2937;font-weight:600;padding:1px 4px;margin:-1px -4px}
.acct-seg.acct-p{color:#6b7280;padding:1px 4px;margin:-1px -4px}
.acct-seg.acct-u:hover{color:#1d4ed8}
.acct-seg.acct-p:hover{color:#1d4ed8}
/* 分段后卡片本身不再整块手型 */
.acct-card{display:inline-flex}
.acct-card .acct-bar{pointer-events:none}
.acct-card .acct-cp{pointer-events:none}

/* ===== 密码掩码 + 眼睛切换 ===== */
.acct-p .p-real{display:none}
.acct-p .p-mask{
  display:inline;letter-spacing:.12em;
  color:#9ca3af;font-size:11px;
}
.acct-card.reveal .acct-p .p-mask{display:none}
.acct-card.reveal .acct-p .p-real{display:inline}

.acct-eye{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;margin-left:5px;padding:0;flex:none;
  border:0;background:none;border-radius:5px;color:#cbd5e1;cursor:pointer;
  transition:color .12s,background .12s;
}
.acct-eye:hover{color:#2563eb;background:#eff6ff}
.acct-eye svg{display:block}
.acct-eye .eye-off{display:none}
.acct-card.reveal .acct-eye .eye-open{display:none}
.acct-card.reveal .acct-eye .eye-off{display:block}
.acct-card.reveal .acct-eye{color:#2563eb}

/* 掩码状态左右对齐不跳动 */
.acct-p:has(.p-mask){min-width:64px;text-align:left}

/* ===== 侧栏文字加深：正文近黑、分组标题加粗加黑 ===== */
.sidebar .nav-group-title{
  color:#1f2937;font-weight:700;font-size:12px;letter-spacing:.02em;
}
.sidebar .nav-item{
  color:#1f2937;font-weight:500;
}
.sidebar .nav-item:hover{
  color:#1d4ed8;font-weight:500;
}
.sidebar .nav-item.is-active{
  color:#1d4ed8;font-weight:600;background:#eef4ff;
}
/* 二级（可折叠组内）稍浅一档，保留层级感但同样加深 */
.sidebar .nav-kids .nav-item{
  color:#374151;font-weight:500;
}
.sidebar .nav-kids .nav-item:hover{color:#1d4ed8}
.sidebar .nav-kids .nav-item.is-active{color:#1d4ed8;font-weight:600}
/* 后台可折叠父级 */
.sidebar .nav-parent{
  color:#1f2937;font-weight:600;
}
.sidebar .nav-parent:hover{color:#1d4ed8}
.sidebar .nav-plabel{
  color:#1f2937;font-weight:600;
}
.sidebar .nav-ilabel{font-weight:inherit}

/* ===== 分段控件（segmented control） ===== */
.seg{
  display:inline-flex;align-items:center;gap:2px;
  padding:3px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;
}
.seg-item{
  display:inline-flex;align-items:center;gap:6px;
  height:28px;padding:0 13px;border-radius:7px;
  font-size:12.5px;font-weight:600;color:#475569;
  text-decoration:none;white-space:nowrap;
  transition:background .12s,color .12s,box-shadow .12s;
}
.seg-item:hover{color:#1f2937;background:#e8eef6}
.seg-item.is-on{
  background:#fff;color:#1d4ed8;
  box-shadow:0 1px 3px rgba(16,24,40,.12);
}
.seg-item.is-on:hover{background:#fff;color:#1d4ed8}
.seg-n{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:17px;height:17px;padding:0 5px;border-radius:999px;
  font-size:10.5px;font-weight:700;font-variant-numeric:tabular-nums;
  background:#e2e8f0;color:#64748b;
}
.seg-item.is-on .seg-n{background:#dbeafe;color:#2563eb}
/* 卡片头里分段控件与搜索框并排时的呼吸 */
.card-head .seg{margin-left:14px}

/* ===== 置顶：图钉图标（替代文字标签） ===== */
/* 置顶：实心钉子图标，纯色无底块 */
.ann-pin,
.ud-announce-pin,
.ud-tag-pin{
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;height:auto;padding:0;border:0;background:none;
  font-style:normal;line-height:1;flex:none;
  color:#d97706;vertical-align:-2px;
}
.ann-pin svg,
.ud-announce-pin svg,
.ud-tag-pin svg{display:block;fill:currentColor;stroke:none}
.ud-tag-pin{
  margin-left:6px;vertical-align:middle;color:#b45309;
}

/* ===== 统计报表：区间分段 + 口径说明 ===== */
.page-head-actions{display:flex;align-items:center;gap:10px;flex:none}
.stat-scope{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin:0 0 14px;padding:9px 13px;
  background:#f7f8fa;border:1px solid #e5e7eb;border-radius:9px;
  font-size:12px;color:#6b7280;line-height:1.5;
}
.stat-scope b{color:#1f2937;font-weight:600}
.stat-scope-dot{
  width:6px;height:6px;border-radius:50%;background:#2563eb;flex:none;
}
.card-head-note{
  margin-left:8px;padding:2px 8px;border-radius:999px;
  background:#f1f5f9;color:#64748b;
  font-size:11px;font-weight:600;white-space:nowrap;
}

/* ===== 分段面板（一个卡片内切视图） ===== */
.seg-sm .seg-item{height:26px;padding:0 12px;font-size:12px}
.seg-panel[hidden]{display:none}
.card-head .seg-sm{margin-right:4px}

/* ===== 表格自适应：按内容分配列宽，不硬挤 ===== */
/* 自适应表格：所有列严格按内容宽度，谁都不吃掉剩余空间。
   .data 的 display:block 会打断表格列宽算法，这里用 display:table 抢回来。
   表格本体不设 100% 宽，多余空间留给容器，列内不出现大片空白。 */
/* 自适应表格：
   1) 必须写 table.data.data-fit，否则压不过 table.data{width:100%}（权重更高）
   2) table-layout:fixed + 每张表自己的 <colgroup> 定列宽比例 ——
      列宽由模板给，表头与数据永远同一列同一宽，不会错位、不会被拉空 */
table.data.data-fit{
  display:table;table-layout:auto;width:100%;border-collapse:collapse;
}
table.data.data-fit thead th,
table.data.data-fit tbody td{
  padding:12px 10px;vertical-align:middle;white-space:nowrap;
}
/* 所有单元格一律居中（含 .ta-r，用 3 个类以上的选择器压过 table.data .ta-r） */
table.data.data-fit thead th,
table.data.data-fit thead th.ta-r,
table.data.data-fit tbody td,
table.data.data-fit tbody td.ta-r{text-align:center}
table.data.data-fit thead th:first-child,
table.data.data-fit tbody td:first-child{padding-left:0}
table.data.data-fit thead th:last-child,
table.data.data-fit tbody td:last-child{padding-right:0}

/* 上级标签 */
.tag-sup{
  display:inline-block;padding:2px 8px;border-radius:6px;
  background:#eff6ff;color:#1d4ed8;
  font-size:12px;font-weight:600;line-height:1.6;
}

/* ===== 提现：分段状态 + 批量工具条 + 收款码 ===== */
/* 分段控件当筛选链接用（跳 URL），不是 tab 面板 */
a.seg-item{text-decoration:none;color:var(--text-sub)}
a.seg-item:hover{color:var(--text)}
a.seg-item.is-on{color:#1d4ed8}
.wt-seg-num{
  min-width:17px;height:17px;padding:0 5px;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#e2e8f0;color:#64748b;font-size:10.5px;font-weight:700;
  font-variant-numeric:tabular-nums;
}
a.seg-item.is-on .wt-seg-num{background:#dbeafe;color:#1d4ed8}

.wt-bulk-bar{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:10px 14px;margin-bottom:12px;background:#fff;
  border:1px solid var(--border);border-radius:10px;
}
.wt-seg{flex:0 0 auto}
.wt-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wt-sel-info{display:inline-flex;align-items:center;gap:14px;font-size:12.5px;color:var(--text-sub)}
.wt-sel-info b{font-size:14px;font-weight:700;color:#1d4ed8;margin:0 3px;font-variant-numeric:tabular-nums}
.wt-sel-all{display:inline-flex;align-items:center;gap:7px;cursor:pointer;user-select:none;color:var(--text)}
.wt-sel-all .rv-check{margin:0}
.wt-reason{width:220px}

.wt-bulk-bar .btn[disabled],
.wt-bulk-bar .btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.wt-bulk-bar .btn[disabled]:hover,
.wt-bulk-bar .btn:disabled:hover{transform:none;box-shadow:none}

.wt-check-col{width:38px}
.data tbody tr.wt-row-done td{opacity:.66}

/* 驳回原因：要让人一眼看到，不能埋在灰字里 */
.wd-reject-why{color:#b91c1c;font-size:12.5px;line-height:1.5}

/* 收款码上传 */
.wd-qr-field{margin-top:14px}
.wd-qr-drop{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  min-height:96px;padding:14px;cursor:pointer;
  border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;
  transition:border-color .14s,background .14s;
}
.wd-qr-drop:hover{border-color:#93c5fd;background:#f0f7ff}
.wd-qr-drop input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.wd-qr-tip{font-size:12px;color:var(--text-weak)}
.wd-qr-preview{
  max-width:150px;max-height:150px;border-radius:8px;
  border:1px solid var(--border);background:#fff;object-fit:contain;
}

/* 表格里的收款码缩略图 */
.wd-qr-thumb{display:inline-block;line-height:0}
.wd-qr-thumb img{
  width:42px;height:42px;object-fit:cover;border-radius:6px;
  border:1px solid var(--border);background:#fff;
  transition:transform .14s,border-color .14s;
}
.wd-qr-thumb:hover img{transform:scale(1.08);border-color:#93c5fd}

/* ---------- 提现：搜索 / 单条操作 / 弹窗 ---------- */
.wt-search{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.wt-search-box{position:relative;display:flex;align-items:center;gap:8px;flex:0 1 360px}
.wt-search-box svg{position:absolute;left:10px;color:#9ca3af;pointer-events:none}
.wt-search-box .input{padding-left:32px}
.wt-search-clear{position:absolute;right:8px;width:20px;height:20px;line-height:18px;text-align:center;
  border-radius:50%;color:#9ca3af;text-decoration:none;font-size:15px}
.wt-search-clear:hover{background:#f1f5f9;color:#475569}
.wt-search-hit{font-size:12px}

.wt-ops-col{width:112px;white-space:nowrap}
.wt-ops-col .btn + .btn{margin-left:6px}

.wt-modal{width:560px}
.wt-modal .modal-head h2{font-size:16px}
.wt-modal .modal-head .weak{font-size:12px;margin-top:2px}
.wt-detail{display:grid;grid-template-columns:1fr 150px;gap:18px;align-items:start}
.wt-dl{display:grid;grid-template-columns:78px 1fr;gap:8px 10px;margin:0;font-size:13px}
.wt-dl dt{color:#6b7280}
.wt-dl dd{margin:0;color:#1f2937;font-weight:600;word-break:break-all}
.wt-dl dd.wt-dl-full{font-weight:500}
.wt-dl dt.wt-dl-full{grid-column:span 2}
.wt-detail-qr{text-align:center}
.wt-qr-cap{font-size:12px;color:#6b7280;margin-bottom:6px}
.wt-qr-big{display:block;border:1px solid var(--border);border-radius:10px;padding:6px;background:#fff}
.wt-qr-big img{display:block;width:100%;height:auto;border-radius:6px}
.wt-qr-none{font-size:12px;color:#9ca3af;padding:26px 0}
.wt-reject-box{display:flex;align-items:center;gap:8px}
.wt-reject-box .input{width:240px}

/* ---------- 提现：用户端收款信息 ---------- */
.wd-acc-add{border-top:1px solid var(--border);padding-top:14px}
.wd-acc-add-title{font-size:13px;font-weight:600;color:#1f2937;margin-bottom:10px}
.wd-inline-form{display:inline-block}
.wd-inline-form + .wd-inline-form{margin-left:6px}
.wd-def-tag{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:600;
  background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.wd-pick-preview{padding:8px 10px;border:1px dashed var(--border);border-radius:8px;
  font-size:12.5px;color:#1f2937;background:#f9fafb;min-height:36px;display:flex;align-items:center}
.wd-pick-field{flex:0 0 320px}
.wd-prev-field{flex:1 1 240px}

/* ---------- 设置：提现渠道开关 ---------- */
.set-channels{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.set-channel{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid var(--border);
  border-radius:10px;background:#f9fafb;cursor:pointer;font-size:13px;user-select:none;transition:.15s}
.set-channel:hover{border-color:#cbd5e1}
.set-channel.is-on{background:#eff6ff;border-color:#bfdbfe}
.set-channel input{margin:0}
.set-channel-name{font-weight:600;color:#1f2937}
.set-channel-state{font-size:11.5px;color:#9ca3af}
.set-channel.is-on .set-channel-state{color:#2563eb}

/* ---------- 提现：新增收款信息弹窗 ---------- */
.wd-acc-modal{width:520px}
.wd-acc-modal .modal-head .weak{font-size:12px;margin-top:2px}
.wd-acc-grid{grid-template-columns:1fr}
.wd-need-acc{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.wd-need-acc .btn{flex:0 0 auto}

/* ---------- 提现：申请/记录并排 + 收款簿限高 ---------- */
.wd-acc-card{margin-bottom:16px}
.wd-acc-scroll{max-height:242px;overflow:auto;border-top:1px solid var(--line)}
.wd-acc-scroll thead th{position:sticky;top:0;z-index:2;background:#f7f8fa}
.wd-acc-scroll td,.wd-acc-scroll th{padding:9px 12px}

.wd-split{display:grid;grid-template-columns:minmax(340px,390px) minmax(0,1fr);
  gap:16px;align-items:stretch;margin-bottom:16px}
.wd-split > .card{display:flex;flex-direction:column;align-self:stretch;min-height:0}
.wd-split > .card > .card-head{flex:0 0 auto}
.wd-split > .card > .card-body{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
/* 左卡：表单吃满，按钮贴底 */
.wd-apply-form{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.wd-apply-submit{align-self:flex-start;margin-top:auto}
/* 右卡：记录列表吃满剩余高度，多了滚动 */
.wd-split > .card > .wd-rec-list{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
.wd-split > .card > .empty{flex:1 1 auto;display:flex;flex-direction:column;
  align-items:center;justify-content:center}
.wd-apply-grid{grid-template-columns:1fr;gap:12px}
.wd-apply-grid .wd-pick-preview{white-space:normal;word-break:break-all}

.wd-rec-scroll{max-height:322px;overflow:auto}
.wd-rec-scroll thead th{position:sticky;top:0;z-index:2;background:#f7f8fa}
.data-compact td,.data-compact th{padding:8px 10px;font-size:12.5px}
.wd-rec-no{font-size:11.5px;color:#6b7280;letter-spacing:.2px;word-break:break-all}
.wd-rec-acc{font-size:11.5px;margin-top:2px;word-break:break-all}

@media (max-width:1120px){
  .wd-split{grid-template-columns:1fr}
  .wd-acc-card{max-height:none}
  .wd-acc-scroll{max-height:220px}
}
/* 操作列：按钮统一贴右边界，单按钮/双按钮位置一致 */
.wd-ops-cell{white-space:nowrap}
.wd-ops-cell .wd-inline-form{display:inline-block;vertical-align:middle;margin:0}
.wd-ops-cell::after{content:"";display:inline-block;width:0}
/* 收款簿滚动区：用双类选择器压过 .table-wrap 的默认限制 */
.card .wd-acc-scroll{max-height:242px;overflow:auto}
/* ---- 收款信息：自定义行（高度可控，不跟 table.data 的响应式规则打架） ---- */
.wd-acc-list{padding:0 24px 6px;max-height:206px;overflow:auto}
.wd-acc-row{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,2.1fr) minmax(0,1.1fr) 76px 64px 150px;
  align-items:center;gap:12px;height:56px;border-bottom:1px solid var(--border);font-size:13px;color:#1f2937}
.wd-acc-row:last-child{border-bottom:0}
.wd-acc-row-head{height:38px;font-weight:700;font-size:12.5px;color:#6b7280}
.wd-acc-row-head span{white-space:nowrap}
.wd-acc-no{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wd-acc-row .ta-c{text-align:center}
.wd-acc-row .ta-r{text-align:right}
.wd-ops{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.wd-ops form{margin:0;padding:0;display:inline-flex;border:0;background:none}

/* ---- 提现记录：自定义行 ---- */
.wd-rec-list{padding:0 24px 6px;max-height:326px;overflow:auto}
.wd-rec-row{display:grid;grid-template-columns:minmax(0,1.9fr) 66px 92px 138px minmax(0,1.15fr);
  align-items:center;gap:10px;min-height:52px;padding:6px 0;
  border-bottom:1px solid var(--border);font-size:12.5px;color:#1f2937}
.wd-rec-row:last-child{border-bottom:0}
.wd-rec-row-head{min-height:38px;font-weight:700;font-size:12.5px;color:#6b7280;padding:0}
.wd-rec-row .ta-r{text-align:right}
.wd-rec-row .ta-c{text-align:center}
.wd-rec-no{display:block;font-size:11.5px;color:#6b7280;letter-spacing:.2px;word-break:break-all}
.wd-rec-acc{display:block;font-size:11.5px;margin-top:1px;word-break:break-all}
/* ---- 提现页：卡片标题与内容统一往左收，左右内边距 16px ---- */
.wd-acc-card > .card-head,
.wd-split > .card > .card-head{padding-left:16px;padding-right:16px}
.wd-acc-card > .wd-acc-list,
.wd-split > .card > .wd-rec-list{padding-left:16px;padding-right:16px}
.wd-split > .card > .card-body{padding-left:16px;padding-right:16px}
.wd-acc-card > .card-head h2,
.wd-split > .card > .card-head h2{margin:0;padding:0}
/* ---- 提现页：表头吸顶 + 表头文字居中 ---- */
.wd-acc-list,.wd-rec-list{position:relative}
/* 表头：吸顶 + 灰底 + 加粗 */
.wd-acc-row-head,.wd-rec-row-head{position:sticky;top:0;z-index:3;
  background:#f7f8fa !important;box-shadow:inset 0 -1px 0 var(--border);
  font-weight:700}
.wd-acc-row-head > span,
.wd-rec-row-head > span{text-align:center !important;justify-self:stretch;
  font-weight:700;color:#6b7280;font-size:12.5px;letter-spacing:.02em;
  white-space:nowrap;padding-top:2px;padding-bottom:2px}

/* 数据行：跟表头同一套对齐 */
.wd-acc-row:not(.wd-acc-row-head) > span,
.wd-rec-row:not(.wd-rec-row-head) > span{text-align:center;
  justify-self:stretch;align-self:center;min-width:0}

/* 收款表最后一列（操作）：表头和数据都右对齐，按钮永远贴右边界 */
.wd-acc-row-head > span:last-child{text-align:right !important}
.wd-acc-row:not(.wd-acc-row-head) > span:last-child{text-align:right}
/* ============================================================
   全站面状按钮：实心填充一整块，不描边
   ============================================================ */
.btn{
  background:#e8eef6;border:1px solid #e8eef6;color:#1f2937;
  box-shadow:none;
}
.btn:hover{background:#dbe4f0;border-color:#dbe4f0;color:#1f2937}
.btn:active{background:#ccd8e8;border-color:#ccd8e8}

/* 幽灵 -> 实心浅灰（加深一档，白底上能看出面） */
.btn-ghost{background:#e8eef6;border-color:#e8eef6;color:#1f2937}
.btn-ghost:hover{background:#dbe4f0;border-color:#dbe4f0;color:#1f2937}

/* 主色 / 危险 / 成功：纯实心 */
.btn-primary,.btn-primary:hover{color:#fff}
.btn-primary{background:#2563eb;border-color:#2563eb}
.btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
.btn-primary:active{background:#1e40af;border-color:#1e40af}

.btn-danger{background:#dc2626;border-color:#dc2626;color:#fff}
.btn-danger:hover{background:#b91c1c;border-color:#b91c1c;color:#fff}

.btn-success{background:#059669;border-color:#059669;color:#fff}
.btn-success:hover{background:#047857;border-color:#047857;color:#fff}

/* 旧的“淡红描边”-> 实心红 */
.btn-danger-ghost{background:#dc2626;border-color:#dc2626;color:#fff}
.btn-danger-ghost:hover{background:#b91c1c;border-color:#b91c1c;color:#fff}

/* 语义色按钮：实心填充，边框与底色同色 */
.btn-tone-neutral{background:#dbe3ee;border-color:#dbe3ee;color:#1f2937}
.btn-tone-neutral:hover{background:#c9d5e5;border-color:#c9d5e5;color:#1f2937}
.btn-tone-info{background:#dbeafe;border-color:#dbeafe;color:#1d4ed8}
.btn-tone-info:hover{background:#bfdbfe;border-color:#bfdbfe;color:#1d4ed8}
.btn-tone-success{background:#d1fae5;border-color:#d1fae5;color:#047857}
.btn-tone-success:hover{background:#a7f3d0;border-color:#a7f3d0;color:#047857}
.btn-tone-danger{background:#fee2e2;border-color:#fee2e2;color:#b91c1c}
.btn-tone-danger:hover{background:#fecaca;border-color:#fecaca;color:#b91c1c}
.btn-tone-warn{background:#fef3c7;border-color:#fef3c7;color:#b45309}
.btn-tone-warn:hover{background:#fde68a;border-color:#fde68a;color:#b45309}

/* 选中态：实心主色 */
.btn.is-on{background:#2563eb;border-color:#2563eb;color:#fff}
.btn.is-on:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}

/* 禁用态保持实心，只降不透明度 */
.btn[disabled],.btn:disabled{opacity:.55}
/* ============================================================
   全站按钮统一：贴合文字宽度，禁止被任何容器拉伸
   款式参考「+ 新增收款信息」：实心、紧凑、圆角、不换行
   ============================================================ */
.btn{
  width:auto !important;
  min-width:0 !important;
  max-width:100%;
  flex:0 0 auto !important;
  align-self:center;
  height:34px;
  padding:0 14px;
  border-radius:8px;
  font-size:13.5px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
  letter-spacing:.01em;
}
.btn-sm{height:29px;padding:0 11px;font-size:12.5px;border-radius:7px}
.btn-xs{height:25px;padding:0 9px;font-size:12px;border-radius:6px}
.btn-lg{height:38px;padding:0 18px;font-size:14px;border-radius:9px}
.btn-icon{width:34px !important;min-width:34px !important;padding:0}
.btn-icon.btn-sm{width:29px !important;min-width:29px !important}

/* 按钮里的图标（+ / 图标字体）跟文字对齐 */
.btn svg,.btn .ico{flex:0 0 auto;width:14px;height:14px}

/* ---- 原来把按钮撑满的容器，全部改成紧凑靠左/靠右，不再平分宽度 ---- */
.filter-actions,.page-actions,.set-actions,.ann-foot,
.rv-actions,.act-row,.wt-bulk-bar,.wd-need-acc{display:flex;flex-wrap:wrap;gap:8px}

.filter-actions .btn,.page-actions .btn,.set-actions .btn,
.rv-actions .btn,.act-row .btn,.wt-bulk-bar .btn,
.rv-cell-act .btn,.stock-table .btn,
.filter-bar > .btn,.filter-form .btn,
table.data td form .btn,
.oc-side .btn-sm,.oc-stats .btn-sm,
.mk-td-act .btn,.ud-greet-acts .btn-sm{
  width:auto !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  margin:0;
}
.filter-actions,.page-actions,.set-actions,.ann-foot{justify-content:flex-end}
.act-row{justify-content:flex-end}
.rv-actions{justify-content:flex-start}
.wt-bulk-bar{justify-content:flex-end;align-items:center}

/* 表格操作列里的表单按钮并排，不占满单元格 */
table.data td form{display:inline-flex !important;flex-direction:row !important;
  align-items:center;gap:6px;width:auto !important}
/* ---- 用户管理：编辑弹窗 ---- */
.modal#uEditModal{width:min(760px, calc(100vw - 40px));max-height:calc(100vh - 80px);overflow:auto}
.u-edit-grid{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:12px 16px}
.u-edit-grid .field{margin:0}
.u-edit-grid .field label{display:block;font-size:12.5px;color:#6b7280;margin-bottom:6px}
.u-edit-hint{font-size:12.5px;margin-top:10px}
.u-edit-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.u-edit-sep{height:1px;background:var(--border);margin:18px 0 16px}
/* 重置密码行：输入框撑满，按钮与输入框底边对齐（.btn 全局有 align-self:center，这里要压掉） */
.u-pw-row{display:flex;align-items:flex-end;gap:10px}
.u-pw-row .field{flex:1 1 auto;min-width:0;margin:0}
.u-pw-row .btn{align-self:flex-end;flex:0 0 auto;height:38px}
.field-hint{font-size:12px;margin-top:6px}
.u-inline-form{display:inline-flex;margin:0}
.modal#uEditModal .modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:15px 20px;border-bottom:1px solid var(--border);
}
.modal#uEditModal .modal-head h3{margin:0;font-size:15px;font-weight:600;color:#1f2937}
.modal#uEditModal .modal-x{
  margin-left:auto;flex:0 0 auto;width:26px;height:26px;
  display:inline-flex;align-items:center;justify-content:center;
  border:0;background:transparent;color:#6b7280;font-size:20px;line-height:1;
  border-radius:6px;cursor:pointer;
}
.modal#uEditModal .modal-x:hover{background:#eef2f7;color:#1f2937}
.modal#uEditModal .modal-body{padding:18px 20px 20px}
@media (max-width:640px){
  .u-edit-grid{grid-template-columns:1fr}
  .u-pw-row{flex-direction:column;align-items:stretch}
}
/* ============================================================
   主内容区左右留白：原来 clamp(14px,1.4vw,32px) 在 1700 宽下只有 23px，
   右侧贴着浏览器边，视觉上像溢出。这里把下限提到 32px，
   并让左右两边一致，不与侧栏打架。
   ============================================================ */
main.content{
  padding-left:clamp(32px, 2.4vw, 64px);
  padding-right:clamp(32px, 2.4vw, 64px);
}
@media (max-width:768px){
  main.content{padding-left:16px;padding-right:16px}
}
/* ============================================================
   桌面端：整页锁视口高度，内容在各自容器内滚动
   原来 .main{height:auto} 把 100vh 覆盖了 → main 随内容长高 → body 整页滚。
   这里把 height 钉死，滚动交给 main.content 和概览的两列卡片。
   ============================================================ */
@media (min-width: 900px){
  html, body{height:100%}
  body{overflow:hidden}

  .app{height:100vh;max-height:100vh;overflow:hidden}

  .main{
    height:100vh !important;
    max-height:100vh !important;
    min-height:0 !important;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }

  main.content{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
  }

  /* ---- 概览：上方固定块，两列卡片吃剩余高度，各自内部滚动 ---- */
  /* 空间不足时（矮屏）整块可滚，且两列卡片保底 360px，不会压成一条缝 */
  .ud-fill{flex:1 1 auto;min-height:0;overflow-y:auto}

  .ud-fill > .ud-greet,
  .ud-fill > .ann-card,
  .ud-fill > .ud-todo,
  .ud-fill > .kpi-grid{flex:0 0 auto}

  .ud-cols{
    flex:1 1 auto;
    min-height:360px;
    overflow:hidden;
  }
  .ud-cols > .card{
    display:flex;
    flex-direction:column;
    min-height:0;
    overflow:hidden;
  }
  .ud-cols > .card > .card-head{flex:0 0 auto}
  .ud-cols > .card > .card-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
  }

  /* 公告卡片里的列表也限高 */
  .ann-card{display:flex;flex-direction:column;min-height:0;overflow:hidden}
  .ann-card > .ann-card-head{flex:0 0 auto}
  .ann-card > .ann-card-list{flex:1 1 auto;min-height:0;overflow-y:auto}

  /* ---- 内容区必须是纵向 flex，后面的卡片才能吃剩余高度 ---- */
  main.content{display:flex;flex-direction:column}

  /* ---- 通知页：标题 + 公告卡固定，「全部通知」卡吃满剩余，列表内部滚 ---- */
  .un-card{
    flex:1 1 auto;
    min-height:300px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .un-card > .card-head{flex:0 0 auto}
  .un-card > .card-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
  }

  /* ---- 提现页：收款信息卡固定，下面两栏吃满剩余，记录列表内部滚 ---- */
  .wd-split{
    flex:1 1 auto;
    min-height:320px;
  }
  .wd-split > .card{
    min-height:0;
    overflow:hidden;
  }
  .wd-split > .wd-rec-card > .wd-rec-list{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .wd-apply-card > .card-body{
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}
/* ============================================================
   全站滚动条：半透明、细、圆角、轨道透明
   浅色页面下不抢眼，内容滚动时也不挡视线
   ============================================================ */
*{
  scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,.45) transparent;
}

::-webkit-scrollbar{
  width:10px;
  height:10px;
}
::-webkit-scrollbar-track{
  background:transparent;
}
::-webkit-scrollbar-thumb{
  background-color:rgba(148,163,184,.45);
  border:2px solid transparent;
  background-clip:padding-box;
  border-radius:8px;
  min-height:32px;
}
::-webkit-scrollbar-thumb:hover{
  background-color:rgba(100,116,139,.68);
  border:2px solid transparent;
  background-clip:padding-box;
}
::-webkit-scrollbar-thumb:active{
  background-color:rgba(71,85,105,.78);
  border:2px solid transparent;
  background-clip:padding-box;
}
::-webkit-scrollbar-corner,
::-webkit-scrollbar-track-piece{
  background:transparent;
}

/* 深色底容器（模态遮罩、抽屉）上的滑块提亮一点 */
.overlay ::-webkit-scrollbar-thumb,
.ann-mask ::-webkit-scrollbar-thumb,
.modal ::-webkit-scrollbar-thumb{
  background-color:rgba(148,163,184,.5);
}
/* ============================================================
   积分中心 /admin/points
   顶部：净额主数字 + 收支拆分；中段：收入 / 支出两栏明细；
   下段：人工调整一行流；流水卡表头吸顶、表体独立滚动
   ============================================================ */
.pc-wrap{display:flex;flex-direction:column;gap:16px}

/* ---- 总览 ---- */
.pc-hero{
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  padding:22px 26px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.pc-hero-lead{display:flex;flex-direction:column;gap:3px;min-width:0}
.pc-hero-cap{font-size:12.5px;color:var(--text-weak);letter-spacing:.02em}
.pc-hero-num{
  font-size:34px;line-height:1.08;font-weight:650;
  font-variant-numeric:tabular-nums;letter-spacing:-.015em;
}
.pc-hero-meta{font-size:12.5px;color:var(--text-weak)}
.pc-hero-cells{display:flex;gap:40px;margin:0}
.pc-hero-cell{display:flex;flex-direction:column;gap:3px}
.pc-hero-cell dt{font-size:12.5px;color:var(--text-weak)}
.pc-hero-cell dd{
  margin:0;font-size:21px;font-weight:600;line-height:1.2;
  font-variant-numeric:tabular-nums;letter-spacing:-.01em;
}

/* 收 / 支配色：全站统一这两个语义色 */
.is-in{color:var(--success)}
.is-out{color:var(--danger)}

/* ---- 按类型 ---- */
.pc-board{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.pc-board-head{
  display:flex;align-items:baseline;gap:10px;
  padding:14px 20px;
  border-bottom:1px solid var(--border);
}
.pc-board-head h2{margin:0;font-size:15px;font-weight:600;color:var(--text)}
.pc-board-hint{font-size:12px;color:var(--text-weak)}

.pc-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.pc-col{min-width:0;display:flex;flex-direction:column}
.pc-col + .pc-col{border-left:1px solid var(--border)}

.pc-col-head{
  display:flex;align-items:center;gap:8px;
  padding:10px 20px;
  font-size:12.5px;font-weight:600;color:var(--text-sub);
  background:var(--bg-panel);
  border-bottom:1px solid var(--border);
}
.pc-col-head b{
  margin-left:auto;font-weight:650;
  font-variant-numeric:tabular-nums;font-size:13.5px;
}
.pc-dot{width:7px;height:7px;border-radius:50%;flex:0 0 auto}
.pc-dot.is-in{background:var(--success)}
.pc-dot.is-out{background:var(--danger)}

.pc-item{
  display:flex;align-items:center;gap:10px;
  padding:9px 20px;
  font-size:13px;
  border-bottom:1px solid #f2f4f6;
  transition:background .12s;
}
.pc-item:last-child{border-bottom:0}
.pc-item:hover{background:#fbfcfd}
.pc-item-name{
  color:var(--text);min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.pc-item-cnt{
  flex:0 0 auto;
  padding:1px 7px;border-radius:5px;
  font-size:11.5px;color:var(--text-weak);
  background:var(--bg-panel);
}
.pc-item-val{
  margin-left:auto;flex:0 0 auto;
  font-size:13.5px;font-weight:600;
  font-variant-numeric:tabular-nums;
}
.pc-col-empty{padding:18px 20px;font-size:12.5px;color:var(--text-weak)}

/* ---- 卡片补充 ---- */
.pc-card-hint{
  margin-left:10px;font-size:12px;color:var(--text-weak);font-weight:400;
}

/* ---- 人工调整：字段与按钮同一行 ---- */
.pc-adjust-form{
  display:grid;
  grid-template-columns:minmax(190px,1.4fr) minmax(130px,.75fr) minmax(220px,1.7fr) auto;
  gap:12px;
  align-items:end;
}
.pc-adjust-form .field{margin:0;min-width:0}
.pc-adjust-form .btn{height:38px;margin:0;flex:0 0 auto}

/* 提交按钮也当成一个 field：上面顶一个跟真 label 同高的隐形占位，
   按钮顶边才能和右侧三个输入框的顶边落在同一条线上。
   （原来按钮是裸的 grid item，只有 38px 高，align-items:end 压不住，整体上浮 13px） */
.pc-adjust-form .pc-adjust-act{
  display:flex;flex-direction:column;min-width:0;
}
.pc-adjust-form .pc-adjust-act > label{
  display:block;
  height:21px;line-height:21px;
  margin:0 0 6px;
  font-size:var(--fs-sm);
  visibility:hidden;
}
.pc-adjust-form .pc-adjust-act .btn{
  height:38px !important;
  margin:0 !important;
  width:100%;
  box-sizing:border-box;
}

@media (max-width:1180px){
  .pc-adjust-form{grid-template-columns:1fr 1fr}
  .pc-adjust-form .btn{justify-self:start}
}
@media (max-width:680px){
  .pc-adjust-form{grid-template-columns:1fr}
}

/* ---- 流水：卡头一行筛选，表体独立滚动 ---- */
.pc-flow{
  display:flex;flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.pc-flow > .card-head{
  flex:0 0 auto;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:12px 20px;
}
.pc-flow > .card-head h2{margin:0;flex:0 0 auto;font-size:15px}

.pc-flow-filter{
  display:flex;align-items:center;gap:8px;
  margin-left:auto;flex-wrap:nowrap;
}
.pc-flow-filter .select{
  flex:0 0 auto;
  width:auto;
  min-width:128px;
  max-width:180px;
  height:32px;
  font-size:13px;
}
.pc-flow-filter .btn{height:32px;flex:0 0 auto;white-space:nowrap}

/* 窄屏才允许按钮换行 */
@media (max-width:820px){
  .pc-flow-filter{flex-wrap:wrap;margin-left:0;width:100%}
}

/* 表体自己滚，页面高度不跟着 100 行一起涨 */
.pc-flow-body{
  flex:1 1 auto;
  min-height:0;
  max-height:min(58vh, 660px);
  overflow:auto;
  overscroll-behavior:contain;
}

/* 表头吸顶 */
.pc-flow-body table.data thead th{
  position:sticky;top:0;z-index:2;
  background:var(--bg-panel);
  box-shadow:inset 0 -1px 0 var(--border);
}
.pc-flow-body table.data td{font-size:13px}

.pc-num{
  font-variant-numeric:tabular-nums;
  font-weight:600;
}
.pc-num.is-in{color:var(--success)}
.pc-num.is-out{color:var(--danger)}
.pc-remark{
  max-width:340px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

.pc-flow-foot{
  flex:0 0 auto;
  padding:9px 20px;
  border-top:1px solid var(--border);
  font-size:12px;color:var(--text-weak);
  background:var(--bg-panel);
}

@media (max-width:1000px){
  .pc-hero-cells{gap:28px}
  .pc-hero-num{font-size:28px}
}
@media (max-width:760px){
  .pc-cols{grid-template-columns:1fr}
  .pc-col + .pc-col{border-left:0;border-top:1px solid var(--border)}
  .pc-hero{padding:18px}
  .pc-hero-cells{width:100%;justify-content:space-between;gap:16px}
}
/* 总览与按类型并排，省一屏高度 */
.pc-top{
  display:grid;
  grid-template-columns:minmax(250px,300px) minmax(0,1fr);
  gap:16px;
  align-items:stretch;
}
.pc-top .pc-hero{
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px;
}
.pc-top .pc-hero-cells{
  width:100%;
  justify-content:flex-start;
  gap:34px;
  padding-top:16px;
  border-top:1px solid var(--border);
}
.pc-top .pc-hero-num{font-size:30px}

@media (max-width:1100px){
  .pc-top{grid-template-columns:1fr}
}
/* ============================================================
   卡密页 /admin/cards
   分段控件 + 搜索 + 详情弹窗
   ============================================================ */

/* ---- 分段控件 ---- */
.cd-seg{
  display:flex;align-items:center;gap:4px;
  padding:4px;
  margin-bottom:16px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:10px;
  width:max-content;
  max-width:100%;
}
.cd-seg-btn{
  display:inline-flex;align-items:center;gap:7px;
  height:34px;padding:0 16px;
  border:0;border-radius:7px;
  background:transparent;
  color:var(--text-sub);
  font-size:13.5px;font-weight:500;
  line-height:1;white-space:nowrap;
  cursor:pointer;
  transition:background .14s, color .14s, box-shadow .14s;
}
.cd-seg-btn:hover{color:var(--text);background:rgba(15,23,42,.04)}
.cd-seg-btn.is-on{
  background:var(--bg-card);
  color:var(--primary);
  box-shadow:0 1px 2px rgba(16,24,40,.08);
}
.cd-seg-cnt{
  display:inline-block;
  min-width:20px;padding:1px 6px;
  border-radius:5px;
  background:rgba(15,23,42,.06);
  font-size:11.5px;font-weight:600;
  color:var(--text-sub);
  text-align:center;
}
.cd-seg-btn.is-on .cd-seg-cnt{background:var(--primary-soft);color:var(--primary)}

/* ---- 面板 ---- */
.cd-panel{display:flex;flex-direction:column;gap:16px}
.cd-panel[hidden]{display:none !important}

/* ---- 列表卡 ---- */
.cd-list{display:flex;flex-direction:column;min-height:340px;overflow:hidden}
.cd-list > .card-head{
  flex:0 0 auto;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:12px 20px;
}
.cd-list > .card-head h2{margin:0;flex:0 0 auto;font-size:15px}

.cd-filter{
  display:flex;align-items:center;gap:8px;
  margin-left:auto;flex-wrap:nowrap;
}
.cd-search{
  position:relative;
  display:flex;align-items:center;
  color:var(--text-weak);
}
.cd-search svg{position:absolute;left:10px;pointer-events:none}
.cd-search .input{
  height:32px;
  width:210px;
  padding-left:31px;
  font-size:13px;
}
.cd-filter .select{
  flex:0 0 auto;width:auto;min-width:120px;max-width:190px;
  height:32px;font-size:13px;
}
.cd-filter .btn{height:32px;flex:0 0 auto;white-space:nowrap}

.cd-filter-tip{
  flex:0 0 auto;
  padding:8px 20px;
  border-bottom:1px solid var(--border);
  background:var(--primary-soft);
  font-size:12.5px;color:var(--text-sub);
}
.cd-filter-tip b{color:var(--primary);font-weight:600}

.cd-list-body{
  flex:1 1 auto;min-height:0;
  max-height:min(60vh, 680px);
  overflow:auto;
  overscroll-behavior:contain;
}
.cd-list-body table.data thead th{
  position:sticky;top:0;z-index:2;
  background:var(--bg-panel);
  box-shadow:inset 0 -1px 0 var(--border);
}
.cd-list-body table.data td{font-size:13px}

.cd-list-foot{
  flex:0 0 auto;
  padding:9px 20px;
  border-top:1px solid var(--border);
  background:var(--bg-panel);
  font-size:12px;color:var(--text-weak);
}

.cd-row-acts{
  display:inline-flex;align-items:center;gap:6px;
  flex-wrap:nowrap;
}
.cd-row-acts form{display:inline-flex;margin:0}

/* ---- 生成批次表单 ---- */
.cd-gen-form{
  display:grid;
  /* 去掉批次名称后剩三个字段 + 按钮：
     面值 / 数量 各占一份，前缀占大份，按钮定宽贴右边 */
  grid-template-columns:minmax(120px,1fr) minmax(100px,.8fr) minmax(200px,1.6fr) 108px;
  gap:12px;
  align-items:end;
}
.cd-gen-form .field{
  margin:0;min-width:0;
  display:flex;flex-direction:column;gap:6px;
}
.cd-gen-form .btn{
  height:var(--control-h, 38px);
  margin:0;
  align-self:end;          /* 盖掉全局 .btn 的 align-self:center */
  justify-self:stretch;    /* 撑满 108px 那一列，右边贴齐内容边 */
  width:100%;
}

/* 刚生成的明文表：限高内滚，不把页面拉长 */
.cd-gen-cards{
  max-height:min(48vh, 460px);
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid var(--border);
  border-radius:8px;
}
.cd-gen-cards table.data thead th{
  position:sticky;top:0;z-index:2;
  background:var(--bg-panel);
  box-shadow:inset 0 -1px 0 var(--border);
}

/* ---- 详情弹窗 ---- */
.cd-detail{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px 20px;
  margin:0;
}
.cd-detail > div{display:flex;flex-direction:column;gap:3px;min-width:0}
.cd-detail .is-wide{grid-column:1 / -1}
.cd-detail dt{font-size:12px;color:var(--text-weak)}
.cd-detail dd{
  margin:0;
  font-size:13.5px;color:var(--text);
  word-break:break-all;
}
.cd-detail-note{
  margin:16px 0 0;padding-top:12px;
  border-top:1px solid var(--border);
  font-size:12.5px;color:var(--text-weak);
}

@media (max-width:1200px){
  .cd-filter{flex-wrap:wrap;margin-left:0;width:100%}
  .cd-search .input{width:100%}
  .cd-search{flex:1 1 200px}
}
@media (max-width:900px){
  .cd-gen-form{grid-template-columns:1fr 1fr}
  .cd-gen-form .btn{justify-self:start}
}
@media (max-width:640px){
  .cd-gen-form{grid-template-columns:1fr}
  .cd-detail{grid-template-columns:1fr}
}
/* 卡密详情弹窗：头部横向，关闭按钮靠右 */
.modal#cdViewModal{
  width:min(560px, calc(100vw - 40px));
  max-height:calc(100vh - 80px);
  overflow:auto;
}
.modal#cdViewModal .modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:15px 20px;
  border-bottom:1px solid var(--border);
}
.modal#cdViewModal .modal-head h3{
  margin:0;font-size:15px;font-weight:600;color:var(--text);
}
.modal#cdViewModal .modal-x{
  margin-left:auto;flex:0 0 auto;
  width:26px;height:26px;
  display:inline-flex;align-items:center;justify-content:center;
  border:0;border-radius:6px;
  background:transparent;
  color:var(--text-weak);
  font-size:18px;line-height:1;
  cursor:pointer;
}
.modal#cdViewModal .modal-x:hover{background:var(--bg-panel);color:var(--text)}
.modal#cdViewModal .modal-body{padding:18px 20px 20px}
/* 刚生成明文的头部：标题 + 徽标 + 条数 + 右侧操作按钮 */
.cd-gen-result > .card-head{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.cd-gen-result > .card-head h2{margin:0;flex:0 0 auto;font-size:15px}
.cd-gen-result > .card-head .spacer{flex:1 1 auto}
.cd-gen-acts{
  display:flex;align-items:center;gap:8px;
  flex:0 0 auto;
  margin-left:8px;
}
.cd-gen-acts .btn{flex:0 0 auto}
/* ---- 生成进度遮罩 ---- */
.cd-prog{
  position:fixed;inset:0;z-index:140;
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  background:rgba(15,23,42,.26);
}
.cd-prog[hidden]{display:none !important}
.cd-prog-card{
  width:min(430px, 100%);
  padding:22px 22px 18px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 16px 40px rgba(16,24,40,.18);
}
.cd-prog-top{display:flex;align-items:center;gap:14px}
.cd-prog-spin{
  width:26px;height:26px;flex:0 0 auto;
  border:3px solid var(--primary-soft);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:cd-spin .78s linear infinite;
}
.cd-prog-spin[hidden]{display:none}
@keyframes cd-spin{to{transform:rotate(360deg)}}
.cd-prog-headtext{min-width:0}
.cd-prog-title{font-size:15px;font-weight:600;color:var(--text)}
.cd-prog-sub{margin-top:3px;font-size:12.5px;color:var(--text-sub)}

.cd-prog-track{
  height:8px;margin:18px 0 10px;
  background:var(--bg-panel);
  border-radius:999px;
  overflow:hidden;
}
.cd-prog-fill{
  display:block;height:100%;width:0;
  background:var(--primary);
  border-radius:999px;
  transition:width .26s ease;
}
.cd-prog-foot{
  display:flex;align-items:center;justify-content:space-between;
  font-size:12.5px;color:var(--text-sub);
  font-variant-numeric:tabular-nums;
}
.cd-prog-foot span:last-child{font-weight:600;color:var(--primary)}
.cd-prog-acts{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;
  margin-top:16px;
}
.cd-prog-acts .btn{flex:0 0 auto}
.cd-prog-acts .btn[hidden]{display:none !important}
/* ============================================================
   邀请码 / 关系树  /admin/invites
   ============================================================ */

/* ---- 邀请码胶囊 ---- */
.iv-chip{
  display:inline-block;
  padding:2px 7px;
  border-radius:5px;
  background:var(--primary-soft);
  color:var(--primary);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;
  letter-spacing:.4px;
  white-space:nowrap;
}
.iv-chip.is-mute{
  background:var(--bg-panel);
  color:var(--text-sub);
}

/* ---- 角色小标 ---- */
.iv-tag{
  display:inline-block;
  flex:0 0 auto;
  padding:1px 7px;
  border-radius:5px;
  font-size:11.5px;
  font-weight:600;
  line-height:1.5;
}
.iv-tag.is-admin{background:#eff6ff;color:#2563eb}
.iv-tag.is-agent{background:#ecfdf5;color:#059669}

/* ---- 管理员码卡 ---- */
.iv-hero-row{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(340px, 1fr));
  gap:16px;
  margin-bottom:16px;
  flex:0 0 auto;
}
.iv-hero{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px 20px;
  flex:0 0 auto;
}
.iv-hero-head{
  display:flex;align-items:center;gap:10px;
}
.iv-hero-name{font-size:15px;font-weight:600;color:var(--text)}
.iv-hero-code{
  display:flex;align-items:center;gap:12px;
}
.iv-code-val{
  flex:1 1 auto;
  padding:10px 14px;
  border:1px dashed var(--border-strong, var(--border));
  border-radius:8px;
  background:var(--bg-panel);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:20px;
  font-weight:650;
  letter-spacing:2.5px;
  color:var(--text);
  text-align:center;
  user-select:all;
}
.iv-hero-code .btn{flex:0 0 auto;height:38px}
.iv-hero-meta{
  display:flex;flex-wrap:wrap;gap:8px 20px;
  font-size:12.5px;color:var(--text-sub);
}
.iv-hero-meta b{color:var(--primary);font-weight:600}
.iv-hero-foot{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding-top:12px;
  border-top:1px solid var(--border);
}
.iv-hero-foot form{display:inline-flex;margin:0}
.iv-hero-hint{font-size:11.5px;color:var(--text-weak)}

/* ---- 关系树 ---- */
.iv-tree-card{
  display:flex;flex-direction:column;
  overflow:hidden;
  margin-bottom:16px;
  /* main.content 是 flex column，不锁住就会被压扁 */
  flex:0 0 auto;
}
.iv-tree-body{
  padding:6px 20px 16px;
  max-height:min(62vh, 720px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.iv-node{
  border-bottom:1px solid var(--border);
}
.iv-node:last-child{border-bottom:0}
.iv-node-head{
  display:flex;align-items:center;gap:10px;
  padding:12px 4px;
  cursor:pointer;
  user-select:none;
}
.iv-node-head:hover{background:rgba(15,23,42,.015)}
.iv-chev{
  flex:0 0 auto;
  width:14px;
  color:var(--text-weak);
  font-size:11px;
  transition:transform .15s;
}
.iv-node.is-open .iv-chev{transform:rotate(90deg)}
.iv-node-body[hidden]{display:none !important}
.iv-node-name{font-size:13.5px;font-weight:600;color:var(--text)}
.iv-node-num{
  font-size:12px;color:var(--text-sub);
  padding:1px 7px;border-radius:5px;background:var(--bg-panel);
}
.iv-node-up{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;color:var(--text-weak);
}

.iv-node-body{padding:0 0 16px 24px}
.iv-node-acts{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin-bottom:12px;
}
.iv-node-acts form{display:inline-flex;margin:0}
.iv-hint-inline{font-size:11.5px;color:var(--text-weak)}
.iv-hint-inline b{color:var(--text-sub);font-weight:600}
.iv-empty-kid{
  margin:0;padding:10px 0;
  font-size:12.5px;color:var(--text-weak);
}
.iv-kid-table{width:100%}

/* ---- 游离用户 ---- */
.iv-orphan-card{display:flex;flex-direction:column;overflow:hidden;flex:0 0 auto}
.iv-orphan-body{
  max-height:min(48vh, 520px);
  overflow:auto;
  overscroll-behavior:contain;
}
.iv-orphan-body table.data thead th{
  position:sticky;top:0;z-index:2;
  background:var(--bg-panel);
  box-shadow:inset 0 -1px 0 var(--border);
}
/* ---- 代理端：二级代理开关 ---- */
.sa-switch-card{
  margin-bottom:16px;
  flex:0 0 auto;
  padding:16px 20px;
}
.sa-switch{
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;
}
.sa-switch-text{flex:1 1 320px;min-width:0}
.sa-switch-title{
  display:flex;align-items:center;gap:10px;
  font-size:14px;font-weight:600;color:var(--text);
}
.sa-state{
  display:inline-block;
  padding:1px 8px;
  border-radius:5px;
  font-size:11.5px;font-weight:600;
}
.sa-state.is-on{background:#ecfdf5;color:#059669}
.sa-state.is-off{background:var(--bg-panel);color:var(--text-weak)}
.sa-switch-desc{
  margin-top:6px;
  font-size:12.5px;line-height:1.7;color:var(--text-sub);
}
.sa-switch-act{flex:0 0 auto;display:inline-flex;margin:0}

.iv-tag.is-user{background:var(--bg-panel);color:var(--text-sub)}
/* ---- 代理端：我的抽成 ---- */
.cut-card{
  display:flex;flex-direction:column;gap:14px;
  padding:16px 20px;
  margin-bottom:16px;
  flex:0 0 auto;
}
.cut-form{
  display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap;
  margin:0;
}
.cut-info{flex:1 1 320px;min-width:0}
.cut-title{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:14px;font-weight:600;color:var(--text);
}
.cut-now{
  padding:1px 8px;border-radius:5px;
  background:var(--primary-soft);color:var(--primary);
  font-size:12px;font-weight:600;
}
.cut-desc{
  margin-top:6px;
  font-size:12.5px;line-height:1.7;color:var(--text-sub);
}
.cut-desc b{color:var(--text)}
.cut-input-wrap{
  display:flex;align-items:center;gap:10px;
  flex:0 0 auto;
}
.cut-input{
  width:110px;text-align:center;
  height:38px;font-size:15px;font-weight:600;
}
.cut-save{align-self:end;height:38px;white-space:nowrap}

.cut-sim{
  padding-top:12px;
  border-top:1px solid var(--border);
}
.cut-sim-title{
  font-size:11.5px;color:var(--text-weak);
  margin-bottom:8px;
}
.cut-sim-row{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:12.5px;color:var(--text-sub);
}
.cut-step{
  padding:4px 10px;border-radius:6px;
  background:var(--bg-panel);
}
.cut-step b{color:var(--text);font-weight:600}
.cut-step.muted{color:var(--text-weak)}
.cut-arrow{color:var(--text-weak);font-size:12px}
/* ---- 代理端：按模板定价 ---- */
.pr-card{display:flex;flex-direction:column;overflow:hidden;flex:0 0 auto;margin-bottom:16px}
.pr-body{max-height:min(64vh,720px);overflow:auto;overscroll-behavior:contain}
.pr-table{table-layout:auto}
.pr-table thead th{
  position:sticky;top:0;z-index:2;
  background:var(--bg-panel);
  box-shadow:inset 0 -1px 0 var(--border);
}
.pr-table td{vertical-align:middle}
.pr-name{font-size:13px;font-weight:600;color:var(--text)}
.pr-task{font-size:11.5px;color:var(--text-weak);margin-top:1px}
.pr-minus{color:var(--danger);font-weight:600}
.pr-mine{color:var(--text);font-weight:600}
.pr-sub{color:var(--primary);font-weight:650}
.pr-cut-form{display:inline-flex;align-items:center;gap:6px;margin:0}
.pr-cut-input{
  width:64px;height:30px;padding:0 6px;
  text-align:center;font-size:13px;
}
.pr-note{flex:0 0 auto;padding:14px 20px}
.pr-note-body b{font-size:13px;color:var(--text)}
.pr-note-body p{margin:6px 0 0;font-size:12.5px;line-height:1.7;color:var(--text-sub)}
/* ---- 代理概览：佣金流水行 ---- */
.ag-comm-list{display:flex;flex-direction:column}
.ag-comm-row{
  display:flex;align-items:center;gap:10px;
  padding:10px 0;
  border-bottom:1px dashed var(--border);
}
.ag-comm-row:last-child{border-bottom:0}
.ag-comm-dot{
  flex:0 0 auto;width:6px;height:6px;border-radius:50%;
  background:var(--primary);opacity:.55;
}
.ag-comm-main{flex:1 1 auto;min-width:0}
.ag-comm-t{
  font-size:13px;color:var(--text);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ag-comm-x{
  margin-top:2px;
  font-size:11.5px;color:var(--text-weak);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ag-comm-amt{
  flex:0 0 auto;
  font-size:13px;font-weight:650;
  color:var(--success);
  font-variant-numeric:tabular-nums;
}
.ag-rank-pts{font-weight:400;color:var(--text-weak);font-size:11.5px}
/* ---- 定价页：价格 / 抽成 / 设置弹窗 ---- */
.pr-price{font-weight:650;color:var(--text);font-size:13.5px}
.pr-cut-val{font-size:12.5px;color:var(--primary);font-weight:600;
  background:var(--primary-soft);border-radius:6px;padding:2px 8px;display:inline-block}
.pr-dlg-tpl{font-size:13px;color:var(--text-sub);margin-bottom:12px}
.pr-dlg-price{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;margin-bottom:14px;
  background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-sm);
  font-size:13px;color:var(--text-sub);
}
.pr-dlg-price b{font-size:19px;color:var(--text);font-variant-numeric:tabular-nums}
.pr-dlg-hint{margin-top:6px;font-size:11.5px;color:var(--text-weak);line-height:1.6}
.pr-dlg-preview{
  margin-top:12px;padding:10px 14px;
  background:var(--primary-soft);border-radius:var(--radius-sm);
  font-size:12.5px;color:var(--text-sub);
}
.pr-dlg-preview b{color:var(--primary);font-size:15px;margin-left:4px;font-variant-numeric:tabular-nums}
#prDialog .ui-dialog-body{padding:18px 20px}
/* ---- 个人资料：只读区 / 可改区 分区 ---- */
.pf-card{max-width:720px;flex:0 0 auto}
.pf-sec + .pf-sec{margin-top:22px;padding-top:20px;border-top:1px solid var(--border)}
.pf-sec-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.pf-sec-t{font-size:12.5px;font-weight:600;color:var(--text-sub);letter-spacing:.02em}
.pf-sec-tag{
  display:inline-flex;align-items:center;gap:4px;
  height:20px;padding:0 7px;border-radius:5px;
  font-size:11px;font-weight:500;line-height:1;
}
.pf-sec-tag.is-lock{background:var(--bg-panel);color:var(--text-weak);border:1px solid var(--border)}
.pf-sec-tag.is-edit{background:var(--primary-soft);color:var(--primary);border:1px solid transparent}
.pf-sec-tag svg{display:block}

/* 只读字段：灰底文字块，不用输入框样式 */
.pf-ro{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  padding:12px 14px;
  background:var(--bg-panel);
  border:1px solid var(--border);border-radius:var(--radius-sm);
}
.pf-ro-item{display:flex;flex-direction:column;gap:3px;min-width:0}
.pf-ro-label{font-size:11.5px;color:var(--text-weak)}
.pf-ro-val{
  font-size:13.5px;font-weight:600;color:var(--text-sub);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.pf-sec-note{margin:8px 0 0;font-size:11.5px;color:var(--text-weak);line-height:1.6}
.pf-save{align-self:flex-start;margin-top:14px}

@media (max-width:640px){
  .pf-ro{grid-template-columns:1fr}
}
/* ---- 表单校验：内联错误提示（替代浏览器原生气泡） ---- */
.input.is-err,
select.is-err,
textarea.is-err{
  border-color:var(--danger) !important;
  background:#fff7f7;
}
.input.is-err:focus,
select.is-err:focus,
textarea.is-err:focus{
  box-shadow:0 0 0 3px rgba(220,38,38,.12);
}
.field-err{
  display:flex;align-items:flex-start;gap:5px;
  margin-top:5px;
  font-size:11.5px;line-height:1.55;
  color:var(--danger);
}
.field-err::before{
  content:"";
  flex:0 0 auto;
  width:5px;height:5px;margin-top:6px;
  border-radius:50%;
  background:var(--danger);
}
.ag-fz-at{font-size:11px;margin-left:4px}
/* ---- 侧栏底部身份卡 ---- */
.nav-user{
  display:flex;align-items:center;gap:9px;
  padding:7px 8px;border-radius:var(--radius-sm);
  background:var(--bg-panel);border:1px solid var(--border);
  text-decoration:none;color:inherit;
  transition:background .15s,border-color .15s;
}
.nav-user:hover{background:var(--bg-hover);border-color:#d8dde5}
.nav-user-av{
  flex:0 0 auto;width:32px;height:32px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;color:#fff;background:var(--primary);
  letter-spacing:0;
}
.nav-user-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px;text-decoration:none;color:inherit}
.nav-user-name{
  font-size:13px;font-weight:600;color:var(--text);line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.nav-user-role{font-size:11px;color:var(--text-weak);line-height:1.3}
.nav-user-out{
  flex:0 0 auto;width:24px;height:24px;border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-weak);transition:background .15s,color .15s;
}
.nav-user-out:hover{background:#fee2e2;color:var(--danger)}
@media (max-width:900px){
  .nav-user{padding:8px}
}

/* ================= 管理端仪表盘 ================= */
.db-alert-txt{color:var(--warn)}

/* ---- 待办条 ---- */
.db-todo{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.db-todo-item{
  display:flex;align-items:center;gap:11px;padding:13px 15px;
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);
  text-decoration:none;color:inherit;box-shadow:var(--shadow-sm);
  transition:border-color .15s,box-shadow .15s,transform .15s;
}
.db-todo-item:hover{border-color:#cfd6e0;box-shadow:0 3px 10px rgba(16,24,40,.08);transform:translateY(-1px)}
.db-todo-ico{
  flex:0 0 auto;width:34px;height:34px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:var(--bg-panel);color:var(--text-sub);
}
.db-todo-item.is-hot{border-color:#fcd9a8;background:#fffdf8}
.db-todo-item.is-hot .db-todo-ico{background:#fef3c7;color:var(--warn)}
.db-todo-body{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.db-todo-num{font-size:19px;font-weight:700;color:var(--text);line-height:1.15;letter-spacing:-.3px}
.db-todo-item.is-hot .db-todo-num{color:#b45309}
.db-todo-lab{font-size:11.5px;color:var(--text-weak)}
.db-todo-go{font-size:11px;color:var(--warn);white-space:nowrap;flex:0 0 auto}

/* ---- 行布局 ---- */
.db-row{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:16px;align-items:stretch}
.db-row > .card{margin:0;display:flex;flex-direction:column}
.db-row > .card > .card-body{flex:1;display:flex;flex-direction:column;justify-content:flex-end}
.db-span2{grid-column:span 1}
@media (max-width:1100px){
  .db-todo{grid-template-columns:repeat(2,minmax(0,1fr))}
  .db-row{grid-template-columns:1fr}
}

/* ---- 趋势图 ---- */
.db-legend{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--text-sub);margin-left:12px}
.db-legend i{width:8px;height:8px;border-radius:2px;display:inline-block}
.db-legend i.is-sub{background:var(--primary)}
.db-legend i.is-ord{background:#c7d7f0}
.db-legend b{color:var(--text);font-size:12px}

.db-chart{display:flex;align-items:flex-end;gap:10px;height:100%;min-height:150px;padding-top:6px}
.db-col{flex:1;display:flex;flex-direction:column;height:100%;min-width:0}
.db-bars{
  flex:1;display:flex;align-items:flex-end;justify-content:center;gap:3px;
  border-bottom:1px solid var(--border);padding-bottom:0;
}
.db-bar{width:13px;border-radius:3px 3px 0 0;display:block;transition:opacity .15s}
.db-bar.is-sub{background:var(--primary)}
.db-bar.is-ord{background:#c7d7f0}
.db-col:hover .db-bar{opacity:.8}
.db-day{text-align:center;font-size:10.5px;color:var(--text-weak);padding-top:6px;white-space:nowrap}

/* ---- 财务 ---- */
.db-fin{display:flex;flex-direction:column}
.db-fin-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed var(--border);font-size:12.5px;color:var(--text-sub)}
.db-fin-row:last-child{border-bottom:0}
.db-fin-row b{font-size:14px;color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.db-fin-row b.is-warn{color:var(--warn)}
.db-fin-row.is-total{margin-top:4px;padding-top:10px;border-top:1px solid var(--border);border-bottom:0}
.db-fin-note{margin-top:12px;padding:9px 11px;background:var(--bg-panel);border-radius:var(--radius-sm);font-size:11.5px;color:var(--text-weak);line-height:1.5}

/* ---- 列表 ---- */
.db-list{display:flex;flex-direction:column}
.db-list-row{
  display:flex;align-items:center;gap:10px;padding:10px 16px;
  border-bottom:1px solid var(--border);text-decoration:none;color:inherit;
  transition:background .12s;
}
.db-list-row:last-child{border-bottom:0}
.db-list-row:hover{background:var(--bg-hover)}
.db-list-row.is-static:hover{background:transparent}
.db-list-badge{
  flex:0 0 auto;font-size:10.5px;color:var(--text-weak);
  background:var(--bg-panel);border-radius:5px;padding:2px 6px;font-variant-numeric:tabular-nums;
}
.db-list-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.db-list-t{font-size:12.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-list-s{font-size:11px;color:var(--text-weak);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-list-pts{font-size:12.5px;font-weight:600;color:var(--success);flex:0 0 auto;font-variant-numeric:tabular-nums}
.db-list-time{font-size:11px;color:var(--text-weak);flex:0 0 auto;font-variant-numeric:tabular-nums}
.db-list-go{color:var(--text-weak);flex:0 0 auto;font-size:14px}
.db-ava{
  flex:0 0 auto;width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:11.5px;font-weight:700;color:var(--primary);background:var(--primary-soft);
}
.db-chip{
  margin-left:8px;font-size:11px;color:var(--warn);background:#fef3c7;
  border-radius:5px;padding:2px 7px;
}
.db-more{font-size:12px;color:var(--primary);text-decoration:none;white-space:nowrap}
.db-more:hover{text-decoration:underline}
.db-empty{padding:34px 16px;text-align:center;font-size:12.5px;color:var(--text-weak)}
.db-num{text-align:center;font-size:10px;color:var(--text-weak);padding-top:2px;font-variant-numeric:tabular-nums}
.db-num b{color:var(--primary);font-weight:600}

/* ---- 卡片数字配色（语义化） ---- */
.db-todo-item.is-blue{background:#f8fbff;border-color:#d6e4f8}
.db-todo-item.is-blue .db-todo-ico{background:var(--primary-soft);color:var(--primary)}
.db-todo-item.is-blue .db-todo-num{color:var(--primary)}

.db-todo-item.is-green{background:#f8fdf9;border-color:#d5ebdc}
.db-todo-item.is-green .db-todo-ico{background:#f0fdf4;color:#15803d}
.db-todo-item.is-green .db-todo-num{color:#15803d}

.db-todo-item.is-zero{background:var(--bg-card)}
.db-todo-item.is-zero .db-todo-num{color:var(--text-weak)}

.db-kpi .kpi-value.is-blue{color:var(--primary)}
.db-kpi .kpi-value.is-green{color:#15803d}
.db-kpi .kpi-value.is-indigo{color:#1d4ed8}
.db-kpi .kpi-value.is-amber{color:#b45309}

/* 图标底色也跟着上色 */
.db-kpi .kpi:has(.kpi-value.is-blue) .kpi-icon{background:var(--primary-soft);color:var(--primary)}
.db-kpi .kpi:has(.kpi-value.is-green) .kpi-icon{background:#f0fdf4;color:#15803d}
.db-kpi .kpi:has(.kpi-value.is-indigo) .kpi-icon{background:#eff6ff;color:#1d4ed8}
.db-kpi .kpi:has(.kpi-value.is-amber) .kpi-icon{background:#fffbeb;color:#b45309}

/* ---- 数据卡：实底大图标 ---- */
.db-cd{
  display:flex;align-items:center;gap:12px;
  padding:13px 15px;background:var(--bg-card);
  border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  text-decoration:none;color:inherit;
}
a.db-cd{transition:border-color .15s,box-shadow .15s,transform .15s}
a.db-cd.is-link:hover{border-color:#cfd6e0;box-shadow:0 3px 10px rgba(16,24,40,.08);transform:translateY(-1px)}
a.db-cd:not(.is-link){cursor:default}

.db-cd-ic{
  width:42px;height:42px;border-radius:11px;
  background:var(--c,#94a3b8);color:#fff;
  display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;
}
.db-cd-ic svg{width:20px;height:20px;stroke-width:2.2}

.db-cd-tx{display:flex;flex-direction:column;gap:1px;min-width:0}
.db-cd-num{
  font-size:21px;font-weight:700;color:var(--text);
  line-height:1.15;letter-spacing:-.4px;
  font-variant-numeric:tabular-nums;
}
.db-cd-lab{
  font-size:11.5px;color:var(--text-weak);line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
@media (max-width:1100px){
  .db-cd{padding:11px 12px;gap:10px}
  .db-cd-ic{width:38px;height:38px;border-radius:10px}
  .db-cd-num{font-size:19px}
}

/* 任务行删除按钮：平时灰，悬停转红 */
.btn.is-del{color:var(--text-sub)}
.btn.is-del:hover:not(:disabled){color:#dc2626;background:#fef2f2;border-color:#fecaca}
.btn.is-del:disabled{color:#c7ccd4;cursor:not-allowed;opacity:.7}

/* ================================================================
   操作按钮 · 实底语义色
   每个动作一个色，同语义全站同色；统一白字、统一圆角。
   蓝=主操作  青=查看  靛=库存  绿=正向(上架/通过/解冻)
   橙=反向(下架/驳回/冻结)  红=删除  灰蓝=导出复制  灰=取消重置  紫=推送
   ================================================================ */

/* 兜底：原 btn-ghost 改成中性灰实底，避免漏改的地方还是描边 */
.btn-ghost, .btn-ghost:hover { color: #fff; }
.btn-ghost{background:#6b7280;border-color:#6b7280}
.btn-ghost:hover{background:#4b5563;border-color:#4b5563}
.btn-ghost:active{background:#374151;border-color:#374151}

/* 查看 / 详情 */
.btn-view{background:#0891b2;border-color:#0891b2;color:#fff}
.btn-view:hover{background:#0e7490;border-color:#0e7490;color:#fff}
.btn-view:active{background:#155e75;border-color:#155e75;color:#fff}

/* 库存 */
.btn-stock{background:#4f46e5;border-color:#4f46e5;color:#fff}
.btn-stock:hover{background:#4338ca;border-color:#4338ca;color:#fff}
.btn-stock:active{background:#3730a3;border-color:#3730a3;color:#fff}

/* 正向：上架 / 通过 / 启用 / 解冻 */
.btn-on{background:#059669;border-color:#059669;color:#fff}
.btn-on:hover{background:#047857;border-color:#047857;color:#fff}
.btn-on:active{background:#065f46;border-color:#065f46;color:#fff}

/* 反向：下架 / 驳回 / 冻结 / 撤回 */
.btn-off{background:#d97706;border-color:#d97706;color:#fff}
.btn-off:hover{background:#b45309;border-color:#b45309;color:#fff}
.btn-off:active{background:#92400e;border-color:#92400e;color:#fff}

/* 导出 / 下载 / 复制 */
.btn-export{background:#475569;border-color:#475569;color:#fff}
.btn-export:hover{background:#334155;border-color:#334155;color:#fff}
.btn-export:active{background:#1e293b;border-color:#1e293b;color:#fff}

/* 推送 / 通知 */
.btn-push{background:#7c3aed;border-color:#7c3aed;color:#fff}
.btn-push:hover{background:#6d28d9;border-color:#6d28d9;color:#fff}
.btn-push:active{background:#5b21b6;border-color:#5b21b6;color:#fff}

/* 中性：取消 / 关闭 / 重置 / 清除
   底色不能太浅 —— #9ca3af 配白字只有 2.54:1，读不清，压到 #6b7280（4.83:1） */
.btn-neutral{background:#6b7280;border-color:#6b7280;color:#fff}
.btn-neutral:hover{background:#4b5563;border-color:#4b5563;color:#fff}
.btn-neutral:active{background:#374151;border-color:#374151;color:#fff}

/* 所有实底按钮统一：白字、细阴影、按下微沉 */
.btn-primary,.btn-danger,.btn-success,.btn-ghost,.btn-view,.btn-stock,
.btn-on,.btn-off,.btn-export,.btn-push,.btn-neutral{box-shadow:0 1px 2px rgba(16,24,40,.10)}
.btn-primary:disabled,.btn-danger:disabled,.btn-ghost:disabled,.btn-view:disabled,
.btn-stock:disabled,.btn-on:disabled,.btn-off:disabled,.btn-export:disabled,
.btn-push:disabled,.btn-neutral:disabled{opacity:.45;box-shadow:none}
.btn-primary:active,.btn-danger:active,.btn-success:active{transform:translateY(.5px)}

/* ================================================================
   修正：按钮文字与底色冲突
   问题源：
     1) .btn.is-del{color:var(--text-sub)} 优先级高于 .btn-danger → 红底灰字
     2) .btn-tone-* 是浅底深字，和实底按钮混排深浅不一
     3) .btn.is-on 有浅底(#eff6ff)与实底两套定义
   统一口径：凡是实底，一律白字。
   ================================================================ */

/* ① 删除按钮：不再自己定文字色，交给实底语义类 */
.btn.is-del{color:#fff}
.btn.is-del:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c;color:#fff}
.btn.is-del:disabled{opacity:.45;color:#fff;background:#6b7280;border-color:#6b7280}

/* ② btn-tone-* 浅底改实底 */
.btn-tone-neutral{background:#64748b;border-color:#64748b;color:#fff}
.btn-tone-neutral:hover{background:#475569;border-color:#475569;color:#fff}
.btn-tone-info{background:#2563eb;border-color:#2563eb;color:#fff}
.btn-tone-info:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.btn-tone-success{background:#059669;border-color:#059669;color:#fff}
.btn-tone-success:hover{background:#047857;border-color:#047857;color:#fff}
.btn-tone-danger{background:#dc2626;border-color:#dc2626;color:#fff}
.btn-tone-danger:hover{background:#b91c1c;border-color:#b91c1c;color:#fff}
.btn-tone-warn{background:#d97706;border-color:#d97706;color:#fff}
.btn-tone-warn:hover{background:#b45309;border-color:#b45309;color:#fff}

/* ③ 选中态：实底蓝 */
.btn.is-on{background:#2563eb;border-color:#2563eb;color:#fff}
.btn.is-on:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}

/* ④ 公告删除这类自带 !important 的老样式，一并拉到实底 */
.ann-del-btn{background:#dc2626 !important;border-color:#dc2626 !important;color:#fff !important}
.ann-del-btn:hover{background:#b91c1c !important;border-color:#b91c1c !important;color:#fff !important}

/* ⑤ 总闸：所有实底按钮强制白字 + 抗锯齿，谁也别想覆盖 */
.btn-primary,.btn-primary:hover,
.btn-danger,.btn-danger:hover,
.btn-success,.btn-success:hover,
.btn-danger-ghost,.btn-danger-ghost:hover,
.btn-ghost,.btn-ghost:hover,.btn-ghost:active,
.btn-view,.btn-view:hover,.btn-view:active,
.btn-stock,.btn-stock:hover,.btn-stock:active,
.btn-on,.btn-on:hover,.btn-on:active,
.btn-off,.btn-off:hover,.btn-off:active,
.btn-export,.btn-export:hover,.btn-export:active,
.btn-push,.btn-push:hover,.btn-push:active,
.btn-neutral,.btn-neutral:hover,.btn-neutral:active,
.btn-tone-neutral,.btn-tone-neutral:hover,
.btn-tone-info,.btn-tone-info:hover,
.btn-tone-success,.btn-tone-success:hover,
.btn-tone-danger,.btn-tone-danger:hover,
.btn-tone-warn,.btn-tone-warn:hover,
.btn.is-del,.btn.is-del:hover:not(:disabled),
.btn.is-on,.btn.is-on:hover{
  color:#fff !important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ⑥ 禁用态：整体降透明度，文字仍白，不做「白底灰字」 */
.btn:disabled,.btn[disabled]{opacity:.45}

/* 接单大厅 · 可提交模板列 */
.mk-td-tpl{display:flex;flex-wrap:wrap;gap:3px;min-width:0;max-height:46px;overflow:hidden}
.mk-td-tpl .mk-tpl{
  display:inline-flex;align-items:center;
  height:20px;padding:0 6px;
  background:#eff6ff;border:1px solid #dbeafe;border-radius:5px;
  font-size:11px;font-weight:600;color:#2563eb;white-space:nowrap;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;
}
.mk-td-tpl .weak{font-size:12.5px;font-weight:400;color:#b6bcc6}

/* 提交页 · 档次卡片剩余次数
   徽章钉在卡片右上角，不跟「等级 / 积分」抢同一行 —— 挤一起会把积分挤断行 */
.tpl-left{
  position:absolute;top:9px;right:10px;
  display:inline-flex;align-items:center;gap:3px;
  height:19px;padding:0 7px;border-radius:5px;
  background:#ecfdf5;border:1px solid #a7f3d0;
  font-size:11.5px;font-weight:600;color:#047857;white-space:nowrap;
  pointer-events:none;
}
/* 卡片标题给徽章让出位置 */
.tpl-card .tpl-name{padding-right:84px;max-width:100%}
/* meta 行只剩「等级 | 积分」，不再和徽章挤 */
.tpl-card .tpl-meta{gap:10px}
.tpl-card .tpl-pts{white-space:nowrap}
.tpl-left b{font-weight:800;font-size:12px}
.tpl-left.is-low{background:#fffbeb;border-color:#fde68a;color:#b45309}
.tpl-left.is-out{background:#f3f4f6;border-color:#e5e7eb;color:#9ca3af}
.tpl-card.is-out{cursor:not-allowed;background:#fbfbfc}
.tpl-card.is-out .tpl-name{color:#9ca3af}
.tpl-card.is-out .tpl-pts b{color:#9ca3af}

/* 接单大厅 · 模板标签里的剩余次数（小字，跟在名字后面） */
.mk-tpl{display:inline-flex;align-items:center;gap:3px}
.mk-tpl-n{
  display:inline-flex;align-items:center;
  height:14px;padding:0 3px;border-radius:3px;
  background:rgba(37,99,235,.10);
  font-style:normal;font-size:10px;font-weight:700;letter-spacing:0;
  color:#2563eb;white-space:nowrap;
}
.mk-tpl-n.is-low{background:#fef3c7;color:#b45309}
.mk-tpl-n.is-out{background:#e5e7eb;color:#9ca3af}
.mk-tpl.is-out{background:#f9fafb;border-color:#e5e7eb;color:#9ca3af}

/* 审核弹窗 · 两个决策按钮等宽并排
   原来三个按钮各自按内容宽度排，长短不齐；现在固定两列等宽 */
.rv-side .rv-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  justify-content:stretch;
  margin-top:auto;
}
.rv-side .rv-actions .btn{
  width:100%;
  min-width:0;
  height:40px;
  padding:0 12px;
  justify-content:center;
  font-size:13.5px;
  border-radius:8px;
}
/* 窄屏仍并排，只压缩字号，不塌成单列 */
@media (max-width:560px){
  .rv-side .rv-actions{grid-template-columns:1fr 1fr}
  .rv-side .rv-actions .btn{font-size:13px;padding:0 8px}
}

/* ============ 操作日志页 ============ */
.lg-filter{padding:14px 16px;margin-bottom:14px}
.lg-filter-form{margin:0}
.lg-filter-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end}
.lg-fi{display:flex;flex-direction:column;gap:5px;min-width:0}
.lg-fi>span{font-size:12px;color:#6b7280;font-weight:500;white-space:nowrap}
.lg-fi .input{height:34px;width:100%;min-width:0}
.lg-fi-wide{grid-column:span 2}
.lg-fi-btn{justify-content:flex-end}
.lg-fi-btn .btn{width:100%;height:34px}

.lg-table td{vertical-align:top}
.lg-time{white-space:nowrap;color:#6b7280;font-size:12.5px;font-variant-numeric:tabular-nums}
.lg-who{font-weight:500;color:#1f2937}
.lg-role{display:inline-block;margin-left:5px;padding:0 5px;height:16px;line-height:16px;
  border-radius:4px;background:#f3f4f6;color:#6b7280;font-size:10.5px;font-style:normal;font-weight:500}
.lg-act{display:inline-block;padding:1px 7px;border-radius:5px;font-size:12px;font-weight:600;white-space:nowrap}
.lg-cat-审核{background:#eff6ff;color:#2563eb}
.lg-cat-业务{background:#f5f3ff;color:#7c3aed}
.lg-cat-库存{background:#ecfeff;color:#0891b2}
.lg-cat-资金{background:#ecfdf5;color:#059669}
.lg-cat-用户{background:#fffbeb;color:#b45309}
.lg-cat-系统{background:#f3f4f6;color:#4b5563}
.lg-cat-其他{background:#f3f4f6;color:#9ca3af}
.lg-detail{display:block;font-size:12.5px;color:#4b5563;line-height:1.55;
  word-break:break-word;max-width:640px}
.lg-target{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#6b7280}
.lg-ip{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#6b7280}
.lg-pager{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 16px}

@media (max-width:760px){
  .lg-fi-wide{grid-column:span 1}
  .lg-detail{max-width:100%}
}

.lg-target{white-space:nowrap}
.lg-table td[data-th="内容"]{min-width:0}
.lg-detail{max-width:560px}


/* ============ 页头行内标识（替代原来的 .sub 说明行） ============ */
.page-head h1{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.page-meta{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
.page-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;
  border-radius:6px;background:#f3f4f6;border:1px solid #e5e7eb;
  font-size:12px;font-weight:500;color:#4b5563;font-style:normal;
  white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis;
  font-family:inherit;letter-spacing:0;line-height:1}
.page-chip.is-key{background:#eff6ff;border-color:#dbeafe;color:#2563eb;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600}

@media (max-width:640px){
  .page-chip{height:20px;font-size:11px;padding:0 6px;max-width:150px}
}
/* ============ 押金账户页 ============ */
.dp-hero{display:flex;align-items:center;gap:18px;margin-bottom:16px}
.dp-hero-cell{flex:1;background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.dp-hero-cell.is-hi{background:#eff6ff;border-color:#bfdbfe}
.dp-hero-k{font-size:12.5px;color:var(--text-sub)}
.dp-hero-v{font-size:30px;line-height:1.1;font-weight:700;color:var(--text);
  font-variant-numeric:tabular-nums}
.dp-hero-v em{font-size:13px;font-weight:500;color:var(--text-sub);
  font-style:normal;margin-left:3px}
.dp-hero-cell.is-hi .dp-hero-v{color:#2563eb}
.dp-hero-s{font-size:12px;color:var(--text-weak)}
.dp-hero-arrow{color:var(--text-weak);flex:0 0 auto}

.dp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px 20px;margin-bottom:18px}
.dp-kv{display:flex;flex-direction:column;gap:3px}
.dp-kv span{font-size:12.5px;color:var(--text-sub)}
.dp-kv b{font-size:16px;font-weight:600;color:var(--text);
  font-variant-numeric:tabular-nums}
.dp-kv b.is-good{color:#059669}

.dp-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:14px 0 2px;border-top:1px solid var(--border)}
.dp-actions form{margin:0}
.dp-blockers{display:inline-flex;align-items:center;gap:6px;
  font-size:12.5px;color:var(--text-sub)}
.dp-blockers.is-warn{color:#b45309}

.dp-note{margin-top:16px;padding:12px 14px;background:#f7f8fa;
  border:1px solid var(--border);border-radius:8px}
.dp-note p{margin:0 0 6px;font-size:12.5px;line-height:1.7;color:var(--text-sub)}
.dp-note p:last-child{margin-bottom:0}
.dp-note b{color:var(--text)}

.dp-type{display:inline-block;padding:1px 7px;border-radius:5px;
  font-size:12px;line-height:18px;font-weight:500}
.dp-type-pay{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.dp-type-refund{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.dp-type-deduct{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.dp-type-adjust{background:#f3f4f6;color:#4b5563;border:1px solid #e5e7eb}

@media (max-width:700px){
  .dp-hero{flex-direction:column;align-items:stretch}
  .dp-hero-arrow{transform:rotate(90deg);align-self:center}
}

/* ============ 押金管理（后台） ============ */
.dp-search{display:flex;gap:6px;align-items:center}
.dp-search input[type=text]{width:170px;height:32px;padding:0 10px;
  border:1px solid var(--border);border-radius:7px;font-size:13px}
.dp-st{display:inline-block;padding:1px 8px;border-radius:5px;font-size:12px;line-height:18px}
.dp-st-active{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.dp-st-refunded{background:#f3f4f6;color:#6b7280;border:1px solid #e5e7eb}
.dp-st-none{background:#fff;color:#9ca3af;border:1px solid #e5e7eb}
.seg{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.seg-item{padding:0 14px;height:32px;line-height:30px;font-size:13px;
  color:var(--text-sub);text-decoration:none;border-right:1px solid var(--border)}
.seg-item:last-child{border-right:0}
.seg-item:hover{background:#f7f8fa;color:var(--text)}
.seg-item.is-on{background:#eff6ff;color:#2563eb;font-weight:600}

/* 类型徽章不许折行（「扣押押金」被挤成两行过） */
.dp-type{white-space:nowrap}
.lg-table td[data-th="类型"],.data td[data-th="类型"]{white-space:nowrap}

/* ============ 押金管理：自己的表格容器 ============ */
/* 不加入 .table-wrap：app.js 的 fit() 只挑「行数最多」的那一个接管页面高度，
   跟本页「统计卡 + 两个表」的布局冲突，会把其中一个压成一行半。
   改成自己限高 + 内部滚动：每个表各滚各的，页面不跟着长。 */
.dp-table-wrap{
  width:100%;
  max-height:min(38vh, 360px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  border-top:1px solid #f1f3f6;
}
/* 表格：固定列宽之和已超容器，窄屏会把弹性列挤成一条缝，文字被拦腰断行。
   给最小宽度，不够就横向滚，别压字。 */
.dp-table-wrap > table.data{
  width:100%;
  min-width:900px;
}
.dp-table-wrap > table.data.dp-tbl-narrow{min-width:760px}
/* 覆盖全局 word-break:break-word —— 否则 user1 会被拆成 use / r1 */
.dp-table-wrap > table.data th,
.dp-table-wrap > table.data td{
  overflow-wrap:normal;
  word-break:normal;
  white-space:nowrap;
}
/* 只有说明列允许折行，其余一律单行 */
.dp-table-wrap > table.data td[data-th="说明"],
.dp-table-wrap > table.data td[data-th="内容"]{
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
  min-width:200px;
}
/* 表头滚动时固定 */
.dp-table-wrap > table.data thead th{position:sticky;top:0;z-index:3}

/* 押金账户表通常只有一两行，别留一大块空白 */
.dp-table-wrap.dp-wrap-sm{max-height:min(26vh, 240px)}

/* 滚动条跟全站一致 */
.dp-table-wrap::-webkit-scrollbar{width:9px;height:9px}
.dp-table-wrap::-webkit-scrollbar-track{background:#f8fafc}
.dp-table-wrap::-webkit-scrollbar-thumb{background:#d6dbe1;border-radius:5px}
.dp-table-wrap::-webkit-scrollbar-thumb:hover{background:#c2c9d2}

/* 窄屏：给表格更多呼吸，别把行压太扁 */
@media (max-width:900px){
  .dp-table-wrap{max-height:min(46vh, 420px)}
  .dp-table-wrap.dp-wrap-sm{max-height:min(32vh, 280px)}
}

/* 押金弹窗内间距：提示文字和第一个输入框别贴一起 */
#dpDeduct .ui-dialog-body,
#dpAdjust .ui-dialog-body{
  display:flex;flex-direction:column;gap:16px;
}
#dpDeduct .ui-dialog-text,
#dpAdjust .ui-dialog-text{margin:0;color:#4b5563;font-size:13.5px}

/* ============ 设置页：押金卡片 ============ */
.dep-now{
  margin-top:14px;padding:11px 14px;
  background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;
  font-size:13px;color:#1e40af;line-height:1.7;
}
.dep-now b{color:#1d4ed8;font-variant-numeric:tabular-nums}

/* ============ 模板列表：冻结时长两行 ============ */
.tpl-fh-row{display:flex;align-items:baseline;justify-content:flex-end;gap:4px;
  font-size:13px;line-height:1.5}
.tpl-fh-row + .tpl-fh-row{margin-top:2px}
.tpl-fh-k{font-size:11px;color:var(--text-weak);min-width:26px;text-align:right}
.tpl-fh-row.is-dep .tpl-fh-k{color:#2563eb}
.tpl-fh-row.is-dep b{color:#2563eb}

/* ============ 提交说明：便签黄 ============ */
.sn-note{
  position:relative;
  background:#fffbeb;
  border:1px solid #fde68a;
  border-left:4px solid #f59e0b;
  border-radius:10px;
  padding:14px 18px 16px;
  margin-bottom:16px;
}
.sn-note-hd{
  display:flex;align-items:center;gap:8px;
  margin-bottom:10px;padding-bottom:9px;
  border-bottom:1px dashed #fde68a;
}
.sn-note-tag{
  display:inline-flex;align-items:center;gap:5px;
  font-size:13.5px;font-weight:700;color:#92400e;
  letter-spacing:.2px;
}
.sn-note-tag svg{opacity:.75}
.sn-note-hint{margin-left:auto;font-size:12px;color:#b45309;opacity:.85}

/* 富文本内容在黄色便签里的可读性：统一压成暖色系 */
.sn-note-bd{color:#78350f;font-size:13.5px;line-height:1.85}
.sn-note-bd h1,.sn-note-bd h2,.sn-note-bd h3,
.sn-note-bd h4,.sn-note-bd h5,.sn-note-bd h6{
  color:#92400e;font-size:14px;font-weight:600;
  margin:12px 0 7px;line-height:1.5;
}
.sn-note-bd h1:first-child,.sn-note-bd h2:first-child,
.sn-note-bd h3:first-child,.sn-note-bd h4:first-child{margin-top:0}
.sn-note-bd p{margin:0 0 8px;color:#78350f}
.sn-note-bd p:last-child{margin-bottom:0}
.sn-note-bd ul,.sn-note-bd ol{margin:0 0 8px;padding-left:20px}
.sn-note-bd li{margin:1px 0}
.sn-note-bd li::marker{color:#f59e0b}
.sn-note-bd strong,.sn-note-bd b{color:#92400e;font-weight:600}
.sn-note-bd a{color:#b45309;text-decoration:underline;text-underline-offset:2px}
.sn-note-bd blockquote{
  margin:10px 0;padding:8px 12px;
  background:#fef3c7;border-left:3px solid #fbbf24;
  border-radius:0 6px 6px 0;
  color:#92400e;font-size:13px;
}
.sn-note-bd code{
  background:#fef3c7;color:#92400e;
  padding:1px 5px;border-radius:4px;font-size:12.5px;
}
.sn-note-bd hr{border:0;border-top:1px dashed #fde68a;margin:12px 0}

@media (max-width:640px){
  .sn-note{padding:12px 14px 14px;border-left-width:3px}
  .sn-note-bd{font-size:13px}
  .sn-note-hint{display:none}
}

/* ============ 题目管理 ============ */
.q-filter .select{min-width:220px}
.q-card + .q-card{margin-top:14px}
.q-card .card-head h2{display:flex;align-items:center;gap:8px;font-size:14.5px}
.q-task-id{
  display:inline-block;padding:1px 7px;border-radius:5px;
  background:#f1f5f9;color:#64748b;
  font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;
}
.q-count{font-size:12px;color:var(--text-weak)}
.q-jump{
  font-size:12px;color:var(--primary);text-decoration:none;
  padding:2px 8px;border-radius:6px;background:#eff6ff;
  white-space:nowrap;
}
.q-jump:hover{background:#dbeafe}
.q-text{color:var(--text);max-width:520px}
.q-opts{white-space:nowrap}
.q-opts-in{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.q-req{
  display:inline-block;padding:0 6px;border-radius:4px;
  background:#fef2f2;color:#dc2626;
  font-size:11.5px;font-weight:600;line-height:18px;
}
.q-add-card{margin-top:16px}
.q-add-card .field + .field{margin-top:12px}

@media (max-width:720px){
  .q-filter .select{min-width:0;width:100%}
  .q-text{max-width:none}
  .q-opts{max-width:none}
}

/* ============ 题目管理 · 任务列表 ============ */
.q-task-name{font-weight:600;color:var(--text);white-space:nowrap}
.q-none{
  display:inline-block;padding:0 7px;border-radius:4px;
  background:#f3f4f6;color:#9ca3af;
  font-size:11.5px;line-height:18px;
}
.q-preview{
  color:var(--text-sub);font-size:12.5px;
  max-width:560px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.q-card td[data-th="操作"] .btn,
.q-card .table-wrap td[data-th="操作"] .btn{min-width:72px}
table.data td[data-th="操作"]{white-space:nowrap}

@media (max-width:820px){
  .q-preview{max-width:none}
  .q-task-name{white-space:normal}
}

/* ============ 题目编辑弹窗 ============ */
.form-grid-2{grid-template-columns:1fr 1fr}
#qDialog .ui-dialog-body{display:flex;flex-direction:column;gap:14px}
#qDialog .ui-dialog-body .form-grid + .field,
#qDialog .ui-dialog-body .field + .field{margin-top:0}
#qDialog .field .req{color:#dc2626;margin-left:2px;font-weight:600}
#qDialog .pr-dlg-hint{margin:5px 0 0;font-size:12px;color:var(--text-weak)}
#qDialog .textarea{min-height:96px;resize:vertical}

@media (max-width:640px){
  .form-grid-2{grid-template-columns:1fr}
}

/* ============ 单选题选项编辑器 ============ */
.opt-count{
  margin-left:8px;font-size:11.5px;font-weight:400;
  color:var(--text-weak);font-variant-numeric:tabular-nums;
}
.opt-list{display:flex;flex-direction:column;gap:7px}
.opt-row{
  display:flex;align-items:center;gap:2px;
  background:#fff;border:1px solid #e5e7eb;border-radius:8px;
  padding:2px 4px 2px 2px;
  transition:border-color .12s,box-shadow .12s,opacity .12s;
}
.opt-row:hover{border-color:#cbd5e1}
.opt-row:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.opt-row.dragging{opacity:.35;border-style:dashed}
.opt-grip{
  flex:0 0 auto;padding:0 5px;cursor:grab;user-select:none;
  color:#cbd5e1;font-size:13px;line-height:1;letter-spacing:-1px;
}
.opt-grip:active{cursor:grabbing}
.opt-row:hover .opt-grip{color:#94a3b8}
.opt-input{
  flex:1;min-width:0;border:0;background:transparent;
  padding:7px 4px;font-size:13.5px;color:var(--text);
  font-family:inherit;outline:none;
}
.opt-input::placeholder{color:#c7cbd1}
.opt-del{
  flex:0 0 auto;border:0;background:transparent;cursor:pointer;
  color:#cbd5e1;font-size:13px;line-height:1;
  padding:6px 7px;border-radius:6px;
}
.opt-del:hover{background:#fef2f2;color:#dc2626}
.opt-add{margin-top:9px}
#qDialog .opt-list{max-height:210px;overflow-y:auto;padding-right:2px}

/* ============ 图片题：槽位 / 教程 ============ */
.sub-label{display:block;font-size:12.5px;color:var(--text-sub);margin-bottom:6px}

/* 出题端槽位编辑 */
.slot-edit{display:flex;flex-direction:column;gap:7px}
.slot-edit-row{
  display:grid;grid-template-columns:22px 1fr 1.4fr auto 28px;
  align-items:center;gap:6px;
  background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:5px 6px;
}
.slot-edit-row:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.slot-edit-no{font-size:11.5px;color:var(--text-weak);text-align:center;font-variant-numeric:tabular-nums}
.slot-edit-row .input{border:0!important;box-shadow:none!important;padding:5px 4px;font-size:13px}
.slot-edit-req{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--text-sub);white-space:nowrap;cursor:pointer}
.slot-edit-req input{margin:0;cursor:pointer}
.slot-edit-del{padding:4px 6px}

/* 教程图选择 */
.tut-pick{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tut-pick img{
  width:112px;height:72px;object-fit:cover;
  border:1px solid #e5e7eb;border-radius:8px;background:#f7f8fa;
}
.tut-pick-ph{
  width:112px;height:72px;display:flex;align-items:center;justify-content:center;
  border:1px dashed #d1d5db;border-radius:8px;background:#fafafa;
  font-size:11.5px;color:#9ca3af;text-align:center;line-height:1.4;
}
.tut-pick-btn{
  display:inline-flex;align-items:center;
  padding:6px 12px;border-radius:7px;
  background:#f3f4f6;border:1px solid #e5e7eb;
  font-size:12.5px;color:var(--text);cursor:pointer;white-space:nowrap;
}
.tut-pick-btn:hover{background:#eef2f7;border-color:#cbd5e1}

/* 用户端：提交教程 */
.img-guide{
  margin:0 0 12px;padding:12px 14px;
  background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;
}
.img-guide-hd{
  display:flex;align-items:center;gap:5px;
  font-size:12.5px;font-weight:600;color:#475569;margin-bottom:9px;
}
.img-guide-pic{
  position:relative;display:inline-block;margin-bottom:9px;border-radius:8px;overflow:hidden;
  border:1px solid #e2e8f0;
}
.img-guide-pic img{display:block;width:220px;height:130px;object-fit:cover;background:#eef2f7}
.img-guide-pic span{
  position:absolute;left:0;right:0;bottom:0;
  padding:3px 8px;font-size:11px;color:#fff;
  background:rgba(15,23,42,.55);
}
.img-guide-hint{font-size:13px;color:#475569;line-height:1.75}

/* 用户端：槽位上传 */
.slot-list{display:flex;flex-direction:column;gap:8px}
.slot-row{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:9px;
  background:#fff;border:1px solid #e5e7eb;cursor:pointer;
  transition:border-color .12s,background .12s;
}
.slot-row:hover{border-color:#cbd5e1;background:#fafbfc}
.slot-row.is-req{border-left:3px solid #2563eb}
.slot-row.is-picked{border-color:#22c55e;background:#f0fdf4}
.slot-no{
  flex:0 0 22px;height:22px;border-radius:50%;
  background:#eff6ff;color:#2563eb;font-size:12px;font-weight:600;
  display:flex;align-items:center;justify-content:center;
}
.slot-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.slot-info b{font-size:13.5px;color:var(--text);font-weight:600}
.slot-info small{font-size:12px;color:var(--text-sub);line-height:1.5}
.slot-tag{
  flex:0 0 auto;font-size:11px;padding:1px 7px;border-radius:4px;
  background:#f3f4f6;color:#9ca3af;line-height:18px;
}
.slot-tag.is-req{background:#eff6ff;color:#2563eb}
.slot-pick{
  flex:0 0 auto;padding:5px 12px;border-radius:7px;
  background:#2563eb;color:#fff;font-size:12.5px;font-weight:600;
  white-space:nowrap;max-width:170px;overflow:hidden;text-overflow:ellipsis;
}
.slot-row.is-picked .slot-pick{background:#22c55e}
.slot-tip{display:block;margin-top:7px;font-size:12px;color:var(--text-weak)}

.thumb-lbl{
  display:block;margin-top:4px;text-align:center;
  font-size:11px;color:var(--text-weak);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}

/* 弹窗内容太长时自己滚，别把按钮顶出屏幕 */
#qDialog .ui-dialog-body{max-height:min(66vh,620px);overflow-y:auto;overscroll-behavior:contain}
#qDialog .ui-dialog-body::-webkit-scrollbar{width:8px}
#qDialog .ui-dialog-body::-webkit-scrollbar-thumb{background:#d6dbe1;border-radius:4px}

/* 槽位行：说明框给足宽度 */
.slot-edit-row{grid-template-columns:20px minmax(64px,.8fr) minmax(120px,1.8fr) auto 26px}

/* ============ 用户端：每张图的教程卡片 ============ */
.slot-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:10px;
  padding:12px 14px 10px;cursor:pointer;
  transition:border-color .12s,box-shadow .12s,background .12s;
}
.slot-card + .slot-card{margin-top:10px}
.slot-card:hover{border-color:#cbd5e1;box-shadow:0 1px 4px rgba(16,24,40,.06)}
.slot-card.is-req{border-left:3px solid #2563eb}
.slot-card.is-picked{border-color:#22c55e;background:#f6fef9}
.slot-card-hd{display:flex;align-items:center;gap:9px;margin-bottom:0}
.slot-card-hd .slot-no{flex:0 0 22px}
.slot-card-hd .slot-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.slot-card-hd .slot-info b{font-size:13.5px;color:var(--text);font-weight:600}
.slot-card-hd .slot-info small{font-size:12px;color:var(--text-sub);line-height:1.5}
.slot-demo{
  display:block;position:relative;margin:10px 0 0;
  border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;
  width:fit-content;max-width:100%;
}
.slot-demo img{
  display:block;width:200px;height:118px;object-fit:cover;background:#eef2f7;
}
.slot-demo span{
  position:absolute;left:0;right:0;bottom:0;
  padding:3px 9px;font-size:11px;color:#fff;
  background:rgba(15,23,42,.58);
}
.slot-card-ft{margin-top:10px;display:flex;align-items:center;gap:8px}
.slot-card-ft .slot-pick{
  display:inline-block;padding:6px 14px;border-radius:7px;
  background:#2563eb;color:#fff;font-size:12.5px;font-weight:600;
  max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.slot-card.is-picked .slot-card-ft .slot-pick{background:#22c55e}

/* ============ 出题端：行内教程图 ============ */
.slot-edit-row{
  grid-template-columns:20px minmax(58px,.7fr) minmax(100px,1.5fr) 108px auto 26px;
}
.slot-demo-box{
  position:relative;width:104px;height:58px;flex:0 0 auto;
  border:1px dashed #d1d5db;border-radius:7px;background:#fafbfc;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.slot-demo-box img{width:100%;height:100%;object-fit:cover;display:block}
.slot-demo-pick{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:11px;color:#9ca3af;cursor:pointer;text-align:center;line-height:1.3;
}
.slot-demo-box img:not([hidden]) + .slot-demo-pick{opacity:0}
.slot-demo-box:hover .slot-demo-pick{opacity:1!important;background:rgba(255,255,255,.82);color:#2563eb}
.slot-demo-del{
  position:absolute;top:-6px;right:-6px;width:18px;height:18px;
  border-radius:50%;border:1px solid #fecaca;background:#fff;color:#dc2626;
  font-size:10px;line-height:1;cursor:pointer;padding:0;
  display:flex;align-items:center;justify-content:center;z-index:2;
}
.slot-demo-del:hover{background:#fee2e2}

@media (max-width:720px){
  .slot-edit-row{grid-template-columns:18px 1fr 1fr;row-gap:6px}
  .slot-demo-box{grid-column:1 / -1;width:100%;height:76px}
  .slot-card-hd{flex-wrap:wrap}
}

/* 图片题配置内容多，弹窗放宽一点 */
#qDialog{width:min(760px,94vw)}
#qDialog .ui-dialog-body{max-height:min(70vh,660px)}
/* 槽位行：名称短、说明长、教程图定宽 */
#qDialog .slot-edit-row{
  grid-template-columns:20px 74px minmax(150px,1fr) 104px auto 26px;
}

/* ============ 图片题：虚线占位框 ============ */
.up-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
@media (max-width:980px){ .up-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:620px){ .up-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px} }

.up-cell{
  position:relative;
  border:2px dashed #cbd5e1;
  border-radius:11px;
  background:#fafbfc;
  padding:8px 8px 9px;
  cursor:pointer;
  transition:border-color .15s,background .15s,box-shadow .15s;
  text-align:center;
}
.up-cell:hover{border-color:#2563eb;background:#f5f9ff}
.up-cell.is-picked{
  border:2px solid #22c55e;
  background:#f6fef9;
}
.up-cell.is-picked:hover{border-color:#16a34a;background:#f0fdf4}

/* 主区：教程图自适应缩放，整图完整可见、不裁切 */
.up-box{
  position:relative;
  height:96px;
  border-radius:7px;
  background:#eef2f7;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.up-tutwrap{display:block;width:100%;height:100%;position:relative}
.up-tut{
  width:100%;
  height:100%;
  object-fit:contain;   /* 等比缩放到框里，整张都看得见 */
  background:#f1f5f9;
  display:block;
}
.up-cell.is-picked .up-tut{opacity:.55}

/* 放大提示 */
.up-zoom{
  position:absolute;left:0;right:0;bottom:0;
  display:flex;align-items:center;justify-content:center;gap:3px;
  padding:2px 0;font-size:10px;color:#fff;
  background:rgba(15,23,42,.52);
  opacity:0;transition:opacity .14s;
}
.up-tutwrap:hover .up-zoom{opacity:1}

/* 没配教程图时的占位 */
.up-ph{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  width:100%;height:100%;
  font-size:11px;color:#9ca3af;
}
.up-plus{font-size:20px;line-height:1;color:#cbd5e1}

/* 已选绿勾 */
.up-okmark{
  position:absolute;right:4px;bottom:4px;
  width:19px;height:19px;border-radius:50%;
  background:#22c55e;color:#fff;
  font-size:11px;line-height:19px;text-align:center;
  box-shadow:0 1px 3px rgba(22,163,74,.35);
}

.up-nm{
  margin-top:7px;
  font-size:12.5px;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.up-sub{
  font-size:11px;color:var(--text-weak);
  margin-top:1px;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;
}
.up-tagrow{margin-top:4px}
.up-tag{
  font-size:10px;padding:0 5px;border-radius:3px;line-height:16px;
  background:#f3f4f6;color:#9ca3af;display:inline-block;
}
.up-tag.is-req{background:#eff6ff;color:#2563eb}
.up-cell.is-picked .up-tag.is-req{background:#dcfce7;color:#16a34a}

.up-picked{
  margin-top:4px;font-size:10.5px;color:#16a34a;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.up-tip{display:block;margin-top:9px;font-size:11.5px;color:var(--text-weak)}

/* ============ 图片题上传格 · 修正 ============ */
/* 1) 宽度上限：浏览器放到最大也不会撑成巨型方块 */
.up-grid{
  max-width:1036px;           /* 5 × 196 + 4 × 14 */
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
@media (max-width:1100px){ .up-grid{max-width:100%;grid-template-columns:repeat(4,minmax(0,1fr))} }
@media (max-width:900px){ .up-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:620px){ .up-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px} }

/* 2) 教程图铺满：cover 填满整块，不留白边 */
.up-tut{
  object-fit:cover;
  width:100%;
  height:100%;
}

/* 3) 主图区高度固定，不随浏览器缩放乱涨 */
.up-box{height:104px;border-radius:8px}

/* 4) 用户自己的图，铺满主图 */
.up-minewrap{
  display:block;position:absolute;inset:0;
  z-index:2;
}
.up-mine{
  width:100%;height:100%;
  object-fit:cover;display:block;
}
.up-cell.is-picked .up-box{box-shadow:inset 0 0 0 2px #22c55e}

/* 5) 删除键：右上角红圈 */
.up-del{
  position:absolute;top:4px;right:4px;z-index:4;
  width:21px;height:21px;padding:0;
  border-radius:50%;border:1px solid #fecaca;
  background:#fff;color:#dc2626;
  font-size:11px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 3px rgba(16,24,40,.18);
  transition:background .12s,transform .12s;
}
.up-del:hover{background:#fee2e2;transform:scale(1.08)}

/* 6) 绿勾和删除键错开，别打架 */
.up-okmark{right:5px;bottom:5px;z-index:3}

/* 7) 已传时教程图让位，悬停提示换成「看自己的图」 */
.up-minewrap .up-zoom{opacity:0;transition:opacity .14s}
.up-minewrap:hover .up-zoom{opacity:1}

/* ===== 最终版网格：5 列固定、总宽封顶 ===== */
.up-grid{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:14px;
  max-width:1036px;      /* 5 × 196 + 4 × 14 = 1036，再宽也不涨 */
}
@media (max-width:900px){
  .up-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;max-width:100%}
}
@media (max-width:600px){
  .up-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px}
}
.up-box{height:112px}

/* ============ 审核详情弹窗：底部操作栏 + 两列答案 ============ */
/* 弹窗改成纵向三段：头 / 可滚内容 / 底部操作 */
.rv-panel{
  display:flex !important;
  flex-direction:column !important;
  max-height:min(92vh,900px) !important;
  overflow:hidden !important;
}
.rv-head{flex:0 0 auto}
.rv-main{
  flex:1 1 auto !important;
  overflow-y:auto !important;
  display:block !important;
  min-height:0;
}
.rv-main::-webkit-scrollbar{width:8px}
.rv-main::-webkit-scrollbar-thumb{background:#d6dbe1;border-radius:4px}

/* 底部操作栏 */
.rv-foot{
  flex:0 0 auto;
  border-top:1px solid #e5e7eb;
  background:#fafbfc;
  padding:10px 16px;
}
.rv-foot-form{
  display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;
}
.rv-foot-note{flex:1;min-width:220px}
.rv-foot-note label{display:block;font-size:11px;color:#9ca3af;margin-bottom:3px}
.rv-foot-note .textarea{
  width:100%;min-height:44px;max-height:88px;
  font-size:12.5px;padding:6px 10px;box-sizing:border-box;resize:vertical;
}
.rv-foot-nums{display:flex;gap:8px;flex:0 0 auto}
.rv-foot-nums .field{width:86px}
.rv-foot-nums label{display:block;font-size:11px;color:#9ca3af;margin-bottom:3px}
.rv-foot-nums .input{padding:6px 9px;font-size:13px}
.rv-foot .rv-actions{display:flex;gap:8px;flex:0 0 auto}
.rv-foot .rv-actions .btn{white-space:nowrap}
.rv-foot .rv-result{font-size:12.5px;color:#374151}

/* 答案两列：图片题跨整行 */
.answer-list{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  align-items:start;
}
.answer-item{
  min-width:0;
  border:1px solid #eef0f3;
  border-radius:9px;
  padding:10px 12px;
  background:#fff;
}
.answer-item.is-wide{grid-column:1 / -1}
@media (max-width:820px){
  .answer-list{grid-template-columns:1fr}
}

/* ============ 审核弹窗：题目 / 答案 层次分明 ============ */
/* 题目：小字灰色，只做背景信息 */
.answer-item .answer-q{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  font-size:11.5px;color:#9ca3af;
  margin-bottom:6px;line-height:1.5;
}
.answer-item .answer-no{
  font-size:11px;color:#9ca3af;
  font-variant-numeric:tabular-nums;
  flex:0 0 auto;
}
.answer-item .answer-qtext{
  font-size:12px;color:#6b7280;font-weight:400;
}

/* 答案：大字深色 + 浅底 + 左侧蓝条，一眼看出是用户填的 */
.answer-item .answer-a{
  font-size:14px;color:#1f2937;font-weight:500;
  background:#f8fafc;
  border-left:3px solid #2563eb;
  border-radius:0 7px 7px 0;
  padding:8px 12px;
  line-height:1.7;
  word-break:break-word;
  white-space:pre-wrap;
}
.answer-item .answer-a.is-empty{
  color:#b6bcc4;font-weight:400;font-style:normal;
  background:#fbfcfd;border-left-color:#e2e8f0;
  font-size:12.5px;padding:6px 12px;
}

/* 图片题：图区直接贴着题目，不要蓝条 */
.answer-item.is-wide .answer-a{
  border-left-color:#f59e0b;
  background:#fffbeb;
}

/* 答案里的换行保住，别被 accordion 吃 */
.answer-a br{content:"";display:block;margin-top:2px}

/* 图片格子略微收紧，题目区变高后总量平衡 */
.answer-item.is-wide .rv-thumbs{margin-top:8px}

/* ============ 审核底栏微调 ============ */
/* 1) 去掉数字框的上下滚动箭头 */
.rv-foot-nums input[type="number"]::-webkit-outer-spin-button,
.rv-foot-nums input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  appearance:none;
  margin:0;
}
.rv-foot-nums input[type="number"]{
  -moz-appearance:textfield;
  appearance:textfield;
}
.rv-foot-nums .input{padding-right:10px}

/* 2) 两个按钮等宽对称 */
.rv-foot .rv-actions{
  display:flex;
  gap:8px;
  flex:0 0 auto;
  width:216px;
}
.rv-foot .rv-actions .btn{
  flex:1 1 0;
  min-width:0;
  padding:8px 0;
  text-align:center;
  justify-content:center;
  font-size:13px;
}

/* 3) 底栏别被内容区滚动条压边 */
.rv-foot{position:relative;z-index:2}
.rv-main{scrollbar-gutter:stable}

/* 按钮固定等宽，不许被压缩 */
.rv-foot .rv-actions{
  display:flex;
  gap:8px;
  flex:0 0 auto;
  flex-shrink:0;
  white-space:nowrap;
}
.rv-foot .rv-actions .btn{
  flex:0 0 auto;
  width:104px;
  min-width:104px;
  padding:8px 0;
  text-align:center;
  justify-content:center;
  font-size:13px;
  line-height:1.4;
}
/* 窄屏时两个按钮等分整行 */
@media (max-width:1200px){
  .rv-foot .rv-actions{width:100%}
  .rv-foot .rv-actions .btn{flex:1 1 0;width:auto;min-width:0}
}

/* 底栏按钮最终锁定（压过全局 .rv-actions .btn{flex:1 1 100%}） */
.rv-foot .rv-actions{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  flex:0 0 auto !important;
  width:auto !important;
}
.rv-foot .rv-actions .btn{
  flex:0 0 auto !important;
  width:104px !important;
  min-width:104px !important;
  max-width:104px !important;
  padding:8px 0 !important;
  font-size:13px !important;
  text-align:center !important;
  justify-content:center !important;
}
@media (max-width:1200px){
  .rv-foot .rv-actions{width:100% !important}
  .rv-foot .rv-actions .btn{flex:1 1 0 !important;width:auto !important;min-width:0 !important;max-width:none !important}
}

/* 数字框：禁止滚轮/触摸改值，并让两个按钮盒模型统一 */
.rv-foot-nums input[type="number"]{
  box-sizing:border-box;
  pointer-events:auto;
}
.rv-foot .rv-actions .btn{
  box-sizing:border-box;
}

/* ============ 底栏：按钮与数字框平行对齐 ============ */
/* 底栏整体底边对齐 */
.rv-foot-form{
  align-items:flex-end !important;
}

/* 数字框统一高度 */
.rv-foot-nums .field{
  display:flex;
  flex-direction:column;
}
.rv-foot-nums .input{
  height:34px !important;
  box-sizing:border-box;
  padding:0 10px !important;
  line-height:32px;
}

/* 按钮补齐 label 那一行的高度占位，再让按钮本体和输入框等高 */
.rv-foot .rv-actions{
  align-items:flex-end !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  box-sizing:border-box;
}
.rv-foot .rv-actions .btn{
  height:34px !important;
  min-height:34px !important;
  padding:0 !important;
  line-height:34px !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}

/* 备注框底边也跟输入框对齐，整条线齐 */
.rv-foot-note textarea{
  min-height:34px !important;
  height:34px;
}

/* ============ 底栏按钮组：与「应得/扣分」结构对齐 ============ */
/* 数字框有 label 占一行，按钮组也补同高占位，两边顶边底边自动同线 */
.rv-foot-form{
  display:flex !important;
  align-items:flex-end !important;
  gap:12px !important;
  flex-wrap:wrap !important;
}
.rv-foot-act{
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
}
/* 占位：和「应得」label 一样高一样字号，但不可见 */
.rv-foot-act-ph{
  display:block;
  height:16px;
  line-height:16px;
  margin-bottom:3px;
  font-size:11px;
  visibility:hidden;
  overflow:hidden;
}
/* 数字框的 label 保持同样的 16+3 */
.rv-foot-nums label{
  display:block;
  height:16px;
  line-height:16px;
  margin-bottom:3px;
  font-size:11px;
  color:#9ca3af;
}

/* 内层按钮组 */
.rv-foot-act .rv-actions{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  flex:0 0 auto !important;
  width:auto !important;
  padding:0 !important;
  margin:0 !important;
}
.rv-foot-act .rv-actions .btn{
  flex:0 0 auto !important;
  height:34px !important;
  min-height:34px !important;
  padding:0 12px !important;
  line-height:34px !important;
  font-size:13px !important;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

/* 底栏数字字段去掉全局 .field 的 16px 下边距，否则容器比按钮组高 16px */
.rv-foot-nums .field{
  margin-bottom:0 !important;
  margin-top:0 !important;
  padding-bottom:0 !important;
}
.rv-foot-nums{
  align-items:flex-end !important;
}

/* ============ 审核弹窗：题目标题 / 答案 都加粗，答案字号不超过标题 ============ */
/* 题号：小字，加粗但浅，退到背景 */
.answer-item .answer-no{
  font-size:11.5px !important;
  font-weight:600 !important;
  color:#64748b !important;
  letter-spacing:.2px;
}
/* 题干：全场最重、最深，字号 13.5px —— 作为字号上限 */
.answer-item .answer-qtext{
  font-size:13.5px !important;
  font-weight:700 !important;
  color:#1f2937 !important;
  letter-spacing:.1px;
}
/* 题型标签跟着标题一起加重 */
.answer-item .answer-q .badge{
  font-weight:700 !important;
  font-size:10.5px !important;
}
/* 答案：同样加黑加粗，但字号 13px < 题干 13.5px，字重 600 < 题干 700 */
.answer-item .answer-a{
  font-size:13px !important;
  font-weight:600 !important;
  color:#1f2937 !important;
  line-height:1.75;
}
.answer-item .answer-a.is-empty{
  font-weight:400 !important;
  color:#9aa3af !important;
  font-size:12px !important;
}

/* ============ 审核弹窗顶部信息卡：按内容分配列宽，压掉任务格子的空白 ============ */
/* 第一行：用户(短) / 任务(长) / 等级(短) */
.rv-body .kv-grid.kv-g1,
.kv-grid.kv-g1{
  display:grid !important;
  grid-template-columns:0.8fr 1.5fr 0.9fr !important;
  gap:7px !important;
  margin-bottom:7px !important;
}
/* 第二行：时间(长) / 应得(短) / 实得(短) */
.rv-body .kv-grid.kv-g2,
.kv-grid.kv-g2{
  display:grid !important;
  grid-template-columns:1.5fr 0.72fr 0.72fr !important;
  gap:7px !important;
  margin-bottom:9px !important;
}
/* 单格：压短内距，标签和值排紧凑 */
.rv-body .kv-grid .kv,
.kv-grid.kv-g1 .kv,
.kv-grid.kv-g2 .kv{
  min-width:0;
  padding:6px 10px !important;
  border-radius:7px !important;
  line-height:1.35 !important;
}
.rv-body .kv-grid .kv span,
.kv-grid.kv-g1 .kv span,
.kv-grid.kv-g2 .kv span{
  display:block;
  font-size:11px !important;
  color:#9ca3af !important;
  margin-bottom:1px !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rv-body .kv-grid .kv b,
.kv-grid.kv-g1 .kv b,
.kv-grid.kv-g2 .kv b{
  display:block;
  font-size:12.5px !important;
  font-weight:600 !important;
  color:#1f2937 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* 窄屏回到两列 */
@media (max-width:900px){
  .kv-grid.kv-g1{grid-template-columns:1fr 1fr !important}
  .kv-grid.kv-g2{grid-template-columns:1fr 1fr !important}
}

/* ============ 审核弹窗顶部：去掉卡片框，改成内联「标签 值」 ============ */
.mi-line{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:2px 26px;
  padding:0;
  margin:0 0 4px;
  line-height:1.5;
}
.mi-line:last-of-type{margin-bottom:8px}
.mi-line .mi{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  min-width:0;
}
.mi-line .mi i{
  font-style:normal;
  font-size:11.5px;
  color:#9ca3af;
  white-space:nowrap;
}
.mi-line .mi b{
  font-size:12.5px;
  font-weight:600;
  color:#1f2937;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mi-line .mi b.hl{color:#2563eb}

/* ============ 审核弹窗顶部：带边框的大面板，左信息 / 右订单账号 ============ */
.meta-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  border:1px solid #e5e7eb;
  border-radius:9px;
  background:#fff;
  overflow:hidden;
  margin-bottom:10px;
}
.meta-panel-l{
  padding:9px 13px 7px;
  border-right:1px solid #eef0f3;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
.meta-panel-l .mi-line:last-of-type{margin-bottom:0}

/* 右侧：订单账号 */
.meta-panel-r{
  padding:8px 12px;
  background:#f8fafc;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  min-width:0;
}
.meta-panel-r .mp-head{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:11.5px;
  color:#2563eb;
  font-weight:600;
  white-space:nowrap;
}
.meta-panel-r .mp-head svg{flex:0 0 auto}
.meta-panel-r .mp-head em{
  font-style:normal;
  font-weight:400;
  font-size:10.5px;
  color:#9ca3af;
  margin-left:2px;
}
.meta-panel-r .mp-cred{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.meta-panel-r .mp-cred code{
  display:block;
  font-family:ui-monospace,Consolas,monospace;
  font-size:11.5px;
  color:#1f2937;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:5px;
  padding:2px 7px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.meta-panel-r .mp-empty{
  font-size:11.5px;
  color:#9ca3af;
}

/* 窄屏：右侧落到下面一行 */
@media (max-width:860px){
  .meta-panel{grid-template-columns:1fr}
  .meta-panel-l{border-right:0;border-bottom:1px solid #eef0f3}
}

/* ============ 左区信息也做成格子，与右侧订单账号同风格 ============ */
.meta-panel-l{
  display:flex !important;
  flex-direction:column !important;
  gap:5px !important;
  padding:8px 12px !important;
  justify-content:center !important;
}
.meta-panel-l .mi-line{
  display:grid !important;
  gap:5px !important;
  margin:0 !important;
  align-items:stretch !important;
}
/* 第一行：用户(短) / 任务(长) / 等级(短) */
.meta-panel-l .mi-line:nth-of-type(1){
  grid-template-columns:1.28fr 1.28fr 0.86fr!important;
}
/* 第二行：时间(长) / 应得(短) / 实得(短) */
.meta-panel-l .mi-line:nth-of-type(2){
  grid-template-columns:1.28fr 1.28fr 0.86fr!important;
}
/* 单个格子 */
.meta-panel-l .mi{
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  align-items:flex-start !important;
  background:#f8fafc !important;
  border:1px solid #eef0f3 !important;
  border-radius:6px !important;
  padding:3px 8px 4px !important;
  min-width:0 !important;
}
.meta-panel-l .mi i{
  font-size:10.5px !important;
  color:#9ca3af !important;
  line-height:1.35 !important;
  white-space:nowrap;
}
.meta-panel-l .mi b{
  font-size:12px !important;
  font-weight:600 !important;
  color:#1f2937 !important;
  line-height:1.45 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.meta-panel-l .mi b.hl{color:#2563eb !important}

/* ============ 顶部面板：整体放大，右侧订单账号加宽 ============ */
/* 右侧 286 → 420px，左侧相应收窄 */
.meta-panel{
  grid-template-columns:minmax(0,1fr) 420px !important;
}
/* 左区格子内距和字号放大 */
.meta-panel-l{
  padding:10px 14px !important;
  gap:7px !important;
}
.meta-panel-l .mi-line{gap:7px !important}
.meta-panel-l .mi{
  padding:6px 11px 7px !important;
  border-radius:7px !important;
}
.meta-panel-l .mi i{
  font-size:12px !important;
  line-height:1.4 !important;
}
.meta-panel-l .mi b{
  font-size:13.5px !important;
  line-height:1.5 !important;
}

/* 右区同步放大 */
.meta-panel-r{
  padding:10px 14px !important;
  gap:7px !important;
}
.meta-panel-r .mp-head{
  font-size:12.5px !important;
}
.meta-panel-r .mp-head em{
  font-size:11px !important;
}
.meta-panel-r .mp-cred{
  gap:6px !important;
}
.meta-panel-r .mp-cred code{
  font-size:13px !important;
  padding:5px 10px !important;
  border-radius:6px !important;
  line-height:1.45 !important;
}
.meta-panel-r .mp-empty{font-size:12.5px !important}

/* ============ 底栏：备注 / 应得 / 扣分 / 按钮 四者顶边对齐 ============ */
/* 改成顶部对齐，label 同一水平线，输入框同一顶边；备注框向下延伸不影响 */
.rv-foot-form{
  align-items:flex-start !important;
}
/* 四个 label 统一高度，保证下面输入框的起始线一致 */
.rv-foot-note label,
.rv-foot-nums label,
.rv-foot-act-ph{
  display:block !important;
  height:16px !important;
  line-height:16px !important;
  margin:0 0 4px 0 !important;
  padding:0 !important;
  font-size:11.5px !important;
}
.rv-foot-note label{
  color:#9ca3af !important;
  visibility:visible;
}
.rv-foot-act-ph{visibility:hidden !important}
/* 备注框顶边与数字框顶边同线 */
.rv-foot-note{
  display:flex !important;
  flex-direction:column !important;
}
.rv-foot-note textarea{
  margin:0 !important;
}

/* ============ 操作日志：容器内滚动 + 服务端懒加载 ============ */
/* 高度沿用全局 .table-wrap 规则（含 body.list-fit 吃满剩余高度），这里只管滚动条 */
.lg-wrap{
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.lg-wrap::-webkit-scrollbar{width:9px}
.lg-wrap::-webkit-scrollbar-track{background:#f8fafc;border-radius:5px}
.lg-wrap::-webkit-scrollbar-thumb{background:#d6dbe1;border-radius:5px}
.lg-wrap::-webkit-scrollbar-thumb:hover{background:#c2c9d2}

/* 提示条复用全局 .lazy-bar，不再自定义 */
.lg-pager{display:none !important}

/* ============ 操作日志筛选：7 个格子一行排完，按钮永远在最右 ============ */
/* 原来关键词框跨 2 列，导致总需求 8 列，窗口不够时按钮被挤到第二行最左 */
.lg-filter-row{
  grid-template-columns:repeat(auto-fit,minmax(126px,1fr)) !important;
  align-items:end !important;
}
/* 关键词框不再跨列，6 字段 + 按钮正好 7 格 */
.lg-filter-row .lg-fi-wide{
  grid-column:auto !important;
}
/* 按钮格：隐形 label 撑到跟其他字段等高，按钮贴底 */
.lg-fi-btn{
  display:flex !important;
  flex-direction:column !important;
  gap:5px !important;
  justify-content:flex-end !important;
  min-width:0 !important;
}
.lg-fi-btn>span{
  display:block;
  height:17px;
  line-height:17px;
  visibility:hidden;
}
.lg-fi-btn .btn{
  width:100% !important;
  height:34px !important;
  min-height:34px !important;
  padding:0 10px !important;
  white-space:nowrap;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}

/* ============ 押金管理：分段控件归位 + 整页铺满视口 ============ */
/* 分段控件原来单独占一行（塞在 card-body 里），跟标题、搜索框脱节。
   现在挪进 card-head，跟在标题右边。 */
.dp-seg{margin-left:14px !important;flex:0 0 auto}
.dp-seg .seg-item{height:28px;line-height:26px;padding:0 12px;font-size:12.5px}

/* 整页不滚，两个卡片按比例分高，各自内部滚动 */
body.dp-fit{height:100vh;overflow:hidden}
body.dp-fit .app,
body.dp-fit .main{height:100vh;min-height:0}
body.dp-fit .content{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  overflow:hidden !important;
  gap:12px;
  padding-bottom:16px;
}
body.dp-fit .content > *{flex:0 0 auto}

/* 账户卡：内容定高，表格最多 220px */
body.dp-fit .content > .card.dp-card-acct{flex:0 0 auto}
body.dp-fit .dp-card-acct > .dp-table-wrap{max-height:min(24vh,220px) !important}

/* 流水卡：吃掉剩余高度 */
body.dp-fit .content > .card.dp-card-flow{
  flex:1 1 auto !important;
  min-height:180px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  margin-bottom:0 !important;
}
body.dp-fit .dp-card-flow > .card-head{flex:0 0 auto}
body.dp-fit .dp-card-flow > .dp-table-wrap{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:none !important;
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
}
body.dp-fit .dp-card-flow > .empty{flex:1 1 auto}
body.dp-fit .dp-card-acct{border-bottom-left-radius:10px;border-bottom-right-radius:10px}

/* 窄屏 / 矮屏：回到普通流式，别硬撑 */
@media (max-width:860px){
  body.dp-fit{height:auto;overflow:visible}
  body.dp-fit .app,
  body.dp-fit .main{height:auto}
  body.dp-fit .content{display:block !important;overflow:visible !important}
  body.dp-fit .content > .card.dp-card-flow{display:block}
  body.dp-fit .dp-card-flow > .dp-table-wrap{max-height:min(46vh,420px) !important}
  .dp-seg{margin-left:0 !important;order:9;width:100%;margin-top:6px}
}

/* ============ 押金流水弹窗 ============ */
/* 7 列宽表，默认 640px 装不下 */
.dp-flow-dialog{
  width:min(1120px, calc(100vw - 32px)) !important;
  overflow:hidden !important;      /* 裁剪子元素到圆角内，否则表头灰底把圆角切成直角 */
}
.dp-flow-dialog .ui-dialog-head .muted{
  font-size:12px;color:#9ca3af;
}
/* body 不内缩，表格贴边。
   滚动放在 .dp-table-wrap 自己身上 —— 放 body 上的话，表头 sticky 的参考
   滚动容器会变成外面那个 overflow:hidden 的弹窗（它不滚），sticky 直接失效。 */
.dp-flow-body{
  padding:0 !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  min-height:0;
}
.dp-flow-body > .dp-table-wrap{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:auto !important;
  overscroll-behavior:contain;
  border-top:0 !important;
  border-radius:0 !important;
  scrollbar-gutter:stable;
}
.dp-flow-body > .dp-table-wrap::-webkit-scrollbar{width:9px;height:9px}
.dp-flow-body > .dp-table-wrap::-webkit-scrollbar-track{background:#f8fafc}
.dp-flow-body > .dp-table-wrap::-webkit-scrollbar-thumb{background:#d6dbe1;border-radius:5px}
.dp-flow-body > .dp-table-wrap::-webkit-scrollbar-thumb:hover{background:#c2c9d2}
/* 表头第一格 / 最后一格贴着圆角，给点内缩，别顶死边 */
.dp-flow-body > .dp-table-wrap > table.data thead th:first-child{padding-left:22px}
.dp-flow-body > .dp-table-wrap > table.data thead th:last-child{padding-right:22px}
.dp-flow-body > .dp-table-wrap > table.data tbody td:first-child{padding-left:22px}
.dp-flow-body > .dp-table-wrap > table.data tbody td:last-child{padding-right:22px}
.dp-flow-body > .empty{padding:44px 20px}

/* 流水卡现在只剩一行，让账户卡吃满剩余高度 */
body.dp-fit .content > .card.dp-card-acct{
  flex:1 1 auto !important;
  min-height:200px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
body.dp-fit .dp-card-acct > .dp-table-wrap{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:none !important;
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
}
body.dp-fit .content > .card.dp-card-flow{
  flex:0 0 auto !important;
  min-height:0 !important;
  height:auto !important;
  margin-bottom:0 !important;
}

/* ============ 弹窗圆角：全局修一次 ============ */
/* .ui-dialog 有 border-radius:12px，但里面的 head / 表头 / 底栏都是矩形底，
   直角把圆角盖住，看起来像缺了一块。加 overflow:hidden 裁一刀，一劳永逸。
   滚动由 .ui-dialog-body 自己负责（flex:1 + overflow-y:auto），不受影响。 */
.ui-dialog{
  overflow:hidden !important;
}
/* 头尾本来就有自己的背景，裁完圆角自然贴合 */
.ui-dialog > .ui-dialog-head{border-top-left-radius:11px;border-top-right-radius:11px}
.ui-dialog > .ui-dialog-foot,
.ui-dialog > *:last-child:not(.ui-dialog-head){
  border-bottom-left-radius:11px;
  border-bottom-right-radius:11px;
}

/* ============ 代理端：自定义邀请码 ============ */
.ag-inv-form{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed #e5e7eb;
  display:flex;
  flex-direction:column;
  gap:8px;
}
/* display:flex 会盖掉 hidden 的默认样式，这里必须显式关掉 */
.ag-inv-form[hidden]{display:none !important}

.ag-inv-tip{font-size:12px;color:#6b7280;line-height:1.75}
.ag-inv-tip b{color:#1f2937;font-weight:600}
.ag-inv-tip code{
  background:#f3f4f6;padding:1px 5px;border-radius:4px;
  font-size:11.5px;color:#2563eb;
}
.ag-inv-warn{display:block;color:#c2410c;margin-top:2px}

.ag-inv-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ag-inv-row .input{
  flex:0 0 220px;width:220px;height:34px;
  font-family:ui-monospace,Menlo,Consolas,monospace;
  letter-spacing:1.5px;text-transform:uppercase;
}

.ag-inv-live{font-size:11.5px;color:#9ca3af;min-height:16px;line-height:16px}
.ag-inv-live.is-bad{color:#dc2626}
.ag-inv-live.is-ok{color:#059669}

.ag-inv-used{color:#9ca3af;font-weight:400;font-size:12px}

/* ============ 管理端：指定邀请码 ============ */
.iv-set-form{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin-top:10px;padding-top:10px;border-top:1px dashed #e5e7eb;
}
.iv-set-form > label{font-size:12px;color:#6b7280;white-space:nowrap}
.iv-set-form .input{
  flex:0 0 180px;width:180px;height:32px;
  font-family:ui-monospace,Menlo,Consolas,monospace;
  letter-spacing:1.2px;text-transform:uppercase;
}
.iv-set-hint{font-size:11.5px;color:#9ca3af;line-height:1.6}

/* ============ 邀请关系树：真嵌套 ============ */
/* 旧的 iv-node-body 左 padding 会在深层累加，改成靠 data-depth 控制 */
.iv-node-body{
  padding:0 0 14px 0 !important;
}
.iv-node[data-depth="1"]{
  margin-left:20px;
  padding-left:14px;
  border-left:2px solid #e2e8f0;
}
.iv-node[data-depth="2"]{
  margin-left:20px;
  padding-left:14px;
  border-left:2px solid #e2e8f0;
}
.iv-node[data-depth="1"] > .iv-node-head,
.iv-node[data-depth="2"] > .iv-node-head{
  padding:10px 4px;
}

/* 头部允许换行，窄屏不再把「4 个下级」竖着断字 */
.iv-node-head{
  flex-wrap:wrap;
  row-gap:6px;
  min-width:0;
}
.iv-node-head > *{flex:0 0 auto}
.iv-node-name{white-space:nowrap}
.iv-node-num{white-space:nowrap}
.iv-node-up{white-space:nowrap}

/* 二级代理标签换个色，跟一级区分 */
.iv-tag.is-agent2{background:#f0f9ff;color:#0369a1;border:1px solid #bae6fd}
.iv-node-num.is-sub{background:#eef2ff;color:#4338ca}

/* 下级区：普通用户一行一条，不再用宽表格 */
.iv-kids{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
}
.iv-kid{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:7px 11px;
  background:#fafbfc;
  border:1px solid #eef1f4;
  border-radius:8px;
  font-size:12.5px;
  min-width:0;
}
.iv-kid > *{flex:0 0 auto}
.iv-kid .spacer{flex:1 1 auto}
.iv-kid-name{
  font-size:13px;font-weight:600;color:var(--text);
  white-space:nowrap;
}
.iv-kid-pts{color:var(--text-sub);white-space:nowrap}
.iv-kid-at{color:var(--text-weak);font-size:11.5px;white-space:nowrap}
.iv-kid .iv-chip{font-size:11.5px}

/* 管理员卡片里的自定义表单：label 独占一行，输入框 + 保存 同一行 */
.iv-set-form.is-hero{
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px 8px;
  align-items:center;
  margin-top:12px;
}
.iv-set-form.is-hero > label{
  grid-column:1 / -1;
  font-size:12px;
}
.iv-set-form.is-hero .input{
  grid-column:1;
  width:100%;
  height:34px;
  box-sizing:border-box;
}
.iv-set-form.is-hero .btn{
  grid-column:2;
  width:auto;
  min-width:64px;
  height:34px;
  padding:0 16px;
  white-space:nowrap;
}
.iv-set-form.is-hero .iv-set-hint{
  grid-column:1 / -1;
  font-size:11px;
  line-height:1.55;
}

/* ============ 按钮配色规范：只有「退场」才用灰 ============ */
/* 原来 .btn-neutral 和 .btn-ghost 都是 #6b7280 深灰，全站一片灰。
   现在：
     .btn-neutral → 普通操作，主色蓝
     .btn-ghost   → 取消/关闭/返回这类退场，浅灰描边（不是深灰填充）
   写新按钮时不加修饰默认就是蓝的，不会再漏。 */

.btn-neutral{background:#2563eb !important;border-color:#2563eb !important;color:#fff !important}
.btn-neutral:hover{background:#1d4ed8 !important;border-color:#1d4ed8 !important;color:#fff !important}
.btn-neutral:active{background:#1e40af !important;border-color:#1e40af !important;color:#fff !important}
.btn-neutral:disabled{opacity:.45 !important;background:#2563eb !important;border-color:#2563eb !important}

.btn-ghost,
.btn-ghost:hover,
.btn-ghost:active,
.btn-ghost:disabled{box-shadow:none !important}
.btn-ghost{
  background:#f3f4f6 !important;
  border:1px solid #e5e7eb !important;
  color:#4b5563 !important;
}
.btn-ghost:hover{
  background:#e8eaee !important;
  border-color:#d5d9df !important;
  color:#1f2937 !important;
}
.btn-ghost:active{
  background:#dde1e6 !important;
  border-color:#cbd0d6 !important;
  color:#1f2937 !important;
}
.btn-ghost:disabled{
  background:#f7f8fa !important;
  border-color:#eceff3 !important;
  color:#b6bcc4 !important;
  opacity:1 !important;
}
.btn-ghost svg,.btn-ghost .ico{opacity:.72}
.btn-ghost:hover svg,.btn-ghost:hover .ico{opacity:.9}

/* 下级列表里的邀请码：可点击复制 */
.iv-chip[data-copy]{cursor:pointer;transition:background .12s,color .12s}
.iv-chip[data-copy]:hover{background:#e0edff;color:#1d4ed8}

/* 操作列一律左对齐（按钮不居中，视觉更整齐） */
table.data th.ta-l,
table.data td.ta-l{text-align:left !important}

/* 下级用户页的邀请码卡：跟管理员那张一样，占一列就好 */
.tm-code-row{margin-bottom:16px}
.tm-code-row .iv-hero{max-width:520px}
.tm-code-used{color:var(--text-weak)}

/* ============ 下级用户页：邀请码整条横排一行 ============ */
.tm-code-bar{
  display:flex !important;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding:16px 20px;
  margin-bottom:16px;
}
.tm-bar-id{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.tm-bar-name{font-size:15px;font-weight:600;color:var(--text);white-space:nowrap}
.tm-bar-code{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.iv-code-val.tm-code-inline{
  width:auto !important;
  min-width:0 !important;
  padding:0 14px !important;
  height:34px !important;
  line-height:34px !important;
  font-size:17px !important;
  letter-spacing:2.4px !important;
  display:inline-block !important;
}
.tm-bar-meta{
  font-size:12.5px;
  color:var(--text-sub);
  white-space:nowrap;
  flex:0 0 auto;
}
.tm-bar-meta b{color:var(--primary);font-weight:600}
.tm-bar-spacer{flex:1 1 auto;min-width:8px}
.tm-bar-used{font-size:12px;color:var(--text-weak);white-space:nowrap}
.tm-bar-form{display:flex;align-items:center;gap:8px;margin:0;flex:0 0 auto}
.tm-bar-form .input{
  flex:0 0 210px;
  width:210px;
  height:34px;
  font-family:ui-monospace,Menlo,Consolas,monospace;
  letter-spacing:1.2px;
  text-transform:uppercase;
}
.tm-bar-form .btn{flex:0 0 auto;height:34px}

@media (max-width:900px){
  .tm-bar-spacer{display:none}
  .tm-bar-meta{white-space:normal}
  .tm-bar-form{flex:1 1 100%}
  .tm-bar-form .input{flex:1 1 auto;width:auto}
}

/* ============ 登录页：左右分栏 ============ */
body.auth-split-page{
  padding:0 !important;
  display:block !important;
  min-height:100vh;
  background:#fff;
}
body.auth-split-page .auth-main{
  display:block !important;
  width:100%;
  min-height:100vh;
}

.auth-split{display:flex;min-height:100vh;width:100%}

/* 左栏 */
.auth-left{
  flex:0 0 46%;
  background:linear-gradient(155deg,#eff6ff 0%,#dbeafe 62%,#e8f1ff 100%);
  padding:52px 56px;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
}
.auth-left::after{
  content:"";position:absolute;right:-120px;bottom:-120px;
  width:380px;height:380px;border-radius:50%;background:rgba(37,99,235,.07);
}
.auth-left::before{
  content:"";position:absolute;left:-80px;top:-80px;
  width:240px;height:240px;border-radius:50%;background:rgba(37,99,235,.05);
}
.auth-left-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.auth-left-brand .brand-mark{
  width:40px;height:40px;border-radius:12px;background:var(--primary);
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:17px;font-weight:700;flex:0 0 auto;
}
.al-b-name{font-size:16px;font-weight:700;color:var(--text)}
.al-b-sub{font-size:11.5px;color:var(--text-sub);margin-top:1px;letter-spacing:.3px}

.auth-left-mid{margin:auto 0;position:relative;z-index:1;padding:24px 0}
.al-title{
  font-size:30px;line-height:1.35;font-weight:700;color:#1e3a8a;
  letter-spacing:-.5px;margin:0;
}
.al-title em{font-style:normal;color:var(--primary)}
.al-desc{
  font-size:13.5px;color:#475569;line-height:1.85;
  margin:16px 0 0;max-width:400px;
}
.al-pts{list-style:none;margin:32px 0 0;padding:0;display:flex;flex-direction:column;gap:13px}
.al-pts li{display:flex;align-items:flex-start;gap:11px;font-size:13px;color:#334155;line-height:1.6}
.al-dot{
  flex:0 0 auto;width:20px;height:20px;border-radius:6px;background:#fff;
  border:1px solid #bfdbfe;display:flex;align-items:center;justify-content:center;
  color:var(--primary);font-size:11px;font-weight:700;margin-top:1px;
}
.auth-left-foot{font-size:11.5px;color:#64748b;position:relative;z-index:1}

/* 右栏 */
.auth-right{
  flex:1;display:flex;align-items:center;justify-content:center;
  padding:40px 32px;background:#fff;
}
.auth-box{width:100%;max-width:382px}
.ab-title{font-size:23px;font-weight:700;color:var(--text);letter-spacing:-.3px;margin:0}
.ab-sub{font-size:13px;color:var(--text-sub);margin:8px 0 28px}
.auth-box .alert{margin-bottom:18px}
.auth-box .field{margin-bottom:16px}
.auth-box .input{height:42px}
.auth-box .btn{width:100%;height:44px;font-size:15px;font-weight:600}
.auth-box .auth-row{margin:18px 0 22px}
.auth-box-foot{
  text-align:center;font-size:12px;color:var(--text-weak);
  margin-top:22px;line-height:1.75;
}
.auth-box-foot a{color:var(--primary);font-weight:500}

@media (max-width:900px){
  .auth-left{display:none}
  .auth-right{padding:32px 20px}
}

/* ============ 登录页：居中卡片式左右分栏 ============ */
/* 覆盖前面的满屏版本，收成一个居中容器 */
body.auth-split-page{
  display:flex !important;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:40px 24px !important;
  background:#f7f8fa !important;
}
body.auth-split-page .auth-main{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:0;
}

.auth-split{
  display:flex;
  width:100%;
  max-width:1000px;
  min-height:0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 12px 44px rgba(16,24,40,.09);
}

/* 左栏收窄、内边距压小 */
.auth-left{
  flex:0 0 40%;
  padding:36px 40px;
  border-radius:0;
}
.auth-left .brand-mark{width:36px;height:36px;border-radius:10px;font-size:15px}
.al-b-name{font-size:15px}
.al-b-sub{font-size:11px}
.auth-left-mid{padding:8px 0}
.al-title{font-size:25px;line-height:1.4}
.al-desc{font-size:12.5px;line-height:1.8;margin-top:14px}
.al-pts{margin-top:24px;gap:11px}
.al-pts li{font-size:12.5px}
.al-dot{width:18px;height:18px;font-size:10px;border-radius:5px}
.auth-left-foot{font-size:11px}

/* 右栏 */
.auth-right{padding:36px 48px}
.auth-box{max-width:336px}

@media (max-width:900px){
  body.auth-split-page{padding:20px 12px !important;align-items:flex-start}
  .auth-split{border-radius:12px;margin-top:16px}
  .auth-left{display:none}
  .auth-right{padding:32px 22px}
  .auth-box{max-width:100%}
}

/* ============ 登录页 窄屏：左栏挪到上方，竖排 ============ */
@media (max-width:900px){
  body.auth-split-page{
    align-items:flex-start;
    padding:16px 12px !important;
  }
  body.auth-split-page .auth-main{align-items:flex-start}

  .auth-split{
    flex-direction:column;
    max-width:520px;
    border-radius:12px;
  }

  /* 左栏不再隐藏，改成顶部一条 */
  .auth-left{
    display:flex;
    flex:0 0 auto;
    padding:22px 22px 20px;
    border-radius:0;
  }
  .auth-left::after,.auth-left::before{display:none}
  .auth-left-brand .brand-mark{width:32px;height:32px;border-radius:9px;font-size:14px}
  .al-b-name{font-size:14px}
  .al-b-sub{font-size:10.5px}
  .auth-left-mid{margin:0;padding:0;margin-top:16px}
  .al-title{font-size:19px;line-height:1.45}
  .al-pts{display:none}      /* 手机上三条卖点藏掉，省高度 */
  .al-desc{
    display:block;
    font-size:12px;
    line-height:1.7;
    margin-top:10px;
  }
  .auth-left-foot{display:none}

  .auth-right{padding:24px 22px 26px}
  .auth-box{max-width:100%}
  .ab-title{font-size:21px}
  .ab-sub{margin:7px 0 22px}
}

/* 极窄屏再收一档 */
@media (max-width:480px){
  .auth-left{padding:18px 18px 16px}
  .al-title{font-size:17px}
  .al-desc{font-size:11.5px;margin-top:8px}
  .auth-right{padding:20px 18px 22px}
  .ab-title{font-size:19px}
  .auth-box .input{height:40px}
  .auth-box .btn{height:42px}
}

/* ============ 登录页：放大到视口约 2/3 ============ */
.auth-split{
  width:66vw;
  min-width:940px;
  max-width:1340px;
}
/* 卡片放大后，内部元素跟着放大，不然内容缩成一坨 */
.auth-left{padding:46px 50px}
.auth-left .brand-mark{width:42px;height:42px;border-radius:12px;font-size:17px}
.al-b-name{font-size:16.5px}
.al-b-sub{font-size:11.5px}
.al-title{font-size:30px;line-height:1.38}
.al-desc{font-size:13.5px;line-height:1.85;margin-top:18px;max-width:430px}
.al-pts{margin-top:32px;gap:14px}
.al-pts li{font-size:13px}
.al-dot{width:20px;height:20px;font-size:11px;border-radius:6px}
.auth-left-foot{font-size:11.5px}

.auth-right{padding:52px 64px}
.auth-box{max-width:376px}
.ab-title{font-size:26px}
.ab-sub{font-size:13.5px;margin:9px 0 32px}
.auth-box .input{height:46px;font-size:14.5px}
.auth-box .btn{height:48px;font-size:15.5px}
.auth-box .field{margin-bottom:18px}
.auth-box .auth-row{margin:20px 0 26px}
.auth-box-foot{font-size:12.5px;margin-top:26px}

/* 视口不够宽时退回 100%，别让 min-width 撑出横向滚动 */
@media (max-width:1000px){
  .auth-split{width:100%;min-width:0;max-width:640px}
}

/* ============ 登录页：把高度也拉到视口 2/3 以上 ============ */
.auth-split{
  height:76vh;
  min-height:580px;
  max-height:840px;
  align-items:stretch;
}
/* 左栏内容纵向摊开：品牌顶、正文中、版权底 */
.auth-left{justify-content:space-between}
.auth-left-mid{margin:auto 0;padding:26px 0}
.auth-left-brand{flex:0 0 auto}
.auth-left-foot{flex:0 0 auto;padding-top:18px}
/* 右栏表单垂直居中 */
.auth-right{align-items:center}
.auth-box{padding:0}

/* 窄屏（单列）时高度必须放开，否则卡片瘦长 */
@media (max-width:1000px){
  .auth-split{height:auto;min-height:0;max-height:none}
}
@media (max-width:900px){
  .auth-split{height:auto;min-height:0;max-height:none}
  .auth-left{justify-content:flex-start}
  .auth-left-mid{margin:0;padding:0;margin-top:16px}
  .auth-left-foot{display:none}
}

/* ============ 窄屏：左栏内容恢复完整（卖点 + 版权） ============ */
@media (max-width:900px){
  .auth-left{justify-content:flex-start;padding:24px 22px 22px}

  /* 三条卖点搬回来 */
  .al-pts{
    display:flex !important;
    margin-top:16px;
    gap:9px;
  }
  .al-pts li{font-size:12px;line-height:1.55}
  .al-dot{width:17px;height:17px;font-size:9.5px;border-radius:5px;margin-top:2px}

  /* 版权行搬回来 */
  .auth-left-foot{
    display:block !important;
    padding-top:16px;
    margin-top:16px;
    border-top:1px solid rgba(37,99,235,.1);
    font-size:11px;
  }

  .auth-left-mid{margin:14px 0 0;padding:0}
  .auth-left::before,.auth-left::after{display:none}
}

@media (max-width:480px){
  .auth-left{padding:20px 18px 18px}
  .al-title{font-size:17.5px}
  .al-desc{font-size:11.5px;margin-top:9px}
  .al-pts{margin-top:13px;gap:8px}
  .al-pts li{font-size:11.5px}
  .al-dot{width:16px;height:16px;font-size:9px}
  .auth-left-foot{font-size:10.5px;margin-top:13px;padding-top:13px}
}

/* ============ 登录页：按钮跟输入框等宽 ============ */
/* 压过第 3124 行那条全站 .btn{width:auto !important}（登录页按钮本来就该撑满） */
.auth-box .btn{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  align-self:stretch;
  box-sizing:border-box;
}

/* ============ 登录页：登录 / 注册 页签 ============ */
.ab-tabs{
  display:flex;
  background:#f3f4f6;
  border-radius:9px;
  padding:3px;
  margin-bottom:24px;
  gap:2px;
}
.ab-tabs .ab-tab{
  flex:1 1 0;
  height:34px;
  border:0;
  background:transparent;
  border-radius:7px;
  font-family:inherit;
  font-size:13.5px;
  font-weight:500;
  color:#6b7280;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s,color .15s,box-shadow .15s;
}
.ab-tabs .ab-tab:hover{color:#1f2937}
.ab-tabs .ab-tab.is-on{
  background:#fff;
  color:#2563eb;
  font-weight:600;
  box-shadow:0 1px 3px rgba(16,24,40,.08);
}
.ab-pane[hidden]{display:none !important}
.auth-box-foot[hidden]{display:none !important}
.auth-box-foot a.ab-jump{color:var(--primary);font-weight:500;cursor:pointer}

/* 注册表单更长：右栏允许内部滚动，卡片高度不撑爆 */
.auth-right{overflow-y:auto;overflow-x:hidden}
.auth-right::-webkit-scrollbar{width:6px}
.auth-right::-webkit-scrollbar-thumb{background:#dfe3e8;border-radius:3px}

/* 注册面板里的两列栅格 */
.auth-box .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.auth-box .form-grid .field{margin-bottom:18px}
.auth-box .field-hint{font-size:11.5px;color:#9ca3af;line-height:1.6}

/* 卡片高度跟随当前页签：注册态按内容走 */
#auth-box[data-active="register"] .ab-title{font-size:24px}

@media (max-width:1000px){
  .auth-box .form-grid{grid-template-columns:1fr;gap:0}
}
@media (max-width:900px){
  .auth-right{overflow-y:visible}
  .ab-tabs{margin-bottom:20px}
  .auth-box .form-grid{grid-template-columns:1fr;gap:0}
}

/* 修 flex 居中溢出裁切：内容比容器高时顶部（页签）不能被切掉 */
.auth-right{
  align-items:flex-start;
  justify-content:center;
  overflow-y:auto;
}
.auth-box{margin:auto 0;width:100%}

/* 注册态内容长，右栏留点上下缓冲 */
#auth-box[data-active="register"]{padding:2px 0 6px}

/* ============ 登录页：卡片高度按页签自适应，不内部滚动 ============ */
/* body 只负责整体居中；卡片比视口高时让整页滚动，而不是卡片里滚 */
body.auth-split-page{
  display:flex !important;
  align-items:flex-start;
  justify-content:center;
  min-height:100vh;
  padding:40px 24px !important;
  background:#f7f8fa !important;
}
body.auth-split-page .auth-main{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:calc(100vh - 80px);
}

/* 右栏不再内部滚动 */
.auth-right{
  align-items:flex-start;
  justify-content:center;
  overflow:visible;
}
.auth-box{margin:auto 0;width:100%}

/* 登录态：固定按视口 76vh 撑视觉比重 */
.auth-split{
  height:76vh;
  min-height:580px;
  max-height:840px;
}

/* 注册态：高度交给内容，卡片自己长高 */
.auth-split[data-active="register"]{
  height:auto;
  min-height:620px;
  max-height:none;
}
.auth-split[data-active="register"] .auth-right{
  align-items:center;
  padding-top:44px;
  padding-bottom:44px;
}

@media (max-width:1000px){
  .auth-split[data-active="register"]{min-height:0}
}
@media (max-width:900px){
  .auth-split[data-active="register"]{height:auto;min-height:0;max-height:none}
  .auth-split[data-active="register"] .auth-right{padding-top:24px;padding-bottom:26px}
}

/* 提示条图标与首行文字垂直居中对齐（原 flex-start 会偏上 5px） */
.alert > svg,
.alert > .ico{
  flex:0 0 auto;
  margin-top:2.5px;
  align-self:flex-start;
}

/* ============ 移动端侧栏抽屉：遮罩 + 关闭按钮 ============ */
.side-mask{display:none}
.side-x{display:none}

@media (max-width:900px){
  /* 遮罩：盖住正文，点一下收起侧栏 */
  body.side-open .side-mask{
    display:block;
    position:fixed;
    inset:0;
    z-index:69;
    background:rgba(16,24,40,.32);
    -webkit-tap-highlight-color:transparent;
  }
  body.side-open{overflow:hidden}

  /* 侧栏右上角关闭按钮 */
  .side-x{
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    right:10px;
    top:12px;
    z-index:3;
    width:30px;
    height:30px;
    padding:0;
    border:0;
    border-radius:8px;
    background:#f1f3f6;
    color:#6b7280;
    font-size:19px;
    line-height:1;
    font-family:inherit;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .side-x:active{background:#e4e8ee;color:#1f2937}

  /* 品牌行给关闭按钮让位 */
  .sidebar .brand{padding-right:52px}
  /* 侧栏内部滚动，底部账号区始终贴底 */
  .sidebar{overflow-y:auto;-webkit-overflow-scrolling:touch}
}

/* ============ 仪表盘：走势第三条 + 漏斗 + 审核健康 + 风险 ============ */
.db-legend i.is-reg{background:#86efac}
.db-bar.is-reg{background:#86efac;width:9px}
.db-bar.is-sub,.db-bar.is-ord{width:9px}

.db-funnel{display:flex;flex-direction:column;gap:11px}
.db-fn-row{display:flex;flex-direction:column;gap:5px}
.db-fn-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px}
.db-fn-lab{color:var(--text-sub)}
.db-fn-val{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.db-fn-val em{font-style:normal;color:var(--text-weak);font-weight:400;font-size:11px;margin-left:5px}
.db-fn-bar{height:7px;border-radius:4px;background:#eef1f5;overflow:hidden}
.db-fn-bar i{display:block;height:100%;border-radius:4px;background:var(--primary);transition:width .3s}
.db-fn-row:nth-child(1) .db-fn-bar i{background:#1d4ed8}
.db-fn-row:nth-child(2) .db-fn-bar i{background:#2563eb}
.db-fn-row:nth-child(3) .db-fn-bar i{background:#3b82f6}
.db-fn-row:nth-child(4) .db-fn-bar i{background:#15803d}
.db-fn-row:nth-child(5) .db-fn-bar i{background:#f59e0b}

.db-health{display:flex;gap:10px;margin-bottom:14px}
.db-health-item{flex:1;min-width:0;padding:10px 8px;background:var(--bg-panel);border-radius:8px;text-align:center}
.db-health-num{font-size:17px;font-weight:700;color:var(--text);line-height:1.2;font-variant-numeric:tabular-nums}
.db-health-num.is-green{color:#15803d}
.db-health-lab{font-size:11px;color:var(--text-weak);margin-top:3px;white-space:nowrap}

.db-risk{display:flex;flex-direction:column}
.db-risk-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed var(--border);font-size:12px}
.db-risk-row:last-child{border-bottom:0}
.db-risk-row span{color:var(--text-sub)}
.db-risk-row b{font-variant-numeric:tabular-nums;font-weight:600;flex:0 0 auto}
.db-risk-row b.ok{color:#15803d}
.db-risk-row b.bad{color:#dc2626}

/* 仪表盘列表卡：条目少时不被右侧拉高留空；条目多时自适应 */
.db-row > .card > .db-list{flex:1 1 auto}
.db-row > .card > .db-empty{flex:1;display:flex;align-items:center;justify-content:center;min-height:120px}
.db-fin-row small{font-size:11px;font-weight:400;color:var(--text-weak);margin-left:2px}
/* 待审核队列空转时的填充说明 */
.db-list-hint{
  flex:1;display:flex;align-items:center;justify-content:center;
  min-height:74px;font-size:11.5px;color:var(--text-weak);
  border-top:1px dashed var(--border);
}

/* 卡片正文默认顶对齐（原先把内容推到底部，数据卡会留一大段空白）；
   走势图不受影响，它自己就是 flex-end 底对齐 */
.db-row > .card > .card-body{justify-content:flex-start}
.db-row > .card > .card-body > .db-chart{flex:1}
.db-fin{width:100%}
.db-funnel{width:100%}
.db-health{width:100%}
.db-health-num.is-red{color:#dc2626}

/* 积分排行：名次徽章（1/2/3 金银铜实心，4 名往后低调灰） */
.db-rank{
  width:26px;height:26px;flex:0 0 auto;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;
  background:#f1f3f6;color:#64748b;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.05);
}
/* 金 */
.db-rank.r1{
  background:linear-gradient(135deg,#fde68a 0%,#f59e0b 100%);
  color:#78350f;font-size:13px;font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(180,83,9,.35), 0 2px 6px rgba(245,158,11,.45);
  text-shadow:0 1px 0 rgba(255,255,255,.5);
}
/* 银 */
.db-rank.r2{
  background:linear-gradient(135deg,#f1f5f9 0%,#94a3b8 100%);
  color:#1e293b;font-size:13px;font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(100,116,139,.45), 0 2px 6px rgba(148,163,184,.4);
  text-shadow:0 1px 0 rgba(255,255,255,.6);
}
/* 铜 */
.db-rank.r3{
  background:linear-gradient(135deg,#fdba74 0%,#c2410c 100%);
  color:#fff7ed;font-size:13px;font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(154,52,18,.5), 0 2px 6px rgba(194,65,12,.4);
  text-shadow:0 1px 0 rgba(0,0,0,.15);
}
/* 前三名整行左侧带一道色条，扫一眼就能认出来 */
.db-list-row:has(.db-rank.r1){background:linear-gradient(90deg,#fffbeb 0%,rgba(255,251,235,0) 55%)}
.db-list-row:has(.db-rank.r2){background:linear-gradient(90deg,#f8fafc 0%,rgba(248,250,252,0) 55%)}
.db-list-row:has(.db-rank.r3){background:linear-gradient(90deg,#fff7ed 0%,rgba(255,247,237,0) 55%)}
.db-rank-frozen{
  flex:0 0 auto;font-size:11px;color:var(--text-weak);
  background:var(--bg-panel);border-radius:5px;padding:2px 6px;
  font-variant-numeric:tabular-nums;
}

/* ============ 仪表盘：第一行完整显示，第二行自适应滚动 ============
   .db-row-fixed：转化漏斗 + 资金增量，按内容完整显示，只给最低高度
   .db-row-auto ：用户积分排行 + 资金环节，吃掉剩余高度，超出在卡片内滚
   不依赖 :has() 嵌套，用模板上的专属 class 定位。 */
@media (min-width: 900px){
  main.content:has(> .db-row-fixed){
    display:flex;
    flex-direction:column;
    gap:14px;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    padding-bottom:14px;
  }
  main.content:has(> .db-row-fixed) > .page-head,
  main.content:has(> .db-row-fixed) > .db-todo{
    flex:0 0 auto;
    margin-bottom:0;
  }

  /* ---------- 第一行：完整显示，不裁不滚 ---------- */
  main.content:has(> .db-row-fixed) > .db-row-fixed{
    flex:0 0 auto;
    min-height:330px;
    margin-bottom:0;
  }
  main.content:has(> .db-row-fixed) > .db-row-fixed > .card{
    min-height:0;
    overflow:visible;
  }
  main.content:has(> .db-row-fixed) > .db-row-fixed > .card > .card-head{
    flex:0 0 auto;
  }
  main.content:has(> .db-row-fixed) > .db-row-fixed > .card > .card-body{
    flex:0 0 auto;
    min-height:0;
    overflow:visible;
  }

  /* ---------- 第二行：自适应 + 卡内滚动 ---------- */
  main.content:has(> .db-row-fixed) > .db-row-auto{
    flex:1 1 0;
    min-height:260px;
    margin-bottom:0;
  }
  main.content:has(> .db-row-fixed) > .db-row-auto > .card{
    min-height:0;
    overflow:hidden;
  }
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .card-head{
    flex:0 0 auto;
  }
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .db-list,
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .card-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .db-list::-webkit-scrollbar,
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .card-body::-webkit-scrollbar{
    width:8px;
  }
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .db-list::-webkit-scrollbar-track,
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .card-body::-webkit-scrollbar-track{
    background:#f8fafc;
  }
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .db-list::-webkit-scrollbar-thumb,
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .card-body::-webkit-scrollbar-thumb{
    background:#d6dbe1;
    border-radius:4px;
  }
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .db-list::-webkit-scrollbar-thumb:hover,
  main.content:has(> .db-row-fixed) > .db-row-auto > .card > .card-body::-webkit-scrollbar-thumb:hover{
    background:#c2c9d2;
  }
}

/* 窄屏：整页正常翻，不锁高度 */
@media (max-width: 899px){
  main.content:has(> .db-row-fixed){display:flex;flex-direction:column;gap:12px}
}

/* ============ 卡密页：列表容器铺满视口，表格内滚 ============
   .cd-seg 只有卡密页有，用它当页面标记。
   列表面板吃满剩余高度，表格区内部滚动；生成面板保持自然高度，
   内容超高时整页滚。 */
@media (min-width: 900px){
  main.content:has(> .cd-seg){
    display:flex;
    flex-direction:column;
    gap:14px;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    padding-bottom:14px;
  }
  main.content:has(> .cd-seg) > .page-head,
  main.content:has(> .cd-seg) > .db-todo,
  main.content:has(> .cd-seg) > .cd-seg{
    flex:0 0 auto;
    margin-bottom:0;
  }

  /* 列表面板：吃满剩余高度（basis 归零，避免被内容撑开） */
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"]{
    flex:1 1 0;
    min-height:0;
    overflow:hidden;
    gap:0;
  }
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list{
    flex:1 1 0;
    min-height:0;
    max-height:none;
    overflow:hidden;
  }
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .card-head,
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .cd-filter-tip,
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .cd-list-foot{
    flex:0 0 auto;
  }
  /* 表格区：占满剩余，超出内部滚。
     必须显式清掉原规则里的 max-height:min(60vh,680px)，否则表格区会提前截断、底下留空。 */
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .cd-list-body{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    overflow-x:auto;
    overscroll-behavior:contain;
  }
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .cd-list-body::-webkit-scrollbar{
    width:9px;height:9px;
  }
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .cd-list-body::-webkit-scrollbar-track{
    background:#f8fafc;
  }
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .cd-list-body::-webkit-scrollbar-thumb{
    background:#d6dbe1;border-radius:5px;
  }
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .cd-list-body::-webkit-scrollbar-thumb:hover{
    background:#c2c9d2;
  }
  /* 生成面板：不拉伸 */
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="gen"]{
    flex:0 0 auto;
  }

  /* 表头固定：滚表格时列名不跟着跑 */
  main.content:has(> .cd-seg) > .cd-panel[data-cd-panel="list"] > .card.cd-list > .cd-list-body > table.data > thead > tr > th{
    position:sticky;
    top:0;
    z-index:2;
    background:var(--bg-panel,#f7f8fa);
  }
}

/* 窄屏：整页正常翻 */
@media (max-width: 899px){
  main.content:has(> .cd-seg){display:flex;flex-direction:column;gap:12px}
}

/* ============ 账号库存页：概览卡完整显示，明细卡吃满剩余、表格内滚 ============
   .stk-sum / .stk-list 是 stock.php 上的专属 class。
   全局 .table-wrap{max-height:calc(100vh-300px)} 会让两张卡各自封顶，
   加一起超过视口就整页滚 —— 这里把明细卡的表格改成 flex 吃满。 */
@media (min-width: 900px){
  main.content:has(> .stk-sum){
    display:flex;
    flex-direction:column;
    gap:14px;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    padding-bottom:14px;
  }
  main.content:has(> .stk-sum) > .page-head,
  main.content:has(> .stk-sum) > .stk-sum{
    flex:0 0 auto;
    margin-bottom:0 !important;
  }
  /* 概览卡：默认不封顶不滚 */
  main.content:has(> .stk-sum) > .stk-sum > .card-body.tight{
    overflow:visible;
  }
  main.content:has(> .stk-sum) > .stk-sum .table-wrap{
    max-height:none;
    overflow:visible;
  }

  /* 没选任务时只有概览卡一张 —— 让它自己吃满剩余高度，任务多了表格内滚 */
  main.content:has(> .stk-sum):not(:has(> .stk-list)) > .stk-sum{
    flex:1 1 0;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  main.content:has(> .stk-sum):not(:has(> .stk-list)) > .stk-sum > .card-head{
    flex:0 0 auto;
  }
  main.content:has(> .stk-sum):not(:has(> .stk-list)) > .stk-sum > .card-body.tight{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    padding:0;
  }
  main.content:has(> .stk-sum):not(:has(> .stk-list)) > .stk-sum > .card-body.tight > .table-wrap{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    overflow-x:auto;
    overscroll-behavior:contain;
  }

  /* 明细卡：吃满剩余高度 */
  main.content:has(> .stk-sum) > .stk-list{
    flex:1 1 0;
    min-height:260px;
    margin-bottom:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  main.content:has(> .stk-sum) > .stk-list > .card-head,
  main.content:has(> .stk-sum) > .stk-list > .stock-toolbar,
  main.content:has(> .stk-sum) > .stk-list > .stock-note,
  main.content:has(> .stk-sum) > .stk-list > .lazy-bar{
    flex:0 0 auto;
  }
  /* 明细表格：唯一可滚的区域，清掉全局天花板 */
  main.content:has(> .stk-sum) > .stk-list > .table-wrap{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    overflow-x:auto;
    overscroll-behavior:contain;
  }
  /* 明细卡头部的粘贴框之类若有，也不参与拉伸 */
  main.content:has(> .stk-sum) > .stk-list > form{
    flex:0 0 auto;
  }
}

/* 窄屏：整页正常翻 */
@media (max-width: 899px){
  main.content:has(> .stk-sum){display:flex;flex-direction:column;gap:12px}
}

/* ============ 条件题 / 联系方式题 ============ */
/* 提交页：联系方式两个框横排，中间一个「或」 */
.q-contact{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.q-contact .q-cf{
  flex:1 1 180px;min-width:0;
  display:flex;align-items:center;gap:8px;
}
.q-contact .q-cf-k{
  flex:0 0 auto;
  font-size:12.5px;color:#6b7280;
}
.q-contact .q-cf .input{flex:1 1 auto;min-width:0}
.q-cf-or{
  flex:0 0 auto;
  font-size:12px;color:#9ca3af;
}
.q-cf-tip{
  margin:8px 0 0;
  font-size:12px;color:#9ca3af;
}

/* 提交页：条件题刚出现时轻轻推一下，提醒用户多了东西要填。
   只用位移不用 opacity —— 淡入在慢设备/截图里会停在半透明状态，看着像禁用。 */
.q-cond{animation:qCondIn .2s ease-out}
@keyframes qCondIn{
  from{transform:translateY(-5px)}
  to{transform:none}
}

/* 题库页：显示条件配置区 */
.dep-box{
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f9fafb;
}
.dep-box > label{
  display:block;
  margin-bottom:8px;
  font-size:12.5px;font-weight:600;color:#374151;
}
.dep-box .select{max-width:100%}
.dep-vals{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-top:10px;
}
.dep-ck{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  font-size:12.5px;color:#374151;
  cursor:pointer;
}
.dep-ck:hover{border-color:#c7d2fe;background:#f5f8ff}
.dep-ck input{margin:0}
.dep-ck:has(input:checked){
  border-color:#2563eb;background:#eff6ff;color:#1d4ed8;font-weight:600;
}

/* 题库页：表格里给条件题打个标记（类名别跟提交页的 .q-cond 撞） */
.q-cond-tag{
  display:inline-block;
  margin-left:6px;
  padding:1px 6px;
  border-radius:5px;
  background:#eef2ff;
  border:1px solid #c7d2fe;
  font-size:11px;color:#4338ca;
  vertical-align:middle;
}

/* 审核页：联系方式分两段显示 */
.answer-a.is-contact{
  display:flex;flex-wrap:wrap;gap:8px;
}
.ans-ct{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f9fafb;
  font-size:12.5px;color:#1f2937;
}
.ans-ct b{
  font-size:11.5px;font-weight:600;color:#6b7280;
}

/* ============ 联系方式题：两栏卡片，输入框自带边框 ============ */
.q-contact{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:680px){
  .q-contact{grid-template-columns:1fr}
}
.q-contact .q-cf{
  display:block;
  min-width:0;
  padding:12px 14px 13px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f8f9fb;
  transition:border-color .15s,background .15s,box-shadow .15s;
}
.q-contact .q-cf:hover{border-color:#d3d8e0;background:#fff}
.q-contact .q-cf:focus-within{
  border-color:#2563eb;background:#fff;
  box-shadow:0 0 0 3px rgba(37,99,235,.09);
}
.q-contact .q-cf-hd{
  display:block;
  margin-bottom:7px;
  font-size:13px;font-weight:600;line-height:1.3;
  color:#1f2937;
}
.q-contact .q-cf .input{
  display:block;
  width:100%;
  height:36px;
  padding:0 11px;
  border:1px solid #dde1e7;
  border-radius:8px;
  background:#fff;
  font-size:13.5px;
  color:#1f2937;
  box-shadow:none;
}
.q-contact .q-cf .input::placeholder{color:#a8b0ba}
.q-contact .q-cf .input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.12);
}
.q-contact .q-cf-sub{
  display:block;
  margin-top:6px;
  font-size:11.5px;line-height:1.4;
  color:#9ca3af;
}
.q-cf-note{
  margin-top:9px;font-size:12px;color:#9ca3af;
}

/* ============ 题下说明 / 注意事项 ============ */
.q-hint,.q-warn{
  margin-top:10px;
  display:flex;gap:7px;align-items:flex-start;
  padding:9px 12px;border-radius:8px;
  font-size:12.5px;line-height:1.62;
}
.q-hint{background:#f5f8ff;border:1px solid #dbeafe;color:#1e40af}
.q-warn{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
.q-hint-ic,.q-warn-ic{
  flex:0 0 auto;width:15px;height:15px;margin-top:1.5px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;
  font-size:10px;font-weight:700;font-style:normal;line-height:1;
}
.q-hint-ic{background:#2563eb;color:#fff}
.q-warn-ic{background:#d97706;color:#fff}

/* ============ 选项命中后的追加块 ============ */
.q-block.q-extra{
  margin-left:0;
  padding:12px 14px 14px;
  border:1px solid #dbeafe;
  border-left:3px solid #2563eb;
  border-radius:10px;
  background:#f7faff;
}
.q-extra-hd{
  display:inline-block;
  margin-bottom:9px;
  padding:2px 8px;
  border-radius:6px;
  background:#e0ecff;
  font-size:11.5px;
  font-weight:600;
  color:#1d4ed8;
  line-height:1.6;
}
.q-block.q-extra .q-head{margin-bottom:9px}
.q-block.q-extra .q-body{padding:0}

/* ============ 后台：选项行的「命中后追加」 ============ */
.opt-row{flex-wrap:wrap}
.opt-input{flex:1 1 200px;min-width:0}
.opt-ex-btn{
  flex:0 0 auto;
  padding:4px 9px;
  border:1px dashed #c7d2fe;
  border-radius:7px;
  background:#f5f8ff;
  color:#4338ca;
  font-size:11.5px;
  line-height:1.5;
  cursor:pointer;
  white-space:nowrap;
}
.opt-ex-btn:hover{background:#e8efff;border-color:#a5b4fc}
.opt-ex-btn.is-on{
  border-style:solid;
  border-color:#2563eb;
  background:#2563eb;
  color:#fff;
}
.opt-ex{
  flex:1 1 100%;
  margin:8px 0 2px;
  padding:11px 12px;
  border:1px solid #dbeafe;
  border-left:3px solid #2563eb;
  border-radius:9px;
  background:#f7faff;
}
.opt-ex-line{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:7px;
}
.opt-ex-line:last-of-type{margin-bottom:0}
.opt-ex-k{
  flex:0 0 62px;
  font-size:12px;
  color:#6b7280;
  text-align:right;
}
.opt-ex-line .select,
.opt-ex-line .input{flex:1 1 auto;min-width:0}
.opt-ex-reqlab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:71px;
  font-size:12.5px;
  color:#374151;
  cursor:pointer;
}
.opt-ex-tip{
  margin:7px 0 0;
  font-size:12px;
  color:#9ca3af;
  line-height:1.6;
}

/* 审核页：选项追加块的答案 */
.answer-item.is-extra{
  border-left:3px solid #93c5fd;
  background:#f7faff;
}
.answer-no.is-extra-no{
  background:#dbeafe;
  color:#1d4ed8;
}

/* ============ 题目管理：列表铺满 + 加题弹窗 ============ */
main.content:has(> .q-list-card){
  display:flex;
  flex-direction:column;
  overflow-y:auto;
}
.q-list-card{
  flex:1 1 0;
  min-height:420px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.q-list-card > .card-head{flex:0 0 auto}
.q-list-card > .table-wrap,
.q-list-card > .empty{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
}
/* 表头在滚动里钉住 */
.q-list-card > .table-wrap > .data thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f7f8fa;
}
/* 题干列别太挤，选项列给足 */
.q-list-card .data th:nth-child(3),
.q-list-card .data td:nth-child(3){min-width:220px}
.q-list-card .data th:nth-child(4),
.q-list-card .data td:nth-child(4){min-width:260px}

/* 加题弹窗：表单本身不额外滚动，靠 dialog-body 滚 */
#addDialog .ui-dialog-body.q-add-card{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:16px 18px 18px;
}
#addDialog .ui-dialog-body.q-add-card > form{
  display:flex;
  flex-direction:column;
  gap:14px;
}
/* 加题弹窗：比默认弹窗宽一圈、高一点 */
#addDialog{
  width:min(1080px, 96vw);
  max-width:none;
}
#addDialog .ui-dialog-body{
  max-height:min(86vh, 900px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
/* 加题弹窗：三列紧凑排 */
#addDialog .ui-dialog-body.q-add-card{gap:12px;padding:16px 20px 18px}
#addDialog .ui-dialog-body.q-add-card > form{gap:11px}
#addDialog .form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
#addDialog .form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#addDialog .form-grid > .field{margin:0}
#addDialog .field > label{font-size:12.5px;margin-bottom:5px}
#addDialog .textarea{min-height:60px;max-height:96px;resize:vertical}
#addDialog .opt-list{max-height:170px;overflow-y:auto;padding-right:2px}
#addDialog .opt-ex-tip{font-size:11.5px}
#addDialog .form-foot{
  display:flex;align-items:center;gap:12px;
  margin-top:2px;
}

/* ============ 后台：图片题「需要用户交的图」槽位行重做 ============ */
/* 原来 .slot-edit-row .input 把边框写死成 0，看着像两段纯文字，根本不知道能填 */
.slot-edit-row{
  display:grid!important;
  grid-template-columns:22px minmax(100px,.9fr) minmax(160px,1.5fr) 74px auto 24px!important;
  align-items:center!important;
  gap:9px!important;
  padding:9px 11px!important;
  border:1px solid #e5e7eb!important;
  border-radius:10px!important;
  background:#fafbfc!important;
  row-gap:9px!important;
}
.slot-edit-row:hover{background:#fff!important;border-color:#d6dbe1!important}
.slot-edit-row .input{
  width:100%!important;
  min-width:0!important;
  height:34px!important;
  padding:0 10px!important;
  border:1px solid #dde1e7!important;
  border-radius:7px!important;
  background:#fff!important;
  font-size:13px!important;
  color:#1f2937!important;
  box-shadow:none!important;
}
.slot-edit-row .input::placeholder{color:#a8b0ba}
.slot-edit-row .input:focus{
  outline:none;
  border-color:#2563eb!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.12)!important;
}
.slot-edit-row .slot-edit-label{font-weight:600}
.slot-edit-no{
  width:22px!important;
  height:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:6px!important;
  background:#eef2ff!important;
  color:#4338ca!important;
  font-size:11px!important;
  font-weight:700!important;
  text-align:center!important;
}
.slot-edit-row .slot-demo-box{
  width:74px!important;
  max-width:74px!important;
  min-width:74px!important;
  overflow:hidden;
}
.slot-edit-row .slot-demo-pick,
.slot-edit-row .slot-demo-box span{
  font-size:11px!important;
  white-space:nowrap;
  overflow:hidden;
}
/* 教程图占位：display 被后置规则盖成 block，居中全失效，这里写死 flex */
.slot-edit-row .slot-demo-pick{
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0 4px!important;
  font-size:11px!important;
  line-height:1.2!important;
  text-align:center;
  white-space:nowrap;
  color:#9ca3af;
  cursor:pointer;
  box-sizing:border-box;
}
.slot-edit-row .slot-demo-pick span{
  display:block!important;
  width:100%;
  line-height:1.2!important;
  font-size:11px!important;
  white-space:nowrap;
  text-align:center;
}

/* 必传：撑满行高再居中，勾选框和「必传」两字严格同一水平线 */
.slot-edit-row .slot-edit-req{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px;
  height:100%!important;
  align-self:stretch!important;
  min-width:62px;
  margin:0;
  padding:0;
  white-space:nowrap;
  font-size:12px;
  line-height:1;
  color:#374151;
  cursor:pointer;
}
.slot-edit-row .slot-edit-req input[type="checkbox"]{
  flex:0 0 auto;
  width:14px;
  height:14px;
  margin:0!important;
  padding:0;
  position:static;
  vertical-align:middle;
  cursor:pointer;
  accent-color:#2563eb;
}
.slot-edit-row .slot-edit-req span{
  display:inline-block;
  line-height:1;
  font-size:12px;
}
@media (max-width:760px){
  .slot-edit-row{
    grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) 24px!important;
  }
  .slot-edit-row .slot-demo-box{grid-column:1 / span 2}
  .slot-edit-row .slot-edit-req{grid-column:3 / span 1;justify-self:end}
}

/* ============ 前台：要交的图，窄屏别挤成一条 ============ */
.up-grid{
  grid-template-columns:repeat(auto-fill, minmax(190px, 1fr))!important;
}

/* ============ 选项区 & 命中后追加：全部展开，不在容器里滚 ============ */
.opt-list,
#qDialog .opt-list,
#addDialog .opt-list{
  max-height:none!important;
  overflow-y:visible!important;
  padding-right:0!important;
}
/* 追加配置面板本身也不裁切 */
.opt-ex{
  max-height:none!important;
  overflow:visible!important;
}
#qDialog .ui-dialog-body,
#addDialog .ui-dialog-body{
  overflow-y:auto;
}

/* 追加按钮：展开中（蓝描边）/ 已配好（实心蓝） */
.opt-ex-btn.is-open{
  border-style:solid;
  border-color:#2563eb;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:600;
}
.opt-ex-btn.is-open:hover{background:#dbeafe}
.opt-ex-btn.is-on{
  border-style:solid;
  border-color:#2563eb;
  background:#2563eb;
  color:#fff;
}

/* 选项列：单元格宽度跟表头走，别再压 320px 造成列错位 */
.q-list-card .data th:nth-child(4),
.q-list-card .data td:nth-child(4){width:auto}

/* 后台题目表格里的「选项」列：桌面端必须保持 table-cell，
   否则会被前台答题页的 .q-opts{display:flex} 命中，高度塌成内容高、边框不合并。
   注意：只在 >=821px 生效，不能用 !important 全局压，
   否则会盖掉 820px 断点下的移动端卡片布局（td 变 flex）。 */
@media (min-width:821px){
  .data td.q-opts{
    display:table-cell;
    vertical-align:middle;
    border-bottom:1px solid #e5e7eb;
  }
}

/* ============ 移动端表格卡片：值必须能换行，否则长题干/长选项被裁 ============ */
@media (max-width:820px){
  table.data tbody td{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  table.data tbody td,
  table.data tbody td *{
    white-space:normal!important;
    max-width:100%!important;
  }
  /* 卡片里右侧的值列要能收缩，别把左侧标签挤出去 */
  table.data tbody td > *{
    min-width:0;
  }
  table.data tbody td{
    flex-wrap:wrap;
  }
}

/* 移动端卡片：标签在上、值在下，值左对齐整行铺满，
   避免 space-between 把长题干顶到右边缘被 overflow 裁掉 */
@media (max-width:820px){
  table.data tbody td{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:2px;
    text-align:left;
    padding:7px 0;
    border-bottom:1px dashed #eef1f5;
  }
  table.data tbody td:last-child{border-bottom:0}
  table.data tbody td::before{
    content:attr(data-th);
    color:var(--text-weak);
    font-size:var(--fs-xs);
    line-height:1.4;
    flex:none;
    width:auto;
    text-align:left;
  }
  table.data tbody td > *{
    width:100%;
    max-width:100%!important;
    text-align:left;
  }
  table.data tbody td.ta-r, table.data tbody td.num{text-align:left}
}

/* 移动端卡片定稿：::before 标签独占一行，下面内容（文本/徽章/按钮）自然横排换行 */
@media (max-width:820px){
  table.data tbody td{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:6px 10px;
    text-align:left;
    padding:8px 0;
    border-bottom:1px dashed #eef1f5;
  }
  table.data tbody td:last-child{border-bottom:0}
  table.data tbody td::before{
    content:attr(data-th);
    flex:0 0 100%;
    width:100%;
    color:var(--text-weak);
    font-size:var(--fs-xs);
    line-height:1.3;
    text-align:left;
  }
  table.data tbody td > *{
    max-width:100%!important;
    min-width:0;
    text-align:left;
  }
  /* 不要把徽章、按钮拉满整行 */
  table.data tbody td > .badge,
  table.data tbody td > .btn,
  table.data tbody td > .chip,
  table.data tbody td > .tag,
  table.data tbody td > span[class*="badge"],
  table.data tbody td > span[class*="chip"],
  table.data tbody td > span[class*="tag"]{
    width:auto!important;
    flex:0 0 auto;
  }
  table.data tbody td.ta-r, table.data tbody td.num{text-align:left}
}

/* ============ 审核弹窗：售后扣分（已通过的单子事后追回） ============ */
.as-box{
  margin:12px 0 0;
  padding:14px 16px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
}
.as-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.as-head b{font-size:14px;color:#1f2937}
.as-head span{font-size:12px;color:#6b7280;line-height:1.5}

.as-table{width:100%;border-collapse:collapse;font-size:13px}
.as-table th{
  text-align:left;font-weight:500;color:#6b7280;font-size:12px;
  padding:6px 8px;border-bottom:1px solid #e5e7eb;white-space:nowrap;
}
.as-table td{padding:8px;border-bottom:1px solid #f1f3f6;vertical-align:middle}
.as-table tr:last-child td{border-bottom:0}
.as-table tr.is-capped td{opacity:.55}
.as-table .ta-r{text-align:right}
.as-table .num{font-variant-numeric:tabular-nums;color:#1f2937}

.as-pick{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.as-pick input[type="checkbox"]{width:15px;height:15px;cursor:pointer;flex:none}
.as-name{font-weight:500;color:#1f2937}
.as-role{
  font-size:11px;color:#2563eb;background:#eff6ff;
  border:1px solid #bfdbfe;border-radius:5px;padding:0 6px;line-height:18px;white-space:nowrap;
}

.as-amt{width:88px!important;text-align:right;padding:5px 8px!important;height:auto!important}
.as-amt:disabled{background:#f7f8fa!important;color:#9ca3af;cursor:not-allowed}

.as-foot{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.as-remark{flex:1;min-width:200px}
.as-sum{font-size:13px;color:#6b7280;white-space:nowrap}
.as-sum b{color:#dc2626;font-size:15px;font-variant-numeric:tabular-nums}
.as-tip{font-size:12px;margin-top:8px}

@media (max-width:820px){
  .as-box{padding:12px}
  .as-table thead{display:none}
  .as-table tbody tr{
    display:block;border:1px solid #e5e7eb;border-radius:8px;
    padding:8px 10px;margin-bottom:8px;
  }
  .as-table tbody td{
    display:flex;justify-content:space-between;align-items:center;
    border:0;padding:5px 0;text-align:right;gap:10px;
  }
  .as-table tbody td::before{
    content:attr(data-th);color:#9ca3af;font-size:11px;flex:none;
  }
  .as-foot .as-remark{min-width:100%;flex:0 0 100%}
}

/* 积分扣除弹窗：比审核详情窄，只有一张表 */
.rv-panel-cut{width:min(680px,100%)!important}
.rv-panel-cut .rv-body{padding:16px 18px 18px}

/* 审核列表操作列：两个按钮并排，不许撑破卡片 */
.rv-cell-act{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  padding-right:10px!important;
  min-width:0;
}
.rv-cell-act .btn{
  width:auto!important;
  min-width:0!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
  padding:0 10px!important;
  font-size:12px!important;
  height:28px!important;
  line-height:26px!important;
}
.rv-card-head span:last-child{text-align:right;padding-right:18px}

/* 扣分校验：空值标红 */
.as-amt.is-warn{
  border-color:#ef4444!important;
  background:#fef2f2!important;
  box-shadow:0 0 0 2px rgba(239,68,68,.12)!important;
}
.as-tip.is-err{color:#dc2626!important;font-weight:500}

/* ---------- 审核附图上传（驳回 / 拒绝共用） ---------- */
.rv-file{
  display:flex !important;
  align-items:center;
  gap:8px;
  margin-top:8px;
  cursor:pointer;
  min-width:0;
}
.rv-file input[type=file]{
  position:absolute;
  width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.rv-file-btn{
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  height:30px;padding:0 12px;
  border-radius:8px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  color:#1f2937;
  font-size:12.5px;
  line-height:1;
  white-space:nowrap;
}
.rv-file:hover .rv-file-btn{border-color:#9ca3af;background:#f3f4f6}
.rv-file input[type=file]:focus-visible + .rv-file-btn{
  outline:2px solid #93c5fd;outline-offset:2px;
}
.rv-file-txt{
  min-width:0;
  font-size:11.5px;
  color:#6b7280;
  line-height:1.5;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.rv-file.has-file .rv-file-btn{border-color:#2563eb;background:#eff6ff;color:#2563eb}
.rv-file.has-file .rv-file-txt{color:#2563eb;font-weight:500}

/* 已审核结果里的附图 */
.rv-result-fig{
  display:block;margin-top:10px;
  max-width:220px;
  border:1px solid #e5e7eb;border-radius:8px;
  overflow:hidden;background:#f9fafb;
}
.rv-result-fig img{display:block;width:100%;height:auto}

/* ---------- 用户通知：附图 ---------- */
.ud-tag-img{
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  height:16px;padding:0 5px;
  border-radius:4px;
  background:#eff6ff;color:#2563eb;
  font-size:10.5px;font-style:normal;line-height:1;
}
.ud-notice-thumb{
  display:block;
  width:96px;height:64px;
  margin-top:6px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
}
.ud-dlg-fig{
  display:block;margin-top:12px;
  border-radius:8px;overflow:hidden;
  border:1px solid #e5e7eb;background:#f9fafb;
  cursor:zoom-in;
}
.ud-dlg-fig img{display:block;width:100%;height:auto}

/* 列表点「驳回 / 拒绝」进来时，把对应按钮圈出来 */
.rv-actions .btn.is-arm{
  outline:2px solid #2563eb !important;
  outline-offset:2px;
  box-shadow:0 0 0 4px rgba(37,99,235,.14) !important;
}

/* ---------- 驳回 / 拒绝独立弹窗 ---------- */
.rv-panel-act{width:min(720px,100%)!important}
.rv-panel-act .rv-body{padding:16px 18px 18px}
.as-note{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.as-note .textarea{width:100%}
/* 两个动作按钮：驳回橙、拒绝红 */
.rv-panel-act .as-foot{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin-top:14px;padding-top:14px;border-top:1px solid #eef1f5;
}
.rv-panel-act .as-foot .as-sum{margin-right:auto}
.rv-panel-act .as-foot .btn{height:36px;padding:0 16px;font-size:13px}
/* 表格里默认勾满的行给点提示 */
.rv-panel-act .as-table tr.is-capped{opacity:.55}

/* ---------- 通知详情：结论摘要 + 提交账号 ---------- */
.ud-alert{
  padding:13px 15px;border-radius:9px;font-size:13.5px;line-height:1.7;
  font-weight:500;margin-bottom:12px;border-left:4px solid #dc2626;
  background:#fef2f2;color:#991b1b;
}
.ud-alert.is-deny{background:#fef2f2;color:#991b1b;border-left-color:#dc2626}
.ud-alert.is-reject{background:#fffbeb;color:#92400e;border-left-color:#d97706}
.ud-para{font-size:13px;line-height:1.75;color:#374151;margin:7px 0}
.ud-acct{
  display:flex;gap:10px;flex-wrap:wrap;
  margin:10px 0 12px;padding:10px 12px;border-radius:8px;
  background:#f7f8fa;border:1px solid #e5e7eb;
}
.ud-acct-cell{display:flex;align-items:baseline;gap:7px}
.ud-acct-k{font-size:12px;color:#6b7280;flex:0 0 auto}
.ud-acct-v{
  font-size:14px;font-weight:600;color:#1f2937;letter-spacing:.2px;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  word-break:break-all;
}

/* 通知详情：原因单独一块，给底色 */
.ud-para.ud-reason{
  margin:10px 0 4px;padding:11px 14px;border-radius:8px;
  background:#f1f5f9;border-left:3px solid #2563eb;
  color:#1f2937;font-weight:700;font-size:14px;
}

/* ===== 订单表 8 列：多一列「被拒时间」 ===== */
.order-table-8{
  --oc-cols: minmax(170px,1.15fr) minmax(150px,1.45fr) minmax(88px,1fr) 56px 56px 88px 96px minmax(118px,1fr);
}
.oc-rej-date{
  font-size:12.5px;font-weight:600;color:#b91c1c;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.oc-remark-txt{
  display:block;font-size:12.5px;color:#6b7280;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* ===== 被拒详情弹窗 ===== */
.od-x{
  appearance:none;border:0;background:none;cursor:pointer;
  font-size:22px;line-height:1;color:#9ca3af;padding:2px 6px;border-radius:6px;
}
.od-x:hover{background:#f1f5f9;color:#374151}
.od-meta{
  display:flex;align-items:center;gap:10px;
  padding-bottom:12px;margin-bottom:14px;
  border-bottom:1px solid #e5e7eb;
}
.od-badge{
  font-size:12px;font-weight:700;padding:3px 9px;border-radius:6px;
}
.od-badge.is-deny{background:#fef2f2;color:#b91c1c}
.od-badge.is-reject{background:#fffbeb;color:#b45309}
.od-time{font-size:12px;color:#6b7280;font-variant-numeric:tabular-nums}
.od-line{
  display:flex;align-items:baseline;gap:10px;margin-bottom:8px;
}
.od-k{flex:0 0 56px;font-size:12.5px;color:#6b7280}
.od-v{font-size:13.5px;color:#1f2937;font-weight:600;word-break:break-all}
.od-why{
  margin-top:14px;padding:12px 15px;border-radius:8px;
  background:#f7f8fa;border:1px solid #e5e7eb;border-left:3px solid #dc2626;
}
.od-why-k{font-size:12px;color:#6b7280;margin-bottom:6px}
.od-why-v{
  font-size:14px;font-weight:700;color:#1f2937;line-height:1.7;
  white-space:pre-wrap;word-break:break-word;
}

/* 审核动作表单：回车没提交时的提示 */
.as-enter-tip{
  margin-top:8px;padding:9px 12px;border-radius:8px;
  background:#fffbeb;border:1px solid #fde68a;border-left:3px solid #d97706;
  font-size:12.5px;color:#92400e;font-weight:600;
}

/* 弹窗封顶：内容再多也不许顶穿屏幕。
   注意这里绝不能写 display:flex —— .ui-dialog 默认是 display:none，
   由 .ui-dialog.open 切成 flex。在这里写 flex 会让所有弹窗一开页就全展开。 */
.ui-dialog{
  max-height:86vh;
}
.ui-dialog > .ui-dialog-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
}
@media (max-height:640px){
  .ui-dialog{ max-height:92vh; }
}

/* 用户端：被驳回可重交 */
.oc-badge-stack{
  display:flex;flex-direction:column;align-items:center;gap:5px;
}

/* 后台：第 N 次提交标记 */
.rv-resub{
  display:inline-flex;align-items:center;gap:3px;
  padding:1px 7px;border-radius:999px;
  background:#fff7ed;border:1px solid #fdba74;
  color:#c2410c;font-size:11px;font-weight:700;line-height:1.7;
  white-space:nowrap;
}
.rv-resub::before{ content:"↻"; font-size:11px; }
/* 规格必选提示 */
.tpl-req{
  display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;
  background:#fef2f2;border:1px solid #fecaca;color:#dc2626;
  font-size:11px;font-weight:700;vertical-align:middle;
}
.tpl-pick.is-shake{ animation:tplShake .4s ease-in-out 2; }
@keyframes tplShake{
  0%,100%{ transform:translateX(0); }
  25%{ transform:translateX(-6px); }
  75%{ transform:translateX(6px); }
}

/* ---------------------------------------------------------------
   加载态：.is-loading 与 [aria-busy="true"]，用于按钮/卡片/表格行
   --------------------------------------------------------------- */
.btn.is-loading,
button.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: .85;
}
.btn.is-loading::after,
button.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ds-spin .7s linear infinite;
}
.btn-ghost.is-loading::after,
.btn-tone-neutral.is-loading::after {
  border-color: rgba(31, 41, 55, .25);
  border-top-color: #1f2937;
}
[aria-busy="true"] {
  cursor: progress;
}
.is-loading-block {
  position: relative;
  min-height: 80px;
  pointer-events: none;
}
.is-loading-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .62);
  z-index: 2;
  border-radius: 10px;
}
.is-loading-block::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: ds-spin .7s linear infinite;
  z-index: 3;
}
@keyframes ds-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after,
  button.is-loading::after,
  .is-loading-block::after { animation-duration: 2s; }
}

/* ---------- 提现批量操作：二次确认 + 导出进度条 ---------- */
.wt-co-modal { width: 720px; max-width: calc(100vw - 32px); }
.wt-co-desc {
  margin: 0 0 14px; font-size: 13.5px; line-height: 1.7; color: #1f2937;
}
.wt-co-desc b { color: #2563eb; font-weight: 700; }
.wt-co-desc b:only-of-type { }
.wt-co-summary {
  background: #f7f8fa; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 14px;
}
.wt-co-line {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #6b7280; padding: 3px 0;
}
.wt-co-line b { color: #1f2937; font-weight: 700; font-size: 14px; }
.wt-co-line b.num { color: #2563eb; }
.wt-co-list-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed #e5e7eb;
  font-size: 12px; color: #9ca3af;
}
.wt-co-list-hd span:last-child { color: #6b7280; }

/* 两列网格 + 固定高度滚动：22 笔也能一屏看一半，剩下滚 */
.wt-co-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
  max-height: 236px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.wt-co-list::-webkit-scrollbar { width: 6px; }
.wt-co-list::-webkit-scrollbar-track { background: transparent; }
.wt-co-list::-webkit-scrollbar-thumb {
  background: #d1d5db; border-radius: 999px;
}
.wt-co-list::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.wt-co-list span {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11.5px; color: #6b7280; font-variant-numeric: tabular-nums;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 5px 8px; min-width: 0;
}
.wt-co-list span b {
  font-weight: 500; color: #4b5563;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wt-co-list span i { font-style: normal; color: #2563eb; font-weight: 700; flex: 0 0 auto; }

/* 窄屏退回单列 */
@media (max-width: 760px) {
  .wt-co-list { grid-template-columns: 1fr; max-height: 200px; }
}
.wt-co-progress { margin-top: 4px; }
.wt-co-bar {
  height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden;
}
.wt-co-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: 999px; transition: width .16s linear;
}
.wt-co-bar i.wt-co-indet {
  background: linear-gradient(90deg, #2563eb 0%, #93c5fd 45%, #2563eb 90%);
  background-size: 200% 100%;
  animation: wt-co-slide 1.1s linear infinite;
}
@keyframes wt-co-slide {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}
.wt-co-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 7px; font-size: 12px; color: #6b7280;
  font-variant-numeric: tabular-nums;
}
.wt-co-meta #wtCoPct { color: #2563eb; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .wt-co-bar i.wt-co-indet { animation-duration: 3s; }
  .wt-co-bar i { transition: none; }
}

/* ---------- 打款记录（结账汇总）页 ---------- */
.page-head .page-sub {
  margin: 4px 0 0; font-size: 12.5px; color: #9ca3af;
}

.settle-table .settle-day {
  font-size: 13.5px; color: #1f2937; letter-spacing: .3px;
}
.settle-table .settle-wd {
  margin-left: 6px; font-size: 11.5px; color: #9ca3af;
}
.settle-table .settle-today-tag {
  margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  color: #2563eb; background: #eff6ff;
}
.settle-table .settle-total {
  font-size: 14px; font-weight: 700; color: #2563eb;
}
.settle-table .settle-row.is-open { background: #fafbfc; }
.settle-table .settle-toggle {
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* 展开的明细面板 */
.settle-detail-row > td {
  padding: 0 !important;
  background: #f7f8fa;
  border-top: 1px dashed #e5e7eb;
}
.settle-panel { padding: 12px 14px 14px; }
.settle-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #4b5563; font-weight: 600;
  margin-bottom: 10px;
}
.settle-panel-hd .weak { font-weight: 400; }

.settle-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.settle-items::-webkit-scrollbar { width: 6px; }
.settle-items::-webkit-scrollbar-track { background: transparent; }
.settle-items::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
.settle-items::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.settle-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) 74px 46px 46px 42px;
  align-items: center; gap: 8px;
  padding: 6px 9px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.settle-no {
  color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.settle-user {
  color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.settle-method { color: #9ca3af; }
.settle-amt { color: #2563eb; font-weight: 700; text-align: right; }
.settle-hm { color: #9ca3af; text-align: right; }

@media (max-width: 760px) {
  .settle-items { grid-template-columns: 1fr; max-height: 260px; }
  .settle-item { grid-template-columns: minmax(0,1fr) 52px 44px; }
  .settle-piece, .settle-method, .settle-hm { display: none; }
  .settle-method, .settle-hm { display: none; }
}

/* ---------- 卡密批量操作 ---------- */
.cd-bulk-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #f7f8fa;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.cd-bulk-sel {
  font-size: 13px; color: #4b5563; font-variant-numeric: tabular-nums;
}
.cd-bulk-sel b { color: #2563eb; font-weight: 700; font-size: 14px; }
.cd-bulk-hint { font-size: 12px; color: #9ca3af; }

/* 勾选列 */
.cd-ck-col { width: 36px; }
.cd-ck-col input[type="checkbox"] {
  width: 15px; height: 15px; cursor: pointer;
  accent-color: #2563eb; vertical-align: middle;
}
.settle-table .cd-ck-col,
table.data .cd-ck-col { padding-left: 12px; padding-right: 0; }

@media (max-width: 720px) {
  .cd-bulk-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .cd-bulk-hint { display: none; }
  .cd-bulk-bar .spacer { display: none; }
}

/* ---------- 卡密列表懒加载 ---------- */
.cd-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px; font-size: 12.5px; color: #9ca3af;
  border-top: 1px dashed #e5e7eb;
}
.cd-more.is-end { color: #c7cdd6; border-top-color: #eef1f5; }
.cd-more.is-error { color: #dc2626; cursor: pointer; text-decoration: underline; }
.cd-more-spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid #e5e7eb; border-top-color: #2563eb;
  display: none;
}
.cd-more.is-loading .cd-more-spin {
  display: inline-block;
  animation: ds-spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cd-more.is-loading .cd-more-spin { animation-duration: 2.2s; }
}
.cd-list-foot b { color: #2563eb; font-variant-numeric: tabular-nums; }
