/* ============================================================
   重点行业场所辅助检查 · 后台管理系统 v5.0
   小土豆绿主题（#07c160） · Python 引擎驱动
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand: #07c160;
  --brand-dark: #059a4c;
  --brand-deep: #0b3d2e;
  --brand-bg: #f1f7f3;
  --ink: #1f2d26;
  --ink-2: #5c6b62;
  --ink-3: #8a9a90;
  --line: #e3efe7;
  --line-2: #eef4f0;
  --danger: #e54d42;
  --warn: #f5a623;
  --info: #3b7dd8;
  --radius: 16px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 2px 8px rgba(11, 61, 46, .04);
  --shadow: 0 4px 16px rgba(11, 61, 46, .06), 0 1px 3px rgba(11, 61, 46, .04);
  --shadow-lg: 0 12px 32px rgba(11, 61, 46, .12), 0 2px 6px rgba(11, 61, 46, .05);
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--brand-bg);
  color: var(--ink);
  font-size: 14px;
  overflow: hidden;
}

/* ---------------- 移动端提示 ---------------- */
.pc-mobile-notice {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0b3d2e, #07c160);
  color: #fff;
  text-align: center;
  padding: 40px;
}
.pc-mobile-notice .notice-icon { font-size: 56px; margin-bottom: 16px; }
.pc-mobile-notice .notice-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.pc-mobile-notice .notice-desc { font-size: 14px; opacity: .85; line-height: 1.8; margin-bottom: 24px; }
.pc-mobile-notice .notice-link {
  color: var(--brand-deep); background: #fff; padding: 10px 28px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px;
}
@media (max-width: 900px) {
  .pc-mobile-notice { display: flex; }
}

/* ---------------- 布局骨架 ---------------- */
.pc-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 232px;
  background: linear-gradient(180deg, #0b3d2e 0%, #0f5132 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 2px 0 16px rgba(11, 61, 46, .18);
}

.pc-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;   /* 圆形徽标 */
  object-fit: cover;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  flex-shrink: 0;
}
.logo-text { font-size: 14px; font-weight: 700; line-height: 1.45; letter-spacing: .5px; }

.pc-sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.pc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 500;
  transition: background .22s var(--ease), color .22s ease, transform .22s var(--ease), box-shadow .22s var(--ease);
  user-select: none;
}
.pc-nav-item .nav-icon { font-size: 17px; width: 22px; text-align: center; }
.pc-nav-item:hover { background: rgba(255, 255, 255, .10); color: #fff; transform: translateX(2px); }
.pc-nav-item.active {
  background: linear-gradient(90deg, #07c160, #0acd6a);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(7, 193, 96, .38);
}

.pc-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-ver { letter-spacing: .5px; }
.foot-org { background: rgba(255,255,255,.12); padding: 3px 10px; border-radius: 999px; }

/* ---------------- 主区域 ---------------- */
.pc-main { margin-left: 232px; height: 100vh; display: flex; flex-direction: column; }

.pc-header {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  flex-shrink: 0;
  box-shadow: 0 1px 8px rgba(11, 61, 46, .04);
}
.pc-header-left { display: flex; align-items: center; gap: 14px; }
.pc-header-title { font-size: 19px; font-weight: 700; color: var(--ink); }
.header-org { font-size: 12px; color: var(--ink-3); background: #f0f7f2; padding: 4px 12px; border-radius: 999px; }
.pc-header-right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-2); }
.header-user {
  background: linear-gradient(135deg, #07c160, #059a4c);
  color: #fff; font-weight: 600;
  padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(7, 193, 96, .3);
}

.pc-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px 40px;
}

.pc-page { display: none; }
.pc-page.active { display: block; animation: fadeUp .28s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 统计卡 ---------------- */
.pc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.pc-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.pc-stat-card::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(7, 193, 96, .08), transparent);
  transition: transform .4s var(--ease);
}
.pc-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #c5e4d1;
}
.pc-stat-card:hover::after { transform: scale(1.4); }
.pc-stat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 61, 46, .08);
}
.pc-stat-icon.blue { background: linear-gradient(135deg, #e8f1fc, #d6e6fa); }
.pc-stat-icon.green { background: linear-gradient(135deg, #e6f9ee, #c8f1d8); }
.pc-stat-icon.orange { background: linear-gradient(135deg, #fdf1e3, #f9dcc0); }
.pc-stat-icon.purple { background: linear-gradient(135deg, #f0eafd, #e0d2f9); }
.pc-stat-label { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.pc-stat-value { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.pc-stat-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ---------------- 图表卡 ---------------- */
.pc-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.pc-chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.pc-chart-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pc-chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.chart-badge { font-size: 11px; font-weight: 500; color: var(--ink-3); background: #f0f7f2; padding: 4px 12px; border-radius: 999px; }

/* 表格卡 */
.pc-table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  transition: box-shadow .28s var(--ease);
}
.pc-table-card:hover { box-shadow: var(--shadow-lg); }
.pc-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.pc-table-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.pc-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------- 表单控件 ---------------- */
.pc-input, .pc-select, .pc-form-control {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border .18s var(--ease), box-shadow .18s var(--ease), background .18s ease;
  min-width: 0;
}
.pc-input:focus, .pc-select:focus, .pc-form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(7, 193, 96, .14);
  background: #fff;
}
.pc-input { width: 240px; }
.pc-select { width: 170px; cursor: pointer; }

.pc-btn {
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.pc-btn:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: 0 2px 8px rgba(7, 193, 96, .14); }
.pc-btn:active { transform: translateY(1px); }
.pc-btn-primary {
  background: linear-gradient(135deg, #0acd6a, #059a4c);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(7, 193, 96, .32);
}
.pc-btn-primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(7, 193, 96, .42); transform: translateY(-1px); }
.pc-btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(7, 193, 96, .3); }
.pc-btn-danger { border-color: #f5c8c4; color: var(--danger); }
.pc-btn-danger:hover { background: #fdf1f0; border-color: var(--danger); color: var(--danger); box-shadow: 0 2px 8px rgba(229, 77, 66, .14); }
.pc-btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 8px; }

/* ---------------- 表格 ---------------- */
.pc-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line-2); }
.pc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-table thead th {
  background: linear-gradient(180deg, #f4faf6, #eef6f0);
  color: var(--ink-2);
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  letter-spacing: .2px;
}
.pc-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f2f7f4;
  color: var(--ink);
  vertical-align: middle;
  transition: background .18s var(--ease);
}
.pc-table tbody tr:last-child td { border-bottom: none; }
.pc-table tbody tr { transition: background .15s var(--ease); }
.pc-table tbody tr:hover { background: #f7fbf9; }
.pc-table tbody tr:hover td { background: #f7fbf9; }

/* 分页 */
.pc-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.pc-pagination-btns { display: flex; gap: 8px; }
.pc-page-btn {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.pc-page-btn:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: 0 2px 8px rgba(7, 193, 96, .14); }

/* ---------------- 标签 ---------------- */
.pc-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2px;
}
.pc-tag-success { background: linear-gradient(135deg, #e6f9ee, #d4f3df); color: #059a4c; }
.pc-tag-danger { background: linear-gradient(135deg, #fdf1f0, #fbdedc); color: #d6453b; }
.pc-tag-warning { background: linear-gradient(135deg, #fdf3e0, #fae5be); color: #d4880a; }
.pc-tag-info { background: linear-gradient(135deg, #e8f1fc, #d4e3f7); color: #2f6cb8; }
.pc-tag-default { background: linear-gradient(135deg, #eef3f0, #e2e8e4); color: #5c6b62; }

/* 弹窗 */
.pc-modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 22, .5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.pc-modal-mask.show { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pc-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 640px;
  max-width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32), 0 4px 12px rgba(0, 0, 0, .08);
  animation: modalUp .3s var(--ease);
}
.pc-modal.wide { width: 900px; }
@keyframes modalUp { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.pc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-2);
}
.pc-modal-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.pc-modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 14px;
  transition: all .2s var(--ease);
}
.pc-modal-close:hover { background: #f2f7f4; color: var(--ink); transform: rotate(90deg); }
.pc-modal-body { padding: 22px 24px; overflow-y: auto; }
.pc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line-2);
}

/* ---------------- Toast ---------------- */
.pc-toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-18px);
  background: linear-gradient(135deg, var(--brand-deep), #0f5132);
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  z-index: 2000;
  box-shadow: 0 10px 28px rgba(11, 61, 46, .35);
  white-space: nowrap;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 详情块 ---------------- */
.pc-detail-block { margin-bottom: 16px; }
.pc-detail-block-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.pc-detail-row { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #eef3f0; }
.pc-detail-label { color: var(--ink-3); width: 90px; flex-shrink: 0; }
.pc-detail-value { color: var(--ink); flex: 1; }

/* ---------------- 空状态 ---------------- */
.pc-empty { text-align: center; padding: 36px 20px; color: var(--ink-3); font-size: 13px; }

/* ---------------- 饼图 ---------------- */
.pc-pie-container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pc-pie {
  position: relative;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: #eef3f0;
  flex-shrink: 0;
}
.pc-pie-center {
  position: absolute;
  inset: 22px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pc-pie-center-num { font-size: 22px; font-weight: 800; color: var(--ink); }
.pc-pie-center-label { font-size: 11px; color: var(--ink-3); }
.pc-pie-legend { flex: 1; min-width: 160px; }
.pc-pie-legend-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: 13px;
}
.pc-pie-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pc-pie-legend-label { color: var(--ink-2); flex: 1; }
.pc-pie-legend-value { font-weight: 700; color: var(--ink); }

/* ---------------- 检查人员汇总 ---------------- */
.pc-inspector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.pc-ins-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #fafdfb 100%);
  box-shadow: 0 2px 10px rgba(11, 61, 46, .05);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s cubic-bezier(.22,.61,.36,1), border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.pc-ins-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0acd6a, #07c160 50%, #059a4c);
  opacity: .85;
}
.pc-ins-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 61, 46, .12);
  border-color: #c5e4d1;
}
/* 人员卡片可点击：整卡跳转该检查人台账 */
.pc-ins-card-click { cursor: pointer; }
.pc-ins-card-click:hover { border-color: #07c160; }
.pc-ins-card-more {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: #07c160;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
}
/* 台账/最近检查里的检查人：可点击链接 */
.pc-inspector-link {
  color: #07c160;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(7, 193, 96, .5);
  cursor: pointer;
}
.pc-inspector-link:hover { color: #059a4c; border-bottom-style: solid; }
/* 检查人筛选条件条 */
.pc-inspector-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e6f9ee;
  border: 1px solid #b3e8c9;
  color: #0b7a3e;
  font-size: 13px;
  white-space: nowrap;
}
.pc-chip-clear {
  cursor: pointer;
  color: #059a4c;
  font-weight: 600;
}
.pc-chip-clear:hover { color: #c62828; }
/* 详情弹窗问题明细表 */
.pc-problem-table { font-size: 13px; }
.pc-problem-table td { vertical-align: top; }
.pc-ins-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pc-ins-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #07c160, #059a4c);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(7, 193, 96, .3);
}
.pc-ins-card-head { flex: 1; min-width: 0; }
.pc-ins-name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ins-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pc-ins-ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.pc-ins-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}
.pc-ins-ring span {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}
.pc-ins-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e3efe7;
}
.pc-ins-stat {
  text-align: center;
  min-width: 0;
  padding: 2px 0;
}
.pc-ins-stat-num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.15;
  font-feature-settings: 'tnum';
}
.pc-ins-stat-label {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-ins-last {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-ins-last::before {
  content: '🕒';
  font-size: 11px;
  opacity: .8;
}

/* ---------------- 趋势图 ---------------- */
.pc-trend-chart { height: 200px; }
.pc-trend-bars { display: flex; align-items: flex-end; gap: 8px; height: 100%; }
.pc-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.pc-trend-bar-wrap { width: 100%; display: flex; justify-content: center; height: 100%; align-items: flex-end; }
.pc-trend-bar {
  width: 22px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #0acd6a, #059a4c);
  min-height: 2px;
  transition: height .5s ease;
  position: relative;
}
.pc-trend-bar:hover { filter: brightness(1.1); }
.pc-trend-val { font-size: 11px; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }
.pc-trend-label { font-size: 11px; color: var(--ink-3); margin-top: 6px; }

/* ---------------- 条形图 / TOP ---------------- */
.pc-bar-row, .pc-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.pc-bar-label, .pc-top-label { width: 110px; flex-shrink: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-bar-track, .pc-top-track { flex: 1; height: 10px; background: #f0f5f2; border-radius: 999px; overflow: hidden; }
.pc-bar-fill, .pc-top-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #07c160, #0acd6a); transition: width .5s ease; }
.pc-top-rank {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #eef3f0;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.pc-top-row:nth-child(1) .pc-top-rank { background: #fdf3e0; color: #d4880a; }
.pc-top-row:nth-child(2) .pc-top-rank { background: #eef3f0; color: #5c6b62; }
.pc-top-row:nth-child(3) .pc-top-rank { background: #f3e8dc; color: #a5673a; }

/* ---------------- 行业标准 ---------------- */
.pc-standard-category { margin-bottom: 16px; }
.pc-standard-category-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-deep);
  padding: 10px 14px;
  background: #f0f9f3;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  margin-bottom: 10px;
}
.pc-standard-list { display: flex; flex-direction: column; gap: 8px; }
.pc-standard-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  background: #fbfdfc;
}
.pc-standard-item-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pc-standard-item-standard { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.pc-standard-item-law { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.pc-standard-item-num { font-size: 12px; color: var(--brand-dark); font-weight: 600; }

/* ---------------- 设置页 ---------------- */
.pc-settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.pc-settings-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.pc-form-group { margin-bottom: 14px; }
.pc-form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.pc-form-row .pc-form-group { flex: 1; min-width: 200px; }
.pc-form-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.pc-form-control { width: 100%; height: 38px; }

/* ---------------- 照片 ---------------- */

/* Leaflet 细节优化 */
.leaflet-container { font-family: inherit; border-radius: 12px; }
.leaflet-tooltip {
  background: var(--brand-deep);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(11, 61, 46, .3);
}
.leaflet-tooltip::before { border-top-color: var(--brand-deep); }
.leaflet-control-zoom a { border-radius: 8px !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9dcd1, #a9c9b8);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a9c9b8, #8fb89c);
  background-clip: padding-box;
}
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-color: #c9dcd1 transparent; scrollbar-width: thin; }

/* ---------------- 场所地图页 ---------------- */
.pc-map-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.pc-map-side {
  width: 272px;
  flex: 0 0 272px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pc-map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow .28s var(--ease);
}
.pc-map-filter { margin-bottom: 12px; }
.pc-map-filter .pc-select { width: 100%; }
.pc-map-card:hover { box-shadow: var(--shadow-lg); }
.map-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.lg-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.pc-map-hint {
  background: linear-gradient(135deg, #eafff2, #d8f5e3);
  border: 1px solid #b9eccb;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  color: #0a6b39;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(10, 107, 57, .06);
}
.pc-map-main { flex: 1; min-width: 320px; }

/* 地图图层切换（矢量 / 卫星） */
.map-layer-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .92);
  padding: 4px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  backdrop-filter: blur(4px);
}
.map-layer-btn {
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.map-layer-btn:hover { color: var(--ink); background: rgba(7, 193, 96, .08); }
.map-layer-btn.active {
  background: linear-gradient(135deg, #07c160, #059a4c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(7, 193, 96, .35);
}

/* ---------------- 设置页 ---------------- */
.pc-settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  transition: box-shadow .28s var(--ease);
}
.pc-settings-card:hover { box-shadow: var(--shadow-lg); }
.pc-settings-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.pc-form-group { margin-bottom: 16px; }
.pc-form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.pc-form-row .pc-form-group { flex: 1; min-width: 200px; }
.pc-form-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.pc-form-control { width: 100%; height: 40px; }

/* ---------------- 照片 ---------------- */
.pc-photo-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pc-photo-thumb:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(11, 61, 46, .18); }
.pc-photo-full { max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.pc-photo-meta { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* ---------------- 文书 ---------------- */
.pc-doc-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(160deg, #fbfdfc, #f4faf6);
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}
.pc-doc-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pc-doc-actions-sep { display: inline-block; width: 1px; height: 14px; background: var(--line); margin: 0 4px; }

/* ---------------- 登录层（账号密码认证） ---------------- */
#login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #0b3d2e 0%, #0f5c3e 55%, #07a15a 100%);
}
.login-box {
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 16px;
  padding: 32px 30px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  text-align: center;
}
.login-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1ed67c, #07c160);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 20px rgba(7, 193, 96, .35);
}
.login-title { font-size: 18px; font-weight: 700; color: #16352a; }
.login-sub { font-size: 13px; color: #7a8f85; margin: 6px 0 22px; }
.login-field { text-align: left; margin-bottom: 14px; }
.login-field label { display: block; font-size: 12px; color: #5c6b62; margin-bottom: 6px; }
.login-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d5e3dc;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s;
}
.login-field input:focus { border-color: #07c160; }
.login-err { min-height: 20px; font-size: 12px; color: #c62828; text-align: left; margin-bottom: 6px; }
.login-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #10c96b, #07a15a);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.login-btn:hover { opacity: .92; }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-tip { margin-top: 18px; font-size: 11px; color: #9aa89f; line-height: 1.8; }

/* ---------------- 密码显示/隐藏切换 ---------------- */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 40px !important; box-sizing: border-box; }
.pwd-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  cursor: pointer; user-select: none; font-size: 16px; line-height: 1;
  opacity: .7; transition: opacity .2s;
}
.pwd-eye:hover { opacity: 1; }

/* ============================================================
   分析报告模块（2026-09-18 新增）
   ============================================================ */

.rpt-filter-card { padding-bottom: 14px; }

.rpt-filter {
  display: flex; flex-wrap: wrap; gap: 14px 20px;
  align-items: flex-end; margin-top: 4px;
}
.rpt-field { display: flex; flex-direction: column; gap: 6px; }
.rpt-field > label { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .3px; }
.rpt-field .pc-select, .rpt-field .pc-input { width: 168px; }
.rpt-field-actions { margin-left: auto; }
.rpt-date-range { display: flex; align-items: center; gap: 8px; }
.rpt-date-range .pc-input { width: 140px; }
.rpt-date-range > span { color: var(--ink-3); font-size: 12px; }

.rpt-hint {
  margin-top: 14px; padding: 10px 14px;
  background: linear-gradient(90deg, #f1f7f3, #f7fbf8);
  border: 1px dashed var(--line); border-radius: 10px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.8;
}
.rpt-hint a { color: var(--brand-dark); font-weight: 600; }

/* ---------------- 报告文档头 ---------------- */
.rpt-doc-head { text-align: center; padding: 26px 24px 20px; }
.rpt-doc-title {
  font-size: 21px; font-weight: 700; color: var(--brand-deep);
  letter-spacing: 1px; line-height: 1.5;
}
.rpt-doc-sub {
  margin-top: 8px; font-size: 15px; color: var(--ink-2); font-weight: 600;
  padding-bottom: 16px; border-bottom: 2px solid var(--brand);
  display: inline-block; min-width: 320px;
}
.rpt-doc-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px 18px; margin-top: 18px; text-align: left;
}
.rpt-meta-item { display: flex; gap: 8px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed var(--line-2); }
.rpt-meta-label { color: var(--ink-3); flex-shrink: 0; min-width: 62px; }
.rpt-meta-value { color: var(--ink); font-weight: 600; }

/* ---------------- 结论 ---------------- */
.rpt-narrative-list { margin: 6px 0 0 20px; }
.rpt-narrative-list li {
  font-size: 13.5px; line-height: 2; color: var(--ink);
  padding-left: 4px; margin-bottom: 2px;
}
.rpt-narrative-list li::marker { color: var(--brand); font-weight: 700; }

/* ---------------- KPI ---------------- */
.rpt-kpi-grid { grid-template-columns: repeat(3, 1fr); }
.rpt-unit { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.rpt-kpi-delta {
  margin-top: 6px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.rpt-kpi-delta.up { color: #e54d42; }
.rpt-kpi-delta.down { color: #07c160; }
.rpt-kpi-delta.flat { color: var(--ink-3); }
.rpt-kpi-delta-label { font-weight: 400; color: var(--ink-3); }

/* ---------------- 图表 ---------------- */
.rpt-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.rpt-two-col-pad { gap: 18px; }
.rpt-two-col-pad > .pc-table-card { margin-bottom: 0; }
.rpt-sub-title {
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  margin-bottom: 10px; padding-left: 9px; border-left: 3px solid var(--brand);
}
.rpt-bars { display: flex; flex-direction: column; }
.rpt-bar-label { width: 132px; flex-shrink: 0; font-size: 12.5px; }
.rpt-bar-value { width: 74px; flex-shrink: 0; text-align: right; font-weight: 700; font-size: 12.5px; color: var(--ink); }

/* ---------------- 表格 ---------------- */
.rpt-table { font-size: 12.5px; }
.rpt-table thead th { padding: 10px 10px; }
.rpt-table tbody td { padding: 10px 10px; }
.rpt-row-total { background: #f4faf6; font-weight: 700; }
.rpt-row-total td { color: var(--brand-deep); border-top: 2px solid var(--line); }
.rpt-row-muted { background: #fbfcfb; }
.rpt-row-muted td { color: var(--ink-3); }
.rpt-bad { color: #e54d42; font-weight: 700; }
.rpt-mute { color: var(--ink-3); font-size: 12px; }
.rpt-cov { font-weight: 700; color: var(--brand-dark); }
.rpt-cov.full { color: #e54d42; }
.rpt-badge-bad, .rpt-badge-ok {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.rpt-badge-bad { background: #fdecea; color: #e54d42; }
.rpt-badge-ok { background: #eaf7f0; color: #059a4c; }
.rpt-problem-cell { max-width: 300px; white-space: normal; line-height: 1.7; color: var(--ink-2); }
.rpt-law { max-width: 200px; white-space: normal; color: var(--ink-3); font-size: 12px; }
.rpt-more-hint { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 12px; }
.rpt-note {
  margin-top: 12px; font-size: 12px; color: var(--ink-3);
  line-height: 1.9; padding: 10px 12px; background: #fbfdfc;
  border: 1px dashed var(--line); border-radius: 8px;
}

/* ---------------- 打印 / 导出 PDF ----------------
   中文 CJK 字体体积过大不适合内嵌 jsPDF，图片型 PDF 又不便于打印与检索，
   故 PDF 导出走浏览器打印：矢量文字、可复制可检索、版面按 A4 排版。 */
@page { size: A4 portrait; margin: 14mm 12mm; }

@media print {
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  body.rpt-printing .pc-sidebar,
  body.rpt-printing .pc-header,
  body.rpt-printing .pc-mobile-notice,
  body.rpt-printing .pc-toast,
  body.rpt-printing .pc-modal-mask,
  body.rpt-printing #login-overlay,
  body.rpt-printing .rpt-filter-card { display: none !important; }
  body.rpt-printing .pc-main { margin-left: 0 !important; height: auto !important; display: block !important; }
  body.rpt-printing .pc-content { overflow: visible !important; padding: 0 !important; }
  body.rpt-printing .pc-page { display: none !important; }
  body.rpt-printing #page-report { display: block !important; animation: none !important; }
  body.rpt-printing .pc-table-card {
    box-shadow: none !important; border: none !important;
    padding: 0 !important; margin-bottom: 16px !important;
    break-inside: auto;
  }
  body.rpt-printing .pc-table-card:hover { box-shadow: none !important; }
  body.rpt-printing .rpt-doc-head,
  body.rpt-printing .rpt-kpi-grid,
  body.rpt-printing .rpt-two-col { break-inside: avoid; }
  body.rpt-printing .rpt-doc-head { border-bottom: 1px solid #ccc; padding-bottom: 14px; }
  body.rpt-printing tr { break-inside: avoid; }
  body.rpt-printing thead { display: table-header-group; }
  /* 打印时保留条形图与徽标配色 */
  body.rpt-printing { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.rpt-printing #rpt-body .pc-table-wrap { overflow: visible !important; }
  body.rpt-printing .rpt-table { font-size: 10.5px; }
  body.rpt-printing .rpt-table thead th,
  body.rpt-printing .rpt-table tbody td { padding: 5px 6px; }
  body.rpt-printing .rpt-bar-label { width: 118px; }
  body.rpt-printing .rpt-bar-track { background: #eef3f0 !important; }
  body.rpt-printing .pc-trend-bar-wrap { height: 120px !important; }
}

/* ===== 页脚备案信息 ===== */
.pc-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 26px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .3px;
}
.pc-footer-icp {
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.pc-footer-icp:hover { color: var(--brand); text-decoration: underline; }
@media print { .pc-footer { display: none !important; } }
