/* ============ 商会智慧管理系统 正式版样式 ============ */
:root {
  --brand: #165DFF;      /* 品牌蓝 */
  --success: #00B42A;    /* 成功绿 */
  --warning: #FF7D00;    /* 警告橙 */
  --danger: #F53F3F;     /* 危险红 */
  --bg: #f2f3f5;
  --card: #ffffff;
  --border: #e5e6eb;
  --text: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--text); background: var(--bg); font-size: 14px; overflow-x: hidden; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--brand); text-decoration: none; }
.muted { color: var(--text-3); }
.pos { color: var(--success); }
.neg { color: var(--danger); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 6px; font-size: 14px; line-height: 20px; min-height: 36px; transition: all .15s; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: #0e42d2; }
.btn.secondary { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.btn.secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.warning { background: var(--warning); color: #fff; }
.btn.white { background: #fff; color: var(--brand); }
.btn.small { padding: 4px 12px; min-height: 30px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.is-saving { pointer-events: none; }
.text { color: var(--brand); padding: 4px 8px; border-radius: 4px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.text:hover { background: #165DFF10; }
.text.danger { color: var(--danger); }
.text.danger:hover { background: #F53F3F10; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--text-3); }
.icon-btn:hover { background: var(--bg); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ---------- 状态标签 ---------- */
.status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.status.success { background: #00B42A15; color: var(--success); }
.status.warning { background: #FF7D0015; color: var(--warning); }
.status.danger { background: #F53F3F15; color: var(--danger); }
.status.info { background: #165DFF15; color: var(--brand); }
.status.neutral { background: #86909c18; color: var(--text-3); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #00B42A15; color: var(--success); font-size: 12px; font-style: normal; margin-left: 6px; white-space: nowrap; }
.pill.off { background: #86909c15; color: var(--text-3); }
.rating-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 4px; font-size: 12px; border: 1px solid; white-space: nowrap; }
.rating-tag .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tel { color: var(--brand); }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9999; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.5); border: 1px solid rgba(229,230,235,.6); border-radius: 8px; padding: 10px 16px; box-shadow: 0 6px 24px rgba(0,0,0,.1); font-size: 17px; line-height: 1.5; text-align: center; animation: toastIn .2s ease; max-width: 88vw; }
.toast i { width: 22px; height: 22px; flex-shrink: 0; }
.toast span { word-break: break-all; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, calc(-50% - 10px)); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- 弹窗 ---------- */
.dialog-overlay { position: fixed; inset: 0; background: rgba(29,33,41,.55); z-index: 900; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 16px; overflow: auto; }
.dialog { background: #fff; border-radius: var(--radius); width: 100%; box-shadow: 0 12px 40px rgba(0,0,0,.18); animation: dialogIn .18s ease; display: flex; flex-direction: column; max-height: 86vh; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.dialog > header h2 { font-size: 16px; }
.dialog > main { padding: 20px; overflow-y: auto; flex: 1; }
.dialog > footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); }
.dialog > footer .detail-ops { margin-right: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.dialog > footer #md-edit { white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > span { font-size: 13px; color: var(--text-2); display: flex; align-items: center; }
.form-field > span .req { color: var(--danger); font-style: normal; margin-left: 3px; }
.form-field input, .form-field select, .form-field textarea { border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; outline: none; width: 100%; background: #fff; transition: border .15s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px #165DFF15; }
.form-field textarea { resize: vertical; }
.file-in { font-size: 13px; }
.hint { font-size: 12px; color: var(--text-3); }
.danger-text { color: var(--danger); }

/* 会员选择器（姓名模糊搜索） */
.picker { position: relative; }
.role-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.role-row .role-input { border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; outline: none; width: 170px; flex: none; background: #fff; }
.role-row .picker { flex: 1; }
.role-row .text { align-self: center; flex: none; }
.picker-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 6px; max-height: 220px; overflow: auto; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.picker-list button { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 8px 12px; }
.picker-list button:hover { background: #165DFF08; }
.picker-list button b { font-size: 13px; }
.picker-list button small { color: var(--text-3); font-size: 12px; }
.picker-empty { padding: 10px; color: var(--text-3); font-size: 13px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 48px; background: linear-gradient(135deg, #165DFF 0%, #0e42d2 55%, #0a2fa0 100%); padding: 24px; overflow-x: hidden; max-width: 100vw; box-sizing: border-box; }
/* 登录界面自适应：手机/平板/横屏/折叠屏（1024px 以下均用竖版布局，宽度自适应不超屏） */
@media (max-width: 1024px) {
  .login-wrap { flex-direction: column; gap: 20px; justify-content: flex-start; padding: 32px 16px 24px; min-height: 100vh; width: 100%; box-sizing: border-box; }
  .login-brand { max-width: none; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .login-brand h1 { font-size: 22px; }
  .login-mark { width: 52px; height: 52px; font-size: 26px; margin-bottom: 10px; }
  .login-panel { width: 100%; max-width: 480px; padding: 22px 18px; box-sizing: border-box; }
  .login-field input { width: 100%; box-sizing: border-box; }
  .login-tabs { flex-wrap: nowrap; }
  .login-tabs button { white-space: nowrap; }
  .reg-success-box b { word-break: break-all; }
}
@media (max-width: 480px) {
  .login-wrap { padding: 16px 10px 14px; gap: 12px; }
  .login-brand p { font-size: 13px; }
  .login-brand h1 { max-width: 100%; word-break: break-all; }
  .login-mark { width: 44px; height: 44px; font-size: 22px; margin-bottom: 8px; }
  .login-panel { padding: 16px 12px; border-radius: 10px; }
  .login-panel h2 { font-size: 17px; }
  .login-tabs { margin-bottom: 16px; }
  .login-sub { margin-bottom: 14px; }
  .login-field { font-size: 13px; margin-bottom: 12px; }
  .login-field input { padding: 10px; }
  .login-submit { padding: 11px; font-size: 15px; }
  .login-visitor { padding: 10px; font-size: 13px; }
}
.login-brand { color: #fff; max-width: 420px; }
.login-mark { width: 72px; height: 72px; border-radius: 18px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; margin-bottom: 24px; object-fit: contain; }
.login-brand h1 { font-size: 30px; margin-bottom: 4px; }
.login-brand-sub { font-size: 20px; font-weight: 700; margin-bottom: 10px; opacity: .92; }
.login-brand p { opacity: .8; }
.login-panel { background: #fff; border-radius: 12px; padding: 32px; width: 420px; max-width: 100%; box-sizing: border-box; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-tabs { display: flex; background: var(--bg); border-radius: 8px; padding: 4px; margin-bottom: 24px; }
.login-tabs button { flex: 1; padding: 8px; border-radius: 6px; color: var(--text-3); font-size: 14px; }
.login-tabs button.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.login-panel h2 { font-size: 20px; margin-bottom: 6px; }
.login-sub { color: var(--text-3); margin-bottom: 20px; font-size: 13px; }
.login-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.login-field input { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; outline: none; }
.login-field input:focus { border-color: var(--brand); }
.login-submit { width: 100%; background: var(--brand); color: #fff; border-radius: 6px; padding: 11px; font-size: 15px; font-weight: 600; margin-top: 4px; }
.login-submit:hover { background: #0e42d2; }
.login-visitor { width: 100%; background: #fff; color: var(--brand); border: 1px solid var(--brand); border-radius: 6px; padding: 10px; font-size: 14px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.login-visitor:hover { background: #f0f5ff; }
.reg-line { display: flex; justify-content: center; gap: 6px; margin-top: 16px; color: var(--text-3); font-size: 13px; }
.admin-line { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--border); }
.text-link { color: var(--brand); }
.reg-panel { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 18px; }
.reg-panel h3 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.reg-ok { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--success); font-size: 18px; line-height: 1.5; margin-bottom: 12px; text-align: center; flex-wrap: wrap; }
.reg-ok i { width: 22px; height: 22px; flex-shrink: 0; }
.reg-success { display: flex; flex-direction: column; gap: 12px; }
.reg-success-box { background: #f7f8fa; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.reg-success-box p { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.reg-success-box small { color: var(--text-3); }
.reg-success-box b { font-weight: 600; color: var(--brand); }
.reg-back { display: block; margin: 12px auto 0; font-size: 13px; }

/* ---------- PC 后台布局 ---------- */
.saas { display: flex; min-height: 100vh; }
.side { width: 224px; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid var(--border); }
.brand b { width: 36px; height: 36px; border-radius: 8px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.brand-logo { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.brand span { font-weight: 600; display: flex; flex-direction: column; line-height: 1.3; text-align: center; }
.brand small { color: var(--text-3); font-weight: 400; font-size: 12px; }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.side-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 6px; color: var(--text-2); font-size: 14px; margin-bottom: 2px; text-align: left; }
.nav-badge { background: var(--danger); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; margin-left: auto; line-height: 18px; min-width: 18px; text-align: center; font-weight: 600; }
.nav-badge.warn { background: #F7BA1E; color: #fff; }
.side-nav button:hover { background: var(--bg); }
.side-nav button.active { background: #165DFF12; color: var(--brand); font-weight: 600; }
.side-footer { border-top: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-user b { width: 34px; height: 34px; border-radius: 50%; background: #165DFF18; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.side-user span { display: flex; flex-direction: column; line-height: 1.3; }
.side-user small { color: var(--text-3); font-size: 12px; }
.main { flex: 1; margin-left: 224px; min-width: 0; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 40; }
.crumb { color: var(--text-3); display: flex; align-items: center; gap: 8px; font-size: 13px; }
.crumb i { opacity: .5; }
.crumb b { color: var(--text); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.top-date { color: var(--text-3); font-size: 13px; }
.top-role { font-weight: 500; background: var(--bg); padding: 4px 12px; border-radius: 4px; }
.content { max-width: 1360px; margin: 0 auto; padding: 20px 24px 48px; }

/* ---------- 页头与卡片 ---------- */
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.page-title h1 { font-size: 20px; margin-bottom: 4px; }
.page-title p { color: var(--text-3); font-size: 13px; }
.page-actions { display: flex; gap: 10px; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px; margin-bottom: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { font-size: 15px; margin-bottom: 3px; }
.card-head p { color: var(--text-3); font-size: 12px; }
.page-loading, .page-error { padding: 60px 0; text-align: center; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 8px; }
.page-loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 统计卡片 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat span { display: flex; flex-direction: column; }
.stat small { color: var(--text-3); font-size: 12px; }
.stat strong { font-size: 22px; margin: 2px 0; }
.stat em { color: var(--text-3); font-style: normal; font-size: 12px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* ---------- 表格（紧凑） ---------- */
.table { width: 100%; }
.thead { display: grid; gap: 8px; padding: 8px 12px; background: #f7f8fa; border-radius: 6px; color: var(--text-3); font-size: 12px; font-weight: 600; }
.thead span { display: flex; align-items: center; }
.table .tr { display: grid; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #f2f3f5; align-items: center; font-size: 13px; }
.table .tr:last-child { border-bottom: none; }
.table .tr:hover { background: #f7f8fa; }
.tr b { font-weight: 500; }
.tr small { color: var(--text-3); font-size: 12px; display: block; }
.tr > span { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.tr .row-ops { display: flex; gap: 2px; flex-direction: row; }
.empty-row { text-align: center; color: var(--text-3); padding: 36px 0; font-size: 13px; }

/* 会员表 10 列（--member-cols 为本地保存的自定义列宽，拖拽列头右缘可调） */
.member-table .thead, .member-table .tr { grid-template-columns: var(--member-cols, 1fr 1.2fr 1fr 0.9fr 0.8fr 0.8fr 0.8fr 0.8fr 1fr 1.1fr); }
.member-table .thead span.col { position: relative; cursor: pointer; user-select: none; padding-right: 8px; }
.member-table .thead span.col:hover { color: var(--text-1); }
.member-table .thead span.col.sorted { color: var(--brand); }
.sort-arrow { font-style: normal; font-size: 10px; margin-left: 3px; color: var(--brand); }
.col-resize { position: absolute; right: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; }
.member-row { cursor: pointer; }
/* 部门表 */
.dept-table .thead, .dept-table .tr { grid-template-columns: 1.1fr 1fr 1.4fr 1.2fr 0.6fr 0.7fr 1fr; }
.dept-row { cursor: pointer; }
/* 大队表 */
.team-table .thead, .team-table .tr { grid-template-columns: 0.8fr 1fr 1fr 1fr 0.6fr 0.8fr 0.8fr 0.9fr; }
.team-row { cursor: pointer; }
/* 会费表 */
.fee-table .thead, .fee-table .tr { grid-template-columns: 0.8fr 1.3fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.6fr 1.1fr; }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; background: #f7f8fa; border: 1px solid var(--border); border-radius: 6px; padding: 7px 12px; min-width: 280px; color: var(--text-3); }
.search-box:focus-within { border-color: var(--brand); background: #fff; }
.search-box input { border: none; background: none; outline: none; flex: 1; }
.count-note { font-size: 12px; }
.check-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check-line input { accent-color: var(--brand); width: 15px; height: 15px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { padding: 6px 14px; border-radius: 6px; color: var(--text-2); font-size: 13px; background: var(--bg); }
.tabs button.active { background: #165DFF15; color: var(--brand); font-weight: 600; }

/* ---------- 订单页 ---------- */
.order-grid { display: grid; grid-template-columns: 400px 1fr; gap: 16px; align-items: start; }
.order-toolbar { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-toolbar .search-box { flex: 1; min-width: 200px; }
.order-list { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow-y: auto; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 12px; text-align: left; width: 100%; cursor: pointer; }
.order-row:hover { border-color: var(--brand); }
.order-row.selected { border-color: var(--brand); box-shadow: 0 0 0 2px #165DFF15; }
.order-row > span:not(.or-amt) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-row b { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.order-row b i { color: var(--text-3); flex-shrink: 0; }
.order-row small { color: var(--text-3); font-size: 12px; }
.or-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.or-amt strong { font-size: 14px; }
.order-empty { text-align: center; color: var(--text-3); padding: 60px 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
#order-detail .card { margin-bottom: 0; }
.detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.detail-head small { color: var(--text-3); font-size: 12px; }
.detail-head h2 { font-size: 17px; margin-top: 2px; }
.money { background: #f7f8fa; border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.money small { color: var(--text-3); font-size: 12px; }
.money strong { font-size: 26px; color: var(--brand); display: block; margin: 4px 0; }
.money p { font-size: 12px; color: var(--text-3); }
.detail-block { border-top: 1px solid var(--border); padding: 12px 0; }
.detail-block h3 { font-size: 13px; margin-bottom: 8px; color: var(--text-2); }
.trade-line { display: flex; align-items: center; gap: 10px; }
.trade-line > span:not(.role-tag) { display: flex; flex-direction: column; gap: 2px; }
.role-tag { width: 26px; height: 26px; border-radius: 6px; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.role-tag.buyer { background: var(--brand); }
.role-tag.seller { background: var(--success); }
.proof { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 6px; margin-bottom: 8px; color: var(--text-3); }
.proof .proof-ic { width: 34px; height: 34px; border-radius: 6px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proof span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.proof b { font-size: 13px; color: var(--text-2); font-weight: 500; }
.proof small { font-size: 12px; }
.proof-ready { border-style: solid; cursor: pointer; color: var(--brand); }
.proof-ready:hover { border-color: var(--brand); }
.proof-row { display: flex; gap: 10px; }
.proof-row .proof { flex: 1; margin-bottom: 0; }
.unapprove-ops { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.unapprove-ops .muted { margin: 0; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--border); }
.pager-info { color: var(--text-3); font-size: 13px; }
.pager-jump { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; }
.pager-jump input { width: 58px; border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; text-align: center; outline: none; }
/* 手机端简化分页：居中紧凑，无跳页输入 */
.h5-pager { justify-content: center; gap: 16px; padding: 12px 0 2px; border-top: none; flex-wrap: nowrap; }
.h5-pager .btn { padding: 5px 14px; }
.h5-pager .pager-info { font-size: 13px; white-space: nowrap; }
.audit-block { display: flex; gap: 16px; }
.audit-block .btn { flex: 1; justify-content: center; }
.notice-box { background: #f7f8fa; border-radius: 6px; padding: 14px 16px; margin-top: 14px; }
.notice-text { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 12px; font-size: 13px; line-height: 1.7; margin: 8px 0; white-space: pre-line; }
.notice-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.notice-meta p { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.notice-meta small { color: var(--text-3); font-size: 12px; }
.notice-meta b { font-size: 13px; }
.notice-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; color: var(--text-2); }
.notice-hint i { color: var(--success); }
.notice-sum { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.notice-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.award-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.award-img { width: 100%; max-width: 360px; border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.14); cursor: zoom-in; }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-list i { font-style: normal; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.mini-list i b { font-weight: 600; }
.mini-list i small { color: var(--text-3); font-size: 12px; margin-left: auto; }
.mini-select { border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 13px; outline: none; }

/* ---------- 会员详情 ---------- */
.md-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.md-avatar b { width: 52px; height: 52px; border-radius: 10px; background: #165DFF15; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.md-info { flex: 1; min-width: 0; }
.md-info h2 { font-size: 18px; margin-bottom: 4px; }
.md-info p { color: var(--text-2); font-size: 13px; margin-bottom: 8px; }
.md-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.md-side { display: flex; gap: 14px; }
.md-side p { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.md-side small { color: var(--text-3); font-size: 12px; }
.md-side b { font-size: 14px; }
.md-sections { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.md-sections section.md-block { background: #fafbfc; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.md-sections section.md-block h3 { font-size: 13px; color: var(--text-2); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.md-sections section.md-block:last-child { margin-bottom: 0; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; }
.kv-grid p { display: grid; grid-template-columns: 96px 1fr; align-items: center; font-size: 13px; min-height: 26px; }
.kv-grid p.wide2 { grid-column: 1 / -1; }
.kv-grid small { color: var(--text-3); font-size: 12px; text-align: right; padding-right: 12px; white-space: nowrap; }
.kv-grid b { font-weight: 500; overflow-wrap: anywhere; }
.photo-strip { display: flex; flex-direction: column; gap: 10px; }
.photo-group { display: flex; flex-direction: column; gap: 6px; }
.photo-group > small { color: var(--text-3); font-size: 12px; }
.photo-group > div { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: zoom-in; }
.photo-strip .ph { position: relative; }
.photo-strip .ph-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.award-line { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; color: var(--text-2); }
.award-line i { color: #F7BA1E; flex-shrink: 0; }
.award-line small { color: var(--text-3); font-size: 12px; }

/* ---------- 图片查看器 ---------- */
body.img-open { overflow: hidden; }
.img-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 950; }
.img-overlay header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0)); }
.img-overlay header b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; }
.img-overlay header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.img-overlay header button:active { background: rgba(255,255,255,.3); }
.img-overlay .img-count { color: rgba(255,255,255,.7); font-size: 12px; flex: none; }
.img-overlay .img-zoom { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.img-overlay .img-zoom button { width: 30px; height: 30px; }
.img-overlay .img-scale { font-style: normal; font-size: 12px; color: rgba(255,255,255,.7); min-width: 42px; text-align: center; }
.img-overlay .img-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.img-overlay .img-main { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 58px 12px 24px; box-sizing: border-box; }
.img-overlay .img-main img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; cursor: grab; user-select: none; -webkit-user-drag: none; will-change: transform; }
.img-overlay .img-main img.img-anim { transition: transform .18s ease; }

/* ---------- 组织架构 ---------- */
.org-box { background: #f7f8fa; border-radius: 6px; padding: 20px; text-align: center; }
.org-root { display: inline-block; background: var(--brand); color: #fff; border-radius: 6px; padding: 10px 22px; font-weight: 600; font-size: 14px; }
.org-branch { display: flex; justify-content: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.org-branch::before { content: ''; position: absolute; width: 1px; height: 18px; background: var(--border); }
.org-node { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 10px 16px; min-width: 130px; display: flex; flex-direction: column; gap: 4px; }
.org-node.accent { border-color: var(--warning); }
.org-node small { color: var(--text-3); font-size: 12px; }
.org-node b { font-size: 13px; font-weight: 500; }
.sec-h { font-size: 13px; color: var(--text-2); margin: 14px 0 8px; }
.member-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.member-chips span { background: #f7f8fa; border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.member-chips small { color: var(--text-3); font-size: 11px; }
.dept-intro { color: var(--text-3); font-size: 12px; margin-top: 10px; }
.team-stat-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.team-stat-line p { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.team-stat-line small { color: var(--text-3); font-size: 12px; }
.team-stat-line b { font-size: 15px; }
.table.mini .thead, .table.mini .tr { grid-template-columns: 0.9fr 0.7fr 1fr 2fr; }

/* ---------- 各业务表格列模板（横向排列） ---------- */
.rating-table .thead, .rating-table .tr { grid-template-columns: 0.9fr 1.2fr 1.1fr 0.9fr 0.7fr 0.8fr 0.8fr 0.6fr 1.7fr; }
.point-table .thead, .point-table .tr { grid-template-columns: 1.1fr 0.7fr 2.2fr 1fr; }
.bean-table .thead, .bean-table .tr { grid-template-columns: 1.1fr 0.7fr 2.2fr 1fr; }
.activity-table .thead, .activity-table .tr { grid-template-columns: 1.4fr 1.3fr 0.7fr 0.7fr 0.7fr 1.5fr; }
.return-table .thead, .return-table .tr { grid-template-columns: 0.8fr 1.2fr 0.9fr 0.8fr 0.7fr 0.7fr 0.9fr; }
.reg-table .thead, .reg-table .tr { grid-template-columns: 0.8fr 1.2fr 1fr 1fr 0.9fr; }
.change-table .thead, .change-table .tr { grid-template-columns: 1.2fr 1.8fr 1fr 1fr; }
.app-table .thead, .app-table .tr { grid-template-columns: 0.8fr 1.4fr 1fr 1fr; }
.industry-table .thead, .industry-table .tr { grid-template-columns: 1.4fr 0.7fr 1.3fr; }
.position-table .thead, .position-table .tr { grid-template-columns: 1.4fr 0.9fr; }
.activity-table .tr > span:nth-child(2) { flex-direction: column; gap: 2px; }
/* 业务表格操作列横向排列 */
.activity-table .tr > span:last-child,
.return-table .tr > span:last-child,
.industry-table .tr > span:last-child,
.position-table .tr > span:last-child,
.reg-table .tr > span:last-child,
.rating-table .tr > span:last-child,
.app-table .tr > span:last-child { flex-direction: row; flex-wrap: wrap; gap: 2px; }

/* ---------- 活动/返还/报表 ---------- */
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.rank-grid .card { margin-bottom: 0; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; }
.rank-row:last-child { border-bottom: none; }
.rank-row .num { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.rank-row .num.top { background: #F7BA1E; color: #fff; }
.rank-row span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-row strong { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row small { color: var(--text-3); font-size: 12px; }
.rank-row em { font-style: normal; font-weight: 600; color: var(--brand); font-size: 13px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.report-card { display: flex; align-items: center; gap: 14px; margin: 0; }
.report-ic { width: 44px; height: 44px; border-radius: 10px; background: #165DFF12; color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.report-card div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.report-card small { color: var(--text-3); font-size: 12px; }

/* ---------- 审计日志 ---------- */
.log-table .thead, .log-table .tr { grid-template-columns: 160px 140px 1fr; }
.log-msg { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.log-msg b { font-weight: 500; white-space: nowrap; }
.log-msg em { color: var(--text-3); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 权限管理 ---------- */
.access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.access-card { margin-bottom: 0; }
.perm-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.perm-list .check-line { padding: 6px 8px; border-radius: 6px; background: #f7f8fa; }

/* ---------- 系统设置 ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.settings-grid .card { margin-bottom: 0; }
.setting-line { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; font-size: 13px; }
.setting-line:last-child { border-bottom: none; }
.setting-line > span { color: var(--text-2); flex: 1; }
.setting-line b { font-weight: 500; }
.mini-input { border: 1px solid var(--border); border-radius: 6px; padding: 7px 12px; width: 110px; outline: none; }
.mini-input:focus { border-color: var(--brand); }
.switch { width: 44px; height: 24px; border-radius: 12px; background: #c9cdd4; position: relative; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on { background: var(--success); }
.switch.on i { left: 23px; }

/* ---------- 待办行 / 动态 ---------- */
.todo-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; }
.todo-row:last-child { border-bottom: none; }
.todo-row > b { width: 36px; height: 36px; border-radius: 8px; background: #FF7D0015; color: var(--warning); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.todo-row span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo-row strong { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-row small { color: var(--text-3); font-size: 12px; }
.feed-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); padding: 8px 0; border-bottom: 1px solid #f2f3f5; }
.feed-row:last-child { border-bottom: none; }
.feed-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.feed-row b { font-weight: 500; }
.feed-row em { color: var(--text-3); font-style: normal; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row time { color: var(--text-3); font-size: 12px; }

/* ============================================================
   H5 会员端
   ============================================================ */
.h5-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; width: 100%; max-width: 480px; margin: 0 auto; background: var(--bg); position: relative; overflow: hidden; }
.h5-header { height: 50px; min-height: 50px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 8px; gap: 4px; position: sticky; top: 0; z-index: 30; }
.h5-header b { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.h5-back, .h5-more { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text); border-radius: 6px; }
.h5-back:active, .h5-more:active { background: var(--bg); }
.h5-main { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 12px 12px 20px; }
.h5-tabbar { height: 56px; min-height: 56px; background: #fff; border-top: 1px solid var(--border); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.h5-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; min-height: 44px; }
.h5-tabbar button.active { color: var(--brand); }
.h5-tabbar button i { width: 22px; height: 22px; }
.h5-loading, .h5-error, .h5-empty { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.h5-loading i { animation: spin 1s linear infinite; }

/* H5 首页 */
.h5-banner { background: linear-gradient(135deg, #165DFF, #0e42d2); border-radius: 12px; color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.h5-banner small { opacity: .75; font-size: 12px; }
.h5-banner h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: 2px; }
.h5-banner p { opacity: .85; font-size: 12px; margin-bottom: 0; }
.h5-banner > i { opacity: .3; width: 56px; height: 56px; }
.h5-quick { background: #fff; border-radius: 12px; padding: 16px 6px; display: flex; margin-bottom: 12px; }
.h5-quick button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); font-size: 12px; }
.h5-quick button i { color: var(--brand); width: 24px; height: 24px; }
.h5-point { background: #fff; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; margin-bottom: 12px; }
.h5-point span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.h5-point small { color: var(--text-3); font-size: 12px; }
.h5-point strong { font-size: 17px; color: var(--brand); }
.h5-sec { background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.h5-sec > h2 { font-size: 15px; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.h5-sec > h2 i { color: var(--brand); width: 16px; height: 16px; }
.h5-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.h5-sec-head h2 { font-size: 13px; }
.h5-event { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; }
.h5-event:last-child { border-bottom: none; }
.h5-event > b { width: 38px; height: 38px; border-radius: 8px; background: #FF7D0015; color: var(--warning); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.h5-event span { flex: 1; min-width: 0; }
.h5-event strong { font-size: 14px; }
.h5-event p { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.h5-event i { color: var(--success); font-style: normal; font-size: 12px; }
.h5-company { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; min-height: 44px; }
.h5-company:last-child { border-bottom: none; }
.h5-company-avatar { width: 42px; height: 42px; border-radius: 10px; background: #165DFF12; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.h5-company-avatar.big { width: 52px; height: 52px; font-size: 20px; }
.h5-company-photo { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f2f3f5; display: block; }
.h5-company-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-company > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h5-company strong { font-size: 14px; }
.h5-company p { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 2px 0; }
.h5-company small { color: var(--brand); font-weight: 700; font-size: 13px; }
.h5-shield { font-style: normal; color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 11px; flex-shrink: 0; }
.h5-shield.off { background: #86909c30 !important; color: var(--text-3); }
.h5-shield-ic { width: 22px; height: 22px; flex-shrink: 0; cursor: pointer; }
.h5-shield-ic.off { color: #c9cdd4 !important; }
.shield-guide p { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f7f8fa; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.shield-guide p i { width: 24px; height: 24px; }
.shield-guide p b { font-weight: 600; }
.shield-guide small { display: block; margin-top: 10px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
/* 星级与奖杯 */
.h5-stars { font-style: normal; color: #F7BA1E; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.h5-stars-rows { flex-direction: column; align-items: flex-start; gap: 2px; }
.h5-star-line { font-style: normal; display: flex; align-items: center; gap: 4px; }
/* 营业范围/公司地址等文本保留回车换行显示 */
.pre-line { white-space: pre-line; }
.h5-star-info { color: var(--text-3); width: 13px; height: 13px; cursor: pointer; flex-shrink: 0; }
.h5-trophy { color: #F7BA1E; width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; }
/* 规则说明 */
.guide-rule { margin-top: 8px; }
.guide-rule-title { font-weight: 600; font-size: 14px; margin: 10px 0 4px; display: flex; align-items: center; gap: 5px; color: var(--text); }
.guide-rule p:not(.guide-rule-title) { color: var(--text-2); font-size: 13px; line-height: 1.7; }
.guide-table p { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.guide-table small { color: var(--text-3); font-size: 12px; }
.guide-table b { font-weight: 500; }
.h5-tag { font-style: normal; background: var(--bg); border: 1px solid var(--border); color: var(--text-2); border-radius: 4px; padding: 2px 8px; font-size: 11px; }
.h5-badge { font-style: normal; background: var(--danger); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 11px; }

/* H5 通讯录 */
.h5-search-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.h5-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 10px 14px; color: var(--text-3); min-height: 44px; flex: 1; }
.h5-search input { border: none; background: none; outline: none; flex: 1; }
.h5-filter-btn { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; background: #fff; border-radius: 10px; min-width: 64px; height: 44px; color: var(--brand); font-size: 13px; }
.h5-filter-btn.active { background: var(--brand); color: #fff; }
.h5-filter-btn i { width: 16px; height: 16px; }
.h5-filter-panel { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.h5-filter-row { display: flex; gap: 8px; }
.h5-filter-select { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 8px; padding: 0 10px; color: var(--text-3); flex: 1; min-width: 0; }
.h5-filter-select select { flex: 1; border: none; background: none; outline: none; padding: 11px 0; font-size: 13px; min-height: 44px; min-width: 0; }
.h5-filter-reset { align-self: flex-end; color: var(--brand); font-size: 13px; display: flex; align-items: center; gap: 4px; padding: 6px 10px; }
.h5-dir-list { background: #fff; border-radius: 12px; padding: 0 16px; }
.h5-load-more { text-align: center; color: var(--text-3); font-size: 12px; padding: 12px 0 4px; }

/* H5 企业详情（压缩空间） */
.h5-detail-head { text-align: center; padding: 4px 0 10px; }
.h5-detail-head .h5-company-avatar { margin: 0 auto 10px; }
.h5-detail-head h2 { font-size: 17px; }
.h5-detail-head p { color: var(--text-3); font-size: 13px; margin: 4px 0 8px; }
.h5-detail-tags { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.h5-kv { display: flex; flex-direction: column; gap: 4px; }
.h5-kv p { display: flex; align-items: center; gap: 4px; font-size: 15px; min-height: 22px; }
.h5-kv small { color: var(--text-3); white-space: nowrap; font-size: 14px; }
.h5-kv small::after { content: '：'; }
.h5-kv b { font-weight: 500; overflow-wrap: anywhere; }
/* 营业范围/公司地址：标题在内容上一行，整体左对齐 */
.h5-kv p.kv-stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.h5-kv p.kv-stack small::after { content: ''; }
.h5-photo-row { display: flex; gap: 6px; flex-wrap: wrap; }
.h5-photo-row img { width: 82px; height: 82px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: zoom-in; }
.h5-award { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f2f3f5; font-size: 15px; min-height: 30px; }
.h5-award:last-child { border-bottom: none; }
.h5-award i { color: #F7BA1E; flex-shrink: 0; margin-top: 2px; }
.h5-award span { display: flex; flex-direction: column; gap: 2px; }
.h5-award small { color: var(--text-3); font-size: 14px; }
.h5-rank-tabs button { display: inline-flex; align-items: center; gap: 5px; }
.h5-rank-tabs button i { width: 15px; height: 15px; }
.h5-photo-edits { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.h5-photo-edit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.h5-photo-edit-head b { font-size: 13px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.h5-photo-edit-head i { color: var(--brand); width: 16px; height: 16px; }
.h5-photo-item { position: relative; }
.h5-photo-item .ph-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.h5-consume-top { margin-bottom: 12px; }
.h5-consume-top .btn { min-height: 48px; font-size: 15px; }
.h5-consume-off { background: #86909c12; border: 1px dashed var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.h5-consume-bar .btn { width: 100%; justify-content: center; min-height: 46px; }

/* H5 表单（消费登记/商户处理） */
.h5-form { background: #fff; border-radius: 12px; padding: 16px; }
.h5-form-tip { background: #165DFF08; border: 1px solid #165DFF22; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.h5-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.h5-field i { color: var(--danger); font-style: normal; }
.h5-field input, .h5-field textarea { border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; outline: none; min-height: 44px; }
.h5-field input:focus, .h5-field textarea:focus { border-color: var(--brand); }
.h5-field textarea { resize: vertical; }
.h5-file { min-height: 44px; padding: 9px 4px !important; }
.h5-proof-line { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 10px; }

/* H5 排行榜 */
.h5-rank-tabs { display: flex; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.h5-rank-tabs button { flex: 1; padding: 9px; border-radius: 8px; color: var(--text-3); font-size: 13px; min-height: 36px; }
.h5-rank-tabs button.active { background: var(--brand); color: #fff; font-weight: 600; }
.h5-rank-list { background: #fff; border-radius: 12px; padding: 4px 16px; }
.h5-rank-list article { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f2f3f5; min-height: 44px; }
.h5-rank-list article:last-child { border-bottom: none; }
.h5-rank-list .num { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.h5-rank-list .num.top { background: #F7BA1E; color: #fff; }
.h5-rank-list article > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h5-rank-list strong { font-size: 14px; }
.h5-rank-list article > strong { color: var(--brand); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.h5-rank-list article > strong small { color: var(--text-3); font-size: 11px; font-weight: 400; }

/* H5 活动 */
.h5-event-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.h5-event-tabs button { padding: 8px 16px; border-radius: 20px; background: #fff; color: var(--text-2); font-size: 13px; }
.h5-event-tabs button.active { background: var(--brand); color: #fff; }
.h5-event-list { background: #fff; border-radius: 12px; padding: 4px 16px; margin-bottom: 8px; }
.h5-job-item { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1px solid #f2f3f5; min-height: 30px; }
.h5-job-item:last-child { border-bottom: none; }
.h5-job-title { display: flex; align-items: center; gap: 10px; }
.h5-job-title strong { font-size: 15px; }
.h5-job-title em { font-style: normal; color: var(--warning); font-size: 13px; }
.h5-job-company { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.h5-job-company i { color: var(--brand); width: 14px; height: 14px; }
.h5-job-ops { display: flex; gap: 8px; margin-top: 6px; }
.h5-job-ops .btn { padding: 4px 12px; font-size: 12px; }
.h5-job-company b { color: var(--brand); font-weight: 500; }
.h5-job-company a { font-size: 13px; }
.h5-job-note { color: var(--text-3); font-size: 13px; }
.h5-event-list article { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #f2f3f5; align-items: flex-start; min-height: 44px; }
.h5-event-list article:last-child { border-bottom: none; }
.h5-event-badge { width: 38px; height: 38px; border-radius: 8px; background: #FF7D0015; color: var(--warning); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.h5-event-list article > span { flex: 1; min-width: 0; }
.h5-event-list h2 { font-size: 14px; margin-bottom: 3px; }
.h5-event-list p { color: var(--text-3); font-size: 12px; margin: 1px 0; }
.h5-event-list i { color: var(--success); font-style: normal; font-size: 12px; }

/* H5 我的 */
.h5-me-hero { background: #fff; border-radius: 12px; padding: 18px 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.h5-me-hero span { flex: 1; min-width: 0; }
.h5-me-hero h1 { font-size: 18px; }
.h5-me-name { display: flex; align-items: center; gap: 8px; }
.h5-me-name h1 { margin: 0; }
.h5-me-name small { flex-shrink: 0; }
.h5-me-hero p { color: var(--text-3); font-size: 13px; margin: 3px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5-me-hero .h5-me-years { color: #165DFF; margin: -4px 0 0; }
.h5-me-hero small { display: flex; gap: 6px; align-items: center; }
.h5-me-stats { background: #fff; border-radius: 12px; display: flex; margin-bottom: 12px; }
.h5-me-stats div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 0; }
.h5-me-stats strong { font-size: 17px; color: var(--brand); line-height: 1; display: flex; align-items: center; }
.h5-me-stats small { color: var(--text-3); font-size: 11px; }
.h5-pending { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; min-height: 44px; }
.h5-pending:last-child { border-bottom: none; }
.h5-pending span { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.h5-pending strong { font-size: 13px; font-weight: 500; }
.h5-pending small { color: var(--text-3); font-size: 12px; }
.h5-me-menu { background: #fff; border-radius: 12px; padding: 0 16px; margin-bottom: 12px; }
.h5-me-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 0; border-bottom: 1px solid #f2f3f5; font-size: 14px; min-height: 44px; text-align: left; }
.h5-me-menu button:last-child { border-bottom: none; }
.h5-me-menu button i:first-child { color: var(--brand); }
.h5-me-menu button span { flex: 1; }
.h5-me-menu button i:last-child { color: var(--text-3); }
.h5-logout { width: 100%; background: #fff; color: var(--danger); border-radius: 12px; padding: 13px; font-size: 14px; margin-bottom: 20px; }
.h5-list-page { background: #fff; border-radius: 12px; padding: 0 16px; }
.h5-sales-page { display: flex; flex-direction: column; gap: 8px; }
.h5-sales-sum { background: #fff; border-radius: 12px; display: flex; }
.h5-sales-sum span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 0; }
.h5-sales-sum i { color: var(--brand); width: 20px; height: 20px; }
.h5-sales-sum small { color: var(--text-3); font-size: 12px; }
.h5-sales-sum b { font-size: 18px; color: var(--brand); }
.h5-list-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f2f3f5; min-height: 44px; }
.h5-list-item:last-child { border-bottom: none; }
.h5-list-item > span { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.h5-list-item strong { font-size: 13px; font-weight: 500; }
.h5-list-item small { color: var(--text-3); font-size: 12px; }
.h5-list-item em { font-style: normal; font-weight: 600; }
.h5-award-ic { color: #F7BA1E; }

/* ---------- 消费订单批量处理 ---------- */
.order-row-check { flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
.order-batch-bar { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.order-batch-bar .check-line { white-space: nowrap; }
#order-batch-count { font-size: 12px; white-space: nowrap; }
.h5-check-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f2f3f5; }
.h5-check-row input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.h5-check-row span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.h5-check-row strong { font-size: 14px; font-weight: 500; }
.h5-check-row small { color: var(--text-3); font-size: 12px; }
.h5-batch-sum { background: #165DFF08; border: 1px solid #165DFF22; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.h5-batch-sum b { color: var(--brand); }

/* ---------- 照片库 ---------- */
.photo-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-toolbar input { flex: 1; min-width: 180px; max-width: 360px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; outline: none; }
.photo-toolbar input:focus { border-color: var(--brand); }
.photo-toolbar select { height: 36px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.photo-toolbar .muted b { color: var(--text); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.photo-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.photo-card img { width: 100%; height: 150px; object-fit: cover; cursor: zoom-in; display: block; background: #f7f8fa; }
.photo-card figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.photo-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-meta { font-size: 12px; color: var(--text-3); }
.photo-card .btn { margin-top: 6px; align-self: flex-start; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .settings-grid, .access-grid, .report-grid { grid-template-columns: 1fr; }
}

/* ---------- H5 管理员审核页 ---------- */
.h5-tabbar button { position: relative; }
.h5-tab-badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal; text-align: center; }
.h5-review-stats { display: flex; gap: 8px; margin-bottom: 8px; }
.h5-review-stats > div { flex: 1; background: #fff; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.h5-review-stats i { color: var(--brand); width: 22px; height: 22px; }
.h5-review-stats span { display: flex; flex-direction: column; }
.h5-review-stats strong { font-size: 18px; }
.h5-review-stats small { color: var(--text-3); font-size: 12px; }
.h5-review-seg { margin-bottom: 8px; }
.h5-review-subseg { margin-bottom: 8px; }
.h5-review-subseg button { padding: 5px 14px; font-size: 12px; }
.h5-review-card { background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.h5-review-card .h5-check-row { padding: 2px 0 6px; border-bottom: none; }
.h5-review-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h5-review-row strong { font-size: 13px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5-review-thumbs { display: flex; gap: 8px; margin: 4px 0 0; }
.h5-review-thumb { margin: 0; width: 72px; }
.h5-review-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.h5-review-thumb figcaption { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 2px; }
.h5-review-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.h5-review-batch { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.h5-review-batch-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.h5-review-batch-all input { width: 16px; height: 16px; accent-color: var(--brand); }
.h5-review-reject-reason { margin: 6px 0 0; padding: 6px 8px; background: #F53F3F0d; border-radius: 6px; font-size: 12px; color: var(--danger); }
.h5-review-tools { margin-bottom: 8px; }
.h5-review-tools .btn { background: #fff; }
.h5-review-showdone { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.h5-review-showdone input { width: 16px; height: 16px; accent-color: var(--brand); }
.h5-rj-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h5-rj-name strong { font-size: 13px; font-weight: 500; }
.h5-rj-name small { color: var(--text-3); font-size: 12px; }
.h5-rj-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* ---------- 权限管理（后台人员） ---------- */
.access-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.access-ops { display: flex; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.access-ops .text { font-size: 12px; }
.adm-result { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 4px; margin-bottom: 10px; }
.adm-result > p { padding: 10px; text-align: center; }
.adm-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.adm-item:hover { background: #f2f3f5; }
.adm-item.off { opacity: .5; cursor: not-allowed; }
.adm-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-item strong { font-size: 13px; }
.adm-item small { color: var(--text-3); font-size: 12px; }
.adm-ok { color: var(--success); font-size: 12px; font-weight: normal; }
.adm-no { color: var(--danger); font-size: 12px; font-weight: normal; }

/* ---------- 门店导航（通讯录卡片 / 企业详情 / 地图选择弹层） ---------- */
.h5-company small.h5-company-addr { color: var(--text-3); font-weight: 400; font-size: 12px; display: flex; align-items: center; gap: 4px; min-width: 0; }
.h5-company small.h5-company-addr .h5-addr-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5-addr-ico { width: 12px; height: 12px; flex-shrink: 0; color: var(--text-3); }
.h5-nav-ico { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); flex-shrink: 0; cursor: pointer; }
.h5-nav-ico svg { width: 13px; height: 13px; color: #fff; }
.h5-nav-ico:active { opacity: .8; }

/* 企业详情页「导航到这里」 */
.h5-nav-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 7px 16px; border-radius: 999px; background: var(--brand); color: #fff !important; font-size: 13px; font-weight: 500; }
.h5-nav-go svg { width: 14px; height: 14px; }
.h5-nav-go:active { opacity: .85; }

/* 地图选择弹层 */
.h5-nav-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 9999; display: flex; align-items: flex-end; justify-content: center; }
.h5-nav-body { width: 100%; max-width: 480px; background: #fff; border-radius: 16px 16px 0 0; padding: 18px 16px 22px; animation: h5NavUp .2s ease; }
@keyframes h5NavUp { from { transform: translateY(18%); opacity: .4; } to { transform: none; opacity: 1; } }
.h5-nav-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.h5-nav-head b { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 1.4; }
.h5-nav-head b svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.h5-nav-x { width: 28px; height: 28px; border-radius: 50%; background: #f2f3f5; color: var(--text-3); font-size: 18px; line-height: 26px; flex-shrink: 0; }
.h5-nav-addr { margin: 10px 0 14px; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.h5-nav-addr em { font-style: normal; display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; vertical-align: 1px; }
.h5-nav-addr em.ok { background: rgba(0, 180, 42, .1); color: var(--success); }
.h5-nav-addr em.warn { background: rgba(255, 125, 0, .1); color: var(--warning); }
.h5-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.h5-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 14px 6px; border-radius: 10px; background: #f7f8fa; border: 1px solid var(--border); color: var(--text) !important; }
.h5-nav-item:active { background: #eef0f3; }
.h5-nav-item b { font-size: 13px; font-weight: 600; }
.h5-nav-item small { font-size: 11px; color: var(--text-3); }
.h5-nav-tip { margin-top: 12px; font-size: 12px; color: var(--text-3); line-height: 1.6; text-align: center; }

/* 会员资料页：获取当前位置 */
.h5-locate-btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; margin-top: 2px; padding: 9px 15px; border-radius: 8px; border: 1px dashed var(--brand); background: rgba(22, 93, 255, .05); color: var(--brand); font-size: 13px; white-space: nowrap; }
.h5-locate-btn:disabled { opacity: .55; }
.h5-field-tip { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.h5-loc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.h5-loc-row .h5-locate-btn { flex: 1; }

/* 地图点选弹层（天地图） */
.h5-map-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 12px; }
.h5-map-panel { width: 100%; max-width: 480px; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0, 0, 0, .2); }
.h5-map-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.h5-map-head b { font-size: 15px; }
.h5-map-x { width: 28px; height: 28px; border-radius: 50%; background: #f2f3f5; color: var(--text-3); font-size: 18px; line-height: 26px; flex-shrink: 0; }
.h5-map-box { width: 100%; height: 50vh; min-height: 250px; background: #eef1f5; }
.h5-map-addr { padding: 10px 14px; font-size: 13px; color: var(--text-2); line-height: 1.5; min-height: 44px; }
.h5-map-actions { display: flex; gap: 10px; padding: 0 14px 14px; }
.h5-map-actions .btn { flex: 1; justify-content: center; }

/* ============ 多门店管理 ============ */
.h5-map-btn { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; background: var(--brand); color: #fff; border-radius: 10px; min-width: 62px; height: 44px; font-size: 13px; flex-shrink: 0; }
.h5-map-btn i { width: 16px; height: 16px; }
.h5-store-field { gap: 10px; }
.h5-store-title { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.h5-store-title i { width: 16px; height: 16px; color: var(--brand); }
.h5-store-title em { font-style: normal; font-size: 12px; color: var(--text-3); font-weight: normal; }
.h5-store-list { display: flex; flex-direction: column; gap: 10px; }
.h5-store { border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; background: #fafbfc; }
.h5-store-hd { display: flex; align-items: center; gap: 8px; }
.h5-store-hd b { font-size: 14px; }
.h5-store-tag { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 9px; }
.h5-store-tag.ok { background: rgba(0, 180, 42, .1); color: var(--success); }
.h5-store-tag.warn { background: rgba(255, 125, 0, .12); color: var(--warning); }
.h5-store-ops { margin-left: auto; display: flex; gap: 4px; }
.h5-store-ops button { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--brand); padding: 4px 8px; border-radius: 6px; background: rgba(22, 93, 255, .06); }
.h5-store-ops button.danger { color: var(--danger); background: rgba(245, 63, 63, .06); }
.h5-store-ops i { width: 13px; height: 13px; }
.h5-store-addr { margin-top: 7px; font-size: 13px; color: var(--text-2); line-height: 1.5; word-break: break-all; }
.h5-store-sub { margin-top: 3px; font-size: 12px; color: var(--text-3); }
.h5-store-panel { width: 100%; max-width: 480px; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0, 0, 0, .2); max-height: 92vh; overflow-y: auto; }
.h5-store-form { padding: 14px 14px 4px; }
/* 企业详情页：门店行 */
.h5-store-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.h5-store-row:last-child { border-bottom: none; }
.h5-store-row b { flex-shrink: 0; font-size: 13px; color: var(--brand); }
.h5-store-row span { flex: 1; font-size: 12px; color: var(--text-2); line-height: 1.5; word-break: break-all; }
.h5-store-nav { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #fff; background: var(--brand); padding: 5px 10px; border-radius: 15px; }
.h5-store-nav i { width: 13px; height: 13px; }
/* 导航弹层：门店切换 */
.h5-nav-stores { margin-bottom: 10px; }
.h5-nav-stores small { font-size: 12px; color: var(--text-3); }
.h5-nav-store-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.h5-nav-store-chips button { font-size: 13px; padding: 6px 14px; border-radius: 16px; border: 1px solid var(--border); color: var(--text-2); background: #fff; }
.h5-nav-store-chips button.on { border-color: var(--brand); color: #fff; background: var(--brand); }

/* ============ 会员地图（全图） ============ */
.h5-fullmap-mask { position: fixed; inset: 0; background: #fff; z-index: 10050; display: flex; }
.h5-fullmap-panel { width: 100%; height: 100%; display: flex; flex-direction: column; }
.h5-fullmap-box { flex: 1; min-height: 0; background: #eef1f5; }
.h5-fullmap-card { border-top: 1px solid var(--border); background: #fff; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); min-height: 84px; max-height: 42vh; overflow-y: auto; }
.h5-map-sum { font-size: 13px; color: var(--text-2); }
.h5-map-sum b { color: var(--brand); font-size: 16px; }
.h5-map-card-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h5-map-card-hd b { font-size: 15px; }
.h5-map-card-hd em { font-style: normal; font-size: 11px; color: var(--brand); background: rgba(22, 93, 255, .1); padding: 1px 7px; border-radius: 9px; }
.h5-map-card-addr { display: flex; align-items: flex-start; gap: 4px; margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.h5-map-card-addr i { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--warning); }
.h5-map-card-meta { margin-top: 3px; font-size: 12px; color: var(--text-3); }
.h5-map-card-ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.h5-map-card-ops .btn { flex: 1; min-width: 92px; justify-content: center; }
.h5-map-empty { text-align: center; padding: 10px 0; }
.h5-map-empty b { display: block; font-size: 14px; margin-bottom: 6px; }
.h5-map-empty p { font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ---------- 添加到桌面引导 ---------- */
.h5-a2hs-sub { font-size: 13px; color: var(--text-2); margin: 0 0 12px; }
.h5-a2hs-step { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--line); }
.h5-a2hs-step:last-of-type { border-bottom: none; }
.h5-a2hs-step > b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.h5-a2hs-step > span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-1); line-height: 1.6; }
.h5-a2hs-step > span svg { flex: none; width: 17px; height: 17px; color: var(--brand); }
