/* ===== 登录弹窗 ===== */
.login-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  align-items: center; justify-content: center;
}
.login-overlay { display: flex; }
.login-box {
  background: #fff; border-radius: 20px; padding: 40px 36px;
  width: 100%; max-width: 400px; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  animation: modalIn 0.3s ease;
}
.login-logo { font-size: 56px; margin-bottom: 8px; }
.login-title { font-size: 20px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; }
.login-sub { color: #888; font-size: 13px; margin-bottom: 24px; }
.login-hint-box { background: #f8fafc; border-radius: 8px; padding: 12px; margin-top: 16px; }
.login-hint { font-size: 12px; color: #64748b; margin: 0; margin-bottom: 6px; }
.login-hint b { color: #2563eb; }
.login-tip { font-size: 12px; color: #f59e0b; margin: 0; }

/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif; background: #f0f2f5; color: #1a1a2e; min-height: 100vh; }

/* ===== 顶部导航 ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff; padding: 0 24px; height: 56px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.topbar-logo { display: flex; align-items: center; gap: 8px; min-width: 220px; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; }
.topbar-nav { display: flex; gap: 4px; flex: 1; }
.nav-btn {
  background: transparent; border: none; color: rgba(255,255,255,0.75);
  padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-btn.active { background: rgba(255,255,255,0.2); color: #fff; font-weight: 600; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.user-badge {
  background: linear-gradient(135deg, #e94560, #c62a47);
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
}

/* ===== 主内容 ===== */
.main-content { max-width: 1400px; margin: 0 auto; padding: 20px 24px; }
.page { display: none; }
.page.active { display: block; }
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.page-desc { color: #666; margin-top: 4px; font-size: 13px; }
.update-time { font-size: 12px; color: #999; }

/* ===== KPI 卡片 ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi-card {
  background: #fff; border-radius: 12px; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.kpi-total { border-color: #4361ee; }
.kpi-open { border-color: #f77f00; }
.kpi-progress { border-color: #3a86ff; }
.kpi-closed { border-color: #2dc653; }
.kpi-overdue { border-color: #e63946; }
.kpi-rate { border-color: #7b2d8b; }
.kpi-icon { font-size: 28px; }
.kpi-num { font-size: 26px; font-weight: 800; line-height: 1; }
.kpi-label { font-size: 12px; color: #888; margin-top: 2px; }

/* ===== 图表区 ===== */
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.chart-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.chart-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #444; }
.chart-card canvas { max-height: 220px; }

/* ===== 预警表 ===== */
.alert-section { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.alert-section h3 { font-size: 15px; font-weight: 700; color: #e63946; margin-bottom: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: #f8f9fa; padding: 10px 12px; text-align: left;
  font-weight: 600; color: #555; border-bottom: 2px solid #e9ecef;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.data-table tr:hover td { background: #fafbff; }

/* ===== 上报表单 ===== */
.report-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.report-form-card, .risk-assess-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.report-form-card h3, .risk-assess-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: #333; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.required { color: #e63946; }
.optional { color: #aaa; font-weight: 400; font-size: 11px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 13px; color: #333; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}
.form-group textarea { resize: vertical; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ===== 上传区 ===== */
.upload-area {
  border: 2px dashed #d0d7de; border-radius: 8px; padding: 20px;
  text-align: center; cursor: pointer; color: #888;
  transition: border-color 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.upload-area:hover { border-color: #4361ee; background: #f0f4ff; color: #4361ee; }
.upload-icon { font-size: 24px; }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 2px solid #e2e8f0; }

/* ===== 按钮 ===== */
.btn {
  padding: 9px 20px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: linear-gradient(135deg, #4361ee, #3730d5); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #3730d5, #2c28b8); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(67,97,238,0.3); }
.btn-secondary { background: #f0f4ff; color: #4361ee; border: 1.5px solid #c7d2fe; }
.btn-secondary:hover { background: #e0e7ff; }
.btn-danger { background: #fff0f0; color: #e63946; border: 1.5px solid #fca5a5; }
.btn-danger:hover { background: #ffe4e4; }
.btn-success { background: #f0fff4; color: #2dc653; border: 1.5px solid #a7f3d0; }
.btn-success:hover { background: #dcfce7; }
.btn-small { padding: 6px 14px; font-size: 12px; }
.btn-warning { background: #fff7e6; color: #f77f00; border: 1.5px solid #fbbf24; }

/* ===== 风险评判卡 ===== */
.placeholder-text { text-align: center; padding: 40px 20px; color: #aaa; }
.placeholder-icon { font-size: 48px; margin-bottom: 12px; }
.placeholder-text p { font-size: 13px; line-height: 1.6; }
.risk-matrix-container { margin-bottom: 16px; }
.risk-matrix-container h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #555; }

/* 风险矩阵5x5 */
.risk-matrix { display: grid; grid-template-columns: 40px repeat(5, 1fr); grid-template-rows: repeat(5,1fr) 40px; gap: 2px; height: 180px; }
.risk-cell {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; border-radius: 3px; cursor: default;
}
.risk-cell.header { background: #f1f5f9; color: #555; font-size: 9px; }
.risk-cell.low { background: #d1fae5; color: #065f46; }
.risk-cell.medium { background: #fef3c7; color: #92400e; }
.risk-cell.high { background: #fee2e2; color: #991b1b; }
.risk-cell.critical { background: #7f1d1d; color: #fff; }
.risk-cell.active-cell { outline: 3px solid #1a1a2e; outline-offset: -3px; }

.risk-badge-container { text-align: center; margin: 12px 0; }
.risk-badge-large {
  display: inline-block; padding: 12px 28px; border-radius: 20px;
  font-size: 18px; font-weight: 800; letter-spacing: 1px;
}
.risk-L4 { background: #7f1d1d; color: #fff; }
.risk-L3 { background: #dc2626; color: #fff; }
.risk-L2 { background: #f59e0b; color: #fff; }
.risk-L1 { background: #10b981; color: #fff; }

.assess-section { margin-bottom: 14px; border-left: 3px solid #4361ee; padding-left: 10px; }
.assess-section h4 { font-size: 12px; font-weight: 700; color: #444; margin-bottom: 6px; }
.assess-section p { font-size: 13px; color: #555; line-height: 1.6; }
.assess-section ul { padding-left: 16px; }
.assess-section ul li { font-size: 13px; color: #555; line-height: 1.8; }

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center;
  background: #fff; padding: 14px 16px; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.filter-bar input, .filter-bar select {
  padding: 7px 12px; border: 1.5px solid #e2e8f0; border-radius: 7px;
  font-size: 13px; outline: none; font-family: inherit; color: #333;
}
.filter-bar input { flex: 1; min-width: 180px; }
.filter-bar input:focus, .filter-bar select:focus { border-color: #4361ee; }

/* ===== 隐患卡片 ===== */
.list-container { display: flex; flex-direction: column; gap: 10px; }
.hazard-card {
  background: #fff; border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 5px solid;
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hazard-card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.hazard-card.border-L4 { border-color: #7f1d1d; }
.hazard-card.border-L3 { border-color: #dc2626; }
.hazard-card.border-L2 { border-color: #f59e0b; }
.hazard-card.border-L1 { border-color: #10b981; }
.hazard-card-left { display: flex; flex-direction: column; gap: 6px; }
.hazard-card-id { font-size: 11px; color: #999; }
.hazard-card-title { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.hazard-card-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #f1f5f9; color: #555;
}
.hazard-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ===== 状态标签 ===== */
.status-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.status-open { background: #fff7e6; color: #f77f00; }
.status-in_progress { background: #e0f2fe; color: #0284c7; }
.status-verify { background: #f3e8ff; color: #7e22ce; }
.status-closed { background: #dcfce7; color: #16a34a; }
.status-overdue { background: #fee2e2; color: #dc2626; }

/* ===== 风险等级标签 ===== */
.risk-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
.risk-tag.L4 { background: #7f1d1d; color: #fff; }
.risk-tag.L3 { background: #dc2626; color: #fff; }
.risk-tag.L2 { background: #f59e0b; color: #fff; }
.risk-tag.L1 { background: #10b981; color: #fff; }

/* ===== 模态框 ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px; width: 90%; max-width: 760px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(0.95) translateY(-10px); } to { opacity:1; transform: scale(1) translateY(0); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid #f0f2f5;
  position: sticky; top: 0; background: #fff; z-index: 1; border-radius: 16px 16px 0 0;
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; line-height: 1; }
.modal-close:hover { color: #333; }
.modal-body { padding: 24px; }

/* ===== 回头看 ===== */
.review-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-bottom: 20px; }
.review-left { display: flex; flex-direction: column; gap: 16px; }
.review-stats, .review-filter {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.review-stats h3, .review-filter h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: #333; }
.review-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f2f5; font-size: 13px; }
.stat-num { font-size: 18px; font-weight: 800; }
.stat-num.green { color: #16a34a; }
.stat-num.red { color: #dc2626; }
.stat-num.orange { color: #f77f00; }
.review-right { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.review-right h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: #333; }
.review-records { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.review-records h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: #333; }

/* ===== 知识库 ===== */
.knowledge-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tool-card.full-width { grid-column: 1 / -1; }
.tool-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #333; }
.tool-desc { font-size: 12px; color: #888; margin-bottom: 16px; }
.why-item { margin-bottom: 12px; }
.why-item label { display: block; font-size: 13px; font-weight: 600; color: #4361ee; margin-bottom: 4px; }
.why-item input { width: 100%; padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 7px; font-size: 13px; font-family: inherit; outline: none; }
.why-item input:focus { border-color: #4361ee; }
.why-report { background: #f8f9ff; border: 1.5px solid #c7d2fe; border-radius: 10px; padding: 16px; margin-top: 16px; }
.fishbone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fishbone-item label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.fishbone-item textarea { width: 100%; padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 7px; font-size: 12px; font-family: inherit; resize: vertical; outline: none; }
.knowledge-filter { margin-bottom: 12px; }
.knowledge-filter input { width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-family: inherit; outline: none; }
.knowledge-filter input:focus { border-color: #4361ee; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-height: 400px; overflow-y: auto; padding-right: 4px; }
.kb-item { background: #f8f9ff; border: 1.5px solid #e0e7ff; border-radius: 10px; padding: 12px; }
.kb-item h4 { font-size: 13px; font-weight: 700; color: #4361ee; margin-bottom: 6px; }
.kb-item p { font-size: 12px; color: #555; line-height: 1.6; }
.kb-item .kb-measures { margin-top: 6px; font-size: 11px; color: #888; }

/* ===== 模态框详情内容 ===== */
.detail-section { margin-bottom: 18px; }
.detail-section h4 { font-size: 13px; font-weight: 700; color: #4361ee; border-left: 3px solid #4361ee; padding-left: 8px; margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-item { font-size: 13px; }
.detail-item .di-label { color: #888; font-size: 11px; margin-bottom: 2px; }
.detail-item .di-value { font-weight: 600; color: #333; }
.progress-section { margin-top: 16px; }
.progress-bar-container { background: #f1f5f9; border-radius: 8px; height: 8px; margin-top: 6px; }
.progress-bar { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #4361ee, #3730d5); transition: width 0.5s; }
.action-log { background: #f8f9fa; border-radius: 8px; padding: 12px; margin-top: 10px; }
.log-entry { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e9ecef; font-size: 12px; }
.log-entry:last-child { border-bottom: none; }
.log-time { color: #999; min-width: 120px; }
.log-text { color: #555; }
.update-form { background: #f0f4ff; border-radius: 10px; padding: 16px; margin-top: 12px; }
.update-form h4 { font-size: 13px; font-weight: 700; color: #4361ee; margin-bottom: 12px; }
.update-form select, .update-form input, .update-form textarea {
  width: 100%; padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 7px;
  font-size: 13px; font-family: inherit; margin-bottom: 10px; outline: none;
}

/* ===== 照片上传和验证 ===== */
.verify-section { background: #fff7ed; border-radius: 10px; padding: 16px; margin-top: 12px; }
.verify-section h4 { font-size: 13px; font-weight: 700; color: #f59e0b; border-left: 3px solid #f59e0b; padding-left: 8px; margin-bottom: 10px; }
.photo-upload-area { margin: 12px 0; }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-gallery { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 2px solid #e2e8f0; cursor: pointer; transition: transform 0.2s; }
.photo-thumb:hover { transform: scale(1.05); border-color: #4361ee; }
.verify-actions { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.verify-actions > div { display: flex; align-items: center; }

/* ===== 整改表单 ===== */
.rectification-form { background: linear-gradient(135deg, #f0f4ff, #e0e7ff); border-radius: 10px; padding: 16px; margin-top: 12px; border: 2px solid #dbeafe; }
.rectification-form h4 { font-size: 14px; font-weight: 700; color: #4361ee; border-left: 3px solid #4361ee; padding-left: 10px; margin-bottom: 12px; }
.rectification-form .form-group { margin-bottom: 12px; }
.rectification-form .form-group label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.rectification-form .required { color: #dc2626; }
.rectification-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 7px; font-size: 13px; font-family: inherit; resize: vertical; outline: none; transition: border-color 0.2s; }
.rectification-form textarea:focus { border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1); }
.rectification-form .upload-area { background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 8px; padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s; }
.rectification-form .upload-area:hover { border-color: #4361ee; background: #f0f4ff; }
.rectification-form .upload-icon { display: block; font-size: 32px; margin-bottom: 8px; }
.rectification-form .upload-area span { font-size: 12px; color: #64748b; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a2e; color: #fff; padding: 12px 24px; border-radius: 30px;
  font-size: 13px; font-weight: 600; opacity: 0; transition: all 0.3s; z-index: 300;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(135deg, #2dc653, #16a34a); }
.toast.error { background: linear-gradient(135deg, #e63946, #c62a47); }
.toast.warning { background: linear-gradient(135deg, #f77f00, #ea580c); }

/* ===== 回头看卡片 ===== */
.review-item {
  background: #f8f9ff; border: 1.5px solid #e0e7ff; border-radius: 10px;
  padding: 12px; margin-bottom: 10px;
}
.review-item h4 { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 6px; }
.review-item-meta { display: flex; gap: 10px; font-size: 12px; color: #888; margin-bottom: 8px; }
.review-record-card { background: #f8f9fa; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 4px solid #4361ee; }
.review-record-card h4 { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 6px; }
.review-record-card p { font-size: 12px; color: #666; line-height: 1.6; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 48px 20px; color: #ccc; }
.empty-state .empty-icon { font-size: 56px; display: block; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .report-layout { grid-template-columns: 1fr; }
  .review-layout { grid-template-columns: 1fr; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .topbar-nav { overflow-x: auto; }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== 五Why深度动画 ===== */
.why-item { animation: fadeInDown 0.3s ease; }
@keyframes fadeInDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }

/* ===== 鱼骨图结果 ===== */
#fishbone-result { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 10px; padding: 16px; margin-top: 14px; }
#fishbone-result h4 { font-size: 14px; font-weight: 700; color: #92400e; margin-bottom: 10px; }
#fishbone-result .bone-item { margin-bottom: 8px; }
#fishbone-result .bone-label { font-size: 12px; font-weight: 700; color: #444; }
#fishbone-result .bone-content { font-size: 12px; color: #666; margin-left: 10px; }

/* ===== 閫氱煡绠＄悊椤甸潰 ===== */
.notification-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}

.notification-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notification-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.config-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a2e;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.config-card .form-group {
  margin-bottom: 12px;
}

.config-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.config-card input[type=" text\],
.config-card input[type=\email\],
.config-card input[type=\password\],
.config-card select {
 width: 100%;
 padding: 10px 12px;
 border: 1.5px solid #e2e8f0;
 border-radius: 8px;
 font-size: 13px;
 font-family: inherit;
 outline: none;
 transition: border-color 0.2s;
}

.config-card input:focus,
.config-card select:focus {
 border-color: #4361ee;
 box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.config-card input[type=\checkbox\] {
 width: 18px;
 height: 18px;
 cursor: pointer;
 vertical-align: middle;
 margin-right: 8px;
}

.config-card input[type=\checkbox\] + label {
 display: inline;
 font-weight: 500;
}

.contacts-card,
.notifications-card {
 background: #fff;
 border-radius: 12px;
 padding: 20px;
 box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contacts-card h3,
.notifications-card h3 {
 font-size: 16px;
 font-weight: 700;
 margin-bottom: 16px;
 color: #1a1a2e;
}

.contacts-list {
 max-height: 400px;
 overflow-y: auto;
}

.contact-item {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 12px;
 border: 1px solid #e2e8f0;
 border-radius: 8px;
 margin-bottom: 10px;
 transition: all 0.2s;
}

.contact-item:hover {
 border-color: #4361ee;
 background: #f8faff;
}

.contact-info {
 flex: 1;
}

.contact-name {
 font-weight: 600;
 color: #1a1a2e;
 margin-bottom: 4px;
}

.contact-dept {
 font-size: 12px;
 color: #64748b;
 margin-bottom: 4px;
}

.contact-channels {
 display: flex;
 gap: 12px;
 font-size: 12px;
 color: #475569;
}

.channel-item {
 display: flex;
 align-items: center;
 gap: 4px;
}

.channel-item.enabled {
 color: #10b981;
 font-weight: 500;
}

.channel-item.disabled {
 color: #94a3b8;
}

.contact-actions {
 display: flex;
 gap: 6px;
}

.notifications-list {
 max-height: 500px;
 overflow-y: auto;
}

.notification-item {
 padding: 12px;
 border: 1px solid #e2e8f0;
 border-radius: 8px;
 margin-bottom: 10px;
 transition: all 0.2s;
}

.notification-item:hover {
 border-color: #4361ee;
}

.notification-item.success {
 border-left: 3px solid #10b981;
 background: #f0fdf4;
}

.notification-item.failed {
 border-left: 3px solid #dc2626;
 background: #fef2f2;
}

.notification-header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-bottom: 8px;
}

.notification-type {
 font-weight: 600;
 color: #1a1a2e;
}

.notification-status {
 font-size: 12px;
 font-weight: 600;
 padding: 2px 8px;
 border-radius: 4px;
}

.notification-status.success {
 background: #dcfce7;
 color: #166534;
}

.notification-status.failed {
 background: #fee2e2;
 color: #991b1b;
}

.notification-detail {
 font-size: 13px;
 color: #475569;
 margin-bottom: 6px;
}

.notification-time {
 font-size: 11px;
 color: #94a3b8;
}

.empty-contacts,
.empty-notifications {
 text-align: center;
 padding: 40px;
 color: #94a3b8;
 font-size: 13px;
}

.empty-contacts-icon,
.empty-notifications-icon {
 font-size: 48px;
 margin-bottom: 12px;
}
