/* accidents.css - 矿山事故通报模块样式 */
.acc-notice { border-left: 4px solid #c76a00; background: linear-gradient(135deg, #fffbe6, #fff5cc); }
.acc-notice-title { font-weight: 700; color: #c76a00; margin-bottom: 8px; font-size: 15px; }
.acc-notice-body { font-size: 13px; color: #5a4400; line-height: 1.7; }

.acc-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; margin-left: 6px; }
.acc-badge.acc-in { background: #fff3d0; color: #c76a00; border: 1px solid #ffb703; }
.acc-badge.acc-out { background: #e8f0f8; color: #0f4c81; border: 1px solid #219ebc; }

/* 饼图 */
.acc-pie-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.acc-pie { width: 160px; height: 160px; border-radius: 50%; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,.08); flex-shrink: 0; }
.acc-pie-hole { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 80px; height: 80px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 2px 6px rgba(0,0,0,.06); }
.acc-pie-num { font-size: 22px; font-weight: 800; color: #0f4c81; line-height: 1; }
.acc-pie-lbl { font-size: 11px; color: #8a97a4; margin-top: 3px; }
.acc-legend { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.acc-legend-item { font-size: 12.5px; color: #4a5b6c; display: flex; align-items: center; gap: 6px; }
.acc-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.acc-pct { color: #8a97a4; margin-left: 4px; font-size: 11px; }

/* 月度趋势 */
.acc-mbar { display: flex; flex-direction: column; gap: 6px; }
.acc-mrow { display: flex; align-items: center; gap: 8px; }
.acc-mlbl { font-size: 12px; color: #4a5b6c; width: 62px; flex-shrink: 0; font-family: 'Consolas', monospace; }
.acc-mtrack { flex: 1; height: 18px; background: #eef2f6; border-radius: 4px; overflow: hidden; }
.acc-mfill { height: 100%; background: linear-gradient(90deg, #219ebc, #0f4c81); border-radius: 4px; transition: width .3s; }
.acc-mnum { font-size: 12px; color: #0f4c81; font-weight: 700; width: 28px; text-align: right; flex-shrink: 0; }

/* 筛选行 */
.acc-filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acc-select { flex: 1; min-width: 120px; padding: 8px 10px; border: 1.5px solid #e5eaef; border-radius: 8px; font-size: 13px; background: #fff; color: #1a2b3c; }
.acc-select:focus { outline: none; border-color: #219ebc; box-shadow: 0 0 0 3px rgba(33,158,188,.15); }

/* 事故卡片 */
.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc-card { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-left: 4px solid #7f8c8d; cursor: pointer; transition: all .2s; }
.acc-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: translateY(-1px); }
.acc-card.acc-critical { border-left-color: #c0392b; background: linear-gradient(135deg, #fff, #fff5f4); }
.acc-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 12px; }
.acc-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.acc-date { color: #8a97a4; font-family: 'Consolas', monospace; font-size: 12px; }
.acc-death { margin-left: auto; color: #4a5b6c; font-size: 12px; padding: 2px 8px; border-radius: 4px; background: #f0f4f8; }
.acc-death.has { color: #c0392b; background: #fff0ee; font-weight: 700; }
.acc-death b { font-size: 14px; }
.acc-card-title { font-weight: 700; color: #1a2b3c; font-size: 14.5px; margin: 4px 0 3px; line-height: 1.4; }
.acc-card-meta { font-size: 12px; color: #8a97a4; margin-bottom: 4px; }
.acc-card-cause { font-size: 12.5px; color: #5a6b7c; padding: 4px 8px; background: #f8fbfe; border-radius: 4px; border-left: 2px solid #219ebc; }
.acc-card-detail { margin-top: 8px; padding: 10px 12px; background: linear-gradient(135deg, #f7fafd, #eef4fa); border-radius: 6px; font-size: 13px; color: #1a2b3c; line-height: 1.6; }
.acc-card-detail-inner { color: #1a2b3c; }
.acc-link { display: inline-block; margin-top: 8px; color: #0f4c81; font-size: 12px; text-decoration: none; font-weight: 600; }
.acc-link:hover { text-decoration: underline; }

/* ===== 数据源标签 ===== */
.acc-tier { display: inline-block; padding: 2px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; margin-left: 4px; cursor: help; }
.acc-tier-off { background: #ffe6e6; color: #c0392b; border: 1px solid #ff8b8b; }
.acc-tier-ind { background: #fff3d0; color: #b8860b; border: 1px solid #ffc94d; }
.acc-src { color: #8a97a4; font-size: 11px; }

/* ===== 重大事故预警横条 ===== */
.acc-alert { background: linear-gradient(135deg, #fff0ee, #fff5f4); border-left: 5px solid #c0392b; }
.acc-alert-title { font-weight: 800; color: #c0392b; margin-bottom: 8px; font-size: 15px; }
.acc-alert-list { display: flex; flex-direction: column; gap: 5px; }
.acc-alert-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border-radius: 6px; cursor: pointer; transition: all .15s; border: 1px solid #fce4e0; font-size: 13px; }
.acc-alert-item:hover { border-color: #c0392b; background: #fff5f4; transform: translateX(2px); }
.acc-alert-date { color: #8a97a4; font-family: 'Consolas', monospace; font-size: 12px; flex-shrink: 0; min-width: 82px; }
.acc-alert-death { color: #c0392b; font-weight: 800; padding: 2px 8px; background: #fff0ee; border-radius: 4px; flex-shrink: 0; font-size: 12px; }
.acc-alert-text { flex: 1; color: #1a2b3c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 今日新增角标 ===== */
.acc-today { background: linear-gradient(135deg, #e8f7ea, #f5fef7); border-left: 5px solid #27ae60; color: #1e6e3a; font-size: 14px; font-weight: 600; }
.acc-today b { color: #c0392b; font-size: 16px; padding: 0 4px; }

/* ===== AI 分析弹窗 ===== */
.acc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  overflow-y: auto;
}
.acc-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%; max-width: 720px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow: hidden;
}
.acc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0f4c81, #219ebc);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.acc-modal-head button {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}
.acc-modal-head button:hover { background: rgba(255,255,255,.35); }
.acc-modal-body {
  padding: 18px 20px 6px 20px;
  overflow-y: auto;
  flex: 1;
}
.acc-ai-content {
  color: #1a2b3c;
  line-height: 1.75;
  font-size: 14px;
}
.acc-ai-content h2 {
  color: #c0392b;
  font-size: 18px;
  margin: 4px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #fce4e0;
}
.acc-ai-content h3 {
  color: #0f4c81;
  font-size: 15px;
  margin: 16px 0 8px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #eef4fa, #fff);
  border-left: 4px solid #219ebc;
  border-radius: 4px;
}
.acc-ai-content ul { padding-left: 8px; list-style: none; margin: 4px 0; }
.acc-ai-content li {
  padding: 4px 0 4px 4px;
  margin: 2px 0;
  font-size: 13.5px;
  line-height: 1.7;
}
.acc-ai-content blockquote {
  padding: 8px 12px;
  background: #fffbe6;
  border-left: 4px solid #c76a00;
  color: #5a4400;
  margin: 8px 0;
  font-style: italic;
  border-radius: 4px;
}
.acc-ai-content strong { color: #0f4c81; font-weight: 700; }
.acc-ai-content em { color: #8a97a4; font-style: normal; font-size: 12.5px; }
.acc-ai-content hr { border: none; border-top: 1px dashed #ddd; margin: 16px 0 10px; }
.acc-ai-content p { margin: 6px 0; }
.acc-ai-meta {
  padding: 10px 20px 14px;
  border-top: 1px solid #eef2f6;
  font-size: 12px;
  color: #8a97a4;
  background: #f8fbfe;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.acc-ai-refresh {
  background: #fff;
  border: 1px solid #e5eaef;
  color: #0f4c81;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.acc-ai-refresh:hover { background: #eef4fa; border-color: #219ebc; }

@media (max-width: 600px) {
  .acc-modal { max-height: 96vh; border-radius: 10px; }
  .acc-modal-body { padding: 14px 16px 6px; }
  .acc-ai-content h2 { font-size: 16px; }
  .acc-ai-content h3 { font-size: 14px; }
  .acc-ai-content { font-size: 13px; }
  .acc-ai-content li { font-size: 12.5px; }
}

/* 打印样式 */
@media print {
  body > *:not(.acc-modal-overlay) { display: none !important; }
  .acc-modal-overlay { position: static; padding: 0; background: none; }
  .acc-modal { box-shadow: none; max-height: none; }
  .acc-modal-head button, .acc-ai-meta button { display: none; }
}

/* 手机小屏 - 基础 */
@media (max-width: 600px) {
  .acc-alert-item { flex-wrap: wrap; }
  .acc-alert-text { min-width: 100%; }
  .acc-pie { width: 130px; height: 130px; }
  .acc-pie-hole { width: 66px; height: 66px; }
  .acc-pie-num { font-size: 18px; }
  .acc-legend { min-width: 100%; }
  .acc-mlbl { width: 54px; font-size: 11px; }
  .acc-card-head { font-size: 11px; }
  .acc-death { margin-left: 0; }
}


/* 【v84 severity 徽章】2026-07-18 */
.acc-sev {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  margin-left: 6px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .acc-sev { font-size: 10px; padding: 1px 5px; }
}
