/* ===== 净洗通 H5 样式：移动端优先 + 响应式 ===== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --success: #16A34A;
  --success-light: #F0FDF4;
  --warning: #F97316;
  --warning-light: #FFF7ED;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --border: #E5E7EB;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-2: #6B7280;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10);
  --tab-height: 56px;
  --header-height: 52px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 16px; }

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }

/* 桌面端居中 + 阴影边框 */
@media (min-width: 640px) {
  body { background: #E9ECF1; }
  #app { box-shadow: var(--shadow-lg); min-height: 100vh; }
}

/* ===== 通用 ===== */
.page { padding: 16px 16px calc(var(--tab-height) + 24px + var(--safe-bottom)); min-height: 100vh; }
.page.no-tab { padding-bottom: 24px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--primary); color: #fff;
  height: var(--header-height);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600;
  padding: 0 16px;
}
.header .back { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #fff; padding: 4px; }
.header .right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #fff; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px; border-radius: 10px;
  font-size: 16px; font-weight: 600; transition: opacity .15s;
  background: var(--primary); color: #fff;
}
.btn:active { opacity: .85; }
.btn.secondary { background: var(--primary-light); color: var(--primary); }
.btn.success { background: var(--success); }
.btn.warning { background: var(--warning); }
.btn.danger { background: var(--danger); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.sm { padding: 8px 12px; font-size: 14px; width: auto; display: inline-flex; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 16px; background: #fff; color: var(--text);
  outline: none; transition: border .15s;
}
.input:focus { border-color: var(--primary); }
textarea.input { min-height: 80px; resize: vertical; }
.row { display: flex; gap: 10px; }
.row .field { flex: 1; }

/* 底部 Tab 导航 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 640px;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; z-index: 60;
  padding-bottom: var(--safe-bottom);
}
.tabbar .tab {
  flex: 1; height: var(--tab-height); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gray); font-size: 11px; gap: 2px;
}
.tabbar .tab .icon { font-size: 22px; line-height: 1; }
.tabbar .tab.active { color: var(--primary); font-weight: 600; }
.tabbar .tab .tab-badge {
  position: absolute; top: 4px; left: calc(50% + 8px);
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #EF4444; color: #fff; border-radius: 9px;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 600;
}

/* 列表 */
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item .thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info .t { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .info .d { font-size: 12px; color: var(--gray); margin-top: 3px; }
.list-item .info .d .noti-order { color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }
.list-item .val { text-align: right; }
.list-item .val .p { font-size: 16px; font-weight: 600; color: var(--warning); }
.list-item .val .s { font-size: 12px; color: var(--gray); }

/* 状态标签 */
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge.pending { background: #FEF3C7; color: #B45309; }
.badge.quoted { background: #E0E7FF; color: #4338CA; }
.badge.booked { background: #DBEAFE; color: #1D4ED8; }
.badge.servicing { background: #FEF3C7; color: #B45309; }
.badge.done { background: #DCFCE7; color: #15803D; }
.badge.settled { background: #F3F4F6; color: #374151; }
.badge.cancelled { background: #FEE2E2; color: #B91C1C; }

/* 状态时间轴 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline .step { position: relative; padding: 8px 0; }
.timeline .step .dot { position: absolute; left: -21px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--border); }
.timeline .step.done .dot { border-color: var(--success); background: var(--success); }
.timeline .step.cur .dot { border-color: var(--primary); background: var(--primary); }
.timeline .step .label { font-size: 14px; font-weight: 500; }
.timeline .step .time { font-size: 12px; color: var(--gray); }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--gray-light); }
.empty .icon { font-size: 48px; margin-bottom: 12px; }

/* Toast */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.9);
  background: rgba(0,0,0,.8); color: #fff; padding: 12px 20px;
  border-radius: 10px; font-size: 14px; z-index: 999;
  opacity: 0; pointer-events: none; transition: all .2s; max-width: 80%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 420px; padding: 24px; animation: pop .2s; }
.modal h3 { font-size: 17px; margin-bottom: 16px; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 分段选择 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); font-size: 14px; color: var(--text-2); background: #fff; }
.chip.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 500; }

/* 评分星星 */
.stars { display: flex; gap: 4px; font-size: 28px; color: var(--border); }
.stars .star.on { color: #F59E0B; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* 登录页 */
.login-hero { padding: 48px 24px 32px; text-align: center; }
.login-hero .logo { width: 72px; height: 72px; border-radius: 20px; background: var(--primary); color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.login-hero h1 { font-size: 22px; }
.login-hero p { color: var(--gray); font-size: 14px; margin-top: 6px; }
.login-form { padding: 0 24px; }
.login-tabs { display: flex; gap: 24px; margin-bottom: 20px; justify-content: center; }
.login-tabs .lt { padding: 6px 2px; font-size: 16px; color: var(--gray); border-bottom: 2px solid transparent; }
.login-tabs .lt.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }

/* 接单大厅卡片 */
.order-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.order-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-card .top .order-no { display: flex; align-items: center; gap: 6px; min-width: 0; }
.copy-btn { flex: none; border: 1px solid var(--border); background: #fff; color: var(--primary); font-size: 12px; line-height: 1; padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.order-card .addr { font-size: 13px; color: var(--gray); margin: 8px 0; }
.order-card .items { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.order-card .item-tag { background: var(--primary-light); color: var(--primary); padding: 3px 10px; border-radius: 6px; font-size: 12px; }
.order-notice { background: var(--danger-light); border: 1px solid #FECACA; color: #B91C1C; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.order-card .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.order-card .bottom-right { display: flex; align-items: center; gap: 8px; }
.msg-count { font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 10px; font-weight: 500; }

/* 收入/金额 */
.money { color: var(--warning); font-weight: 700; }
.money.green { color: var(--success); }

/* 角色选择 */
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.role-card.active { border-color: var(--primary); background: var(--primary-light); }
.role-card .ic { font-size: 36px; margin-bottom: 8px; }
.role-card .nm { font-size: 15px; font-weight: 600; }

.muted { color: var(--gray); font-size: 13px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }

/* ===== 订单状态横向时间轴 ===== */
.timeline-h { display: flex; }
.timeline-h .step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.timeline-h .step .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--border); background: #fff; position: relative; z-index: 1; box-sizing: border-box; }
.timeline-h .step .label { font-size: 11px; color: var(--gray); margin-top: 8px; text-align: center; line-height: 1.2; }
.timeline-h .step.done .dot { border-color: var(--success); background: var(--success); }
.timeline-h .step.cur .dot { border-color: var(--primary); background: var(--primary); }
.timeline-h .step.done .label, .timeline-h .step.cur .label { color: var(--text); font-weight: 500; }
.timeline-h .step:not(:first-child)::before {
  content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--border);
}
.timeline-h .step.done::before, .timeline-h .step.cur::before { background: var(--success); }

/* ===== 聊天界面（弹窗） ===== */
.chat-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.chat-modal { background: #fff; width: 100%; max-width: 640px; height: 82vh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: slideup .25s; }
.chat-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 600; flex-shrink: 0; }
.chat-close { font-size: 26px; line-height: 1; color: var(--gray); padding: 0 4px; }
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.chat-list { flex: 1; overflow-y: auto; padding: 16px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.quick-chip { padding: 5px 12px; border-radius: 16px; border: 1px solid var(--border); background: #fff; font-size: 12px; color: var(--text-2); cursor: pointer; }
.quick-chip:active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.msg { display: flex; align-items: flex-start; margin-bottom: 16px; gap: 8px; }
.msg .avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #f3f4f6; }
.msg .msg-body { max-width: 72%; display: flex; flex-direction: column; }
.msg .bubble { position: relative; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; word-break: break-word; }
.msg .msg-time { font-size: 11px; color: var(--gray-light); margin-top: 4px; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .avatar { background: #dbeafe; }
.msg.mine .msg-body { align-items: flex-end; }
.msg.mine .bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.mine .bubble::after { content: ''; position: absolute; right: -6px; bottom: 8px; border-width: 6px 0 6px 8px; border-style: solid; border-color: transparent transparent transparent var(--primary); }
.msg.other .bubble { background: #f3f4f6; color: var(--text); border-bottom-left-radius: 4px; }
.msg.other .bubble::after { content: ''; position: absolute; left: -6px; bottom: 8px; border-width: 6px 8px 6px 0; border-style: solid; border-color: transparent #f3f4f6 transparent transparent; }
.chat-bar { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--border); padding-bottom: calc(10px + var(--safe-bottom)); }
.chat-bar .input { flex: 1; }
.chat-bar .btn { width: auto; padding: 12px 20px; }

/* ===== 媒体缩略图与预览 ===== */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.media-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background-color: #f0f2f5; background-size: cover; background-position: center; cursor: pointer; }
.media-thumb.video { background-color: #111; display: flex; align-items: center; justify-content: center; }
.media-thumb .media-play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); position: relative; }
.media-thumb .media-play::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.media-mask { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadein .2s; }
.media-box { position: relative; max-width: 92vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.media-box img, .media-box video { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.media-close { position: absolute; top: -16px; right: -4px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; line-height: 1; border: none; cursor: pointer; }

/* ===== 图片画廊（滑动查看） ===== */
.gallery-mask { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: flex; align-items: center; justify-content: center; animation: fadein .2s; touch-action: none; overscroll-behavior: contain; }
.gallery-box { position: relative; width: 100%; overflow: hidden; }
.gallery-track { display: flex; transition: transform .25s ease; }
.gallery-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; padding: 0 12px; box-sizing: border-box; }
.gallery-slide img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 26px; line-height: 1; border: none; cursor: pointer; z-index: 2; }
.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }
.gallery-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.45); padding: 3px 12px; border-radius: 12px; z-index: 2; }
.gallery-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; line-height: 1; border: none; cursor: pointer; z-index: 2; }

/* ===== 视频预览（80% 屏幕，仅声音键） ===== */
.video-mask { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: flex; align-items: center; justify-content: center; animation: fadein .2s; }
.video-box { position: relative; width: 80vw; height: 80vh; display: flex; align-items: center; justify-content: center; }
.video-box video { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.video-sound { position: absolute; bottom: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 20px; line-height: 1; border: none; cursor: pointer; z-index: 2; }
.video-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; line-height: 1; border: none; cursor: pointer; z-index: 2; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ===== 费用明细与逐项验收 ===== */
.fee-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.fee-row .fee-label { font-size: 14px; color: var(--gray); }
.acc-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-item .acc-name { font-size: 15px; font-weight: 500; }
.acc-toggle { display: flex; gap: 6px; }
.acc-toggle .chip { padding: 6px 14px; }
.acc-toggle .acc-pass.active { background: var(--success-light); border-color: var(--success); color: var(--success); }
.acc-toggle .acc-fail.active { background: var(--danger-light); border-color: var(--danger); color: var(--danger); }

/* ===== 报价弹窗（综合报价 + 逐项明细） ===== */
.quote-section { font-size: 13px; color: var(--gray); font-weight: 600; margin: 14px 0 8px; }
.quote-total {
  display: flex; align-items: center; gap: 12px;
  background: var(--warning-light); border: 1px solid #FED7AA;
  border-radius: 10px; padding: 8px 12px;
}
.quote-total .qt-label { font-size: 14px; font-weight: 600; color: #C2410C; white-space: nowrap; }
.quote-total .qt-input { flex: 1; display: flex; align-items: center; }
.quote-total .qt-input .qt-symbol { color: var(--warning); font-weight: 700; font-size: 16px; margin-right: 4px; }
.quote-total .qt-input input {
  width: 100%; border: none; outline: none; background: transparent;
  font-size: 18px; font-weight: 700; color: var(--warning);
}
.quote-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.quote-table .qr { display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.quote-table .qr:last-child { border-bottom: none; }
.quote-table .qr.head { background: var(--bg); }
.quote-table .qr.head span { font-size: 12px; color: var(--gray); }
.quote-table .qr .qr-name { flex: 1; padding: 10px 12px; font-size: 14px; }
.quote-table .qr .qr-price { width: 118px; display: flex; align-items: center; border-left: 1px solid var(--border); flex-shrink: 0; }
.quote-table .qr .qr-price .qr-symbol { color: var(--gray); font-size: 14px; padding-left: 10px; }
.quote-table .qr .qr-price input {
  width: 100%; border: none; outline: none; padding: 10px 10px 10px 2px;
  font-size: 14px; text-align: right; color: var(--text);
}

/* ===== 头像 ===== */
.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; position: relative;
}
.profile-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .avatar-emoji { font-size: 32px; }
.profile-avatar::after {
  content: '✎'; position: absolute; right: 0; bottom: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; line-height: 20px; text-align: center;
  border: 2px solid #fff; box-sizing: border-box;
}
.profile-info { flex: 1; min-width: 0; }
.profile-info .t { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-info .d { font-size: 13px; color: var(--gray); margin-top: 4px; }
.profile-info .dn-hint { font-size: 12px; color: var(--gray); margin-top: 4px; }
.msg .avatar .avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.msg .avatar .avatar-emoji { font-size: 18px; }

/* ===== 管理端订单详情：左右分栏 + 信息行 ===== */
.admin-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.admin-split .card { margin-bottom: 0; }

/* 模块标题：主题色竖条 + 底部分隔线，强化层级 */
#ad-od-body .card-title,
.master-detail .card-title {
  position: relative;
  padding-left: 12px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
#ad-od-body .card-title::before,
.master-detail .card-title::before {
  content: '';
  position: absolute; left: 0; top: 2px;
  width: 3px; height: 15px; border-radius: 2px;
  background: var(--primary);
}

/* 信息行：标签定宽 + 值左对齐，纵向整齐 */
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 14px; line-height: 1.55; border-bottom: 1px solid #F3F4F6; }
.info-row:last-child { border-bottom: none; }
.info-row .k {
  flex: 0 0 78px;
  display: flex; align-items: center; gap: 6px;
  color: var(--text-2); font-size: 13px; font-weight: 400;
}
.info-row .k::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: #D1D5DB; flex-shrink: 0;
}
.info-row .v { flex: 1; min-width: 0; color: var(--text); text-align: left; font-weight: 500; word-break: break-all; }
.info-row .v.hl { color: var(--warning); font-weight: 700; }
.info-row.col { flex-direction: column; gap: 6px; }
.info-row.col .k { flex: none; }
.info-row.col .v { padding-left: 9px; }

/* 返回按钮：底部悬浮 */
.btn-back-fixed {
  position: fixed; bottom: calc(12px + var(--safe-bottom));
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 608px;
  z-index: 55;
  box-shadow: var(--shadow-lg);
}
.page.no-tab.admin-detail { padding-bottom: 84px; }

@media (max-width: 480px) {
  .admin-split { grid-template-columns: 1fr; }
}

/* ===== 管理端订单列表美化 ===== */
.admin-order-card { padding: 16px; }
.admin-order-card .top { margin-bottom: 10px; gap: 8px; }
.admin-order-card .ao-no { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex: 1; }
.admin-order-card .ao-no-label { color: var(--gray); font-size: 13px; flex-shrink: 0; }
.admin-order-card .ao-no-val { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; color: var(--text); word-break: break-all; }
.admin-order-card .items { margin: 8px 0; }
.admin-order-card .addr { margin: 6px 0 10px; line-height: 1.6; }
.admin-order-card .bottom { margin-top: 10px; }
.admin-order-card .ao-action { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); justify-content: flex-end; }
.ao-toolbar { align-items: center; margin-top: 12px; }
.ao-toolbar .muted { flex-shrink: 0; }
.ao-toolbar select { flex: 0 0 auto; width: auto; }
.ao-pagination { padding: 12px 16px; }
.ao-pagination .row { align-items: center; }

/* ===== 管理端顶部菜单栏 ===== */
.admin-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.admin-nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff;
  font-size: 13px; color: var(--text-2); line-height: 1;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.admin-nav-item .an-icon { font-size: 15px; line-height: 1; }
.admin-nav-item .an-name { white-space: nowrap; }
.admin-nav-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
/* 桌面端悬停反馈 */
@media (hover: hover) {
  .admin-nav-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #F8FAFF;
  }
  .admin-nav-item.active:hover { background: var(--primary-light); }
}
/* 点击反馈 */
.admin-nav-item:active { transform: scale(.96); }
