:root {
  --font-body: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-accent: "Fraunces", "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "STSong", serif;
  --bg: #f6efe8;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 252, 246, 0.94);
  --ink: #14203a;
  --muted: #66748d;
  --soft: #95a1b6;
  --line: rgba(20, 32, 58, 0.12);
  --accent: #d48d67;
  --danger: #c25d70;
  --shadow-soft: 0 24px 64px rgba(20, 32, 58, 0.08);
  --shadow-panel: 0 28px 90px rgba(20, 32, 58, 0.14);
  --radius-panel: 32px;
  --radius-card: 24px;
  --radius-input: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 10%, rgba(233, 214, 196, 0.72), transparent 30%),
    radial-gradient(circle at 100% 8%, rgba(212, 141, 103, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(147, 165, 191, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8)),
    var(--bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.88;
}

body::before {
  top: 18%;
  left: -64px;
  width: 180px;
  height: 180px;
  background: rgba(247, 226, 208, 0.82);
}

body::after {
  right: -72px;
  bottom: 8%;
  width: 220px;
  height: 220px;
  background: rgba(148, 167, 194, 0.14);
}

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

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 24px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 22px 0 calc(36px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ad-slot-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-slot-shell--banner {
  margin-top: -2px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 4px;
}

.site-brand__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #101b34;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  box-shadow: 0 20px 30px rgba(16, 27, 52, 0.24);
}

.site-brand__copy {
  display: grid;
  gap: 4px;
}

.site-brand__title,
.site-brand__subtitle,
.section-kicker,
.hero__subtitle,
.hero__lead,
.hero-note__lead,
.hero-note__label,
.hero-note__value,
.panel-copy,
.field__label,
.field__hint,
.feedback,
.loading-title,
.loading-desc,
.result-label,
.result-body {
  margin: 0;
}

.site-brand__title {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-brand__subtitle,
.section-kicker,
.field__label,
.hero-note__label,
.result-label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero {
  display: grid;
  gap: 16px;
}

.hero__copy,
.hero-note,
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-panel);
}

.hero__copy,
.hero-note {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 247, 240, 0.72));
  box-shadow: var(--shadow-soft);
}

.hero__copy {
  padding: 24px;
}

.hero-note {
  padding: 22px;
}

.hero__title,
.panel-title {
  margin: 10px 0 0;
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero__title {
  font-size: clamp(2.9rem, 11vw, 5.9rem);
}

.hero__subtitle {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 3.35rem);
  line-height: 1.05;
  color: #94a3bb;
}

.hero__lead,
.panel-copy,
.hero-note__lead,
.field__hint,
.result-body {
  color: var(--muted);
  line-height: 1.78;
}

.hero__lead {
  margin-top: 16px;
  max-width: 34rem;
  font-size: 1rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 32, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 20px rgba(20, 32, 58, 0.04);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-note__lead {
  margin-top: 10px;
  font-size: 0.98rem;
}

.hero-note__list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.hero-note__item {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(20, 32, 58, 0.08);
}

.hero-note__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-note__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.panel {
  padding: 24px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.panel::before,
.hero__copy::before,
.hero-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.panel-title {
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.panel-copy {
  margin-top: 10px;
  max-width: 42rem;
}

.name-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}

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

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

.field__hint {
  font-size: 0.95rem;
}

.field input {
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(20, 32, 58, 0.05);
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder {
  color: #c2cbda;
}

.field input:focus,
.field input:focus-visible {
  outline: none;
  border-color: rgba(20, 32, 58, 0.28);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 30px rgba(20, 32, 58, 0.08);
}

.field input[aria-invalid="true"] {
  border-color: rgba(194, 93, 112, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 4px rgba(194, 93, 112, 0.08);
}

.form-actions,
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback {
  min-height: 1.4rem;
  color: var(--danger);
  font-size: 0.95rem;
  line-height: 1.4;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 62px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, border-color 180ms ease,
    background-color 180ms ease;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, #101b34, #213154);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 20px 36px rgba(20, 32, 58, 0.22);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(20, 32, 58, 0.26);
}

.primary-button:disabled {
  opacity: 0.78;
  cursor: wait;
  transform: none;
  box-shadow: 0 14px 24px rgba(20, 32, 58, 0.16);
}

.secondary-button {
  border: 1px solid rgba(20, 32, 58, 0.08);
  background: var(--panel-strong);
  color: var(--ink);
  justify-content: center;
  box-shadow: 0 16px 30px rgba(20, 32, 58, 0.08);
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 32, 58, 0.16);
}

.button__label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.page--result .hero__title {
  font-size: clamp(2.7rem, 10vw, 5rem);
}

.result-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-stage {
  display: grid;
  gap: 18px;
}

.loading-group,
.result-card {
  border-radius: 28px;
  border: 1px solid rgba(20, 32, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(253, 247, 240, 0.82));
  box-shadow: 0 18px 40px rgba(20, 32, 58, 0.08);
}

.loading-group {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 32px 20px;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(20, 32, 58, 0.12);
  border-top-color: var(--ink);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

.loading-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.loading-desc {
  color: var(--soft);
  font-size: 0.92rem;
}

.result-card {
  padding: 28px 22px;
  text-align: center;
}

.result-name {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5.4rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.result-copy {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.result-body {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 720px) {
  .page-shell {
    width: min(1120px, calc(100% - 40px));
    padding-top: 30px;
    gap: 24px;
  }

  .hero__copy,
  .hero-note,
  .panel {
    padding: 30px;
  }

  .hero-note__item {
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
  }

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

  .result-stage {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: stretch;
  }

  .loading-group,
  .result-card {
    height: 100%;
  }

  .result-card {
    display: grid;
    align-content: center;
    min-height: 260px;
  }
}

@media (min-width: 960px) {
  .page-shell {
    padding-top: 36px;
    padding-bottom: 56px;
    gap: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    align-items: stretch;
  }

  .hero__copy,
  .hero-note,
  .panel {
    padding: 36px;
  }
}
