:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1d2a35;
  background: #eef3f2;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-wrap: anywhere;
  background: #eef3f2;
}

button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px max(20px, calc((100% - 760px) / 2));
  color: #fff;
  background: #173b4f;
  border-bottom: 4px solid #e1a93b;
}

.site-header > * { min-width: 0; }

.eyebrow, .result-label {
  margin: 0 0 6px;
  color: #f2bd51;
  font-size: 14px;
  font-weight: 700;
}

h1 { margin: 0; font-size: 30px; line-height: 1.25; }
h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.4; }
h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
p, li { line-height: 1.75; }

.privacy-note {
  flex: 0 0 auto;
  font-size: 13px;
  color: #d9e7ec;
}

.app-shell {
  width: min(760px, calc(100% - 32px));
  min-height: 430px;
  margin: 28px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #d3dedf;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgb(23 59 79 / 9%);
}

.view[hidden] { display: none; }
.feature-list { padding-left: 22px; margin: 20px 0 28px; }

.progress-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: #53646d;
  font-size: 14px;
}

progress {
  width: 100%;
  height: 10px;
  accent-color: #16836b;
}

.options { display: grid; gap: 10px; margin: 22px 0 28px; }

.option-button {
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  color: #243b45;
  background: #f8faf9;
  border: 1px solid #c7d3d5;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.option-button:hover { border-color: #16836b; background: #edf7f3; }
.option-button[aria-checked="true"] { border-color: #16836b; background: #dcf1e9; box-shadow: inset 4px 0 #16836b; }

.actions, .download-actions { display: flex; justify-content: space-between; gap: 12px; }

button, .link-button {
  min-width: 0;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
}

.primary-button { color: #fff; background: #16836b; border: 1px solid #16836b; }
.primary-button:hover { background: #116a57; }
.secondary-button { color: #173b4f; background: #fff; border: 1px solid #8299a3; }
.secondary-button:hover { background: #f2f6f7; border-color: #526d79; }
button:disabled { opacity: .45; cursor: not-allowed; }

button:focus-visible, .link-button:focus-visible, .option-button:focus-visible {
  outline: 3px solid #e1a93b;
  outline-offset: 3px;
}

.link-button { flex: 1; display: grid; place-items: center; text-align: center; text-decoration: none; }
.link-button[aria-disabled="true"] { color: #64737a; background: #e9eef0; border-color: #c7d0d4; cursor: not-allowed; }

.text-button {
  margin-top: 22px;
  padding-left: 0;
  color: #405e69;
  background: transparent;
  border: 0;
  text-decoration: underline;
}

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 28px; }
.result-grid section { min-width: 0; padding: 18px; background: #f7f9f8; border-left: 4px solid #e1a93b; }
.result-grid section:last-child { border-left-color: #d56b56; }
.result-grid ul { margin: 0; padding-left: 20px; }
.result-grid p { margin: 0; }

.link-status {
  margin: 12px 0 0;
  padding: 9px 12px;
  color: #694915;
  background: #fff5dc;
  border-left: 3px solid #e1a93b;
  font-size: 13px;
  line-height: 1.6;
}

.disclosure { margin: 12px 0 0; color: #64727a; font-size: 13px; }

footer {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 28px;
  color: #64727a;
  font-size: 13px;
}

@media (max-width: 620px) {
  .site-header { align-items: start; padding-top: 24px; padding-bottom: 24px; }
  .privacy-note { display: none; }
  h1 { font-size: 25px; }
  h2 { font-size: 22px; }
  .app-shell { min-height: 470px; margin-top: 16px; padding: 22px 18px; }
  .result-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; }
  .download-actions { flex-direction: column; }
  .actions button, .link-button { width: 100%; }
}

@media (max-width: 340px) {
  .site-header { padding-inline: 16px; }
  h1 { font-size: 23px; }
  h2 { font-size: 20px; }
  .app-shell { width: calc(100% - 20px); padding: 20px 14px; }
  .progress-row { grid-template-columns: 1fr; gap: 8px; }
  button, .link-button, .option-button { padding-inline: 12px; }
  footer { width: calc(100% - 24px); }
}
