/* 单据补充核实 — 共用样式（Linear 风格 / 移动优先） */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --warn: #d97706;
  --warn-light: #fffbeb;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 顶部栏 */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* 容器 */
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 16px; font-weight: 500;
  color: #fff; background: var(--primary);
  border: 0; border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.btn:active { background: var(--primary-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.outline {
  background: #fff; color: var(--primary);
  border: 1px solid var(--primary);
}
.btn.gray { background: #f1f5f9; color: var(--text); }
.btn.small {
  width: auto; min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 8px;
}
.btn.success { background: var(--success); }

/* 表单 */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=password], input[type=number], textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;               /* ≥16px 防微信强制缩放 */
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* 勾选项 */
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary); }
.check-row label { font-size: 15px; }

/* 文件选择（大按钮样式） */
.filebox {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 96px;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  background: #fcfdfe;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 14px;
  text-align: center;
}
.filebox:active { border-color: var(--primary); background: var(--primary-light); }
.filebox .big { font-size: 24px; }

/* 单据列表卡片 */
.doc {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.doc .thumb {
  width: 72px; height: 72px; flex: 0 0 72px;
  object-fit: cover; border-radius: 8px; background: #f1f5f9;
  border: 1px solid var(--border);
}
.doc .body { flex: 1; min-width: 0; }
.doc .title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.doc .meta { font-size: 13px; color: var(--text-muted); }
.doc .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* 状态标签 */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; vertical-align: middle;
}
.tag.pending { background: var(--warn-light); color: var(--warn); }
.tag.submitted { background: var(--primary-light); color: var(--primary); }
.tag.verified { background: var(--success-light); color: var(--success); }

/* 提示 */
.empty { text-align: center; color: var(--text-muted); padding: 48px 16px; font-size: 15px; }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: rgba(30, 41, 59, .92); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  z-index: 999; opacity: 0; transition: opacity .2s ease; pointer-events: none;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; }

/* 图片查看层 */
.viewer {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15, 23, 42, .92);
  display: none; align-items: center; justify-content: center; padding: 12px;
}
.viewer.show { display: flex; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* 已选文件提示 */
.picked { font-size: 13px; color: var(--text-muted); margin-top: 8px; word-break: break-all; }

/* 成功页 */
.done-page { text-align: center; padding: 64px 20px; }
.done-page .icon { font-size: 56px; }
.done-page h2 { font-size: 19px; margin: 14px 0 6px; }
.done-page p { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }

.hint { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; }
