* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6fb; color: #1b2437; font-size: 14px; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
button { cursor: pointer; }

.brand-mark { width: 46px; height: 46px; border-radius: 13px; background: #3b6ef6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.brand-mark.small { width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }

.btn { border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font-weight: 500; transition: .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: #3b6ef6; color: #fff; }
.btn-primary:hover { background: #2f5fe0; }
.btn-outline { background: #fff; border-color: #dce3f0; color: #33415d; }
.btn-outline:hover { border-color: #3b6ef6; color: #3b6ef6; }
.btn-ghost { background: #f2f5fc; color: #4b5b78; }
.btn-ghost:hover { background: #e8eefb; }
.btn-danger { background: #fff1f1; color: #c03b3b; border-color: #f6d3d3; }
.btn-danger:hover { background: #ffe4e4; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; display: block; }
.btn-link { background: none; border: none; color: #3b6ef6; padding: 2px 4px; font-size: 12px; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: #c03b3b; }

.inp, .sel, .ta { width: 100%; border: 1px solid #dce3f0; border-radius: 8px; padding: 9px 11px; background: #fff; color: #1b2437; outline: none; }
.inp:focus, .sel:focus, .ta:focus { border-color: #3b6ef6; box-shadow: 0 0 0 3px rgba(59,110,246,.1); }
.ta { min-height: 78px; resize: vertical; line-height: 1.6; }
.ta-large { min-height: 190px; }
.lbl { display: block; font-size: 12px; color: #6b768c; margin: 14px 0 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field-hint { font-size: 11px; color: #98a2b6; margin-top: 5px; line-height: 1.5; }
.geo-locate-box { min-height: 38px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border: 1px dashed #cfdcf5; background: #f7faff; border-radius: 8px; color: #3d5688; font-size: 12px; line-height: 1.55; }
.geo-locate-box .geo-locate-sub { font-size: 11px; color: #8a98b2; margin-top: 2px; }

.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-green { background: #e7f6ef; color: #137a58; }
.badge-red { background: #fdeaea; color: #b93535; }
.badge-orange { background: #fff2e0; color: #a2640c; }
.badge-blue { background: #e9f0ff; color: #2b5bc4; }
.badge-gray { background: #eef1f6; color: #6b768c; }
.badge-purple { background: #f0ecff; color: #6a4bc4; }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 48px 32px; }
.login-wrap.overlay { position: fixed; inset: 0; z-index: 60; max-width: none; margin: 0; padding: 30px 20px; background: #f4f6fb; overflow-y: auto; }
.login-brand { padding: 20px 0; }
.login-title { font-size: 30px; font-weight: 600; margin-top: 26px; letter-spacing: -.5px; }
.login-sub { color: #6b768c; margin-top: 10px; font-size: 15px; }
.login-points { list-style: none; padding: 0; margin: 34px 0 0; }
.login-points li { padding: 11px 0 11px 26px; position: relative; color: #45536e; border-bottom: 1px solid #e9edf5; }
.login-points li::before { content: ''; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: #3b6ef6; }
.login-foot { margin-top: 34px; font-size: 12px; color: #98a2b6; }
.login-card { background: #fff; border: 1px solid #e6eaf2; border-radius: 16px; padding: 32px; box-shadow: 0 12px 40px rgba(24,45,90,.06); }
.login-card-title { font-size: 20px; font-weight: 600; }
.login-card-desc { color: #6b768c; font-size: 13px; margin: 8px 0 22px; }
.login-card .btn-block { margin-top: 12px; }
.login-error { min-height: 20px; color: #c03b3b; font-size: 12px; margin-top: 12px; line-height: 1.5; }
.login-divider { text-align: center; margin: 20px 0 14px; position: relative; color: #98a2b6; font-size: 12px; }
.login-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e9edf5; }
.login-divider span { position: relative; background: #fff; padding: 0 12px; }
.login-note { font-size: 12px; color: #98a2b6; line-height: 1.6; margin-top: 14px; }

.app { min-height: 100vh; display: flex; }
.sidebar { width: 232px; flex: 0 0 232px; background: #12203c; color: #c8d4ea; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-logo { display: flex; align-items: center; gap: 11px; padding: 22px 20px 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
.side-logo-name { color: #fff; font-weight: 600; font-size: 16px; }
.side-logo-sub { color: #7185a8; font-size: 10px; letter-spacing: 1.4px; margin-top: 3px; }
.side-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.nav-group { color: #6f83a6; font-size: 11px; letter-spacing: 1px; padding: 16px 10px 8px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #b8c6de; font-size: 13px; cursor: pointer; margin-bottom: 2px; border: none; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: #3b6ef6; color: #fff; }
.nav-ico { width: 16px; text-align: center; font-size: 14px; opacity: .9; }
.nav-count { margin-left: auto; background: #e24b4a; color: #fff; border-radius: 10px; font-size: 10px; padding: 1px 6px; }
.side-bottom { padding: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.account-box { font-size: 12px; color: #9fb0cc; line-height: 1.6; word-break: break-all; }
.account-box strong { color: #fff; font-weight: 500; display: block; }
.side-logout { margin-top: 12px; width: 100%; background: rgba(255,255,255,.07); border: none; color: #b8c6de; padding: 8px; border-radius: 7px; font-size: 12px; }
.side-logout:hover { background: rgba(255,255,255,.14); }

.main { flex: 1; min-width: 0; }
.topbar { height: 76px; background: #fff; border-bottom: 1px solid #e6eaf2; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.page-title { font-size: 17px; font-weight: 600; }
.page-desc { font-size: 12px; color: #8a95a9; margin-top: 4px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.sync-time { font-size: 12px; color: #98a2b6; }
.view { padding: 24px 28px 48px; max-width: 1500px; }

.card { background: #fff; border: 1px solid #e6eaf2; border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 600; }
.card-sub { font-size: 12px; color: #8a95a9; margin-top: 4px; }
.section-gap { height: 6px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid #e6eaf2; border-radius: 12px; padding: 18px 18px 16px; }
.kpi-label { font-size: 12px; color: #8a95a9; }
.kpi-num { font-size: 28px; font-weight: 600; margin-top: 8px; letter-spacing: -.5px; }
.kpi-foot { font-size: 11px; color: #a7b0c0; margin-top: 6px; }
.kpi.alert .kpi-num { color: #e24b4a; }
.kpi.blue .kpi-num { color: #3b6ef6; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .inp, .toolbar .sel { width: auto; min-width: 150px; }
.toolbar .inp.search { min-width: 220px; }
.toolbar .spacer { flex: 1; }
.hint { background: #f0f5ff; border: 1px solid #dce8ff; color: #3d5688; border-radius: 9px; padding: 12px 14px; font-size: 12px; line-height: 1.7; margin-bottom: 16px; }
.hint.warn { background: #fff8ec; border-color: #f7e3bd; color: #8a5d12; }
.hint strong { font-weight: 600; }

.tbl-wrap { overflow-x: auto; border: 1px solid #e6eaf2; border-radius: 10px; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.tbl th { background: #f7f9fd; color: #6b768c; font-weight: 500; text-align: left; padding: 11px 14px; border-bottom: 1px solid #e6eaf2; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fafbff; }
.tbl .name { font-weight: 500; color: #1b2437; }
.tbl .sub { font-size: 11px; color: #98a2b6; margin-top: 4px; line-height: 1.5; }
.tbl .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #4b5b78; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .actions .btn-link { margin-left: 6px; }
.thumb { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #f1f3f7; border: 1px solid #e6eaf2; color: #a7b0c0; font-size: 15px; flex: 0 0 38px; overflow: hidden; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { font-size: 16px; }
.name-cell { display: flex; align-items: center; gap: 10px; }
.empty { text-align: center; padding: 48px 20px; color: #98a2b6; }
.empty-ico { font-size: 30px; opacity: .5; }
.empty-title { margin-top: 10px; font-size: 13px; }

.quota-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.quota-card { margin-bottom: 0; }
.quota-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.quota-name { font-weight: 600; font-size: 14px; }
.quota-meta { font-size: 11px; color: #98a2b6; margin-top: 5px; }
.quota-nums { display: flex; gap: 18px; margin: 16px 0 10px; font-size: 12px; color: #6b768c; }
.quota-nums b { color: #1b2437; font-weight: 600; font-size: 15px; display: block; margin-top: 3px; }
.progress { height: 7px; background: #eef1f7; border-radius: 10px; overflow: hidden; }
.progress-inner { height: 100%; background: #3b6ef6; border-radius: 10px; }
.progress-inner.warn { background: #e8963a; }
.quota-actions { display: flex; gap: 8px; margin-top: 16px; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13px; line-height: 1.7; }
.kv .k { color: #8a95a9; }
.kv .v { color: #33415d; word-break: break-all; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f3f8; font-size: 13px; }
.timeline li:last-child { border-bottom: none; }
.timeline .dot { width: 8px; height: 8px; border-radius: 50%; background: #3b6ef6; margin-top: 6px; flex: 0 0 8px; }
.timeline .meta { font-size: 11px; color: #98a2b6; margin-top: 4px; }
.timeline .txt { flex: 1; color: #33415d; line-height: 1.6; }

.tabs { display: inline-flex; background: #eef1f7; border-radius: 9px; padding: 3px; gap: 2px; margin-bottom: 16px; }
.tab { border: none; background: none; padding: 7px 16px; border-radius: 7px; font-size: 13px; color: #6b768c; }
.tab.active { background: #fff; color: #1b2437; box-shadow: 0 1px 3px rgba(20,40,80,.08); font-weight: 500; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; border: 1px solid #e6eaf2; border-radius: 9px; padding: 12px; max-height: 190px; overflow-y: auto; }
.check-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #45536e; cursor: pointer; }
.check-item input { accent-color: #3b6ef6; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #f0f3f8; }
.switch-row:last-child { border-bottom: none; }
.switch-row .t { font-size: 13px; font-weight: 500; }
.switch-row .d { font-size: 11px; color: #98a2b6; margin-top: 4px; }
.switch { position: relative; width: 42px; height: 23px; flex: 0 0 42px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d8dfea; border-radius: 20px; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: #3b6ef6; }
.switch input:checked + span::before { transform: translateX(19px); }

.modal-mask { position: fixed; inset: 0; background: rgba(16,28,54,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 620px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(10,24,54,.2); }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 14px; border-bottom: 1px solid #eef1f7; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-x { border: none; background: none; font-size: 24px; color: #98a2b6; line-height: 1; padding: 0 4px; }
.modal-body { padding: 6px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #eef1f7; }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px); background: #1b2437; color: #fff; padding: 11px 20px; border-radius: 9px; font-size: 13px; opacity: 0; pointer-events: none; transition: .22s; z-index: 200; max-width: 80vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #c03b3b; }

.inline-note { font-size: 12px; color: #8a95a9; line-height: 1.7; }
.stat-line { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: #6b768c; margin-top: 6px; }
.stat-line b { color: #1b2437; }
.code-block { background: #f7f9fd; border: 1px solid #e6eaf2; border-radius: 8px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #4b5b78; line-height: 1.7; word-break: break-all; }

/* 门店表单：图片直传 + 内嵌套餐编辑器 */
.img-field { border: 1px solid #e6eaf2; border-radius: 10px; padding: 12px; background: #fbfcfe; margin-top: 6px; }
.img-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.img-field-title { font-size: 12px; font-weight: 600; color: #3a465e; }
.img-pick { border: 1px dashed #b9c6e4; background: #fff; color: #3b6ef6; border-radius: 7px; padding: 5px 12px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.img-pick:hover { background: #f0f5ff; }
.img-previews { display: flex; flex-wrap: wrap; gap: 8px; min-height: 12px; }
.img-preview { position: relative; width: 82px; height: 82px; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f4; background: #f1f3f7; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 18px; text-align: center; border: none; border-radius: 50%; background: rgba(20,30,50,.72); color: #fff; font-size: 14px; cursor: pointer; padding: 0; }
.img-remove:hover { background: #c03b3b; }
.img-local-tag { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(20,30,50,.72); color: #fff; font-size: 10px; text-align: center; padding: 1px 0; }
.img-empty { font-size: 11px; color: #a3adbf; line-height: 82px; width: 100%; text-align: center; }
.img-hint { font-size: 11px; color: #98a2b6; line-height: 1.6; margin-top: 8px; }

.pkg-editor { border: 1px solid #e6eaf2; border-radius: 10px; padding: 12px; background: #fbfcfe; }
.pkg-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pkg-editor-title { font-size: 13px; font-weight: 600; color: #2b3a55; }
.pkg-item { background: #fff; border: 1px solid #e7ecf6; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.pkg-item:last-child { margin-bottom: 0; }
.pkg-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pkg-item-index { font-size: 12px; color: #8a95a9; font-weight: 600; min-width: 30px; }
.pkg-status { margin-left: auto; }
.pkg-toggle-btn { min-width: 76px; padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 7px; border: 1px solid transparent; cursor: pointer; }
.pkg-toggle-btn.on { background: #e7f6ef; color: #137a58; border-color: #bfe7d5; }
.pkg-toggle-btn.on:hover { background: #d3f0e3; }
.pkg-toggle-btn.off { background: #eef1f6; color: #6b768c; border-color: #dde3ee; }
.pkg-toggle-btn.off:hover { background: #e2e8f2; }
.pkg-del-btn { padding: 6px 10px; font-size: 12px; border-radius: 7px; border: 1px solid #f2d7d7; background: #fff6f6; color: #c03b3b; cursor: pointer; }
.pkg-del-btn:hover { background: #fdeaea; }
.pkg-shared { font-size: 11px; color: #a2640c; background: #fff2e0; border-radius: 5px; padding: 2px 7px; }
.pkg-add-btn { width: 100%; margin-top: 10px; padding: 10px; border: 1px dashed #b9c6e4; border-radius: 9px; background: #fff; color: #3b6ef6; font-size: 13px; font-weight: 600; cursor: pointer; }
.pkg-add-btn:hover { background: #f0f5ff; }
.pkg-empty { text-align: center; font-size: 12px; color: #98a2b6; padding: 18px 0; }
.store-pkg-cell { font-size: 12px; color: #4b5b78; line-height: 1.6; }
.store-pkg-cell .sub { color: #98a2b6; font-size: 11px; }
.pkg-count-badge { display: inline-block; background: #e9f0ff; color: #2b5bc4; border-radius: 5px; padding: 2px 7px; font-size: 11px; font-weight: 600; margin-right: 4px; }
.pkg-quick-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; font-size: 11px; color: #4b5b78; }
.pkg-quick-row .btn-xs { flex: 0 0 auto; }

/* 二维码分配流水查询：条件区、统计卡与结果范围 */
.stock-query { margin-top: 4px; }
.stock-query .card-head { margin-bottom: 10px; }
.stock-query-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.stock-query-row + .stock-query-row { margin-top: 2px; }
.stock-field { flex: 1 1 168px; min-width: 148px; }
.stock-field.grow { flex: 2 1 260px; }
.stock-field .lbl { margin-top: 8px; }
.stock-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.stock-actions .spacer { flex: 1; }
.stock-range { font-size: 12px; color: #6b768c; margin-bottom: 12px; }
.stock-range b { color: #1b2437; }
.stock-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stock-stat { background: #f7f9fd; border: 1px solid #e6eaf2; border-radius: 10px; padding: 12px 14px; }
.stock-stat span { display: block; font-size: 11px; color: #8a95a9; }
.stock-stat b { font-size: 20px; font-weight: 600; margin-right: 4px; color: #1b2437; }
.stock-stat b.up { color: #137a58; }
.stock-stat b.down { color: #b93535; }
.stock-stat em { font-style: normal; font-size: 11px; color: #98a2b6; }

/* 二维码码库：剩余空白码信息框 */
.qr-blank-box { border: 1px solid #dce8ff; background: #f7faff; margin-bottom: 16px; }
.qr-blank-box.is-low { border-color: #f7e3bd; background: #fffaf0; }
.qr-blank-box.is-empty { border-color: #f3cccc; background: #fff6f6; }
.qr-blank-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 28px; margin: 2px 0 14px; }
.qr-blank-number { font-size: 38px; font-weight: 600; line-height: 1; color: #137a58; }
.qr-blank-number.is-low { color: #a2640c; }
.qr-blank-number.is-empty { color: #b93535; }
.qr-blank-number em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: #8a95a9; margin-top: 7px; }
.qr-blank-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: #6b768c; }
.qr-blank-meta b { color: #1b2437; font-size: 14px; }
.qr-blank-def { font-size: 11px; color: #8a95a9; line-height: 1.7; margin: 2px 0 10px; }
.qr-blank-def b { color: #3d5688; font-weight: 600; }
.qr-blank-advice { font-size: 12px; line-height: 1.7; color: #3d5688; background: #fff; border: 1px solid #e6eaf2; border-radius: 9px; padding: 10px 12px; }
.qr-blank-box.is-low .qr-blank-advice { color: #8a5d12; border-color: #f7e3bd; }
.qr-blank-box.is-empty .qr-blank-advice { color: #a32d2d; border-color: #f3cccc; }
.qr-blank-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stock-bytype { font-size: 12px; color: #6b768c; margin-bottom: 14px; line-height: 1.8; }

/* 用户领取核销明细：按绑定用户分组卡片 + 核销逐笔列表 */
.member-user { background: #fbfcff; border-color: #dfe6f5; }
.member-user .card-head { margin-bottom: 12px; }
.member-meta { font-size: 12px; color: #6b768c; line-height: 1.8; margin-top: 6px; word-break: break-all; }
.member-user-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.member-sum { margin: 4px 0 14px; }
.verify-list { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.verify-line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 12px; }
.verify-line .verify-store { font-weight: 500; color: #1b2437; }
.verify-line .mono { font-size: 11px; color: #4b5b78; }
.verify-line .sub { width: 100%; margin-top: 0; }
.verify-line.revoked { opacity: .62; }
.tbl .remain { color: #137a58; font-weight: 600; }

/* 二维码码库：真实二维码缩略图、大图弹窗与打印清单 */
.qr-svg { display: block; background: #fff; }
.qr-thumb {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 4px; border: 1px solid #e3e8f0; border-radius: 10px;
    background: #fff; cursor: pointer; line-height: 0; transition: border-color .15s, box-shadow .15s;
}
.qr-thumb:hover { border-color: #3b6ef6; box-shadow: 0 2px 10px rgba(59, 110, 246, .15); }
.qr-thumb .qr-svg { width: 62px; height: 62px; }
.qr-thumb-issue { border-color: #dfe8ff; }
.qr-tbl td:first-child { width: 80px; }
.qr-tbl .sub.mono { font-size: 11px; color: #8a93a6; word-break: break-all; }
.qr-toolbar .stock-query-row { margin-bottom: 10px; }
.qr-detail { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.qr-detail-img {
    flex: 0 0 auto; padding: 12px; border: 1px solid #e3e8f0; border-radius: 14px; background: #fff;
}
.qr-detail-img .qr-svg { width: 260px; height: 260px; }
.qr-detail-info { flex: 1 1 260px; min-width: 240px; }
.qr-detail-code { font-size: 22px; font-weight: 800; color: #1b2434; margin-bottom: 14px; }
.qr-detail-label { font-size: 13px; color: #4a556b; line-height: 1.9; word-break: break-all; }
.qr-detail-label .mono { font-size: 12px; color: #2f5fe0; }
.qr-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* 首页滚图展示设置 */
.banner-thumb { width: 108px; height: 62px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #f1f3f7; border: 1px solid #e6eaf2; color: #a7b0c0; font-size: 20px; overflow: hidden; }
.banner-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.banner-thumb-empty { border-style: dashed; }
.banner-order { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 8px; background: #eef3ff; color: #3b6ef6; font-weight: 700; font-size: 13px; }
.banner-moves { margin-top: 6px; white-space: nowrap; }
.banner-moves .btn-link { padding: 0 6px 0 0; font-size: 11px; }
.banner-move-off { display: inline-block; color: #c8cedb; font-size: 11px; padding: 0 8px 0 0; }
.banner-stat { padding: 10px 12px; border: 1px solid #e6eaf2; border-radius: 9px; background: #fafbff; color: #4a556b; font-size: 13px; line-height: 1.8; }
.banner-stat b { color: #1b2434; font-size: 15px; }
.banner-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* A-Z 门店首字母检索（门店二维码库存表） */
.az-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 14px 0 4px; padding: 11px 13px; background: #f7f9fe; border: 1px solid #e6eaf2; border-radius: 10px; }
.az-label { font-size: 13px; font-weight: 600; color: #4a556b; margin-right: 6px; white-space: nowrap; }
.az-letter { min-width: 26px; height: 26px; padding: 0 5px; border: 1px solid #dce3ef; border-radius: 6px; background: #fff; color: #2f3a4d; font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; cursor: pointer; }
.az-letter:hover { border-color: #3b6ef6; color: #3b6ef6; }
.az-letter.active { background: #3b6ef6; border-color: #3b6ef6; color: #fff; }
.az-letter.off { color: #c2cad8; background: #fafbfe; }
.az-letter.off.active { background: #3b6ef6; border-color: #3b6ef6; color: #fff; }
.az-count { margin-left: auto; font-size: 12px; color: #8a93a6; white-space: nowrap; }

@media (max-width: 1000px) {
    .login-wrap { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
    .login-brand { display: none; }
    .sidebar { width: 68px; flex: 0 0 68px; }
    .side-logo { justify-content: center; padding: 18px 0; }
    .side-logo > div:last-child, .nav-group, .nav-item span:not(.nav-ico):not(.nav-count), .account-box, .side-logout { display: none; }
    .nav-item { justify-content: center; padding: 12px 0; }
    .nav-ico { font-size: 17px; }
    .view { padding: 18px 16px 40px; }
    .topbar { padding: 0 16px; }
    .field-row, .field-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .topbar { height: auto; padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .toolbar .inp, .toolbar .sel, .toolbar .inp.search { min-width: 100%; width: 100%; }
    .stock-field, .stock-field.grow { flex: 1 1 100%; min-width: 100%; }
    .stock-actions .spacer { display: none; }
    .member-user-actions { width: 100%; }
    .member-user-actions .btn { flex: 1 1 auto; }
    .az-label, .az-count { width: 100%; margin: 0 0 4px; }
    .az-letter { min-width: 22px; height: 24px; line-height: 22px; font-size: 11px; }
}

/* 备案号悬挂：链接工信部官网，公安备案号待审核通过后补入 */
.site-footer { padding: 14px 16px 18px; text-align: center; font-size: 12px; color: #8a8f98; line-height: 1.9; }
.site-footer a { color: #5a6472; text-decoration: none; margin: 0 4px; }
.site-footer a:hover { color: #2563eb; text-decoration: underline; }
.site-footer .sep { color: #c4c9d0; margin: 0 6px; }
.login-wrap + .site-footer { position: relative; z-index: 1; }

