/* ============================================================
   layoff-procedure-check.css
   经济性裁员程序合规自查 · 门槛大卡 + 程序核对 + N/2N 对比
   主色裁员红 #DC2626 + 合规绿 #059669 + 补偿蓝 #2563EB
   Design tokens（深主题覆盖在文末）
   ============================================================ */

.lpc {
  --lpc-primary: #dc2626;
  --lpc-primary-deep: #991b1b;
  --lpc-primary-soft: #fee2e2;
  --lpc-green: #059669;
  --lpc-green-soft: #d1fae5;
  --lpc-blue: #2563eb;
  --lpc-blue-soft: #dbeafe;
  --lpc-red: #dc2626;
  --lpc-red-soft: #fee2e2;
  --lpc-yellow: #d97706;
  --lpc-yellow-soft: #fef3c7;
  --lpc-gray: #6b7280;
  --lpc-gray-soft: #f3f4f6;
  --lpc-ink: #1f2937;
  --lpc-ink-soft: #6b7280;
  --lpc-line: #e5e7eb;
  --lpc-bg: #fafbfc;
  --lpc-card: #ffffff;
  --lpc-shadow: 0 2px 12px rgba(220, 38, 38, 0.06), 0 1px 3px rgba(220, 38, 38, 0.04);
  --lpc-shadow-lg: 0 20px 40px rgba(220, 38, 38, 0.10), 0 4px 16px rgba(220, 38, 38, 0.06);
  --lpc-radius: 16px;
  --lpc-radius-sm: 10px;
}

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

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

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

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

/* ========== 门槛大卡 + 输入三栏 ========== */
.lpc-threshold-row {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}
.lpc-threshold-card {
  flex: 1; min-width: 280px;
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef2f2 0%, var(--lpc-primary-soft) 100%);
  border: 2px solid var(--lpc-primary);
  box-shadow: var(--lpc-shadow-lg);
  text-align: center;
}
.lpc-threshold-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--lpc-primary), var(--lpc-primary-deep));
}
.lpc-threshold-label {
  font-size: 12px; font-weight: 700;
  color: var(--lpc-ink-soft);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.lpc-threshold-rule {
  font-size: 14px; font-weight: 700;
  color: var(--lpc-primary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.lpc-threshold-or {
  font-size: 20px;
  color: #d1d5db;
  margin: 8px 0;
}
.lpc-threshold-conclusion {
  font-size: 28px; font-weight: 800;
  color: var(--lpc-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.lpc-threshold-detail {
  font-size: 12px;
  color: var(--lpc-ink-soft);
  line-height: 1.7;
}

.lpc-inputs-col { flex: 1; min-width: 320px; }
.lpc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.lpc-field { margin-bottom: 12px; }
.lpc-lab {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--lpc-ink);
  margin-bottom: 6px;
}
.lpc-hint {
  font-size: 12px; font-weight: 400;
  color: var(--lpc-ink-soft);
  margin-left: 4px;
}
.lpc-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1.5px solid var(--lpc-line);
  border-radius: var(--lpc-radius-sm);
  background: #fff;
  color: var(--lpc-ink);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  box-sizing: border-box;
}
.lpc-input:focus {
  outline: none;
  border-color: var(--lpc-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.lpc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lpc-prefix {
  position: absolute; left: 12px;
  color: var(--lpc-ink-soft);
  font-weight: 600;
  font-size: 14px;
}
.lpc-input-wrap .lpc-input { padding-left: 28px; }
.lpc-suffix {
  margin-left: 6px;
  color: var(--lpc-ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.lpc-subh {
  font-size: 14px; font-weight: 800;
  color: var(--lpc-primary);
  margin: 20px 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--lpc-primary);
}

/* ========== 程序核对清单 ========== */
.lpc-checklist {
  display: flex; flex-direction: column; gap: 8px;
}
.lpc-check-row {
  display: flex; gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: var(--lpc-radius-sm);
  border: 1.5px solid var(--lpc-line);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.lpc-check-row:hover {
  border-color: var(--lpc-primary);
  background: #fef2f2;
  box-shadow: var(--lpc-shadow);
}
.lpc-check-row input {
  margin-top: 2px;
  width: 18px; height: 18px;
  accent-color: var(--lpc-primary);
  flex-shrink: 0;
}
.lpc-check-body { flex: 1; }
.lpc-check-title {
  font-size: 13px; font-weight: 700;
  color: var(--lpc-ink);
  margin-bottom: 4px;
}
.lpc-check-desc {
  font-size: 12px;
  color: var(--lpc-ink-soft);
  line-height: 1.7;
}
.lpc-check-desc b { color: var(--lpc-primary-deep); }

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

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

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

/* 门槛/程序结果大卡 */
.lpc-threshold-result-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--lpc-card);
  border: 2px solid var(--lpc-primary);
  box-shadow: var(--lpc-shadow);
  text-align: center;
  margin-bottom: 12px;
}
.lpc-threshold-result-card:last-child { margin-bottom: 0; }
.lpc-threshold-result-card.pass {
  background: #f0fdf4;
  border-color: var(--lpc-green);
}
.lpc-threshold-result-card .lpc-num {
  font-size: 32px; font-weight: 800;
  color: var(--lpc-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}
.lpc-threshold-result-card.pass .lpc-num { color: var(--lpc-green); }
.lpc-threshold-result-card .lpc-detail {
  font-size: 13px;
  color: var(--lpc-ink-soft);
  line-height: 1.8;
  margin-top: 10px;
  text-align: left;
}
.lpc-threshold-result-card .lpc-detail b { color: var(--lpc-ink); }

/* 程序核对列表 */
.lpc-proc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.lpc-proc-list li {
  padding: 10px 14px;
  border-radius: var(--lpc-radius-sm);
  font-size: 13px;
  color: var(--lpc-ink);
  border-left: 3px solid var(--lpc-line);
  background: var(--lpc-gray-soft);
  line-height: 1.7;
  display: flex; align-items: flex-start; gap: 8px;
}
.lpc-proc-list li.ok {
  background: var(--lpc-green-soft);
  border-left-color: var(--lpc-green);
}
.lpc-proc-list li.fail {
  background: var(--lpc-red-soft);
  border-left-color: var(--lpc-red);
}

/* N vs 2N 对比卡 */
.lpc-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.lpc-compare-card {
  padding: 22px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--lpc-shadow);
}
.lpc-compare-card.n-card {
  background: var(--lpc-blue-soft);
  border: 2px solid var(--lpc-blue);
}
.lpc-compare-card.twon-card {
  background: var(--lpc-red-soft);
  border: 2px solid var(--lpc-red);
}
.lpc-compare-num {
  font-size: 28px; font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.lpc-compare-card.n-card .lpc-compare-num { color: var(--lpc-blue); }
.lpc-compare-card.twon-card .lpc-compare-num { color: var(--lpc-red); }
.lpc-compare-label {
  font-size: 12px;
  color: var(--lpc-ink-soft);
  line-height: 1.7;
}

/* 替代方案卡 */
.lpc-alt-card,
#lpcAltCard {
  padding: 16px 20px;
  border-radius: var(--lpc-radius-sm);
  background: var(--lpc-blue-soft);
  border-left: 4px solid var(--lpc-blue);
  font-size: 13px;
  line-height: 1.9;
  color: var(--lpc-ink);
}
.lpc-alt-card b,
#lpcAltCard b { color: var(--lpc-blue); }

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

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

/* ========== 深主题覆盖 ========== */
:root[data-theme="dark"] .lpc,
[data-theme="dark"] .lpc {
  --lpc-ink: #e5e7eb;
  --lpc-ink-soft: #9ca3af;
  --lpc-line: #374151;
  --lpc-bg: #0f172a;
  --lpc-card: #1e293b;
  --lpc-primary-soft: #450a0a;
  --lpc-blue-soft: #1e3a5f;
  --lpc-green-soft: #052e16;
  --lpc-red-soft: #450a0a;
  --lpc-yellow-soft: #422006;
  --lpc-gray-soft: #1f2937;
  background: var(--lpc-bg);
}
:root[data-theme="dark"] .lpc-hero,
[data-theme="dark"] .lpc-hero {
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(220, 38, 38, 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"] .lpc-hero h1,
:root[data-theme="dark"] .lpc-card h2,
:root[data-theme="dark"] .lpc-subh,
[data-theme="dark"] .lpc-hero h1,
[data-theme="dark"] .lpc-card h2,
[data-theme="dark"] .lpc-subh {
  color: #f87171;
}
:root[data-theme="dark"] .lpc-hero h1 i,
[data-theme="dark"] .lpc-hero h1 i {
  background: linear-gradient(90deg, #f87171, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
}
:root[data-theme="dark"] .lpc-hero-badge,
[data-theme="dark"] .lpc-hero-badge {
  color: #f87171;
}
:root[data-theme="dark"] .lpc-hero p em,
:root[data-theme="dark"] .lpc-hero p em.red,
[data-theme="dark"] .lpc-hero p em,
[data-theme="dark"] .lpc-hero p em.red { color: #f87171; }
:root[data-theme="dark"] .lpc-hero p em.blue,
[data-theme="dark"] .lpc-hero p em.blue { color: #60a5fa; }
:root[data-theme="dark"] .lpc-hero p em.green,
[data-theme="dark"] .lpc-hero p em.green { color: #34d399; }
:root[data-theme="dark"] .lpc-input,
[data-theme="dark"] .lpc-input {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #374151;
}
:root[data-theme="dark"] .lpc-btn-ghost,
[data-theme="dark"] .lpc-btn-ghost {
  background: transparent;
  color: #f87171;
  border-color: #450a0a;
}
:root[data-theme="dark"] .lpc-btn-ghost:hover,
[data-theme="dark"] .lpc-btn-ghost:hover { background: #450a0a; }
:root[data-theme="dark"] .lpc-threshold-card,
[data-theme="dark"] .lpc-threshold-card {
  background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
  border-color: #dc2626;
}
:root[data-theme="dark"] .lpc-threshold-rule,
:root[data-theme="dark"] .lpc-threshold-conclusion,
[data-theme="dark"] .lpc-threshold-rule,
[data-theme="dark"] .lpc-threshold-conclusion { color: #fca5a5; }
:root[data-theme="dark"] .lpc-threshold-or,
[data-theme="dark"] .lpc-threshold-or { color: #6b7280; }
:root[data-theme="dark"] .lpc-check-row,
[data-theme="dark"] .lpc-check-row {
  background: #1f2937;
  border-color: #374151;
}
:root[data-theme="dark"] .lpc-check-row:hover,
[data-theme="dark"] .lpc-check-row:hover {
  background: #450a0a;
  border-color: #dc2626;
}
:root[data-theme="dark"] .lpc-summary-ph,
[data-theme="dark"] .lpc-summary-ph {
  background: #450a0a;
  border-color: #dc2626;
}
:root[data-theme="dark"] .lpc-threshold-result-card,
[data-theme="dark"] .lpc-threshold-result-card {
  background: #1e293b;
}
:root[data-theme="dark"] .lpc-threshold-result-card .lpc-num,
[data-theme="dark"] .lpc-threshold-result-card .lpc-num { color: #f87171; }
:root[data-theme="dark"] .lpc-threshold-result-card.pass,
[data-theme="dark"] .lpc-threshold-result-card.pass { background: #052e16; }
:root[data-theme="dark"] .lpc-threshold-result-card.pass .lpc-num,
[data-theme="dark"] .lpc-threshold-result-card.pass .lpc-num { color: #34d399; }
:root[data-theme="dark"] .lpc-proc-list li,
[data-theme="dark"] .lpc-proc-list li { color: #e5e7eb; }
:root[data-theme="dark"] .lpc-compare-card.n-card .lpc-compare-num,
[data-theme="dark"] .lpc-compare-card.n-card .lpc-compare-num { color: #60a5fa; }
:root[data-theme="dark"] .lpc-compare-card.twon-card .lpc-compare-num,
[data-theme="dark"] .lpc-compare-card.twon-card .lpc-compare-num { color: #f87171; }
:root[data-theme="dark"] .lpc-alt-card b,
:root[data-theme="dark"] #lpcAltCard b,
[data-theme="dark"] .lpc-alt-card b,
[data-theme="dark"] #lpcAltCard b { color: #60a5fa; }
:root[data-theme="dark"] .lpc-disclaimer,
[data-theme="dark"] .lpc-disclaimer {
  background: #1a2535;
  border-color: #78350f;
}
:root[data-theme="dark"] .lpc-disclaimer p,
[data-theme="dark"] .lpc-disclaimer p { color: #fbbf24; }

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .lpc { padding: 16px 12px 32px; }
  .lpc-hero { padding: 32px 20px 26px; }
  .lpc-hero h1 { font-size: 22px; }
  .lpc-card { padding: 20px 16px; }
  .lpc-threshold-row { flex-direction: column; }
  .lpc-inputs-col { min-width: 0; }
  .lpc-grid { grid-template-columns: 1fr; }
  .lpc-compare { grid-template-columns: 1fr; }
  .lpc-threshold-conclusion { font-size: 24px; }
  .lpc-threshold-result-card .lpc-num { font-size: 26px; }
  .lpc-input { max-width: 100%; }
  .lpc-btn { width: 100%; justify-content: center; }
}
