/* ============================================================
   occupational-health-exam-cycle.css
   职业健康检查周期查询 · 体检表日历风
   主色：防护绿 #16A34A + 警示橙 #F97316 + 深蓝 #1E3A8A
   （深主题覆盖在文末 :root[data-theme="dark"]）
   ============================================================ */

.ohec {
  --ohec-green: #16a34a;
  --ohec-green-deep: #15803d;
  --ohec-green-soft: #dcfce7;
  --ohec-green-line: #bbf7d0;
  --ohec-orange: #f97316;
  --ohec-orange-deep: #ea580c;
  --ohec-orange-soft: #ffedd5;
  --ohec-orange-line: #fed7aa;
  --ohec-blue: #1e3a8a;
  --ohec-blue-soft: #dbeafe;
  --ohec-blue-line: #bfdbfe;
  --ohec-red: #dc2626;
  --ohec-red-soft: #fee2e2;
  --ohec-amber: #d97706;
  --ohec-amber-soft: #fef3c7;
  --ohec-ink: #1f2937;
  --ohec-ink-soft: #6b7280;
  --ohec-line: #e5e7eb;
  --ohec-bg: #f0fdf4;
  --ohec-card: #ffffff;
  --ohec-shadow: 0 2px 10px rgba(22, 163, 74, 0.08), 0 1px 3px rgba(30, 58, 138, 0.06);
  --ohec-shadow-lg: 0 16px 38px rgba(22, 163, 74, 0.1), 0 4px 12px rgba(30, 58, 138, 0.08);
  --ohec-radius: 14px;
  --ohec-radius-sm: 10px;
}

.ohec {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  color: var(--ohec-ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--ohec-bg);
  font-size: 14.5px;
  line-height: 1.75;
}

.ohec-wrap { position: relative; z-index: 1; }

/* ========== Hero：体检表日历风 ========== */
.ohec-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 44px 46px 36px;
  margin-bottom: 26px;
  background:
    radial-gradient(120% 140% at 30% 0%, var(--ohec-green-soft) 0%, transparent 55%),
    radial-gradient(100% 130% at 70% 100%, var(--ohec-blue-soft) 0%, transparent 58%),
    linear-gradient(180deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1px solid var(--ohec-green-line);
  text-align: center;
}
.ohec-hero::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--ohec-green) 0%, var(--ohec-blue) 50%, var(--ohec-orange) 100%);
  opacity: .9;
}

.ohec-strip {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 22px;
}
.ohec-strip-mark {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ohec-ink-soft);
  background: #fff;
  border: 1px solid var(--ohec-green-line);
  border-radius: 999px;
  letter-spacing: .3px;
  white-space: nowrap;
}
.ohec-strip-req { background: var(--ohec-orange-soft); color: var(--ohec-orange-deep); border-color: var(--ohec-orange); }
.ohec-strip-blue { background: var(--ohec-blue-soft); color: var(--ohec-blue); border-color: var(--ohec-blue-line); }

.ohec-badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--ohec-green);
  color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .5px;
}

.ohec-hero h1 {
  font-size: 34px; font-weight: 800;
  margin: 0 0 12px;
  color: var(--ohec-ink);
  letter-spacing: .5px;
}
.ohec-hero h1 i {
  font-style: normal;
  color: var(--ohec-green);
  background: linear-gradient(120deg, var(--ohec-green), var(--ohec-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ohec-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--ohec-ink-soft);
  font-size: 15px;
}
.ohec-hero p em {
  font-style: normal;
  color: var(--ohec-blue);
  font-weight: 600;
}

/* ========== 卡片通用 ========== */
.ohec-card {
  background: var(--ohec-card);
  border: 1px solid var(--ohec-line);
  border-radius: var(--ohec-radius);
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: var(--ohec-shadow);
}
.ohec-card h2 {
  font-size: 18px; font-weight: 700;
  color: var(--ohec-ink);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ohec-green-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.ohec-card h2 span {
  font-size: 12px; font-weight: 500;
  color: var(--ohec-ink-soft);
  padding: 3px 10px;
  background: var(--ohec-green-soft);
  border-radius: 999px;
}

/* ========== 输入区 ========== */
.ohec-field { margin-bottom: 20px; }
.ohec-lab {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--ohec-ink);
  margin-bottom: 10px;
}
.ohec-hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--ohec-ink-soft);
  margin-left: 6px;
}

.ohec-input-row {
  display: flex; align-items: center; gap: 8px;
}
.ohec-input {
  width: 140px;
  padding: 10px 14px;
  border: 2px solid var(--ohec-line);
  border-radius: var(--ohec-radius-sm);
  font-size: 15px;
  color: var(--ohec-ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.ohec-input:focus {
  outline: none;
  border-color: var(--ohec-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.ohec-unit {
  font-size: 14px;
  color: var(--ohec-ink-soft);
  font-weight: 500;
}

/* ========== 危害因素多选宫格 ========== */
.ohec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.ohec-cell {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--ohec-line);
  border-radius: var(--ohec-radius-sm);
  background: #fff;
  color: var(--ohec-ink-soft);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  font-family: inherit;
}
.ohec-cell-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.ohec-cell:hover { border-color: var(--ohec-green-line); }
.ohec-cell.on {
  border-color: var(--ohec-green);
  background: var(--ohec-green-soft);
  color: var(--ohec-green-deep);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}
.ohec-cell.on .ohec-cell-check::after { content: "✓"; }
.ohec-cell-check {
  width: 20px; height: 20px;
  border: 2px solid var(--ohec-green);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #fff;
  background: #fff;
  transition: all .15s;
}
.ohec-cell.on .ohec-cell-check { background: var(--ohec-green); }

/* ========== 分段按钮 ========== */
.ohec-seg {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ohec-seg-btn {
  position: relative;
}
.ohec-seg-btn input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.ohec-seg-btn label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border: 2px solid var(--ohec-line);
  border-radius: var(--ohec-radius-sm);
  font-size: 14px; font-weight: 500;
  color: var(--ohec-ink-soft);
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.ohec-seg-btn input[type="radio"]:checked + label {
  border-color: var(--ohec-green);
  background: var(--ohec-green-soft);
  color: var(--ohec-green-deep);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}
.ohec-seg-btn label:hover { border-color: var(--ohec-green-line); }

/* ========== 按钮行 ========== */
.ohec-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--ohec-line);
}
.ohec-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--ohec-radius-sm);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.ohec-btn-go {
  background: linear-gradient(135deg, var(--ohec-green), var(--ohec-green-deep));
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.ohec-btn-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}
.ohec-btn-ghost {
  background: #fff;
  color: var(--ohec-ink-soft);
  border: 2px solid var(--ohec-line);
}
.ohec-btn-ghost:hover {
  border-color: var(--ohec-green);
  color: var(--ohec-green-deep);
  background: var(--ohec-green-soft);
}

/* ========== 输出区占位 ========== */
.ohec-summary {
  border: 2px dashed var(--ohec-green-line);
  border-radius: var(--ohec-radius);
  padding: 28px;
  background: var(--ohec-green-soft);
  text-align: center;
}
.ohec-summary-ph {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ohec-ph-icon {
  font-size: 44px;
}
.ohec-summary-ph p {
  margin: 0;
  color: var(--ohec-ink-soft);
  max-width: 680px;
  line-height: 1.8;
}
.ohec-summary-ph b {
  color: var(--ohec-green-deep);
}

/* ========== 输出区通用 ========== */
.ohec-result { }
.ohec-section {
  margin-bottom: 28px;
}
.ohec-section h3 {
  font-size: 15.5px; font-weight: 700;
  color: var(--ohec-ink);
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--ohec-green);
  display: flex; align-items: center; gap: 8px;
}
.ohec-section h3 span {
  font-size: 12px; font-weight: 400;
  color: var(--ohec-ink-soft);
}

/* ========== 周期表 ========== */
.ohec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ohec-table th {
  background: var(--ohec-green);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
}
.ohec-table th:first-child { border-top-left-radius: var(--ohec-radius-sm); }
.ohec-table th:last-child { border-top-right-radius: var(--ohec-radius-sm); }
.ohec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ohec-line);
  color: var(--ohec-ink);
}
.ohec-table tbody tr:hover { background: var(--ohec-green-soft); }
.ohec-table td:first-child { font-weight: 600; color: var(--ohec-blue); }
.ohec-cycle-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.ohec-cycle-year { background: var(--ohec-green-soft); color: var(--ohec-green-deep); }
.ohec-cycle-half { background: var(--ohec-orange-soft); color: var(--ohec-orange-deep); }
.ohec-cycle-quar { background: var(--ohec-amber-soft); color: var(--ohec-amber); }

/* ========== 下次体检倒计时 ========== */
.ohec-countdown {
  border-radius: var(--ohec-radius);
  padding: 28px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--ohec-green-soft) 0%, var(--ohec-blue-soft) 100%);
  border: 2px solid var(--ohec-green-line);
}
.ohec-countdown-icon {
  font-size: 44px;
  margin-bottom: 8px;
}
.ohec-countdown-date {
  font-size: 28px; font-weight: 800;
  color: var(--ohec-green-deep);
  margin-bottom: 4px;
}
.ohec-countdown-date.soon { color: var(--ohec-orange-deep); }
.ohec-countdown-date.urgent { color: var(--ohec-red); }
.ohec-countdown-days {
  font-size: 14px;
  color: var(--ohec-ink-soft);
  margin-bottom: 12px;
}
.ohec-countdown-days b {
  font-size: 20px; font-weight: 800;
  color: var(--ohec-blue);
}
.ohec-countdown-hint {
  font-size: 12px;
  color: var(--ohec-ink-soft);
  line-height: 1.7;
}

/* ========== 单位义务提示 ========== */
.ohec-duty {
  padding: 18px 22px;
  border-radius: var(--ohec-radius-sm);
  background: var(--ohec-blue-soft);
  border-left: 4px solid var(--ohec-blue);
}
.ohec-duty-title {
  font-size: 14px; font-weight: 700;
  color: var(--ohec-blue);
  margin-bottom: 10px;
}
.ohec-duty-list {
  list-style: none;
  padding: 0; margin: 0;
}
.ohec-duty-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 13.5px;
  color: var(--ohec-ink);
  line-height: 1.6;
}
.ohec-duty-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--ohec-blue);
  font-weight: 700;
}

/* ========== 法律责任 ========== */
.ohec-liability {
  padding: 18px 22px;
  border-radius: var(--ohec-radius-sm);
  background: var(--ohec-orange-soft);
  border-left: 4px solid var(--ohec-orange);
}
.ohec-liability-title {
  font-size: 14px; font-weight: 700;
  color: var(--ohec-orange-deep);
  margin-bottom: 10px;
}
.ohec-liability-list {
  list-style: none;
  padding: 0; margin: 0;
}
.ohec-liability-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 13.5px;
  color: var(--ohec-ink);
  line-height: 1.6;
}
.ohec-liability-list li::before {
  content: "⚠";
  position: absolute;
  left: 2px;
  color: var(--ohec-orange);
  font-size: 13px;
}

/* ========== 免责声明 ========== */
.ohec-disclaimer {
  background: #fff;
  border: 1px solid var(--ohec-green-line);
  border-radius: var(--ohec-radius);
  padding: 18px 22px;
  margin-top: 10px;
}
.ohec-disclaimer p {
  margin: 0;
  font-size: 13px;
  color: var(--ohec-ink-soft);
  line-height: 1.8;
}
.ohec-disclaimer b {
  color: var(--ohec-green-deep);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .ohec-hero { padding: 32px 22px 28px; }
  .ohec-hero h1 { font-size: 26px; }
  .ohec-card { padding: 22px 18px; }
  .ohec-grid { grid-template-columns: repeat(2, 1fr); }
  .ohec-row { flex-direction: column; }
  .ohec-row .ohec-btn { width: 100%; justify-content: center; }
  .ohec-table { font-size: 13px; }
  .ohec-table th, .ohec-table td { padding: 10px 10px; }
}

/* ========== 深色主题覆盖 ========== */
:root[data-theme="dark"] .ohec {
  --ohec-green-soft: rgba(22, 163, 74, 0.15);
  --ohec-green-line: rgba(22, 163, 74, 0.35);
  --ohec-orange-soft: rgba(249, 115, 22, 0.15);
  --ohec-orange-line: rgba(249, 115, 22, 0.35);
  --ohec-blue-soft: rgba(30, 58, 138, 0.2);
  --ohec-blue-line: rgba(59, 130, 246, 0.4);
  --ohec-red-soft: rgba(220, 38, 38, 0.18);
  --ohec-amber-soft: rgba(217, 119, 6, 0.15);
  --ohec-ink: #f1f5f9;
  --ohec-ink-soft: #94a3b8;
  --ohec-line: rgba(148, 163, 184, 0.25);
  --ohec-bg: #0f172a;
  --ohec-card: #1e293b;
  --ohec-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --ohec-shadow-lg: 0 16px 38px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .ohec-hero {
  background:
    radial-gradient(120% 140% at 30% 0%, rgba(22, 163, 74, 0.12) 0%, transparent 55%),
    radial-gradient(100% 130% at 70% 100%, rgba(30, 58, 138, 0.15) 0%, transparent 58%),
    linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(22, 163, 74, 0.3);
}

:root[data-theme="dark"] .ohec-strip-mark {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.25);
}
:root[data-theme="dark"] .ohec-strip-req {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.5);
}
:root[data-theme="dark"] .ohec-strip-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
}

:root[data-theme="dark"] .ohec-input {
  background: rgba(15, 23, 42, 0.6);
  color: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.3);
}
:root[data-theme="dark"] .ohec-input:focus {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--ohec-green);
}

:root[data-theme="dark"] .ohec-cell {
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}
:root[data-theme="dark"] .ohec-cell.on {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border-color: var(--ohec-green);
}
:root[data-theme="dark"] .ohec-cell-check {
  background: rgba(15, 23, 42, 0.6);
}
:root[data-theme="dark"] .ohec-cell.on .ohec-cell-check { background: var(--ohec-green); }

:root[data-theme="dark"] .ohec-seg-btn label {
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}
:root[data-theme="dark"] .ohec-seg-btn input[type="radio"]:checked + label {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border-color: var(--ohec-green);
}

:root[data-theme="dark"] .ohec-summary {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.3);
}

:root[data-theme="dark"] .ohec-table th {
  background: rgba(22, 163, 74, 0.3);
  color: #dcfce7;
}
:root[data-theme="dark"] .ohec-table tbody tr:hover { background: rgba(22, 163, 74, 0.12); }
:root[data-theme="dark"] .ohec-table td { border-bottom-color: rgba(148, 163, 184, 0.2); }
:root[data-theme="dark"] .ohec-table td:first-child { color: #93c5fd; }

:root[data-theme="dark"] .ohec-countdown {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.15) 0%, rgba(30, 58, 138, 0.25) 100%);
  border-color: rgba(22, 163, 74, 0.35);
}

:root[data-theme="dark"] .ohec-duty {
  background: rgba(30, 58, 138, 0.2);
}
:root[data-theme="dark"] .ohec-liability {
  background: rgba(249, 115, 22, 0.15);
}

:root[data-theme="dark"] .ohec-btn-ghost {
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}
:root[data-theme="dark"] .ohec-btn-ghost:hover {
  border-color: var(--ohec-green);
  color: #4ade80;
  background: rgba(22, 163, 74, 0.12);
}

:root[data-theme="dark"] .ohec-disclaimer {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(22, 163, 74, 0.25);
}

:root[data-theme="dark"] .ohec-row {
  border-top-color: rgba(148, 163, 184, 0.2);
}
