/* ===== 通用样式 ===== */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --blue:#2a5ad7; --blue-d:#1f47b3; --blue-l:#2f6bea;
  --red:#e8342a; --gold:#f2a51a;
  --gray:#f5f5f5; --bd:#e4e4e4; --bd2:#ececec;
  --txt:#333; --muted:#888; --green:#18a058;
}
html,body{height:100%}
body{font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB",Arial,sans-serif;font-size:14px;color:var(--txt);background:#f0f2f5}
a{text-decoration:none;color:inherit}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:14px}

/* 顶部 */
.topbar{height:46px;background:var(--blue);display:flex;align-items:center;padding:0 12px;color:#fff;position:sticky;top:0;z-index:50}
.logo{font-size:22px;font-weight:700;letter-spacing:1px;margin-right:16px;white-space:nowrap;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.nav{display:flex;align-items:center;gap:18px;flex:1;font-size:13px;overflow:hidden;min-width:0}
.nav a{color:#e9f0ff;white-space:nowrap}
.nav a:hover{color:#fff;text-decoration:underline}
.nav a.active{color:#fff;font-weight:700}
.btn-show{background:var(--red);color:#fff;border:none;border-radius:3px;padding:6px 12px;font-size:13px;white-space:nowrap;margin-left:8px}
.btn-show:hover{background:#cf2318}
.btn-contact{background:var(--blue-l);color:#fff;border:1px solid #7ba4ff;border-radius:3px;padding:6px 14px;font-size:13px;white-space:nowrap;margin-left:8px}

/* 布局 */
.layout{display:flex;min-height:calc(100vh - 46px)}
.sidebar{width:172px;flex:0 0 172px;background:var(--gray);border-right:1px solid var(--bd);padding-bottom:70px;position:relative}
.avatar{width:46px;height:46px;border-radius:50%;background:#fff;border:1px solid #ddd;display:flex;align-items:center;justify-content:center;font-size:26px;margin:14px auto 10px}
.side-info{padding:0 12px 10px;font-size:13px;color:#444}
.side-info .row{line-height:24px}
.side-info b{color:var(--red)}
.side-info .topup{color:var(--blue-l);float:right}
.side-menu{border-top:1px solid #e0e0e0}
.side-menu a{display:block;padding:9px 12px;font-size:13px;color:#444;border-bottom:1px solid #ebebeb}
.side-menu a:hover{background:#ececec;color:var(--blue-l)}
.side-menu a.on{background:#fff;color:var(--blue-l);font-weight:700;border-left:3px solid var(--blue-l);padding-left:9px}
.side-check{margin-top:12px;border-top:1px solid #e0e0e0}
.side-check .item{display:flex;align-items:center;gap:6px;padding:9px 12px;border-bottom:1px solid #e6e6e6;font-size:13px;color:#444;cursor:pointer}
.side-check .item:hover{color:var(--blue-l)}
.checkbox{width:12px;height:12px;border:1px solid #999;border-radius:2px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;color:#666;background:#fff;flex:0 0 12px}
.side-contact{position:absolute;left:10px;bottom:12px;display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #ddd;background:#fff;border-radius:3px;font-size:13px;color:#444}
.side-contact:hover{border-color:var(--blue-l);color:var(--blue-l)}

.main{flex:1;padding:12px 16px 28px;min-width:0}
.grid2{display:flex;gap:16px;align-items:flex-start}
.col-a{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:10px}
.col-b{flex:0 0 42%;max-width:42%;display:flex;flex-direction:column;gap:10px}
.crumb{font-size:13px;color:#666}
.crumb:hover{color:var(--blue-l)}

/* 面板 */
.panel{background:#fff;border:1px solid var(--bd)}
.panel.pink{border-color:#e8d4d4}
.panel-head{padding:8px 12px;font-size:13px;font-weight:700;border-bottom:1px solid var(--bd);background:#fafafa;color:#555;display:flex;align-items:center;justify-content:space-between}
.panel.pink .panel-head{background:#fdf5f5;border-bottom-color:#e8d4d4;color:var(--red)}
.panel-body{padding:12px;font-size:13px}
.panel-body.tall{min-height:300px}
.link{color:var(--blue-l)}
.link:hover{text-decoration:underline}

/* 卡片 */
.cards{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.card{flex:1 1 150px;background:#fff;border:1px solid var(--bd);border-radius:4px;padding:14px}
.card .k{font-size:12px;color:var(--muted);margin-bottom:6px}
.card .v{font-size:22px;font-weight:700;color:var(--blue-d)}
.card .v.red{color:var(--red)}
.card .v.green{color:var(--green)}

/* 表格 */
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{padding:8px 10px;border-bottom:1px solid var(--bd2);text-align:left;vertical-align:middle}
th{background:#f7f8fa;color:#666;font-weight:600;white-space:nowrap}
tr:hover td{background:#fafbff}
.tbl-wrap{overflow:auto}
.mono{font-family:Consolas,Monaco,monospace;font-size:12px}

/* 徽章 */
.tag{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;line-height:18px}
.tag.gray{background:#eee;color:#777}
.tag.blue{background:#e8f0ff;color:#2a5ad7}
.tag.red{background:#fdeaea;color:#d63b30}
.tag.green{background:#e7f7ee;color:#18a058}
.tag.orange{background:#fff3e2;color:#d9820a}

/* 表单 */
.form-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.form-row label{width:84px;color:#666;font-size:13px}
input[type=text],input[type=password],input[type=number],select,textarea{
  border:1px solid #d9d9d9;border-radius:3px;padding:7px 10px;outline:none;background:#fff;color:#333}
input:focus,select:focus,textarea:focus{border-color:var(--blue-l);box-shadow:0 0 0 2px rgba(47,107,234,.12)}
.grow{flex:1;min-width:180px}
.btn{border:1px solid transparent;border-radius:3px;padding:7px 16px;font-size:13px;background:var(--blue-l);color:#fff}
.btn:hover{background:var(--blue-d)}
.btn.ghost{background:#fff;color:#555;border-color:#d9d9d9}
.btn.ghost:hover{border-color:var(--blue-l);color:var(--blue-l)}
.btn.danger{background:var(--red)}
.btn.danger:hover{background:#cf2318}
.btn.green{background:var(--green)}
.btn.sm{padding:3px 10px;font-size:12px}
.btn:disabled{opacity:.5;cursor:not-allowed}
input:disabled,select:disabled,textarea:disabled{background:#f2f4f7;color:#b4bcc8;cursor:not-allowed}

/* 提示 */
.empty{padding:30px;text-align:center;color:#aaa;font-size:13px}
.hint{color:var(--muted);font-size:12px;line-height:20px}
.alert{padding:9px 12px;border-radius:3px;font-size:13px;margin-bottom:10px}
.alert.info{background:#eef4ff;color:#2a5ad7;border:1px solid #d3e2ff}
.alert.warn{background:#fff8e6;color:#a86a00;border:1px solid #ffe4ad}
.alert.err{background:#fdeeee;color:#c0392b;border:1px solid #f7cccc}

/* 登录页 */
.login-wrap{min-height:calc(100vh - 46px);display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8efff,#f5f7fb)}
.login-box{width:380px;background:#fff;border-radius:6px;box-shadow:0 8px 30px rgba(30,60,140,.12);padding:28px 26px}
.login-box h2{font-size:18px;color:var(--blue-d);text-align:center;margin-bottom:4px}
.login-box .sub{text-align:center;color:var(--muted);font-size:12px;margin-bottom:18px}
.tabs{display:flex;border-bottom:1px solid var(--bd);margin-bottom:16px}
.tabs span{flex:1;text-align:center;padding:9px 0;cursor:pointer;font-size:14px;color:#777;border-bottom:2px solid transparent}
.tabs span.on{color:var(--blue-l);font-weight:700;border-bottom-color:var(--blue-l)}
.login-box .field{margin-bottom:12px}
.biz-pick{display:flex;gap:8px}
.biz-pick button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 6px;border:1px solid #d9d9d9;background:#fff;border-radius:4px;font-size:13px;color:#555;line-height:18px}
.biz-pick button small{font-size:11px;color:#999;font-weight:400}
.biz-pick button:hover{border-color:#9dbcf5}
.biz-pick button.on{border-color:var(--blue-l);background:#eef4ff;color:var(--blue-l);font-weight:700}
.biz-pick button.on small{color:#6b90d6}
.login-box .field label{display:block;font-size:12px;color:#777;margin-bottom:5px}
.login-box input{width:100%}
.login-box .btn{width:100%;padding:10px;margin-top:6px;font-size:15px}
.login-tip{margin-top:14px;font-size:12px;color:#999;text-align:center;line-height:18px}

/* Toast */
.side-badge{margin-left:10px;padding:3px 9px;border-radius:3px;font-size:12px;white-space:nowrap;border:1px solid rgba(255,255,255,.5)}
.side-badge.merchant{background:#1f47b3;color:#dce8ff}
.side-badge.buyer{background:#e8342a;color:#fff;border-color:#ff9b93}

/* 入口页 */
.portal-wrap{max-width:900px;margin:0 auto;padding:52px 20px 40px;text-align:center}
.portal-title{font-size:26px;color:#1f2a44;margin-bottom:8px}
.portal-sub{color:var(--muted);font-size:13px;margin-bottom:32px}
.portal-cards{display:flex;gap:22px;justify-content:center;flex-wrap:wrap}
.portal-card{flex:1 1 320px;max-width:380px;background:#fff;border:1px solid var(--bd);border-radius:8px;padding:28px 22px;text-align:center;transition:.15s;display:block}
.portal-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(30,60,140,.12);border-color:#bcd0f7}
.portal-card .pc-icon{font-size:40px;margin-bottom:10px}
.portal-card .pc-name{font-size:19px;font-weight:700;margin-bottom:8px}
.portal-card.merchant .pc-name{color:var(--blue-d)}
.portal-card.buyer .pc-name{color:var(--red)}
.portal-card .pc-desc{color:var(--muted);font-size:13px;line-height:22px;min-height:44px}
.portal-card .pc-btn{display:inline-block;margin-top:16px;padding:9px 26px;border-radius:4px;color:#fff;font-size:14px}
.portal-card.merchant .pc-btn{background:var(--blue-l)}
.portal-card.buyer .pc-btn{background:var(--red)}
.portal-foot{margin-top:34px;font-size:13px;color:var(--muted)}

#toast{position:fixed;right:20px;bottom:24px;z-index:999;display:flex;flex-direction:column;gap:8px}
.toast{background:rgba(35,40,50,.92);color:#fff;padding:10px 16px;border-radius:4px;font-size:13px;max-width:320px;animation:fade .2s}
.toast.ok{background:rgba(24,160,88,.95)}
.toast.err{background:rgba(200,50,40,.95)}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1}}
@keyframes pop{from{opacity:0;transform:scale(.97)}to{opacity:1}}

/* 用户详情弹窗 */
.nw{white-space:nowrap;display:inline-flex;align-items:center}
.dsec{font-size:13px;font-weight:700;color:#2f6bea;border-left:3px solid #2f6bea;padding-left:8px;margin:12px 0 8px}
.kv{display:flex;gap:8px;padding:3px 0;font-size:13px;line-height:20px}
.kv .k{width:76px;flex:0 0 76px;color:#888}
.kv .v{flex:1;min-width:0;word-break:break-all}

/* 会员铭牌 + 价格表弹窗 */
.side-info .row.side-role{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px}
.side-info .row.side-role .role{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tier-badge{flex:0 0 auto;margin-left:auto;padding:0 6px;border-radius:9px;font-size:10px;line-height:16px;font-weight:700;cursor:pointer;
  background:linear-gradient(180deg,#ffe9a3,#f2c14a);color:#7a4a00;border:1px solid #e0b73c;white-space:nowrap}
.tier-badge:hover{filter:brightness(1.05)}
#tier-pop{position:fixed;z-index:300;display:none;background:#fff;border:1px solid #d9e2f5;border-radius:6px;
  box-shadow:0 10px 30px rgba(20,50,120,.18);padding:10px 12px;font-size:13px}
.tier-pop-head{font-weight:700;color:var(--blue-d);margin-bottom:8px;font-size:13px}
.tier-pop-wrap{max-height:330px;overflow:auto}
#tier-pop table{width:100%;border-collapse:collapse;font-size:12px}
#tier-pop th,#tier-pop td{padding:5px 8px;border-bottom:1px solid #eef1f7;text-align:center;white-space:nowrap}
#tier-pop th{background:#f7f9ff;color:#666;font-weight:600}
#tier-pop td.pf{text-align:left;font-weight:700;color:#333}
#tier-pop td.base{color:#888}
#tier-pop .me{background:#fff8e6;color:#b8720a;font-weight:700}
#tier-pop td.mine,#tier-pop th.mine{background:#eaf3ff;color:#1f47b3;font-weight:700}
#tier-pop th .r{display:block;font-size:11px;color:#999;font-weight:400}
.tier-pop-foot{margin-top:8px;line-height:18px}

/* 商品主图框 */
.pd-imgbox{width:96px;height:96px;border:1px dashed #dfe3ea;border-radius:6px;background:#f7f9fc;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pd-imgbox img{width:100%;height:100%;object-fit:cover}
.pd-imgbox .pd-ph{color:#b9c0cc;font-size:12px;letter-spacing:1px;user-select:none}

/* 分页 */
.pager{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pg{border:1px solid #d9d9d9;background:#fff;color:#555;border-radius:3px;padding:3px 10px;font-size:13px;cursor:pointer}
.pg:hover:not(:disabled){border-color:var(--blue-l);color:var(--blue-l)}
.pg:disabled{opacity:.45;cursor:not-allowed}
.pg-cur{min-width:26px;text-align:center;background:#2f6bea;color:#fff;border-radius:3px;padding:3px 8px;font-size:13px}

.btn-msg{position:relative;background:transparent;color:#e9f0ff;border:1px solid rgba(255,255,255,.5);border-radius:3px;padding:6px 12px;font-size:13px;white-space:nowrap;margin-left:8px;cursor:pointer;flex:0 0 auto}
.nav .btn-show{margin-left:0}
.btn-msg:hover{background:rgba(255,255,255,.15);color:#fff}
/* 未登录时不显示站内信入口 */
body:not(.logged-in) .btn-msg{display:none !important}
/* 未登录时不显示联系客服（在线客服需要登录） */
body:not(.logged-in) .btn-contact{display:none !important}
.msg-dot{display:inline-block;min-width:16px;margin-left:5px;padding:0 5px;border-radius:9px;background:#e8342a;color:#fff;font-size:11px;line-height:16px;text-align:center;font-weight:700}
/* ---------- 在线客服面板（商家端 / 买手端） ---------- */
#cs-panel{position:fixed;right:18px;bottom:18px;width:346px;height:456px;background:#fff;border:1px solid #e3e8f0;border-radius:9px;box-shadow:0 10px 34px rgba(20,40,90,.22);display:none;flex-direction:column;overflow:hidden;z-index:400}
#cs-panel .cs-head{background:var(--blue);color:#fff;padding:9px 12px;font-size:14px;font-weight:700;display:flex;justify-content:space-between;align-items:center}
#cs-panel .cs-x{background:transparent;border:0;color:#fff;font-size:19px;line-height:1;cursor:pointer;padding:0 3px}
#cs-panel .cs-body{flex:1 1 auto;overflow:auto;padding:12px;background:#f5f7fb}
#cs-panel .cs-foot{border-top:1px solid #e8ecf3;background:#fff;padding:8px;display:flex;gap:6px}
#cs-panel .cs-foot input{flex:1 1 auto;border:1px solid #d9e0ec;border-radius:5px;padding:7px 9px;font-size:13px;font-family:inherit}
.cs-msg{max-width:78%;margin-bottom:8px;padding:7px 10px;border-radius:8px;font-size:13px;line-height:19px;white-space:pre-wrap;word-break:break-word}
.cs-msg.user{margin-left:auto;background:var(--blue);color:#fff}
.cs-msg.cs{background:#fff;border:1px solid #e3e8f0}
.cs-msg.system{margin:6px auto;background:#e9edf4;color:#7a8699;font-size:12px;text-align:center;max-width:100%;padding:4px 10px}
.cs-msg .t{font-size:11px;opacity:.7;margin-top:3px}


/* 预付任务管理（商家端 / 买手端） */
.kpis{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.kpi{flex:1 1 104px;min-width:96px;border:1px solid var(--bd);border-radius:4px;padding:7px 10px;background:#fafbfe}
.kpi b{display:block;font-size:18px;line-height:22px;color:#2a5ad7}
.kpi span{font-size:12px;color:#8a8f99}
.kpi.orange b{color:#d9820a}.kpi.green b{color:#18a058}.kpi.red b{color:#d63b30}.kpi.purple b{color:#7b5cd6}
.ptabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:2px solid #e8ecf3}
.ptab{position:relative;border:1px solid #e0e6ef;border-bottom:none;background:#f7f9fc;color:#5a6371;
  padding:6px 12px;font-size:13px;border-radius:4px 4px 0 0;cursor:pointer;white-space:nowrap}
.ptab:hover{color:#2f6bea}
.ptab.on{background:#2f6bea;border-color:#2f6bea;color:#fff;font-weight:700}
.ptab .pbadge{display:inline-block;margin-left:5px;background:#e8342a;color:#fff;border-radius:9px;
  font-size:11px;line-height:15px;padding:0 5px;font-style:normal;vertical-align:1px}
.ptab.on .pbadge{background:#fff;color:#2f6bea}
.filterbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:10px 12px;background:#fafbfe;border-bottom:1px solid var(--bd)}
.filterbar input,.filterbar select{padding:5px 8px;border:1px solid #d9dde5;border-radius:3px;font-size:13px}
.ptable th{white-space:nowrap}
.ptable .ops{white-space:nowrap}
.btn.xs{padding:2px 7px;font-size:12px;border-radius:3px}
.money{color:#e8342a}
.grid2{display:flex;flex-wrap:wrap;gap:0 14px}
.grid2 .form-row{flex:1 1 300px}
.kvgrid{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}
.kv{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #eef1f6;padding:5px 0;font-size:13px}
.kv span{color:#8a8f99;flex:0 0 auto}
.kv b{font-weight:600;text-align:right;word-break:break-all}
.modal-ops{margin-top:12px;padding-top:10px;border-top:1px solid var(--bd);display:flex;gap:6px;flex-wrap:wrap}
.mono{font-family:Consolas,Menlo,monospace;font-size:12px;color:#333}


/* 预付任务 · 新建模板表单 */
.tpl-form{padding:14px 16px}
.tpl-form input,.tpl-form select,.tpl-form textarea{padding:5px 8px;border:1px solid #d9dde5;border-radius:3px;font-size:13px;box-sizing:border-box}
.tpl-form input:focus,.tpl-form select:focus,.tpl-form textarea:focus{outline:none;border-color:#8fb2ff;box-shadow:0 0 0 2px rgba(47,107,234,.12)}
.tpl-modes{background:#f7faff;border:1px solid #dbe6fb;border-radius:4px;padding:8px 12px;margin-bottom:6px}
.tpl-modes .chk{display:block;margin:3px 0}
.tpl-modes .hint{color:#8a8f99;font-size:12px;margin-left:4px}
.tpl-row{display:flex;align-items:flex-start;border-bottom:1px solid #f1f4f9;padding:8px 0}
.tpl-row:hover{background:#fcfdff}
.tpl-lab{flex:0 0 136px;text-align:right;padding:5px 12px 0 0;font-size:13px;color:#5a6371;font-weight:600;line-height:20px}
.tpl-lab.blue,.tpl-lab.green{text-align:right}
.tpl-lab.blue span,.tpl-lab.blue i,.tpl-lab.green i{}
.tpl-lab.blue{color:#2a5ad7}
.tpl-lab.green{color:#18a058}
.tpl-lab .price{color:#e8342a;font-style:normal;font-size:12px;font-weight:400}
.tpl-lab .hint2{font-weight:400}
.tpl-ctl{flex:1;min-width:0;font-size:13px;color:#444}
.tpl-ctl .inline{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
.tpl-ctl .fld{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#5a6371;white-space:nowrap}
.tpl-ctl .chks{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.tpl-ctl .chk{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#444;white-space:nowrap}
.tpl-ctl textarea{width:100%;resize:vertical;font-family:inherit}
.req{color:#e8342a;font-style:normal}
.hint2{color:#a0a6b0;font-size:12px}
.chk-tag{display:inline-block;padding:2px 8px;border-radius:3px;font-size:12px;color:#fff}
.chk-tag.blue{background:#2f6bea}
.chk-tag.green{background:#18a058}
.chk-tag.orange{background:#e8850c}
.imgs2{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:6px}
.imgbox{width:176px;border:1px solid #e6ebf3;border-radius:4px;padding:7px;background:#fbfcfe}
.imgbox-h{font-size:12px;color:#5a6371;margin-bottom:5px;text-align:center}
.imgbox-b{height:118px;display:flex;align-items:center;justify-content:center;background:#f3f6fb;border-radius:3px;overflow:hidden}
.imgbox-b img{width:100%;height:100%;object-fit:cover}
.imgph{text-align:center;color:#b8bec8;font-size:12px;line-height:1.7}
.imgph small{display:block;color:#c9ced8;font-size:11px}
.imgbox-f{display:flex;gap:6px;margin-top:6px;justify-content:center}
.tpl-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:12px;margin-top:8px;border-top:1px solid var(--bd);position:sticky;bottom:0;background:#fff;padding-bottom:2px}

/* 平台分类小标签 */
.chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px}
.chip{border:1px solid #d9d9d9;background:#fff;color:#555;border-radius:12px;padding:2px 10px;font-size:12px;line-height:18px;cursor:pointer}
.chip:hover{border-color:var(--blue-l);color:var(--blue-l)}
.chip.on{background:var(--blue-l);border-color:var(--blue-l);color:#fff;font-weight:700}

/* 弹窗 */
.mask{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;z-index:200;padding:16px}
.modal{background:#fff;border-radius:6px;width:440px;max-width:94vw;max-height:90vh;display:flex;flex-direction:column;animation:pop .15s}
.modal h3{font-size:15px;padding:14px 16px;border-bottom:1px solid var(--bd);color:var(--blue-d);flex:0 0 auto;margin:0}
.modal .body{padding:16px;flex:1 1 auto;min-height:0;overflow:auto}
.modal .foot{padding:12px 16px;border-top:1px solid var(--bd);display:flex;justify-content:flex-end;gap:8px;flex:0 0 auto;background:#fff;border-radius:0 0 6px 6px}

/* 分销 */
.team-tree{display:flex;gap:12px;flex-wrap:wrap}
.team-col{flex:1 1 220px;border:1px solid var(--bd);border-radius:4px;overflow:hidden}
.team-col .hd{padding:8px 10px;background:#f7f8fa;font-size:13px;font-weight:700;color:#555;display:flex;justify-content:space-between}
.team-col .bd{padding:6px 10px;max-height:220px;overflow:auto}
.team-col .u{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px dashed #eee;font-size:13px}

@media (max-width:820px){
  .nav{display:none}
  .grid2{flex-direction:column}
  .col-b{flex:1 1 auto;max-width:100%;width:100%}
  .sidebar{width:150px;flex:0 0 150px}
}

.sec-title{margin:12px 0 4px;font-size:13px;font-weight:700;color:#2f6bea;border-left:3px solid #2f6bea;padding-left:8px}

/* 任务类型 · 功能说明弹窗 */
.hl-tabs{display:flex;gap:4px;border-bottom:1px solid #e6e9ee;margin-bottom:0}
.hl-tab{padding:7px 16px;font-size:13px;color:#5a6371;background:#f5f6f8;border:1px solid #e6e9ee;border-bottom:none;
  border-radius:3px 3px 0 0;cursor:pointer}
.hl-tab:hover{color:#2f6bea}
.hl-tab.on{background:#fff;color:#2f6bea;font-weight:700;position:relative;top:1px}
.hl-table{width:100%;border-collapse:collapse;margin-top:-1px}
.hl-table td{border:1px solid #e6e9ee;padding:10px 12px;vertical-align:top;font-size:13px;color:#444}
.hl-name{width:1px;white-space:nowrap;font-weight:700;color:#333;background:#fafbfc;text-align:center;padding-left:14px;padding-right:14px}
.hl-line{line-height:1.95}
.hl-line b{font-weight:700;color:#333}
.hl-line.red-note{color:#e8342a}

/* 好评需求选项说明弹窗 */
.svc-note p{margin:0 0 10px;font-size:14px;line-height:1.9;color:#444}
.svc-note p:last-child{margin-bottom:0}
.svc-note b{color:#2a5ad7;font-weight:700}
.svc-note p.purple b{color:#8e44ad}

/* 句子找茬 */
.gc-head{font-size:14px;margin-bottom:10px;color:#333}
.gc-head .req{color:#e8342a}
.gc-box{background:#fffdf5;border:1px dashed #ffe58f;border-radius:4px;padding:10px 12px;margin-bottom:14px}
.gc-box-t{font-weight:700;color:#d9820a;font-size:13px;margin-bottom:8px}
.gc-item{display:flex;align-items:center;gap:12px;margin-bottom:8px;background:#fffbe6;border:1px solid #ffe58f;border-radius:4px;padding:7px 10px;flex-wrap:wrap}
.gc-display{font-family:Consolas,Menlo,monospace;font-size:15px;letter-spacing:1px;color:#333;min-width:100px}
.gc-inp{width:230px;padding:6px 9px;border:1px solid #d9dde5;border-radius:3px;font-size:13px}
.gc-demo-t{font-weight:700;font-size:13px;color:#2a5ad7;margin:12px 0 6px}
.gc-demo-tb{width:100%;border-collapse:collapse}
.gc-demo-tb td{border:1px solid #e6e9ee;padding:8px 10px;font-size:13px}
.gc-demo-tb td.k{width:80px;text-align:center;font-weight:700;background:#fafbfc;color:#5a6371}
.gc-demo-note{margin-top:10px;font-size:13px;color:#666;line-height:1.8}
.gc-demo-buyer{display:flex;flex-direction:column;gap:8px}
.gc-demo-item{display:flex;align-items:center;gap:12px;background:#fffbe6;border:1px solid #ffe58f;border-radius:4px;padding:7px 10px}

.chk-tag[disabled]{opacity:.45;cursor:not-allowed}

/* 附拍同店商品 */
.sub-item{border:1px solid #e6ebf3;border-radius:4px;padding:10px 12px;margin-top:10px;background:#fbfcfe}
.sub-t{font-size:13px;font-weight:600;color:#5a6371;margin-bottom:8px}
.sub-body{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.sub-img{flex:0 0 auto}
.sub-flds{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding-top:4px}
.sub-total{margin-top:10px;font-size:13px;color:#e8342a}
.sub-total-inp{width:120px;color:#e8342a;font-weight:700;background:#fff;border:1px solid #f0c8c4;border-radius:3px;
  padding:4px 8px;text-align:center;margin-left:6px}

/* 用户详情 · 商家功能权限开关卡片 */
.perm-list{display:flex;flex-direction:column;gap:8px;margin:6px 0 4px}
.perm-item{position:relative;display:flex;align-items:center;gap:12px;border:1px solid #e6ebf3;border-radius:6px;
  padding:10px 12px;background:#fbfcfe;cursor:pointer;transition:border-color .15s,background .15s}
.perm-item:hover{border-color:#bcd2ff;background:#f7faff}
.perm-item>input{position:absolute;opacity:0;width:0;height:0}
.perm-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.perm-name{font-size:14px;font-weight:700;color:#333}
.perm-desc{font-size:12px;color:#8a8f99;line-height:1.6}
.perm-sw{flex:0 0 auto;width:42px;height:22px;border-radius:11px;background:#d7dbe3;position:relative;transition:background .2s}
.perm-sw i{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.2);transition:left .2s}
.perm-item>input:checked ~ .perm-sw{background:#2f6bea}
.perm-item>input:checked ~ .perm-sw i{left:22px}
.perm-item:has(>input:checked){border-color:#2f6bea;background:#f2f7ff}

/* 淘口令输入框 */
.kl-box{margin-top:8px;background:#f7faff;border:1px dashed #bcd2ff;border-radius:4px;padding:8px 10px}
.kl-t{font-size:13px;font-weight:600;color:#2a5ad7;margin-bottom:6px}
.kl-row{display:flex;gap:8px;align-items:center}

/* 高权重模式提示 */
.hiwarn{background:#fff5f5;border:1px solid #f7cccc;border-radius:4px;padding:8px 10px;margin-bottom:8px;max-width:640px}
.hiwarn .w1{color:#e8342a;font-size:13px;line-height:1.8}
.hiwarn .w2{color:#e8342a;font-size:13px;line-height:1.8;font-style:italic}
.btn.hi-compare{background:#fdf2f2;color:#e8342a;border:1px solid #f5d0d0}
.btn.hi-compare:hover{background:#fbe4e4}

/* 紧凑行（词与单量） */
.tpl-ctl .inline.tight{gap:5px 8px}
.tpl-ctl .inline.tight .fld{font-size:12.5px;gap:3px}
.tpl-ctl .inline.tight input,.tpl-ctl .inline.tight select{padding:4px 6px;font-size:12.5px}
.tpl-ctl .inline.tight .btn.xs{padding:2px 6px;font-size:12px}

/* 圆形勾选框（自主审号） */

.ck-round:hover{border-color:#2f6bea}
.ck-round:checked{border-color:#2f6bea;background:#2f6bea}
.ck-round:checked::after{content:"";position:absolute;left:4px;top:4px;width:5px;height:5px;border-radius:50%;background:#fff}

/* 圆形勾选框（自主审号）——提高优先级覆盖 .tpl-form input */
.tpl-form input.ck-round,.tpl-ctl input.ck-round,.ck-round{-webkit-appearance:none!important;appearance:none!important;width:15px!important;height:15px!important;border:1.5px solid #b8bec8!important;border-radius:50%!important;background:#fff!important;cursor:pointer;position:relative;vertical-align:-2px;flex:0 0 auto;padding:0!important}
.tpl-form input.ck-round:hover,.ck-round:hover{border-color:#2f6bea!important}
.tpl-form input.ck-round:checked,.ck-round:checked{border-color:#2f6bea!important;background:#2f6bea!important}
.tpl-form input.ck-round:checked::after,.ck-round:checked::after{content:"";position:absolute;left:4px;top:4px;width:5px;height:5px;border-radius:50%;background:#fff}

/* 收款信息 */
.pay-sec{border:1px solid #eef1f6;border-radius:4px;padding:10px 12px;margin-bottom:12px;background:#fbfcfe}
.pay-t{margin-bottom:6px}
.pay-sec .form-row{margin-bottom:8px}

/* 收款二维码 */
.pay-qr{display:flex;gap:12px;align-items:flex-start}
.pay-qr-img{width:120px;height:120px;border:1px solid #e6ebf3;border-radius:4px;background:#f3f6fb;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pay-qr-img img{width:100%;height:100%;object-fit:contain;background:#fff}
.pay-qr-btns{display:flex;flex-direction:column;gap:6px}

/* 提现：选择已录入收款信息 */
.wd-pays{display:flex;flex-direction:column;gap:8px;flex:1 1 260px;min-width:220px}
.wd-pay{border:1px solid #e6ebf3;border-radius:6px;padding:8px 12px;cursor:pointer;background:#fff;transition:.15s;display:flex;flex-direction:column;gap:3px}
.wd-pay:hover{border-color:#c9d6ea}
.wd-pay.on{border-color:#2f6bea;background:#f4f8ff;box-shadow:0 0 0 1px #2f6bea inset}
.wd-pay-t{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#333}
.wd-pay-qr{font-size:11px;font-weight:400;color:#2f6bea;background:#eef4ff;border-radius:3px;padding:1px 6px}
.wd-pay-d{font-size:12px;color:#888;word-break:break-all}
.chk-tag.gray{background:#8a93a3}
.wd-qr img{width:88px;height:88px;object-fit:contain;border:1px solid #e6ebf3;border-radius:4px;background:#fff;margin-top:5px}

/* 任务详情（买手端 / 后台） */
.req-img{width:54px;height:54px;object-fit:cover;border-radius:4px;border:1px solid #e6ebf3;margin-right:6px;vertical-align:middle;cursor:zoom-in}
.kl-inline{font-family:Consolas,monospace;background:#f3f6fb;border:1px solid #e6ebf3;padding:1px 6px;border-radius:3px;word-break:break-all;font-weight:400}
.secret{color:#e8342a;font-weight:700;letter-spacing:1px}
