/* ============================================================
   派出所辖区管理 - 统一样式文件
   政务风格，深蓝（藏青蓝）主色调，亮蓝色点缀，白色背景
   CSS REM 布局，根 100px，最小文字 0.22rem
   ============================================================ */

/* ---------- 全局 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f0f2f5; min-height: 100vh; color: #333; font-size: 0.22rem;
}
a { text-decoration: none; color: inherit; }

/* ---------- 顶部导航栏 ---------- */
.gov-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 0.8rem; line-height: 0.8rem;
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 40%, #1e4a6e 100%);
  color: #fff; z-index: 999;
  display: flex; align-items: center;
  box-shadow: 0 0.02rem 0.12rem rgba(13,33,55,.35);
}
.gov-header .back-btn {
  width: 0.5rem; text-align: center; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gov-header .back-btn:active { opacity: .7; }
.gov-header .back-btn svg { width: 0.4rem; height: 0.4rem; fill: none; stroke: #fff; stroke-width: 2.2; }
.gov-header h1 {
  flex: 1; font-size: 0.22rem; font-weight: 600; letter-spacing: 0.02rem;
  text-align: center; padding-right: 0.5rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gov-header::after {
  content: ''; display: block;
  position: absolute; bottom: 0; left: 0; right: 0; height: 0.02rem;
  background: linear-gradient(90deg, #2196F3, #64B5F6, #2196F3);
}

/* ---------- 主体 ---------- */
.main-body { padding-top: 1rem; padding-bottom: 0.3rem; max-width: 6rem; margin: 0 auto; }

/* ---------- 搜索/筛选栏 ---------- */
.filter-bar, .search-bar {
  display: flex; gap: 0.08rem; margin: 0.14rem 0.14rem 0.1rem;
}
.filter-bar select, .search-bar select {
  flex: 1; height: 0.5rem; padding: 0 0.1rem;
  border: 0.015rem solid #dde4ec; border-radius: 0.06rem;
  font-size: 0.22rem; color: #333; background: #fff; outline: none; cursor: pointer;
  appearance: auto; -webkit-appearance: menulist;
}
.search-bar input {
  flex: 1; height: 0.5rem; padding: 0 0.1rem;
  border: 0.015rem solid #dde4ec; border-radius: 0.06rem;
  font-size: 0.22rem; color: #333; background: #fafbfd; outline: none;
}
.search-bar input:focus { border-color: #2196F3; }
.search-bar button {
  height: 0.5rem; padding: 0 0.16rem; border: none; border-radius: 0.06rem;
  background: linear-gradient(135deg, #1565C0, #2196F3); color: #fff;
  font-size: 0.22rem; cursor: pointer; white-space: nowrap;
}
.search-bar button:active { opacity: .85; }

/* ---------- 日期输入 ---------- */
.date-input {
  flex: 1; height: 0.5rem; padding: 0 0.1rem;
  border: 0.015rem solid #dde4ec; border-radius: 0.06rem;
  font-size: 0.22rem; color: #333; background: #fff; outline: none; cursor: pointer;
  appearance: auto; -webkit-appearance: menulist;
}

/* ---------- 搜索筛选行（filter-row） ---------- */
.filter-row { display:flex; gap:0.08rem; margin:0.14rem 0.14rem 0.08rem; flex-wrap:wrap; align-items:center; }
.filter-row select,.filter-row input { flex:1; min-width:0; height:0.6rem; padding:0 0.1rem; border:0.015rem solid #dde4ec; border-radius:0.06rem; font-size:0.22rem; background:#fff; }
.filter-row .filter-btn { height:0.6rem; padding:0 0.14rem; border:none; border-radius:0.06rem; background:linear-gradient(135deg,#1565C0,#2196F3); color:#fff; font-size:0.22rem; cursor:pointer; white-space:nowrap; }
.filter-row .filter-btn:active { opacity:.85; }

/* ---------- 信息卡片 ---------- */
.card {
  margin: 0 0.14rem 0.12rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.02rem 0.06rem rgba(0,0,0,.04);
  overflow: hidden;
}

/* 卡片标题 */
.card-title {
  display: flex; align-items: center; gap: 0.06rem;
  padding: 0.12rem 0.16rem;
  font-size: 0.22rem; font-weight: 700; color: #1a3a5c;
  border-bottom: 0.01rem solid #eef2f7;
}
.card-title .dot {
  width: 0.04rem; height: 0.14rem; border-radius: 0.02rem;
  background: linear-gradient(180deg, #2196F3, #1565C0);
}

/* 信息行 */
.info-row {
  display: flex; align-items: flex-start;
  padding: 0.08rem 0.16rem;
  border-bottom: 0.01rem solid #f5f7fa;
}
.info-row:last-child { border-bottom: none; }
.info-row .lbl {
  width: 1rem; flex-shrink: 0;
  font-size: 0.22rem; color: #90a4ae; line-height: 1.6;
}
.info-row .val {
  flex: 1; font-size: 0.22rem; color: #333; line-height: 1.6; word-break: break-all;
}

/* ---------- 状态标签 ---------- */
.tag {
  display: inline-block; padding: 0.02rem 0.1rem;
  border-radius: 0.04rem; font-size: 0.22rem; font-weight: 500;
}
.tag-ok, .tag-pass { background: #e8f5e9; color: #2e7d32; }
.tag-wait { background: #fff3e0; color: #e65100; }
.tag-no { background: #ffebee; color: #c62828; }
.tag-cancel, .tag-out { background: #eceff1; color: #546e7a; }
.tag-in { background: #e8f5e9; color: #2e7d32; }

/* ---------- 电闸状态 ---------- */
.tag-on { background: #e8f5e9; color: #2e7d32; }
.tag-off { background: #ffebee; color: #c62828; }

/* ---------- 审核卡片（列表用） ---------- */
.check-card {
  display: block; margin: 0 0.14rem 0.1rem;
  padding: 0.14rem 0.16rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.01rem 0.04rem rgba(0,0,0,.04);
  display: flex; align-items: center;
}
.check-card:active { background: #f5f7fa; }
.check-card .left { flex: 1; }
.check-card .left .c-type { font-size: 0.22rem; font-weight: 500; color: #333; margin-bottom: 0.04rem; }
.check-card .left .c-desc { font-size: 0.22rem; color: #78909c; line-height: 1.4; }
.check-card .left .c-time { font-size: 0.22rem; color: #b0bec5; margin-top: 0.04rem; }
.check-card .arrow { flex-shrink: 0; color: #b0bec5; font-size: 0.22rem; margin-left: 0.1rem; }

/* ---------- 房屋卡片 ---------- */
.house-card {
  margin: 0 0.14rem 0.1rem;
  padding: 0.14rem 0.16rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.01rem 0.04rem rgba(0,0,0,.04);
}
.house-card .h-addr { font-size: 0.22rem; font-weight: 600; color: #1a3a5c; line-height: 1.4; word-break: break-all; }
.house-card .h-row { font-size: 0.22rem; color: #546e7a; margin-top: 0.04rem; line-height: 1.5; }
.house-card .h-actions {
  display: flex; gap: 0.08rem; margin-top: 0.08rem; padding-top: 0.08rem;
  border-top: 0.01rem solid #f0f3f7;
}
.house-card .h-actions a {
  padding: 0.04rem 0.12rem; border-radius: 0.04rem;
  font-size: 0.22rem; background: #e3f2fd; color: #1565C0;
}
.house-card .h-actions a:active { background: #bbdefb; }

/* ---------- 电闸卡片 ---------- */
.dz-card {
  margin: 0 0.14rem 0.1rem;
  padding: 0.14rem 0.16rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.01rem 0.04rem rgba(0,0,0,.04);
}
.dz-card .dz-top { display: flex; justify-content: space-between; align-items: center; }
.dz-card .dz-gw { font-size: 0.22rem; color: #546e7a; }
.dz-card .dz-info { font-size: 0.22rem; color: #78909c; margin-top: 0.04rem; line-height: 1.5; }
.dz-card .dz-btns { display: flex; gap: 0.08rem; margin-top: 0.08rem; padding-top: 0.08rem; border-top: 0.01rem solid #f0f3f7; }
.dz-card .dz-btns a {
  padding: 0.04rem 0.12rem; border-radius: 0.04rem; font-size: 0.22rem; cursor: pointer;
}
.btn-on { background: #e8f5e9; color: #2e7d32; }
.btn-off { background: #ffebee; color: #c62828; }
.btn-log { background: #e3f2fd; color: #1565C0; }

/* ---------- 日志卡片 ---------- */
.log-card {
  margin: 0 0.14rem 0.08rem;
  padding: 0.12rem 0.16rem;
  background: #fff; border-radius: 0.08rem;
  box-shadow: 0 0.01rem 0.03rem rgba(0,0,0,.03);
}
.log-card .log-top { display: flex; justify-content: space-between; align-items: center; }
.log-card .log-type { font-size: 0.22rem; font-weight: 600; color: #333; }
.log-card .log-time { font-size: 0.22rem; color: #90a4ae; }
.log-card .log-detail { font-size: 0.22rem; color: #78909c; margin-top: 0.04rem; line-height: 1.5; }
.log-card .log-result { font-size: 0.22rem; color: #546e7a; margin-top: 0.04rem; }

/* ---------- 租客卡片 ---------- */
.tenant-card {
  margin: 0 0.14rem 0.1rem;
  padding: 0.14rem 0.16rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.01rem 0.04rem rgba(0,0,0,.04);
}
.tenant-card .t-name { font-size: 0.22rem; font-weight: 600; color: #1a3a5c; margin-bottom: 0.06rem; }
.tenant-card .t-info { font-size: 0.22rem; color: #546e7a; line-height: 1.6; }

/* ---------- 审核表单 ---------- */
.check-form { margin: 0 0.14rem; }
.check-form textarea {
  width: 100%; height: 1rem; padding: 0.1rem;
  border: 0.015rem solid #dde4ec; border-radius: 0.06rem;
  font-size: 0.22rem; color: #333; outline: none; resize: vertical;
  background: #fafbfd; font-family: inherit;
}
.check-form textarea:focus { border-color: #2196F3; }
.check-form .btn-row { display: flex; gap: 0.1rem; margin-top: 0.12rem; }
.check-form .btn-row button {
  flex: 1; height: 0.54rem; border: none; border-radius: 0.08rem;
  font-size: 0.22rem; font-weight: 600; cursor: pointer;
}
.btn-pass { background: linear-gradient(135deg, #2e7d32, #43a047); color: #fff; }
.btn-pass:active { opacity: .85; }
.btn-reject { background: linear-gradient(135deg, #c62828, #e53935); color: #fff; }
.btn-reject:active { opacity: .85; }

/* ---------- 用户信息卡 ---------- */
.user-card {
  margin: 0 0.14rem 0.1rem;
  padding: 0.16rem 0.2rem;
  background: linear-gradient(135deg, #1a3a5c, #234b73);
  border-radius: 0.1rem; color: #fff;
  box-shadow: 0 0.03rem 0.1rem rgba(26,58,92,.25);
  display: flex; align-items: center; gap: 0.1rem;
}
.user-card .u-name { font-size: 0.22rem; font-weight: 700; }
.user-card .u-role { font-size: 0.22rem; color: rgba(255,255,255,.65); margin-top: 0.03rem; }

/* ---------- 统计卡片 ---------- */
.stats-row { display: flex; gap: 0.1rem; margin: 0 0.14rem 0.12rem; }
.stat-card {
  flex: 1; background: #fff; border-radius: 0.1rem;
  padding: 0.14rem 0.08rem; text-align: center;
  box-shadow: 0 0.01rem 0.04rem rgba(0,0,0,.04);
}
.stat-card .s-num { font-size: 0.26rem; font-weight: 700; color: #1a3a5c; line-height: 1.2; }
.stat-card .s-num.green { color: #2e7d32; }
.stat-card .s-num.orange { color: #e65100; }
.stat-card .s-num.red { color: #c62828; }
.stat-card .s-lbl { font-size: 0.22rem; color: #90a4ae; margin-top: 0.04rem; }

/* ---------- 功能菜单网格 ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.1rem; margin: 0 0.14rem 0.12rem; }
.menu-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.16rem 0.06rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.01rem 0.04rem rgba(0,0,0,.04);
  transition: all .15s ease; cursor: pointer;
}
.menu-item:active { transform: scale(0.97); box-shadow: 0 0.02rem 0.08rem rgba(26,58,92,.1); }
.menu-item .m-icon {
  width: 0.4rem; height: 0.4rem; border-radius: 0.1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.22rem; margin-bottom: 0.08rem;
  background: #e3f2fd; color: #1565C0;
}
.menu-item .m-icon .fa { font-size: 0.28rem; line-height: 1; }
.menu-item .m-label { font-size: 0.22rem; font-weight: 500; color: #333; }

/* ---------- 待审核列表 ---------- */
.wait-section { margin: 0 0.14rem; }
.wait-section .ws-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.08rem 0; font-size: 0.22rem; font-weight: 600; color: #1a3a5c;
  border-bottom: 0.01rem solid #eef2f7; margin-bottom: 0.08rem;
}
.wait-section .ws-title a { color: #e65100; font-weight: 500; }
.wait-item {
  display: block; padding: 0.1rem 0;
  border-bottom: 0.01rem solid #f5f7fa;
}
.wait-item:last-child { border-bottom: none; }
.wait-item .wi-type { font-size: 0.22rem; font-weight: 500; color: #333; }
.wait-item .wi-desc { font-size: 0.22rem; color: #78909c; margin-top: 0.03rem; }

/* ---------- 控制按钮栏 ---------- */
.ctrl-bar { display:flex; gap:0.08rem; padding:0.12rem 0.16rem; flex-wrap:wrap; }
.ctrl-bar .ctrl-btn { flex:1; min-width:0; height:0.54rem; border:none; border-radius:0.08rem; font-size:0.22rem; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:0.04rem; transition:all .15s ease; }
.ctrl-bar .ctrl-btn:active { transform:scale(0.96); }
/* ---------- 详情底部按钮栏 ---------- */
.btn-bar { display:flex; gap:0.1rem; margin:0.14rem; }
.btn-bar .btn-item { flex:1; height:0.54rem; border:none; border-radius:0.08rem; font-size:0.22rem; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; text-decoration:none; transition:all .15s ease; }
/* ---------- 表单输入 ---------- */
.form-item .input-wrap input,.form-item .input-wrap select { width:100%; height:0.54rem; padding:0 0.12rem; border:0.015rem solid #dde4ec; border-radius:0.06rem; font-size:0.22rem; color:#333; background:#fafbfd; outline:none; }
.form-item .input-wrap input:focus,.form-item .input-wrap select:focus { border-color:#2196F3; }
.btn-scan { flex-shrink:0; height:0.54rem; padding:0 0.16rem; border:none; border-radius:0.06rem; background:linear-gradient(135deg,#1565C0,#2196F3); color:#fff; font-size:0.22rem; cursor:pointer; white-space:nowrap; }
.btn-submit { width:100%; height:0.56rem; border:none; border-radius:0.08rem; background:linear-gradient(135deg,#1565C0,#2196F3); color:#fff; font-size:0.22rem; font-weight:600; cursor:pointer; }
.btn-submit:active { opacity:.85; }
.btn-submit:disabled { opacity:.5; cursor:not-allowed; }

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 0.5rem 0.2rem; font-size: 0.22rem; color: #90a4ae; }

/* ---------- 底部 ---------- */
.footer-link { display: block; text-align: center; margin: 0.16rem 0.14rem 0; padding: 0.12rem 0; background: #fff; border-radius: 0.08rem; font-size: 0.22rem; color: #1565C0; font-weight: 500; box-shadow: 0 0.01rem 0.04rem rgba(0,0,0,.04); }
.footer-link:active { background: #f5f7fa; }

/* ---------- 大屏专用 ---------- */
.dash-header {
  background: linear-gradient(135deg, #0d47a1, #1565C0); color: #fff;
  padding: 0.14rem 0.16rem; text-align: center; flex-shrink: 0;
}
.dash-header .dh-title { font-size: 0.28rem; font-weight: 700; }
.dash-header .dh-sub { font-size: 0.2rem; opacity: .8; margin-top: 0.04rem; }
.dash-header .dh-time { font-size: 0.2rem; opacity: .7; margin-top: 0.04rem; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem; padding: 0.12rem 0.14rem; flex: 1; align-content: start; padding-top: 0.2rem; }
.dash-card {
  background: #fff; border-radius: 0.12rem; box-shadow: 0 0.02rem 0.08rem rgba(0,0,0,.08);
  padding: 0.28rem 0.1rem; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.dash-card .dc-val { font-size: 0.52rem; font-weight: 700; color: #0d47a1; line-height: 1.2; }
.dash-card .dc-val.green { color: #2e7d32; }
.dash-card .dc-val.orange { color: #e65100; }
.dash-card .dc-val.red { color: #c62828; }
.dash-card .dc-lbl { font-size: 0.2rem; color: #78909c; margin-top: 0.04rem; }
.dash-footer { flex-shrink: 0; padding: 0.1rem 0.14rem; text-align: center; }
.dash-footer a { display: inline-block; width: 100%; padding: 0.14rem 0; border-radius: 0.1rem; background: linear-gradient(135deg, #1565C0, #2196F3); color: #fff; font-size: 0.24rem; text-decoration: none; font-weight: 700; letter-spacing: 0.02rem; }
.dash-footer a:active { opacity: .85; transform: scale(0.97); }
.dash-section { margin: 0 0.14rem 0.12rem; }
.dash-section .ds-title { font-size: 0.22rem; font-weight: 600; color: #1a3a5c; padding: 0.08rem 0; border-bottom: 0.01rem solid #eef2f7; margin-bottom: 0.08rem; }
.dash-log-item {
  padding: 0.08rem 0; border-bottom: 0.01rem solid #f5f7fa;
  display: flex; flex-wrap: wrap; gap: 0.04rem;
}
.dash-log-item .dl-type { font-size: 0.22rem; font-weight: 500; color: #333; }
.dash-log-item .dl-time { font-size: 0.22rem; color: #90a4ae; margin-left: auto; }
.dash-log-item .dl-result { width: 100%; font-size: 0.22rem; color: #78909c; }
.dash-footer-link {
  display: block; margin: 0.14rem; padding: 0.1rem; text-align: center;
  border: 0.015rem solid #64B5F6; color: #1565C0; border-radius: 0.2rem;
  font-size: 0.22rem;
}
/* ---------- 大屏筛选行 ---------- */
.dashboard .filter-row { display: flex; gap: 0.08rem; padding: 0.12rem 0.14rem; background: #fff; flex-shrink: 0; align-items: center; }
.dashboard .filter-row select { flex: 1; min-width: 0; height: 0.56rem; padding: 0 0.1rem; border: 0.015rem solid #dde4ec; border-radius: 0.06rem; font-size: 0.22rem; background: #fff; }
.dashboard .filter-row .filter-btn { height: 0.56rem; padding: 0 0.2rem; border: none; border-radius: 0.08rem; background: linear-gradient(135deg, #e65100, #ef6c00); color: #fff; font-size: 0.22rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.dashboard .filter-row .filter-btn:active { opacity: .85; transform: scale(0.96); }
