/* 道路运输行业风险隐患排查系统 - 全行业版 */
/* 主题：政企蓝+红黄警示 */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #F0F2F5;
  color: #1A1A1A;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
:root {
  --primary: #1E5EFF;
  --primary-dark: #1547CC;
  --primary-light: #E8F0FF;
  --danger: #E53935;
  --danger-light: #FFEBEE;
  --warning: #FF8C00;
  --warning-light: #FFF3E0;
  --success: #00C48C;
  --success-light: #E0F7EF;
  --bg: #F0F2F5;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text-2: #5A6473;
  --text-3: #99A0AC;
  --border: #E5E8EC;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

#app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 70px;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* ===== 顶部导航 ===== */
.topbar {
  background: linear-gradient(135deg, #1E5EFF 0%, #4080FF 100%);
  color: white;
  padding: 18px 16px 22px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(30,94,255,0.15);
}
.topbar-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.topbar h1 { margin: 0; font-size: 18px; font-weight: 600; }
.topbar .sub { font-size: 12px; opacity: 0.85; }
.topbar .back-btn {
  background: rgba(255,255,255,0.2);
  border: none; color: white;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.topbar .back-btn.hidden { visibility: hidden; }

/* ===== 内容区 ===== */
.content { padding: 16px; min-height: calc(100vh - 200px); }
.page-title-section { margin-bottom: 12px; }
.page-title-section h2 { font-size: 16px; margin: 0 0 4px; color: var(--text); }
.page-title-section p { font-size: 12px; color: var(--text-3); margin: 0; }

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 15px; font-weight: 600;
  margin: 0 0 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.card-title .more { font-size: 12px; color: var(--text-3); font-weight: normal; }

/* ===== 统计卡片 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-card .num {
  font-size: 26px; font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-card.danger .num { color: var(--danger); }
.stat-card.warning .num { color: var(--warning); }
.stat-card.success .num { color: var(--success); }
.stat-card .label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}
.stat-card .icon-bg {
  position: absolute;
  right: -10px; bottom: -10px;
  font-size: 60px;
  opacity: 0.06;
}

/* ===== Tab Bar ===== */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 540px;
  margin: 0 auto;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1;
  padding: 8px 0 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s;
}
.tabbar .tab.active { color: var(--primary); }
.tabbar .tab .icon { font-size: 22px; display: block; margin-bottom: 2px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 22px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-block { display: block; width: 100%; }
.btn-outline { background: white; color: var(--primary); border: 1px solid var(--primary); }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 16px; }
.btn-ghost { background: transparent; color: var(--text-2); }

/* ===== 列表 ===== */
.list { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.list-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.list-item:active { background: #F5F7FA; }
.list-item:last-child { border-bottom: none; }
.list-item .row1 {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.list-item .row1 .title { font-size: 14px; font-weight: 500; color: var(--text); }
.list-item .row2 { font-size: 12px; color: var(--text-2); }
.list-item .row3 { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
}
.tag-major { background: var(--danger); color: white; }
.tag-major-outline { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger); }
.tag-cat { background: var(--primary-light); color: var(--primary); }
.tag-status-pending { background: #FFF3E0; color: #E65100; }
.tag-status-doing { background: #E3F2FD; color: #1565C0; }
.tag-status-done { background: #E0F7EF; color: #00C48C; }
.tag-status-overdue { background: #FFEBEE; color: #C62828; }
.tag-cancel { background: #FFEBEE; color: #C62828; cursor: pointer; margin-left: 4px; }
.tag-cancel:active { opacity: 0.7; }
.status-actions { display: flex; align-items: center; }

/* ===== 隐患项卡片 ===== */
.hazard-item {
  background: white;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.hazard-item.major { border-left-color: var(--danger); }
.hazard-item.checked-ok { border-left-color: var(--success); }
.hazard-item.checked-bad { border-left-color: var(--danger); background: #FFF8F8; }
.hazard-item .hid { font-size: 11px; color: var(--text-3); font-family: monospace; }
.hazard-item .hcontent {
  font-size: 14px; line-height: 1.6;
  margin: 6px 0 8px; color: var(--text);
}
.hazard-item .hlaw {
  font-size: 12px; color: var(--text-2);
  background: #F5F7FA; padding: 6px 10px; border-radius: 6px;
  margin-bottom: 8px;
}
.hazard-item .hcheck {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.hazard-item .hcheck label {
  flex: 1; min-width: 70px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 4px; border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px; cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.hazard-item .hcheck label.checked {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.hazard-item .hcheck label.checked-ok { background: var(--success); border-color: var(--success); }
.hazard-item .hcheck label.checked-bad { background: var(--danger); border-color: var(--danger); }
.hazard-item .hcheck label.checked-na { background: var(--text-3); border-color: var(--text-3); }
.hazard-item .hcheck input { display: none; }

.hazard-item .hnotes {
  margin-top: 10px;
}
.hazard-item .hnotes textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 50px;
  background: #FAFBFC;
}
.hazard-item .hphoto {
  margin-top: 10px;
}
.hazard-item .hphoto .ph-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.hazard-item .hphoto .ph-list {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.hazard-item .hphoto .ph {
  width: 60px; height: 60px;
  border-radius: 6px; object-fit: cover;
  border: 1px solid var(--border);
  cursor: pointer;
}
.hazard-item .hphoto .ph-add {
  width: 60px; height: 60px;
  border-radius: 6px;
  border: 1.5px dashed var(--text-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 24px;
  cursor: pointer;
  background: #FAFBFC;
}
.hazard-item .hphoto .ph-add:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 折叠面板 ===== */
.cat-section {
  background: white;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cat-section .cat-header {
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  background: linear-gradient(90deg, #F0F4FF 0%, #FFFFFF 100%);
}
.cat-section .cat-header .name { font-weight: 600; font-size: 15px; }
.cat-section .cat-header .count {
  background: var(--primary); color: white;
  padding: 2px 10px; border-radius: 12px;
  font-size: 12px; font-weight: normal;
}
.cat-section .cat-header .arrow {
  font-size: 12px; color: var(--text-3);
  transition: transform 0.2s;
}
.cat-section.open .cat-header .arrow { transform: rotate(180deg); }
.cat-section .sub-list {
  border-top: 1px solid var(--border);
  display: none;
  background: #FAFBFC;
}
.cat-section.open .sub-list { display: block; }
.cat-section .sub-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-2);
  display: flex; justify-content: space-between;
  border-bottom: 1px solid #F0F0F0;
  cursor: pointer;
}
.cat-section .sub-item:last-child { border-bottom: none; }
.cat-section .sub-item:active { background: var(--primary-light); }
.cat-section .sub-item .badge {
  background: var(--primary); color: white;
  padding: 1px 8px; border-radius: 10px;
  font-size: 11px;
}

/* ===== 模态框 ===== */
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal.show { display: flex; }
.modal-content {
  background: white;
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close {
  background: #F0F2F5; border: none; width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  color: var(--text-2);
}
.modal-footer {
  display: flex; gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.modal-footer .btn { flex: 1; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ===== 进度条 ===== */
.progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1E5EFF, #4080FF);
  border-radius: 3px;
  transition: width 0.3s;
}
.progress-bar.success { background: linear-gradient(90deg, #00C48C, #4DE0B7); }
.progress-bar.warning { background: linear-gradient(90deg, #FF8C00, #FFB347); }
.progress-bar.danger { background: linear-gradient(90deg, #E53935, #FF6B6B); }

/* ===== 工具类 ===== */
.hidden { display: none !important; }
.text-muted { color: var(--text-3); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fw-600 { font-weight: 600; }

/* ===== 搜索栏 ===== */
.search-bar {
  padding: 12px 16px;
  background: white;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.search-bar input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  background: #F5F7FA;
}
.search-bar input:focus { outline: none; border-color: var(--primary); background: white; }

/* ===== 饼图/图表 ===== */
.pie-chart {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pie-svg { flex-shrink: 0; }
.pie-legend { flex: 1; font-size: 12px; }
.pie-legend .item { display: flex; align-items: center; margin-bottom: 6px; }
.pie-legend .dot { width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }

/* ===== 任务/整改单 ===== */
.task-card {
  background: white;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  position: relative;
}
.task-card .t-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.task-card .t-name { font-size: 14px; font-weight: 600; }
.task-card .t-meta { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.task-card .t-info { font-size: 13px; color: var(--text-2); margin: 4px 0; }
.task-card .t-actions { display: flex; gap: 8px; margin-top: 10px; }
.task-card .t-progress { font-size: 12px; color: var(--text-2); margin: 6px 0; }
.task-card.overdue { border-left: 4px solid var(--danger); }

/* ===== 法律法规卡片 ===== */
.law-card {
  background: white;
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary);
  overflow: hidden;
}
.law-card > .law-summary { list-style: none; }
.law-card > .law-summary::-webkit-details-marker { display: none; }
.law-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.law-summary:hover { background: #f8fafc; }
.law-summary-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.law-chevron {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.law-card[open] .law-chevron { transform: rotate(90deg); }
.law-card .lname {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  word-break: break-word;
}
.law-card .ldesc {
  font-size: 12px;
  color: var(--text-2);
  padding: 10px 14px 14px 36px;
  line-height: 1.6;
  border-top: 1px dashed #e5e7eb;
}
.law-card .lcount {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.law-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 12px;
}
.law-toggle-all {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.law-toggle-all:hover { background: var(--primary); color: white; }
.law-toolbar-hint {
  font-size: 12px;
  color: var(--text-2);
}

/* ===== 详情页 ===== */
.detail-section {
  background: white;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.detail-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text);
  display: flex; align-items: center;
}
.detail-section h4::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: var(--primary);
  margin-right: 8px;
  border-radius: 2px;
}
.detail-row {
  display: flex;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed #F0F0F0;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .lbl { color: var(--text-3); min-width: 80px; }
.detail-row .val { color: var(--text); flex: 1; word-break: break-all; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  animation: fadein 0.2s;
}
@keyframes fadein {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ===== 浮窗 ===== */
.fab {
  position: fixed;
  bottom: 90px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(30,94,255,0.4);
  cursor: pointer;
  z-index: 90;
  border: none;
}

/* ===== 登录/角色选择 ===== */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.role-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.role-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.role-card .r-icon { font-size: 32px; margin-bottom: 6px; }
.role-card .r-name { font-size: 14px; font-weight: 600; }
.role-card .r-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ===== 大型图标卡 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: white;
  border-radius: 12px;
  padding: 16px 8px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.feature-item {
  text-align: center;
  cursor: pointer;
  padding: 6px 0;
}
.feature-item:active { transform: scale(0.95); }
.feature-item .f-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: white;
}
.feature-item .f-name { font-size: 12px; color: var(--text); }
.feature-item:nth-child(1) .f-icon { background: linear-gradient(135deg, #1E5EFF, #4080FF); }
.feature-item:nth-child(2) .f-icon { background: linear-gradient(135deg, #E53935, #FF6B6B); }
.feature-item:nth-child(3) .f-icon { background: linear-gradient(135deg, #FF8C00, #FFB347); }
.feature-item:nth-child(4) .f-icon { background: linear-gradient(135deg, #00C48C, #4DE0B7); }
.feature-item:nth-child(5) .f-icon { background: linear-gradient(135deg, #6C5CE7, #A29BFE); }
.feature-item:nth-child(6) .f-icon { background: linear-gradient(135deg, #00B894, #55EFC4); }
.feature-item:nth-child(7) .f-icon { background: linear-gradient(135deg, #FDCB6E, #FFEAA7); color: #333;}
.feature-item:nth-child(8) .f-icon { background: linear-gradient(135deg, #636E72, #B2BEC3); }

/* ===== 空状态 ===== */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
}
.empty .e-icon { font-size: 50px; opacity: 0.5; margin-bottom: 10px; }
.empty .e-text { font-size: 13px; }

/* ===== 设置项 ===== */
.setting-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: white;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.setting-item .s-name { font-size: 14px; }
.setting-item .s-arrow { color: var(--text-3); font-size: 12px; }

/* ===== 行业切换栏 ===== */
.industry-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid var(--primary);
}
.industry-bar:active { transform: scale(0.98); }
.industry-bar .ib-icon { font-size: 22px; }
.industry-bar .ib-name { font-size: 15px; font-weight: 600; color: var(--text); }
.industry-bar .ib-info { font-size: 12px; color: var(--text-3); flex: 1; }
.industry-bar .ib-arrow { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ===== 行业选择网格 ===== */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.industry-card {
  background: white;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: all 0.2s;
  position: relative;
  box-shadow: var(--shadow);
}
.industry-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.industry-card:active { transform: scale(0.97); }
.industry-card .i-icon { font-size: 36px; margin-bottom: 8px; }
.industry-card .i-name { font-size: 15px; font-weight: 600; color: var(--text); }
.industry-card .i-stats { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.industry-card .i-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.industry-card.locked {
  opacity: 0.5;
  position: relative;
}
.industry-card.locked .i-icon { filter: grayscale(1); }
.industry-card .i-lock {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 16px;
}

/* ====== 车辆一日三检 ====== */
.dc-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dc-vehicle-card {
  background: white;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.dc-vehicle-card:active { border-color: var(--primary); }
.dc-vehicle-card.locked { opacity: 0.5; }
.dc-vehicle-card.locked .dc-v-icon { filter: grayscale(1); }
.dc-v-icon { font-size: 32px; margin-bottom: 8px; }
.dc-v-name { font-size: 16px; font-weight: 600; color: var(--text); }
.dc-v-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dc-v-stats { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.dc-v-today { font-size: 11px; color: var(--success); margin-top: 6px; }
.dc-v-lock {
  position: absolute; top: 12px; right: 12px;
  font-size: 16px;
}
.dc-info-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1E5EFF 0%, #4080FF 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 12px;
}
.dc-info-icon { font-size: 24px; }
.dc-info-name { font-size: 15px; font-weight: 600; }
.dc-info-plate { font-size: 14px; margin-left: auto; opacity: 0.9; }
.dc-input-row {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.dc-input-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
}
.dc-phase-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 4px;
}
.dc-phase-tab {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.dc-phase-tab.active {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dc-phase-tab.completed .dc-p-progress {
  color: var(--success);
  font-weight: 600;
}
.dc-p-icon { display: block; font-size: 18px; margin-bottom: 2px; }
.dc-p-name { display: block; font-size: 13px; font-weight: 500; color: var(--text); }
.dc-p-progress { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.dc-phase-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.dc-batch-btns { display: flex; gap: 6px; }
.dc-items { margin-bottom: 16px; }
.dc-check-item {
  background: white;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-left: 3px solid transparent;
}
.dc-check-item.dc-item-ok { border-left-color: var(--success); }
.dc-check-item.dc-item-bad { border-left-color: var(--danger); }
.dc-item-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.dc-item-id {
  font-size: 11px;
  color: var(--text-3);
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.dc-item-content {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}
.dc-item-standard {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
  padding-left: 36px;
}
.dc-item-law {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  padding-left: 36px;
}
.dc-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-left: 36px;
}
.dc-btn-ok, .dc-btn-bad {
  flex: 1;
  padding: 8px 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: white;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
}
.dc-btn-ok.active {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.dc-btn-bad.active {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.dc-item-note {
  margin-top: 8px;
  padding-left: 36px;
}
.dc-item-note textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
}
.dc-item-photos {
  margin-top: 10px;
  padding-left: 36px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dc-ph {
  width: 56px; height: 56px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  cursor: pointer;
}
.dc-ph-add {
  width: 56px; height: 56px;
  border-radius: 6px;
  border: 1.5px dashed var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 24px;
  cursor: pointer;
  background: #FAFBFC;
}
.dc-ph-add:hover { border-color: var(--primary); color: var(--primary); }
.dc-save-bar {
  position: sticky;
  bottom: 0;
  padding: 12px 0;
  background: linear-gradient(to top, white 70%, transparent);
}
.dc-complete-bar {
  padding: 12px 0;
}

/* ====== 排查指引折叠面板 ====== */
.hguide {
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  overflow: hidden;
}
.hguide summary {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #2563eb;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hguide summary::-webkit-details-marker {
  display: none;
}
.hguide summary::before {
  content: '▶';
  font-size: 10px;
  color: #6b7280;
  transition: transform 0.2s;
  display: inline-block;
}
.hguide[open] summary::before {
  transform: rotate(90deg);
}
.hguide summary:hover {
  background: #f3f4f6;
}
.hguide-body {
  padding: 4px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hg-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffffff;
  border-left: 3px solid #e5e7eb;
}
.hg-meaning { border-left-color: #2563eb; }
.hg-standard { border-left-color: #059669; }
.hg-method { border-left-color: #ea580c; }
.hg-consequence { border-left-color: #dc2626; }
.hg-lbl {
  font-size: 12px;
  font-weight: 600;
}
.hg-meaning .hg-lbl { color: #2563eb; }
.hg-standard .hg-lbl { color: #059669; }
.hg-method .hg-lbl { color: #ea580c; }
.hg-consequence .hg-lbl { color: #dc2626; }
.hg-val {
  font-size: 13px;
  line-height: 1.65;
  color: #1f2937;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 法规依据多层级显示（国家/北京并存） ===== */
.hlaw-multi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 2px 0;
}
.hlaw-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
}
.law-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.5;
  margin-top: 1px;
}
.law-text {
  font-size: 13px;
  line-height: 1.6;
  color: #1f2937;
  word-break: break-word;
}
.law-national { border-left-color: #1d4ed8; }
.law-national .law-badge { background: #1d4ed8; }
.law-beijing { border-left-color: #0f766e; }
.law-beijing .law-badge { background: #0f766e; }
.law-other { border-left-color: #6b7280; }
.law-other .law-badge { background: #6b7280; }
