/* ============================================================
   working-hours-system-check.css
   综合工时与不定时工时自查 · 仪表盘风格
   主色工时深蓝 #1E40AF + 合规绿 #059669 + 超时红 #DC2626
   Design tokens（深主题覆盖在文末）
   ============================================================ */

.whsc {
  --whsc-primary: #1e40af;
  --whsc-primary-deep: #172554;
  --whsc-primary-soft: #dbeafe;
  --whsc-green: #059669;
  --whsc-green-soft: #d1fae5;
  --whsc-red: #dc2626;
  --whsc-red-soft: #fee2e2;
  --whsc-yellow: #d97706;
  --whsc-yellow-soft: #fef3c7;
  --whsc-gray: #6b7280;
  --whsc-gray-soft: #f3f4f6;
  --whsc-ink: #1f2937;
  --whsc-ink-soft: #6b7280;
  --whsc-line: #e5e7eb;
  --whsc-bg: #fafbfc;
  --whsc-card: #ffffff;
  --whsc-shadow: 0 2px 12px rgba(30, 64, 175, 0.06), 0 1px 3px rgba(30, 64, 175, 0.04);
  --whsc-shadow-lg: 0 20px 40px rgba(30, 64, 175, 0.10), 0 4px 16px rgba(30, 64, 175, 0.06);
  --whsc-radius: 16px;
  --whsc-radius-sm: 10px;
}

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

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

/* ========== Hero ========== */
.whsc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 48px 48px 40px;
  margin-bottom: 28px;
  background:
    radial-gradient(120% 140% at 15% 0%, var(--whsc-primary-soft) 0%, transparent 55%),
    radial-gradient(100% 130% at 85% 100%, var(--whsc-gray-soft) 0%, transparent 58%),
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border: 1px solid var(--whsc-line);
  text-align: center;
}
.whsc-hero::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--whsc-primary), var(--whsc-gray), var(--whsc-primary));
  opacity: .9;
}
.whsc-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--whsc-primary);
  background: var(--whsc-primary-soft);
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.whsc-hero h1 {
  font-size: 30px; font-weight: 800;
  color: var(--whsc-primary);
  margin: 0 0 12px;
  letter-spacing: .5px;
}
.whsc-hero h1 i {
  font-style: normal;
  background: linear-gradient(90deg, var(--whsc-primary), var(--whsc-gray));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.whsc-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--whsc-ink-soft);
  font-size: 14px;
  line-height: 1.9;
}
.whsc-hero p em {
  font-style: normal;
  font-weight: 700;
  color: var(--whsc-primary);
}
.whsc-hero p em.blue { color: var(--whsc-primary); }
.whsc-hero p em.red { color: var(--whsc-red); }
.whsc-hero p em.green { color: var(--whsc-green); }
.whsc-hero p em.gray { color: var(--whsc-gray); }

/* ========== 卡片通用 ========== */
.whsc-card {
  background: var(--whsc-card);
  border-radius: var(--whsc-radius);
  box-shadow: var(--whsc-shadow);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--whsc-line);
}
.whsc-card h2 {
  font-size: 17px; font-weight: 800;
  color: var(--whsc-primary);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--whsc-line);
  display: flex; align-items: center; gap: 10px;
}
.whsc-card h2 span {
  font-size: 12px; font-weight: 500;
  color: var(--whsc-ink-soft);
  margin-left: auto;
}

/* ========== Tab 切换 ========== */
.whsc-tabs {
  display: flex;
  border: 1.5px solid var(--whsc-line);
  border-radius: var(--whsc-radius-sm);
  overflow: hidden;
  background: #fff;
  margin-bottom: 24px;
}
.whsc-tab {
  flex: 1;
  padding: 12px 20px;
  font-size: 13px; font-weight: 600;
  background: #fff;
  cursor: pointer;
  border: none;
  border-right: 1.5px solid var(--whsc-line);
  color: var(--whsc-ink);
  transition: all .2s;
  font-family: inherit;
}
.whsc-tab:last-child { border-right: none; }
.whsc-tab:hover { background: var(--whsc-primary-soft); }
.whsc-tab-active {
  background: linear-gradient(135deg, var(--whsc-primary), var(--whsc-primary-deep));
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.whsc-tab-panel { margin-top: 8px; }

/* ========== 输入表单 ========== */
.whsc-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 8px;
}
.whsc-row .whsc-field { margin-bottom: 0; flex: 1; min-width: 220px; }
.whsc-field { margin-bottom: 20px; }
.whsc-lab {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--whsc-ink);
  margin-bottom: 8px;
}
.whsc-hint {
  font-size: 12px; font-weight: 400;
  color: var(--whsc-ink-soft);
  margin-left: 6px;
}
.whsc-input {
  width: 100%;
  max-width: 280px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--whsc-line);
  border-radius: var(--whsc-radius-sm);
  background: #fff;
  color: var(--whsc-ink);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  box-sizing: border-box;
}
.whsc-input:focus {
  outline: none;
  border-color: var(--whsc-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}
.whsc-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 280px;
}
.whsc-prefix {
  position: absolute; left: 12px;
  color: var(--whsc-ink-soft);
  font-weight: 600;
  font-size: 14px;
}
.whsc-input-wrap .whsc-input { padding-left: 28px; }
.whsc-suffix {
  margin-left: 6px;
  color: var(--whsc-ink-soft);
  font-size: 13px;
}

/* 分段开关 */
.whsc-seg {
  display: inline-flex; gap: 0;
  border: 1.5px solid var(--whsc-line);
  border-radius: var(--whsc-radius-sm);
  overflow: hidden;
  background: #fff;
}
.whsc-seg-btn {
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  background: #fff;
  cursor: pointer;
  border: none;
  border-right: 1.5px solid var(--whsc-line);
  transition: all .2s;
  color: var(--whsc-ink);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.whsc-seg-btn:last-child { border-right: none; }
.whsc-seg-btn input { accent-color: var(--whsc-primary); margin: 0; }
.whsc-seg-btn:has(input:checked) {
  background: linear-gradient(135deg, var(--whsc-primary), var(--whsc-primary-deep));
  color: #fff;
}

/* ========== 按钮 ========== */
.whsc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px;
  font-size: 14px; font-weight: 700;
  border-radius: var(--whsc-radius-sm);
  border: none;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}
.whsc-btn-go {
  background: linear-gradient(135deg, var(--whsc-primary), var(--whsc-primary-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
}
.whsc-btn-go:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.45);
}
.whsc-btn-ghost {
  background: #fff;
  color: var(--whsc-primary);
  border: 1.5px solid var(--whsc-primary-soft);
}
.whsc-btn-ghost:hover { background: var(--whsc-primary-soft); }

.whsc-row > .whsc-btn:first-of-type { margin-right: auto; }

/* ========== 空态 ========== */
.whsc-summary-ph {
  padding: 40px 20px;
  background: var(--whsc-primary-soft);
  border-radius: var(--whsc-radius-sm);
  border: 1px dashed var(--whsc-primary);
  font-size: 14px;
  color: var(--whsc-ink-soft);
  line-height: 1.8;
  text-align: center;
}

/* ========== 结果区 ========== */
.whsc-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--whsc-line);
}
.whsc-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.whsc-section h3 {
  font-size: 15px; font-weight: 700;
  color: var(--whsc-ink);
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 3px solid var(--whsc-primary);
}

/* 圆环进度卡 */
.whsc-ring-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  border-radius: var(--whsc-radius-sm);
  background: #fff;
  border: 1px solid var(--whsc-line);
  box-shadow: var(--whsc-shadow);
}
.whsc-ring-wrap {
  width: 160px; height: 160px;
  position: relative;
  flex-shrink: 0;
}
.whsc-ring-wrap svg { width: 100%; height: 100%; }
.whsc-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.whsc-ring-num {
  font-size: 24px; font-weight: 800;
  color: var(--whsc-primary);
}
.whsc-ring-label {
  font-size: 11px;
  color: var(--whsc-ink-soft);
}
.whsc-ring-info {
  flex: 1;
  font-size: 14px;
  line-height: 1.9;
}
.whsc-ring-info strong { color: var(--whsc-primary); }

/* 状态徽章 */
.whsc-badge-ok {
  display: inline-block;
  padding: 3px 10px;
  background: var(--whsc-green-soft);
  color: var(--whsc-green);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  margin-right: 8px;
}
.whsc-badge-warn {
  display: inline-block;
  padding: 3px 10px;
  background: var(--whsc-yellow-soft);
  color: var(--whsc-yellow);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  margin-right: 8px;
}
.whsc-badge-danger {
  display: inline-block;
  padding: 3px 10px;
  background: var(--whsc-red-soft);
  color: var(--whsc-red);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  margin-right: 8px;
}

/* 加班费卡 */
.whsc-ot-card {
  padding: 16px 20px;
  border-radius: var(--whsc-radius-sm);
  background: #fff;
  border: 1px solid var(--whsc-line);
  box-shadow: var(--whsc-shadow);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.whsc-ot-card .whsc-ot-label {
  font-size: 13px;
  color: var(--whsc-ink);
}
.whsc-ot-card .whsc-ot-num {
  font-size: 16px; font-weight: 800;
  color: var(--whsc-primary);
}

/* 法定节假日卡 */
.whsc-holiday-card {
  padding: 16px 20px;
  border-radius: var(--whsc-radius-sm);
  background: #fffbeb;
  border-left: 4px solid var(--whsc-yellow);
  font-size: 13px;
  line-height: 1.9;
  color: var(--whsc-ink);
}
.whsc-holiday-card b { color: var(--whsc-yellow); }

/* 风险提示列表 */
.whsc-risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.whsc-risk-list li {
  padding: 12px 16px;
  background: var(--whsc-red-soft);
  border-radius: var(--whsc-radius-sm);
  font-size: 13px;
  color: var(--whsc-ink);
  border-left: 3px solid var(--whsc-red);
  line-height: 1.8;
}

/* ========== 免责声明 ========== */
.whsc-disclaimer {
  padding: 18px 22px;
  border-radius: var(--whsc-radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.8;
}
.whsc-disclaimer b { color: var(--whsc-yellow); }

/* ========== 打印样式 ========== */
@media print {
  .whsc { background: #fff; padding: 0; }
  .whsc-card, .whsc-disclaimer { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
  .whsc-btn, .whsc-hero::before { display: none !important; }
}

/* ========== 深主题覆盖 ========== */
:root[data-theme="dark"] .whsc,
[data-theme="dark"] .whsc {
  --whsc-ink: #e5e7eb;
  --whsc-ink-soft: #9ca3af;
  --whsc-line: #374151;
  --whsc-bg: #0f172a;
  --whsc-card: #1e293b;
  --whsc-primary-soft: #1e3a5f;
  --whsc-gray-soft: #1f2937;
  --whsc-green-soft: #052e16;
  --whsc-red-soft: #450a0a;
  --whsc-yellow-soft: #422006;
  background: var(--whsc-bg);
}
:root[data-theme="dark"] .whsc-hero,
[data-theme="dark"] .whsc-hero {
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(30, 64, 175, 0.15) 0%, transparent 55%),
    radial-gradient(100% 130% at 85% 100%, rgba(107, 114, 128, 0.15) 0%, transparent 58%),
    linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-color: #374151;
}
:root[data-theme="dark"] .whsc-hero h1,
[data-theme="dark"] .whsc-hero h1 {
  color: #60a5fa;
}
:root[data-theme="dark"] .whsc-tab,
[data-theme="dark"] .whsc-tab {
  background: #1e293b;
  color: #9ca3af;
  border-color: #374151;
}
:root[data-theme="dark"] .whsc-tab:hover,
[data-theme="dark"] .whsc-tab:hover {
  background: #1e3a5f;
}
:root[data-theme="dark"] .whsc-input,
:root[data-theme="dark"] .whsc-seg-btn,
[data-theme="dark"] .whsc-input,
[data-theme="dark"] .whsc-seg-btn {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #374151;
}
:root[data-theme="dark"] .whsc-btn-ghost,
[data-theme="dark"] .whsc-btn-ghost {
  background: transparent;
  color: #60a5fa;
  border-color: #1e3a5f;
}
:root[data-theme="dark"] .whsc-btn-ghost:hover,
[data-theme="dark"] .whsc-btn-ghost:hover {
  background: #1e3a5f;
}
:root[data-theme="dark"] .whsc-summary-ph,
[data-theme="dark"] .whsc-summary-ph {
  background: #1e3a5f;
  border-color: #1d4ed8;
}
:root[data-theme="dark"] .whsc-ring-card,
:root[data-theme="dark"] .whsc-ot-card,
[data-theme="dark"] .whsc-ring-card,
[data-theme="dark"] .whsc-ot-card {
  background: #1e293b;
  border-color: #374151;
}
:root[data-theme="dark"] .whsc-holiday-card,
[data-theme="dark"] .whsc-holiday-card {
  background: #422006;
  border-color: #92400e;
  color: #fbbf24;
}
:root[data-theme="dark"] .whsc-risk-list li,
[data-theme="dark"] .whsc-risk-list li {
  background: #450a0a;
  border-color: #dc2626;
}
:root[data-theme="dark"] .whsc-disclaimer,
[data-theme="dark"] .whsc-disclaimer {
  background: #1a2535;
  border-color: #78350f;
  color: #fbbf24;
}

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .whsc { padding: 16px 12px 32px; }
  .whsc-hero { padding: 32px 20px 26px; }
  .whsc-hero h1 { font-size: 22px; }
  .whsc-card { padding: 20px 16px; }
  .whsc-ring-card { flex-direction: column; text-align: center; }
  .whsc-input { max-width: 100%; }
  .whsc-btn { width: 100%; justify-content: center; }
}
