.photo-links button {
  color: var(--navy2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
}

.photo-links button:hover {
  border-color: var(--gold);
}

.photo-preview {
  margin-top: 12px;
}

.photo-preview img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

/* ===== 按业务链路分组的导航 ===== */
.nav-group { margin-bottom: 4px; }
.nav-group-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: transparent; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 700; letter-spacing: .4px; text-align: left; }
.nav-group-head:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-group-head small { margin-left: auto; opacity: .6; font-size: 11px; font-weight: 500; }
.nav-chevron { width: 14px; text-align: center; font-size: 15px; line-height: 1; opacity: .75; }
.nav-group.current .nav-group-head { color: var(--gold2); }
.nav-group-items { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 8px; }
.nav-badge { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ===== 工作台待办 ===== */
.workbench-head { margin: 26px 0 14px; }
.workbench-head h2 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.workbench-head p { margin: 0; color: var(--muted); font-size: 13px; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 14px; }
.todo-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 7px 20px rgba(13,35,67,.04); }
.todo-card:hover { border-color: var(--gold); }
.todo-card small { color: var(--muted); font-size: 13px; }
.todo-card strong { font-size: 32px; line-height: 1.1; color: var(--navy); }
.todo-card span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.todo-card.urgent { border-left: 4px solid #c0392b; }
.todo-card.urgent strong { color: #c0392b; }
.todo-empty { grid-column: 1/-1; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(13,35,67,.04); }
.todo-empty strong { font-size: 17px; color: var(--navy); }
.todo-empty span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.quick-actions button { padding: 10px 16px; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 分步表单与会员选择器 ===== */
.wide-card { width: min(980px,100%); }
.step-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; padding-top: 6px; }
.step-head strong { font-size: 15px; color: var(--navy); }
.step-head small { color: var(--muted); font-weight: 400; font-size: 12px; }
.step-no { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--navy2); color: var(--gold2); font-size: 12px; font-weight: 800; flex: none; }
.form-hint { font-size: 12px; color: #69501c; background: #fff8e8; border: 1px solid #f1dfb4; border-radius: 9px; padding: 10px 12px; margin: 0 0 16px; line-height: 1.6; }
.picker-block { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fbfcfe; margin-bottom: 18px; }
.picker-block .step-head { margin-top: 0; }
.picker-search { display: flex; gap: 10px; }
.picker-search input { flex: 1; }
.picker-search button { white-space: nowrap; flex: none; }
.picker-hint { font-size: 12px; color: var(--muted); margin: 8px 0 10px; line-height: 1.6; }
.picker-results { max-height: 270px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.picker-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--ink); font-weight: 500; }
.picker-option:hover, .picker-option:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,173,88,.14); }
.picker-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy2); color: var(--gold2); font-weight: 800; }
.picker-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.picker-main small, .picker-side small { color: var(--muted); font-size: 12px; font-weight: 400; }
.picker-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.picker-side small { font: 11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; }
.picker-loading, .picker-empty { font-size: 13px; color: var(--muted); padding: 14px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 10px; }
.picker-empty { border-style: solid; }
.selected-card { display: flex; align-items: center; gap: 12px; background: #eef7f1; border: 1px solid #bfe2cd; border-radius: 11px; padding: 12px 14px; margin-bottom: 14px; }
.selected-card>div { min-width: 0; flex: 1; }
.selected-card strong { color: #145c38; font-size: 14px; }
.selected-card p { margin: 5px 0; color: #356b51; font-size: 12px; line-height: 1.6; }
.selected-card small { color: #4b7a61; font: 11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; }
.selected-card button { flex: none; background: #fff; border: 1px solid #bfe2cd; color: #145c38; padding: 8px 12px; font-size: 12px; }

/* 长表单滚动时，保存/取消按钮始终可见，避免运营找不到提交入口 */
.modal-card .modal-actions { position: sticky; bottom: 0; background: #fff; z-index: 2; }

/* ===== 复核详情与操作痕迹 ===== */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 12px; margin-bottom: 10px; }
.detail-grid>div { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; }
.detail-grid small { color: var(--muted); font-size: 11px; }
.detail-grid strong { font-size: 15px; color: var(--navy); }
.detail-grid span { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.trace-section { margin-bottom: 16px; }
.trace-section>button { margin-bottom: 12px; }
.trace-summary { display: flex; flex-direction: column; gap: 5px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; margin-bottom: 16px; }
.trace-summary strong { font-size: 15px; color: var(--navy); }
.trace-summary span { font-size: 12px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.trace-summary b { color: var(--navy); }
.trace-heading { font-size: 13px; color: var(--navy2); margin: 16px 0 10px; }
.trace-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.trace-event { position: relative; border-left: 2px solid var(--line); padding: 0 0 18px 22px; }
.trace-event:last-child { border-left-color: transparent; padding-bottom: 4px; }
.trace-dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy2); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.trace-event.APPROVE .trace-dot, .trace-event.POSTING .trace-dot { background: #16794a; }
.trace-event.REJECT .trace-dot { background: var(--danger); }
.trace-body { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.trace-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.trace-title strong { font-size: 14px; color: var(--navy); }
.trace-title span { font-size: 12px; color: var(--muted); }
.trace-meta { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.trace-comment { font-size: 12px; color: var(--ink); margin: 7px 0 0; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.trace-balance { margin-top: 8px; font-size: 12px; color: #145c38; background: #eef7f1; border-radius: 7px; padding: 6px 9px; display: inline-block; }
.trace-balance b { font-size: 14px; }
.trace-ledger { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; }
.trace-ledger th, .trace-ledger td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.trace-ledger th { background: #f5f7fa; color: var(--muted); font-weight: 600; }
.trace-note { font-size: 12px; color: var(--muted); margin: 0; }
.points-row .row-actions { flex-wrap: wrap; }
.points-row .row-actions button { padding: 8px 10px; font-size: 12px; }

@media(max-width:900px){
  .nav-group-head { justify-content: center; font-size: 10px; padding: 7px 2px; }
  .nav-group-head small, .nav-chevron { display: none; }
  .nav-group-items { padding-left: 0; }
  .picker-side { display: none; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== 首页广告：小程序预览与预览态 ===== */
.modal-card.with-preview { width: min(1180px,100%); display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; }
.modal-card.with-preview .modal-head { grid-column: 1/-1; }
.modal-card.with-preview #editorForm { grid-column: 1; grid-row: 2; min-width: 0; }
.content-preview { grid-column: 2; grid-row: 2; position: sticky; top: 0; align-self: start; padding: 18px 18px 20px; border-left: 1px solid var(--line); background: #f7f9fc; max-height: 84vh; overflow: auto; }
.preview-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.preview-head strong { font-size: 14px; color: var(--navy); }
.preview-status { font-size: 12px; line-height: 1.5; border-radius: 8px; padding: 7px 10px; font-weight: 600; }
.preview-status.published { background: #e9f7ef; color: #16794a; }
.preview-status.draft { background: #fff4e2; color: #8a5b10; border: 1px solid #f0d6a5; }
.preview-status.off { background: #f1f2f4; color: #6b7280; }
.preview-status.readonly { background: #eaf1fb; color: #1d4f91; }
.phone { width: 100%; max-width: 280px; margin: 0 auto; border: 8px solid #102b52; border-radius: 26px; background: #fff; overflow: hidden; box-shadow: 0 12px 30px rgba(7,26,54,.18); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: #071a36; color: #f0d69a; font-size: 10px; letter-spacing: .5px; }
.phone-screen { height: 390px; overflow: hidden; background: #f5f7fb; }
.pv-hero { position: relative; height: 92px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: linear-gradient(110deg,#0b2a52,#1c4c7e); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.pv-hero.with-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(4,15,32,.82),rgba(4,15,32,.15)); }
.pv-hero > * { position: relative; z-index: 1; }
.pv-hero span { font-size: 9px; letter-spacing: 1px; opacity: .85; }
.pv-hero b { font-size: 15px; letter-spacing: .5px; }
.pv-hero em { position: absolute; right: 10px; bottom: 10px; font-style: normal; font-size: 9px; background: rgba(215,173,88,.9); color: #071a36; border-radius: 9px; padding: 2px 7px; }
.pv-banner { position: relative; height: 126px; background: linear-gradient(120deg,#123d6d,#2c6ba3); background-size: cover; background-position: center; color: #fff; }
.pv-banner.no-image { background: repeating-linear-gradient(135deg,#1a406c,#1a406c 10px,#23507f 10px,#23507f 20px); }
.pv-veil { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(4,15,32,.78),rgba(4,15,32,.05)); }
.pv-copy { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-direction: column; gap: 3px; }
.pv-copy strong { font-size: 15px; line-height: 1.3; }
.pv-copy small { font-size: 10px; opacity: .85; line-height: 1.4; }
.pv-copy span { font-size: 9px; color: #f0d69a; margin-top: 3px; }
.pv-dots { display: flex; justify-content: center; gap: 4px; padding: 7px 0; }
.pv-dots i { width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
.pv-dots i.on { width: 13px; border-radius: 3px; background: #b99a68; }
.pv-section { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px 5px; }
.pv-section b { font-size: 11px; color: var(--navy); }
.pv-section span { font-size: 9px; color: #94a3b8; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 12px; }
.pv-op { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; min-width: 0; }
.pv-op.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(215,173,88,.2); }
.pv-op i { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; background: #eef3fa; color: var(--navy2); font-style: normal; font-size: 11px; font-weight: 700; }
.pv-op > span { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.pv-op b { font-size: 10px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-op small { font-size: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }
.preview-note b { color: #8a5b10; }
@media(max-width:1100px){
  .modal-card.with-preview { grid-template-columns: 1fr; }
  .modal-card.with-preview #editorForm { grid-column: 1; grid-row: 2; }
  .content-preview { grid-column: 1; grid-row: 3; position: static; border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .phone { max-width: 260px; }
}

/* ===== 积分商城广告预览（浅色、参考小鹏商城版式；首页不受影响） ===== */
.mp-frame { padding: 0; background: transparent; }
.mp-page { width: 100%; background: #f4f7f9; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(20,43,67,.09); }
.mp-topbar { display: flex; justify-content: space-between; padding: 8px 14px 4px; font-size: 10px; color: #5b6b7c; background: #fff; }
.mp-hero { position: relative; height: 210px; margin: 0 10px; border-radius: 14px; background: linear-gradient(135deg,#1d4b76,#3a7ca8 60%,#8fb3c9); background-size: cover; background-position: center; overflow: hidden; }
.mp-hero.no-image { background: linear-gradient(135deg,#163a5f,#2f6d99 60%,#7fa9c2); }
.mp-veil { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(6,20,38,.34) 0%,rgba(6,20,38,0) 38%,rgba(6,20,38,.72) 100%); }
.mp-searchbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.mp-search { flex: 1; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: #8a97a3; font-size: 11px; }
.mp-search i { font-style: normal; font-size: 14px; color: #5b6b7c; }
.mp-icons { display: flex; gap: 8px; color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.mp-hero-copy { position: absolute; left: 16px; right: 16px; bottom: 26px; z-index: 2; display: flex; flex-direction: column; gap: 3px; color: #fff; }
.mp-hero-copy strong { font-size: 19px; line-height: 1.25; letter-spacing: .5px; }
.mp-hero-copy small { font-size: 11px; opacity: .9; }
.mp-hero-copy em { font-style: normal; font-size: 10px; color: #f3d9a4; margin-top: 3px; }
.mp-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; }
.mp-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); }
.mp-dots i.on { width: 14px; border-radius: 3px; background: #e0bd7f; }
.mp-tabs { display: flex; gap: 2px; overflow: hidden; padding: 10px 12px 8px; background: #fff; color: #8492a0; font-size: 11px; white-space: nowrap; }
.mp-tabs span { padding: 3px 9px; border-radius: 999px; }
.mp-tabs span.on { background: #142b43; color: #fff; font-weight: 700; }
.mp-balance { display: flex; justify-content: space-between; align-items: center; margin: 8px 10px; border-radius: 12px; padding: 12px 14px; background: #142b43; color: #fff; font-size: 11px; }
.mp-balance em { font-style: normal; opacity: .8; font-size: 10px; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 10px; }
.mp-card { height: 66px; border-radius: 12px; background: linear-gradient(135deg,#e9eef3,#f7f9fb); border: 1px solid #e6ebef; }
.mp-tabbar { display: flex; justify-content: space-around; padding: 9px 0 11px; background: #fff; border-top: 1px solid var(--line); font-size: 10px; color: #8492a0; }
.mp-tabbar b { color: #142b43; }

/* ===== 门店资料完整度标记（缺电话/缺经纬度，小程序会提示待补充） ===== */
.row-meta .data-gap,
.row-meta .data-ok {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.row-meta .data-gap { color: #b45309; background: #fff7ed; border: 1px solid #fbdba7; }
.row-meta .data-ok { color: #16794a; background: #e9f7ef; border: 1px solid #cde9da; }

/* ===== 操作日志（只读留痕，宽版信息行） ===== */
.audit-row { grid-template-columns: 46px minmax(210px,1.35fr) minmax(150px,.9fr) minmax(240px,1.45fr); }
.audit-row .row-title small { white-space: normal; }
.audit-row .row-detail small { white-space: normal; line-height: 1.5; }
@media (max-width: 900px) { .audit-row { grid-template-columns: 42px 1.3fr 1fr; } .audit-row .row-detail { display: none; } }

/* ===== 列表分页：已显示 X / 共 Y 条 + 加载更多 ===== */
.list-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-top: 4px;
  border-radius: 14px;
  background: var(--surface-2, #f7f7f5);
  color: var(--muted, #6b6b66);
  font-size: 13px;
}
.list-more button {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line, #e3e3dd);
  background: #fff;
  color: inherit;
  font-size: 13px;
  cursor: pointer;
}
.list-more button:disabled { opacity: .6; cursor: progress; }

/* ===== 客户删除确认弹窗 ===== */
.delete-member-card { padding: 14px 16px; border: 1px solid var(--line, #e3e9f1); border-radius: 12px; background: var(--bg, #f7f9fc); }
.delete-member-card strong { display: block; font-size: 15px; }
.delete-member-card small { display: block; margin-top: 4px; color: var(--muted, #718096); font-size: 12px; word-break: break-all; }
.delete-member-card p { margin: 9px 0 0; font-size: 13px; line-height: 1.6; }
.delete-member-card p.ok { color: #16794a; }
.delete-member-card p.warn, .delete-member-card .warn { color: #b45309; }
.operation-row .delete-member { background: #fdecee; color: #b83b45; }
/* 第一个按钮隐藏时保持 grid 列位，避免「取消」被 1fr 列拉宽 */
#deleteMemberModal .modal-actions > button { justify-self: end; }
