:root {
  --pink: #f65b9b;
  --pink-dark: #e43d84;
  --pink-soft: #fff0f7;
  --ink: #25284d;
  --muted: #8a89aa;
  --line: #f7d8e7;
  --purple: #9a74df;
  --shadow: 0 18px 55px rgba(239, 92, 154, .18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(246, 91, 155, .16), transparent 34rem),
    linear-gradient(180deg, #fff6fb 0%, #fff 46%, #fff6fb 100%);
}

button,
select {
  font: inherit;
}

.phone-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(247, 216, 231, .9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-cover {
  position: relative;
  min-height: 472px;
  padding: 28px 26px 22px;
  background: linear-gradient(135deg, #fff 0%, #fff4fa 52%, #f8f5ff 100%);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .98;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 6px;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
}

.brand-mark {
  color: var(--pink);
  letter-spacing: -1px;
}

.hero-copy h1 {
  margin: 46px 0 8px;
  font-size: clamp(48px, 9vw, 72px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy h1::first-letter {
  color: var(--pink);
}

.hero-copy p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 18px;
  color: #5b5b92;
  font-size: 21px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(8px);
}

.member-panel,
.order-panel {
  position: relative;
  margin-top: -1px;
  padding: 28px 30px 24px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
}

h2::before,
h2::after {
  content: "✦";
  color: var(--pink);
  margin: 0 8px;
  font-size: .7em;
}

.section-title-row span {
  color: #8a82bf;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.member-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}

.member-carousel::-webkit-scrollbar {
  display: none;
}

.member-card {
  position: relative;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff9fc 100%);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.member-card:hover,
.member-card:focus-visible {
  transform: translateY(-2px);
  border-color: #ff9fc9;
  box-shadow: 0 12px 30px rgba(246, 91, 155, .16);
  outline: none;
}

.member-card.is-random {
  border-color: var(--pink);
  background: linear-gradient(145deg, #fff4fa 0%, #fff 100%);
}

.member-card .recommend {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 7px 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  background: var(--pink);
  border-radius: 0 0 12px 0;
}

.member-photo-wrap {
  aspect-ratio: 1 / .86;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff5fa;
}

.member-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card.is-random .member-photo-wrap {
  background:
    radial-gradient(circle, rgba(246, 91, 155, .16), transparent 66%),
    #fff6fb;
}

.random-dice {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff7eb3, #f34c94);
  box-shadow: 0 10px 24px rgba(246, 91, 155, .25);
}

.member-card strong {
  display: block;
  padding: 12px 8px 14px;
  text-align: center;
  font-size: 23px;
  line-height: 1.1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.carousel-dots span {
  width: 20px;
  height: 8px;
  border-radius: 999px;
  background: #ddd4e6;
}

.carousel-dots .is-active {
  background: var(--pink);
}

.order-panel {
  margin: 18px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(246, 91, 155, .1);
}

.order-panel h2 {
  margin-bottom: 20px;
  text-align: left;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  grid-template-columns: 46px 170px 1fr;
  align-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.field-icon {
  display: grid;
  place-items: center;
  align-self: stretch;
  background: var(--pink-soft);
}

.field-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--pink);
}

.field-name {
  padding: 0 14px;
  font-size: 20px;
  font-weight: 850;
}

select {
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0 40px 0 12px;
  color: #8d89a6;
  font-size: 18px;
  font-weight: 700;
  border: 0;
  outline: 0;
  background: #fff;
}

.form-hint {
  margin: 6px 0 4px;
  color: #827dc0;
  text-align: center;
  font-size: 17px;
}

.form-hint::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: #7d73c5;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid #aca4df;
  border-radius: 50%;
}

.estimate-card {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, #fff7fb 0%, #fff 100%);
}

.estimate-card span {
  font-size: 26px;
  font-weight: 950;
}

.estimate-card strong {
  color: var(--pink);
  font-size: 46px;
  line-height: 1;
}

.submit-btn {
  min-height: 72px;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d93 0%, #f75e9d 100%);
  box-shadow: 0 14px 28px rgba(246, 91, 155, .25);
  cursor: pointer;
}

.submit-btn:disabled {
  opacity: .65;
  cursor: progress;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

.form-status.is-success {
  color: #28845c;
  font-weight: 800;
}

.member-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
}

.member-modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 45, .42);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 520px);
  max-height: 86vh;
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(34, 30, 60, .28);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--pink-soft);
  cursor: pointer;
}

#modalPhoto {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.modal-panel h2 {
  margin: 18px 0 10px;
}

.modal-panel p {
  color: #625f7f;
  line-height: 1.75;
  white-space: pre-line;
}

.modal-panel audio {
  width: 100%;
}

@media (max-width: 720px) {
  .phone-shell {
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .hero-cover {
    min-height: 330px;
    padding: 18px 14px;
  }

  .brand-line {
    font-size: 16px;
  }

  .hero-copy h1 {
    margin-top: 32px;
    font-size: 38px;
  }

  .hero-copy p {
    padding: 7px 12px;
    font-size: 13px;
  }

  .member-panel {
    padding: 22px 14px 18px;
    border-radius: 24px 24px 0 0;
  }

  .section-title-row {
    align-items: flex-end;
  }

  h2 {
    font-size: 22px;
  }

  .section-title-row span {
    font-size: 12px;
  }

  .member-carousel {
    grid-auto-columns: calc((100% - 18px) / 3);
    gap: 9px;
  }

  .member-card .recommend {
    padding: 5px 8px;
    font-size: 12px;
  }

  .random-dice {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 30px;
  }

  .member-card strong {
    padding: 9px 4px 10px;
    font-size: 17px;
  }

  .order-panel {
    margin: 12px 10px 22px;
    padding: 20px 12px 16px;
  }

  label {
    grid-template-columns: 42px 104px 1fr;
    min-height: 56px;
  }

  .field-name {
    padding: 0 8px;
    font-size: 16px;
  }

  select {
    height: 54px;
    padding-left: 8px;
    font-size: 14px;
  }

  .estimate-card {
    min-height: 64px;
  }

  .estimate-card span {
    font-size: 20px;
  }

  .estimate-card strong {
    font-size: 36px;
  }

  .submit-btn {
    min-height: 64px;
    font-size: 23px;
  }
}
