/* ============================================================
 * 快递签收反馈管理系统 — 样式（Light Theme）
 * ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #16a34a;
  --warning: #ea580c;
  --danger: #dc2626;
  --info: #0891b2;
  --text: #1e293b;
  --text-sub: #64748b;
  --text-mute: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --radius: 10px;
  --radius-sm: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 顶部栏 ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; font-weight: 700; }
.brand-text span { font-size: 11px; color: var(--text-mute); letter-spacing: .5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.user-chip .uname { font-size: 13px; font-weight: 600; }
.role-tag {
  font-size: 11px; padding: 1px 8px; border-radius: 10px; font-weight: 600;
  background: var(--primary-light); color: var(--primary);
}
.role-tag.admin { background: #fef3c7; color: #b45309; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-dark);
  background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600;
  transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-mute); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { filter: brightness(.94); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(.94); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-sub); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 首页 ---------- */
.home-hero { max-width: 900px; margin: 0 auto; padding: 56px 24px 20px; text-align: center; }
.home-hero h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: -.5px; }
.home-hero p { font-size: 16px; color: var(--text-sub); margin: 0 0 36px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.entry-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 28px; cursor: pointer; transition: .2s; text-align: left; box-shadow: var(--shadow);
}
.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.entry-card .ic {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff;
}
.entry-card.customer .ic { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.entry-card.staff .ic { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.entry-card h3 { margin: 0 0 8px; font-size: 19px; }
.entry-card p { margin: 0; color: var(--text-sub); font-size: 13px; line-height: 1.7; }
.entry-card .arrow { float: right; color: var(--text-mute); }
.home-foot { max-width: 760px; margin: 30px auto 60px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.feature-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 7px 16px; font-size: 12px; color: var(--text-sub); }

/* ---------- 客户页 ---------- */
.cust-wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.page-head { margin-bottom: 22px; }
.page-head h2 { margin: 0 0 6px; font-size: 24px; }
.page-head p { margin: 0; color: var(--text-sub); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab {
  padding: 10px 18px; cursor: pointer; font-weight: 600; color: var(--text-sub);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.card-sub { font-size: 13px; color: var(--text-sub); margin: 0 0 20px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field textarea { resize: vertical; min-height: 74px; }
.field .hint { font-size: 11px; color: var(--text-mute); }
.form-note {
  background: var(--primary-light); border: 1px solid #dbeafe; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 12px; color: #1e40af; margin-bottom: 20px;
  display: flex; gap: 8px; align-items: flex-start;
}

/* 自查结果 */
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.search-bar input { flex: 1; padding: 10px 12px; border: 1px solid var(--border-dark); border-radius: var(--radius-sm); outline: none; }
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* 状态标签 */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; }

/* 单据卡片（客户） */
.rec-card { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: var(--surface); }
.rec-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.rec-card-head .left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rec-no { font-weight: 700; font-family: ui-monospace, monospace; font-size: 13px; }
.rec-track { font-size: 12px; color: var(--text-sub); }
.rec-card-body { padding: 16px 18px; }
.kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv .k { font-size: 11px; color: var(--text-mute); }
.kv .v { font-size: 13px; font-weight: 600; word-break: break-all; }

/* 时间线 */
.timeline { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 16px; }
.timeline-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 3px; z-index: 1;
  background: var(--primary); border: 3px solid var(--primary-light);
}
.tl-dot.success { background: var(--success); border-color: #dcfce7; }
.tl-dot.danger { background: var(--danger); border-color: #fee2e2; }
.tl-content .tl-act { font-size: 13px; font-weight: 700; }
.tl-content .tl-detail { font-size: 12px; color: var(--text-sub); }
.tl-content .tl-meta { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* ---------- 内部工作台布局 ---------- */
.workspace { display: flex; min-height: calc(100vh - 62px); }
.sidebar {
  width: 226px; flex: none; background: var(--surface); border-right: 1px solid var(--border);
  padding: 18px 12px; position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto;
}
.nav-group-title { font-size: 11px; color: var(--text-mute); font-weight: 700; padding: 12px 12px 6px; letter-spacing: .5px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-sub); font-weight: 600; margin-bottom: 2px; transition: .12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-light); color: var(--primary); }
.nav-item .badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; padding: 0 7px; border-radius: 10px; font-weight: 700; }
.nav-item svg { flex: none; }
.ws-main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.ws-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ws-head h2 { margin: 0 0 4px; font-size: 23px; }
.ws-head p { margin: 0; color: var(--text-sub); font-size: 13px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card .sc-label { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
.stat-card .sc-num { font-size: 30px; font-weight: 800; margin-top: 6px; line-height: 1; }
.stat-card .sc-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }

/* 工具条 */
.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.toolbar .search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-dark); border-radius: var(--radius-sm); padding: 0 10px; background: var(--surface);
}
.toolbar .search input { border: none; outline: none; width: 100%; padding: 7px 0; background: transparent; }
.toolbar select {
  padding: 8px 10px; border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); outline: none;
}
.toolbar .sep { width: 1px; height: 22px; background: var(--border); }

/* 分组标题 */
.group-bar {
  display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-weight: 700; font-size: 14px;
}
.group-bar .count {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  font-size: 11px; padding: 1px 9px; color: var(--text-sub); font-weight: 600;
}

/* 表格 */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  background: var(--surface-2); color: var(--text-sub); font-weight: 700; font-size: 12px;
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .mono { font-family: ui-monospace, monospace; font-size: 12px; }
table.data .actions-cell { white-space: nowrap; }
.tbl-link { color: var(--primary); font-weight: 600; cursor: pointer; }
.tbl-link:hover { text-decoration: underline; }
.timeout-flag { color: var(--danger); font-size: 11px; font-weight: 700; display: inline-flex; gap: 3px; align-items: center; }
.empty { text-align: center; padding: 50px 20px; color: var(--text-mute); }
.empty .ic { font-size: 40px; margin-bottom: 10px; opacity: .5; }

/* ---------- 抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 80; opacity: 0; transition: opacity .2s; }
.drawer-mask.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw; background: var(--surface);
  z-index: 81; box-shadow: -10px 0 40px rgba(15,23,42,.15); transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-head .sub { font-size: 12px; color: var(--text-mute); font-family: ui-monospace, monospace; }
.drawer-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }
.sec { margin-bottom: 24px; }
.sec-title { font-size: 13px; font-weight: 700; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }

/* 状态选择器 */
.status-options { display: flex; flex-wrap: wrap; gap: 8px; }
.status-opt {
  padding: 7px 12px; border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12px; font-weight: 600; background: var(--surface); transition: .12s;
}
.status-opt:hover { border-color: var(--primary); }
.status-opt.sel { color: #fff; border-color: transparent; }

/* 凭证上传 */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.photo-del {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; font-size: 13px; line-height: 20px; text-align: center;
}
.photo-add {
  aspect-ratio: 1; border: 2px dashed var(--border-dark); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--text-mute); gap: 4px;
}
.photo-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ---------- 消息中心 ---------- */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; gap: 12px; box-shadow: var(--shadow); position: relative;
}
.msg-item.unread { border-left: 3px solid var(--primary); background: #fbfdff; }
.msg-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.msg-body { flex: 1; min-width: 0; }
.msg-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.msg-text { font-size: 13px; color: var(--text-sub); margin-top: 3px; }
.msg-time { font-size: 11px; color: var(--text-mute); margin-top: 5px; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; margin-top: 6px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 34px; box-shadow: var(--shadow-lg); }
.login-card h2 { margin: 0 0 6px; font-size: 22px; }
.login-card .sub { color: var(--text-sub); margin: 0 0 24px; font-size: 13px; }
.demo-accounts { margin-top: 20px; padding: 14px; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px dashed var(--border-dark); font-size: 12px; color: var(--text-sub); }
.demo-accounts strong { color: var(--text); }
.demo-accounts code { background: var(--surface); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--primary); }

/* ---------- Toast / Modal ---------- */
.toast-wrap { position: fixed; top: 74px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow-lg); min-width: 240px; max-width: 380px;
  animation: slideIn .25s ease; font-size: 13px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal {
  background: var(--surface); border-radius: 12px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: popIn .2s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.modal-body { padding: 22px; font-size: 14px; color: var(--text-sub); }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); }

/* 图片预览 */
.img-preview-mask { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 300; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.img-preview-mask img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }

/* 表单错误 */
.err { color: var(--danger); font-size: 12px; min-height: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .sidebar { width: 100%; height: auto; position: static; display: flex; overflow-x: auto; padding: 8px; gap: 4px; border-right: none; border-bottom: 1px solid var(--border); }
  .nav-group-title { display: none; }
  .nav-item { white-space: nowrap; }
  .workspace { flex-direction: column; }
  .ws-main { padding: 18px 16px 50px; }
  .entry-grid { grid-template-columns: 1fr; }
  .form-grid, .kv-grid { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .topbar-inner { padding: 0 14px; }
  .drawer { width: 100%; }
}

/* ============================================================
 * v2 新增样式：扫码入库 / 签收反馈 / 用户角色
 * ============================================================ */

/* 登录页切换 / 演示账号 */
.auth-switch { text-align:center; font-size:13px; color:var(--text-sub); margin-top:14px; }
.auth-switch a { color:var(--primary); cursor:pointer; font-weight:500; }
.auth-switch a:hover { text-decoration:underline; }

/* 角色标签 */
.role-tag.customer { background:#eff6ff; color:#1d4ed8; }
.role-tag.staff { background:#f5f3ff; color:#6d28d9; }

/* 扫码布局 */
.scan-layout { display:grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap:20px; align-items:start; }
@media (max-width: 960px) { .scan-layout { grid-template-columns:1fr; } }
.scan-card { overflow:hidden; }
.scan-preview-wrap {
  position:relative; width:100%; aspect-ratio: 4/3; background:#0f172a; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.scan-preview-wrap video { width:100%; height:100%; object-fit:cover; }
.scan-overlay { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }
.scan-frame { position:relative; width:58%; aspect-ratio:1; border:2px solid rgba(255,255,255,.7); border-radius:12px; }
.scan-frame .corner { position:absolute; width:26px; height:26px; border-color:#38bdf8; border-style:solid; }
.scan-frame .corner.tl { top:-2px; left:-2px; border-width:3px 0 0 3px; border-radius:8px 0 0 0; }
.scan-frame .corner.tr { top:-2px; right:-2px; border-width:3px 3px 0 0; border-radius:0 8px 0 0; }
.scan-frame .corner.bl { bottom:-2px; left:-2px; border-width:0 0 3px 3px; border-radius:0 0 0 8px; }
.scan-frame .corner.br { bottom:-2px; right:-2px; border-width:0 3px 3px 0; border-radius:0 0 8px 0; }
.scan-hint-text { margin-top:18px; color:#e2e8f0; font-size:13px; background:rgba(15,23,42,.6); padding:6px 14px; border-radius:20px; }
.scan-controls { display:flex; gap:10px; padding:16px; flex-wrap:wrap; }
.scan-tip { display:flex; align-items:flex-start; gap:6px; font-size:12px; color:var(--text-sub); padding:0 16px 16px; line-height:1.5; }
.scan-tip svg { flex-shrink:0; margin-top:1px; }
.detected-flag { color:#059669; font-size:12px; margin-top:6px; font-weight:500; }

/* 签收结果卡 */
.result-card { display:flex; gap:16px; align-items:flex-start; padding:18px 20px; margin-top:18px; }
.result-card.success { border-left:4px solid #059669; }
.result-card.warn { border-left:4px solid #d97706; }
.result-ic { flex-shrink:0; width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.result-card.success .result-ic { background:#ecfdf5; color:#059669; }
.result-card.warn .result-ic { background:#fffbeb; color:#d97706; }
.result-title { font-size:16px; font-weight:500; margin-bottom:6px; }
.result-detail { font-size:13px; color:var(--text-sub); line-height:1.6; }
.result-hint { display:inline-block; margin-top:8px; font-size:13px; color:var(--primary); background:var(--primary-light); padding:5px 12px; border-radius:6px; }

/* 客户包裹卡 - 已签收 */
.rec-card.done { border-left:3px solid #059669; }
.signed-box { background:#ecfdf5; border:1px solid #a7f3d0; border-radius:10px; padding:16px; }
.signed-title { display:flex; align-items:center; gap:8px; color:#047857; font-size:15px; font-weight:500; }
.signed-hint { margin-top:10px; display:inline-block; background:#fff; color:#0f766e; border:1px solid #99f6e4; padding:8px 14px; border-radius:8px; font-size:13px; font-weight:500; }
.signed-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.signed-grid > div { display:flex; flex-direction:column; gap:3px; }
.signed-grid .k { font-size:11px; color:var(--text-mute); }
.signed-grid .v { font-size:13px; font-weight:500; }
.signed-photos { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.signed-photos img { width:72px; height:72px; object-fit:cover; border-radius:8px; border:1px solid var(--border); cursor:pointer; }
.pending-box { display:flex; align-items:center; gap:8px; background:#fffbeb; border:1px solid #fde68a; color:#b45309; padding:12px 14px; border-radius:8px; font-size:13px; }

/* 照片张数徽标 / 详情抽屉 */
.photo-count { display:inline-flex; align-items:center; gap:4px; color:var(--primary); cursor:pointer; font-size:12px; }
.modal-wide { max-width:560px; width:94%; }
.img-preview-mask { position:fixed; inset:0; background:rgba(0,0,0,.8); z-index:9999; display:flex; align-items:center; justify-content:center; cursor:zoom-out; }
.img-preview-mask img { max-width:92vw; max-height:92vh; border-radius:8px; }
