/* pages.css —— 卡片、表单、结果、时限、等级表、误区、证据 */
.gs-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.gs-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: #475569;
  margin: 14px 0 6px;
}
.gs-input,
.gs-select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gs-input:focus,
.gs-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.gs-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.gs-checkrow {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.gs-checkrow:last-of-type {
  border-bottom: none;
}
.gs-checkrow-h {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.gs-checkrow-h b {
  font-size: 0.92rem;
}
.gs-checkrow-info {
  font-size: 0.74rem;
  color: var(--sub);
  margin-top: 2px;
}
.gs-checkrow-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  margin: 12px 0 4px;
  color: #2d3748;
}
.gs-result-box {
  margin-top: 14px;
  background: #f0f9ff;
  border: 1px solid #bee3f8;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.9rem;
}
.gs-warn-box {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.gs-law {
  font-size: 0.72rem;
  color: var(--sub);
  margin-top: 8px;
}
.gs-restable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 4px;
}
.gs-restable th,
.gs-restable td {
  border: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
.gs-restable th {
  background: #f7fafc;
  color: var(--sub);
  font-weight: 600;
}
.gs-restable td:nth-child(2) {
  color: var(--primary-d);
  font-weight: 600;
  white-space: nowrap;
}
.gs-restable td:nth-child(3) {
  color: var(--brand, #e8730c);
  font-weight: 600;
  font-size: 0.74rem;
}
.gs-restable td:nth-child(4) {
  color: var(--sub);
  font-size: 0.72rem;
  line-height: 1.4;
}
.gs-disclaimer {
  font-size: 0.68rem;
  color: var(--sub);
  margin-top: 10px;
  line-height: 1.45;
}
.gs-asof {
  font-size: 0.7rem;
  color: var(--brand, #e8730c);
  margin-top: 8px;
  padding: 6px 9px;
  background: rgba(232, 115, 12, 0.07);
  border-radius: 8px;
  line-height: 1.4;
}
.gs-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.gs-deadline .gs-dl-row {
  border-left: 4px solid var(--ok);
  background: #f0fff4;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}
.gs-dl-row.warn {
  border-left-color: #dd6b20;
  background: #fffaf0;
}
.gs-dl-row.over {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}
.gs-dl-row.pending {
  border-left-color: #94a3b8;
  background: #f8fafc;
  color: var(--sub);
}
.gs-dl-name {
  font-size: 0.86rem;
  font-weight: 600;
}
.gs-dl-due {
  font-size: 0.78rem;
  color: var(--sub);
}
.gs-dl-left {
  font-size: 0.84rem;
  font-weight: 600;
  margin: 2px 0;
}
.gs-dl-note {
  font-size: 0.72rem;
  color: var(--sub);
}
.gs-gradetable .gs-grade-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  align-items: center;
}
.gs-grade-no {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 4px 0;
  font-weight: 600;
}
.gs-grade-desc {
  color: #2d3748;
}
.gs-grade-pay {
  grid-column: 2;
  font-size: 0.72rem;
  color: var(--sub);
}
.gs-myth {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.gs-myth:last-child {
  border-bottom: none;
}
.gs-myth-q {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.5;
  margin-bottom: 8px;
}
.gs-myth-no {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  margin-right: 6px;
}
.gs-myth-a {
  font-size: 0.82rem;
  color: #334155;
  background: #f0f9ff;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 9px 11px;
  line-height: 1.55;
}
.gs-myth-tag {
  display: inline-block;
  background: var(--primary-d);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.gs-evlist {
  margin: 8px 0 0;
  padding-left: 18px;
}
.gs-evlist li {
  font-size: 0.84rem;
  margin-bottom: 7px;
  color: #2d3748;
}

/* 法条依据（结果页精简版） */
.gs-legal {
  background: #f4f8fd;
  border: 1px solid #d8e6f5;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0 4px;
}
.gs-legal-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-d);
  margin-bottom: 7px;
}
.gs-legal-mini {
  margin: 0;
  padding-left: 16px;
}
.gs-legal-mini li {
  font-size: 0.78rem;
  color: #4a5568;
  margin-bottom: 4px;
  line-height: 1.45;
}

/* 报告长图（html2canvas 渲染用，宽度固定便于生成图片） */
.gs-report-canvas {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 340px;
  box-sizing: border-box;
  padding: 18px 16px;
  background: #fff;
  color: #1a202c;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
/* 报告画布仅 340px 宽：四列结果表需紧凑排布，金额列允许换行防溢出 */
.gs-report-canvas .gs-restable th,
.gs-report-canvas .gs-restable td {
  font-size: 0.6rem;
  padding: 4px 3px;
}
.gs-report-canvas .gs-restable td:nth-child(2) {
  white-space: normal;
}
.gs-report-head {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary-d);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
}
.gs-report-meta {
  font-size: 0.7rem;
  color: #718096;
  text-align: center;
  margin: 6px 0 12px;
}
.gs-report-sec {
  margin-bottom: 12px;
}
.gs-report-h {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #2d3748;
}
.gs-report-sec .gs-restable {
  font-size: 0.8rem;
}
.gs-legal-list {
  margin: 0;
  padding-left: 16px;
}
.gs-legal-list li {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #4a5568;
  margin-bottom: 8px;
}
.gs-legal-list b {
  color: #2b6cb0;
}
.gs-report-foot {
  font-size: 0.74rem;
  color: #718096;
  text-align: center;
  border-top: 1px dashed #cbd5e0;
  padding-top: 10px;
  line-height: 1.5;
}
.gs-report-qr {
  width: 92px;
  height: 92px;
  display: block;
  margin: 8px auto 0;
  border-radius: 6px;
}
.gs-report-img {
  width: 100%;
  max-width: 340px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 赔偿计算：工亡 / 伤残 / 仅医疗 三选一入口 */
.gs-casetype {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}
.gs-case-opt {
  flex: 1 1 30%;
  min-width: 88px;
  text-align: center;
  padding: 14px 8px;
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  color: var(--text, #1e293b);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.gs-case-opt:active {
  transform: scale(0.97);
}
.gs-case-opt.active {
  border-color: var(--brand, #e8730c);
  background: var(--brand, #e8730c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 115, 12, 0.25);
}
.gs-subcard {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--sub, #64748b);
  font-size: 0.8rem;
  line-height: 1.5;
  border-left: 3px solid var(--brand, #e8730c);
}
