/* EHSJob 公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0b3d91;     /* EHS 深蓝 */
  --primary-dark: #062864;
  --primary-light: #1d5bc4;
  --accent: #0f9b6c;      /* EHS 安全绿 */
  --accent-dark: #0a7d56;
  --warning: #f59e0b;
  --danger: #dc2626;
  --bg: #f7f9fc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(11,61,145,0.08);
  --shadow-lg: 0 10px 30px rgba(11,61,145,0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }
.topbar-links a { margin-left: 16px; }

.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; max-width: 1360px; }
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.logo svg { flex-shrink: 0; }
.logo small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.5px; }

.search-box {
  flex: 1;
  max-width: 720px;      /* 拉长约 1.5 倍（原 520px） */
  margin: 0 22px;
  position: relative;
}
.search-box form { display: block; width: 100%; }
.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 60px 0 20px;   /* 右侧留 60px 给放大镜按钮，文字绝不与图标重叠 */
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 13px;          /* 提示文字缩小，避免视觉上被图标挤压 */
  background-color: var(--bg);
  transition: all .2s;
}
.search-box input::placeholder { color: var(--text-light); font-size: 13px; }
.search-box input:focus { outline: none; border-color: var(--primary-light); background-color: #fff; }
/* 搜索按钮：透明底、无蓝色圆圈；图标为线框放大镜，可点击提交 */
.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.search-box button:hover,
.search-box button:focus { background: transparent; color: var(--primary); outline: none; }
.search-box button svg { display: block; }

.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}
.nav a:hover, .nav a.active {
  background: rgba(11,61,145,0.08);
  color: var(--primary);
}

/* ===== Banner 搜索区 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15,155,108,0.25), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.hero .sub {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.hero-search {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  background: transparent;
}
.hero-search input:focus { outline: none; }
.hero-search select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.hero-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
.hero-search button:hover { background: var(--accent-dark); }

.hero-tags {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.hero-tags a {
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 999px;
  margin-right: 8px;
  display: inline-block;
  margin-top: 8px;
}
.hero-tags a:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ===== 数据统计 ===== */
.stats {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -40px auto 0;
  max-width: 980px;
  position: relative;
  z-index: 3;
}
.stats .item {
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats .item:last-child { border-right: none; }
.stats .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stats .label { font-size: 12px; color: var(--text-muted); }
.visit-counter {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.visit-counter strong {
  color: var(--accent-dark);
  font-weight: 700;
}

/* ===== 登录/注册 ===== */
.auth-box { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.auth-box a { color: var(--text); cursor: pointer; }
.auth-box a:hover { color: var(--primary); }
.auth-box .user-name {
  color: var(--primary);
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.auth-modal.open { display: flex; }
.auth-modal .box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  padding: 28px;
  position: relative;
}
.auth-modal .close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
}
.auth-modal h3 { margin-bottom: 18px; color: var(--primary); font-size: 20px; }
.auth-modal .tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.auth-modal .tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.auth-modal .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.auth-modal .form-group { margin-bottom: 14px; }
.auth-modal label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.auth-modal input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.auth-modal input:focus { outline: none; border-color: var(--primary-light); }
.auth-modal .msg { font-size: 12px; margin-top: 4px; min-height: 16px; }
.auth-modal .msg.error { color: var(--danger); }
.auth-modal .msg.ok { color: var(--accent-dark); }
.auth-modal button[type="submit"] {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
}
.auth-modal button[type="submit"]:hover { background: var(--primary-light); }
.auth-modal .tip { font-size: 12px; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* ===== 通用 section ===== */
.section { padding: 56px 0; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
}
.section-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px;
}
.section-title .more { font-size: 14px; color: var(--text-muted); }
.section-title .more:hover { color: var(--primary); }

/* ===== 分类 ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .categories { grid-template-columns: 1fr; }
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .25s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  flex-shrink: 0;
}
.cat-card.green .cat-icon { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.cat-card.orange .cat-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.cat-card.purple .cat-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.cat-card.red .cat-icon { background: linear-gradient(135deg, #be123c, #ef4444); }
.cat-card.cyan .cat-icon { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.cat-info h3 { font-size: 16px; margin-bottom: 4px; }
.cat-info p { font-size: 13px; color: var(--text-muted); }
.cat-info .count { font-size: 12px; color: var(--accent-dark); font-weight: 600; margin-top: 4px; }

/* ===== 资料卡片 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card .thumb {
  height: 130px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
}
.card .thumb.green { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.card .thumb.orange { background: linear-gradient(135deg, #d97706, #f59e0b); }
.card .thumb.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card .tag {
  display: inline-block;
  background: rgba(11,61,145,0.08);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
  width: fit-content;
}
.card .title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.card:hover .title { color: var(--primary); }
.card .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; flex: 1; }
.card .meta { font-size: 12px; color: var(--text-light); display: flex; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 10px; }

/* ===== 列表 ===== */
.list-row {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all .2s;
}
.list-row:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.list-row .thumb-mini {
  width: 120px;
  height: 80px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
}
.list-row .body { flex: 1; }
.list-row h3 { font-size: 16px; margin-bottom: 6px; }
.list-row h3 a { color: var(--text); }
.list-row h3 a:hover { color: var(--primary); }
.list-row .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.list-row .meta { font-size: 12px; color: var(--text-light); }
.list-row .meta span { margin-right: 14px; }

/* ===== 详情页 ===== */
.article-page { padding: 40px 0 60px; }
.article-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
}
.article-main {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  border: 1px solid var(--border);
}
.article-main h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.article-meta span::before { content: '·'; margin-right: 18px; color: var(--text-light); }
.article-meta span:first-child::before { content: ''; margin-right: 0; }

.article-content { font-size: 15.5px; line-height: 1.85; color: #334155; }
.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 30px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}
.article-content h3 { font-size: 17px; font-weight: 700; margin: 24px 0 12px; color: var(--text); }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { padding-left: 26px; margin-bottom: 14px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  background: var(--bg);
  border-left: 4px solid var(--primary-light);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article-content th { background: var(--bg); font-weight: 600; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); position: relative; }
.sidebar-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.sidebar-card ul li { list-style: none; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--text); display: flex; gap: 8px; }
.sidebar-card ul li a:hover { color: var(--primary); }
.sidebar-card ul li .num { color: var(--accent-dark); font-weight: 600; min-width: 22px; }

/* ===== 关于页 ===== */
.about-page { padding: 40px 0; }
.about-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border);
}
.about-card h1 {
  font-size: 30px;
  margin-bottom: 24px;
  text-align: center;
}
.about-card p { margin-bottom: 14px; }
.about-card h2 {
  font-size: 20px;
  margin: 28px 0 14px;
  color: var(--primary-dark);
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 24px 0 12px;
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  background: var(--bg);
}
.feature .ico { font-size: 28px; margin-bottom: 10px; color: var(--primary); }
.feature h4 { margin-bottom: 6px; font-size: 15px; }
.feature p { font-size: 13px; color: var(--text-muted); }

.contact-block {
  background: var(--bg);
  padding: 22px 28px;
  border-radius: var(--radius);
  margin-top: 18px;
  border-left: 4px solid var(--primary-light);
}
.contact-block p { margin: 5px 0; }
.contact-block p:first-child { margin-top: 0; }
.contact-block p:last-child { margin-bottom: 0; }

/* ===== 关于页扩展：用户提交/订阅 ===== */
.subscribe {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.subscribe h2 { font-size: 24px; margin-bottom: 12px; }
.subscribe p { opacity: 0.85; margin-bottom: 22px; }
.subscribe-form { display: flex; max-width: 480px; margin: 0 auto; gap: 8px; }
.subscribe-form input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
}
.subscribe-form button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.subscribe-form button:hover { background: var(--accent-dark); }

/* ===== 页脚 ===== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 24px;
  font-size: 14px;
  line-height: 1.85;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand { display: flex; flex-direction: column; justify-content: center; }
.footer-brand .brand-line {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.footer-brand p {
  color: #94a3b8;
  margin: 0;
  line-height: 1.7;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { padding: 4px 0; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #fff; }
.footer p { color: #94a3b8; }
.footer .brand-line { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: #94a3b8; }
.beian { display: inline-flex; gap: 4px; align-items: center; }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== 筛选条 ===== */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar label { font-size: 13px; color: var(--text-muted); margin-right: 6px; font-weight: 500; }
.filter-bar select, .filter-bar input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
}
.filter-bar input { flex: 1; min-width: 180px; }
.filter-bar .btn-mini {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 13px;
}
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary-light); color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .item { border-right: none; border-bottom: 1px solid var(--border); }
  .article-main { padding: 24px 18px; }
}
@media (max-width: 640px) {
  .header .container { flex-wrap: wrap; gap: 12px; }
  .search-box { margin: 0; order: 3; flex-basis: 100%; }
  .nav { gap: 0; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 36px 0 60px; }
  .hero h1 { font-size: 26px; }
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .list-row .thumb-mini { width: 80px; height: 60px; font-size: 12px; }
  .list-row .body h3 { font-size: 15px; }
  .section-title h2 { font-size: 20px; }
}

/* ===== 特色专栏卡片 ===== */
.feature-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .feature-columns { grid-template-columns: 1fr; }
}
.column-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
}
.column-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.column-card::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  border-radius: 50%;
}
.column-card .col-icon { font-size: 36px; line-height: 1; }
.column-card h3 { font-size: 21px; font-weight: 700; }
.column-card p { font-size: 13.5px; opacity: .92; flex: 1; line-height: 1.8; }
.column-card .col-btn {
  width: fit-content;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  z-index: 2;
}
.column-card .col-btn:hover { background: #fff; color: var(--primary); }
.column-card.accident { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.column-card.hazard { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.column-card.responsibility { background: linear-gradient(135deg, #0b3d91, #0f9b6c); }
.column-card .col-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,.25);
  font-size: 11px;
  padding: 2px 12px;
  border-radius: 999px;
  letter-spacing: 2px;
}

/* ===== 专栏工具页（表单） ===== */
.tool-page { padding: 40px 0 60px; }
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.form-card h1 { font-size: 24px; margin-bottom: 6px; color: var(--primary-dark); }
.form-card .lead { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
  color: var(--text);
  transition: border .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(11,61,145,.08);
}
.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.form-group .hint { font-size: 12px; color: var(--text-light); }

/* 有效期时间框（按自然年度自动生成：1 月 1 日 — 12 月 31 日，只读展示） */
.valid-box { display: flex; align-items: center; gap: 8px; }
.valid-box input[type="date"] { flex: 1 1 0; min-width: 0; background: var(--bg); color: var(--text-muted); cursor: default; }
.valid-box input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
.valid-box .valid-sep { flex: 0 0 auto; font-size: 13px; color: var(--text-muted); }
.form-section-title {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin-top: 10px;
}
.photo-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
}
.photo-zone:hover { border-color: var(--primary-light); background: #eef4fd; }
.photo-zone .pz-icon { font-size: 32px; margin-bottom: 6px; }
.photo-zone p { font-size: 13px; color: var(--text-muted); }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-preview .ph { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.photo-preview .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview .ph .del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none;
  cursor: pointer; font-size: 12px; line-height: 1;
}
.form-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: #fff; border: none;
  padding: 12px 32px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s;
  font-family: inherit;
}
.btn-primary:hover { background: var(--primary-light); }
.btn-accent {
  background: var(--accent); color: #fff; border: none;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s;
  font-family: inherit;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline {
  background: #fff; color: var(--text); border: 1px solid var(--border);
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; cursor: pointer; font-family: inherit; transition: all .2s;
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary); }
/* 危险操作（超级管理员删除存档）：红框红字，悬停实心 */
.btn-danger {
  background: #fff; color: #dc2626; border: 1px solid #fca5a5;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; cursor: pointer; font-family: inherit; transition: all .2s;
}
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
/* 表格内的小号操作按钮：避免「查看 / 导出 Word / ✎ 修改 / 🗑 删除」把行撑高 */
.admin-table td .btn-outline,
.admin-table td .btn-danger {
  padding: 6px 12px; font-size: 13px; line-height: 1.2;
}

/* ===== 报告文档 ===== */
.report-wrap { display: none; }
.report-wrap.show { display: block; }
.report-toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.report-toolbar .rt-title { font-size: 15px; font-weight: 700; color: var(--accent-dark); margin-right: auto; }

/* ================================================================
   报告版式 —— 依据《浙江悦达电子科技股份有限公司》文件模版（竖版 A4）
   坐标单位 pt，1:1 对应模版 PDF 实测值；屏幕预览 / 打印 / 导出 Word 一致
   ================================================================ */
.sheet-stage { position: absolute; left: -12000px; top: 0; width: 595.3pt; visibility: hidden; }

.sheet {
  position: relative;
  width: 595.3pt;
  height: 841.9pt;
  margin: 0 auto 22px;
  background: #fff;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 16px rgba(15, 23, 42, .13);
}
.sheet-head, .sheet-foot { position: absolute; left: 0; top: 0; width: 595.3pt; height: 0; }

/* 抬头：LOGO */
.sheet-logo { position: absolute; left: 74.28pt; top: 48pt; width: 90pt; height: 31.2pt; }
/* 抬头：公司名 / 英文名 */
.sheet-co {
  position: absolute; left: 174pt; right: 70.45pt; top: 45.9pt;
  text-align: center; color: #000;
  font-family: "SimHei", "黑体", "Microsoft YaHei", sans-serif;
  font-size: 21.95pt; line-height: 1.15;
}
.sheet-en {
  position: absolute; left: 174pt; right: 70.45pt; top: 69.9pt;
  text-align: center; color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700; font-size: 10.45pt; line-height: 1;
}
/* 抬头上下双线 */
.sheet-rule { position: absolute; left: 70.85pt; width: 454pt; display: block; background: #000; }
.sheet-rule-t1 { top: 83.2pt; height: 2.88pt; }
.sheet-rule-t2 { top: 86.8pt; height: 0.72pt; }
.sheet-rule-b1 { top: 786.6pt; height: 0.72pt; }
.sheet-rule-b2 { top: 788.04pt; height: 2.88pt; }
/* 页脚：地址 / 邮编 / 电话 */
.sheet-ad {
  position: absolute; top: 791.6pt; white-space: nowrap; color: #000;
  font-family: "SimHei", "黑体", "Microsoft YaHei", sans-serif;
  font-size: 9pt; line-height: 1;
}
.sheet-ad1 { left: 76.2pt; }
.sheet-ad2 { left: 347pt; }
.sheet-ad3 { left: 437.8pt; }
/* 正文区（模版：左右各 2.5cm，正文自顶部 3.11cm 起，至 27.77cm 止）*/
.sheet-body {
  position: absolute; left: 70.85pt; top: 88pt; width: 454pt; height: 697pt;
  overflow: hidden; color: #000;
  font-family: "SimSun", "宋体", serif;
  font-size: 12pt; line-height: 1.6;
}
.sheet-flow { display: flow-root; }

.report-doc {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: "SimSun", "宋体", serif;
  color: #000;
}
.report-wrap .resp-sep { display: none; }

/* ===== 报告正文排版 ===== */
.report-doc h1 {
  text-align: center; letter-spacing: 2pt; margin: 0 0 4pt; line-height: 1.35;
  font-family: "SimHei", "黑体", "Microsoft YaHei", sans-serif; font-size: 22pt;
}
.report-doc .doc-no { text-align: right; font-size: 10.5pt; color: #000; margin: 0 0 4pt; }
.report-doc hr.doc-line { border: none; border-top: 0.75pt solid #000; height: 0; margin: 6pt 0 10pt; }
.report-doc h2 {
  font-family: "SimHei", "黑体", "Microsoft YaHei", sans-serif;
  font-size: 14pt; margin: 14pt 0 6pt;
  break-after: avoid; page-break-after: avoid;
}
.report-doc p { text-indent: 2em; font-size: 12pt; line-height: 1.65; margin: 0 0 6pt; }
.report-doc p.note-basis {
  text-indent: 0;
  font-size: 10.5pt;
  color: #000;
  line-height: 1.65;
  margin: 4px 0 10px;
  word-break: break-word;
}
.report-doc p.no-indent { text-indent: 0; }
.report-doc p.doc-blank { text-indent: 0; margin: 0; line-height: 1.65; }
.report-doc p.indent-2 { text-indent: 2em; }
.report-doc ul, .report-doc ol { margin: 4pt 0 8pt; padding-left: 2em; }
.report-doc li { font-size: 12pt; line-height: 1.65; margin: 2pt 0; }
.report-doc p.li-item{margin:2pt 0 2pt 38.4pt;text-indent:-14.4pt;}
/* dep71：分条列举前的「●」按熊工要求缩小 50%（正文 12pt → 点 6pt） */
.report-doc p.li-item .li-dot{font-size:6pt;vertical-align:2.25pt;}

.report-table { width: 100%; border-collapse: collapse; margin: 6pt 0 8pt; font-size: 10.5pt; font-family: "SimSun", "宋体", serif; table-layout: fixed; }
.report-table th, .report-table td { border: 0.75pt solid #000; padding: 4pt 6pt; text-align: center; vertical-align: middle; word-break: break-word; word-wrap: break-word; }
.report-table th { background: #f2f2f2; font-weight: 700; text-align: center; }
.report-table td.label { background: #f2f2f2; font-weight: 700; white-space: normal; }

.report-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8pt; margin: 6pt 0; }
.report-photos figure { border: 0.75pt solid #444; padding: 4pt; margin: 0; }
.report-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.report-photos figcaption { font-size: 9pt; color: #000; text-align: center; margin-top: 3pt; }

.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10pt; margin-top: 18pt; }
.sign-grid .sg { border: 0.75pt solid #000; padding: 6pt 6pt; min-height: 84pt; font-size: 10.5pt; line-height: 1.7; display: flex; flex-direction: column; }
.sign-grid .sg b { display: block; margin-bottom: 6pt; white-space: nowrap; }
.sign-grid .sg-fill { flex: 0 0 auto; min-height: 22pt; word-break: break-all; }
.sign-grid .sg-date { margin-top: auto; padding-top: 4pt; white-space: nowrap; display: block; }

.report-doc .tip-box {
  background: #fffbe8; border: 0.75pt solid #d9b64a;
  padding: 6pt 8pt; margin: 8pt 0; font-size: 10.5pt; line-height: 1.6;
}
.report-doc .danger-box {
  background: #fef2f2; border: 0.75pt solid #d94a4a;
  padding: 6pt 8pt; margin: 8pt 0; font-size: 10.5pt; line-height: 1.6; color: #7f1d1d;
}
.report-doc .tip-box p, .report-doc .danger-box p { text-indent: 0; font-size: 10.5pt; margin: 0; }

/* ===== 右侧 AI 助手 ===== */
#ai-launcher {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  writing-mode: vertical-rl;
  letter-spacing: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 20px 11px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -4px 4px 16px rgba(11,61,145,.28);
  transition: all .25s;
  font-family: inherit;
}
#ai-launcher:hover { padding-right: 16px; background: linear-gradient(180deg, var(--primary-dark), var(--primary)); }
#ai-launcher .ai-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-bottom: 8px;
  animation: aiPulse 2s infinite;
}
@keyframes aiPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

#ai-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 356px;
  max-width: calc(100vw - 60px);
  height: min(640px, 84vh);
  background: #fff;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -10px 0 40px rgba(11,61,145,.2);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-right: none;
}
#ai-panel.open { display: flex; animation: aiSlideIn .3s ease; }
@keyframes aiSlideIn {
  from { transform: translate(40px, -50%); opacity: 0; }
  to { transform: translate(0, -50%); opacity: 1; }
}
.ai-head {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ai-head .ai-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.ai-head .ai-t { flex: 1; min-width: 0; }
.ai-head .ai-t b { display: block; font-size: 15px; }
.ai-head .ai-t small { font-size: 11px; opacity: .8; }
.ai-head .ai-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; opacity: .75; line-height: 1; }
.ai-head .ai-close:hover { opacity: 1; }
.ai-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.ai-msg { max-width: 90%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.7; }
.ai-msg.bot { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.ai-msg.user { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-msg b { color: var(--primary); }
.ai-msg.user b { color: #fff; }
.ai-msg .ai-link {
  display: inline-block;
  margin-top: 8px;
  background: rgba(11,61,145,.08);
  color: var(--primary);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
}
.ai-msg .ai-link:hover { background: rgba(11,61,145,.16); }
.ai-msg ul { padding-left: 18px; margin: 6px 0; }
.ai-msg li { margin: 3px 0; }
.ai-quick { display: flex; gap: 8px; padding: 10px 14px 4px; flex-wrap: wrap; background: var(--bg); flex-shrink: 0; }
.ai-quick button {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.ai-quick button:hover { border-color: var(--primary-light); color: var(--primary); }
.ai-input { display: flex; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--border); flex-shrink: 0; }
.ai-input input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; min-width: 0; }
.ai-input input:focus { outline: none; border-color: var(--primary-light); }
.ai-input button {
  background: var(--primary);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: background .2s;
}
.ai-input button:hover { background: var(--primary-light); }
.ai-foot { background: #fff; text-align: center; padding: 8px; font-size: 11px; color: var(--text-light); border-top: 1px solid var(--border); flex-shrink: 0; }
.ai-foot a { color: var(--primary-light); font-weight: 600; }

/* ===== 打印（报告导出）：打印即 A4 逐页模版，可直接打印或另存为 PDF ===== */
.print-gate { display: none; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  /* dep72：浏览器「打印 / 另存为 PDF」默认**不输出背景图形**，会让报告表头灰底(#f2f2f2)、
     标题下的黑色分隔线(.sheet-rule{background:#000})、签名卡渐变底整片消失，
     导出的 PDF 就跟预览版不一致。这里强制精确输出背景色（页数与版式不受影响）。 */
  #report-area, #report-area * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }


  /* 只输出报告区：把不含报告区的页面结构整体移出文档流，
     避免“顶栏 / 表单 / 页脚”等隐形元素继续占位而在报告后打印出空白页。
     站点结构：body > .tool-page|main.container > .container > #report-wrap > #report-area */
  body > * { display: none !important; }
  body > .tool-page, body > .container { display: block !important; }
  /* 关键：tool-page 自带的 padding(40px 0 60px) 若不清零，会把 sheet 顶下移一截，
     导致每张 sheet 底部溢出、打印时多出一张“空白页” */
  .tool-page {
    display: block !important;
    margin: 0 !important; padding: 0 !important;
    width: auto !important; max-width: none !important;
    overflow: visible !important;
  }
  .tool-page > * { display: none !important; }
  .tool-page > .container { display: block !important; }
  .container {
    display: block !important;
    margin: 0 !important; padding: 0 !important;
    width: auto !important; max-width: none !important;
  }
  .container > * { display: none !important; }
  .container > #report-wrap { display: block !important; }
  #report-wrap {
    display: block !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    background: none !important; box-shadow: none !important;
    border-radius: 0 !important; min-height: 0 !important;
  }
  #report-wrap > * { display: none !important; }
  #report-wrap > #report-area { display: block !important; }
  #report-area {
    display: block !important; position: static !important;
    margin: 0 !important; padding: 0 !important;
    /* 打印视口宽约 793px，会命中 (max-width:900px) 的 overflow-x:auto，
       使 #report-area 变成滚动容器，分页时尾部多出一条 ~15px 空带 → 多一张空白页。
       打印时必须强制恢复 overflow:visible。 */
    overflow: visible !important;
  }

  /* 兼容极老浏览器：退化为“只显示报告区” */
  body * { visibility: hidden !important; }
  #report-area, #report-area * { visibility: visible !important; }

  .report-doc { border: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
  .sheet {
    margin: 0 !important; border: none !important; box-shadow: none !important;
    height: 841.4pt !important;   /* 比 A4（841.89pt）略小，杜绝亚像素溢出产生的空白页 */
    break-after: page; page-break-after: always;
  }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .resp-sep { display: none !important; }
  #ai-launcher, #ai-panel { display: none !important; }
  #ehs-toast, #dl-gate, .auth-modal { display: none !important; }
  /* 未开通下载权限时，打印结果只显示提示，不输出报告正文 */
  body:not(.dl-ok) #report-area .report-doc,
  body:not(.dl-ok) #report-area .report-doc * { visibility: hidden !important; }
  body:not(.dl-ok) #report-area .print-gate,
  body:not(.dl-ok) .print-gate {
    display: block !important;
    visibility: visible !important;
    position: absolute; left: 0; top: 45mm; width: 100%;
    text-align: center; font-size: 14pt; color: #334155;
    font-family: "黑体", SimHei, sans-serif;
  }
}

@media (max-width: 900px) {
  #report-area { overflow-x: auto; }
  .sheet { margin-left: 0; margin-right: 0; }
}

/* ===== 响应式补充 ===== */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .report-doc { padding: 0; }
  .sign-grid { grid-template-columns: 1fr; }
  #ai-panel { width: calc(100vw - 46px); height: 78vh; }
}

/* ================================================================
   权限分级：浏览 / 查看（普通用户） ｜ 下载附件（下载会员）
   ================================================================ */

/* 右上角身份徽章 */
.auth-box .role-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.7;
  background: #eef2f7;
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.auth-box .role-badge.vip {
  background: linear-gradient(135deg, #fff7e6, #ffeec2);
  color: #a15c00;
  border-color: #f3d08a;
  font-weight: 600;
}
.auth-box .role-badge.admin {
  background: linear-gradient(135deg, #e8f0ff, #d6e4ff);
  color: #0b3d91;
  border-color: #9db8ea;
  font-weight: 700;
}
.auth-box .role-badge.premium {
  background: linear-gradient(135deg, #e9f7ef, #c9ecd9);
  color: #0a6b46;
  border-color: #8fd3b6;
  font-weight: 700;
}

/* 报告调阅：管理员全量视图提示条 */
.admin-scope-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef4ff, #e3ecff);
  border: 1px solid #b9cdf2;
  color: #0b3d91;
  font-size: 13.5px;
  line-height: 1.6;
}
.admin-scope-tip b { color: #082c6b; }

/* 下载按钮（资料列表 / 附件列表通用） */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(15,155,108,.07);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}
.dl-btn:hover { background: var(--accent); color: #fff; }
.dl-btn.locked {
  border-color: var(--border);
  background: #f8fafc;
  color: var(--text-muted);
}
.dl-btn.locked:hover { background: #eef2f7; color: var(--warning); border-color: #f3d08a; }
.dl-btn .dl-ico { font-size: 12px; }

/* 资料列表行的操作区 */
.list-row .row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.list-row .row-actions .hint { font-size: 12px; color: var(--text-light); }

/* 文章页附件下载列表 */
.down-list { list-style: none; padding: 0; margin: 12px 0 0; }
.down-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.down-list li .fname { font-size: 14px; color: var(--text); }
.down-list li .fmeta { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.down-list li .fmain { flex: 1; min-width: 200px; }

/* 权限说明弹窗 */
.auth-modal .box .gate-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  text-indent: 0;
  margin-bottom: 14px;
}
.gate-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.gate-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.gate-list > div:last-child { border-bottom: none; }
.gate-list > div.vip { background: #fffbf0; }
.gate-list b { color: var(--text); font-weight: 600; }
.gate-list span { color: var(--text-muted); font-size: 12.5px; text-align: right; }
.gate-list > div.vip b { color: #a15c00; }
.gate-list > div.premium { background: #f0fbf5; }
.gate-list > div.premium b { color: #0a6b46; }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gate-actions .btn-primary,
.gate-actions .btn-outline { padding: 11px 18px; font-size: 14px; flex: 1; min-width: 130px; }

/* 轻提示 */
#ehs-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 3000;
  max-width: 88vw;
  text-align: center;
}
#ehs-toast.show { opacity: 1; transform: translate(-50%, 0); }
#ehs-toast.err { background: rgba(185, 28, 28, .94); }

/* ================================================================
   管理后台（admin.html）
   ================================================================ */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 20px 80px; }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 22px;
}
.admin-card h2 { font-size: 18px; color: var(--primary); margin-bottom: 6px; }
.admin-card .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.admin-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-stat {
  flex: 1; min-width: 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #f8fafc;
}
.admin-stat .n { font-size: 24px; font-weight: 700; color: var(--primary); }
.admin-stat .l { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-toolbar input[type="text"] {
  flex: 1; min-width: 200px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
}
.admin-pwd {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; margin-bottom: 12px; font-family: inherit;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td {
  padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th { background: #f1f5f9; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.admin-table tr:hover td { background: #f8fafc; }
.admin-table .tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; border: 1px solid var(--border); background: #eef2f7; color: var(--text-muted);
}
.admin-table .tag.vip {
  background: linear-gradient(135deg, #fff7e6, #ffeec2);
  color: #a15c00; border-color: #f3d08a; font-weight: 600;
}
.admin-table .tag.premium {
  background: linear-gradient(135deg, #e9f7ef, #c9ecd9);
  color: #0a6b46; border-color: #8fd3b6; font-weight: 700;
}
.admin-act { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-act button {
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-family: inherit; transition: all .2s;
}
.admin-act button.grant { border-color: var(--accent); color: var(--accent-dark); background: rgba(15,155,108,.07); font-weight: 600; }
.admin-act button.grant:hover { background: var(--accent); color: #fff; }
.admin-act button.revoke:hover { border-color: var(--danger); color: var(--danger); }
.admin-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.admin-msg.error { color: var(--danger); }
.admin-msg.ok { color: var(--accent-dark); }
@media (max-width: 640px) {
  .admin-card { padding: 20px 16px; }
  .admin-table { font-size: 12.5px; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
}

/* ========== 全员安全生产责任制页面 ========== */
.page-hero {
  background: linear-gradient(135deg, #0b3d91 0%, #1e5fb8 100%);
  color: #fff;
  padding: 44px 0 40px;
}
.page-hero h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: 1px; }
.page-hero .lead { font-size: 15px; line-height: 1.85; max-width: 920px; opacity: .95; margin: 0; }
.page-hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.page-hero-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
}

.resp-main { padding: 28px 0 60px; display: flex; flex-direction: column; gap: 24px; }

.gate-banner {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe9b3 100%);
  border: 1px solid #f59e0b;
  border-left: 5px solid #f59e0b;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: #7c2d12;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.gate-banner b { color: #b45309; }
.gate-banner .gate-login {
  margin-left: auto;
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.gate-banner .gate-login:hover { background: var(--primary-light); }

.sign-card { border: 2px dashed var(--accent); background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%); }
.sign-card h2 { color: var(--accent-dark); margin-top: 0; }

.form-msg { font-size: 13.5px; padding: 4px 0; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--accent-dark); font-weight: 600; }

.resp-sep {
  margin: 32px 0 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 4px;
}
.resp-sep::before, .resp-sep::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--border);
  vertical-align: middle;
  margin: 0 14px;
}

.ck-table th, .ck-table td { font-size: 13.5px; }
.ck-cell {
  height: 36px;
  background: #fafbfc;
  width: 15%;
}
.ck-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.ck-tag.ok { background: #dcfce7; color: #166534; }
.ck-tag.soon { background: #fef3c7; color: #92400e; }
.ck-tag.expired { background: #fee2e2; color: #991b1b; }

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 24px; }
  .resp-main { padding: 18px 0 40px; }
}

/* ===== 组合框：下拉滑动选择 + 手动填写（岗位 / 上级组织负责人） ===== */
.combo-wrap { position: relative; }
.combo-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--text-light, #64748b);
  font-size: 15px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
}
.combo-btn:hover { color: var(--primary, #0b3d91); background: rgba(11, 61, 145, .06); }
.combo-panel {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  background: #fff;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, .16);
  padding: 8px;
}
.combo-panel.open { display: block; }
.combo-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 6px;
  outline: none;
}
.combo-search:focus { border-color: var(--primary, #0b3d91); }
.combo-list { max-height: 280px; overflow-y: auto; }
.combo-opt {
  padding: 7px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combo-opt:hover { background: #eef4ff; color: var(--primary, #0b3d91); }
.combo-empty { padding: 14px 10px; color: var(--text-light, #94a3b8); font-size: 13px; text-align: center; }
.combo-tip { padding: 6px 4px 2px; color: var(--text-light, #94a3b8); font-size: 12px; text-align: center; }

@media print {
  .combo-btn, .combo-panel { display: none !important; }
}

.beian a { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.beian img,
img.beian-mps {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 4px;
  flex: none;
  border: 0;
}

/* deploy28 20260913: 隐藏岗位/上级组织下拉箭头按钮
   （填写、模板自动匹配、存档功能不变；combo-panel 逻辑保留） */
.combo-wrap .combo-btn { display: none !important; }
