/* 商家后台补充样式（仅 merchant/ 使用） */
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb12 { margin-bottom: 12px; }
.center { text-align: center; } .span2 { grid-column: 1 / -1; }
.c-ok { color: var(--ok); } .c-warn { color: var(--warn); } .c-bad { color: var(--bad); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g3x { grid-template-columns: 3fr 2fr; } .g2x { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, 1fr); } .g3x, .g2x { grid-template-columns: 1fr; } }
.grid.tight { gap: 0 14px; }
.card h3 small, .stat .num small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.hov { color: inherit; transition: .15s; } .hov:hover { border-color: var(--brand); transform: translateY(-1px); }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* demo-bar 与顶栏 */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; }
.demo-bar select.mini, .demo-bar .btn { font-size: 12px; padding: 2px 8px; }
.admin .side .ico { display: inline-block; width: 20px; font-style: normal; opacity: .75; }
.admin .side .badge { float: right; background: var(--bad); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; line-height: 18px; margin-top: 2px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; border-radius: 14px; flex: none; }

/* 横幅 */
.banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid; }
.banner.warn { background: #fff7d6; border-color: #f5d76e; color: #7a5600; font-weight: 500; }
.banner.info { background: var(--brand-l); border-color: #c9d8ff; color: #1d3f9e; }
.banner.sm { padding: 6px 12px; font-size: 13px; margin: 8px 0; }

/* 列表行 */
.nrow { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.nrow:last-child { border-bottom: 0; } a.nrow:hover { color: var(--brand); }
.dotx { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; } .dotx.on { background: var(--bad); }
.tblwrap { overflow-x: auto; }
.tbl tr.row-warn td { background: #fffaeb; } .tbl tr.row-bad td { background: #fff1f1; }
.tbl td.ops { white-space: nowrap; } .tbl td.ops .btn { margin-right: 4px; }
.kv > div { display: flex; flex-direction: column; } .kv.col > div { flex-direction: row; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* 分段按钮 */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 6px 14px; cursor: pointer; font: inherit; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--brand); color: #fff; }

/* 表单 */
.modal.wide { width: min(820px, 94vw); }
.req { color: var(--bad); } .fname { display: block; font-size: 12px; color: var(--ink-3); font-style: normal; margin-top: 2px; }
label.field input[type=file] { padding: 5px; }
.flabel { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.chips { gap: 8px; } .chip { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-l); color: var(--brand); }
.caseRow { margin-bottom: 8px; }
.steps.big { padding: 8px 0; } .steps.big .st { font-size: 14px; }
.paybox { background: #f8f9fc; border-radius: 10px; padding: 14px; text-align: center; margin: 10px 0; }
.paynum { font-size: 26px; font-weight: 700; color: var(--ink); } .paynum.sm { font-size: 18px; }
.card.hl { border-color: #b9e4cb; background: linear-gradient(180deg, #f3fbf6, #fff); }

/* 订单 */
.bar { height: 6px; background: #eef0f4; border-radius: 9px; overflow: hidden; width: 110px; } .bar i { display: block; height: 100%; background: var(--ok); }
.follow { background: #f8f9fc; border-radius: 8px; padding: 8px 12px; } .fitem { padding: 2px 0; }
.contract p { margin: 8px 0; } .seal { border: 2px solid var(--bad); color: var(--bad); border-radius: 6px; padding: 4px 12px; transform: rotate(-4deg); font-weight: 600; }

/* IM */
.im { display: grid; grid-template-columns: 260px 1fr; padding: 0; height: calc(100vh - 220px); min-height: 420px; overflow: hidden; }
.convs { border-right: 1px solid var(--line); overflow-y: auto; }
.conv { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; } .conv:hover { background: #fafbff; } .conv.on { background: var(--brand-l); }
.pane { display: flex; flex-direction: column; min-width: 0; }
.phead { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; background: #f8f9fc; }
.msg { margin-bottom: 12px; max-width: 70%; } .msg.me { margin-left: auto; text-align: right; }
.bubble { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-align: left; }
.msg.me .bubble { background: var(--brand); color: #fff; border-color: var(--brand); }
.msg.risk .bubble { background: var(--bad-l); color: var(--bad); border: 1px solid var(--bad); }
.compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

/* 广告位 */
.adcard.mine { border-color: var(--brand); }
.adprev { height: 86px; border-radius: 8px; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; }
.adprev.empty { background: repeating-linear-gradient(45deg, #f3f5f9, #f3f5f9 10px, #eceff5 10px, #eceff5 20px); color: var(--ink-3); border: 1px dashed #cfd5e2; }
.prices { display: flex; gap: 6px; margin: 8px 0; } .prices span { flex: 1; background: #f8f9fc; border-radius: 6px; padding: 4px; text-align: center; font-size: 13px; }
.prices em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.plan input { align-self: flex-start; } .plan:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* 评价 / 信用 */
.rv { padding: 12px 0; border-bottom: 1px solid var(--line); } .rv:last-child { border-bottom: 0; } .rv p { margin: 6px 0; }
.reply { background: #f8f9fc; border-left: 3px solid var(--brand); padding: 6px 10px; margin-top: 6px; border-radius: 0 6px 6px 0; }
.stars { color: #f5a623; letter-spacing: 1px; } .stars i { color: #dde1ea; font-style: normal; }
.score-ring { width: 120px; height: 120px; margin: 10px auto; border-radius: 50%; border: 8px solid var(--brand); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; }
.score-ring.ok { border-color: var(--ok); color: var(--ok); } .score-ring.warn { border-color: var(--warn); color: var(--warn); } .score-ring.bad { border-color: var(--bad); color: var(--bad); }
