/* =========================================================
   EHS安环风向标 ehshome.cn 全站样式
   风格：浅色SaaS · 蓝色主视觉 · 白色圆角卡片 · 轻信息密度
   ========================================================= */

:root {
  --primary: #2B5BFF;
  --primary-dark: #1e4fe0;
  --primary-light: #eef2ff;
  --primary-soft: #e6ecff;
  --accent: #ff7020;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1e293b;
  --text-sub: #64748b;
  --text-light: #94a3b8;
  --border: #e6ebf3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(30, 64, 175, 0.06);
  --shadow-hover: 0 10px 28px rgba(43, 91, 255, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(43, 91, 255, 0.28);
  transform: translateY(-1px);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}
.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-lg { padding: 13px 32px; font-size: 16px; }

/* ---------------- 顶部导航 ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2px;
}
.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #5b82ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(43, 91, 255, 0.3);
}
.logo em { font-style: normal; color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-sub);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: all 0.25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------------- Hero 首屏 ---------------- */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(43, 91, 255, 0.12), transparent 60%),
    radial-gradient(800px 380px at -10% 20%, rgba(91, 130, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--primary) 0%, #4f7bff 60%, #00c2d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-sub);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-tags {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-sub);
}
.hero-tag b { color: var(--primary); font-size: 15px; }

/* Hero 右侧视觉卡片 */
.hero-visual { position: relative; }
.hero-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(30, 64, 175, 0.12);
  border: 1px solid var(--border);
  padding: 24px;
}
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hero-card-head .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hero-card-head .dot-group { display: flex; gap: 5px; }
.hero-card-head .dot.red { background: #ff5f57; }
.hero-card-head .dot.yellow { background: #febc2e; }
.hero-card-head .dot.green { background: #28c840; }
.hero-card-title { font-size: 15px; font-weight: 700; }
.hero-card-title small { display: block; font-weight: 400; font-size: 12px; color: var(--text-light); margin-top: 2px; }

.hero-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-mini-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-mini-item .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-mini-item .tx { font-size: 13px; font-weight: 600; line-height: 1.3; }
.hero-mini-item .tx small { display: block; color: var(--text-light); font-weight: 400; font-size: 11px; }

.hero-flow {
  margin-top: 14px;
  background: var(--primary-light);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 600;
}
.hero-flow .arrow { color: var(--primary); margin: 0 4px; }
.hero-flow .arrow:last-of-type { display: none; }
.hero-flow span.pill {
  background: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(43, 91, 255, 0.12);
}

/* ---------------- 统计条 ---------------- */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
}
.stat-item { text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-sub); margin-top: 4px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 64px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head .kicker {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.3px; }
.section-head p { color: var(--text-sub); margin-top: 10px; font-size: 15px; }

/* ---------------- 卡片通用 ---------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(43, 91, 255, 0.25);
}

/* 首页三大能力卡片 */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card { padding: 30px 26px; }
.feat-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feat-card p { color: var(--text-sub); font-size: 14.5px; }
.feat-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.feat-card .more:hover { gap: 10px; }

/* 首页热门工具预览 */
.tools-preview { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tp-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; }
.tp-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.tp-card h4 { font-size: 15.5px; font-weight: 700; }
.tp-card p { color: var(--text-sub); font-size: 13px; margin-top: 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card .tag-line { margin-top: 8px; display: flex; gap: 6px; }

/* 标签 */
.tag {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-sub);
  font-weight: 500;
  border: 1px solid var(--border);
}
.tag.blue { background: var(--primary-light); color: var(--primary); border-color: rgba(43,91,255,.15); }
.tag.green { background: #e7f8f0; color: #0d9f6e; border-color: rgba(13,159,110,.15); }
.tag.orange { background: #fff3e8; color: #e05a10; border-color: rgba(224,90,16,.15); }

/* 首页资讯预览 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { padding: 24px; display: flex; flex-direction: column; }
.news-card .cat {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.news-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.news-card p { color: var(--text-sub); font-size: 13.5px; margin-top: 8px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { margin-top: 16px; font-size: 12.5px; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.news-card .news-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  transition: gap 0.2s;
}
.news-card .news-more:hover { gap: 8px; }

/* ---------------- 工具矩阵页 ---------------- */
.page-header {
  background:
    radial-gradient(900px 320px at 20% -20%, rgba(43, 91, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.3px; }
.page-header p { color: var(--text-sub); margin-top: 10px; font-size: 15px; }

/* 双维度筛选：5步工作流 */
.scene-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 66px;
  z-index: 50;
}
.scene-inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scene-label { font-size: 13px; color: var(--text-light); font-weight: 600; margin-right: 6px; white-space: nowrap; }
.scene-tag {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.scene-tag:hover { color: var(--primary); border-color: var(--primary); }
.scene-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}
.law-pillar-label { margin-left: 18px; }

/* 工具区布局：左侧要素侧栏 + 右侧卡片网格 */
.tools-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  padding: 36px 0 72px;
  align-items: start;
}
.sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px;
  position: sticky;
  top: 132px;
}
.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  padding: 6px 10px 12px;
  letter-spacing: 0.5px;
}
.elem-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: 2px;
}
.elem-item .count {
  background: var(--bg);
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 8px;
  color: var(--text-light);
  font-weight: 600;
}
.elem-item:hover { background: var(--bg); color: var(--text); }
.elem-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.elem-item.active .count { background: #fff; color: var(--primary); }

/* EHS 三支柱侧栏 */
.pillar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
  background: var(--bg);
}
.pillar-head:hover { background: #eef1f6; }
.pillar-head.active {
  background: var(--primary-light);
  color: var(--primary);
}
.pillar-head .count { margin-left: auto; }
.pillar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
}
.pillar-dot.e { background: #10B981; }
.pillar-dot.h { background: #F59E0B; }
.pillar-dot.s { background: #2563EB; }
.pillar-dot.g { background: #6B7280; }
.pillar-sub { margin: 2px 0 6px 16px; border-left: 2px solid var(--border); padding-left: 6px; }

/* 工具搜索框 */
.tool-search { margin-left: auto; }
.tool-search input {
  width: 240px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}
.tool-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}
.tool-search input::placeholder { color: var(--text-light); }

/* 工具卡片网格 */
.tools-area .grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.grid-head .result-count { font-size: 14px; color: var(--text-sub); }
.grid-head .result-count b { color: var(--primary); font-size: 18px; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tool-card { padding: 20px; display: flex; flex-direction: column; min-height: 216px; }
.tool-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.tool-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.tool-name small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}
.tool-desc {
  color: var(--text-sub);
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.tool-tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.tool-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 6px 16px;
  transition: all 0.2s;
}
.tool-btn:hover { background: var(--primary); color: #fff; }
.tool-hot { font-size: 12px; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* 空结果 */
.no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* 资讯列表页 */
.news-list-section { padding: 36px 0 72px; }
.news-list-section .news-card { cursor: default; }
.news-card h3 { transition: color 0.2s; }
.news-card:hover h3 { color: var(--primary); }

/* 法规速查页 */
.law-section { padding: 36px 0 48px; }
.law-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.law-card { padding: 22px; display: flex; flex-direction: column; }
.law-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.law-head h3 { font-size: 16.5px; font-weight: 700; flex: 1; min-width: 0; }
.law-type {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.type-law { background: #eef2ff; color: var(--primary); }
.type-reg { background: #e7f8f0; color: #0d9f6e; }
.type-rule { background: #f3e8ff; color: #7c3aed; }
.type-std { background: #fff3e8; color: #e05a10; }
.law-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.law-status.ok { background: #e7f8f0; color: #0d9f6e; }
.law-meta { font-size: 12.5px; color: var(--text-light); margin-top: 8px; }
.law-points { margin-top: 12px; padding-left: 0; list-style: none; }
.law-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 6px;
}
.law-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}
.law-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .law-grid { grid-template-columns: 1fr; }
}

/* 资讯详情页 */
.article-section { padding: 36px 0 72px; }
.article-container { max-width: 860px; }
.article-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.article-breadcrumb a { color: var(--primary); }
.article-breadcrumb .sep { margin: 0 8px; color: var(--text-light); }
.article-card { padding: 36px 40px; }
.article-card h1 { font-size: 26px; font-weight: 800; line-height: 1.4; letter-spacing: -0.3px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}
.article-meta .cat {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.article-body { margin-top: 22px; }
.article-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  line-height: 1.4;
}
.article-body p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 12px;
}
.article-body ol {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.article-body ol li {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.9;
}
.article-body a { color: var(--primary); font-weight: 600; }
.article-note {
  margin-top: 26px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.7;
}
.article-back { margin-top: 24px; }

@media (max-width: 600px) {
  .article-card { padding: 24px 20px; }
  .article-card h1 { font-size: 21px; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #141b2d;
  color: #9aa7bd;
  margin-top: 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 36px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer-col h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  color: #9aa7bd;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-contact .qr-note { font-size: 12.5px; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { color: #7ea0ff; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-bottom .copy { color: #6b778f; }
.footer-bottom .beian img { display: inline-block; vertical-align: -2px; margin-right: 4px; height: 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat-item { border-right: none; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 48px; }
  .hero-visual { max-width: 480px; }
  .tools-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }
  .sidebar-title { width: 100%; padding: 4px 8px 6px; }
  .elem-item { margin-bottom: 0; padding: 8px 12px; }
  .elem-item .count { display: none; }
  .pillar-head { margin-top: 4px; padding: 8px 12px; }
  .pillar-sub { margin-left: 8px; border-left-width: 2px; }
  .grid-head { flex-wrap: wrap; }
  .tool-search { width: 100%; margin-left: 0; }
  .tool-search input { width: 100%; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(30,64,175,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-toggle { display: inline-flex; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
  .tp-grid, .feat-grid, .news-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-mini-grid { grid-template-columns: 1fr; }
  .scene-bar { position: static; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* =========================================================
   JSA 工具详情页
   主题色：JSA 工具身份证色（安全绿）
   ========================================================= */
.tool-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #eef4ee 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.tool-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin-top: 12px; }
.tool-hero-sub { margin-top: 10px; font-size: 15px; color: var(--text-sub); line-height: 1.8; }
.tool-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbe7cc;
}
.tool-hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-hero-tags span {
  font-size: 12.5px;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

.jsa-section { padding: 32px 0 72px; }
.jsa-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}
.jsa-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #15803d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

/* 作业信息卡 */
.jsa-info { padding: 24px 28px; margin-bottom: 20px; }
.jsa-info-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.jsa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}
.jsa-field input {
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.jsa-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 91, 255, 0.12);
}

/* 分析步骤表 */
.jsa-table-card { padding: 24px 28px; margin-bottom: 20px; }
.jsa-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.btn-add {
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  font-size: 13.5px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.22s ease;
}
.btn-add:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(43,91,255,0.25); }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.jsa-table { width: 100%; border-collapse: collapse; min-width: 1080px; }
.jsa-table thead th {
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  padding: 10px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.jsa-table tbody td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f3f9;
  vertical-align: middle;
}
.jsa-table tbody tr:last-child td { border-bottom: none; }
.jsa-table tbody tr:hover { background: #fafbff; }
.jsa-table .col-step { width: 52px; text-align: center; font-weight: 700; color: var(--text-light); }
.jsa-table .col-lec { width: 116px; }
.jsa-table .col-d { width: 70px; text-align: center; }
.jsa-table .col-level { width: 96px; }
.jsa-table .col-del { width: 40px; text-align: center; }
.jsa-table .col-control { min-width: 200px; }
.jsa-table .col-owner { width: 100px; }
.jsa-table .col-in input { min-width: 130px; }

.jsa-table input, .jsa-table select {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.jsa-table input:focus, .jsa-table select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 91, 255, 0.12);
}
.jsa-table select { cursor: pointer; }

.del-row {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-light);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.del-row:hover { background: #fee2e2; color: #dc2626; }

.level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.level-badge.lv-none { background: #f1f5f9; color: var(--text-light); }

.jsa-table-tip { margin-top: 12px; font-size: 12.5px; color: var(--text-light); line-height: 1.7; }
.jsa-table-tip b { color: var(--text-sub); }

/* 操作按钮 */
.jsa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.jsa-actions .btn { border-radius: 999px; }
.jsa-draft-status { font-size: 12.5px; color: var(--text-light); margin-bottom: 22px; }

/* 折叠区（LEC说明 / 法规依据） */
.jsa-ref { margin-bottom: 16px; padding: 0; overflow: hidden; }
.jsa-ref-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 22px;
  background: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.jsa-ref-toggle:hover { background: #fafbff; }
.jsa-ref-arrow { color: var(--primary); transition: transform 0.2s; }
.jsa-ref.open .jsa-ref-arrow { transform: rotate(180deg); }
.jsa-ref-body { display: none; padding: 4px 22px 20px; border-top: 1px solid var(--border); }
.jsa-ref.open .jsa-ref-body { display: block; }
.jsa-ref-src { font-size: 13px; color: var(--text-sub); margin: 14px 0; line-height: 1.8; }
.jsa-ref-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.7;
}

/* LEC 取值表 */
.lec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.lec-item { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.lec-item h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.lec-table { width: 100%; border-collapse: collapse; }
.lec-table tr { border-bottom: 1px solid var(--border); }
.lec-table tr:last-child { border-bottom: none; }
.lec-table td {
  padding: 5px 6px;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
  border: none;
}
.lec-table td:first-child { width: 74px; font-weight: 700; color: var(--text); white-space: nowrap; }
.lv-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 6px;
}

/* 法规依据列表 */
.jsa-law-list { margin: 14px 0 0; padding: 0; list-style: none; }
.jsa-law-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.jsa-law-list li:last-child { border-bottom: none; }
.jsa-law-list b { color: var(--text); font-size: 14px; }
.jsa-law-list p { margin-top: 5px; color: var(--text-sub); line-height: 1.75; }

@media (max-width: 860px) {
  .jsa-info-grid { grid-template-columns: 1fr 1fr; }
  .lec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tool-hero h1 { font-size: 26px; }
  .jsa-info { padding: 18px 16px; }
  .jsa-table-card { padding: 18px 16px; }
  .jsa-info-grid { grid-template-columns: 1fr; }
  .jsa-actions .btn { flex: 1; }
}

/* ---------------- 打印样式（打印/导出 PDF 时生效） ---------------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .site-nav, .jsa-actions, .jsa-ref, .site-footer,
  .tool-hero-tags, .jsa-draft-status, .btn-add { display: none !important; }
  .tool-hero { padding: 8px 0 14px; background: #fff; border: none; }
  .tool-hero h1 { font-size: 22px; margin-top: 6px; }
  .tool-hero-sub { font-size: 12.5px; }
  .jsa-section { padding: 0; }
  .jsa-info, .jsa-table-card { padding: 12px 14px; box-shadow: none; border: 1px solid #d5dbe5; margin-bottom: 12px; page-break-inside: avoid; }
  .jsa-table { min-width: 0; }
  .table-scroll { border: none; overflow: visible; }
  .jsa-table thead th { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .jsa-table input, .jsa-table select {
    border: none;
    background: transparent;
    padding: 2px 4px;
    height: auto;
    font-size: 11.5px;
  }
  .jsa-table select { -webkit-appearance: none; appearance: none; }
  .jsa-table .level-badge, .cell-d { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .jsa-table tbody td { padding: 5px 6px; }
  .jsa-card-title { font-size: 15px; }
  .jsa-num { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
  .row-idx { font-size: 12px; }
  .del-row { display: none !important; }
}

/* =========================================================
   八大作业许可页（tool-permit.html）
   主题色：作业许可红（高风险语义）
   ========================================================= */
.permit-hero { background: linear-gradient(180deg, #fdf0ee 0%, var(--bg) 100%); }
.permit-hero .tool-badge { color: #c92a2a; background: #ffe3e3; border-color: #ffc9c9; }

.permit-picker { padding: 24px 28px; margin-bottom: 20px; }
.permit-num { background: #c92a2a; }
.permit-types { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.permit-type {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.22s ease;
}
.permit-type:hover { border-color: #c92a2a; box-shadow: var(--shadow-hover); }
.permit-type.active {
  border-color: #c92a2a;
  background: #fff5f5;
  box-shadow: 0 6px 18px rgba(201, 42, 42, 0.10);
}
.pt-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
  background: #c92a2a;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-icon-blue { background: var(--primary); }
.pt-name { font-size: 16px; font-weight: 700; color: var(--text); display: flex; flex-direction: column; gap: 3px; }
.pt-sub { font-size: 12.5px; font-weight: 500; color: var(--text-light); }
.permit-picker-note { margin-top: 14px; font-size: 12.5px; color: var(--text-light); }

/* 作业票表单 */
.permit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.permit-std { font-size: 12.5px; color: var(--text-light); background: var(--bg); padding: 4px 12px; border-radius: 999px; }

.permit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 18px;
}
.permit-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}
.permit-field-wide { grid-column: span 3; }
.permit-field input, .permit-field textarea, .permit-lel select {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.permit-field textarea { height: auto; min-height: 52px; padding: 8px 12px; resize: vertical; }
.permit-field input:focus, .permit-field textarea:focus, .permit-lel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 91, 255, 0.12);
}

/* 动火级别 */
.permit-level-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #fff5f5;
  border: 1px solid #ffd8d8;
  border-radius: 12px;
  margin-bottom: 18px;
}
.permit-level-label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.permit-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.permit-radio input { accent-color: #c92a2a; width: 16px; height: 16px; }
.permit-level-tip {
  flex: 1 1 100%;
  font-size: 12.5px;
  color: #c92a2a;
  line-height: 1.6;
}

.permit-subhead {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 10px;
  padding-left: 11px;
  border-left: 3px solid #c92a2a;
  line-height: 1.4;
}

/* 表格（气体分析 / 安全措施） */
.permit-gas { margin-bottom: 6px; }
.permit-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.permit-table thead th {
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.permit-table tbody td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f3f9;
  vertical-align: middle;
  font-size: 13px;
}
.permit-table tbody tr:last-child td { border-bottom: none; }
.permit-table input[type="text"], .permit-table input[type="number"], .permit-table input[type="datetime-local"] {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}
.permit-table input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 91, 255, 0.12);
}
.pm-idx { text-align: center; font-weight: 700; color: var(--text-light); }
.pm-text { color: var(--text-sub); line-height: 1.6; }
.pm-std { color: var(--text-light); font-size: 12px; }
.pm-check { text-align: center; }
.pm-check input { width: 17px; height: 17px; accent-color: #c92a2a; cursor: pointer; }
.pm-other { margin-top: 4px; }
.gas-judge { text-align: center; font-weight: 700; font-size: 12.5px; color: var(--text-light); }
.gas-judge.ok { color: #2b8a3e; }
.gas-judge.bad { color: #c92a2a; }

.permit-gas-rule {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
}
.permit-lel { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-weight: 600; }
.permit-lel select { height: 32px; font-size: 12.5px; }

/* 合规校验 */
.permit-check {
  margin: 16px 0 0;
  padding: 10px 14px;
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #bf5b00;
  line-height: 1.7;
}
.permit-check-tip {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
}
.permit-check-tip.warn { background: #fff3e0; color: #bf5b00; }
.permit-check-tip.ok { background: #e6f4ea; color: #2b8a3e; }

/* 交底与审批 */
.permit-sign-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  background: var(--bg);
  border-radius: 12px;
}
.permit-approvals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.permit-approval {
  padding: 12px 14px;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  min-height: 92px;
  background: #fff;
}
.pa-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.pa-note { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-light); }
.permit-level-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff5f5;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: #a61e1e;
  line-height: 1.7;
}

/* 特殊判级与危险因素 */
.danger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 12px;
}
.danger-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
}
.danger-item input { margin-top: 2px; accent-color: #0d9488; width: 15px; height: 15px; flex: none; }
.level-result {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.7;
  background: #e6f4ea;
  color: #1a7f37;
  font-weight: 600;
}
.level-result.tip { background: var(--bg); color: var(--text-sub); font-weight: 500; }
.blind-cat { display: flex; align-items: center; gap: 18px; }
.blind-cat .permit-radio input { accent-color: #7c3aed; }
.permit-depth-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.permit-depth-row input {
  width: 120px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}
.permit-depth-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43, 91, 255, 0.12); }

@media (max-width: 860px) {
  .permit-grid { grid-template-columns: 1fr 1fr; }
  .permit-field-wide { grid-column: span 2; }
  .permit-sign-row { grid-template-columns: 1fr 1fr; }
  .permit-approvals { grid-template-columns: 1fr 1fr; }
  .permit-types { grid-template-columns: repeat(2, 1fr); }
  .danger-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .permit-types { grid-template-columns: 1fr; }
  .permit-grid { grid-template-columns: 1fr; }
  .permit-field-wide { grid-column: span 1; }
  .permit-sign-row { grid-template-columns: 1fr; }
  .permit-approvals { grid-template-columns: 1fr; }
  .permit-picker { padding: 18px 16px; }
}

/* 作业许可打印样式 */
@media print {
  .permit-picker, .jsa-actions, .jsa-ref, .site-nav, .site-footer,
  .tool-hero-tags, .jsa-draft-status, .permit-check { display: none !important; }
  .permit-hero { padding: 8px 0 14px; background: #fff; border: none; }
  .permit-hero h1 { font-size: 20px; margin-top: 4px; }
  .permit-hero-sub { font-size: 12px; }
  .jsa-section { padding: 0; }
  #permitForm { padding: 0; border: none; box-shadow: none; }
  .permit-head { margin-bottom: 8px; }
  .permit-grid, .permit-sign-row { background: #fff; padding: 10px 6px; border: 1px solid #d5dbe5; margin-bottom: 10px; gap: 8px; }
  .permit-field { font-size: 11.5px; }
  .permit-field input, .permit-field textarea { border: none; padding: 2px 4px; height: auto; font-size: 11px; background: transparent; }
  .permit-level-row { padding: 8px; background: #fff; border: 1px solid #d5dbe5; }
  .permit-subhead { font-size: 13px; margin: 12px 0 6px; }
  .permit-table thead th { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 11px; }
  .permit-table input { border: none; background: transparent; padding: 2px 4px; height: auto; font-size: 11px; }
  .permit-approvals { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .permit-approval { padding: 6px 8px; min-height: 60px; }
  .pa-note { margin-top: 3px; }
  .permit-level-note, .permit-gas-rule, .permit-check-tip { font-size: 11px; }
  .permit-check-tip.ok, .permit-check-tip.warn { background: #fff; }
}
