/* css/style.css · 水大夫积分活动商城 全站样式（客户端 + 管理后台共用） */
:root {
  --navy: #07294d; --blue: #0f7bb5; --cyan: #21c7d6; --ink: #1b2b3a;
  --bg: #f2f6fa; --card: #ffffff; --line: #e3ecf3; --muted: #7b8ea0;
  --red: #e5484d; --green: #16a34a; --amber: #d97706; --gold: #c9a45c;
  --shadow: 0 2px 12px rgba(7, 41, 77, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; }
button { font-family: inherit; cursor: pointer; border: 0; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
a { color: var(--blue); text-decoration: none; }
.hidden { display: none !important; }

/* ===== 客户端外框 ===== */
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 64px; }
/* ===== 顶部品牌头部（大鲵格式：圆形 Logo + 中英文品牌名 + 右侧铃铛） ===== */
.app-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; padding: 11px 16px 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 2px 10px rgba(12,46,99,.25); }
.app-header .logo { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; background: linear-gradient(135deg, var(--cyan), #1aa6c4); color: #06294d; font-weight: 800; font-size: 21px; display: flex; align-items: center; justify-content: center; }
.app-header .ht-wrap { flex: 1; min-width: 0; }
.app-header .ht { font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: .5px; white-space: nowrap; }
.app-header .hs { font-size: 10px; opacity: .72; letter-spacing: 1px; margin-top: 2px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header .spacer { flex: 1; }
.app-header .ic-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); border: 0; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; position: relative; }
.app-header .ic-btn.bell .badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; font-weight: 700; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 60; }
.tabbar .tab { flex: 1; text-align: center; padding: 8px 0 10px; color: var(--muted); font-size: 11px; background: none; }
.tabbar .tab .ic { display: block; font-size: 20px; margin-bottom: 2px; }
.tabbar .tab .ic .svgi { width: 22px; height: 22px; vertical-align: 0; }
.tabbar .tab.on .ic .svgi { color: var(--blue); }
.tabbar .tab.on { color: var(--blue); font-weight: 600; }

/* ===== 首页 ===== */
.hero { background: linear-gradient(160deg, #7c0f0f 0%, #a31515 52%, #8a6d1a 100%); color: #fff; padding: 12px 14px 66px; position: relative; overflow: hidden; }
.hero-banner { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px rgba(60,8,8,.45); cursor: pointer; }
.hero-banner img { display: block; width: 100%; height: auto; }
.trade-banner { margin: 14px 14px 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.trade-banner img { display: block; width: 100%; height: auto; }
.count-card { margin: -58px 14px 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; position: relative; z-index: 5; }
.count-card .cc-head { display: flex; align-items: center; gap: 8px; }
.count-card .cc-head .st { font-size: 13px; font-weight: 700; }
.count-card .cc-head .wk { font-size: 11px; color: var(--muted); }
.count-lg { margin-top: 8px; display: flex; align-items: baseline; justify-content: center; gap: 4px; font-variant-numeric: tabular-nums; }
.count-lg b { font-size: 34px; color: var(--navy); min-width: 52px; text-align: center; }
.count-lg .u { color: var(--muted); font-size: 13px; }
.count-lg.ms b.msb { font-size: 30px; color: var(--cyan); min-width: 74px; }
.count-sub { text-align: center; color: var(--muted); font-size: 11px; margin-top: 4px; }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 14px 0; }
.entry-grid .eg { display: flex; flex-direction: column; align-items: center; gap: 7px; background: #fff; border-radius: 14px; padding: 14px 4px 11px; box-shadow: var(--shadow); color: var(--ink); }
.entry-grid .eg .ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 23px; border-radius: 14px; background: linear-gradient(135deg, #eaf3fc, #d9e9f8); box-shadow: inset 0 0 0 1px rgba(11, 77, 143, .06); color: var(--blue); }
.entry-grid .eg .ic .svgi { width: 24px; height: 24px; vertical-align: 0; }
.entry-grid .eg .tt { font-size: 11.5px; margin-top: 0; font-weight: 600; color: #24455f; letter-spacing: .5px; }
.rule-card { margin: 14px; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.rule-card h3 { font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.rule-card li { margin-left: 16px; color: #4a5c6e; font-size: 12px; line-height: 1.9; }
.brand-strip { margin: 0 14px 14px; border-radius: 12px; background: linear-gradient(120deg, #0a3a68, var(--blue)); color: #fff; padding: 14px 16px; font-size: 12px; line-height: 1.8; opacity: .95; }

/* ===== 活动馆（抢单） ===== */
.grab-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 18px 16px; }
.grab-hero h2 { font-size: 18px; }
.grab-hero .gh-sub { font-size: 12px; opacity: .8; margin-top: 4px; }
.hang-list { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hang-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hang-card img { width: 100%; height: 118px; object-fit: cover; background: #e8eef4; display: block; }
.hang-card .hc-body { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; }
.hang-card .hc-name { font-size: 11.5px; font-weight: 600; line-height: 1.45; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hang-card .hc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.hang-card .hc-pts { color: var(--red); font-weight: 700; font-size: 16px; margin: 0; white-space: nowrap; }
.hang-card .hc-pts small { color: var(--muted); font-weight: 400; font-size: 10px; margin-left: 4px; }
.hang-card .hc-foot .btn-grab { width: auto; flex: 0 0 auto; padding: 7px 15px; font-size: 12px; }
.btn-grab { width: 100%; padding: 8px 0; border-radius: 8px; background: linear-gradient(120deg, var(--blue), var(--cyan)); color: #fff; font-weight: 700; font-size: 13px; }
.btn-grab:disabled { background: #cfd8e0; color: #8b9aa8; }
.btn-grab.fc2-pulse { animation: fc2pulse 1.2s infinite; }
@keyframes fc2pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(33,199,214,.5); } 50% { box-shadow: 0 0 0 6px rgba(33,199,214,0); } }
.grab-tip { text-align: center; color: var(--muted); font-size: 12px; padding: 40px 20px; }

/* ===== 弹窗（居中，不贴底 —— 5.9 教训） ===== */
.mask { position: fixed; inset: 0; background: rgba(7, 25, 43, .55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 340px; max-height: 82vh; overflow-y: auto; padding: 18px; }
.modal h3 { font-size: 15px; color: var(--navy); text-align: center; margin-bottom: 12px; }
.modal .m-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.modal .m-row b.r { color: var(--red); }
.modal .m-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal .m-actions button { flex: 1; padding: 10px 0; border-radius: 8px; font-size: 14px; }
.btn-primary { background: linear-gradient(120deg, var(--blue), var(--cyan)); color: #fff; font-weight: 700; }
.btn-ghost { background: #eef2f6; color: #5a6b7c; }
.btn-danger { background: var(--red); color: #fff; }
.btn-warn { background: var(--amber); color: #fff; }

/* ===== 仓库四页签 ===== */
.seg { display: flex; background: #fff; margin: 12px 14px 0; border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 0; border-radius: 8px; color: var(--muted); font-size: 13px; position: relative; }
.seg button.on { background: var(--blue); color: #fff; font-weight: 600; }
.seg .cnt { position: absolute; top: 2px; right: 6px; background: var(--red); color: #fff; font-size: 9px; min-width: 14px; height: 14px; line-height: 14px; border-radius: 7px; padding: 0 3px; }
.wlist { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.wcard { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.wcard .wc-top { display: flex; justify-content: space-between; align-items: center; }
.wcard .wc-name { font-weight: 600; font-size: 13px; }
.wcard .wc-pts { color: var(--red); font-weight: 700; }
.wcard .wc-meta { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.7; }
.wcard .wc-ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wcard .wc-ops button { padding: 7px 14px; border-radius: 8px; font-size: 12px; }
.tag { display: inline-block; font-size: 10px; border-radius: 10px; padding: 2px 8px; }
.tag.hung { background: #e3f5f7; color: #0e8fa0; }
.tag.locked { background: #fdf1e2; color: #b06a00; }
.tag.pending { background: #e8f0fb; color: #2456a8; }
.tag.cleared { background: #e5f6ea; color: #17803c; }
.tag.warn { background: #fdecec; color: #c23438; }
.empty-box { text-align: center; color: var(--muted); padding: 46px 20px; font-size: 13px; }
.empty-box button { margin-top: 12px; padding: 9px 22px; border-radius: 20px; background: var(--blue); color: #fff; }

/* ===== 兑品商城 ===== */
.redeem-head { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 18px 16px; }
.redeem-head .bal { font-size: 28px; font-weight: 700; }
.redeem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.rp-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.rp-card img { width: 100%; height: 110px; object-fit: cover; background: #e8eef4; }
.rp-card .rp-body { padding: 8px 10px 10px; }
.rp-card .rp-cost { color: var(--amber); font-weight: 700; }
.rp-card button { width: 100%; margin-top: 6px; padding: 7px 0; border-radius: 8px; background: var(--navy); color: #fff; font-size: 12px; }
.rp-card button:disabled { background: #cfd8e0; color: #8b9aa8; }

/* ===== 个人中心 ===== */
.me-head { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 22px 16px 40px; }
.me-head .mh-name { font-size: 18px; font-weight: 700; }
.me-head .mh-phone { font-size: 12px; opacity: .8; margin-top: 2px; }
.pts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -26px 14px 0; position: relative; z-index: 5; }
.pts-grid .pg { background: #fff; border-radius: 12px; padding: 10px 4px; text-align: center; box-shadow: var(--shadow); }
.pts-grid .pg .pv { font-size: 15px; font-weight: 700; color: var(--navy); }
.pts-grid .pg .pl { font-size: 10px; color: var(--muted); margin-top: 2px; }
.me-menu { margin: 12px 14px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.me-menu .mm { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: none; width: 100%; text-align: left; font-size: 14px; color: var(--ink); }
.me-menu .mm:last-child { border-bottom: 0; }
.me-menu .mm .arr { margin-left: auto; color: #c3cdd7; }
.me-menu .mm .svgi { width: 17px; height: 17px; color: var(--blue); flex: 0 0 auto; }
.acc-avatar .svgi { width: 24px; height: 24px; vertical-align: 0; }
.ic-btn .svgi { width: 19px; height: 19px; vertical-align: 0; }
.cfg-group h4 { display: flex; align-items: center; gap: 6px; }
.cfg-group h4 .svgi { width: 15px; height: 15px; color: var(--blue); }
.login-card { margin: 30px 20px; background: #fff; border-radius: 14px; padding: 22px 18px; box-shadow: var(--shadow); }
.login-card h2 { text-align: center; color: var(--navy); font-size: 18px; margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fafcfe; }
.field input:focus { border-color: var(--blue); }
.field .hint { font-size: 11px; margin-top: 3px; }
.field .hint.ok { color: var(--green); }
.field .hint.err { color: var(--red); }
.btn-block { width: 100%; padding: 12px 0; border-radius: 10px; font-size: 15px; font-weight: 700; }
.link-line { text-align: center; margin-top: 12px; font-size: 13px; }
.sign-pad { border: 1px dashed #b9c7d4; border-radius: 8px; background: #fff; touch-action: none; width: 100%; height: 130px; display: block; }
.agree-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 6px 0; }
.agree-item a { font-size: 12px; }

/* ===== 协议全文（签字页内嵌） ===== */
.ag-tip { font-size: 11px; color: #7b8ea1; background: #eef4fa; border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; line-height: 1.5; }
.ag-card { border: 1px solid #dde7f0; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.ag-head { display: flex; align-items: center; gap: 7px; padding: 9px 10px; background: #f5f9fd; }
.ag-head input { width: 16px; height: 16px; flex: none; accent-color: #0b4d8f; }
.ag-head label { flex: 1; font-size: 12.5px; color: var(--navy); font-weight: 600; line-height: 1.4; }
.ag-arrow { flex: none; font-size: 11px; color: #0b4d8f; background: #e3eefa; border: 0; border-radius: 20px; padding: 3px 9px; }
.ag-body { max-height: 138px; overflow-y: auto; padding: 8px 10px 6px; background: #fff; -webkit-overflow-scrolling: touch; }
.ag-body.off { display: none; }
.ag-t { font-size: 12px; font-weight: 700; color: var(--navy); text-align: center; padding: 2px 0 6px; border-bottom: 1px dashed var(--line); margin-bottom: 6px; }
.ag-p { font-size: 11.5px; line-height: 1.62; color: #3d5468; margin: 0 0 6px; }
.ag-p b { color: #0b4d8f; }
.ag-end { text-align: center; font-size: 10.5px; color: #a3b4c4; padding: 2px 0 4px; }
.sign-wrap { position: relative; }
.sign-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; letter-spacing: 3px; color: #cfdae6; pointer-events: none; user-select: none; transition: opacity .2s; }
.sign-hint.off { opacity: 0; }
.sign-tip { font-size: 10.5px; color: #a5561f; margin-top: 4px; line-height: 1.5; }

/* ===== 差额结算 / 服务费 ===== */
.diff-hero { margin: 14px; border-radius: 14px; padding: 20px 16px; color: #fff; text-align: center; }
.diff-hero.pos { background: linear-gradient(135deg, #0e7d43, #16a34a); }
.diff-hero.neg { background: linear-gradient(135deg, #a53238, var(--red)); }
.diff-hero.zero { background: linear-gradient(135deg, #47617a, #6b8299); }
.diff-hero .dv { font-size: 34px; font-weight: 800; }
.diff-hero .dl { font-size: 12px; opacity: .85; margin-top: 4px; }
.notice-bar { background: #fff7e8; color: #9a6a00; border: 1px solid #f3e2b8; border-radius: 10px; padding: 10px 12px; font-size: 12px; margin: 12px 14px 0; line-height: 1.7; }

/* ===== 消息 ===== */
.msg-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg-item { background: #fff; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.6; box-shadow: var(--shadow); }
.msg-item.unread { border-left: 3px solid var(--blue); }
.msg-item .mt { color: var(--muted); font-size: 11px; margin-top: 4px; }

/* ===== 离线重试条 ===== */
.retry-bar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #b3261e; color: #fff; text-align: center; padding: 9px 12px; font-size: 12px; z-index: 200; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(7, 25, 43, .88); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 13px; z-index: 300; max-width: 80vw; }
.qr-box { display: flex; justify-content: center; padding: 8px 0; }
.qr-box img, .qr-box svg { border-radius: 8px; }
.qr-err { color: var(--red); font-size: 12px; }

/* ===== 全站 SVG 图标 ===== */
.svgi { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }

/* ===== 管理后台 ===== */
.admin-wrap { display: flex; min-height: 100vh; align-items: stretch; }
/* 侧边栏 sticky 固定：长页面滚动时菜单不跟着走 */
.admin-side { width: 200px; position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #061f38 0%, #0a3a68 100%); color: #dbe7f2; flex-shrink: 0; display: flex; flex-direction: column; box-shadow: 4px 0 18px rgba(4, 20, 38, .3); z-index: 40; }
.admin-side .as-brand { padding: 18px 16px; font-weight: 700; color: #fff; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 8px; }
.admin-side .as-brand .svgi { width: 20px; height: 20px; color: var(--cyan); flex: 0 0 auto; }
.admin-side .as-brand small { display: block; font-weight: 400; font-size: 10px; opacity: .65; margin-top: 2px; }
.admin-side nav { flex: 1; padding: 10px 0; overflow-y: auto; }
.admin-side nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 16px; background: none; color: #c3d5e6; font-size: 13.5px; border-left: 3px solid transparent; transition: background .15s, color .15s; }
.admin-side nav button .svgi { width: 17px; height: 17px; flex: 0 0 auto; opacity: .8; }
.admin-side nav button:hover { color: #fff; background: rgba(255,255,255,.07); }
.admin-side nav button.on { color: #fff; background: linear-gradient(90deg, rgba(33,199,214,.22), rgba(255,255,255,.05)); border-left-color: var(--cyan); font-weight: 600; }
.admin-side nav button.on .svgi { color: var(--cyan); opacity: 1; }
.admin-side .as-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.admin-side .as-foot button { background: rgba(255,255,255,.14); color: #fff; padding: 6px 12px; border-radius: 6px; width: 100%; margin-top: 6px; }
.admin-main { flex: 1; padding: 18px 22px; overflow-x: auto; }
.admin-main h2 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat-card .sv { font-size: 22px; font-weight: 800; color: var(--navy); }
.stat-card .sl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.panel { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.panel h3 { font-size: 14px; color: var(--navy); margin-bottom: 10px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 12px; }
table.tb th { background: #f4f8fb; color: #5a6b7c; text-align: left; padding: 8px 10px; white-space: nowrap; position: sticky; top: 0; }
table.tb td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tb tr:hover td { background: #fafcff; }
.tb-wrap { overflow-x: auto; }
.mini-btn { padding: 4px 10px; border-radius: 6px; font-size: 11px; background: #eef2f6; color: #33475b; margin: 2px 2px 2px 0; white-space: nowrap; }
.mini-btn.p { background: var(--blue); color: #fff; }
.mini-btn.r { background: #fdecec; color: var(--red); }
.mini-btn.g { background: #e5f6ea; color: #17803c; }
.mini-btn.o { background: #fdf1e2; color: #b06a00; }
.admin-login { max-width: 360px; margin: 90px auto; background: #fff; border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.admin-login h1 { text-align: center; color: var(--navy); font-size: 20px; margin-bottom: 4px; }
.admin-login .sub { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cfg-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.cfg-group h4 { font-size: 12px; color: var(--blue); margin-bottom: 8px; }
.wd-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-checks label { border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; background: #fff; }
.wd-checks label.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.dirty-tip { background: #fff7e8; border: 1px solid #f3e2b8; color: #9a6a00; border-radius: 8px; padding: 8px 12px; font-size: 12px; margin-bottom: 10px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.filter-bar input, .filter-bar select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; }
.net-zero { font-size: 12px; color: var(--muted); }
.net-zero b.ok { color: var(--green); }
.net-zero b.bad { color: var(--red); }
.img-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #eef2f6; }

/* ===== 后台通用弹窗（代挂/代抢选择） ===== */
.adm-mask { position: fixed; inset: 0; background: rgba(12,26,42,.55); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.adm-dlg { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 18px 50px rgba(8,24,40,.35); }
.adm-dlg h3 { font-size: 16px; margin: 0 0 10px; color: #0f2f52; }
.pk-tip { font-size: 12px; color: #6b7c8f; background: #f4f8fc; border-radius: 8px; padding: 8px 11px; margin-bottom: 12px; line-height: 1.6; }
.pk-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.pk-item { display: flex; align-items: center; gap: 11px; border: 1.5px solid #e3eaf1; border-radius: 10px; padding: 8px 11px; cursor: pointer; transition: .15s; background: #fff; }
.pk-item:hover { border-color: #b9d4ea; background: #fafcff; }
.pk-item.on { border-color: #1f8b4c; background: #f2fbf5; box-shadow: 0 0 0 2px rgba(31,139,76,.1); }
.pk-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; background: #eef2f6; flex: 0 0 auto; }
.pk-main { flex: 1; min-width: 0; }
.pk-name { font-size: 13px; font-weight: 600; color: #17324f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-sub { font-size: 11.5px; color: #7a8b9c; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-chk { width: 18px; height: 18px; border-radius: 50%; background: #e8eef4; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pk-item.on .pk-chk { background: #1f8b4c; }
.pk-pts { font-size: 15px; font-weight: 800; color: #c23438; flex: 0 0 auto; }
.pk-pts small { font-size: 10px; font-weight: 400; color: #8b9aa8; margin-left: 2px; }
.pk-field { margin-top: 13px; display: flex; align-items: center; gap: 10px; background: #fdf8ee; border: 1px solid #f2e3c4; border-radius: 10px; padding: 11px 13px; }
.pk-field label { font-size: 12.5px; color: #8a6a25; white-space: nowrap; }
.pk-field input { flex: 1; border: 1.5px solid #e6c886; border-radius: 8px; padding: 8px 11px; font-size: 15px; font-weight: 700; color: #a5641a; background: #fff; }
.pk-field input:focus { outline: none; border-color: #d9a441; }
.pk-sum { margin-top: 11px; font-size: 12.5px; color: #41566b; line-height: 1.9; }
.pk-sum b { color: #17324f; }
.pk-ops { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.pk-ops .mini-btn { padding: 9px 20px; font-size: 13px; }

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; flex-direction: row; align-items: center; overflow-x: auto; position: sticky; top: 0; height: auto; box-shadow: 0 3px 12px rgba(4,20,38,.3); }
  .admin-side .as-brand { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
  .admin-side nav { display: flex; padding: 0; }
  .admin-side nav button { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 12px 12px; }
  .admin-side nav button .svgi { width: 15px; height: 15px; }
  .admin-side nav button.on { border-bottom-color: var(--cyan); }
  .admin-side .as-foot { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   说明书 V10831 版式对齐（第 1 章客户端截图 1:1 复刻）
   ============================================================ */
/* 弹窗右上角 × */
.modal { position: relative; }
.modal .m-x { position: absolute; top: 10px; right: 12px; background: none; color: #9fb0c0; font-size: 20px; line-height: 1; padding: 2px 6px; }

/* ---- 个人中心（1.8 / p21 p25） ---- */
.me-head2 { background: linear-gradient(135deg, var(--navy), var(--blue)); padding: 4px 14px 16px; }
.acc-card { background: linear-gradient(120deg, #17407c, #2262b8); border-radius: 14px; padding: 16px 14px; display: flex; align-items: center; gap: 12px; color: #fff; box-shadow: 0 4px 14px rgba(9,40,80,.35); }
.acc-avatar { width: 46px; height: 46px; border-radius: 50%; background: #d7e6f7; color: #2262b8; font-size: 24px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.acc-info { flex: 1; min-width: 0; }
.acc-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-tag { font-size: 10px; background: rgba(9,30,60,.55); border: 1px solid rgba(255,255,255,.35); border-radius: 9px; padding: 1px 8px; font-weight: 400; }
.acc-phone { font-size: 12px; opacity: .85; margin-top: 3px; }
.acc-btns { display: flex; flex-direction: column; gap: 7px; }
.gold-btn { background: linear-gradient(120deg, #f6b422, #e8a012); color: #fff; font-size: 12px; font-weight: 700; border-radius: 16px; padding: 7px 14px; white-space: nowrap; box-shadow: 0 2px 6px rgba(160,110,0,.35); }
.sec-card { background: #fff; border-radius: 14px; margin: 12px 14px 0; padding: 14px; box-shadow: var(--shadow); }
.sec-title { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sec-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--blue); }
.pts-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.pts-tiles .pt { border-radius: 11px; padding: 12px 4px 10px; text-align: center; background: linear-gradient(140deg, #1d4f9e, #2a6bc4); color: #fff; }
.pts-tiles .pt.gold { background: linear-gradient(140deg, #e8a90f, #f3bf35); }
.pts-tiles .pt b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.pts-tiles .pt span { display: block; font-size: 10px; opacity: .85; margin-top: 3px; }
.pts-note { color: var(--muted); font-size: 11px; margin-top: 10px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 8px 13px; text-align: center; box-shadow: 0 2px 8px rgba(7,41,77,.06); display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); }
.svc .si { font-size: 26px; line-height: 1; }
.svc .si .svgi { width: 27px; height: 27px; vertical-align: 0; color: var(--blue); }
.svc b { font-size: 13px; font-weight: 700; }
.svc .ss { font-size: 11px; color: var(--muted); }
.svc .ss.red { color: var(--red); font-weight: 600; }
.svc .ss.gold { color: #b06a00; font-weight: 600; }

/* ---- 今日差额结算明细（1.5 / p20） ---- */
.dlg-title { font-size: 16px; font-weight: 700; color: var(--ink); padding: 14px 16px 10px; display: flex; align-items: center; }
.diff-banner { margin: 0 14px; background: linear-gradient(120deg, #fdf3df, #fbe9c4); border: 1px solid #f3ddb0; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.diff-banner .db-left { font-size: 12px; color: #6b5518; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.diff-banner .db-tag { background: #7a5b10; color: #fff; font-size: 10px; border-radius: 8px; padding: 1px 7px; font-weight: 400; }
.diff-banner .db-num { font-size: 24px; font-weight: 800; color: var(--red); }
.info-bar { margin: 10px 14px 0; background: #e9f2fd; border-radius: 10px; padding: 9px 12px; font-size: 12px; color: #2a5da8; }
.fee-card { margin: 12px 14px 0; background: #fff; border: 1.5px solid #f4c9c9; border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow); }
.fee-card .fc-head { color: var(--red); font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.fee-card .fc-sub { display: flex; align-items: center; justify-content: space-between; background: #fdf6f6; border-radius: 9px; padding: 8px 10px; font-size: 12.5px; }
.fee-card .fc-sub b { color: var(--ink); }
.fee-card .fc-orders { padding: 8px 2px 2px; }
.fee-card .o-line { font-size: 12.5px; padding: 4px 0; display: flex; gap: 8px; align-items: baseline; }
.fee-card .o-line b { color: var(--ink); }
.fee-card .o-line span { color: var(--muted); font-size: 11.5px; }
.fee-card .o-warn { color: var(--red); font-size: 11px; margin: 2px 0 2px 2px; }
.fee-card .fc-line { font-size: 12px; color: #5a6b7c; padding: 6px 2px; }
.fee-card .fc-due { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 2px 8px; }
.fee-card .fc-due span { font-size: 12px; color: #5a6b7c; }
.fee-card .fc-due b { font-size: 26px; font-weight: 800; color: var(--red); }
.up-row { display: flex; gap: 8px; }
.up-row button { flex: 1; border: 1.5px solid #e8b64c; background: #fffbf2; color: #9a6a00; border-radius: 9px; padding: 9px 0; font-size: 12px; font-weight: 600; }
.btn-done { width: 100%; margin-top: 9px; background: linear-gradient(120deg, #f6b422, #e8a012); color: #fff; font-weight: 700; border-radius: 9px; padding: 11px 0; font-size: 14px; }
.recv-card { margin: 12px 14px 0; background: #fff; border: 1px solid #cfe6d4; border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow); }
.recv-card .rc-head { color: #17803c; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.recv-card .rc-empty { color: var(--muted); font-size: 12px; padding: 8px 0 4px; }
.fee-card .rc-empty { color: var(--muted); font-size: 12px; padding: 6px 0 2px; line-height: 1.6; }
.recv-item { background: #f7fcf8; border: 1px solid #ddeee2; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.recv-item .ri-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.recv-item .ri-top b.g { color: var(--green); font-size: 15px; }
.recv-item .ri-ops { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.plat-card { margin: 12px 14px 14px; background: #fff; border: 1px dashed #c9d6e2; border-radius: 12px; padding: 12px 14px; }
.plat-card .pc-head { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.plat-card .pc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #5a6b7c; line-height: 1.7; }
.plat-card .pc-row b { color: var(--red); font-size: 15px; white-space: nowrap; }

/* ---- 我的仓库（1.4 / p16-p18） ---- */
.wh-status { display: flex; align-items: center; gap: 7px; padding: 13px 16px 4px; font-size: 12px; color: #4a5c6e; flex-wrap: wrap; }
.wh-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px 0; }
.seg2 button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 9px 6px; font-size: 12.5px; color: #33475b; font-weight: 600; }
.seg2 button .svgi { width: 14px; height: 14px; vertical-align: -0.12em; }
.seg2 button.on .svgi { color: #fff; }
.seg2 button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ocard { background: #fff; border-radius: 13px; padding: 12px; box-shadow: var(--shadow); display: flex; gap: 11px; }
.ocard .oc-img { width: 64px; height: 64px; border-radius: 9px; object-fit: cover; background: #e8eef4; flex: 0 0 auto; }
.ocard .oc-body { flex: 1; min-width: 0; }
.ocard .oc-title { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; gap: 6px; align-items: baseline; }
.ocard .oc-no { color: var(--red); font-size: 13px; }
.ocard .oc-meta { font-size: 11.5px; color: #5a6b7c; margin-top: 3px; }
.ocard .oc-meta b.r { color: var(--red); }
.ocard .oc-tip { background: #f6f9fc; border-radius: 8px; color: #7b8ea0; font-size: 11px; line-height: 1.7; padding: 7px 9px; margin-top: 7px; }
.ocard .oc-tip b { color: #33475b; }
.ocard .oc-pay { font-size: 12.5px; color: #4a5c6e; margin-top: 7px; }
.ocard .oc-pay b { color: var(--red); font-size: 14px; }
.ocard .oc-ops { margin-top: 9px; display: flex; gap: 8px; flex-wrap: wrap; }
.ocard .oc-ops .btn-p { background: linear-gradient(120deg, var(--blue), #2a6bc4); color: #fff; border-radius: 8px; padding: 9px 16px; font-size: 12.5px; font-weight: 600; }
.ocard .oc-ops .btn-gold { background: linear-gradient(120deg, #f6b422, #e8a012); color: #fff; border-radius: 8px; padding: 9px 16px; font-size: 12.5px; font-weight: 700; }

/* ---- 积分馆顶部大卡（1.3 / p12） ---- */
.gh-card { margin: 12px 14px 0; background: linear-gradient(135deg, var(--navy), #1d5aa8); color: #fff; border-radius: 14px; padding: 15px 16px; box-shadow: var(--shadow); }
.gh-card .gh-row1 { display: flex; align-items: center; justify-content: space-between; font-size: 12px; opacity: .92; }
.gh-card .gh-st { background: rgba(255,255,255,.18); border-radius: 14px; padding: 3px 11px; font-size: 11px; font-weight: 700; }
.gh-card .count-lg b { color: #fff; font-size: 30px; }
.gh-card .count-lg .u { color: rgba(255,255,255,.75); }
.gh-card .count-lg.ms b.msb { color: #ffd766; }
.gh-card .gh-quota { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .85; margin-top: 10px; }
.mypts-chips { display: flex; gap: 8px; margin: 10px 14px 0; }
.mypts-chips .chip { flex: 1; background: #fff; border-radius: 10px; padding: 9px 4px; text-align: center; box-shadow: var(--shadow); }
.mypts-chips .chip b { display: block; font-size: 14px; color: var(--navy); }
.mypts-chips .chip span { font-size: 10px; color: var(--muted); }
.hang-card img { height: 118px; }

/* ---- 确认收款弹窗（p21） ---- */
.proof-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #f8fafc; margin: 8px 0; }
.proof-box .pb-label { font-size: 12px; color: #5a6b7c; margin-bottom: 6px; }
.proof-box img { width: 100%; max-height: 200px; object-fit: contain; border-radius: 6px; background: #fff; }
.proof-box .pb-zoom { text-align: center; color: var(--green); font-size: 11px; margin-top: 6px; }
.cf-note { background: #f6f9fc; border-radius: 9px; font-size: 11.5px; color: #5a6b7c; line-height: 1.8; padding: 9px 11px; margin: 8px 0; }
.m-row b.g { color: var(--green); }
.m-row b.r2 { color: var(--red); }
