/* components.css —— Toast / Loading / Modal / Tabs / Buttons / ShareCard / Unlock */
.gs-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(26, 32, 44, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 100;
  max-width: 80%;
  text-align: center;
}
.gs-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.gs-loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.gs-loading.show {
  display: flex;
}
.gs-loading-box {
  background: #fff;
  border-radius: 12px;
  padding: 22px 28px;
  text-align: center;
  color: var(--sub);
  font-size: 0.85rem;
}
.gs-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: gs-spin 0.8s linear infinite;
}
@keyframes gs-spin {
  to {
    transform: rotate(360deg);
  }
}
.gs-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 18px;
}
.gs-modal-mask.show {
  display: flex;
}
.gs-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 380px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 18px;
}
.gs-modal-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.gs-modal-body {
  font-size: 0.88rem;
  color: #2d3748;
}
.gs-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.gs-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 0.95rem;
  flex: 1;
  min-height: 48px;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  font-weight: 500;
}
.gs-btn:active {
  transform: scale(0.98);
}
.gs-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}
.gs-btn-primary:active {
  background: var(--primary-d);
}

/* 头部按钮组 */
.gs-header-btns { display: flex; gap: 8px; }
.gs-header-btns .gs-disc-btn { margin: 0; }

/* 免责声明 */
.gs-disclaimer-box { max-width: 400px; }
.gs-disclaimer-body { font-size: 0.85rem; color: #2d3748; line-height: 1.65; }
.gs-disclaimer-body p { margin: 0 0 9px; }
.gs-disclaimer-body strong { color: var(--primary); }
.gs-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-top: 12px; color: #2d3748; }
.gs-check input { width: 16px; height: 16px; }

/* 身份自检向导 */
.gs-wizard-box { max-width: 440px; }
.gs-wiz-bar { height: 5px; background: #e9eef6; border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.gs-wiz-bar-fill { height: 100%; background: linear-gradient(90deg, #ff8a4c, #ff5a1f); border-radius: 99px; transition: width 0.3s ease; }
.gs-wiz-progress { font-size: 0.76rem; color: #94a3b8; margin-bottom: 6px; letter-spacing: 0.02em; }
.gs-wiz-q { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; color: var(--text); line-height: 1.45; }
.gs-wiz-sub { font-size: 0.8rem; color: #64748b; margin: 0 0 16px; line-height: 1.55; }
.gs-wiz-opts { display: flex; flex-direction: column; gap: 10px; }
.gs-wiz-opt {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 15px 46px 15px 16px;
  font-size: 0.96rem;
  background: #fff;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.gs-wiz-opt:active { transform: scale(0.99); }
.gs-wiz-opt.active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary-d);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.1);
}
.gs-wiz-check {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) scale(0.5);
  opacity: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.gs-wiz-opt.active .gs-wiz-check { opacity: 1; transform: translateY(-50%) scale(1); }
.gs-wiz-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  margin-bottom: 4px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gs-wiz-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.gs-wiz-hint {
  font-size: 0.84rem;
  color: var(--primary-d);
  margin: 12px 2px 0;
  background: rgba(37, 99, 235, 0.07);
  padding: 11px 13px;
  border-radius: 12px;
  line-height: 1.55;
}
.gs-wiz-hint b { font-size: 0.96rem; }
.gs-wiz-nav { display: flex; gap: 10px; margin-top: 22px; }
.gs-wiz-err { color: var(--warn); font-size: 0.82rem; margin-top: 8px; min-height: 1em; }

/* 判定卡 */
.gs-judge { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.gs-judge-head { padding: 20px 20px; color: #fff; }
.gs-judge-head.rel-labor { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.gs-judge-head.rel-retire { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.gs-judge-head.rel-service { background: linear-gradient(135deg, #d97706, #f59e0b); }
.gs-judge-rel { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.01em; }
.gs-judge-rule { display: inline-block; margin-top: 8px; font-size: 0.82rem; background: rgba(255, 255, 255, 0.22); padding: 4px 12px; border-radius: 99px; }
.gs-judge-body { padding: 16px 20px; background: #fff; }
.gs-judge-note { font-size: 0.88rem; color: #2d3748; line-height: 1.72; }
.gs-judge-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.gs-judge-tag { font-size: 0.76rem; background: #f1f5f9; color: #475569; padding: 5px 10px; border-radius: 9px; }
.gs-judge-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* 人身损害 tab 辅助布局 */
.gs-inline-2 { display: flex; gap: 8px; }
.gs-inline-2 .gs-input { flex: 1; }
.gs-result-total { font-size: 1rem; margin: 12px 0 4px; color: var(--text); }
.gs-result-total b { color: var(--primary); font-size: 1.15rem; }

.gs-full {
  width: 100%;
  margin-top: 12px;
}
.gs-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.gs-subtab {
  flex: 1;
  min-width: 64px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--sub);
  border-radius: 20px;
  padding: 7px 4px;
  font-size: 0.8rem;
}
.gs-subtab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.gs-tip {
  font-size: 0.82rem;
  color: var(--sub);
  margin: 0 0 12px;
}
.gs-warn {
  font-size: 0.78rem;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
}
/* 分享卡片 */
.gs-sharecard {
  background: linear-gradient(135deg, #2b6cb0, #1f4f80);
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.gs-sharecard-head {
  font-size: 0.74rem;
  opacity: 0.85;
}
.gs-sharecard-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px 0;
}
.gs-sharecard-summary {
  font-size: 0.84rem;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
}
.gs-sharecard-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.gs-sharecard-qr img {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 8px;
}
.gs-sharecard-qrtip {
  width: 110px;
  height: 110px;
  background: #fff;
  color: var(--primary-d);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1.4;
}
.gs-sharecard-qrlabel {
  font-size: 0.76rem;
  margin-top: 6px;
}
.gs-sharecard-disclaimer {
  font-size: 0.62rem;
  opacity: 0.8;
  margin-top: 12px;
  line-height: 1.4;
}
/* 关注解锁 */
.gs-unlock {
  text-align: center;
}
.gs-unlock-qr img {
  width: 150px;
  height: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.gs-unlock-qrtip {
  width: 150px;
  height: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-d);
  font-size: 0.85rem;
  margin: 0 auto;
}
.gs-unlock-steps {
  text-align: left;
  font-size: 0.86rem;
  margin: 12px 0;
  color: #2d3748;
}
.gs-unlock-steps p {
  margin: 6px 0;
}

/* 身份自检结果横幅（记忆态） */
.gs-id-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin: 0 12px 10px;
}
.gs-id-main {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.gs-id-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  flex: 0 0 auto;
}
.gs-id-rel {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  flex: 1 1 auto;
}
.gs-id-rel b { color: var(--primary-d); }
.gs-id-redo {
  flex: 0 0 auto;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary-d);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gs-id-redo:active { transform: scale(0.97); background: rgba(37, 99, 235, 0.06); }
.gs-id-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.gs-id-tag {
  font-size: 0.74rem;
  background: #fff;
  color: #475569;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 9px;
}
.gs-id-badge { font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 10px; }
.gs-id-badge.ok { background: #dcfce7; color: #15803d; }
.gs-id-badge.no { background: #fee2e2; color: #b91c1c; }

/* ===== 流程导航仪表盘（tab-a）===== */
.gs-flow { padding: 4px 2px 8px; }
.gs-flow-intro {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  font-size: 0.86rem;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.gs-flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
}
.gs-flow-step:active { transform: scale(0.99); }
.gs-flow-step.locked { opacity: 0.55; background: #f8fafc; }
.gs-flow-step.done { border-color: #bbf7d0; background: #f6fef9; }
.gs-flow-step.excluded { border-color: #fecaca; background: #fff7f7; }
.gs-flow-no {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.gs-flow-step.locked .gs-flow-no { background: #94a3b8; }
.gs-flow-step.done .gs-flow-no { background: #16a34a; }
.gs-flow-step.excluded .gs-flow-no { background: #dc2626; }
.gs-flow-body { flex: 1 1 auto; min-width: 0; }
.gs-flow-t { font-weight: 700; font-size: 0.98rem; color: #0f172a; }
.gs-flow-d { font-size: 0.78rem; color: #64748b; margin-top: 2px; line-height: 1.5; }
.gs-flow-tag { display: inline-block; margin-top: 6px; font-size: 0.72rem; padding: 3px 8px; border-radius: 8px; background: #eef2ff; color: #4338ca; }
.gs-flow-step.locked .gs-flow-tag { background: #f1f5f9; color: #94a3b8; }
.gs-flow-step.excluded .gs-flow-tag { background: #fee2e2; color: #b91c1c; }
.gs-flow-go { flex: 0 0 auto; font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.gs-flow-step.locked .gs-flow-go { color: #94a3b8; }
.gs-flow-hint {
  margin-top: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.84rem;
  padding: 10px 12px;
  border-radius: 12px;
}

/* ===== 事故类型判断（tab-b）===== */
.gs-acc-group { margin-bottom: 12px; }
.gs-acc-group-h {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
}
.gs-acc-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  transition: all 0.12s ease;
}
.gs-acc-opt:last-child { border-radius: 0 0 10px 10px; }
.gs-acc-opt:active { background: #f8fafc; }
.gs-acc-opt .gs-acc-t { font-size: 0.86rem; color: #1e293b; line-height: 1.5; }
.gs-acc-opt .gs-acc-art { font-size: 0.72rem; color: #2563eb; font-weight: 600; }

/* ===== 剔除 / 非工伤事故 结论卡 ===== */
.gs-excl {
  margin-top: 12px;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 14px;
}
.gs-excl-head { font-size: 0.98rem; font-weight: 800; color: #b91c1c; margin-bottom: 8px; }
.gs-excl-reason { font-size: 0.86rem; color: #334155; line-height: 1.6; margin-bottom: 10px; }
.gs-excl-remedy { font-size: 0.84rem; color: #334155; line-height: 1.7; }
.gs-excl-remedy ul { margin: 6px 0 12px; padding-left: 18px; }
.gs-excl-remedy li { margin: 4px 0; }
.gs-excl .gs-btn { width: 100%; }

/* ===== 工伤待遇全览（tab-c 顶部）===== */
.gs-benefit-overview { background: #f8fafc; border-color: #e2e8f0; }
.gs-bo-head { font-weight: 700; font-size: 0.92rem; color: #0f172a; margin-bottom: 8px; }
.gs-bo-list { margin: 0; padding-left: 18px; }
.gs-bo-list li { font-size: 0.82rem; color: #334155; line-height: 1.7; margin: 5px 0; }
.gs-bo-list em { font-style: normal; font-weight: 700; color: #15803d; }

/* ===== 申报指导（tab-evidence）===== */
.gs-guide-h { font-weight: 700; font-size: 0.92rem; color: #0f172a; margin-bottom: 8px; }
.gs-guide-steps { margin: 0; padding-left: 20px; }
.gs-guide-steps li { font-size: 0.84rem; color: #334155; line-height: 1.7; margin: 5px 0; }
