/* ============================================================
   墨马安全 · 风险辨识与风险评估服务页
   文件：anquanshigu/risk-identification.css
   ============================================================ */

/* ========== 布局容器与板块间距 ========== */
.modules-wrapper { padding: 60px 0; }
.modules-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.public-title-gap { margin-top: 20px; }
.public-title-gap-lg { margin-top: 40px; }
.public-title-gap-xl { margin-top: 50px; }
.public-title-sub-gap { margin-top: 10px; }
.title-line { margin: 15px auto; }

/* ========== 双列卡片网格 ========== */
.two-column-grid {
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  gap: 30px;
  margin: 40px -15px 0;
}
.two-column-grid .module-card {
  width: calc(50% - 30px);
  margin: 0;
}

/* ========== 卡片变体 ========== */
.module-card-full { width: 100%; margin: 40px 0 30px; }
.module-card-soft {
  width: 100%;
  background: #f0f4fa;
  margin-bottom: 40px;
}
.module-card-cta {
  width: 100%;
  background: linear-gradient(135deg, #1F5FFF, #3B86FF);
  text-align: center;
}
.module-header-no-border { border-bottom: none; }
.module-content-center { text-align: center; }

/* ========== 详情链接与标签 ========== */
.module-link-inline {
  margin-top: 15px;
  display: inline-block;
}
.hazop-tag {
  color: #e53935;
  font-size: 14px;
}

/* ========== 文本工具类 ========== */
.intro-text {
  line-height: 1.8;
  margin-bottom: 16px;
}
.intro-text-last { line-height: 1.8; }
.soft-heading {
  font-size: 18px;
  margin-bottom: 16px;
}
.cta-heading { color: #fff; }
.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 20px;
}

/* ========== 表格横向滚动（PC 用；手机端由 qa.css 的 .table-wrap 卡片化接管） ========== */
.table-scroll { overflow-x: auto; }

/* ========== 方法选择矩阵 / 交付物清单表格（PC 样式） ========== */
.method-matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.method-matrix th {
  background: linear-gradient(135deg, #1F5FFF, #3B86FF);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
}
.method-matrix td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f8;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  vertical-align: top;
}
.method-matrix tr:nth-child(even) td { background: #f8fafd; }
.method-matrix tr:hover td { background: #eef4ff; }
.method-matrix tr:last-child td { border-bottom: none; }

/* ========== 四层方法体系 ========== */
.layer-stack {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  -webkit-flex-direction: column;
  gap: 14px;
  margin: 30px 0 10px;
}
.layer-item {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
  gap: 20px;
  padding: 22px 28px;
  border-radius: 10px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.layer-item .layer-idx {
  font-size: 32px;
  font-weight: 800;
  opacity: 0.35;
  min-width: 50px;
}
.layer-item h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #fff;
  font-weight: 600;
}
.layer-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.65;
}
.layer-1 { background: linear-gradient(135deg, #1F5FFF, #4A90FF); }
.layer-2 { background: linear-gradient(135deg, #0EA5A0, #16BFAE); }
.layer-3 { background: linear-gradient(135deg, #E8862B, #F0A84A); }
.layer-4 { background: linear-gradient(135deg, #7B5CF0, #9A7DF5); }

.layer-note {
  margin: 18px 0 0;
  padding: 18px 24px;
  background: #f4f8ff;
  border-left: 4px solid #1F5FFF;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}

/* ========== 双重预防机制 · 两条主线 ========== */
.dual-track {
  display: flex;
  display: -webkit-flex;
  gap: 24px;
  margin: 30px 0 0;
}
.dual-col {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(20, 40, 90, 0.08);
}
.dual-col .dual-head {
  padding: 16px 22px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}
.dual-col.risk .dual-head { background: linear-gradient(135deg, #1F5FFF, #4A90FF); }
.dual-col.hazard .dual-head { background: linear-gradient(135deg, #E8862B, #F0A84A); }
.dual-col .dual-body { padding: 18px 22px; }
.dual-col .dual-body ol {
  margin: 0;
  padding-left: 20px;
}
.dual-col .dual-body ol li {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 8px;
}
.dual-col .dual-body ol li:last-child { margin-bottom: 0; }

/* ========== 环形提示框 ========== */
.loop-box {
  margin: 22px 0 0;
  padding: 22px 26px;
  background: #f4f8ff;
  border-radius: 10px;
  border: 1px dashed #a9c4ff;
}
.loop-box-gap { margin-top: 20px; }
.loop-box .loop-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F5FFF;
  margin-bottom: 10px;
}
.loop-box p {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin: 0;
}
.loop-box p + p { margin-top: 6px; }

/* ========== 六步流程卡片（三段式） ========== */
.modules-grid-gap { margin-bottom: 30px; }

.stage-card .module-content p {
  margin: 0 0 10px;
  line-height: 1.75;
  font-size: 14px;
}
.stage-card .module-content p:last-child { margin-bottom: 0; }
.stage-card .module-content p strong {
  display: inline-block;
  min-width: 76px;
  color: #1F5FFF;
  font-weight: 600;
}
.stage-card .module-content p:nth-child(2) strong { color: #0EA5A0; }
.stage-card .module-content p:nth-child(3) strong { color: #E8862B; }

/* ========== 行业适用性场景 ========== */
.scenario-grid {
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0 0;
}
.scenario-card {
  width: calc(50% - 12px);
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  padding: 24px 26px;
  box-shadow: 0 3px 14px rgba(20, 40, 90, 0.07);
  border-left: 4px solid #1F5FFF;
}
.scenario-card h3 {
  font-size: 17px;
  color: #1F5FFF;
  margin: 0 0 10px;
  font-weight: 600;
}
.scenario-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* ========== 常见误区列表 ========== */
.myth-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.myth-list li {
  background: #fff;
  border-left: 4px solid #e53935;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(20, 40, 90, 0.06);
}
.myth-list li:last-child { margin-bottom: 0; }
.myth-list li strong {
  display: block;
  color: #c62828;
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
}
.myth-list li span {
  display: block;
  font-size: 14px;
  color: #555;
  line-height: 1.75;
}

/* ============================================================
   响应式 · 只处理布局类组件；表格卡片化交给 qa.css 的 .table-wrap
   ============================================================ */
@media (max-width: 768px) {

  .modules-container { padding: 0 15px; }

  /* 双列卡片 → 单列 */
  .two-column-grid {
    display: block;
    margin: 30px 0 0;
  }
  .two-column-grid .module-card {
    width: 100%;
    margin-bottom: 20px;
  }
  .two-column-grid .module-card:last-child { margin-bottom: 0; }

  /* 四层方法体系压缩 */
  .layer-item {
    padding: 16px 18px;
    gap: 14px;
    align-items: flex-start;
    -webkit-align-items: flex-start;
  }
  .layer-item .layer-idx { font-size: 24px; min-width: 36px; }
  .layer-item h3 { font-size: 16px; }
  .layer-item p { font-size: 13px; }

  /* 双主线 → 单列堆叠 */
  .dual-track { display: block; }
  .dual-col { margin-bottom: 16px; }
  .dual-col:last-child { margin-bottom: 0; }

  /* 行业场景 → 单列堆叠 */
  .scenario-grid { display: block; }
  .scenario-card {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 16px;
  }
  .scenario-card:last-child { margin-bottom: 0; }
}