/* ============================================================
   办案区预约 · 梅河口市人民检察院 · H5 样式
   ============================================================ */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f2f5fa;
  color: #263047;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

/* ---------- 容器 ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 12px 14px 80px; }
.hidden { display: none !important; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(22, 74, 156, 0.06);
}
.card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.sub { font-size: 13px; color: #8790a3; }
.inline { display: inline; }
.warn { color: #d33b41; }

/* ---------- 按钮 ---------- */
.btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { opacity: 0.75; }
.btn-primary {
  background: #164a9c;
  color: #fff;
}
.btn-primary:disabled {
  background: #a8bade;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}
.btn-ghost {
  background: #fff;
  color: #164a9c;
  border: 1.5px solid #164a9c;
}
.btn-sm { padding: 8px 0; font-size: 14px; width: auto; display: inline-block; padding: 8px 20px; }

/* ---------- 输入 ---------- */
input, textarea, select {
  background: #f4f6fa;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  border: none;
  width: 100%;
  outline: none;
  font-family: inherit;
  color: #263047;
  transition: background 0.15s;
}
input:focus, textarea:focus { background: #eef2f9; }
textarea { resize: vertical; min-height: 70px; }
.ph { color: #98a1b1; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 1px 10px;
  border-radius: 999px;
  margin: 0 6px 4px 0;
  background: #eef2f9;
  color: #4d5872;
}
.tag-red { background: #fdeaea; color: #c0353a; }
.tag-orange { background: #fdf3e2; color: #b3760d; }
.tag-green { background: #e8f5ec; color: #2f8b4c; }
.tag-blue { background: #e5eefc; color: #164a9c; }
.tag-gray { background: #eef0f4; color: #7d8593; }
.tag-purple { background: #f0ebfb; color: #6b48b8; }

/* ---------- 布局工具 ---------- */
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.row-center { display: flex; align-items: center; gap: 8px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.gap-8 { gap: 8px; }
.text-center { text-align: center; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 选择列表（pill） ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: #f4f6fa;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.pill.on {
  border-color: #164a9c;
  background: #e5eefc;
  color: #164a9c;
  font-weight: 600;
}

/* ---------- 选择器（picker 模拟） ---------- */
.picker {
  background: #f4f6fa;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.picker::after { content: '▾'; color: #98a1b1; font-size: 12px; }

/* ---------- 标签栏 ---------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  border-top: 1px solid #eef0f4;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
}
.tab-item {
  flex: 1;
  text-align: center;
  padding: 8px 0 10px;
  font-size: 12px;
  color: #7d8593;
  cursor: pointer;
  transition: color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.tab-item.on { color: #164a9c; font-weight: 600; }
.tab-icon { font-size: 20px; display: block; margin-bottom: 2px; }

/* ---------- 首页看板 ---------- */
.datebar { display: flex; align-items: center; justify-content: space-between; }
.datebar .arrow { color: #164a9c; font-size: 14px; cursor: pointer; padding: 6px 10px; }
.datebar .mid { text-align: center; }
.datebar .d { font-size: 15px; font-weight: 600; }
.datebar .back { font-size: 12px; cursor: pointer; color: #164a9c; }

/* 筛选标签条 */
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg-i {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: #f4f6fa;
  cursor: pointer;
  transition: all 0.12s;
}
.seg-i.on { background: #164a9c; color: #fff; font-weight: 500; }
.transfer-tip { margin-top: 6px; font-size: 12px; color: #c0353a; }

/* 待审核提醒 */
.pending-bar {
  background: #fdf3e2;
  color: #b3760d;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

/* 预约记录卡片 */
.item { position: relative; }
.item.transfer-hl { border-left: 3px solid #c0353a; }
.grouptag { font-size: 12px; color: #98a1b1; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.subj-row { margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.subj-name {
  background: #e5eefc;
  color: #164a9c;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}
.time-line { font-size: 13px; color: #4d5872; margin-bottom: 8px; }
.handler-row { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.h-label { color: #98a1b1; }
.h-name { font-weight: 600; }
.h-phone { color: #164a9c; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* 同组办案人 */
.peers { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef0f4; }
.peers-title { font-size: 12px; color: #98a1b1; margin-bottom: 4px; }
.peer { font-size: 13px; color: #164a9c; cursor: pointer; padding: 2px 0; }

/* ---------- 登记表单 ---------- */
.head { padding: 14px 16px; }
.who { font-size: 14px; color: #4d5872; }
.sub-box { margin-top: 10px; padding: 10px; background: #f8f9fb; border-radius: 8px; }
.sub-title { font-size: 13px; color: #4d5872; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.box {
  width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #98a1b1;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; background: #fff;
  transition: all 0.12s;
}
.box.on { background: #164a9c; border-color: #164a9c; }
.parsed { margin-top: 8px; }

/* ---------- 人员管理 ---------- */
.user-card { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f4f6fa; }
.user-card:last-child { border-bottom: none; }
.user-name { font-weight: 600; font-size: 15px; }
.user-meta { font-size: 12px; color: #8790a3; }
.user-actions { display: flex; gap: 6px; }
.act-btn { font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer; border: none; }
.act-green { background: #e8f5ec; color: #2f8b4c; }
.act-red { background: #fdeaea; color: #c0353a; }
.act-blue { background: #e5eefc; color: #164a9c; }
.act-gray { background: #eef0f4; color: #7d8593; }

/* ---------- 统计 ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stat-cell {
  background: #f4f6fa;
  border-radius: 8px;
  padding: 10px 14px;
  flex: 1;
  min-width: 80px;
  text-align: center;
}
.stat-num { font-size: 22px; font-weight: 700; color: #164a9c; }
.stat-label { font-size: 12px; color: #8790a3; }

/* ---------- 我的 ---------- */
.profile-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #e5eefc; color: #164a9c;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
}
.profile-info { flex: 1; }
.profile-name { font-size: 16px; font-weight: 600; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #f4f6fa; cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: #98a1b1; padding: 60px 0; font-size: 14px; }

/* ---------- 角色选择 ---------- */
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.role {
  flex: 1; min-width: 120px; padding: 12px; border-radius: 8px;
  border: 1.5px solid #eef0f4; cursor: pointer; transition: all 0.12s;
}
.role.on { border-color: #164a9c; background: #e5eefc; }
.role-name { font-weight: 600; font-size: 14px; }
.role-desc { font-size: 12px; color: #8790a3; margin-top: 2px; }

/* ---------- 待审核 ---------- */
.wait { text-align: center; padding: 40px 20px; }
.wait-ico { font-size: 48px; margin-bottom: 10px; }
.wait-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.wait-tip { font-size: 13px; color: #8790a3; margin: 6px 0; }

/* ---------- 操作按钮组 ---------- */
.ops { margin-top: 6px; display: flex; gap: 8px; }
.op { font-size: 13px; color: #164a9c; cursor: pointer; }
.new-box { margin-top: 8px; padding: 10px; background: #f8f9fb; border-radius: 8px; }
.reset { text-align: center; font-size: 13px; color: #98a1b1; margin-top: 12px; cursor: pointer; }
.link { font-size: 14px; color: #164a9c; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------- 模态 ---------- */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35); z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.modal-box {
  background: #fff; border-radius: 14px; padding: 24px 20px;
  max-width: 320px; width: 90%; text-align: center;
}
.modal-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.modal-body { font-size: 14px; color: #4d5872; margin-bottom: 16px; line-height: 1.6; }
.modal-close { color: #164a9c; font-size: 15px; cursor: pointer; font-weight: 500; }

/* ---------- 提示消息 ---------- */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75); color: #fff; padding: 14px 24px;
  border-radius: 10px; font-size: 14px; z-index: 300;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page { padding: 16px 20px 80px; }
}
