:root {
  --ink: #18212f;
  --muted: #667085;
  --paper: #fffaf0;
  --surface: rgba(255, 255, 255, 0.86);
  --line: rgba(24, 33, 47, 0.12);
  --accent: #0d7668;
  --accent-dark: #0f2f3f;
  --gold: #d99b19;
  --danger: #b42318;
  --shadow: 0 24px 80px rgba(24, 33, 47, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(13, 118, 104, 0.24), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(217, 155, 25, 0.24), transparent 30rem),
    linear-gradient(135deg, #fbf0da 0%, #edf6ef 52%, #f8faf8 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(24, 33, 47, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 47, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

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

.preview-banner {
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 18px;
  color: var(--danger);
  background: rgba(255, 244, 242, 0.86);
  font: 14px/1.7 "PingFang SC", sans-serif;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 24px;
  align-items: end;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(13, 118, 104, 0.22);
  border-radius: 999px;
  color: var(--accent);
  font: 700 14px/1 "PingFang SC", sans-serif;
  background: rgba(13, 118, 104, 0.08);
}

h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font: 18px/1.85 "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.promise {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(217, 155, 25, 0.28);
  border-radius: 24px;
  background: rgba(255, 248, 225, 0.8);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.promise strong {
  font-size: 18px;
}

.promise span {
  color: var(--muted);
  line-height: 1.7;
}

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-top: 22px;
}

.app.intro-mode {
  grid-template-columns: minmax(0, 1fr);
}

.steps,
.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 16px 54px rgba(24, 33, 47, 0.1);
  backdrop-filter: blur(16px);
}

.steps {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 16px;
}

.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: var(--muted);
  font: 600 14px/1.35 "PingFang SC", sans-serif;
}

.step span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.step.active {
  color: var(--ink);
  background: rgba(13, 118, 104, 0.1);
}

.step.active span:first-child {
  color: #fff;
  border-color: transparent;
  background: var(--accent);
}

.card {
  min-height: 620px;
  padding: clamp(20px, 4vw, 36px);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font: 700 14px/1 "PingFang SC", sans-serif;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-desc {
  margin: 12px 0 24px;
  color: var(--muted);
  font: 16px/1.8 "PingFang SC", sans-serif;
}

.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-card,
.option {
  position: relative;
  display: block;
  cursor: pointer;
}

.role-card input,
.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.role-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.role-body span {
  display: block;
  color: var(--muted);
  font: 14px/1.65 "PingFang SC", sans-serif;
}

.role-card:hover .role-body,
.option:hover span {
  transform: translateY(-1px);
}

.role-card input:checked + .role-body {
  border-color: rgba(13, 118, 104, 0.62);
  box-shadow: 0 18px 42px rgba(13, 118, 104, 0.14);
}

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

.question {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.intro-auth {
  display: grid;
  gap: 22px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intro-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.intro-grid strong,
.auth-check span,
.other-field label {
  font: 700 15px/1.55 "PingFang SC", sans-serif;
}

.intro-grid span {
  color: var(--muted);
  font: 14px/1.7 "PingFang SC", sans-serif;
}

.auth-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(13, 118, 104, 0.22);
  border-radius: 20px;
  background: rgba(13, 118, 104, 0.08);
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.other-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed rgba(13, 118, 104, 0.35);
  border-radius: 16px;
  background: rgba(13, 118, 104, 0.06);
}

.question label.title {
  display: block;
  margin-bottom: 8px;
  font: 700 16px/1.55 "PingFang SC", sans-serif;
}

.required {
  color: var(--danger);
}

.help {
  margin: -2px 0 12px;
  color: var(--muted);
  font: 13px/1.65 "PingFang SC", sans-serif;
}

input[type="text"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
  font: 15px/1.5 "PingFang SC", sans-serif;
  background: #fff;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(13, 118, 104, 0.64);
  box-shadow: 0 0 0 4px rgba(13, 118, 104, 0.1);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option span {
  display: block;
  min-height: 46px;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font: 14px/1.55 "PingFang SC", sans-serif;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.option span::before {
  position: absolute;
  top: 14px;
  left: 15px;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(24, 33, 47, 0.2);
  border-radius: 50%;
  content: "";
}

.option input[type="checkbox"] + span::before {
  border-radius: 5px;
}

.option input:checked + span {
  border-color: rgba(13, 118, 104, 0.62);
  background: rgba(13, 118, 104, 0.08);
}

.option input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.actions .ghost {
  margin-right: auto;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font: 800 15px/1 "PingFang SC", sans-serif;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 30px rgba(13, 118, 104, 0.22);
}

.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--danger);
  font: 14px/1.65 "PingFang SC", sans-serif;
}

.success {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(13, 118, 104, 0.22);
  border-radius: 24px;
  background: rgba(13, 118, 104, 0.08);
  font-family: "PingFang SC", sans-serif;
}

.success h2 {
  margin: 0;
  font-size: 28px;
}

.success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted);
  font: 13px/1.7 "PingFang SC", sans-serif;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 22px, 1120px);
    padding-top: 14px;
  }

  .hero,
  .app {
    grid-template-columns: 1fr;
  }

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

  .steps {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .step {
    min-width: max-content;
  }

  .roles,
  .options {
    grid-template-columns: 1fr;
  }

  .role-body {
    min-height: auto;
  }

  .actions {
    align-items: stretch;
  }

  .card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(32px, 9.4vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.018em;
  }

  .hero,
  .card,
  .steps {
    border-radius: 24px;
  }

  .steps {
    align-items: center;
  }

  .step {
    min-width: auto;
    padding: 10px;
  }

  .step:not(.active) {
    grid-template-columns: 28px;
  }

  .step:not(.active) span:last-child {
    display: none;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .ghost {
    margin-right: 0;
  }
}
