:root {
  --rose: #ff71bd;
  --rose-deep: #f042a3;
  --rose-soft: #ffd6ec;
  --lavender: #8b62f4;
  --lavender-soft: #e7dcff;
  --mint: #b8fff1;
  --sky: #dff5ff;
  --ink: #352b3c;
  --muted: #8d8394;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f8d9ea;
}

body {
  display: flex;
  justify-content: center;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  width: min(100vw, 450px);
  min-height: 100vh;
  overflow: hidden;
  padding-bottom: 130px;
  background:
    linear-gradient(150deg, rgba(255, 236, 247, .95) 0 18%, transparent 18% 46%, rgba(221, 214, 255, .72) 46% 56%, transparent 56%),
    linear-gradient(29deg, transparent 0 58%, rgba(184, 255, 241, .45) 58% 70%, transparent 70%),
    linear-gradient(180deg, #fff3fa 0%, #ffd9ef 22%, #ffeef8 41%, #e4f6ff 70%, #d7ecfb 100%);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 38px 0 auto;
  height: 430px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255, 113, 189, .11) 24px 25px),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(139, 98, 244, .09) 24px 25px);
  mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 66%, transparent 100%);
}

.page-shell::after {
  content: "";
  position: absolute;
  inset: 86px 18px auto;
  height: 620px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, .4) 18% 22%, transparent 22% 62%, rgba(255, 255, 255, .34) 62% 66%, transparent 66%),
    linear-gradient(90deg, transparent 0 9%, rgba(255, 113, 189, .18) 9% 11%, transparent 11% 88%, rgba(139, 98, 244, .14) 88% 90%, transparent 90%);
  border-radius: 36px;
}

.topbar {
  position: relative;
  z-index: 5;
  height: 38px;
  padding: 0 11px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(115, 71, 117, .08);
  font-size: 16px;
}

.topbar span {
  min-width: 0;
  white-space: nowrap;
}

.topbar button {
  flex: 0 0 auto;
  height: 31px;
  padding: 0 14px;
  border: 2px solid #211827;
  border-radius: 9px;
  background: #fff;
  font-weight: 900;
  color: #211827;
}

.float-actions {
  position: fixed;
  z-index: 20;
  top: 44px;
  left: calc(50% + min(225px, 50vw) - 34px);
  width: 34px;
  pointer-events: none;
}

.float-tab {
  position: absolute;
  right: 0;
  width: 34px;
  min-height: 76px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  background:
    linear-gradient(180deg, rgba(83, 76, 93, .9), rgba(57, 52, 66, .82));
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.05;
  letter-spacing: 1px;
  font-weight: 900;
  font-size: 15px;
  box-shadow:
    -2px 4px 10px rgba(51, 40, 57, .18),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.float-icon {
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
}

.headset {
  top: 0;
}

.order-main {
  top: 114px;
  min-height: 106px;
  background:
    linear-gradient(180deg, rgba(83, 76, 93, .9), rgba(57, 52, 66, .82));
}

.float-tab span:last-child {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: normal;
}

.headset .float-icon {
  width: 19px;
  height: 19px;
}

.order-main .float-icon {
  width: 17px;
  height: 16px;
  border: 0;
  border-radius: 0;
  position: relative;
  background: transparent;
  clip-path: polygon(50% 0, 100% 92%, 0 92%);
  outline: 2px solid rgba(255, 255, 255, .88);
  outline-offset: -2px;
}

.order-main .float-icon::after {
  content: "!";
  position: absolute;
  inset: 2px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.hero {
  position: relative;
  z-index: 2;
  padding: 7px 14px 0;
}

.hero h1 {
  position: relative;
  z-index: 3;
  margin: 2px auto 4px;
  text-align: center;
  color: #ff5ab8;
  font-size: clamp(52px, 14vw, 66px);
  line-height: 1.07;
  font-weight: 950;
  letter-spacing: 0;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .92);
  text-shadow:
    3px 5px 0 rgba(157, 103, 242, .5),
    0 2px 0 rgba(255, 255, 255, .9),
    0 0 20px rgba(255, 132, 211, .5);
}

.hero h1::before,
.hero h1::after {
  content: "";
  position: absolute;
  top: 25px;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 113, 189, .82), transparent);
}

.hero h1::before {
  left: 32px;
}

.hero h1::after {
  right: 32px;
}

.portrait-card {
  position: relative;
  height: 292px;
  margin: 0 22px 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 32px 32px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(255, 207, 235, .95), rgba(217, 211, 255, .95) 48%, rgba(190, 255, 242, .88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .58),
    0 10px 24px rgba(210, 85, 165, .16),
    0 3px 0 rgba(255, 255, 255, .78);
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 26px 26px 20px 20px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, .45) 48% 49%, transparent 49%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 113, 189, .12) 18px 20px);
  mask-image: linear-gradient(90deg, #000 0 18%, transparent 18% 82%, #000 82% 100%);
  pointer-events: none;
}

.portrait-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -48px;
  width: 230px;
  height: 140px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 214, 236, .45));
  border-radius: 50% 50% 0 0;
  box-shadow: 0 -20px 50px rgba(255, 255, 255, .35);
  pointer-events: none;
}

.portrait-carousel {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.portrait {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 266px;
  height: 286px;
  object-fit: contain;
  object-position: 50% 100%;
  filter: saturate(1.04) contrast(1.02) brightness(1.03) drop-shadow(0 14px 14px rgba(136, 64, 127, .18));
}

.portrait-slide {
  opacity: 0;
  transform: translateX(-50%) scale(1.025);
  filter: saturate(1.02) contrast(1.01) brightness(1.06) blur(1.2px) drop-shadow(0 14px 14px rgba(136, 64, 127, .14));
  transition:
    opacity 1600ms ease-in-out,
    transform 1800ms ease-in-out,
    filter 1600ms ease-in-out;
  will-change: opacity, transform, filter;
}

.portrait-slide.is-active {
  opacity: .88;
  transform: translateX(-50%) scale(1);
  filter: saturate(1.05) contrast(1.02) brightness(1.03) blur(0) drop-shadow(0 14px 14px rgba(136, 64, 127, .18));
}

.portrait-mask {
  position: absolute;
  z-index: 4;
  inset: 15px;
  border-radius: 25px 25px 19px 19px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .2), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08) 42%, rgba(255, 226, 242, .22)),
    linear-gradient(90deg, rgba(255, 170, 220, .18), rgba(190, 255, 242, .22));
  box-shadow: inset 0 0 38px rgba(255, 255, 255, .3);
  pointer-events: none;
}

.circuit {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 120px;
  top: 65px;
  opacity: .45;
  background:
    linear-gradient(90deg, rgba(255, 113, 189, .8) 0 4px, transparent 4px) 0 0 / 13px 100%,
    linear-gradient(rgba(139, 98, 244, .58) 0 3px, transparent 3px) 0 0 / 100% 16px;
}

.circuit-left {
  left: 21px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 38% 100%, 38% 34%, 0 34%);
}

.circuit-right {
  right: 21px;
  transform: scaleX(-1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 38% 100%, 38% 34%, 0 34%);
}

.tag {
  position: absolute;
  z-index: 5;
  min-width: 86px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(180deg, rgba(255, 112, 190, .93), rgba(172, 99, 239, .92));
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  text-shadow: 0 1px 0 rgba(116, 55, 168, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 8px 14px rgba(191, 73, 165, .18);
}

.tag:nth-of-type(even) {
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(180deg, rgba(184, 136, 255, .93), rgba(255, 103, 188, .9));
}

.tag::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: 4px;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, .72);
}

.tag:nth-of-type(even)::after {
  right: auto;
  left: -12px;
}

.tag-1 { left: 18px; top: 54px; }
.tag-2 { right: 18px; top: 54px; }
.tag-3 { left: 15px; top: 119px; }
.tag-4 { right: 17px; top: 119px; }
.tag-5 { left: 20px; top: 184px; }
.tag-6 { right: 19px; top: 184px; }

.info-card {
  position: relative;
  z-index: 3;
  margin: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 22px;
  background: rgba(255, 255, 255, .95);
  box-shadow:
    0 12px 26px rgba(215, 90, 163, .13),
    0 2px 0 rgba(255, 255, 255, .72);
}

.card-title {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  background:
    linear-gradient(90deg, rgba(255, 207, 235, .95), rgba(255, 247, 252, .98) 45%, rgba(220, 210, 255, .92));
  color: #ea50ad;
  font-size: 27px;
  font-weight: 950;
  text-shadow: 2px 2px 0 #fff;
}

.pixel-heart {
  width: 34px;
  height: 29px;
  background: linear-gradient(135deg, #ff4fb8, #ff9bd6);
  clip-path: polygon(12% 0, 36% 0, 36% 13%, 50% 13%, 50% 0, 74% 0, 74% 13%, 88% 13%, 88% 42%, 76% 42%, 76% 57%, 62% 57%, 62% 72%, 50% 72%, 50% 88%, 36% 88%, 36% 72%, 24% 72%, 24% 57%, 12% 57%, 12% 42%, 0 42%, 0 13%, 12% 13%);
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .74));
}

.test-form {
  padding: 0 18px;
}

.form-row {
  height: 65px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(145, 126, 151, .16);
  font-size: 20px;
  color: #2d2634;
}

.form-row:last-child {
  border-bottom: 0;
}

.form-row > span {
  width: 112px;
  flex: 0 0 auto;
  font-weight: 900;
}

.form-row input[type="text"],
.form-row input[type="date"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #5c5361;
  background: transparent;
  font-size: 20px;
}

.form-row input::placeholder {
  color: #9b929f;
}

.gender-row {
  gap: 18px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
}

.radio-label input {
  position: absolute;
  opacity: 0;
}

.radio-label i,
.agree i {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.8px solid var(--rose);
  border-radius: 50%;
  background: #fff;
}

.radio-label input:checked + i,
.agree input:checked + i {
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  border-color: transparent;
}

.radio-label input:checked + i::before,
.agree input:checked + i::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.primary-btn {
  position: relative;
  z-index: 3;
  width: calc(100% - 48px);
  height: 84px;
  margin: 12px 24px 14px;
  overflow: hidden;
  border: 0;
  border-radius: 42px;
  color: #fff;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #ff73c4 0%, #ef4fac 48%, #9a68f5 100%);
  box-shadow:
    inset 0 -6px 0 rgba(255, 255, 255, .25),
    inset 0 2px 0 rgba(255, 255, 255, .42),
    0 8px 10px rgba(187, 67, 154, .24),
    0 0 0 2px rgba(255, 255, 255, .38);
  text-shadow: 0 2px 0 rgba(156, 45, 137, .52);
}

.primary-btn::before,
.primary-btn::after {
  content: "";
  position: absolute;
  inset: auto auto 14px 36px;
  width: 78px;
  height: 2px;
  background: rgba(255, 255, 255, .5);
  transform: rotate(-7deg);
}

.primary-btn::after {
  left: auto;
  right: 35px;
  width: 66px;
  transform: rotate(8deg);
  opacity: .56;
}

.primary-btn:active {
  transform: translateY(1px);
}

.links {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #d04a9f;
  font-size: 16px;
}

.links p {
  margin: 0 18px 13px;
}

.links a {
  color: #8b62f4;
  text-decoration: none;
}

.agree {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  line-height: 1.2;
}

.agree input {
  position: absolute;
  opacity: 0;
}

.agree i {
  width: 22px;
  height: 22px;
}

.order-query {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 11px;
  color: #322838;
  font-size: 17px;
  border-bottom: 1px solid #322838;
}

.order-query::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border-right: 2px solid #322838;
  border-bottom: 2px solid #322838;
  transform: rotate(-45deg);
}

.footer {
  position: relative;
  z-index: 3;
  margin-top: 139px;
  padding: 0 20px;
  text-align: center;
  color: rgba(105, 94, 112, .68);
  font-size: 14px;
  line-height: 1.55;
}

.footer p {
  margin: 6px 0;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  top: 50%;
  max-width: min(350px, calc(100vw - 40px));
  padding: 12px 18px;
  border-radius: 22px;
  background: rgba(54, 39, 61, .88);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.96);
  pointer-events: none;
  transition: .2s ease;
  box-shadow: 0 12px 28px rgba(70, 38, 75, .22);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 380px) {
  .topbar {
    font-size: 14px;
    padding-left: 12px;
  }

  .topbar button {
    padding: 0 10px;
  }

  .portrait-card {
    margin-left: 10px;
    margin-right: 10px;
  }

  .tag {
    min-width: 78px;
    height: 38px;
    font-size: 14px;
  }

  .form-row {
    font-size: 17px;
  }

  .form-row > span {
    width: 98px;
  }

  .form-row input[type="text"],
  .form-row input[type="date"] {
    font-size: 17px;
  }

  .primary-btn {
    font-size: 26px;
  }
}
