.shell-main.sos-main {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

.sos-board {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  margin: 16px auto 0;
  padding: 32px 28px 36px;
  border-radius: 24px;
  background: #fbf7f2;
  border: 1px solid #e7dbce;
  color: #241814;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.sos-title,
.sos-lead,
.sos-step,
.sos-prompt,
.sos-kicker,
.sos-type,
.sos-line,
.sos-stop,
.sos-say,
.sos-foot,
.sos-note,
.sos-copied,
.sos-seat,
.sos-begin,
.sos-actions button,
.sos-actions a {
  color: #241814;
}

.sos-board [hidden] {
  display: none !important;
}

/* 阶段显隐控制 */
.sos-board[data-sos="gate"] .sos-step,
.sos-board[data-sos="gate"] .sos-scale,
.sos-board[data-sos="gate"] .sos-ask,
.sos-board[data-sos="gate"] .sos-out {
  display: none !important;
}

.sos-board[data-sos="ask"] .sos-title,
.sos-board[data-sos="ask"] .sos-lead,
.sos-board[data-sos="ask"] .sos-scale,
.sos-board[data-sos="ask"] .sos-gate,
.sos-board[data-sos="ask"] .sos-out {
  display: none !important;
}

.sos-board[data-sos="out"] .sos-title,
.sos-board[data-sos="out"] .sos-lead,
.sos-board[data-sos="out"] .sos-step,
.sos-board[data-sos="out"] .sos-gate,
.sos-board[data-sos="out"] .sos-ask {
  display: none !important;
}

/* 标题与副标题 */
.sos-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #241814;
}

.sos-lead {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #5c473c;
}

/* 门禁卡片 */
.sos-gate {
  margin-top: 24px;
}

.sos-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sos-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1.5px solid #dfd3c6;
  border-radius: 12px;
  background: #ffffff;
  color: #241814;
  font: 600 16px/1.3 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.sos-check:hover {
  border-color: #8d3230;
  background: #fffdfc;
}

.sos-check:has(input:checked) {
  border-color: #8d3230;
  background: #fff8f6;
}

.sos-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #8d3230;
  cursor: pointer;
}

.sos-begin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-width: 180px;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  background: #8d3230;
  color: #ffffff;
  font: 700 16px/1 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(141, 50, 48, 0.28);
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.sos-begin:hover:not(:disabled) {
  background: #7a2927;
  transform: translateY(-1px);
}

.sos-begin:disabled {
  background: #c9b8a8;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.sos-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #8d3230;
}

/* 作答区 */
.sos-step {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #8d3230;
}

.sos-prompt {
  margin: 0 0 24px;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.45;
  font-weight: 750;
  color: #241814;
}

.sos-seats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sos-seat {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 1.5px solid #ded2c5;
  border-radius: 12px;
  background: #ffffff;
  color: #241814;
  text-align: left;
  font: 600 16px/1.35 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.sos-seat:hover {
  border-color: #8d3230;
  background: #fffcfb;
  transform: translateY(-1px);
}

.sos-seat.is-on {
  border-color: #8d3230;
  background: #8d3230;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(141, 50, 48, 0.22);
}

/* 结果页 */
.sos-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #7a5b4c;
  text-transform: uppercase;
}

.sos-type {
  margin: 6px 0 18px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 850;
  color: #8d3230;
  letter-spacing: -0.03em;
}

/* 结果页双轴可视化（天平对比） */
.sos-scale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 24px;
  align-items: start;
}

.sos-pan {
  position: relative;
  min-height: 140px;
  padding: 16px 14px;
  border-radius: 16px;
  transition: margin-top 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.sos-tray {
  margin-top: var(--sos-drop-u, 0px);
  background: #f5ede2;
  border: 2px solid #5c4034;
  box-shadow: 0 6px 18px rgba(92, 64, 52, 0.08);
}

.sos-tray::before {
  content: "服务型 / 被用";
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #5c4034;
  margin-bottom: 8px;
}

.sos-bed {
  margin-top: var(--sos-drop-v, 0px);
  background: #f7e6de;
  border: 2px solid #c45c58;
  box-shadow: 0 6px 18px rgba(196, 92, 88, 0.1);
}

.sos-bed::before {
  content: "被服务型 / 被伺候";
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #8d3230;
  margin-bottom: 8px;
}

.sos-well {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px;
  min-height: 72px;
}

.sos-token,
.sos-pillow-bit {
  display: block;
  flex: 0 0 auto;
}

.sos-token {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #8d6a52;
}

.sos-token.is-cloth {
  border-radius: 4px;
  background: #f0deca;
  border-color: #b08968;
}

.sos-pillow-bit {
  width: 20px;
  height: 14px;
  border-radius: 6px;
  background: #ffffff;
  border: 2px solid #d98984;
}

.sos-redline {
  display: block;
  height: 3px;
  margin-top: 10px;
  border-radius: 99px;
  background: transparent;
}

.sos-redline.is-hot {
  background: #c23b3b;
  box-shadow: 0 0 0 3px rgba(194, 59, 59, 0.18);
}

/* 结果文字说明 */
.sos-line {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
  color: #241814;
}

.sos-stop {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3.5px solid #c23b3b;
  background: #fdf1f0;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.55;
  color: #722020;
}

.sos-say {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #dfd3c6;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #3b2b24;
}

.sos-say.is-valve {
  border-color: #c23b3b;
  background: #fff8f8;
}

.sos-foot {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #7a655b;
}

/* 按钮与操作 */
.sos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sos-actions button,
.sos-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #5c4034;
  background: #ffffff;
  text-decoration: none;
  font: 700 14px/1 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sos-actions button:hover,
.sos-actions a:hover {
  background: #f5ece2;
  border-color: #8d3230;
}

.sos-copied {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 13px;
  color: #1e4a34;
}

/* 移动端适配 */
@media (max-width: 720px) {
  .sos-board {
    padding: 22px 18px 26px;
    border-radius: 18px;
  }

  .sos-scale {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sos-pan {
    min-height: 100px;
  }

  .sos-title {
    font-size: 26px;
  }

  .sos-type {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sos-pan,
  .sos-begin,
  .sos-seat {
    transition: none;
  }
}
