/* EHS 文档页补充样式（与 platform.css 主色一致） */
.ehs-main {
  background: #f8fafc;
  padding-bottom: 48px;
}
.ehs-white-card {
  max-width: 1200px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.ehs-inner-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #2453e8 100%);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
}
.ehs-inner-header h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
}
.ehs-inner-header p {
  margin: 4px 0 0;
  opacity: 0.92;
  font-size: 15px;
}
.ehs-pad {
  padding: 28px 20px 40px;
}
.ehs-pad section {
  margin-bottom: 40px;
}
.ehs-pad h2 {
  color: #1e293b;
  font-size: 1.65em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid #2453e8;
  scroll-margin-top: calc(var(--header-h) + 56px);
}
.ehs-pad h3 {
  color: #334155;
  font-size: 1.2em;
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #06c6df;
}
.architecture-diagram {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
}
.layer {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.layer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}
.layer-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
}
.layer-presentation {
  background: linear-gradient(135deg, #2453e8 0%, #06c6df 100%);
}
.layer-business {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}
.layer-service {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}
.layer-data {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}
.layer-infrastructure {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.module-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.module-card:hover {
  border-color: #2453e8;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(30, 80, 226, 0.2);
}
.module-card strong {
  display: block;
  color: #1e293b;
  font-size: 1.05em;
  margin-bottom: 4px;
}
.module-card span {
  color: #64748b;
  font-size: 0.88em;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.tech-item {
  background: linear-gradient(135deg, #2453e8 0%, #06c6df 100%);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(30, 80, 226, 0.25);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  padding: 12px 16px;
  margin: 8px 0;
  background: #f1f5f9;
  border-left: 4px solid #2453e8;
  border-radius: 6px;
  transition: background 0.2s;
}
.feature-list li:hover {
  background: #e2e8f0;
}
.feature-list li::before {
  content: "✓";
  color: #059669;
  font-weight: bold;
  margin-right: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.stat-card {
  background: linear-gradient(135deg, #2453e8 0%, #06c6df 100%);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(30, 80, 226, 0.25);
}
.stat-number {
  font-size: 2.2em;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  opacity: 0.95;
}
.ehs-code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
}
.ehs-code-block pre {
  margin: 0;
}

/* 业务流程页 */
.ehs-process-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.process-container {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 24px 18px;
  margin: 20px 0;
}
.domain-title {
  font-size: 1.35em;
  font-weight: 700;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  scroll-margin-top: calc(var(--header-h) + 56px);
}
.safety-domain {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.environment-domain {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.health-domain {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.modules-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.module-column {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 2px dashed #cbd5e1;
}
.module-header {
  font-size: 1.05em;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.safety-module {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.environment-module {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.health-module {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.process-item {
  background: #f8fafc;
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 6px;
  border-left: 4px solid;
  position: relative;
  transition: all 0.2s;
}
.process-item:hover {
  transform: translateX(3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.safety-item {
  border-left-color: #dc2626;
}
.environment-item {
  border-left-color: #059669;
}
.health-item {
  border-left-color: #2563eb;
}
.process-item::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  font-size: 1.2em;
  color: #94a3b8;
}
.process-item:last-child::after {
  content: "";
}
.sub-item {
  background: #fff;
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 4px;
  font-size: 0.92em;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.sub-item::before {
  content: "•";
  color: #2453e8;
  font-weight: bold;
  margin-right: 6px;
}
.legend {
  background: #e2e8f0;
  padding: 18px;
  border-radius: 10px;
  margin: 20px 0;
}
.legend-title {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}
.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.legend-box {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  flex-shrink: 0;
}
/* EHS 介绍页：三大管理域 */
.ehs-domains-section .section-content {
  max-width: 1120px;
}
.ehs-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 992px) {
  .ehs-domain-grid {
    grid-template-columns: 1fr;
  }
}
.ehs-domain-card {
  --domain-accent: #2453e8;
  --domain-soft: rgba(36, 83, 232, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8eef8;
  box-shadow: 0 8px 28px rgba(15, 40, 100, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ehs-domain-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--domain-accent);
}
.ehs-domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 40, 100, 0.1);
}
.ehs-domain-card.is-safety {
  --domain-accent: #e24b4b;
  --domain-soft: rgba(226, 75, 75, 0.1);
}
.ehs-domain-card.is-env {
  --domain-accent: #0ea5a0;
  --domain-soft: rgba(14, 165, 160, 0.12);
}
.ehs-domain-card.is-health {
  --domain-accent: #2453e8;
  --domain-soft: rgba(36, 83, 232, 0.1);
}
.ehs-domain-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px 18px;
}
.ehs-domain-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--domain-soft);
  color: var(--domain-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ehs-domain-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}
.ehs-domain-head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.ehs-domain-list {
  list-style: none;
  margin: 0;
  padding: 0 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ehs-domain-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.ehs-domain-list li:hover {
  background: var(--domain-soft);
  border-color: color-mix(in srgb, var(--domain-accent) 22%, transparent);
}
.ehs-domain-list strong {
  font-size: 14px;
  color: #1e293b;
  font-weight: 650;
}
.ehs-domain-list span {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
.ehs-domain-note {
  margin: 0 20px 22px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  background: #f1f5f9;
  border-radius: 10px;
  border-left: 3px solid var(--domain-accent);
}
/* 兼容旧类名（若其他页仍引用） */
.ehs-domain-h {
  color: #fff;
  padding: 22px;
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
}
.ehs-domain-safety {
  background: #e24b4b;
}
.ehs-domain-env {
  background: #0ea5a0;
}
.ehs-domain-health {
  background: #2453e8;
}
.ehs-domain-body {
  padding: 20px;
}
.ehs-stat-grid-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.ehs-stat-card-intro {
  background: #fff;
  border-radius: 10px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.ehs-stat-num {
  font-size: 2.4em;
  font-weight: 800;
  background: linear-gradient(135deg, #2453e8, #06c6df);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ehs-stat-label {
  font-size: 14px;
  color: #64748b;
  margin-top: 6px;
}
.ehs-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.ehs-benefit-item {
  background: linear-gradient(135deg, #2453e8 0%, #06c6df 100%);
  color: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(30, 80, 226, 0.25);
}
.ehs-benefit-item h3 {
  margin: 0 0 10px;
  font-size: 1.15em;
  color: #fff;
  border: none;
  padding: 0;
}
.ehs-benefit-item p {
  margin: 0;
  opacity: 0.95;
  line-height: 1.65;
  font-size: 15px;
}

/* —— 长文档目录（sticky） —— */
.ehs-toc {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.ehs-toc::before {
  content: "本页目录";
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
  margin-right: 4px;
}
.ehs-toc a {
  font-size: 13px;
  color: #475569;
  padding: 5px 11px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  max-width: 14em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ehs-toc a:hover {
  background: rgba(30, 80, 226, 0.1);
  color: var(--primary);
  border-color: rgba(30, 80, 226, 0.2);
}

/* 架构页：综述段落 */
.ehs-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 14px;
  max-width: 52rem;
  font-weight: 500;
}
.ehs-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: #64748b;
  margin: 0 0 20px;
  max-width: 52rem;
}

/* 架构页顶部四格：语义色 + 去掉对内联 background 的依赖 */
.ehs-stats-overview .stat-card:nth-child(1) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.22);
}
.ehs-stats-overview .stat-card:nth-child(2) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.22);
}
.ehs-stats-overview .stat-card:nth-child(3) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
}
.ehs-stats-overview .stat-card:nth-child(4) {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.2);
}

/* 文档区内联段落收敛 */
.ehs-pad > section > p[style] {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #64748b !important;
  max-width: 52rem;
}

/* 总览页：价值主张条 */
.ehs-value-strip {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 28px 20px;
}
.ehs-value-strip .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.ehs-value-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ehs-value-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(30, 80, 226, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ehs-value-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1e293b;
}
.ehs-value-card p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}

/* 总览：深度阅读双入口 */
.ehs-dive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.ehs-dive-card {
  display: block;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ehs-dive-card:hover {
  border-color: rgba(30, 80, 226, 0.35);
  box-shadow: 0 10px 28px rgba(30, 80, 226, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.ehs-dive-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1e293b;
}
.ehs-dive-card p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}
.ehs-dive-card .go {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* 技术分组 */
.ehs-tech-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.ehs-tech-group {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}
.ehs-tech-group h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #1e293b;
  font-weight: 600;
}
.ehs-tech-group .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ehs-tech-group .tag {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.ehs-callout {
  margin-top: 14px;
  font-size: 14px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .layer:hover,
  .module-card:hover,
  .process-item:hover,
  .ehs-dive-card:hover,
  .ehs-domain-card:hover {
    transform: none;
  }
}
