:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --border: #e5e9f2;
  --border-strong: #d6dceb;
  --text: #1b2434;
  --text-2: #5b667c;
  --text-3: #8b95a8;
  --primary: #4f46e5;
  --primary-dark: #3f37c9;
  --primary-soft: #eef0ff;
  --ok: #0f9d6e;
  --bad: #dc4b4b;
  --warn: #d98213;
  --info: #2563eb;
  --shadow: 0 1px 2px rgba(21, 32, 61, .04), 0 8px 24px rgba(21, 32, 61, .05);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- 通用组件 ---------- */
.btn {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  padding: 9px 16px; border-radius: 9px; cursor: pointer; font-weight: 600;
  transition: .16s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(79,70,229,.18); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-danger { color: var(--bad); border-color: #f0cfcf; }
.btn-danger:hover { background: #fff2f2; border-color: var(--bad); color: var(--bad); }
.btn-outline { background: var(--primary-soft); border-color: #dcdfff; color: var(--primary); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; font-weight: 600; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 18px; font-size: 15px; }
.icon-btn { border: 0; background: transparent; color: var(--text-3); font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.icon-btn:hover { background: var(--bg); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field em { color: var(--bad); font-style: normal; }
.field small { color: var(--text-3); font-size: 12px; }
.input {
  width: 100%; border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 9px; padding: 10px 12px; color: var(--text); outline: none; transition: .16s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.11); }
.input::placeholder { color: #a6aec0; }
textarea.input { resize: vertical; }
select.input { cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag-ok { background: #e7f7f0; color: var(--ok); }
.tag-bad { background: #fdecec; color: var(--bad); }
.tag-warn { background: #fdf3e3; color: var(--warn); }
.tag-info { background: #e9f0ff; color: var(--info); }
.tag-neutral { background: #eef0f5; color: var(--text-2); }
.tag-purple { background: #f0edfd; color: #6b57c7; }

/* 第十四轮：可逐级展开 / 收起的多级代理渠道树 */
.tree-toolbar { flex-wrap: wrap; gap: 8px; }
.tree-toolbar .search { min-width: 260px; max-width: 380px; }
.tree-node { border-left: 2px solid var(--border); padding-left: 10px; margin: 4px 0; }
.tree-agent { border-left-color: #7f6fd8; }
.tree-operator { border-left-color: var(--ok, #16a34a); }
.tree-screen { border-left-color: var(--border); }
.tree-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 4px; border-radius: 8px; }
.tree-row:hover { background: var(--surface-2, #f7f8fc); }
.tree-toggle { width: 22px; height: 22px; flex: 0 0 22px; border: 0; background: transparent;
  cursor: pointer; color: var(--text-3); font-size: 12px; border-radius: 5px; line-height: 1; }
.tree-toggle:hover { background: var(--surface-3, #eef0f6); color: var(--text, #1f2937); }
.tree-check { width: 15px; height: 15px; flex: 0 0 15px; cursor: pointer; accent-color: #635bff; }
.tree-name { font-size: 13.5px; color: var(--text, #1f2937); }
.tree-meta { font-size: 12px; color: var(--text-3); }
.tree-children { margin-left: 18px; }
.tree-children[hidden] { display: none !important; }
.tree-screen > .tree-row { padding-top: 4px; padding-bottom: 4px; border-bottom: 1px dashed var(--border); border-radius: 0; }
.tree-screen:last-child > .tree-row { border-bottom: 0; }
.muted { color: var(--text-3); }
.empty { padding: 42px 16px; text-align: center; color: var(--text-3); background: var(--surface-2); border-radius: 10px; border: 1px dashed var(--border); }

/* ---------- 登录页 ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand {
  background: linear-gradient(135deg, #eef1ff 0%, #e8f2ff 55%, #f4f8ff 100%);
  display: flex; align-items: center; justify-content: center; padding: 48px; position: relative; overflow: hidden;
}
.login-brand::before, .login-brand::after { content: ''; position: absolute; border-radius: 50%; background: rgba(79,70,229,.06); }
.login-brand::before { width: 460px; height: 460px; top: -170px; right: -140px; }
.login-brand::after { width: 320px; height: 320px; bottom: -150px; left: -90px; }
.login-brand-inner { max-width: 460px; position: relative; z-index: 1; }
.brand-mark { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.brand-mark.small { font-size: 16px; }
.brand-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 19px; }
.brand-mark.small .brand-icon { width: 28px; height: 28px; font-size: 15px; border-radius: 7px; }
.login-brand h1 { font-size: 38px; line-height: 1.35; margin: 46px 0 18px; letter-spacing: -.5px; }
.login-brand p { color: var(--text-2); font-size: 15px; line-height: 1.9; margin: 0 0 42px; }
.brand-stats { display: flex; gap: 40px; padding: 22px 0; border-top: 1px solid rgba(79,70,229,.13); border-bottom: 1px solid rgba(79,70,229,.13); }
.brand-stats div { display: flex; flex-direction: column; }
.brand-stats strong { font-size: 25px; color: var(--primary); }
.brand-stats span { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.brand-note { margin-top: 30px; font-size: 12.5px; color: var(--text-3); }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--surface); }
.login-box { width: 100%; max-width: 370px; }
.login-kicker { font-size: 11px; letter-spacing: 2px; color: var(--primary); font-weight: 800; }
.login-box h2 { font-size: 28px; margin: 10px 0 4px; }
.login-sub { color: var(--text-3); margin: 0 0 30px; }
.login-error, .scan-error, .form-error { background: #fff1f1; border: 1px solid #f6cdcd; color: var(--bad); padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.demo-title { margin: 28px 0 10px; font-size: 12px; color: var(--text-3); text-align: center; position: relative; }
.demo-title::before, .demo-title::after { content: ''; position: absolute; top: 50%; width: 22%; height: 1px; background: var(--border); }
.demo-title::before { left: 0; } .demo-title::after { right: 0; }
.demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-list button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 9px; padding: 9px 11px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 1px; transition: .15s; }
.demo-list button:hover { border-color: var(--primary); background: var(--primary-soft); }
.demo-list b { font-size: 12.5px; color: var(--text); }
.demo-list span { font-size: 11.5px; color: var(--text-3); font-family: ui-monospace, monospace; }
.login-foot { margin-top: 26px; text-align: center; font-size: 12.5px; }

/* ---------- 应用框架 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 224px; flex: 0 0 224px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-logo { display: flex; align-items: center; gap: 9px; padding: 20px 18px; font-weight: 800; font-size: 17px; color: var(--primary); border-bottom: 1px solid var(--border); }
.side-logo .brand-icon { width: 30px; height: 30px; font-size: 17px; }
.nav-list { padding: 14px 10px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 11px; color: var(--text-3); font-weight: 700; letter-spacing: 1px; padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--text-2); padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; text-align: left; margin-bottom: 2px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); }
.nav-ico { width: 18px; text-align: center; font-size: 15px; }
.side-foot { padding: 14px; border-top: 1px solid var(--border); }
.side-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.side-user > div { display: flex; flex-direction: column; min-width: 0; }
.side-user b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { color: var(--text-3); font-size: 11.5px; }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 5; }
.topbar h2 { margin: 0; font-size: 18px; }
.page-desc { font-size: 12px; color: var(--text-3); }
.topbar-right { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #e7f7f0; }
.topbar-balance { margin-left: 14px; padding: 5px 11px; background: var(--primary-soft); color: var(--primary); border-radius: 20px; font-weight: 700; }
.content { padding: 22px 26px 46px; }

/* ---------- 内容区 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.kpi-label { font-size: 12.5px; color: var(--text-2); display: flex; justify-content: space-between; }
.kpi-value { font-size: 27px; font-weight: 800; margin-top: 9px; letter-spacing: -.5px; }
.kpi-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.kpi-ico { font-size: 17px; opacity: .75; }
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-bottom: 18px; }
.grid-2.equal { grid-template-columns: 1fr 1fr; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 15px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { margin: 0; font-size: 14.5px; }
.panel-head .muted { font-size: 12px; }
.panel-body { padding: 16px 18px; }
.chart { width: 100%; height: 190px; display: block; }
.chart-label { fill: #98a2b5; font-size: 10px; }
.dist { display: flex; flex-direction: column; gap: 13px; }
.dist-row { display: grid; grid-template-columns: 68px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; }
.dist-name { color: var(--text-2); }
.dist-track { height: 8px; background: #eef1f7; border-radius: 10px; overflow: hidden; }
.dist-track i { display: block; height: 100%; border-radius: 10px; }
.dist-val { text-align: right; font-weight: 700; color: var(--text-2); }

.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 15px; }
.toolbar .input { width: auto; min-width: 130px; padding: 8px 10px; }
.toolbar .search { min-width: 220px; }
.toolbar .spacer { flex: 1; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table .strong { font-weight: 700; }
.table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-2); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.link-btn { border: 0; background: transparent; color: var(--primary); cursor: pointer; padding: 0; font-weight: 600; font-size: 12.5px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--bad); }

.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.device-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.device-card h4 { margin: 0 0 4px; font-size: 15px; }
.device-card .device-meta { color: var(--text-3); font-size: 12px; margin-bottom: 12px; }
.device-card .price-line { display: flex; justify-content: space-between; align-items: baseline; padding-top: 11px; border-top: 1px solid var(--border); }
.price-line strong { color: var(--primary); font-size: 18px; }
.price-line small { color: var(--text-3); }
.device-card .btn { margin-top: 12px; }

.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.material-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.material-preview { height: 132px; background: linear-gradient(135deg, #e9ecfb, #f3f6ff); display: grid; place-items: center; overflow: hidden; position: relative; cursor: pointer; }
.material-preview::after { content: '🔍 点击预览'; position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(18, 26, 48, .72); color: #fff; font-size: 11px; line-height: 1.6; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.material-preview:hover::after { opacity: 1; }
.material-preview img { width: 100%; height: 100%; object-fit: cover; }
.material-fallback { color: var(--primary); font-size: 30px; font-weight: 800; opacity: .45; }
.material-fallback.video-bad { font-size: 12px; font-weight: 600; opacity: .85; color: var(--bad, #dc2626); padding: 0 16px; text-align: center; }
.material-info { padding: 13px 14px; }
.material-info h4 { margin: 0 0 6px; font-size: 13.5px; }
.material-info p { margin: 0 0 10px; font-size: 11.5px; color: var(--text-3); }

.schedule-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f2f7; }
.schedule-item:last-child { border-bottom: 0; }
.slot { background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 7px; white-space: nowrap; }
.schedule-item .info { flex: 1; min-width: 0; }
.schedule-item .info b { font-size: 13px; }
.schedule-item .info small { display: block; color: var(--text-3); font-size: 11.5px; }

/* ---------- 弹窗 & 提示 ---------- */
.mask { position: fixed; inset: 0; background: rgba(20, 28, 48, .42); display: grid; place-items: center; z-index: 100; padding: 20px; backdrop-filter: blur(2px); }
.modal { width: 100%; max-width: 460px; background: var(--surface); border-radius: 14px; box-shadow: 0 20px 60px rgba(18, 26, 48, .22); max-height: 90vh; display: flex; flex-direction: column; animation: pop .18s ease-out; }
.modal-wide { max-width: 640px; }
.modal-sm { max-width: 380px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-form { display: flex; flex-direction: column; min-height: 0; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .field:only-child, .form-grid .field.full { grid-column: 1 / -1; }
.confirm-text { margin: 0; color: var(--text-2); line-height: 1.8; }
#toastHost { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 9px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ok); color: var(--text); padding: 12px 18px; border-radius: 9px; box-shadow: 0 10px 30px rgba(18,26,48,.14); font-size: 13.5px; min-width: 220px; animation: pop .2s ease-out; }
.toast-bad { border-left-color: var(--bad); }
.toast-warn { border-left-color: var(--warn); }
.toast.out { opacity: 0; transform: translateX(20px); transition: .3s; }

/* ---------- 移动端扫码页 ---------- */
.scan-body { background: #eef1f8; }
.scan-wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 30px; box-shadow: 0 0 40px rgba(20,30,60,.06); }
.scan-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--border); }
.scan-head-tag { font-size: 11.5px; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 20px; font-weight: 700; }
.scan-loading { padding: 80px 20px; text-align: center; color: var(--text-3); }
.scan-device { margin: 16px 14px 0; background: linear-gradient(135deg, #4f46e5, #6d63f0); color: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 10px 26px rgba(79,70,229,.2); }
.device-hero h2 { margin: 8px 0 4px; font-size: 20px; }
.device-hero p { margin: 0; opacity: .85; font-size: 12.5px; }
.device-badge { display: inline-block; background: rgba(255,255,255,.2); border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; }
.device-meta-list { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); }
.device-meta-list div { display: flex; flex-direction: column; }
.device-meta-list b { font-size: 16px; }
.device-meta-list span { font-size: 11px; opacity: .8; }
.scan-card { margin: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.scan-card h3 { margin: 0 0 18px; font-size: 16px; }
.scan-price { display: flex; justify-content: space-between; align-items: center; background: var(--primary-soft); border-radius: 10px; padding: 13px 15px; margin: 6px 0 16px; }
.scan-price span { color: var(--text-2); font-size: 13px; }
.scan-price strong { font-size: 23px; color: var(--primary); }
.scan-tip { text-align: center; color: var(--text-3); font-size: 11.5px; margin: 12px 0 0; }
.scan-foot { text-align: center; color: var(--text-3); font-size: 11px; padding: 18px 10px 0; }
.order-success { text-align: center; padding: 10px 0; }
.order-success .ok-icon { width: 56px; height: 56px; border-radius: 50%; background: #e7f7f0; color: var(--ok); display: grid; place-items: center; font-size: 28px; margin: 0 auto 14px; }
.order-success h3 { margin: 0 0 8px; }
.order-success p { color: var(--text-2); font-size: 13px; line-height: 1.8; }
.order-success .order-no { font-family: ui-monospace, monospace; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; display: inline-block; margin: 8px 0; font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2.equal { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .sidebar { width: 62px; flex-basis: 62px; }
  .side-logo span:not(.brand-icon), .nav-item span:not(.nav-ico), .nav-group, .side-user div, .side-foot .btn { display: none; }
  .nav-item { justify-content: center; }
  .side-logo { justify-content: center; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- 支付渠道卡片 ---------- */
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.mode-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.mode-sandbox { background: var(--primary-soft); color: var(--primary); }
.mode-live { background: #e7f7f0; color: var(--ok); }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.channel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.channel-top { display: flex; align-items: center; gap: 12px; }
.channel-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 700; background: #64748b; }
.channel-ico.ch-wechat { background: #07a75b; }
.channel-ico.ch-alipay { background: #1677ff; }
.channel-ico.ch-offline { background: #b45309; }
.channel-ico.ch-unionpay { background: #b91c1c; }
.channel-name { flex: 1; min-width: 0; }
.channel-name h4 { margin: 0; font-size: 14.5px; }
.channel-name span { font-size: 11.5px; }
.channel-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin: 16px 0 12px; }
.channel-meta > div { display: flex; flex-direction: column; min-width: 0; }
.channel-meta span { color: var(--text-3); font-size: 11.5px; }
.channel-meta b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-notify { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 11.5px; color: var(--text-3); }
.channel-notify code { color: var(--text-2); margin-left: 6px; word-break: break-all; }
.channel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }

/* ---------- 接口清单 ---------- */
.api-groups { display: flex; flex-direction: column; gap: 18px; }
.api-group h4 { margin: 0 0 9px; font-size: 13.5px; display: flex; align-items: baseline; gap: 8px; }
.api-group h4 .muted { font-size: 11.5px; font-weight: 400; }
.api-list { display: flex; flex-direction: column; gap: 2px; }
.api-row { display: grid; grid-template-columns: 56px minmax(200px, 1.1fr) 1.4fr 88px; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 7px; font-size: 12px; }
.api-row:nth-child(odd) { background: var(--surface-2); }
.method { font-size: 10.5px; font-weight: 800; text-align: center; padding: 3px 0; border-radius: 5px; letter-spacing: .3px; }
.method-get { background: #e7f1ff; color: #1d4ed8; }
.method-post { background: #e7f7f0; color: #0f9d6e; }
.method-patch { background: #fdf3e3; color: #b45309; }
.method-delete { background: #fdecec; color: #dc4b4b; }
.api-path { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--primary); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.api-path:hover { text-decoration: underline; }
.api-desc { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-auth { color: var(--text-3); font-size: 11px; text-align: right; }

/* ---------- 接入指引 / 结果弹窗 ---------- */
.guide-list { display: flex; flex-direction: column; gap: 13px; }
.guide-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; font-size: 12.5px; line-height: 1.75; }
.guide-list b { color: var(--primary); font-weight: 700; }
.guide-list span { color: var(--text-2); }
.guide-list.gate-list > div { grid-template-columns: 236px 1fr; }
.guide-list.gate-list b { white-space: normal; }
.result-body { max-height: 66vh; }
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-row { display: grid; grid-template-columns: 22px 116px 1fr; align-items: start; gap: 8px; padding: 7px 9px; border-radius: 6px; font-size: 12.5px; }
.check-row:nth-child(odd) { background: var(--surface-2); }
.check-row b { color: var(--text-2); font-weight: 600; }
.check-row span { color: var(--text); word-break: break-all; }
.raw-box { background: #1b2434; color: #d7e0f5; padding: 12px 14px; border-radius: 8px; font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; max-height: 220px; overflow: auto; margin: 0; }

/* ---------- 模拟收银台 ---------- */
.cashier-body { background: #eef1f8; }
.cashier-wrap { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); box-shadow: 0 0 40px rgba(20,30,60,.06); display: flex; flex-direction: column; }
.cashier-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; background: var(--surface); border-bottom: 1px solid var(--border); }
.cashier-brand { display: flex; align-items: center; gap: 10px; }
.cashier-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.cashier-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.cashier-brand b { font-size: 14px; }
.cashier-brand small { color: var(--text-3); font-size: 11px; }
.cashier-card { flex: 1; margin: 18px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 22px; box-shadow: var(--shadow); }
.cashier-loading { padding: 90px 0; text-align: center; color: var(--text-3); }
.cashier-amount { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cashier-amount span { color: var(--text-2); font-size: 12.5px; }
.cashier-amount strong { font-size: 34px; color: var(--text); letter-spacing: -.5px; }
.cashier-amount small { color: var(--text-3); font-size: 11.5px; }
.cashier-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0; }
.cashier-qr svg { border: 1px solid var(--border); border-radius: 10px; padding: 8px; box-sizing: content-box; }
.cashier-qr p { margin: 0; color: var(--text-2); font-size: 12.5px; text-align: center; }
.cashier-info { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.cashier-info > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.cashier-info span { color: var(--text-3); }
.cashier-info b { font-weight: 600; word-break: break-all; }
.cashier-tip { background: var(--primary-soft); color: var(--primary); font-size: 11.5px; line-height: 1.7; border-radius: 8px; padding: 10px 12px; margin-top: 16px; }
.cashier-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.cashier-actions .btn, .cashier-actions a.btn { min-width: 150px; text-align: center; }
.cashier-actions a.btn:hover { text-decoration: none; }
.cashier-error { margin-top: 14px; background: #fdecec; color: var(--bad); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; }
.cashier-result { text-align: center; padding: 26px 0 6px; }
.cashier-ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; margin: 0 auto 16px; }
.cashier-ok .cashier-ico { background: #e7f7f0; color: var(--ok); }
.cashier-bad .cashier-ico { background: #fdecec; color: var(--bad); }
.cashier-result h2 { margin: 0 0 8px; font-size: 20px; }
.cashier-result p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.8; }
.cashier-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 22px; color: var(--text-3); font-size: 11px; }

@media (max-width: 1100px) {
  .channel-grid { grid-template-columns: 1fr; }
  .api-row { grid-template-columns: 52px 1fr 1fr; }
  .api-auth { display: none; }
}
@media (max-width: 560px) {
  .channel-meta { grid-template-columns: 1fr; }
  .api-row { grid-template-columns: 48px 1fr; }
  .api-desc { display: none; }
  .guide-list > div { grid-template-columns: 1fr; gap: 3px; }
  .check-row { grid-template-columns: 18px 92px 1fr; }
  .cashier-card { margin: 14px 10px; padding: 20px 14px; }
  .cashier-amount strong { font-size: 29px; }
}

/* ---- v2：审核分权与屏幕状态 ---- */
.audit-progress { margin-top: 5px; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.mini-tag { display: inline-block; min-width: 14px; margin: 0 3px; padding: 0 4px; border-radius: 4px; font-size: 11px; text-align: center; }
.mini-tag.ok { color: var(--ok); background: #e7f7f1; }
.mini-tag.bad { color: var(--bad); background: #fdeaea; }
.mini-tag.warn { color: var(--warn); background: #fdf3e3; }
.audit-tasks { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 13px; }
.audit-tasks > div { display: flex; align-items: baseline; gap: 8px; }
.audit-tasks > div > b { font-size: 23px; color: var(--primary); line-height: 1.2; }
.audit-tasks > div > span { color: var(--text-2); }
.audit-tasks > span.muted { margin-left: auto; }
@media (max-width: 900px) { .audit-tasks > span.muted { margin-left: 0; width: 100%; } }

/* ---- 安全加固：扫码结果的一次性初始密码 ---- */
.scan-pwd { margin: 10px 0 14px; padding: 12px 14px; border: 1px dashed var(--line, #d9e0ec); border-radius: 10px; background: var(--bg-2, #f7f9fc); font-size: 13px; line-height: 1.8; text-align: left; }
.scan-pwd b { color: var(--primary); letter-spacing: .5px; }
.scan-pwd small { color: var(--text-3); font-size: 11px; }

/* ---- 第八轮 D1：扫码先登录 / 注册成为正式广告主 ---- */
.auth-tabs { display: flex; gap: 8px; margin: 0 0 16px; padding: 4px; border-radius: 10px; background: var(--bg-2, #f7f9fc); }
.auth-tab { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-tab.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.scan-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-size: 13px; }
.scan-account b { color: var(--primary); }
.scan-flow { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 16px; }
.scan-flow span { flex: 1 1 auto; min-width: 68px; padding: 7px 4px; border-radius: 6px; background: var(--bg-2, #f7f9fc); color: var(--text-3); font-size: 11px; text-align: center; white-space: nowrap; }
.scan-flow span.is-now { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
@media (max-width: 380px) { .scan-flow span { min-width: 0; flex: 1 1 44%; } }

/* ================= 移动端后台（第七轮） ================= */
/* 桌面隐藏移动端专属控件；所有交互脚本均在外部模块内，符合 CSP script-src 'self' */
.menu-btn, .side-close, .side-mask, .scroll-tip { display: none; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title { min-width: 0; }

@media (max-width: 820px) {
  /* --- 抽屉式侧边栏 --- */
  .app { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 60;
    width: 272px; max-width: 84vw; flex-basis: auto; height: 100dvh;
    transform: translateX(-102%); transition: transform .24s ease;
    box-shadow: 10px 0 34px rgba(20, 28, 48, .18);
    background: var(--surface); will-change: transform;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open { overflow: hidden; }
  .side-mask { position: fixed; inset: 0; z-index: 55; background: rgba(20, 28, 48, .42); backdrop-filter: blur(2px); }
  body.nav-open .side-mask { display: block; }

  /* 覆盖旧的「62px 图标条」规则，恢复完整菜单文字与用户信息 */
  .sidebar .side-logo { justify-content: flex-start; padding: 16px 14px; }
  .sidebar .side-logo span:not(.brand-icon) { display: inline; }
  .sidebar .nav-group { display: block; }
  .sidebar .nav-item span:not(.nav-ico) { display: inline; }
  .sidebar .nav-item { justify-content: flex-start; padding: 12px 14px; font-size: 14px; margin-bottom: 3px; min-height: 44px; }
  .sidebar .nav-ico { font-size: 16px; }
  .sidebar .side-user > div { display: flex; }
  .sidebar .side-foot .btn { display: block; min-height: 42px; }
  .side-close {
    display: grid; place-items: center; margin-left: auto;
    width: 34px; height: 34px; border: 0; border-radius: 9px;
    background: var(--surface-2); color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer;
  }

  /* --- 顶栏 --- */
  .topbar { height: 58px; padding: 0 12px; }
  .topbar-left { gap: 10px; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; flex: 0 0 40px; padding: 0 9px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--text-2); }
  .menu-btn span:nth-child(2) { width: 75%; }
  .topbar h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-desc, .topbar-status, .dot-online { display: none; }
  .topbar-right { margin-left: auto; }
  .topbar-balance { margin-left: 0; font-size: 11.5px; padding: 4px 9px; white-space: nowrap; }

  /* --- 内容区 --- */
  .content { padding: 12px 12px calc(76px + env(safe-area-inset-bottom)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 22px; margin-top: 6px; }
  .kpi-label { font-size: 11.5px; }
  .grid-2, .grid-2.equal { gap: 12px; margin-bottom: 12px; }
  .panel-head { padding: 13px 14px; gap: 8px; }
  .panel-head h3 { font-size: 14px; }
  .panel-body { padding: 14px; }
  .chart { height: 160px; }
  .dist-row { grid-template-columns: 60px 1fr 36px; }
  .toolbar { gap: 7px; margin-bottom: 12px; }
  .toolbar .input { flex: 1 1 128px; min-width: 0; padding: 9px 10px; }
  .toolbar .search { flex-basis: 100%; min-width: 0; }
  .toolbar .spacer { display: none; }
  .toolbar .btn { padding: 9px 12px; }
  .table-wrap { -webkit-overflow-scrolling: touch; border-radius: 10px; }
  .table th, .table td { padding: 10px 12px; }
  .scroll-tip { display: block; font-size: 11px; color: var(--text-3); text-align: center; margin: -4px 0 8px; }
  .row-actions { gap: 9px; }
  .row-actions .btn-sm, .row-actions .link-btn { min-height: 32px; display: inline-flex; align-items: center; }
  .device-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
  .material-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .material-preview { height: 104px; }
  .channel-grid { grid-template-columns: 1fr; gap: 12px; }
  .api-row { grid-template-columns: 48px 1fr; }
  .api-desc, .api-auth { display: none; }
  .guide-list > div, .guide-list.gate-list > div { grid-template-columns: 1fr; gap: 2px; }
  .audit-tasks { gap: 14px; }
  .schedule-item { gap: 10px; flex-wrap: wrap; }

  /* --- 弹窗改为底部抽屉式 --- */
  .mask { padding: 0; align-items: flex-end; }
  .modal, .modal-wide, .modal-sm {
    max-width: 100%; max-height: 92dvh; border-radius: 16px 16px 0 0;
    animation: sheetUp .2s ease-out;
  }
  @keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
  .modal-head { padding: 15px 16px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; min-height: 44px; }
  .form-grid { grid-template-columns: 1fr; }
  .field { margin-bottom: 13px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .input { padding: 11px 12px; font-size: 16px; } /* 16px 防止 iOS 聚焦时自动放大 */
  #toastHost { top: 10px; left: 12px; right: 12px; }
  .toast { min-width: 0; width: 100%; box-sizing: border-box; }

  /* --- 登录页 --- */
  .login-page { min-height: 100dvh; }
  .login-panel { padding: 28px 18px calc(28px + env(safe-area-inset-bottom)); align-items: flex-start; }
  .login-box { max-width: 420px; margin: 0 auto; }
  .login-box h2 { font-size: 25px; }
  .login-sub { margin-bottom: 22px; }
  .demo-list button { min-height: 52px; }
  .login-foot { margin-top: 22px; }
}

@media (max-width: 380px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .topbar-balance { display: none; }
}

/* ================= 第七轮：广告播放预览 ================= */
.play-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 14px; padding: 14px 18px; border: 1px solid #dcdfff;
  background: linear-gradient(100deg, #eef0ff, #f8f9ff); border-radius: 12px;
}
.play-entry-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.play-entry-txt b { font-size: 14.5px; color: var(--primary); }
.play-entry-txt small { color: var(--text-2); font-size: 12px; }
.play-entry .btn { flex: 0 0 auto; }

.screen-mask {
  position: fixed; inset: 0; z-index: 150; background: rgba(12, 16, 28, .93);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.screen-shell {
  width: min(1080px, 100%); max-height: 96vh; display: flex; flex-direction: column;
  background: #171c2b; border: 1px solid #2b3348; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5); color: #e8edf9;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #2b3348; flex-wrap: wrap; }
.screen-title { font-weight: 700; font-size: 15px; }
.screen-title small { display: block; font-weight: 400; font-size: 11px; color: #9aa6c0; margin-top: 2px; }
.screen-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.screen-tools .input { width: auto; min-width: 190px; padding: 6px 9px; background: #222a3d; border-color: #3a4560; color: #e8edf9; font-size: 12.5px; }
.screen-tools .input option { background: #222a3d; color: #e8edf9; }
.screen-tools .btn { background: #222a3d; border-color: #3a4560; color: #e8edf9; font-size: 12.5px; padding: 6px 11px; }
.screen-tools .btn:hover { border-color: var(--primary); color: #fff; }
.screen-tools .btn-danger { color: #ff9d9d; border-color: #5a3a44; }
.screen-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px; gap: 12px; overflow: auto; }
.screen-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 62vh;
  background: #000; border: 1px solid #2b3348; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
}
.screen-frame img { width: 100%; height: 100%; object-fit: contain; }
.screen-frame:fullscreen { border: 0; border-radius: 0; max-height: none; background: #000; }
.screen-empty { color: #9aa6c0; text-align: center; line-height: 2; font-size: 16px; padding: 20px; }
.screen-empty small { font-size: 12px; color: #6f7b96; }
.screen-video-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11.5px; padding: 5px 10px; border-radius: 20px; }
.screen-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.screen-info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; background: #1f2638; border-radius: 8px; padding: 9px 12px; }
.screen-info span { font-size: 11px; color: #8e9ab5; }
.screen-info b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-info b small { font-weight: 400; color: #8e9ab5; font-size: 11px; }
.screen-foot { padding: 10px 16px; border-top: 1px solid #2b3348; font-size: 12px; color: #9aa6c0; text-align: center; }

@media (max-width: 820px) {
  .play-entry { flex-direction: column; align-items: stretch; gap: 10px; padding: 13px 14px; }
  .play-entry .btn { width: 100%; min-height: 42px; }
  .screen-mask { padding: 0; }
  .screen-shell { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .screen-top { padding: 10px 12px; gap: 10px; flex-direction: column; align-items: stretch; }
  .screen-title { font-size: 14px; }
  .screen-tools { width: 100%; gap: 6px; }
  .screen-tools .input { flex: 1 1 100%; min-width: 0; font-size: 16px; padding: 9px 10px; }
  .screen-tools .btn { flex: 1 1 auto; min-height: 40px; font-size: 12px; padding: 7px 8px; }
  .screen-stage { padding: 12px; }
  .screen-frame { max-height: none; }
  .screen-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .screen-info > div { padding: 8px 10px; }
  .screen-info b { font-size: 12px; }
  .screen-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); font-size: 11px; }
}

/* 第十五轮：屏幕实拍照片（列表缩略图 / 上传预览 / 大图查看） */
.screen-photo { width: 72px; height: 48px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg); cursor: zoom-in; }
.screen-photo:hover { outline: 2px solid var(--primary); }
.photo-preview { display: block; width: 100%; max-height: 190px; object-fit: contain; margin-top: 8px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.photo-preview[hidden] { display: none; }
.photo-large { text-align: center; }
.photo-large img { max-width: 100%; max-height: 60vh; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--border); }
.field input[type="file"] { padding: 7px 8px; font-size: 12.5px; }

/* 第十八轮：广告素材本地上传（图片 / 视频）预览 */
.upload-preview { margin: 8px 0 4px; }
.upload-preview[hidden], .upload-inline[hidden] { display: none; }
.upload-preview img, .upload-preview video,
.upload-inline img, .upload-inline video { display: block; width: 100%; max-height: 210px;
  object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: #10131a; }
.upload-inline { margin-top: 8px; }
.upload-status { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }
.upload-status[hidden] { display: none; }
.upload-status.ok { color: #15803d; }
.upload-status.bad { color: var(--bad, #dc2626); }
.material-preview video { width: 100%; height: 100%; object-fit: cover; background: #10131a; }
.order-owner small { display: block; font-size: 12px; line-height: 1.5; }

/* 第十九轮：订单素材缩略图 + 真实地址 + 系统示例素材警示标签 */
.mat-cell { display: flex; align-items: flex-start; gap: 8px; min-width: 168px; max-width: 240px; }
.mat-thumb { flex: none; width: 46px; height: 46px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg); }
.mat-thumb-empty, .mat-thumb-video { display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 17px; }
.mat-meta { min-width: 0; }
.mat-meta .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-meta small { display: block; font-size: 11.5px; line-height: 1.5; word-break: break-all; }
.mat-demo-tag { margin-top: 4px; font-size: 11px; padding: 1px 7px; }
/* 订单表列多，设最小宽度让其横向滚动，避免中文被挤成逐字竖排 */
.table-wrap-orders .table { min-width: 1240px; }
.table-wrap-orders .table th, .table-wrap-orders .table td { padding: 9px 10px; }
.table-wrap-orders .mat-cell { min-width: 190px; max-width: 250px; }



/* 备案信息页脚 */
.icp-foot, .scan-foot a, .cashier-foot a {
  font-size: 12px; color: #8a94a6; text-align: center;
}
.icp-foot { margin: 14px 0 4px; }
.icp-foot a, .scan-foot a, .cashier-foot a {
  color: #8a94a6; text-decoration: none; margin-left: 10px;
}
.icp-foot a:hover, .scan-foot a:hover, .cashier-foot a:hover { text-decoration: underline; }


/* 华宇智能品牌 logo */
.brand-logo { width: 168px; height: auto; display: block; }
.brand-mark-img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.side-mark { width: 30px; height: 30px; object-fit: contain; flex: none; }
.cashier-logo-img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.brand-icon-img { width: 28px; height: 28px; object-fit: contain; flex: none; }
@media (max-width: 860px) { .brand-logo { width: 120px; } }

/* 登录密码显示/隐藏切换（后台 + 扫码投放页共用；屏幕端在 screen.html 内联定义） */
.pwd-wrap { position: relative; display: block; width: 100%; }
.pwd-wrap input.input { padding-right: 44px; }
.pwd-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3, #94a3b8); cursor: pointer; padding: 0; }
.pwd-eye:hover { background: var(--bg, #f4f6fb); color: var(--text, #1c2536); }
.pwd-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pwd-eye.is-on { color: var(--primary, #4f46e5); }
/* 隐藏浏览器自带的密码明文按钮，只保留本系统统一的眼睛切换，避免同一输入框出现两个图标 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
input[type="password"]::-webkit-credentials-auto-fill-button { visibility: hidden; display: none !important; }
