:root{
  --bg:#080b11;
  --card:rgba(255,255,255,.045);
  --stroke:rgba(255,255,255,.075);
  --stroke-strong:rgba(255,255,255,.13);
  --text:#e9edf6;
  --muted:#8a95aa;
  --muted-2:#67718a;
  --mint:#2ee6a8;
  --blue:#5c8bff;
  --amber:#ffbe4d;
  --rose:#ff6b8a;
  --violet:#a78bfa;
  --radius:18px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%}
body{
  background:var(--bg);color:var(--text);
  font-family:"PingFang SC","Microsoft YaHei","Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(46,230,168,.13), transparent 62%),
    radial-gradient(800px 480px at 92% 4%, rgba(92,139,255,.14), transparent 60%),
    radial-gradient(700px 700px at 60% 105%, rgba(167,139,250,.08), transparent 65%);
}
body::after{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.35;
  background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(circle at 50% 20%,#000 20%,transparent 78%);
}

.topbar{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:20px;
  padding:16px 28px;background:rgba(8,11,17,.72);
  backdrop-filter:blur(18px);border-bottom:1px solid var(--stroke);
}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.logo{
  width:42px;height:42px;border-radius:13px;flex:none;display:grid;place-items:center;
  font-weight:700;font-size:19px;letter-spacing:1px;color:#05231a;
  background:linear-gradient(140deg,#4df2b6,#0fb286 60%,#0a8f6d);
  box-shadow:0 8px 22px rgba(20,190,140,.28), inset 0 1px 0 rgba(255,255,255,.45);
}
.brand h1{font-size:17px;font-weight:650;letter-spacing:.5px;white-space:nowrap}
.brand p{font-size:11.5px;color:var(--muted-2);letter-spacing:.6px;white-space:nowrap}
.top-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.today-chip{
  font-size:12px;color:var(--muted);padding:7px 13px;border-radius:999px;
  border:1px solid var(--stroke);background:rgba(255,255,255,.03);white-space:nowrap;
}
.icon-btn{
  width:36px;height:36px;border-radius:11px;cursor:pointer;
  border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:var(--muted);
  font-size:16px;transition:.18s;
}
.icon-btn:hover{color:var(--mint);border-color:rgba(46,230,168,.35);transform:rotate(90deg)}
.top-link{
  font-size:12px;color:var(--muted);text-decoration:none;white-space:nowrap;
  padding:7px 13px;border-radius:999px;border:1px solid var(--stroke);background:rgba(255,255,255,.03);
  transition:.16s;
}
.top-link:hover{color:#7df3c9;border-color:rgba(46,230,168,.35)}

main{padding:26px clamp(20px,1.8vw,36px) 60px;width:100%;max-width:none;margin:0 auto}
.hidden{display:none !important}

.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kpi{
  position:relative;overflow:hidden;padding:20px 22px 18px;border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.022));
  border:1px solid var(--stroke);transition:transform .2s,border-color .2s;
}
.kpi:hover{transform:translateY(-2px);border-color:var(--stroke-strong)}
.kpi::after{content:"";position:absolute;left:0;right:0;top:0;height:2px;opacity:.9}
.kpi::before{
  content:"";position:absolute;width:180px;height:180px;right:-70px;top:-90px;border-radius:50%;
  background:radial-gradient(circle,var(--glow),transparent 68%);opacity:.5;
}
.kpi.today{--glow:rgba(46,230,168,.4)} .kpi.today::after{background:linear-gradient(90deg,#2ee6a8,transparent)}
.kpi.yest{--glow:rgba(92,139,255,.4)} .kpi.yest::after{background:linear-gradient(90deg,#5c8bff,transparent)}
.kpi.total{--glow:rgba(255,190,77,.38)} .kpi.total::after{background:linear-gradient(90deg,#ffbe4d,transparent)}
.kpi.orders{--glow:rgba(167,139,250,.4)} .kpi.orders::after{background:linear-gradient(90deg,#a78bfa,transparent)}
.kpi-head{display:flex;align-items:center;justify-content:space-between;font-size:12.5px;color:var(--muted);letter-spacing:.4px}
.kpi-head .dot{width:6px;height:6px;border-radius:50%}
.kpi.today .dot{background:var(--mint);box-shadow:0 0 10px var(--mint)}
.kpi.yest .dot{background:var(--blue)}
.kpi.total .dot{background:var(--amber)}
.kpi.orders .dot{background:var(--violet)}
.kpi-value{
  margin-top:14px;font-size:31px;font-weight:700;letter-spacing:.4px;
  font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,#fff,#cfd8e8);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.kpi-sub{margin-top:8px;font-size:12px;color:var(--muted-2)}
.kpi-badge{
  position:absolute;right:18px;bottom:16px;font-size:11.5px;padding:4px 9px;border-radius:8px;
  background:rgba(255,255,255,.05);color:var(--muted);border:1px solid var(--stroke);
  font-variant-numeric:tabular-nums;
}
.kpi-badge.up{color:#6ef0c0;border-color:rgba(46,230,168,.3);background:rgba(46,230,168,.09)}
.kpi-badge.down{color:#ff9bb0;border-color:rgba(255,107,138,.3);background:rgba(255,107,138,.09)}

.grid-main{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);gap:16px;margin-top:16px}
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));
  border:1px solid var(--stroke);border-radius:var(--radius);padding:20px 22px;
}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.card-title{font-size:14.5px;font-weight:600;letter-spacing:.3px}
.card-desc{font-size:11.5px;color:var(--muted-2);margin-top:4px}
.card-tag{
  font-size:11.5px;color:var(--mint);background:rgba(46,230,168,.09);
  border:1px solid rgba(46,230,168,.22);padding:4px 10px;border-radius:999px;white-space:nowrap;
}

.chart-wrap{position:relative;height:236px}
.chart-cv{display:block;cursor:crosshair}
.chart-tip{
  position:absolute;pointer-events:none;z-index:5;padding:8px 11px;border-radius:10px;
  background:rgba(13,18,27,.95);border:1px solid var(--stroke-strong);
  box-shadow:0 10px 28px rgba(0,0,0,.5);font-size:12px;white-space:nowrap;
  opacity:0;transform:translate(-50%,-118%);transition:opacity .12s;
}
.chart-tip b{color:var(--mint);font-variant-numeric:tabular-nums}
.chart-tip span{color:var(--muted);margin-left:8px}
.chart-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted-2);font-size:13px}

.rank-list{display:flex;flex-direction:column;gap:14px}
.rank-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:center}
.rank-no{font-size:12px;color:var(--muted-2);font-variant-numeric:tabular-nums;text-align:center}
.rank-no.top{color:var(--mint);font-weight:700}
.rank-main{min-width:0}
.rank-name{font-size:13px;display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}
.rank-name span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-amount{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;flex:none}
.rank-bar{height:5px;border-radius:99px;background:rgba(255,255,255,.06);overflow:hidden}
.rank-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2ee6a8,#5c8bff);opacity:.85}
.rank-share{font-size:11px;color:var(--muted-2);font-variant-numeric:tabular-nums;text-align:right}
.rank-empty{color:var(--muted-2);font-size:13px;padding:18px 0}

.records-card{margin-top:16px}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--stroke)}
.presets{display:flex;gap:4px;padding:3px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid var(--stroke)}
.preset{
  border:0;background:transparent;color:var(--muted);font-size:12.5px;font-family:inherit;
  padding:6px 12px;border-radius:8px;cursor:pointer;transition:.15s;white-space:nowrap;
}
.preset:hover{color:#d5ddeb}
.preset.active{background:rgba(46,230,168,.14);color:#7df3c9;font-weight:600}
.field{
  display:flex;align-items:center;gap:8px;height:36px;padding:0 11px;border-radius:10px;
  background:rgba(255,255,255,.04);border:1px solid var(--stroke);color:var(--muted);
  font-size:12.5px;transition:.15s;
}
.field:focus-within{border-color:rgba(46,230,168,.4);background:rgba(46,230,168,.05)}
.field input,.field select{
  border:0;background:transparent;color:var(--text);font-family:inherit;font-size:12.5px;outline:none;min-width:0;
}
.field input::placeholder{color:var(--muted-2)}
.field input[type=date]{color-scheme:dark;width:126px}
.field select{color-scheme:dark;cursor:pointer;max-width:150px}
.field select option{background:#121722;color:#e9edf6}
.field.search{flex:1;min-width:180px;max-width:320px}
.field.search input{width:100%}
.ghost-btn{
  height:36px;padding:0 15px;border-radius:10px;cursor:pointer;
  border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:var(--muted);
  font-size:12.5px;font-family:inherit;transition:.18s;white-space:nowrap;
}
.ghost-btn:hover{color:#e9edf6;border-color:var(--stroke-strong);background:rgba(255,255,255,.07)}
.table-sum{margin-left:auto;display:flex;gap:16px;font-size:12px;color:var(--muted);white-space:nowrap}
.table-sum b{color:var(--mint);font-variant-numeric:tabular-nums;font-weight:600}

.table-scroll{overflow-x:auto;margin:0 -22px;padding:0 22px}
table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;min-width:860px}
thead th{
  position:sticky;top:0;z-index:2;text-align:left;font-weight:500;font-size:11.5px;
  letter-spacing:.6px;color:var(--muted-2);padding:12px 10px;white-space:nowrap;
  background:#0c1017;border-bottom:1px solid var(--stroke);
}
thead th[data-sort]{cursor:pointer;user-select:none}
thead th[data-sort]:hover{color:#cdd6e5}
thead th .arrow{opacity:.5;font-size:10px;margin-left:3px}
tbody td{padding:13px 10px;border-bottom:1px solid rgba(255,255,255,.045);color:#cdd5e3;vertical-align:middle}
tbody tr:hover td{background:rgba(255,255,255,.028)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td.date{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted);font-size:12.5px}
td.drama{font-weight:600;color:#eef2fa;white-space:nowrap;max-width:190px;overflow:hidden;text-overflow:ellipsis}
td.amount{color:var(--mint);font-weight:650}
.sub{display:block;font-size:11px;color:var(--muted-2);margin-top:2px}
.remark{max-width:160px;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-actions{display:flex;gap:6px;justify-content:flex-end;white-space:nowrap}
.mini-btn{
  border:1px solid var(--stroke);background:rgba(255,255,255,.03);color:var(--muted);
  font-size:11.5px;padding:4px 9px;border-radius:7px;cursor:pointer;font-family:inherit;transition:.15s;
}
.mini-btn:hover:not(:disabled){color:#7df3c9;border-color:rgba(46,230,168,.35);background:rgba(46,230,168,.07)}
.mini-btn:disabled{opacity:.42;cursor:not-allowed;color:#8f9aa5}
.mini-btn.danger:hover:not(:disabled){color:#ff9bb0;border-color:rgba(255,107,138,.35);background:rgba(255,107,138,.08)}
.empty-row td{text-align:center;padding:44px 10px;color:var(--muted-2)}
.pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:16px;font-size:12px;color:var(--muted)}
.pager .ghost-btn{height:32px;padding:0 12px}
.pager .ghost-btn:disabled{opacity:.35;cursor:not-allowed}
.foot-note{margin-top:18px;text-align:center;font-size:11.5px;color:var(--muted-2);letter-spacing:.4px}

/* ---------- 客户前台登录 ---------- */
.user-chip{
  display:flex;align-items:center;gap:8px;padding:5px 12px 5px 6px;border-radius:999px;
  border:1px solid var(--stroke);background:rgba(255,255,255,.035);font-size:12px;color:var(--muted);
}
.user-chip b{color:#e9edf6;font-weight:600;white-space:nowrap}
.avatar{
  width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:linear-gradient(135deg,#4df2b6,#0f9d77);font-size:12px;font-weight:700;color:#05231a;
}
.auth-wrap{display:grid;place-items:center;min-height:calc(100vh - 140px);padding:24px 0}
.auth-card{
  width:100%;max-width:432px;padding:34px 32px;border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.022));
  border:1px solid var(--stroke);box-shadow:0 26px 70px rgba(0,0,0,.4);
}
.auth-card h2{font-size:20px;font-weight:650;letter-spacing:.4px}
.auth-sub{font-size:12.5px;color:var(--muted-2);line-height:1.75;margin:8px 0 18px}
.auth-tabs{
  display:flex;gap:4px;padding:4px;border-radius:12px;margin-bottom:20px;
  background:rgba(255,255,255,.04);border:1px solid var(--stroke);
}
.auth-tab{
  flex:1;border:0;background:transparent;color:var(--muted);padding:9px 0;border-radius:9px;
  font-family:inherit;font-size:13.5px;cursor:pointer;transition:.15s;
}
.auth-tab:hover{color:#cfd7e6}
.auth-tab.active{background:rgba(46,230,168,.14);color:#7df3c9;font-weight:600}
.auth-form{display:flex;flex-direction:column;gap:13px}
.field-label{font-size:12px;color:var(--muted);letter-spacing:.3px;margin-bottom:7px;display:block}
.auth-input{
  height:48px;width:100%;padding:0 15px;border-radius:13px;background:rgba(255,255,255,.05);
  border:1px solid var(--stroke);color:var(--text);font-family:inherit;font-size:15px;outline:none;
  transition:.16s;font-variant-numeric:tabular-nums;letter-spacing:.5px;
}
.auth-input:focus{border-color:rgba(46,230,168,.45);background:rgba(46,230,168,.06);box-shadow:0 0 0 3px rgba(46,230,168,.08)}
.auth-input::placeholder{color:var(--muted-2);letter-spacing:0}
.code-row{display:grid;grid-template-columns:minmax(0,1fr) 122px;gap:10px}
.send-btn{
  height:48px;border-radius:13px;cursor:pointer;font-family:inherit;font-size:13px;
  border:1px solid rgba(46,230,168,.32);background:rgba(46,230,168,.1);color:#7df3c9;transition:.16s;
}
.send-btn:hover:not(:disabled){background:rgba(46,230,168,.17)}
.send-btn:disabled{opacity:.45;cursor:not-allowed;color:var(--muted)}
.auth-submit{
  height:50px;border-radius:13px;border:0;cursor:pointer;margin-top:6px;
  font-family:inherit;font-size:15px;font-weight:650;color:#04261c;
  background:linear-gradient(135deg,#5cf4bd,#12b98a);box-shadow:0 12px 30px rgba(20,190,145,.3);
  transition:.18s;
}
.auth-submit:hover{transform:translateY(-1px);box-shadow:0 16px 36px rgba(20,190,145,.38)}
.demo-hint{
  margin-top:14px;padding:10px 13px;border-radius:11px;font-size:12px;line-height:1.6;
  background:rgba(92,139,255,.1);border:1px solid rgba(92,139,255,.26);color:#b7c9ff;
}
.demo-hint b{color:#dbe6ff;font-variant-numeric:tabular-nums;letter-spacing:1px}
.auth-foot{margin-top:20px;padding-top:16px;border-top:1px solid var(--stroke);font-size:11.5px;color:var(--muted-2);line-height:1.8}

/* ---------- 后台专用 ---------- */
.tabs{display:flex;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid var(--stroke)}
.admin-tabs{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.admin-tabs .tab{white-space:nowrap;flex:none}
.front-tabs{margin-left:6px;flex:none;max-width:100%;overflow-x:auto}
.front-tabs .tab{white-space:nowrap;flex:none}
.step-bar{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:11.5px;color:var(--muted-2);flex-wrap:wrap}
.step-bar .step{display:flex;align-items:center;gap:6px;white-space:nowrap}
.step-bar .step i{
  width:18px;height:18px;border-radius:50%;display:grid;place-items:center;
  font-style:normal;font-size:11px;background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);color:var(--muted-2);
}
.step-bar .step.active{color:#7df3c9}
.step-bar .step.active i{background:rgba(46,230,168,.16);border-color:rgba(46,230,168,.45);color:#7df3c9}
.step-bar .step.done{color:#9fb0c6}
.step-bar .step.done i{background:rgba(46,230,168,.2);border-color:rgba(46,230,168,.35);color:#7df3c9}
.step-line{width:34px;height:1px;background:rgba(255,255,255,.12)}
.tab{
  border:0;background:transparent;color:var(--muted);padding:8px 20px;border-radius:999px;
  font-size:13.5px;cursor:pointer;font-family:inherit;transition:.18s;
}
.tab:hover{color:#cfd7e6}
.tab.active{
  color:#06251b;font-weight:600;background:linear-gradient(135deg,#4df2b6,#16c495);
  box-shadow:0 6px 18px rgba(30,210,160,.25);
}
.kpi.compact{padding:16px 18px 14px}
.kpi.compact .kpi-value{font-size:23px;margin-top:10px}
.kpi.compact .kpi-sub{font-size:11.5px;margin-top:6px}
.entry-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start;margin-top:16px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.form-item{display:flex;flex-direction:column;gap:7px}
.form-item.full{grid-column:1/-1}
.form-item label{font-size:12px;color:var(--muted);letter-spacing:.3px}
.form-item label em{color:var(--rose);font-style:normal;margin-left:3px}
.input{
  height:42px;padding:0 13px;border-radius:11px;width:100%;
  background:rgba(255,255,255,.045);border:1px solid var(--stroke);
  color:var(--text);font-family:inherit;font-size:13.5px;outline:none;transition:.15s;
  font-variant-numeric:tabular-nums;
}
.input:focus{border-color:rgba(46,230,168,.45);background:rgba(46,230,168,.055);box-shadow:0 0 0 3px rgba(46,230,168,.08)}
.input::placeholder{color:var(--muted-2)}
textarea.input{height:78px;padding:11px 13px;resize:vertical;line-height:1.6}
select.input{color-scheme:dark;cursor:pointer}
select.input option{background:#121722}
.form-actions{display:flex;gap:10px;margin-top:20px;align-items:center}
.primary-btn{
  height:44px;padding:0 26px;border-radius:12px;border:0;cursor:pointer;
  font-family:inherit;font-size:14px;font-weight:650;color:#04261c;
  background:linear-gradient(135deg,#5cf4bd,#12b98a);
  box-shadow:0 10px 26px rgba(20,190,145,.28);transition:.18s;
}
.primary-btn:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(20,190,145,.36)}
.primary-btn:active{transform:translateY(0)}
.primary-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.link-btn{border:0;background:transparent;color:var(--muted);font-size:12.5px;cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.link-btn:hover{color:#d5ddeb}
.edit-banner{
  display:flex;align-items:center;gap:10px;margin-bottom:16px;padding:10px 14px;border-radius:11px;
  background:rgba(92,139,255,.1);border:1px solid rgba(92,139,255,.28);font-size:12.5px;color:#b9caff;
}
.edit-banner b{color:#dbe6ff}
.edit-banner button{margin-left:auto}
.recent-list{display:flex;flex-direction:column;gap:2px}
.recent-row{display:flex;align-items:center;gap:10px;padding:11px 4px;border-bottom:1px solid rgba(255,255,255,.045)}
.recent-row:last-child{border-bottom:0}
.recent-dot{width:7px;height:7px;border-radius:50%;background:var(--mint);flex:none;opacity:.75}
.recent-main{min-width:0;flex:1}
.recent-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-meta{font-size:11px;color:var(--muted-2);margin-top:2px}
.recent-amount{font-size:13px;color:var(--mint);font-variant-numeric:tabular-nums;flex:none}
.recent-empty{color:var(--muted-2);font-size:13px;padding:20px 0;text-align:center}
.danger-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--stroke)}
.danger-row span{font-size:12px;color:var(--muted-2)}
.danger-row button{
  border:1px solid rgba(255,107,138,.28);background:rgba(255,107,138,.07);color:#ff9bb0;
  font-size:12px;padding:7px 12px;border-radius:9px;cursor:pointer;font-family:inherit;
}
.danger-row button:hover{background:rgba(255,107,138,.13)}
.status-pill{
  display:inline-block;font-size:11px;padding:2px 9px;border-radius:999px;
  border:1px solid rgba(46,230,168,.3);color:#7df3c9;background:rgba(46,230,168,.08);white-space:nowrap;
}
.status-pill.off{border-color:rgba(255,107,138,.3);color:#ff9bb0;background:rgba(255,107,138,.08)}

.lock-wrap{display:grid;place-items:center;min-height:calc(100vh - 190px);padding:20px 0}
.lock-card{
  width:100%;max-width:400px;padding:32px 30px;
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.02));
  border:1px solid var(--stroke);border-radius:22px;text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.lock-icon{
  width:56px;height:56px;margin:0 auto 16px;border-radius:16px;display:grid;place-items:center;
  font-size:26px;background:rgba(46,230,168,.1);border:1px solid rgba(46,230,168,.25);
}
.lock-card h2{font-size:17px;font-weight:650;margin-bottom:6px}
.lock-card p{font-size:12.5px;color:var(--muted-2);line-height:1.7;margin-bottom:20px}
.lock-card .input{text-align:center;letter-spacing:2px}
.lock-card .primary-btn{width:100%;margin-top:14px}
.lock-hint{margin-top:16px;font-size:11.5px;color:var(--muted-2)}
.session-bar{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:12px;color:var(--muted)}
.session-bar b{color:#7df3c9;font-weight:600}
.session-bar .dot{width:6px;height:6px;border-radius:50%;background:var(--mint);box-shadow:0 0 8px var(--mint)}
.session-bar button{margin-left:auto}

.toast{
  position:fixed;left:50%;bottom:40px;transform:translate(-50%,20px);
  background:rgba(16,22,32,.96);border:1px solid var(--stroke-strong);
  color:#e9edf6;padding:11px 20px;border-radius:12px;font-size:13px;
  box-shadow:0 16px 40px rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:.22s;z-index:60;white-space:nowrap;
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.err{border-color:rgba(255,107,138,.4);color:#ffb3c2}

@media (max-width:1180px){
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-main{grid-template-columns:1fr}
  .entry-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .topbar{padding:12px 16px;gap:10px;flex-wrap:wrap}
  .brand p{display:none}
  .brand h1{font-size:16px}
  .today-chip{display:none}
  #userPhone{display:none}
  .user-chip{padding:4px 8px 4px 5px;gap:6px}
  .avatar{width:24px;height:24px;font-size:11px}
  main{padding:18px 16px 50px}
  .kpi-grid{grid-template-columns:1fr}
  .kpi-value{font-size:27px}
  .toolbar{padding-bottom:12px}
  .table-sum{width:100%;margin-left:0}
  .form-grid{grid-template-columns:1fr}
  .card{padding:18px 14px}
  .table-scroll{margin:0 -14px;padding:0 14px}
  .auth-card{padding:26px 20px}
  .code-row{grid-template-columns:minmax(0,1fr) 108px}
}

/* ---------- 品牌图标 ---------- */
.brand-logo{
  width:42px;height:42px;border-radius:12px;flex:none;display:block;object-fit:cover;
  background:#fff;box-shadow:0 6px 18px rgba(92,139,255,.26),0 0 0 1px rgba(255,255,255,.12);
}

/* ---------- 客户钱包 / 提现 ---------- */
.wallet-grid{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.wallet-label{font-size:11.5px;color:var(--muted-2);letter-spacing:.4px}
.wallet-big{
  font-size:36px;font-weight:700;letter-spacing:.4px;line-height:1.15;margin-top:8px;
  font-variant-numeric:tabular-nums;
  background:linear-gradient(135deg,#5cf4bd,#9cc0ff);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.wallet-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--stroke)}
.wallet-chips span{font-size:11px;color:var(--muted-2)}
.wallet-chips b{display:block;margin-top:4px;font-size:15.5px;font-weight:600;color:#dfe6f2;font-variant-numeric:tabular-nums}
.wallet-rule{
  display:inline-flex;align-items:center;height:18px;padding:0 7px;margin-left:5px;
  border:1px solid rgba(255,190,77,.32);border-radius:999px;
  background:rgba(255,190,77,.09);color:#ffd88f;font-size:10px;font-weight:700;letter-spacing:.5px;
}
.wallet-t7-note{font-size:11.5px;color:var(--muted-2);line-height:1.7;margin:6px 0 2px}
.wallet-tip{font-size:11.5px;color:var(--muted-2);line-height:1.7;margin-top:12px}
.payee-empty{font-size:12.5px;color:var(--muted-2);line-height:1.8;margin-bottom:14px}
.payee-line{display:flex;flex-direction:column;gap:9px;margin-bottom:14px}
.payee-line .row{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted)}
.payee-line .row b{color:#e3e9f4;font-weight:500;max-width:64%;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payee-reject{
  font-size:12px;color:#ff9bb0;background:rgba(255,107,138,.08);border:1px solid rgba(255,107,138,.25);
  border-radius:9px;padding:8px 11px;margin-bottom:12px;line-height:1.6;
}
.status-pill.pending{border-color:rgba(255,190,77,.35);color:#ffd18a;background:rgba(255,190,77,.1)}
.status-pill.rejected{border-color:rgba(255,107,138,.32);color:#ff9bb0;background:rgba(255,107,138,.09)}
.status-pill.muted{border-color:var(--stroke);color:var(--muted);background:rgba(255,255,255,.04)}

.wd-status{display:inline-block;font-size:11px;padding:3px 9px;border-radius:999px;border:1px solid;white-space:nowrap}
.wd-status.pending{color:#ffd18a;border-color:rgba(255,190,77,.35);background:rgba(255,190,77,.1)}
.wd-status.paid{color:#7df3c9;border-color:rgba(46,230,168,.3);background:rgba(46,230,168,.08)}
.wd-status.rejected{color:#ff9bb0;border-color:rgba(255,107,138,.3);background:rgba(255,107,138,.08)}

/* ---------- 弹窗 ---------- */
.modal-mask{
  position:fixed;inset:0;z-index:55;display:grid;place-items:center;padding:22px;overflow:auto;
  background:rgba(4,7,12,.74);backdrop-filter:blur(7px);
}
.modal{
  width:100%;max-width:540px;border-radius:22px;padding:24px 26px;
  background:linear-gradient(180deg,rgba(23,28,39,.98),rgba(15,19,27,.98));
  border:1px solid var(--stroke-strong);box-shadow:0 30px 80px rgba(0,0,0,.6);
}
.modal.wide{max-width:660px}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}
.modal-head h3{font-size:16.5px;font-weight:650;letter-spacing:.3px}
.modal-head p{font-size:11.5px;color:var(--muted-2);margin-top:4px;line-height:1.6}
.modal-close{
  width:32px;height:32px;flex:none;border-radius:9px;cursor:pointer;font-size:15px;
  border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:var(--muted);
}
.modal-close:hover{color:#e9edf6;border-color:var(--stroke-strong)}
.modal form{margin-top:16px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-row .form-item.full{grid-column:1/-1}
.form-tip{font-size:11.5px;color:var(--muted-2);line-height:1.7;margin-top:12px}
.form-tip b{color:#c9d3e4;font-weight:500}
.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.upload-tile{
  position:relative;display:grid;place-items:center;aspect-ratio:1.58/1;overflow:hidden;
  border:1px dashed rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.03);
  cursor:pointer;transition:.16s;
}
.upload-tile:hover{border-color:rgba(46,230,168,.4);background:rgba(46,230,168,.05)}
.upload-tile input{display:none}
.upload-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
.upload-tile.has img{display:block}
.upload-tile .ph{text-align:center;font-size:11.5px;color:var(--muted-2);line-height:1.8;padding:8px}
.upload-tile .ph strong{display:block;font-size:12.5px;color:#cfd8e8;font-weight:500;margin-bottom:2px}
.upload-tile.has .ph{display:none}
.upload-tile .replace{
  position:absolute;left:8px;bottom:8px;font-size:10.5px;padding:2px 8px;border-radius:999px;
  background:rgba(6,10,16,.8);color:#dfe6f2;display:none;
}
.upload-tile.has .replace{display:block}
.upload-tile .del{
  position:absolute;right:6px;top:6px;width:24px;height:24px;border-radius:8px;display:none;
  border:1px solid rgba(255,107,138,.4);background:rgba(10,14,20,.82);color:#ff9bb0;
  font-size:12px;cursor:pointer;
}
.upload-tile.has .del{display:block}

.wd-available{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  padding:14px 16px;border-radius:12px;margin:14px 0 4px;
  background:rgba(46,230,168,.07);border:1px solid rgba(46,230,168,.2);
}
.wd-available span{font-size:12px;color:var(--muted)}
.wd-available b{font-size:24px;color:#7df3c9;font-variant-numeric:tabular-nums}
.wd-t7-note{font-size:11.5px;color:var(--muted-2);line-height:1.7;margin-top:8px}
.amount-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.amount-row .input{font-size:18px;font-weight:600;letter-spacing:.5px}
.wd-payee{font-size:12px;color:var(--muted-2);margin-top:12px;line-height:1.7}

/* ---------- 后台提现 ---------- */
.tab-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;line-height:1;padding:0 5px;margin-left:6px;vertical-align:middle;
  border-radius:999px;background:#f5324d;color:#fff;font-size:10.5px;font-weight:700;text-align:center;
  font-variant-numeric:tabular-nums;letter-spacing:0;
  box-shadow:0 0 0 1px rgba(255,82,110,.45),0 2px 8px rgba(245,50,77,.45);
}
.tab.active .tab-badge{background:#f5324d;color:#fff;box-shadow:0 0 0 1px rgba(255,82,110,.55),0 2px 8px rgba(245,50,77,.5)}
.preset .tab-badge{min-width:16px;height:16px;padding:0 4px;margin-left:5px;font-size:10px}
.preset.active .tab-badge{background:#f5324d;color:#fff}
.withdraw-grid{display:grid;gap:16px;margin-top:16px}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;font-size:12px;color:var(--muted-2)}
.detail-grid b{display:block;margin-top:3px;font-size:12.5px;color:#e3e9f4;font-weight:500;word-break:break-all}
.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.photo-box{
  aspect-ratio:1.58/1;border-radius:12px;overflow:hidden;border:1px solid var(--stroke);
  background:#0c1017;display:grid;place-items:center;position:relative;
}
.photo-box img{width:100%;height:100%;object-fit:cover;display:none}
.photo-box.has img{display:block}
.photo-box span{font-size:11.5px;color:var(--muted-2)}
.photo-box.has span{display:none}
.modal-actions{display:flex;gap:10px;margin-top:18px;align-items:center;flex-wrap:wrap}
.modal-actions .primary-btn,.modal-actions .ghost-btn{height:40px}
.ghost-btn.danger{border-color:rgba(255,107,138,.28);background:rgba(255,107,138,.07);color:#ff9bb0}
.ghost-btn.danger:hover{background:rgba(255,107,138,.13);border-color:rgba(255,107,138,.4);color:#ffb3c2}

@media (max-width:1180px){
  .wallet-grid{grid-template-columns:1fr}
  .front-tabs{order:3;width:100%;margin-left:0;justify-content:flex-start}
}
@media (max-width:720px){
  .brand-logo{width:36px;height:36px;border-radius:10px}
  .front-tabs{padding:3px;gap:2px}
  .front-tabs .tab{padding:8px 10px;font-size:12.5px}
  .modal{padding:20px 16px}
  .form-row{grid-template-columns:1fr}
  .upload-grid{grid-template-columns:1fr}
  .wallet-big{font-size:30px}
  .wallet-chips{grid-template-columns:1fr 1fr}
  .detail-grid{grid-template-columns:1fr}
  .photo-grid{grid-template-columns:1fr}
}

/* ---------- 我的漫剧 ---------- */
.drama-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.drama-item{
  display:flex;gap:12px;padding:12px;border-radius:14px;border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);min-width:0;
}
.drama-cover{
  width:84px;height:112px;flex:none;border-radius:10px;overflow:hidden;background:#10151e;
  border:1px solid var(--stroke);display:grid;place-items:center;color:var(--muted-2);font-size:11px;
}
.drama-cover img{width:100%;height:100%;object-fit:cover}
.drama-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px}
.drama-title{font-size:13.5px;font-weight:600;display:flex;align-items:center;gap:6px;min-width:0}
.drama-title span.t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drama-title .status-pill{flex:none}
.drama-meta{font-size:11.5px;color:var(--muted-2);line-height:1.6}
.drama-err{font-size:11.5px;color:#ff9bb0;line-height:1.5}
.drama-grow{flex:1}
.drama-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.drama-foot b{font-size:12.5px;color:#7df3c9;font-variant-numeric:tabular-nums}
.drama-actions{display:flex;gap:5px;flex-wrap:wrap}
.drama-empty{grid-column:1/-1;padding:28px 0;text-align:center;color:var(--muted-2);font-size:13px}
.drama-storage{font-size:11.5px;color:var(--muted-2);margin-top:12px}

.modal.scroll{max-height:90vh;overflow-y:auto}
.notice-modal{border:1px solid rgba(46,230,168,.23);box-shadow:0 28px 80px rgba(0,0,0,.55),0 0 0 1px rgba(46,230,168,.05) inset}
.notice-kicker{display:inline-block;margin-bottom:7px;padding:2px 8px;border-radius:999px;font-size:10.5px;letter-spacing:.6px;color:#7df3c9;background:rgba(46,230,168,.1);border:1px solid rgba(46,230,168,.22)}
.notice-content{white-space:pre-line;font-size:12.5px!important;line-height:1.85!important;color:var(--muted)!important;margin-top:8px!important}
.notice-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}
.notice-join{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 20px;border-radius:11px;background:linear-gradient(135deg,#26e0a0,#14c98e);color:#04120d;font-size:13px;font-weight:700;text-decoration:none;box-shadow:0 8px 22px rgba(24,213,148,.25)}
.notice-join:hover{filter:brightness(1.06)}
.form-section-title{
  font-size:12.5px;font-weight:600;color:#cfd8e8;margin:20px 0 12px;padding-top:16px;
  border-top:1px solid var(--stroke);letter-spacing:.4px;
}
.form-section-title:first-of-type{margin-top:12px;padding-top:0;border-top:0}
.radio-row{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);align-items:center;min-height:42px}
.radio-row label{display:flex;align-items:center;gap:6px;cursor:pointer}
.radio-row input{accent-color:#2ee6a8}
.check-row{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);min-height:42px;align-items:center}
.check-row label{display:flex;align-items:center;gap:6px;cursor:pointer}
.check-row input{accent-color:#2ee6a8}
.check-line{display:flex;align-items:center;gap:8px;cursor:pointer;color:#dfe6f2;font-size:13px}
.check-line input{accent-color:#2ee6a8}
.fs-last{margin-top:18px;padding-top:14px;border-top:1px solid var(--stroke);font-size:11.5px;color:var(--muted-2);line-height:1.8}
.people-list{display:flex;flex-direction:column;gap:8px}
.person-row{display:grid;grid-template-columns:minmax(0,1fr) 92px 32px;gap:8px;align-items:center}
.person-row .mini{
  height:32px;padding:0 6px;border-radius:8px;border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);color:var(--muted);font-size:12px;cursor:pointer;font-family:inherit;
}
.person-row select{height:32px;border-radius:8px;border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:#dfe6f2;font-family:inherit;font-size:12px;padding:0 6px;color-scheme:dark}
.person-row select option{background:#121722}
.file-chip{
  display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:9px;margin-top:8px;
  background:rgba(255,255,255,.04);border:1px solid var(--stroke);font-size:12px;color:var(--muted);
}
.file-chip span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-chip b{color:#dfe6f2;font-weight:500}
.file-chip button{border:0;background:transparent;color:#ff9bb0;cursor:pointer;font-size:12px}
.cr-tiles{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.cr-tile{
  position:relative;width:92px;aspect-ratio:1/1;border-radius:9px;overflow:hidden;
  border:1px solid var(--stroke);background:#0f141d;
}
.cr-tile img{width:100%;height:100%;object-fit:cover}
.cr-tile button{
  position:absolute;right:3px;top:3px;width:20px;height:20px;border-radius:6px;border:0;
  background:rgba(8,12,18,.85);color:#ff9bb0;cursor:pointer;font-size:11px;
}
.upload-progress{height:4px;border-radius:99px;overflow:hidden;background:rgba(255,255,255,.08);margin-top:8px}
.upload-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#2ee6a8,#5c8bff);transition:width .2s}
.upload-hint{font-size:11.5px;color:var(--muted-2);margin-top:8px;line-height:1.7}
.upload-status{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:210px;margin-left:auto}
.upload-status .upload-hint{margin:0;text-align:right}
.upload-status .upload-progress{width:100%;height:8px;margin:0}
.upload-status.full{align-items:stretch;min-width:0;margin:12px 0 0}
.upload-status.full .upload-hint{text-align:left}
.field-upload{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:11.5px;color:#7df3c9}
.field-upload .upload-progress{flex:1;margin-top:0}
.field-upload.err{color:#ff9bb0}
.ep-sync-box{margin-top:12px;padding:12px 14px;border:1px solid rgba(46,230,168,.24);border-radius:12px;background:rgba(46,230,168,.055)}
.ep-sync-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12.5px;color:#dfe6f2}
.ep-sync-head b{color:#7df3c9;font-weight:600;font-variant-numeric:tabular-nums}
.ep-sync-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;font-size:11px;color:var(--muted-2);line-height:1.6}
.ep-sync-foot .mini-btn{flex:none}
.rights-guide{margin-top:12px;padding:12px 14px;border:1px solid var(--stroke);border-radius:10px;background:rgba(255,255,255,.018);font-size:11.5px;line-height:1.85;color:var(--muted-2)}
.rights-guide p{margin:0 0 8px;color:var(--muted)}
.rights-guide p:first-child{color:#7df3c9;font-weight:600}
.rights-guide ol{margin:0;padding-left:18px}
.rights-guide li{margin-bottom:6px}
.rights-guide li:last-child{margin-bottom:0}

.promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.promo-card{border:1px solid var(--stroke);border-radius:12px;background:rgba(255,255,255,.03);padding:12px;text-align:center}
.promo-card-head{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12.5px;margin-bottom:10px}
.promo-card-head b{color:#7df3c9;font-weight:600}
.promo-card-head span{color:var(--muted-2)}
.promo-qr{
  width:100%;aspect-ratio:1/1;max-height:220px;border-radius:10px;overflow:hidden;
  background:#0f141d;border:1px solid var(--stroke);display:grid;place-items:center;
  font-size:11.5px;color:var(--muted-2);
}
.promo-qr img{width:100%;height:100%;object-fit:contain;background:#fff}
.promo-dl{width:100%;margin-top:10px;height:32px;font-size:12px}
.promo-empty{grid-column:1/-1;text-align:center;color:var(--muted-2);font-size:12.5px;padding:20px 0}
.promo-qr img{cursor:zoom-in}
.promo-lightbox{
  position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px;
  background:rgba(3,5,9,.94);backdrop-filter:blur(3px);
}
.lightbox-body{max-width:min(760px,92vw);text-align:center}
.lightbox-body img{
  display:block;max-width:100%;max-height:80vh;margin:0 auto;object-fit:contain;
  background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.65);
}
.lightbox-cap{font-size:12.5px;color:var(--muted-2);margin-top:14px}
.lightbox-close{
  position:fixed;right:24px;top:22px;width:38px;height:38px;border-radius:10px;cursor:pointer;
  border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#e9edf6;font-size:16px;
}
.lightbox-close:hover{border-color:rgba(46,230,168,.45);color:#7df3c9}

/* ---------- 更新剧集提示 ---------- */
.ep-update-summary{
  display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;
  margin-top:14px;padding:12px 14px;border-radius:10px;
  border:1px solid var(--stroke);background:rgba(255,255,255,.03);
}
.ep-update-range{font-size:13.5px;color:#dfe6f2;font-variant-numeric:tabular-nums}
.ep-update-next{font-size:12.5px;color:#ff9bb0;font-variant-numeric:tabular-nums;text-align:right}
.ep-update-note{flex-basis:100%;font-size:11.5px;color:var(--muted-2);line-height:1.6}

/* ---------- 剧集上传 / 列表 ---------- */
.ep-list{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow-y:auto;margin-top:10px}
.ep-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.03);border:1px solid var(--stroke);font-size:12px}
.ep-row .no{color:#7df3c9;font-variant-numeric:tabular-nums;flex:none;min-width:48px;white-space:nowrap}
.ep-row .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dfe6f2}
.ep-row .size{color:var(--muted-2);flex:none;font-variant-numeric:tabular-nums}
.ep-row button{border:1px solid var(--stroke);background:transparent;color:var(--muted);border-radius:7px;padding:3px 8px;font-size:11px;cursor:pointer;font-family:inherit}
.ep-row button:hover{color:#7df3c9;border-color:rgba(46,230,168,.3)}
.ep-row button[data-ep-remove]:hover{color:#ff9bb0;border-color:rgba(255,120,150,.4)}
.ep-row .drag{flex:none;color:var(--muted-2);cursor:grab;font-size:14px;letter-spacing:1px;user-select:none;padding:0 2px}
.ep-row.sortable{cursor:grab}
.ep-row.sortable:active{cursor:grabbing}
.ep-row.dragging{opacity:.45}
.ep-row.drag-over{border-color:rgba(46,230,168,.55);background:rgba(46,230,168,.08)}
.ep-name-rule{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:var(--muted);font-weight:400}
.upload-tile.dragover{border-color:rgba(46,230,168,.55);background:rgba(46,230,168,.06)}
.ep-empty{padding:16px 0;text-align:center;color:var(--muted-2);font-size:12px}

/* ---------- 后台漫剧管理 ---------- */
.admin-drama-cover{width:36px;height:48px;border-radius:6px;object-fit:cover;background:#10151e;border:1px solid var(--stroke)}
.drama-detail-head{display:flex;gap:16px;align-items:flex-start}
.pd-cover{width:96px;height:128px;border-radius:10px;overflow:hidden;border:1px solid var(--stroke);background:#10151e;flex:none}
.pd-cover img{width:100%;height:100%;object-fit:cover}
.drama-detail-title{font-size:15px;font-weight:650;margin-bottom:6px}
.drama-detail-sub{font-size:12px;color:var(--muted-2);line-height:1.8}
.dl-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.dl-row{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);padding:6px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.dl-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dl-row .dm-pick{width:14px;height:14px;flex:none;accent-color:#2ee6a8;cursor:pointer}
.dm-batch-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding:9px 12px;border:1px solid var(--stroke);border-radius:10px;background:rgba(255,255,255,.025);font-size:12px;color:var(--muted)}
.dm-batch-bar>div{display:flex;gap:8px}
.dm-batch-bar .mini-btn:disabled{opacity:.4;cursor:not-allowed}
.publish-review-box{margin-top:10px;padding:12px 14px;border:1px solid var(--stroke);border-radius:10px;background:rgba(255,255,255,.025)}
.publish-review-box.rejected{border-color:rgba(255,107,138,.25)}
.publish-review-head{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#e3e9f4;font-weight:600}
.publish-review-head .status-pill{margin-left:2px}
.publish-review-box .detail-grid{margin-top:10px}
.publish-review-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.publish-review-actions .primary-btn,.publish-review-actions .ghost-btn{height:36px}
.publish-review-current{margin-top:10px;font-size:11.5px;color:var(--muted);line-height:1.6}
.drama-note{font-size:11.5px;color:#ffd18a;line-height:1.5}
.dl-row button{border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:#7df3c9;border-radius:7px;padding:3px 9px;font-size:11.5px;cursor:pointer;font-family:inherit}
.dl-row button:hover{border-color:rgba(46,230,168,.35)}

.promo-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.promo-admin-card{padding:10px;border-radius:10px;border:1px solid var(--stroke);background:rgba(255,255,255,.03)}
.promo-admin-head{display:flex;align-items:center;gap:6px;font-size:12px;margin-bottom:8px}
.promo-admin-head b{color:#7df3c9;font-weight:600}
.promo-admin-head span{color:var(--muted-2)}
.promo-thumb{
  width:100%;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:#0f141d;
  border:1px solid var(--stroke);display:grid;place-items:center;font-size:11px;color:var(--muted-2);
}
.promo-thumb img{width:100%;height:100%;object-fit:contain;background:#fff}
.promo-actions{display:flex;gap:6px;margin-top:8px}
.promo-actions .ghost-btn{flex:1;height:30px;font-size:11.5px;padding:0 6px}

@media (max-width:1180px){
  .drama-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .promo-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .drama-grid{grid-template-columns:1fr}
  .promo-admin-grid{grid-template-columns:1fr 1fr}
  .promo-grid{grid-template-columns:1fr}
  .drama-cover{width:72px;height:96px}
}

/* 发布配置 */
.pub-section-title{display:flex;align-items:center;gap:8px;margin:18px 0 8px;font-size:13px;font-weight:700;color:#e7f3ed}
.pub-section-title::before{content:"";width:4px;height:14px;border-radius:2px;background:var(--green)}
.pub-type-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:14px}
.pub-type{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 10px;border:1px solid var(--stroke);border-radius:10px;background:rgba(255,255,255,.025);font-size:12px;color:var(--muted);cursor:pointer;transition:.18s}
.pub-type:hover{border-color:rgba(46,230,168,.32)}
.pub-type:has(input:checked){border-color:rgba(46,230,168,.65);background:rgba(46,230,168,.08);color:#e9fff7}
.pub-type input{accent-color:var(--green);flex:none}
.pub-type span{line-height:1.4}
.pub-rec{position:absolute;top:-7px;right:7px;padding:1px 6px;border-radius:999px;background:#ff5a66;color:#fff;font-size:10px;font-weight:600}
.pub-summary{padding:14px 16px;border-radius:12px;border:1px solid rgba(46,230,168,.16);background:linear-gradient(180deg,rgba(46,230,168,.055),rgba(255,255,255,.02));font-size:12.5px;color:var(--muted)}
.pub-summary b{color:#e9fff7;font-size:13.5px;margin-right:8px}
.pub-summary span{line-height:1.7}
.pub-pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px;color:var(--muted-2)}
.pub-pills em{font-style:normal;color:#77cfff;background:rgba(90,180,255,.08);border:1px solid rgba(90,180,255,.15);padding:2px 6px;border-radius:5px}
.pub-sec-pill{display:block;width:max-content;max-width:100%;margin-top:10px;padding:4px 9px;border-radius:6px;background:rgba(255,255,255,.92);color:#27313a;font-size:11.5px;font-weight:600}
.pub-free-card{margin-top:14px;padding:14px 16px;border-radius:12px;border:1px solid var(--stroke);background:rgba(255,255,255,.025);display:grid;gap:12px}
.pub-free-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.pub-free-line label em,.pub-watch-copy em{color:#ff8b9b;font-style:normal}
.pub-stepper{display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--stroke);border-radius:8px;background:rgba(0,0,0,.18);color:var(--muted-2)}
.pub-stepper button{width:24px;height:24px;border-radius:50%;border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:#e8f7ef;font-size:15px;line-height:1;cursor:pointer}
.pub-stepper button:hover{border-color:rgba(46,230,168,.45);color:#7df3c9}
.pub-stepper input{width:42px;height:24px;border:0;background:transparent;color:#e8f7ef;text-align:center;font-size:14px;font-weight:700;outline:none}
.pub-free-hint{padding:3px 7px;border-radius:5px;background:rgba(90,160,255,.07);color:#80c5ff;font-size:11.5px}
.pub-price-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.pub-price-line.hidden{display:none}
.pub-price-line input{width:86px;height:34px;padding:0 10px;border:1px solid var(--stroke);border-radius:8px;background:rgba(0,0,0,.2);color:#e8f7ef;font-size:14px;font-weight:700;outline:none}
.pub-price-line input:focus{border-color:rgba(46,230,168,.5)}
.pub-coin{color:var(--muted-2);font-size:11.5px}
.pub-all-ad{margin-top:14px;padding:16px 18px;border-radius:12px;border:1px solid rgba(90,170,255,.16);background:linear-gradient(180deg,rgba(90,170,255,.07),rgba(255,255,255,.02));display:flex;gap:14px;align-items:flex-start}
.pub-all-ad.hidden{display:none}
.pub-all-ad-icon{width:42px;height:42px;border-radius:50%;background:#2b8cff;color:#fff;display:grid;place-items:center;font-size:16px;flex:none;box-shadow:0 6px 18px rgba(43,140,255,.25)}
.pub-all-ad b{display:block;color:#e9f3ff;font-size:14px;margin-bottom:4px}
.pub-all-ad span{font-size:11.5px;line-height:1.65;color:var(--muted-2)}
.pub-ad-box{margin-top:14px;padding:14px 16px;border-radius:12px;border:1px solid var(--stroke);background:rgba(255,255,255,.022)}
.pub-ad-box.hidden{display:none}
.pub-ad-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px;font-size:13px;color:#e9fff7}
.pub-ad-head span{padding:2px 7px;border-radius:5px;background:rgba(90,160,255,.08);border:1px solid rgba(90,160,255,.16);color:#80c5ff;font-size:10.5px}
.pub-ad-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px 12px;border-radius:9px;background:rgba(255,255,255,.045);border:1px solid var(--stroke);font-size:11.5px;color:var(--muted)}
.pub-ad-range-title{font-weight:700;color:#e8f7ef;margin-right:2px}
.pub-ad-tools input{width:50px;height:28px;padding:0 6px;border:1px solid var(--stroke);border-radius:6px;background:rgba(0,0,0,.2);color:#e8f7ef;text-align:center;font-size:12px;outline:none}
.pub-ad-tools input:focus{border-color:rgba(46,230,168,.45)}
.pub-ad-set{border:1px solid transparent;border-radius:7px;padding:6px 9px;font-size:11px;font-family:inherit;cursor:pointer;font-weight:600}
.pub-ad-set.ad{background:rgba(60,145,255,.1);color:#78bdff;border-color:rgba(60,145,255,.2)}
.pub-ad-set.paid{background:rgba(255,145,55,.1);color:#ffb47c;border-color:rgba(255,145,55,.2)}
.pub-ad-set.paid-ad{background:rgba(46,230,168,.09);color:#75efc7;border-color:rgba(46,230,168,.2)}
.pub-ad-set:hover{filter:brightness(1.16)}
.pub-ad-legend{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto;font-size:10.5px;color:var(--muted-2)}
.pub-ad-legend span{display:flex;align-items:center;gap:4px;white-space:nowrap}
.pub-ad-legend i{width:8px;height:8px;border-radius:2px;display:inline-block}
.pub-ad-legend i.free{background:#6b7480}
.pub-ad-legend i.ad{background:#2b8cff}
.pub-ad-legend i.paid{background:#ff8a3d}
.pub-ad-legend i.paid-ad{background:#2ee6a8}
.pub-ad-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:13px 9px;margin:16px 2px 8px}
.pub-ad-ep{position:relative;min-height:52px;border:1px solid rgba(255,138,61,.45);border-radius:6px;background:rgba(255,138,61,.06);color:#f6e8dc;display:grid;place-items:center;font-size:13px;cursor:pointer;transition:.16s}
.pub-ad-ep:hover{transform:translateY(-1px);filter:brightness(1.12)}
.pub-ad-ep.free{border-color:rgba(150,160,175,.4);background:rgba(150,160,175,.06);color:#aab3c0;cursor:default;transform:none}
.pub-ad-ep.ad{border-color:rgba(60,145,255,.55);background:rgba(60,145,255,.09);color:#d9ecff}
.pub-ad-ep.paid-ad{border-color:rgba(46,230,168,.55);background:rgba(46,230,168,.08);color:#d8fff2}
.pub-ad-badge{position:absolute;top:-8px;left:50%;transform:translateX(-50%);padding:1px 6px;border-radius:5px;font-size:9.5px;font-weight:700;white-space:nowrap;border:1px solid transparent}
.pub-ad-badge.free{background:#6b7480;color:#fff;border-color:#6b7480}
.pub-ad-badge.ad{background:#2b8cff;color:#fff;border-color:#2b8cff}
.pub-ad-badge.paid{background:#ff8a3d;color:#fff;border-color:#ff8a3d}
.pub-ad-badge.paid-ad{background:#2ee6a8;color:#0b241c;border-color:#2ee6a8}
.pub-ad-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;font-size:11px;color:var(--muted-2)}
.pub-ad-pager{display:flex;align-items:center;gap:6px}
.pub-ad-pager button{width:28px;height:28px;border-radius:7px;border:1px solid var(--stroke);background:rgba(255,255,255,.05);color:#dce8e2;font-size:16px;line-height:1;cursor:pointer}
.pub-ad-pager button:disabled{opacity:.35;cursor:default}
.pub-ad-pager span{min-width:28px;height:28px;border-radius:7px;background:#2b8cff;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700}
.pub-ad-empty{grid-column:1/-1;padding:18px;text-align:center;color:var(--muted-2);font-size:11.5px;border:1px dashed var(--stroke);border-radius:8px}
.pub-tier-box{margin-top:14px;padding:14px 16px;border-radius:12px;border:1px solid var(--stroke);background:rgba(255,255,255,.018)}
.pub-tier-box.hidden{display:none}
.pub-tier-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px;font-size:13px;color:#e9fff7}
.pub-tier-head span{color:#ffbd75;background:rgba(255,160,60,.08);border:1px solid rgba(255,160,60,.15);padding:2px 7px;border-radius:5px;font-size:10.5px}
.pub-tier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pub-tier-card{padding:12px;border-radius:10px;border:1px solid var(--stroke);background:rgba(255,255,255,.03);display:flex;align-items:center;justify-content:space-between;gap:8px}
.pub-tier-title{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:600;color:#e8f7ef}
.pub-tier-title span{font-size:10.5px;font-weight:400;color:var(--muted-2);line-height:1.4}
.pub-select{height:34px;min-width:82px;border:1px solid var(--stroke);border-radius:8px;background:#111925;color:#dbe9ff;padding:0 6px;font-family:inherit;font-size:12px;outline:none}
.pub-watch{margin-top:14px;padding:14px 16px;border-radius:12px;border:1px solid var(--stroke);background:rgba(255,255,255,.025);display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.pub-watch-copy{display:flex;flex-direction:column;gap:3px;font-size:13px;color:#e8f7ef;min-width:160px;flex:1}
.pub-watch-copy span{font-size:11px;color:var(--muted-2);font-weight:400}
.pub-watch-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.pub-watch-controls .pub-stepper{padding:4px 6px}
.pub-link{border:1px solid rgba(90,180,255,.16);background:rgba(90,180,255,.06);color:#80c5ff;border-radius:7px;padding:6px 10px;font-size:11.5px;cursor:pointer;font-family:inherit}
.pub-link:hover{border-color:rgba(90,180,255,.35)}
.pub-reset-all{white-space:nowrap}
.pub-per-ep{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;max-height:220px;overflow:auto;padding-right:4px}
.pub-per-ep.hidden{display:none}
.pub-per-ep-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid var(--stroke);border-radius:8px;background:rgba(0,0,0,.16);font-size:12px;color:var(--muted)}
.pub-per-ep-row input{width:52px;height:28px;border:1px solid var(--stroke);border-radius:6px;background:rgba(0,0,0,.2);color:#e8f7ef;text-align:center;font-size:12px;outline:none}
.pub-per-ep-empty{grid-column:1/-1;color:var(--muted-2);font-size:11.5px;padding:8px 0}
.pub-off{opacity:.6}

@media (max-width:760px){
  .pub-type-grid{grid-template-columns:1fr 1fr}
  .pub-tier-grid{grid-template-columns:1fr 1fr}
  .pub-per-ep{grid-template-columns:1fr 1fr}
  .pub-ad-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .pub-ad-legend{margin-left:0;width:100%}
}
@media (max-width:520px){
  .pub-type-grid,.pub-tier-grid,.pub-per-ep{grid-template-columns:1fr}
  .pub-ad-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pub-free-line,.pub-watch{align-items:flex-start}
}



/* ---------- 后台出单：作品搜索与客户关联 ---------- */
.work-picker{position:relative}
.work-picker input[type=search]{width:100%}
.work-picker-panel{
  position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:45;
  max-height:300px;overflow-y:auto;padding:6px;
  background:#0d121b;border:1px solid var(--stroke-strong);border-radius:12px;
  box-shadow:0 18px 40px rgba(0,0,0,.55);
}
.work-option{
  display:block;width:100%;text-align:left;border:0;background:transparent;color:#e9edf6;
  padding:9px 11px;border-radius:9px;cursor:pointer;font-family:inherit;
}
.work-option:hover,.work-option:focus{background:rgba(46,230,168,.10);outline:none}
.work-option-title{display:block;font-size:13px;font-weight:600;line-height:1.35}
.work-option-meta{display:block;color:var(--muted-2);font-size:11.5px;margin-top:4px}
.work-picker-empty{padding:14px 12px;color:var(--muted-2);font-size:12.5px;line-height:1.6}
.work-picked{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin-top:8px;padding:8px 11px;border-radius:9px;font-size:12px;
  border:1px solid rgba(46,230,168,.22);background:rgba(46,230,168,.07);color:var(--muted);
}
.work-picked b{color:var(--mint);font-weight:600}
.work-picked span{color:var(--muted-2);font-variant-numeric:tabular-nums}
.work-picked.empty{border-color:var(--stroke);background:rgba(255,255,255,.03);color:var(--muted-2)}

/* 飞书收集表入口 */
.feishu-form-tip{
  display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;
  padding:12px 14px;margin-bottom:12px;border-radius:12px;
  border:1px solid rgba(46,230,168,.28);background:rgba(46,230,168,.07);
}
.feishu-form-tip-text{display:flex;flex-direction:column;gap:3px;font-size:12.5px;line-height:1.65;color:var(--muted)}
.feishu-form-tip-text b{color:var(--mint);font-size:13px}
.feishu-form-tip .ghost-btn{flex:0 0 auto;height:34px;padding:0 14px;font-size:12.5px}

/* 第2步飞书提交 */
.feishu-upload-box{display:flex;flex-direction:column;gap:10px}
.feishu-upload-box.hidden{display:none}
.feishu-ep-hint{font-size:12px;line-height:1.7;color:var(--muted-2);padding:0 2px}
.feishu-check{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);padding:10px 12px;border:1px solid var(--stroke);border-radius:9px;background:rgba(255,255,255,.03);cursor:pointer}
.feishu-check input{width:15px;height:15px;accent-color:#2ee6a8;cursor:pointer}



/* 个人信息 */
.avatar{position:relative;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.user-chip:focus-visible{outline:2px solid rgba(46,230,168,.45);outline-offset:2px}
.profile-top{display:flex;gap:16px;align-items:flex-start;margin-top:4px}
.profile-avatar-tile{
  width:94px;height:94px;aspect-ratio:auto;border-radius:50%;flex:none;
}
.profile-avatar-tile .ph{font-size:10.5px;line-height:1.6}
.profile-avatar-tile .replace{left:50%;transform:translateX(-50%);white-space:nowrap}
.profile-fields{flex:1;display:grid;gap:12px;min-width:0}
.profile-payee-btn{width:100%;height:36px;margin-top:8px}
@media (max-width:640px){
  .profile-top{flex-direction:column;align-items:center}
  .profile-fields{width:100%}
}

/* 后台合并审核区 */
.merged-review-section{margin-top:22px;padding-top:20px;border-top:1px solid var(--stroke)}

/* 作品行内合并飞书提交信息 */
.feishu-cell{min-width:180px;max-width:240px}
.feishu-cell b{display:block;font-size:12px;color:#dbe6f5;font-weight:600}
.feishu-cell .sub{max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 操作列固定在右侧，横向滚动时仍可直接审核 */
.drama-table th.actions-col,
.drama-table td.actions-cell{
  position:sticky;right:0;z-index:3;background:#0d131c;
  box-shadow:-12px 0 18px rgba(0,0,0,.38);
}
.drama-table th.actions-col{z-index:4}


.submit-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  border: 1px solid transparent;
}
.submit-type.new {
  color: #9ff0ca;
  background: rgba(44, 211, 145, .12);
  border-color: rgba(44, 211, 145, .28);
}
.submit-type.update {
  color: #ffd48a;
  background: rgba(255, 176, 58, .12);
  border-color: rgba(255, 176, 58, .28);
}
.submit-type.config {
  color: #b9c8ff;
  background: rgba(105, 135, 255, .12);
  border-color: rgba(105, 135, 255, .28);
}


/* 后台作品表列较多，压缩内边距，避免 1050 宽度下出现横向滚动 */
.drama-table th, .drama-table td { padding-left: 7px; padding-right: 7px; }
.drama-table .feishu-cell { min-width: 132px; max-width: 170px; }
.drama-table .feishu-cell .sub { max-width: 160px; }
.drama-table .actions-cell .mini-btn { padding: 0 8px; }
.drama-table .actions-cell .row-actions { gap: 4px; }


.drama-table { font-size: 12px; }
.drama-table th { font-size: 11px; letter-spacing: .3px; }
.drama-table .status-cell { max-width: 112px; }
.drama-table .status-cell .sub {
  display: block; max-width: 108px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drama-table td.date { max-width: 98px; white-space: normal; line-height: 1.4; }
.drama-table .actions-cell .mini-btn { font-size: 11px; padding: 0 6px; }


/* ---------- 客户团队板块 ---------- */
.team-grid { align-items: start; }
.team-card { position: relative; overflow: hidden; }
.team-card::after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 210px; height: 210px;
  border-radius: 50%; background: radial-gradient(circle, rgba(46,230,168,.13), transparent 68%);
  pointer-events: none;
}
.team-code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 18px 0 14px; padding: 16px 18px; border-radius: 16px;
  border: 1px dashed rgba(46,230,168,.35); background: rgba(46,230,168,.055);
}
.team-level-box {
  margin: 0 0 16px; padding: 15px 17px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(135deg, rgba(46,230,168,.07), rgba(255,255,255,.02) 62%);
}
.team-level-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.team-level-label { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .4px; }
.team-level-name { margin-top: 4px; font-size: 19px; font-weight: 750; color: var(--text); }
.team-level-rate { flex: none; font-size: 22px; font-weight: 750; color: var(--mint); font-variant-numeric: tabular-nums; }
.team-level-next { margin-top: 10px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.team-level-bars { display: grid; gap: 9px; margin-top: 12px; }
.team-progress-item { display: grid; gap: 5px; }
.team-progress-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.team-progress-line b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.team-progress-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.team-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2ee6a8, #7df3c9); }
.status-pill.level-v1 { border-color: rgba(46,230,168,.4); color: #7df3c9; background: rgba(46,230,168,.1); }
.status-pill.level-v2 { border-color: rgba(255,190,77,.4); color: #ffd18a; background: rgba(255,190,77,.1); }
.status-pill.level-v3 { border-color: rgba(167,139,250,.45); color: #c9b8ff; background: rgba(167,139,250,.12); }
.team-code-main { min-width: 0; }
.team-code-label { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.team-code {
  margin-top: 2px; font-size: 26px; line-height: 1.25; font-weight: 800;
  letter-spacing: 3px; color: #8df7cf; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.team-code-hint { margin-top: 6px; font-size: 11.5px; color: var(--muted-2); line-height: 1.55; }
.team-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-top: 4px;
}
.team-kpis > div {
  padding: 12px 13px; border-radius: 13px; border: 1px solid var(--stroke);
  background: rgba(255,255,255,.025);
}
.team-kpis span { display: block; font-size: 11.5px; color: var(--muted); }
.team-kpis b { display: block; margin-top: 5px; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.team-kpis b#teamCommission { color: var(--mint); }
.team-upline {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 13px;
  font-size: 12px; line-height: 1.65; color: var(--muted);
}
.team-upline b { color: var(--text); }
.team-upline-dot {
  flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 10px rgba(46,230,168,.6);
}
.team-rule-list { display: grid; gap: 11px; margin: 16px 0 18px; }
.team-rule-list > div {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 12px; border-radius: 12px; border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}
.team-rule-list b {
  flex: none; font-size: 11px; color: var(--mint); letter-spacing: .6px;
  padding: 1px 6px; border: 1px solid rgba(46,230,168,.28); border-radius: 999px;
}
.team-rule-list span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.team-rule-card .primary-btn { width: 100%; }
.team-table-card .empty-cell { color: var(--muted); text-align: center; padding: 30px 16px; }
.team-reward { color: var(--mint); font-weight: 700; }
.team-table-card tbody td:first-child { color: var(--text); }

.admin-invite-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 15px 18px; border-radius: 14px;
  border: 1px dashed rgba(46,230,168,.32); background: rgba(46,230,168,.05);
  max-width: 760px;
}
.admin-invite-box .code { font-size: 24px; font-weight: 800; letter-spacing: 2px; color: #8df7cf; margin-top: 2px; }
.admin-team-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 13px; font-size: 12px; color: var(--muted); }
.admin-team-stats b { color: var(--text); }
.user-role-cell { white-space: nowrap; }
.user-drama-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: nowrap; font-size: 12px; color: var(--muted); }
.user-drama-review { color: #ffd38a; }
.drama-toggle { height: 22px; padding: 0 8px; font-size: 11px; }
.user-drama-row td { padding: 0 !important; background: rgba(46,230,168,.035); border-top: 1px solid rgba(46,230,168,.15); }
.user-drama-detail { padding: 12px 16px 14px; }
.user-drama-detail-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.user-drama-detail-head b { color: var(--text); }
.user-drama-detail-head span { color: var(--muted-2); }
.user-drama-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 9px; }
.user-drama-card { padding: 9px 11px; border: 1px solid var(--stroke); border-radius: 10px; background: rgba(255,255,255,.025); }
.user-drama-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.user-drama-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12.5px; }
.user-drama-head .status-pill { flex: none; height: 19px; padding: 0 7px; font-size: 10.5px; }
.user-drama-sub { margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.user-drama-pending { margin-top: 3px; color: #ffd38a; font-size: 11.5px; }
.team-toggle { height: 22px; padding: 0 8px; margin-left: 6px; font-size: 11px; vertical-align: middle; }
.user-team-row td { padding: 0 !important; background: rgba(46,230,168,.035); border-top: 1px solid rgba(46,230,168,.15); }
.user-team-detail { padding: 12px 16px 14px; }
.user-team-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.user-team-head b { color: var(--text); }
.user-team-head span { color: var(--muted-2); }
.user-team-list { display: grid; gap: 7px; margin-top: 8px; }
.user-team-item { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 8px 12px; border-left: 2px solid rgba(46,230,168,.25); border-radius: 0 9px 9px 0; background: rgba(255,255,255,.025); }
.user-team-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.user-team-main b { color: var(--text); }
.user-team-meta { font-size: 11px; color: var(--muted-2); }
.user-team-money { font-size: 11px; color: var(--muted); }
.user-team-money b { color: var(--mint); }
.admin-team-chain { padding: 14px 16px; border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255,255,255,.02); }
.admin-team-chain-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-team-chain-head b { font-size: 14px; color: var(--text); }
.admin-team-path { display: flex; align-items: center; gap: 8px; padding: 6px 0; overflow-x: auto; }
.admin-team-chip { flex: 0 0 190px; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(255,255,255,.03); }
.admin-team-chip.leader { border-color: rgba(46,230,168,.35); background: rgba(46,230,168,.06); }
.admin-team-chip.sub { border-style: dashed; }
.admin-team-chip-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.admin-team-chip-head b { color: var(--text); }
.admin-team-chip-foot { margin-top: 6px; font-size: 11px; color: var(--muted); }
.admin-team-link { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--muted-2); font-size: 11px; }
.admin-team-link b { color: var(--mint); font-size: 16px; font-weight: 500; line-height: 1; }
.admin-team-list { display: grid; gap: 10px; margin-top: 14px; }
.admin-team-node { display: grid; gap: 8px; }
.admin-team-card { padding: 14px 16px; border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255,255,255,.02); }
.admin-team-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; }
.admin-team-person { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 13px; }
.admin-team-person b { color: var(--text); }
.admin-role { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.admin-role.leader { border: 1px solid rgba(46,230,168,.4); background: rgba(46,230,168,.12); color: #8df7cf; }
.admin-role.member { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--muted); }
.admin-team-meta { font-size: 11.5px; color: var(--muted); }
.admin-team-sum { font-size: 11.5px; color: var(--muted); }
.admin-team-sum b { color: var(--mint); }
.admin-team-members { display: grid; gap: 7px; margin-top: 10px; padding-left: 14px; border-left: 2px solid rgba(46,230,168,.25); }
.admin-team-rel { margin-bottom: 1px; font-size: 11.5px; color: var(--muted); }
.admin-team-member { display: flex; align-items: center; justify-content: space-between; gap: 7px 14px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.025); }
.admin-team-date { font-size: 11px; color: var(--muted-2); }

@media (max-width: 820px) {
  .team-code-box { flex-direction: column; align-items: flex-start; }
  .team-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-invite-box { flex-direction: column; align-items: flex-start; }
}

/* ---------- 前台在线客服 ---------- */
.support-fab {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 32;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(46,230,168,.38);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(24,48,42,.96), rgba(10,21,25,.97));
  color: #dffbf1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.38), 0 0 0 1px rgba(46,230,168,.06) inset;
  transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.support-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(46,230,168,.7);
  box-shadow: 0 16px 34px rgba(0,0,0,.42), 0 0 24px rgba(46,230,168,.14);
}
.support-fab:focus-visible { outline: 2px solid rgba(46,230,168,.55); outline-offset: 3px; }
.support-fab-ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(46,230,168,.16);
  color: var(--mint);
  transition: background .2s, transform .2s;
}
.support-fab-ico svg { width: 17px; height: 17px; fill: currentColor; }
.support-fab:hover .support-fab-ico,
.support-fab.open .support-fab-ico { background: rgba(46,230,168,.28); transform: scale(1.04); }
.support-fab-text {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 11px;
  border: 1px solid rgba(46,230,168,.22);
  border-radius: 9px;
  background: rgba(10,21,25,.97);
  color: #dffbf1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: opacity .18s, transform .18s;
}
.support-fab:hover .support-fab-text,
.support-fab:focus-visible .support-fab-text {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
.support-fab.open {
  border-color: rgba(46,230,168,.68);
  box-shadow: 0 14px 36px rgba(0,0,0,.44), 0 0 26px rgba(46,230,168,.16);
}
.support-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(255,107,138,.4);
}

.support-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 33;
  width: 374px;
  height: min(570px, calc(100vh - 118px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  background: linear-gradient(180deg, #0d141d 0%, #080c12 100%);
  box-shadow: 0 28px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(46,230,168,.04) inset;
}
.support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.025);
}
.support-title { font-size: 16px; font-weight: 700; letter-spacing: .4px; }
.support-sub { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.support-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(46,230,168,.1), 0 0 10px rgba(46,230,168,.55);
}
.support-close {
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: .15s;
}
.support-close:hover { color: var(--text); border-color: var(--stroke-strong); }
.support-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
  background:
    radial-gradient(460px 220px at 100% 0, rgba(46,230,168,.05), transparent 70%),
    radial-gradient(420px 260px at 0 100%, rgba(92,139,255,.05), transparent 72%);
}
.support-empty {
  max-width: 280px;
  margin: 34px auto;
  padding: 18px 16px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
  background: rgba(255,255,255,.018);
}
.support-msg { display: flex; flex-direction: column; margin-bottom: 14px; }
.support-msg.me { align-items: flex-end; }
.support-msg.service { align-items: flex-start; }
.support-msg-meta { margin: 0 5px 4px; font-size: 10.5px; color: var(--muted-2); letter-spacing: .2px; }
.support-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
  white-space: normal;
}
.support-msg.service .support-bubble {
  border: 1px solid rgba(255,255,255,.09);
  border-top-left-radius: 5px;
  background: rgba(255,255,255,.055);
  color: #dfe6f1;
}
.support-msg.system { align-items: stretch; }
.support-msg.system .support-msg-meta { text-align: center; color: rgba(46,230,168,.68); }
.support-msg.system .support-bubble {
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(46,230,168,.16);
  border-radius: 11px;
  background: rgba(46,230,168,.065);
  color: #cfeee4;
  font-size: 12.5px;
}
.support-bubble a { color: var(--mint); text-decoration: underline; word-break: break-all; }
.support-msg.me .support-bubble {
  border: 1px solid rgba(46,230,168,.28);
  border-top-right-radius: 5px;
  background: linear-gradient(145deg, rgba(46,230,168,.2), rgba(19,94,72,.32));
  color: #eafff8;
}
.support-compose {
  flex: none;
  padding: 11px 13px 13px;
  border-top: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.025);
}
.support-compose textarea {
  width: 100%;
  min-height: 72px;
  max-height: 140px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.support-compose textarea::placeholder { color: var(--muted-2); }
.support-compose textarea:focus { border-color: rgba(46,230,168,.5); box-shadow: 0 0 0 3px rgba(46,230,168,.08); }
.support-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.support-hint { color: var(--muted-2); font-size: 10.5px; }
.support-send { min-width: 88px; height: 36px; padding: 0 18px; font-size: 12.5px; }

@media (max-width: 640px) {
  .support-fab { right: 14px; bottom: 16px; width: 44px; height: 44px; }
  .support-fab-ico { width: 30px; height: 30px; }
  .support-fab-text { display: none; }
  .support-panel {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    z-index: 60;
  }
  .support-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .support-compose { padding-bottom: max(13px, env(safe-area-inset-bottom)); }
}

/* ---------- 后台客服会话 ---------- */
.admin-support-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  min-height: calc(100vh - 190px);
}
.support-inbox,
.support-room { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.support-inbox-head { align-items: flex-start; }
.support-filters { padding: 12px 16px 4px; flex-wrap: wrap; }
.support-thread-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px 14px; }
.support-list-empty {
  margin: 34px auto;
  padding: 18px;
  max-width: 300px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.support-thread-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 12px;
  margin-bottom: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: .15s;
}
.support-thread-item:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.support-thread-item.active { border-color: rgba(46,230,168,.32); background: rgba(46,230,168,.065); }
.support-thread-item.unread { border-left: 3px solid var(--rose); }
.support-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(46,230,168,.22), rgba(92,139,255,.16));
  border: 1px solid rgba(255,255,255,.1);
  color: #e8fff7;
  font-size: 14px;
  font-weight: 700;
}
.support-thread-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.support-thread-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.support-thread-line b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.support-thread-line time { margin-left: auto; font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.support-state { padding: 1px 6px; border-radius: 999px; font-size: 9.5px; font-style: normal; white-space: nowrap; }
.support-state.open { color: #ffd88f; background: rgba(255,190,77,.1); border: 1px solid rgba(255,190,77,.2); }
.support-state.closed { color: var(--muted); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); }
.support-thread-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.support-thread-phone { font-size: 10.5px; color: var(--muted-2); }
.support-thread-unread {
  position: absolute;
  right: 9px;
  bottom: 9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
}
.support-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,.025);
}
.support-room-title { font-size: 15px; font-weight: 700; }
.support-room-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.support-room-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px;
  background:
    radial-gradient(500px 300px at 100% 0, rgba(46,230,168,.04), transparent 70%),
    radial-gradient(500px 300px at 0 100%, rgba(92,139,255,.045), transparent 70%);
}
.admin-support-msg { display: flex; flex-direction: column; margin-bottom: 16px; }
.admin-support-msg.mine { align-items: flex-end; }
.admin-support-msg.customer { align-items: flex-start; }
.admin-support-meta { margin: 0 5px 4px; font-size: 10.5px; color: var(--muted-2); }
.admin-support-bubble {
  max-width: 72%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}
.admin-support-msg.customer .admin-support-bubble {
  border: 1px solid rgba(255,255,255,.09);
  border-top-left-radius: 5px;
  background: rgba(255,255,255,.055);
  color: #e2e8f3;
}
.admin-support-msg.system { align-items: stretch; }
.admin-support-msg.system .admin-support-meta { text-align: center; color: rgba(46,230,168,.66); }
.admin-support-msg.system .admin-support-bubble {
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(46,230,168,.16);
  border-radius: 11px;
  background: rgba(46,230,168,.06);
  color: #cfeee4;
  font-size: 12.5px;
}
.admin-support-bubble a { color: var(--mint); text-decoration: underline; word-break: break-all; }
.support-broadcast-tools {
  margin-bottom: 16px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,.028);
  overflow: hidden;
}
.support-broadcast-tools > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.support-broadcast-tools > summary::-webkit-details-marker { display: none; }
.support-broadcast-tools > summary::after {
  content: '展开';
  margin-left: auto;
  color: var(--mint);
  font-size: 11px;
  font-weight: 600;
}
.support-broadcast-tools[open] > summary { border-bottom: 1px solid var(--stroke); }
.support-broadcast-tools[open] > summary::after { content: '收起'; }
.support-broadcast-tools > summary em {
  font-style: normal;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 400;
}
.support-broadcast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}
.support-broadcast-grid .card { max-width: none !important; margin-top: 0 !important; }
@media (max-width: 1100px) {
  .support-broadcast-grid { grid-template-columns: 1fr; }
  .support-broadcast-tools > summary em { display: none; }
}
.admin-support-msg.mine .admin-support-bubble {
  border: 1px solid rgba(46,230,168,.28);
  border-top-right-radius: 5px;
  background: linear-gradient(145deg, rgba(46,230,168,.18), rgba(19,94,72,.3));
  color: #eafff8;
}
.support-room-compose {
  flex: none;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}
.support-room-compose textarea {
  width: 100%;
  min-height: 78px;
  max-height: 150px;
  resize: vertical;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
}
.support-room-compose textarea:focus { border-color: rgba(46,230,168,.5); box-shadow: 0 0 0 3px rgba(46,230,168,.08); }
.support-room-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.support-room-hint { font-size: 10.5px; color: var(--muted-2); }

@media (max-width: 980px) {
  .admin-support-layout { grid-template-columns: 1fr; }
  .support-inbox { max-height: 380px; }
}

.cell-sub { margin-top: 2px; font-size: 10.5px; font-weight: 400; color: var(--muted-2); white-space: nowrap; }

/* ---------- 用户端站内通知 ---------- */
.notify-wrap{position:relative;display:flex;align-items:center}
.notify-bell{
  position:relative;width:40px;height:40px;border-radius:12px;cursor:pointer;
  display:grid;place-items:center;border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);color:var(--muted);transition:.18s ease;
}
.notify-bell:hover,.notify-bell[aria-expanded="true"]{
  color:#7df3c9;border-color:rgba(46,230,168,.55);background:rgba(46,230,168,.08);
}
.notify-bell:focus-visible{outline:2px solid rgba(46,230,168,.55);outline-offset:3px}
.notify-bell svg{width:18px;height:18px;fill:currentColor}
.notify-badge{
  position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;
  border-radius:999px;display:grid;place-items:center;background:#ff5a66;color:#fff;
  font-size:10px;font-weight:700;line-height:1;box-shadow:0 4px 12px rgba(255,90,102,.35);
}
.notify-panel{
  position:absolute;top:calc(100% + 10px);right:0;z-index:70;width:374px;
  max-height:min(560px,calc(100vh - 96px));display:flex;flex-direction:column;
  overflow:hidden;border-radius:16px;border:1px solid rgba(46,230,168,.18);
  background:rgba(10,14,22,.97);box-shadow:0 24px 70px rgba(0,0,0,.55);
}
.notify-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:15px 16px 12px;border-bottom:1px solid var(--stroke);
}
.notify-title{font-size:14px;font-weight:700;color:#f3f7ff;letter-spacing:.2px}
.notify-sub{margin-top:3px;font-size:11px;color:var(--muted-2)}
.notify-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.notify-readall{
  border:0;background:transparent;color:#7df3c9;font-size:11px;cursor:pointer;padding:4px 2px;
}
.notify-readall:hover{text-decoration:underline}
.notify-close{
  width:28px;height:28px;border-radius:9px;border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);color:var(--muted);font-size:17px;line-height:1;cursor:pointer;
}
.notify-list{overflow-y:auto;padding:6px 8px 10px}
.notify-item{
  width:100%;display:flex;align-items:flex-start;gap:9px;text-align:left;cursor:pointer;
  padding:11px 9px;border:0;border-radius:11px;background:transparent;color:inherit;
  transition:.16s ease;
}
.notify-item:hover{background:rgba(255,255,255,.045)}
.notify-item.unread{background:rgba(46,230,168,.045)}
.notify-kind{
  flex:none;margin-top:1px;padding:3px 6px;border-radius:7px;font-size:10px;line-height:1.2;
  color:#7df3c9;background:rgba(46,230,168,.1);border:1px solid rgba(46,230,168,.18);white-space:nowrap;
}
.notify-body{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
.notify-item-title{font-size:12.5px;line-height:1.45;color:#e9effa;font-weight:600}
.notify-item-content{
  font-size:11.5px;line-height:1.55;color:var(--muted);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.notify-item-time{font-size:10.5px;color:var(--muted-2);line-height:1.3}
.notify-dot{
  flex:none;width:7px;height:7px;border-radius:50%;margin-top:5px;
  background:#ff5a66;box-shadow:0 0 0 3px rgba(255,90,102,.13);
}
.notify-empty{padding:34px 16px 40px;text-align:center;font-size:12px;color:var(--muted-2)}
@media(max-width:640px){
  .notify-panel{position:fixed;left:12px;right:12px;top:74px;width:auto;max-height:calc(100vh - 88px)}
  .notify-bell{width:38px;height:38px}
}


/* 居中上传进度弹层：最终上传期间锁定全部页面操作 */
.upload-overlay{
  position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;
  background:rgba(4,7,12,.76);backdrop-filter:blur(10px);
}
.upload-overlay-panel{
  width:min(480px,100%);padding:26px 26px 22px;border-radius:20px;
  background:linear-gradient(180deg,rgba(24,32,46,.98),rgba(13,19,28,.98));
  border:1px solid var(--stroke-strong);box-shadow:0 24px 70px rgba(0,0,0,.6);
  text-align:center;
}
.upload-overlay-spinner{
  width:48px;height:48px;margin:0 auto 16px;border-radius:50%;
  border:3px solid rgba(255,255,255,.12);border-top-color:var(--mint);
  animation:uploadSpin .9s linear infinite;
}
@keyframes uploadSpin{to{transform:rotate(360deg)}}
.upload-overlay-panel h3{font-size:18px;font-weight:700;letter-spacing:.3px}
.upload-overlay-panel>p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:6px}
.upload-overlay-bar{height:12px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:20px;border:1px solid rgba(255,255,255,.06)}
.upload-overlay-bar i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,var(--blue),var(--mint));transition:width .3s ease}
.upload-overlay-stats{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12px;color:var(--muted)}
.upload-overlay-stats #uploadOverlayPercent{font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
.upload-overlay-list{max-height:230px;overflow:auto;margin-top:18px;border-top:1px solid var(--stroke);text-align:left}
.upload-overlay-item{display:flex;justify-content:space-between;gap:14px;padding:10px 2px;border-bottom:1px solid var(--stroke);font-size:12px;line-height:1.6}
.upload-overlay-item span:first-child{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upload-overlay-item span:last-child{color:var(--muted);flex:0 0 auto}
.upload-overlay-item .st-done{color:var(--mint)}
.upload-overlay-item .st-error{color:var(--rose)}
.upload-overlay-item .st-uploading{color:var(--blue)}
.upload-overlay-note{font-size:11.5px;color:var(--muted-2);margin-top:16px !important}
.upload-overlay.error .upload-overlay-spinner{
  animation:none;border-color:rgba(255,107,138,.35);border-top-color:var(--rose);
}
.upload-overlay.error .upload-overlay-panel h3{color:var(--rose)}
.upload-overlay-close{height:40px;margin-top:18px}body.upload-locked{overflow:hidden}
#uploadOverlayClose{height:40px;margin-top:18px}/* 使用原生 dialog 顶层渲染，确保上传弹层始终压在所有页面内容之上 */
dialog.upload-overlay{
  display:none;position:fixed;inset:0;margin:0;padding:24px;
  width:100%;height:100%;max-width:none;max-height:none;border:0;background:transparent;
  color:var(--text);
}
dialog.upload-overlay[open]{display:grid;place-items:center}
dialog.upload-overlay::backdrop{
  background:rgba(4,7,12,.78);backdrop-filter:blur(10px);
}

.mini-btn.reject-fix {
  color: var(--amber, #f5b84d);
  border-color: rgba(245, 184, 77, .55);
  background: rgba(245, 184, 77, .08);
}
/* 桌面通知入口 */
.notify-foot{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 14px;border-top:1px solid var(--stroke);font-size:11px;color:var(--muted-2);
}
.notify-foot span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notify-foot-email{border-top-style:dashed}
.notify-foot button{
  border:1px solid rgba(46,230,168,.28);background:rgba(46,230,168,.08);color:#7df3c9;
  border-radius:8px;padding:6px 9px;font-size:11px;cursor:pointer;white-space:nowrap;
}
.notify-foot button:hover{background:rgba(46,230,168,.14)}
.notify-foot button:disabled{opacity:.55;cursor:default}
