:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --ink: #17201b;
  --muted: #617067;
  --line: #dfe5dc;
  --brand: #1f8a5b;
  --brand-dark: #12673f;
  --accent: #d85b4a;
  --soft: #e9f3ee;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 40px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(105deg, rgba(15, 57, 39, 0.92), rgba(31, 138, 91, 0.72)),
    url("https://images.unsplash.com/photo-1499209974431-9dddcece7f88?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  opacity: 0.86;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.8;
}

.price {
  min-width: 150px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.price span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.price strong {
  font-size: 32px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  margin-top: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 27, 0.06);
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.panel-head span {
  color: var(--muted);
  font-size: 14px;
}

.questions {
  display: grid;
  gap: 18px;
}

.question {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.question legend {
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.option + .option {
  margin-top: 10px;
}

.option:has(input:checked) {
  border-color: var(--brand);
  background: var(--soft);
}

.primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.primary:hover {
  background: var(--brand-dark);
}

.report {
  position: sticky;
  top: 20px;
  align-self: start;
}

.empty,
.locked {
  color: var(--muted);
  line-height: 1.8;
}

.profile {
  color: var(--brand-dark);
  font-size: 26px;
  font-weight: 800;
}

.locked {
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  background: #fff8f2;
  border: 1px solid #f0d1bf;
}

.scores {
  display: grid;
  gap: 10px;
}

.score-row {
  display: grid;
  grid-template-columns: 86px 1fr 34px;
  gap: 10px;
  align-items: center;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.disclaimer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

.pay-dialog {
  width: min(440px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.pay-dialog::backdrop {
  background: rgba(23, 32, 27, 0.45);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dialog-head h2 {
  margin: 0;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.pay-state {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafcf9;
  color: var(--ink);
  text-align: center;
  word-break: break-all;
  padding: 16px;
}

.qr-canvas {
  width: 220px;
  height: 220px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.pay-link {
  display: block;
  color: var(--brand-dark);
  word-break: break-all;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 680px);
    padding: 10px 0 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 320px;
    padding: 28px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .report {
    position: static;
  }
}
