@font-face {
  font-family: "Fishman Bite SC";
  src: url("assets/cjk-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+80-FFFF;
}
@font-face {
  font-family: "Fishman Bite SC";
  src: url("assets/cjk-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+80-FFFF;
}
body {
  font-family:
    "Fishman Bite SC",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
}
.app-shell {
  max-width: 420px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.hero {
  position: relative;
  margin: 19px 15px 20px;
}
.hero h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin: 7px 0;
}
.hero > p:last-of-type {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.embedded-help {
  display: none;
  position: absolute;
  right: -10px;
  top: 19px;
}
.is-embedded .topbar {
  display: none;
}
.is-embedded .embedded-help {
  display: flex;
}
.progress {
  margin: 0 22px 20px;
}
.progress ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.progress li {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #727d8e;
  font-size: 12px;
}
.progress li:not(:last-child):after {
  content: "";
  position: absolute;
  left: calc(50% + 10px);
  right: calc(-50% + 10px);
  top: 10px;
  border-top: 1px solid #bbc4cf;
}
.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #aab4c3;
  background: var(--bg);
  border-radius: 50%;
  font: italic 800 12px Barlow;
  z-index: 1;
}
.progress .current {
  color: var(--ink);
  font-weight: 700;
}
.current .step-dot {
  border-color: #07080c;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 2px #d8f9a3;
}
.complete .step-dot {
  background: #929baa;
  color: white;
  border-color: #929baa;
}
.card,
.scene-summary {
  background: white;
  border-radius: 16px;
  margin: 0 0 13px;
  padding: 14px;
}
.card-title {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 7px 0 15px;
}
.card-title > span {
  font: italic 800 17px Barlow;
  color: var(--muted);
}
.card-title h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.3px;
}
.card-title h2:focus {
  outline: none;
}
.scene-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 4px;
}
.scene-summary p {
  font-size: 12px;
  color: #7e899a;
  margin: 0 0 6px;
}
.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.scene-chips span {
  font-size: 12px;
  font-weight: 700;
  background: var(--chip);
  padding: 4px 7px;
  border-radius: 7px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 4px;
  color: #6e7b8c;
  font-size: 12px;
  white-space: nowrap;
}
.text-button img {
  width: 16px;
  height: 16px;
}
.scene-summary .text-button {
  align-self: flex-end;
}
.primary {
  background: var(--ink);
  color: white;
  width: 100%;
  min-height: 44px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 12px;
}
.primary > img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(93%) sepia(93%) saturate(516%)
    hue-rotate(25deg);
}
fieldset {
  padding: 0;
  margin: 0 0 16px;
  border: 0;
  min-width: 0;
}
legend,
label {
  font-size: 13px;
  font-weight: 700;
  color: #536071;
}
legend {
  margin-bottom: 9px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.problem-grid button,
.flow-grid button,
.issue-grid button {
  min-height: 44px;
  background: var(--chip);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px;
}
.problem-grid button[aria-pressed="true"],
.flow-grid button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--lime);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.field-grid label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-grid select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--chip);
  padding: 8px 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.extra {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.extra summary,
.basis summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
}
.extra summary::-webkit-details-marker,
.basis summary::-webkit-details-marker {
  display: none;
}
.extra summary > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.extra summary img,
.basis summary img {
  width: 16px;
  height: 16px;
  margin-left: auto;
}
.extra[open] .field-grid {
  margin-top: 14px;
}
.muted,
.check-help {
  font-size: 12px;
  color: #778395;
  line-height: 1.65;
}
.scope {
  margin: 0 0 12px;
}
figure {
  margin: 0 0 16px;
}
figure > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 9px;
  background: #edf3fa;
}
figcaption {
  margin-top: 7px;
  color: #7b879a;
  font-size: 13px;
}
.answer-list {
  display: grid;
  gap: 7px;
}
.answer-list > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 11px 14px;
  text-align: left;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  background: #fff;
}
.answer-list > button[aria-pressed="true"] {
  background: #f3f8e8;
  border-color: #b4d57d;
}
.radio-mark {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  border: 1px solid #9ca7b7;
  flex-shrink: 0;
}
.answer-list > button[aria-pressed="true"] .radio-mark {
  background: var(--ink) url("../assets/icons/check.svg") center/13px no-repeat;
  border-color: var(--ink);
}
.answer-list > button[aria-pressed="true"] .radio-mark {
  background-color: var(--ink);
  background-image: none;
  position: relative;
}
.answer-list > button[aria-pressed="true"] .radio-mark:after {
  content: "";
  position: absolute;
  inset: 2px;
  background: url("../assets/icons/check.svg") center/13px no-repeat;
  filter: brightness(0) invert(1);
}
.check-help {
  margin: 9px 0 14px;
  color: #7d8796;
}
.issue-details {
  margin: 12px 0 0;
  padding: 12px;
  background: var(--chip);
  border-radius: 9px;
}
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.issue-grid button {
  background: white;
  font-size: 12px;
}
.issue-grid button[aria-pressed="true"] {
  border-color: #8caf52;
  background: #eff7df;
}
.error {
  color: #a62931;
  background: #fff1f0;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
}
.notice {
  background: #f0f7df;
  color: #526637;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
}
.round-label {
  font-size: 12px;
  color: #7f8999;
  margin: 0 0 8px;
}
.action-hero {
  background: var(--ink);
  padding: 18px 16px;
  border-radius: 12px;
  color: white;
}
.action-hero > p {
  color: #a5afbf;
  font-size: 12px;
  margin: 0 0 4px;
}
.action-hero h3 {
  font-size: 21px;
  line-height: 1.4;
  margin: 0;
}
.action-hero strong {
  display: block;
  color: var(--lime);
  font: italic 800 32px Barlow;
  margin-top: 8px;
}
.action-copy {
  font-size: 15px;
  line-height: 1.8;
  margin: 16px 0;
}
.observation {
  font-size: 13px;
  line-height: 1.7;
  padding: 12px;
  background: var(--chip);
  border-radius: 9px;
}
.basis {
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.basis > p {
  font-size: 13px;
  line-height: 1.7;
}
.feedback {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.feedback h3,
.feedback-result h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.feedback > p {
  font-size: 12px;
  color: #7d899a;
  margin: 0 0 10px;
}
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.feedback-grid button {
  min-height: 44px;
  padding: 9px 4px;
  background: var(--chip);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.feedback-grid button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--lime);
}
.feedback-result {
  margin: 14px 0 0;
  padding: 14px;
  background: #f2f7e8;
  border-radius: 10px;
}
.feedback-result p {
  font-size: 13px;
  line-height: 1.7;
  margin: 7px 0 12px;
}
.feedback-result .primary {
  font-size: 13px;
}
.result-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 5px;
}
.result-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 15px;
}
.tool-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  color: #566b37;
  margin-top: 10px;
}
.tool-link img {
  width: 16px;
  height: 16px;
}
footer {
  padding: 0 14px;
  color: #7e899c;
  font-size: 13px;
  line-height: 1.65;
}
footer > p {
  margin: 10px 0 3px;
}
footer .text-button {
  justify-content: flex-start;
  padding: 0;
  font-size: 12px;
}
footer .fine {
  font-size: 10px;
  color: #778294;
  margin: 12px 0;
}
dialog {
  width: calc(100% - 32px);
  max-width: 390px;
  border: 0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 50px #0002;
}
dialog::backdrop {
  background: #07080c66;
}
dialog h2 {
  font-size: 20px;
}
dialog p {
  font-size: 14px;
  line-height: 1.8;
}
dialog .primary {
  margin-top: 20px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-width: 90vw;
  padding: 10px 18px;
  background: #07080c;
  color: white;
  border-radius: 9px;
  font-size: 13px;
}
#copyFallback {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 12px;
  border-radius: 8px;
  margin-top: 10px;
}
@media (max-width: 350px) {
  .hero {
    margin-left: 8px;
    margin-right: 8px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .scene-chips span {
    font-size: 11px;
    padding: 4px;
  }
  .card-title h2 {
    font-size: 16px;
  }
  .answer-list > button {
    font-size: 14px;
    padding: 10px;
  }
  .field-grid {
    gap: 8px;
  }
  .progress {
    margin-left: 5px;
    margin-right: 5px;
  }
  .scene-summary {
    padding: 10px;
  }
  .card {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* 对照所选问答稿，收紧页头与摘要，保留 44px 点击区。 */
.hero {
  margin-top: 15px;
  margin-bottom: 16px;
}
.hero h2 {
  font-size: 24px;
  margin: 5px 0;
}
.hero > p:last-of-type {
  font-size: 13px;
}
.progress {
  margin-bottom: 14px;
}
.scene-summary {
  padding-top: 10px;
  padding-bottom: 10px;
}
.scene-summary p {
  margin-bottom: 4px;
}
.hero .embedded-help {
  top: 13px;
}
.current .step-dot {
  font-size: 0;
}
.current .step-dot:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}
.complete .step-dot {
  font-size: 0;
  background: #929baa url("../assets/icons/check.svg") center/14px no-repeat;
}
.hero {
  margin-bottom: 9px;
}
.progress {
  margin-bottom: 8px;
}
.scene-summary {
  padding-top: 8px;
  padding-bottom: 8px;
}
.card-title {
  margin-bottom: 14px;
}
figure {
  margin-bottom: 12px;
}
.answer-list > button {
  padding-top: 10px;
  padding-bottom: 10px;
}
.check-help {
  margin: 8px 0 10px;
}
