:root {
  color-scheme: light;
  --ink: #1f2433;
  --muted: #7f859a;
  --line: rgba(217, 223, 242, 0.92);
  --paper: #f7f8fe;
  --page: #ffffff;
  --teal: #6b67f3;
  --teal-dark: #5852df;
  --coral: #e6b8a8;
  --gold: #d6c07f;
  --blue: #8daff1;
  --soft: #f8f9ff;
  --shadow: 0 30px 90px rgba(127, 141, 201, 0.12);
  --panel-shadow: 0 18px 48px rgba(168, 178, 220, 0.14);
  --panel-shadow-strong: 0 28px 64px rgba(120, 132, 198, 0.2);
  --glass: rgba(255, 255, 255, 0.9);
  --frame-gradient: linear-gradient(90deg, #7264f0 0%, #7b8af0 52%, #89b3ef 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(136, 179, 241, 0.08), transparent 28%),
    linear-gradient(180deg, #fcfdff 0%, #f9fbff 52%, #fcfdff 100%);
  color: var(--ink);
  font-family: "SF Pro Display", "SF Pro Text", "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.08) 0%, rgba(145, 180, 240, 0.04) 22%, rgba(255, 255, 255, 0.22) 48%, rgba(122, 110, 243, 0.03) 72%, rgba(255, 255, 255, 0.18) 100%);
  opacity: 0.8;
}

body.simple-topbar .step-shell {
  gap: 16px;
  position: relative;
  padding-top: 14px;
}

body.simple-topbar .step-header {
  position: relative;
  z-index: 2;
  padding: 10px 6px 8px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.simple-topbar .step-headline {
  gap: 2px;
}

body.simple-topbar .step-headline h3 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.simple-topbar .step-badge,
body.simple-topbar .step-caption,
body.simple-topbar .back-link,
body.simple-topbar .page-section > h2,
body.simple-topbar .step-kicker {
  display: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: 24px 24px 96px;
}

.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background:
    radial-gradient(circle, rgba(132, 140, 185, 0.08) 0 1px, transparent 1.2px) 0 0 / 34px 34px;
}

.shell > * {
  position: relative;
  z-index: 1;
}

.page-hero,
.page-section,
.step-shell {
  border: 1px solid rgba(223, 227, 244, 0.92);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.94) 100%);
  box-shadow: 0 18px 48px rgba(149, 160, 208, 0.12);
}

.page-hero {
  display: grid;
  gap: 20px;
  padding: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.page-hero > * {
  position: relative;
}

.hero-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.eyebrow,
.tip,
.section-tip,
.mini-copy,
.step-caption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

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

h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding: 0 0 14px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.02em;
}

h2 .en,
h3 .en,
.label-en,
.step-badge,
.module-card span,
.step-nav a,
.module-link,
.page-tag {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

body.simple-topbar .step-headline h3,
.auth-panel h1,
.completion .zh,
.completion .en {
  font-family: "SF Pro Display", "SF Pro Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.simple-topbar .step-headline h3,
.auth-panel h1,
.page-section h2,
.completion .zh {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-panel h3,
.page-section h2 .en,
.step-caption,
.section-tip,
.completion .en,
.completion-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.step-kicker,
.home-card-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.home-banner-content h2,
.home-card-head h3,
.page-section h2 {
  font-family: "SF Pro Display", "SF Pro Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.page-section h2 .en,
.step-caption,
.section-tip {
  color: var(--muted);
}

.home-banner-content h2 {
  font-size: 20px;
  font-weight: 700;
}

.home-card-head h3 {
  font-size: 18px;
  font-weight: 800;
}

.page-section h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
}

.hero-actions,
.step-nav,
.card-links,
.choice-row,
.radio-row,
.page-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.step-nav a,
.module-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid rgba(205, 211, 233, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--teal-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(124, 137, 198, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button-primary {
  border-color: rgba(86, 89, 218, 0.7);
  background: linear-gradient(135deg, #7264f0 0%, #6867e8 48%, #596fdf 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 34px rgba(92, 95, 224, 0.28);
}

.button:hover,
.step-nav a:hover,
.module-link:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 32px rgba(124, 137, 198, 0.16);
}

.hero-actions {
  width: fit-content;
  margin-left: auto;
  padding: 16px;
  border: 1px solid rgba(224, 228, 244, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px);
  justify-content: flex-end;
  pointer-events: auto;
}

.hero-actions--equal .button {
  flex: 1 1 0;
}

.hero-actions:has(.button:only-child) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.page-pills span,
.page-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 217, 238, 0.82);
  background: rgba(255, 255, 255, 0.86);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.auth-page-shell {
  display: grid;
  align-items: center;
  padding-top: 22px;
}

.auth-page-hero {
  width: min(1160px, 100%);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 440px);
  gap: 24px;
  align-items: stretch;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(223, 227, 244, 0.9);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.94) 100%);
  box-shadow: var(--panel-shadow-strong);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: -40px auto auto -28px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(126, 114, 241, 0.14) 0%, rgba(126, 114, 241, 0.03) 58%, transparent 74%);
  pointer-events: none;
}

.auth-panel::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 24px;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  border: 1px solid rgba(225, 229, 245, 0.92);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 255, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 28px rgba(149, 160, 208, 0.12);
  pointer-events: none;
}

.auth-panel > * {
  position: relative;
  z-index: 1;
}

.auth-panel--intro {
  align-content: center;
}

.auth-panel--intro::after {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  right: 30px;
  top: 28px;
}

.auth-inline-actions,
.auth-shell-actions {
  margin-left: 0;
}

.auth-intro-copy {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
}

.auth-login-brand-art {
  display: block;
  width: min(100%, 580px);
  height: auto;
  margin: 0 0 6px;
  filter: drop-shadow(0 16px 24px rgba(255, 255, 255, 0.58));
}

.auth-login-brand-wrap {
  display: flex;
  justify-content: center;
  width: min(1120px, 100%);
  margin: 0 auto 18px;
}

.auth-side-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 8px;
}

.auth-side-link {
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.auth-side-link:hover {
  text-decoration: underline;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-submit {
  width: 100%;
}

.auth-banner {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(228, 231, 236, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.auth-banner[hidden] {
  display: none !important;
}

.auth-banner--inline {
  margin-top: 2px;
}

.auth-banner[data-state="info"] {
  border-color: rgba(91, 91, 214, 0.18);
  background: rgba(236, 239, 255, 0.92);
  color: #343aa6;
}

body.auth-page-login .auth-panel--intro,
body.auth-page-register .auth-panel--intro {
  gap: 16px;
  align-content: center;
}

body.auth-page-login .auth-panel:not(.auth-panel--intro),
body.auth-page-register .auth-panel:not(.auth-panel--intro) {
  align-content: start;
  gap: 14px;
}

body.auth-page-login .auth-panel h3,
body.auth-page-register .auth-panel h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

body.auth-page-login .field > span,
body.auth-page-register .field > span {
  margin-bottom: 8px;
}

body.auth-page-login .auth-page-shell,
body.auth-page-register .auth-page-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 20px 24px;
  align-items: center;
}

body.auth-page-login .auth-page-hero,
body.auth-page-register .auth-page-hero {
  width: min(1120px, 100%);
  padding: 16px;
  border: 1px solid rgba(227, 231, 240, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(28, 37, 54, 0.1);
  backdrop-filter: blur(18px);
}

body.auth-page-login .auth-layout,
body.auth-page-register .auth-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 430px);
  gap: 16px;
  align-items: stretch;
}

body.auth-page-login .auth-panel,
body.auth-page-register .auth-panel {
  padding: 26px;
  border: 1px solid rgba(224, 229, 239, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(36, 48, 65, 0.06);
  backdrop-filter: blur(8px);
}

body.auth-page-login .auth-panel::before,
body.auth-page-login .auth-panel::after,
body.auth-page-register .auth-panel::before,
body.auth-page-register .auth-panel::after {
  display: none;
}

body.auth-page-login .auth-panel--form::before,
body.auth-page-login .auth-panel--form::after,
body.auth-page-register .auth-panel--form::before,
body.auth-page-register .auth-panel--form::after {
  content: none;
  display: none;
}

body.auth-page-login .step-kicker,
body.auth-page-register .step-kicker {
  color: #73819e;
  font-size: 11px;
  letter-spacing: 0.12em;
}

body.auth-page-login .auth-panel h1,
body.auth-page-register .auth-panel h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.08;
  margin: 0;
}

body.auth-page-login .auth-intro-copy,
body.auth-page-register .auth-intro-copy {
  max-width: 26rem;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.8;
}

body.auth-page-login .auth-login-brand-art {
  width: min(100%, 620px);
  margin: 0;
}

body.auth-page-login .auth-login-brand-wrap {
  margin-bottom: 10px;
}

body.auth-page-login .auth-side-actions,
body.auth-page-register .auth-side-actions {
  margin-top: 10px;
}

body.auth-page-login .auth-side-actions .button,
body.auth-page-register .auth-side-actions .button {
  min-height: 48px;
  padding: 12px 22px;
}

body.auth-page-login .auth-intro-visual {
  min-height: 250px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2)),
    url("../images/auth-login-bg.jpg") center 42% / cover no-repeat;
}

body.auth-page-login .field input,
body.auth-page-register .field input {
  border-color: rgba(213, 219, 232, 1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

body.auth-page-login .field input:focus,
body.auth-page-register .field input:focus {
  border-color: #7d8aa5;
  box-shadow: 0 0 0 3px rgba(125, 138, 165, 0.14);
}

body.auth-page-login .auth-submit,
body.auth-page-register .auth-submit {
  min-height: 52px;
  margin-top: 12px;
}

body.auth-page-login,
body.auth-page-register {
  position: relative;
  background:
    linear-gradient(180deg, rgba(244, 247, 252, 0.82), rgba(244, 247, 252, 0.86)),
    url("../images/auth-login-bg.jpg?v=3") center center / cover no-repeat fixed;
}

body.auth-page-login::before,
body.auth-page-register::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.4), transparent 26%);
  pointer-events: none;
}

body.auth-page-login main,
body.auth-page-login section,
body.auth-page-login .auth-page-hero,
body.auth-page-register main,
body.auth-page-register section,
body.auth-page-register .auth-page-hero {
  position: relative;
  z-index: 1;
}

body.auth-page-register .auth-form--compact {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
}

body.auth-page-register .auth-form--compact .field {
  min-width: 0;
}

body.auth-page-register .auth-form--compact .auth-submit--wide {
  margin-top: 6px;
}

@media (max-width: 820px) {
  body.auth-page-login .auth-page-shell,
  body.auth-page-register .auth-page-shell {
    padding: 18px;
  }

  body.auth-page-login .auth-page-hero,
  body.auth-page-register .auth-page-hero {
    padding: 14px;
    border-radius: 24px;
  }

  body.auth-page-login .auth-layout,
  body.auth-page-register .auth-layout {
    grid-template-columns: 1fr;
  }

  body.auth-page-login .auth-panel h1,
  body.auth-page-register .auth-panel h1 {
    font-size: 32px;
  }

  body.auth-page-login .auth-panel,
  body.auth-page-login .auth-intro-visual,
  body.auth-page-register .auth-panel {
    border-radius: 22px;
  }

  body.auth-page-login .auth-login-brand-art {
    width: 100%;
  }

  body.auth-page-login .auth-login-brand-wrap {
    margin-bottom: 8px;
  }
}

.auth-banner[data-state="success"] {
  border-color: rgba(47, 125, 115, 0.2);
  background: rgba(233, 248, 244, 0.94);
  color: #1f5f57;
}

.auth-banner[data-state="error"] {
  border-color: rgba(233, 123, 108, 0.24);
  background: rgba(255, 238, 235, 0.94);
  color: #a23f33;
}

.auth-shell-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 0 24px;
  padding: 18px 22px;
  border: 1px solid rgba(217, 226, 223, 0.9);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 253, 0.95) 100%);
  box-shadow: 0 14px 34px rgba(24, 34, 48, 0.06);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.module-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(217, 226, 223, 0.9);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.95) 100%);
  box-shadow: 0 18px 36px rgba(149, 160, 208, 0.1);
}

.module-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--frame-gradient);
  opacity: 0.9;
}

.module-card span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.module-card strong {
  color: var(--teal-dark);
  font-size: 19px;
  line-height: 1.3;
}

.module-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.step-shell {
  width: min(1220px, 100%);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.step-header {
  display: grid;
  gap: 10px;
  padding: 18px 22px 0;
}

.step-headline {
  display: grid;
  gap: 4px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff1ff;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}

.step-nav a.is-current {
  border-color: var(--teal);
  background: #eef8f5;
}

.step-nav {
  display: none;
}

.section-body {
  padding: 0;
}

.page-section {
  position: relative;
  display: grid;
  gap: 0;
  z-index: 1;
  padding: 24px;
  border-radius: 30px;
  overflow: hidden;
}

.page-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.16) 100%);
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.page-section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  z-index: 0;
  pointer-events: none;
}

.page-section h2 {
  position: relative;
  z-index: 1;
  padding: 0 0 12px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  border-bottom: 0;
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.2;
}

.page-section h2 .en {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.page-section--form .section-body {
  max-width: none;
}

.page-section--selection .section-body,
.page-section--questionnaire .section-body {
  max-width: none;
}

.page-section .section-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-body {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 20;
  width: min(1240px, calc(100vw - 56px));
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  transform: translateX(-50%);
  pointer-events: none;
}

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

.section-stack {
  display: grid;
  gap: 22px;
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.split-hero > :only-child,
.question-intro > :only-child {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 26px 30px;
  border: 1px solid rgba(223, 227, 244, 0.92);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.95) 100%);
  box-shadow: 0 18px 42px rgba(149, 160, 208, 0.12);
}

.split-hero > :only-child::before,
.question-intro > :only-child::before {
  content: none;
}

.split-hero > :only-child::after,
.question-intro > :only-child::after {
  content: none;
}

.split-hero > :only-child > *,
.question-intro > :only-child > * {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

label,
legend {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.label-en {
  display: block;
  color: #8a90ab;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 4px 10px rgba(91, 91, 214, 0.08);
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(210, 216, 236, 0.95);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7c82f5;
  box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.12);
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(223, 227, 244, 0.92);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  box-shadow: 0 14px 30px rgba(149, 160, 208, 0.08);
}

.field-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(223, 227, 244, 0.92);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field-panel-title {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.field-panel--date {
  padding-top: 18px;
}

.date-picker-field {
  width: 100%;
  gap: 8px;
}

.date-select-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
}

.date-select-row select {
  min-height: 48px;
  padding: 10px 40px 10px 14px;
  border: 1px solid #d7dceb;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  color: var(--ink);
  font-weight: 600;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8a90ab 50%),
    linear-gradient(135deg, #8a90ab 50%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.date-select-row select:focus {
  outline: none;
  border-color: #7c82f5;
  box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.12);
}

.choice-row label,
.radio-row label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(220, 225, 243, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.choice-row label:has(input:checked),
.radio-row label:has(input:checked) {
  border-color: var(--teal);
  background: #eff1ff;
  color: var(--teal-dark);
  box-shadow: 0 10px 20px rgba(107, 103, 243, 0.12);
}

.choice-row label:hover,
.radio-row label:hover {
  transform: translateY(-1px);
}

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

.callout {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid rgba(223, 227, 244, 0.95);
  border-left: 6px solid #60a5fa;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  box-shadow: 0 14px 30px rgba(149, 160, 208, 0.08);
}

.callout::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -26px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 176, 242, 0.16) 0%, rgba(143, 176, 242, 0.04) 58%, transparent 72%);
}

.callout > * {
  position: relative;
  z-index: 1;
}

.callout p + p {
  margin-top: 6px;
}

.intro-card {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.intro-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.stat-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.stat-card strong {
  font-size: 32px;
  line-height: 1;
  color: var(--teal-dark);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pdf-reference,
.question,
.ranking-set,
.wheel-card,
.creative-card,
.answer-card,
.sensitivity-card,
.rank-option-card,
.rating-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.pdf-reference {
  overflow: hidden;
}

.pdf-reference figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sensitivity-grid,
.rank-options-grid,
.adjectives,
.view-pair {
  display: grid;
  gap: 14px;
}

.sensitivity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sensitivity-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(223, 227, 244, 0.95);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 14px 30px rgba(149, 160, 208, 0.08);
}

.sensitivity-card img {
  width: min(240px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.ranking-set {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(180deg, #f8faff 0%, #f4f7fc 100%);
  border: 1px solid rgba(223, 227, 244, 0.92);
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(149, 160, 208, 0.08);
}

.ranking-set h3 {
  font-size: 18px;
  color: var(--ink);
}

.selection-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.selection-header p {
  color: var(--muted);
  font-size: 13px;
}

.rank-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-option-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border-color: rgba(223, 227, 244, 0.92);
  box-shadow: 0 12px 24px rgba(149, 160, 208, 0.06);
}

.rank-option-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.rank-option-card.is-ranked {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.12);
}

.rank-line {
  display: grid;
  grid-template-columns: minmax(52px, 1fr) 20px minmax(52px, 1fr) 20px minmax(52px, 1fr) 20px minmax(52px, 1fr);
  gap: 8px;
  align-items: center;
}

.greater {
  color: #98a2b3;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.rating-block {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
  padding: 22px;
  border-radius: 24px;
  border-color: rgba(223, 227, 244, 0.92);
  box-shadow: 0 14px 30px rgba(149, 160, 208, 0.08);
}

.rating-block figure {
  grid-row: 1 / span 2;
}

.rating-block img {
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.rating-title {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
}

.rating-lead {
  display: grid;
  gap: 6px;
}

.rating-lead strong {
  color: var(--ink);
  font-size: 18px;
}

.rating-lead p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.rating-scroll {
  grid-column: 2;
  overflow-x: auto;
}

.rating-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.rating-table th,
.rating-table td {
  padding: 0;
  border: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.rating-table th {
  padding: 7px 5px;
}

.rating-table th:first-child,
.rating-table td:first-child {
  width: 150px;
  padding: 7px 5px;
  text-align: left;
  font-weight: 700;
}

.rating-choice {
  display: grid;
  place-items: center;
  min-height: 44px;
  cursor: pointer;
}

.rating-choice:hover,
.rating-choice:focus-within {
  background: #f5f6ff;
}

.rating-choice:has(input:checked) {
  background: #ecefff;
}

.adjectives {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.adjectives li {
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #435166;
  line-height: 1.55;
}

.wheel-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
}

.wheel-card {
  padding: 14px;
}

.wheel-card img {
  width: min(620px, 100%);
  margin: 0 auto;
}

.color-lines {
  display: grid;
  gap: 12px;
}

.color-lines label {
  display: grid;
  grid-template-columns: 78px 72px minmax(0, 1fr) minmax(180px, 0.8fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #4f46e5;
  font-weight: 800;
}

.creative-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.view-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-card {
  padding: 14px;
  border: 1px dashed #b8c0d6;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.question {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(223, 227, 244, 0.92);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 14px 32px rgba(149, 160, 208, 0.08);
}

.question::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--frame-gradient);
}

.question h3 {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}

.question p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.completion {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: 108px 34px 96px;
  border: 1px solid rgba(223, 227, 244, 0.9);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 255, 0.95) 100%);
  box-shadow: var(--panel-shadow-strong);
  text-align: center;
}

body.complete-page {
  height: 100vh;
  overflow: hidden;
}

body.complete-page .shell {
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
}

body.complete-page .step-shell {
  width: min(980px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.complete-page .step-header,
body.complete-page .page-section > h2 {
  display: none;
}

body.complete-page .page-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.complete-page .completion {
  min-height: min(620px, calc(100vh - 48px));
  padding: 72px 34px;
  align-content: center;
}

.completion::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto;
  height: 160px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 32%, rgba(118, 109, 241, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(147, 191, 244, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.03) 100%);
  filter: blur(12px);
}

.completion > * {
  position: relative;
  z-index: 1;
}

.question-list {
  display: grid;
  gap: 18px;
}

.question-intro {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 22px;
}

.form-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(223, 227, 244, 0.94);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  box-shadow: 0 18px 42px rgba(149, 160, 208, 0.14);
}

.form-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: var(--frame-gradient);
}

.form-card h3 {
  font-size: 20px;
  color: var(--ink);
}

.form-card > .field {
  gap: 10px;
}

.form-card--profile > .field-panel {
  width: min(420px, 100%);
}

.step-kicker {
  display: inline-flex;
  align-self: start;
  color: #8a90ab;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 14px rgba(91, 91, 214, 0.12);
}

.completion .zh {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.7;
}

.completion .en {
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.completion-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(239, 241, 255, 0.9);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0;
}

.auth-panel h3 {
  margin: 0;
}

.completion-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.completion-badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(220, 225, 243, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #5d6480;
  font-size: 13px;
  font-weight: 700;
}

.completion-actions {
  margin: 4px 0 0;
}

.completion-copy {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
}

.completion-copy .zh,
.completion-copy .en {
  padding: 0 8px;
}

.iframe-stage {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.iframe-stage iframe {
  display: block;
  width: 100%;
  min-height: 860px;
  border: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 800;
}

.step-headline h3 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

@media (max-width: 1100px) {
  .sensitivity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .two-col,
  .three-col,
  .adjectives,
  .view-pair,
  .wheel-layout {
    grid-template-columns: 1fr;
  }

  .rank-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-block {
    grid-template-columns: 1fr;
  }

  .rating-block img {
    max-width: 320px;
  }

  .step-shell {
    width: 100%;
  }

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

  .split-hero > :only-child,
  .question-intro > :only-child {
    padding: 20px;
    padding-right: 20px;
  }

  .split-hero > :only-child::before,
  .question-intro > :only-child::before,
  .split-hero > :only-child::after,
  .question-intro > :only-child::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 18px 14px 112px;
  }

  .page-section {
    padding: 14px;
  }

  .page-section .section-body {
    padding: 0;
  }

  .page-body {
    left: 50%;
    bottom: 10px;
    width: calc(100vw - 24px);
    padding: 0;
  }

  .hero-actions {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .date-row,
  .rank-line,
  .color-lines label {
    grid-template-columns: 1fr;
  }

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

  .greater {
    display: none;
  }

  .iframe-stage iframe {
    min-height: 62vh;
  }

  .page-section,
  .hero-actions {
    border-radius: 18px;
  }
}

body.home-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(147, 197, 253, 0.18), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(125, 211, 252, 0.16), transparent 28%),
    #f8fafc;
  color: #334155;
  font-family: "SF Pro Display", "SF Pro Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.home-page::before,
body.home-page .shell::before {
  display: none;
}

.home-app {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

.home-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
}

.home-glow--top {
  top: 0;
  right: 0;
  width: 800px;
  height: 800px;
  background: rgba(147, 197, 253, 0.1);
  transform: translate(50%, -50%);
}

.home-glow--bottom {
  left: 0;
  bottom: 0;
  width: 600px;
  height: 600px;
  background: rgba(125, 211, 252, 0.1);
  transform: translate(-50%, 50%);
}

.home-scroll {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 20px 24px 72px;
  display: flex;
  align-items: stretch;
}

.home-wrap {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 88px);
}

.home-title-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 22px 32px;
  border: 1px solid rgba(223, 227, 244, 0.94);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.94) 100%);
  box-shadow: 0 18px 48px rgba(149, 160, 208, 0.12);
}

.home-title-bg,
.home-banner-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.home-title-bg {
  opacity: 0.24;
  mix-blend-mode: luminosity;
  background-image: url('https://images.unsplash.com/photo-1585854467604-cf2080ccef31?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb2Z0JTIwYmx1ZSUyMGFic3RyYWN0JTIwbGlnaHR8ZW58MXx8fHwxNzc5MDE3MjA3fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral');
}

.home-title-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.54), transparent);
  backdrop-filter: blur(2px);
}

.home-title-card h1 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: #1e293b;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.home-title-card h1 span {
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.home-auth-banner {
  max-width: 100%;
}

.home-auth-banner[hidden],
[hidden].home-auth-banner {
  display: none !important;
}

.home-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  align-content: stretch;
  flex: 1;
  height: 100%;
}

.home-page .page-body {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 20;
  width: min(1240px, calc(100vw - 56px));
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.home-page .hero-actions:has(.button:only-child) {
  padding: 16px;
  border: 1px solid rgba(224, 228, 244, 0.94);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px);
}

.home-banner-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 24px 32px;
  border: 1px solid rgba(223, 227, 244, 0.9);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(149, 160, 208, 0.12);
}

.home-banner-image {
  opacity: 0.28;
  transition: transform 1s ease;
  background-image: url('https://images.unsplash.com/photo-1597773150796-e5c14ebecbf5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx3aGl0ZSUyMGJsdWUlMjBmbHVpZCUyMGFic3RyYWN0fGVufDF8fHx8MTc3OTAxNzI3OXww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral');
}

.home-banner-card:hover .home-banner-image {
  transform: scale(1.05);
}

.home-banner-glass {
  position: absolute;
  inset: 0;
  background: #fff;
  backdrop-filter: none;
}

.home-banner-fade {
  position: absolute;
  inset: 0;
  background: #fff;
}

.home-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
}

.home-banner-copy {
  display: grid;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  grid-template-columns: 1fr;
  max-width: 760px;
}

.home-banner-content p {
  margin: 0;
  color: rgba(59, 130, 246, 0.8);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
}

.home-banner-content h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #1e293b;
  font-size: 22px;
  font-weight: 500;
  text-align: left;
}

.home-banner-text {
  max-width: none;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
  text-align: left;
}

.home-banner-tip {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(232, 244, 255, 0.92) 100%);
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(96, 165, 250, 0.12);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  align-items: stretch;
  align-content: start;
  flex: 1;
  height: 100%;
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 28px;
  border: 1px solid rgba(223, 227, 244, 0.9);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.94) 100%);
  box-shadow: 0 18px 48px rgba(149, 160, 208, 0.12);
  backdrop-filter: blur(20px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  min-height: 0;
  height: 100%;
  justify-content: flex-start;
}

.home-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 52px rgba(149, 160, 208, 0.16);
}

.home-card--accent {
  gap: 0;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
}

.home-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.home-card-mark {
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.32);
}

.home-card-mark--sky {
  background: #38bdf8;
}

.home-card-head h3 {
  margin: 0;
  color: #1e293b;
  font-size: 18px;
  font-weight: 500;
}

.home-card-subtitle {
  margin: 2px 0 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-field-block {
  margin-bottom: 18px;
}

.home-field-block:last-child {
  margin-bottom: 0;
}

.home-field-block--grow {
  margin-bottom: 0;
}

.home-label {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-label-en,
.home-label-zh {
  display: block;
}

.home-label-en {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-label-zh {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.home-page input[type="text"],
.home-page select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(210, 216, 236, 0.95);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: #334155;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-page input[type="text"]::placeholder {
  color: #cbd5e1;
}

.home-page input[type="text"]:focus,
.home-page select:focus {
  outline: none;
  border-color: #7c82f5;
  box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.12);
}

.home-choice-grid {
  display: flex;
  gap: 12px;
}

.home-choice {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 225, 243, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #475569;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-choice input {
  display: none;
}

.home-choice span {
  font-size: 14px;
  font-weight: 500;
}

.home-choice:has(input:checked) {
  border-color: #7c82f5;
  background: #eef1ff;
  color: #3f3cce;
  box-shadow: 0 10px 20px rgba(107, 103, 243, 0.12);
}

.home-choice:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: rgba(239, 246, 255, 0.55);
}

.home-date-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
}

.home-page select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #8a90ab 50%),
    linear-gradient(135deg, #8a90ab 50%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  padding-right: 2rem;
}

.home-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7264f0 0%, #6867e8 48%, #596fdf 100%);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 34px rgba(92, 95, 224, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.page-body .home-submit {
  width: auto;
  min-width: 0;
  pointer-events: auto;
}

.home-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 38px rgba(92, 95, 224, 0.32);
}

@media (max-width: 900px) {
  .home-scroll {
    padding: 16px 16px 72px;
  }

  .home-wrap {
    min-height: calc(100vh - 84px);
  }

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

  .home-banner-copy {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .home-banner-content h2,
  .home-banner-text {
    text-align: left;
  }

  .home-banner-text {
    max-width: 100%;
  }

  .home-title-card,
  .home-banner-card,
  .home-card {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .home-scroll {
    padding: 12px 12px 68px;
  }

  .home-wrap {
    min-height: calc(100vh - 80px);
  }

  .home-wrap,
  .home-form {
    gap: 10px;
  }

  .home-title-card,
  .home-banner-card,
  .home-card {
    padding: 16px;
  }

  .home-title-card {
    min-height: 72px;
  }

  .home-title-card h1 {
    font-size: 20px;
  }

  .home-grid,
  .home-choice-grid,
  .home-date-grid {
    gap: 12px;
  }

  .home-choice-grid,
  .home-date-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .home-card-head,
  .home-field-block {
    margin-bottom: 14px;
  }

  .home-banner-content {
    flex-direction: column;
    min-height: auto;
  }

  .page-body .home-submit {
    width: 100%;
    min-width: 0;
  }

  .home-page .page-body {
    left: 50%;
    bottom: 10px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 820px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.home-page,
  body.complete-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .shell,
  body.complete-page .shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  .step-shell,
  .home-app,
  .home-scroll,
  .home-wrap,
  .home-form,
  .home-grid {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .home-scroll {
    display: block;
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  .home-wrap {
    display: grid;
  }

  .page-body,
  .home-page .page-body {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: auto;
    margin: 0;
    transform: none;
    pointer-events: auto;
  }

  .hero-actions,
  .home-page .hero-actions:has(.button:only-child) {
    width: 100%;
    padding: 12px;
    border-radius: 20px;
  }

  .hero-actions .button,
  .hero-actions .home-submit {
    width: 100%;
  }

  body.complete-page .shell {
    display: block;
    padding: 16px 16px calc(128px + env(safe-area-inset-bottom, 0px));
  }

  body.complete-page .step-shell {
    width: 100%;
  }

  body.complete-page .completion {
    min-height: 0;
    padding: 36px 18px;
  }
}
