/* =========================================================================
 * rescheck.css —— 居住核查 / 烟感督办模块样式（Apple 规范）
 *   浅色填充 #f5f5f7 · 发丝线 #d2d2d7 · 主色 #0071e3 · semibold 600 · 胶囊圆角
 *   移动端步进条与拍照按钮热区 ≥44px
 * ========================================================================= */

/* 容器与页头 ------------------------------------------------------------- */
.rc-page { padding: 16px 20px 40px; max-width: 1280px; margin: 0 auto; }
.rc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rc-title { font-size: 20px; font-weight: 600; color: #1d1d1f; margin: 0; }
.rc-sub { color: #86868b; font-size: 13px; }

/* 顶部 Tab（列表 / 看板 / 导入） ---------------------------------------- */
.rc-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.rc-tab { padding: 7px 16px; border: 1px solid #d2d2d7; background: #fff; border-radius: 980px;
  font-size: 14px; color: #1d1d1f; cursor: pointer; min-height: 36px; }
.rc-tab.active { background: #0071e3; border-color: #0071e3; color: #fff; font-weight: 600; }

/* 卡片 ----------------------------------------------------------------- */
.rc-card { background: #f5f5f7; border: 1px solid #d2d2d7; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.rc-card h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #1d1d1f; }
.rc-grid { display: grid; gap: 12px; }
.rc-grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.rc-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.rc-grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.rc-grid.cols5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .rc-grid.cols3, .rc-grid.cols4, .rc-grid.cols5 { grid-template-columns: repeat(2, 1fr); } }

/* 统计卡 --------------------------------------------------------------- */
.rc-stat { background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; padding: 14px 16px; text-align: center; }
.rc-stat .num { font-size: 26px; font-weight: 600; color: #1d1d1f; line-height: 1.2; }
.rc-stat .lab { font-size: 12px; color: #86868b; margin-top: 4px; }
.rc-stat.tone-blue .num { color: #0071e3; }
.rc-stat.tone-amber .num { color: #b45309; }
.rc-stat.tone-teal .num { color: #0d9488; }
.rc-stat.tone-green .num { color: #059669; }
.rc-stat.tone-red .num { color: #dc2626; }
.rc-stat.tone-grey .num { color: #6b7280; }

/* 筛选条 --------------------------------------------------------------- */
.rc-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.rc-field { display: flex; flex-direction: column; gap: 4px; }
.rc-field label { font-size: 12px; color: #86868b; }
.rc-field input, .rc-field select { height: 36px; border: 1px solid #d2d2d7; border-radius: 8px; padding: 0 10px; font-size: 14px; background: #fff; color: #1d1d1f; }
.rc-field input:focus, .rc-field select:focus { outline: none; border-color: #0071e3; }

/* 按钮 ----------------------------------------------------------------- */
.rc-btn { padding: 8px 18px; border-radius: 980px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 38px; }
.rc-btn.primary { background: #0071e3; color: #fff; }
.rc-btn.primary:hover { background: #0077ed; }
.rc-btn.secondary { background: #fff; color: #0071e3; border-color: #0071e3; }
.rc-btn.ghost { background: #f5f5f7; color: #1d1d1f; border-color: #d2d2d7; }
.rc-btn.danger { background: #fff; color: #dc2626; border-color: #dc2626; }
.rc-btn.warn { background: #fff; color: #b45309; border-color: #b45309; }
.rc-btn:disabled { opacity: .5; cursor: not-allowed; }
.rc-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* 表格 ----------------------------------------------------------------- */
.rc-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; overflow: hidden; font-size: 13px; }
.rc-table th, .rc-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.rc-table th { background: #f5f5f7; font-weight: 600; color: #1d1d1f; white-space: nowrap; }
.rc-table tbody tr:hover { background: #fafafa; }
.rc-table tbody tr:last-child td { border-bottom: none; }
.rc-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.rc-rowlink { cursor: pointer; }

/* 状态标签 ------------------------------------------------------------- */
.rc-badge { display: inline-block; padding: 2px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rc-badge.tone-blue { background: #e8f1fe; color: #0071e3; }
.rc-badge.tone-amber { background: #fef3c7; color: #b45309; }
.rc-badge.tone-teal { background: #ccfbf1; color: #0d9488; }
.rc-badge.tone-green { background: #d1fae5; color: #059669; }
.rc-badge.tone-red { background: #fee2e2; color: #dc2626; }
.rc-badge.tone-grey { background: #f3f4f6; color: #6b7280; }
.rc-overdue { color: #dc2626; font-weight: 600; }

/* 详情大窗分区 --------------------------------------------------------- */
.rc-detail h3 { font-size: 16px; margin: 18px 0 10px; color: #1d1d1f; }
.rc-dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: 13px; }
.rc-dl dt { color: #86868b; }
.rc-dl dd { margin: 0; color: #1d1d1f; word-break: break-all; }
.rc-sec { border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
.rc-sec > .rc-sec-title { font-weight: 600; color: #1d1d1f; margin-bottom: 8px; }

/* 照片墙 --------------------------------------------------------------- */
.rc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rc-slot { background: #f5f5f7; border: 1px solid #d2d2d7; border-radius: 12px; padding: 12px; }
.rc-slot .slot-name { font-weight: 600; font-size: 13px; color: #1d1d1f; display: flex; justify-content: space-between; }
.rc-slot .slot-name .cnt { color: #86868b; font-weight: 400; }
.rc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rc-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #d2d2d7; }
.rc-thumbs .rc-empty { color: #b0b0b5; font-size: 12px; }

/* 移动端照片网格（拍照） ----------------------------------------------- */
.rc-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rc-photo-cell { border: 1px solid #d2d2d7; border-radius: 12px; padding: 10px; background: #f5f5f7; }
.rc-photo-cell .pc-name { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; }
.rc-photo-cell .pc-shot { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.rc-shot { position: relative; }
.rc-shot img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #d2d2d7; }
.rc-shot .rc-del { position: absolute; top: -6px; right: -6px; background: #dc2626; color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; }
.rc-capture-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px;
  border: 1px dashed #0071e3; color: #0071e3; background: #fff; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 14px; }

/* 移动端分步器 --------------------------------------------------------- */
.rc-stepper { display: flex; gap: 4px; margin: 12px 0 18px; flex-wrap: wrap; }
.rc-step { flex: 1; min-width: 44px; min-height: 44px; border: 1px solid #d2d2d7; border-radius: 10px; background: #f5f5f7; color: #86868b;
  font-size: 12px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; }
.rc-step.active { background: #0071e3; color: #fff; border-color: #0071e3; font-weight: 600; }
.rc-step.done { background: #e8f1fe; color: #0071e3; border-color: #0071e3; }
.rc-form .rc-line { margin-bottom: 12px; }
.rc-form.form-auto .rc-line { margin-bottom: 0; }
.rc-form label { display: block; font-size: 13px; color: #1d1d1f; font-weight: 600; margin-bottom: 4px; }
.rc-form input, .rc-form select, .rc-form textarea { width: 100%; border: 1px solid #d2d2d7; border-radius: 10px; padding: 10px 12px; font-size: 15px; min-height: 44px; background: #fff; }
.rc-form textarea { min-height: 72px; }
.rc-form input:focus, .rc-form select:focus, .rc-form textarea:focus { outline: none; border-color: #0071e3; }
.rc-form .req::after { content: ' *'; color: #dc2626; }
.rc-hidden { display: none !important; }
.rc-muted { color: #86868b; font-size: 12px; }

/* 轻提示 --------------------------------------------------------------- */
.rc-flash { background: #e8f1fe; color: #0071e3; border: 1px solid #cfe2fd; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.rc-flash.rc-flash--err { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

/* 时间线 --------------------------------------------------------------- */
.rc-timeline { border-left: 2px solid #d2d2d7; margin-left: 6px; padding-left: 16px; }
.rc-tl-item { position: relative; padding: 6px 0; }
.rc-tl-item::before { content: ''; position: absolute; left: -22px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #0071e3; }
.rc-tl-item .tl-meta { font-size: 12px; color: #86868b; }
.rc-tl-item .tl-act { font-weight: 600; color: #1d1d1f; }
.rc-tl-item .tl-note { font-size: 13px; color: #1d1d1f; margin-top: 2px; }

/* 进度条 --------------------------------------------------------------- */
.rc-progress { height: 8px; background: #f0f0f0; border-radius: 980px; overflow: hidden; }
.rc-progress > i { display: block; height: 100%; background: #0071e3; }

/* 分页 ----------------------------------------------------------------- */
.rc-pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 12px; font-size: 13px; color: #86868b; }
.rc-pager .rc-btn { min-height: 34px; padding: 4px 14px; }

/* 督导状态卡（五态） --------------------------------------------------- */
.rc-sup-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .rc-sup-cards { grid-template-columns: repeat(2, 1fr); } }
.rc-sup-card { background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; padding: 14px; text-align: center; }
.rc-sup-card .num { font-size: 24px; font-weight: 600; }
.rc-sup-card .lab { font-size: 12px; color: #86868b; margin-top: 4px; }
.rc-metric { display: flex; gap: 12px; flex-wrap: wrap; }
.rc-metric .rc-stat { flex: 1; min-width: 160px; }

/* 临时明文 ------------------------------------------------------------- */
.rc-pii-btn { display: inline-flex; align-items: center; gap: 6px; }
.rc-pii-plain { color: #dc2626; font-weight: 600; font-family: ui-monospace, Menlo, monospace; }
.rc-countdown { font-size: 12px; color: #b45309; }

/* 数据统计页折叠区块：2026-11-04 起 按区域 / 按服务管家 / 已完成明细 默认全部折叠 */
.rc-fold { border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; margin-top: 10px; }
.rc-fold-head {
  list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 14px; font-size: 15px; font-weight: 600; color: #1d1d1f;
  border-left: 3px solid #0071e3; border-radius: 12px 12px 0 0; user-select: none;
}
.rc-fold-head::-webkit-details-marker { display: none; }
.rc-fold-head:hover { background: #f5f8ff; }
.rc-fold-meta { font-size: 12px; font-weight: 400; color: #86868b; }
.rc-fold-caret { margin-left: auto; font-size: 0; color: #0071e3; }
.rc-fold-caret::after { content: "展开"; font-size: 12px; font-weight: 500; color: #0071e3; }
.rc-fold[open] > .rc-fold-head { border-bottom: 1px solid #f0f0f2; }
.rc-fold[open] > .rc-fold-head .rc-fold-caret { transform: none; }
.rc-fold[open] > .rc-fold-head .rc-fold-caret::after { content: "收起"; }
.rc-fold-body { padding: 12px 14px 16px; }
.rc-fold-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.rc-fold-tools .rc-hint { margin: 0 auto 0 0; }
