:root {
  --app-max-width: 430px;
  --page-pad: clamp(11px, 2.8vw, 13px);
  --section-radius: clamp(12px, 3.7vw, 17px);
  --text-main: #171626;
  --text-sub: #68628a;
  --accent-pink: #f43b86;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
  background: #fff7ff;
  touch-action: manipulation;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 244, 250, 0.92), rgba(252, 238, 255, 0.96)),
    #fff7ff;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.result-image,
.image-viewer img {
  user-select: auto;
  -webkit-touch-callout: default;
}

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

/* App 容器 */
.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  background:
    url("./assets/bg1px.png") top center / 100% 1px repeat-y,
    linear-gradient(180deg, #fff6fb 0%, #fff0fc 47%, #fff7fd 100%);
}

/* Header 区 */
.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  height: clamp(48px, 12.3vw, 53px);
  padding: clamp(12px, 3.1vw, 13px) var(--page-pad) 0;
}

.logo {
  width: min(38.2vw, 164px);
  height: auto;
  flex: 0 1 auto;
}

.logo-enhanced {
  width: min(39.5vw, 170px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.7vw, 12px);
  flex: 0 0 auto;
}

.vip-button {
  width: min(17.15vw, 74px);
  height: auto;
}

.avatar {
  width: min(7.65vw, 33px);
  height: min(7.65vw, 33px);
  border-radius: 999px;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.7vw, 12px);
  padding-top: clamp(4px, 1.2vw, 5px);
}

/* mainpic 主视觉区 */
.hero-section {
  padding: 0 var(--page-pad);
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 890 / 370;
  overflow: hidden;
  border-radius: var(--section-radius);
  box-shadow: 0 0.18rem 0.9rem rgba(218, 139, 214, 0.26);
}

.hero-image {
  width: 100%;
  max-width: none;
  transform: translateY(-4.145%);
}

.hero-create-link {
  position: absolute;
  left: 6.38%;
  top: 71.9%;
  z-index: 2;
  width: 24.2%;
  height: 15.4%;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}

.hero-create-link::before,
.hero-create-link::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.hero-create-link::before {
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    0 0 0.35rem rgba(255, 255, 255, 0.68),
    0 0.12rem 0.5rem rgba(244, 59, 134, 0.35);
  animation: heroCtaPulse 1.8s ease-in-out infinite;
}

.hero-create-link::after {
  inset: 5% 10%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.52) 46%, transparent 70%);
  opacity: 0;
  transform: translateX(-90%);
  animation: heroCtaShine 2.6s ease-in-out infinite;
}

.hero-create-link:active {
  transform: scale(0.96);
}

@keyframes heroCtaPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.045);
  }
}

@keyframes heroCtaShine {
  0%,
  45% {
    opacity: 0;
    transform: translateX(-90%);
  }

  58% {
    opacity: 0.85;
  }

  75%,
  100% {
    opacity: 0;
    transform: translateX(95%);
  }
}

/* 通用内容区 */
.content-block {
  width: calc(100% - (var(--page-pad) * 2));
  margin: 0 var(--page-pad);
  padding: clamp(10px, 2.9vw, 13px) clamp(3px, 1.0vw, 5px) clamp(9px, 2.7vw, 12px);
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 0.12rem 0.6rem rgba(226, 156, 218, 0.16);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(3px, 1vw, 5px) clamp(8px, 2.2vw, 9px);
}

.section-title-row h2 {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  font-size: clamp(13px, 3.55vw, 15px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.section-title-row h2 img {
  width: clamp(8px, 2.15vw, 9px);
  height: clamp(8px, 2.15vw, 9px);
  flex: 0 0 auto;
}

.section-title-row h2 .art-section-title {
  width: auto;
  height: clamp(24px, 6.15vw, 27px);
  max-width: none;
}

.section-title-row a {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  color: #69628c;
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.section-title-row a span {
  color: #77709b;
  font-size: 1.55em;
  line-height: 0.65;
  font-weight: 400;
}

.horizontal-list {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(6px, 1.55vw, 7px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 clamp(1px, 0.4vw, 2px);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

.horizontal-list > img,
.horizontal-list > article,
.horizontal-list > a {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.scene-list a,
.partner-list a {
  display: block;
}

.scene-list img {
  width: clamp(73px, 18.8vw, 81px);
  border-radius: 0.42rem;
}

.partner-list img {
  width: clamp(53px, 13.82vw, 59px);
  border-radius: 0.36rem;
}

.goods-list {
  gap: clamp(6px, 1.8vw, 8px);
}

.goods-card {
  width: clamp(62px, 16.9vw, 72px);
  overflow: hidden;
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(245, 224, 241, 0.9);
}

.goods-card img {
  width: 100%;
  aspect-ratio: 129 / 86;
  object-fit: cover;
  border-radius: 0.42rem 0.42rem 0 0;
}

.goods-card h3,
.goods-card p {
  margin: 0;
  text-align: center;
  letter-spacing: 0;
  white-space: nowrap;
}

.goods-card h3 {
  padding-top: 0.28rem;
  color: #191829;
  font-size: clamp(9px, 2.55vw, 11px);
  line-height: 1.28;
  font-weight: 700;
}

.goods-card p {
  padding: 0.1rem 0.12rem 0.42rem;
  color: #746d9b;
  font-size: clamp(7.5px, 2.08vw, 9px);
  line-height: 1.34;
  font-weight: 500;
}

.partners-block,
.goods-block {
  padding-bottom: clamp(8px, 2.2vw, 10px);
}

/* Bottom Tab Bar */
.bottom-tab {
  position: fixed;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  left: 50%;
  bottom: max(5px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100% - (var(--page-pad) * 2)), 406px);
  height: clamp(47px, 12.72vw, 55px);
  max-width: calc(var(--app-max-width) - (var(--page-pad) * 2));
  padding: 0.22rem 0.5rem 0.18rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.92),
    0 -0.08rem 0.55rem rgba(214, 156, 214, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tab-item {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  color: #8d8abd;
  font-size: clamp(8px, 2.15vw, 9px);
  line-height: 1;
  font-weight: 500;
}

.tab-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-item.is-active {
  color: var(--accent-pink);
}

/* 我的页 */
.my-shell {
  background:
    url("./assets/bg1px.png") top center / 100% 1px repeat-y,
    linear-gradient(180deg, #fff8fc 0%, #fff3fc 42%, #fff 100%);
}

.my-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: clamp(13px, 3.5vw, 16px) var(--page-pad) 0;
}

.my-title-copy {
  flex: 0 0 auto;
}

.my-title-copy h1 {
  margin: 0;
  color: #f3458b;
  font-size: clamp(23px, 6.25vw, 27px);
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: 0;
}

.my-title-copy h1 span {
  margin-left: 0.18rem;
  color: #f463a2;
  font-size: 0.68em;
  font-weight: 700;
}

.my-title-copy p {
  margin: clamp(7px, 1.9vw, 8px) 0 0;
  color: #746e9e;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.my-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3.1vw, 14px);
  padding-top: clamp(4px, 1.2vw, 5px);
}

.my-vip-button {
  width: min(17.15vw, 74px);
}

.bell-button {
  position: relative;
  display: grid;
  width: clamp(22px, 5.68vw, 24px);
  height: clamp(22px, 5.68vw, 24px);
  place-items: center;
  padding: 0;
  border: 0;
  color: #6d668f;
  background: transparent;
}

.bell-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bell-button span {
  position: absolute;
  top: -0.45rem;
  right: -0.35rem;
  display: grid;
  width: clamp(14px, 3.85vw, 16px);
  height: clamp(14px, 3.85vw, 16px);
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #f65498;
  font-size: clamp(9px, 2.35vw, 10px);
  line-height: 1;
  font-weight: 700;
}

.cart-icon-button {
  position: relative;
  display: grid;
  width: clamp(24px, 6.35vw, 27px);
  height: clamp(24px, 6.35vw, 27px);
  place-items: center;
  color: #6d668f;
}

.cart-icon-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-icon-button span {
  position: absolute;
  top: -0.48rem;
  right: -0.42rem;
  display: grid;
  min-width: clamp(14px, 3.85vw, 16px);
  height: clamp(14px, 3.85vw, 16px);
  padding: 0 0.22rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #f65498;
  font-size: clamp(9px, 2.35vw, 10px);
  line-height: 1;
  font-weight: 750;
}

.cart-icon-button span[hidden] {
  display: none;
}

.my-content {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 2.4vw, 10px);
  padding: clamp(13px, 3.6vw, 16px) var(--page-pad) 0;
}

.profile-card,
.my-panel {
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    0 0.14rem 0.62rem rgba(230, 157, 218, 0.15);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(74px, 20.3vw, 87px) 1fr;
  min-height: clamp(108px, 28.5vw, 123px);
  overflow: hidden;
  padding: clamp(16px, 4.25vw, 18px) clamp(14px, 3.85vw, 17px);
}

.profile-avatar-wrap {
  position: relative;
  align-self: center;
  width: clamp(68px, 17.9vw, 77px);
}

.profile-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  filter: drop-shadow(0 0.08rem 0.25rem rgba(215, 142, 197, 0.24));
}

.profile-edit-button {
  position: absolute;
  right: -0.1rem;
  bottom: 0.15rem;
  width: clamp(21px, 5.45vw, 23px);
  height: clamp(21px, 5.45vw, 23px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.profile-edit {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-info {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: clamp(136px, 37vw, 159px);
  align-self: center;
  padding-left: clamp(5px, 1.55vw, 7px);
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-name-row h1 {
  margin: 0;
  color: #17131f;
  font-size: clamp(19px, 5.15vw, 22px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.profile-name-row h1 span {
  color: #ffb37c;
  font-size: 0.8em;
}

.profile-name-row em {
  display: inline-flex;
  align-items: center;
  height: clamp(18px, 4.6vw, 20px);
  padding: 0 0.55rem;
  border-radius: 999px;
  color: #f34c91;
  background: #ffe4f1;
  font-size: clamp(11px, 2.9vw, 12px);
  font-style: normal;
  line-height: 1;
  font-weight: 600;
}

.profile-info p {
  margin: clamp(11px, 3vw, 13px) 0 0;
  color: #746e9e;
  font-size: clamp(12px, 3.25vw, 14px);
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-id {
  margin-top: clamp(13px, 3.5vw, 15px);
  color: #746e9e;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1;
}

.profile-photos {
  position: absolute;
  right: clamp(11px, 2.9vw, 13px);
  top: clamp(21px, 5.6vw, 24px);
  z-index: 1;
  width: min(29.0vw, 125px);
  height: auto;
}

.member-banner img {
  width: 100%;
  border-radius: var(--section-radius);
  box-shadow: 0 0.14rem 0.56rem rgba(82, 47, 128, 0.18);
}

.my-panel {
  padding: clamp(13px, 3.55vw, 15px) clamp(12px, 3.3vw, 14px);
}

.my-panel h2,
.orders-title-row h2 {
  margin: 0;
  color: #17131f;
  font-size: clamp(16px, 4.25vw, 18px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  row-gap: clamp(13px, 3.5vw, 15px);
  padding-top: clamp(14px, 3.8vw, 16px);
}

/* 我的服务子页面 */
.service-header {
  display: grid;
  grid-template-columns: clamp(27px, 7.4vw, 32px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(10px, 2.7vw, 12px);
  padding: clamp(16px, 4.25vw, 18px) var(--page-pad) 0;
}

.service-content {
  padding: clamp(18px, 4.8vw, 21px) var(--page-pad) 0;
}

.service-panel {
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0.14rem 0.62rem rgba(230, 157, 218, 0.15);
  padding: clamp(16px, 4.3vw, 18px);
}

.address-card {
  display: grid;
  gap: clamp(7px, 1.9vw, 8px);
  color: #746e9e;
  font-size: clamp(12px, 3.15vw, 13px);
  line-height: 1.45;
}

.address-card strong,
.contact-panel strong {
  color: #17131f;
  font-size: clamp(18px, 4.75vw, 20px);
  line-height: 1;
}

.address-card em {
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #f43b86;
  background: #ffe4f1;
  font-size: clamp(10px, 2.65vw, 11px);
  font-style: normal;
}

.service-primary {
  width: 100%;
  height: clamp(40px, 10.4vw, 45px);
  margin-top: clamp(16px, 4.3vw, 18px);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f72b83 0%, #ff4c97 53%, #fa3a8b 100%);
  font: inherit;
  font-size: clamp(14px, 3.7vw, 16px);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  gap: clamp(10px, 2.7vw, 12px);
  color: #746e9e;
  text-align: center;
}

.contact-panel p,
.contact-panel span {
  margin: 0;
  font-size: clamp(12px, 3.15vw, 13px);
}

.feedback-form {
  display: grid;
  gap: clamp(13px, 3.5vw, 15px);
}

.feedback-form label {
  display: grid;
  gap: 0.45rem;
  color: #17131f;
  font-size: clamp(12px, 3.15vw, 13px);
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(220, 205, 234, 0.8);
  border-radius: 0.62rem;
  padding: 0.72rem 0.78rem;
  color: #17131f;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: clamp(12px, 3.15vw, 13px);
}

.feedback-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.qa-list {
  display: grid;
  gap: clamp(14px, 3.7vw, 16px);
}

.qa-list article {
  padding-bottom: clamp(12px, 3.2vw, 14px);
  border-bottom: 1px solid rgba(223, 212, 234, 0.64);
}

.qa-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.qa-list h2,
.about-article h2 {
  margin: 0 0 0.45rem;
  color: #17131f;
  font-size: clamp(14px, 3.7vw, 16px);
  line-height: 1.25;
}

.qa-list p,
.about-article p {
  margin: 0;
  color: #746e9e;
  font-size: clamp(12px, 3.15vw, 13px);
  line-height: 1.55;
}

.about-article img {
  width: min(48vw, 206px);
  margin-bottom: clamp(16px, 4.2vw, 18px);
}

.simple-list {
  padding: 0;
  overflow: hidden;
}

.simple-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3.7vw, 16px) clamp(16px, 4.3vw, 18px);
  border-bottom: 1px solid rgba(223, 212, 234, 0.64);
  color: #17131f;
  font-size: clamp(13px, 3.45vw, 15px);
}

.simple-list a:last-child {
  border-bottom: 0;
}

.simple-list em {
  color: #8d86b8;
  font-style: normal;
  font-size: clamp(12px, 3.15vw, 13px);
}

/* 消息通知页 */
.messages-content {
  padding-top: clamp(16px, 4.3vw, 18px);
}

.messages-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.message-item {
  display: grid;
  grid-template-columns: clamp(42px, 11.2vw, 48px) 1fr;
  gap: clamp(10px, 2.7vw, 12px);
  align-items: start;
  padding: clamp(15px, 4vw, 17px) clamp(15px, 4vw, 17px);
  border-bottom: 1px solid rgba(223, 212, 234, 0.64);
}

.message-item:last-child {
  border-bottom: 0;
}

.message-item span {
  display: inline-flex;
  justify-content: center;
  min-width: clamp(38px, 10vw, 43px);
  padding: 0.27rem 0.35rem;
  border-radius: 999px;
  color: #8d86b8;
  background: #f3edf8;
  font-size: clamp(10px, 2.65vw, 11px);
  line-height: 1;
  font-weight: 650;
}

.message-item.is-unread span {
  color: #fff;
  background: #f43b86;
}

.message-item p {
  margin: 0;
  color: #322d48;
  font-size: clamp(13px, 3.45vw, 15px);
  line-height: 1.5;
}

.message-item:not(.is-unread) p {
  color: #756f9e;
}

/* 用户资料编辑页 */
.profile-edit-content {
  padding-top: clamp(16px, 4.3vw, 18px);
}

.profile-edit-panel {
  display: grid;
  gap: clamp(16px, 4.3vw, 18px);
}

.profile-edit-avatar {
  display: grid;
  grid-template-columns: 1fr clamp(76px, 20.5vw, 88px);
  align-items: center;
  gap: clamp(12px, 3.3vw, 14px);
  color: #17131f;
  font-size: clamp(14px, 3.7vw, 16px);
  font-weight: 750;
}

.profile-edit-avatar input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-edit-avatar img {
  grid-column: 2;
  grid-row: 1 / 3;
  width: clamp(76px, 20.5vw, 88px);
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0.16rem 0.58rem rgba(215, 142, 197, 0.22);
}

.profile-edit-avatar em {
  grid-column: 1;
  color: #8d86b8;
  font-size: clamp(11px, 2.95vw, 12px);
  line-height: 1;
  font-style: normal;
  font-weight: 500;
}

.profile-edit-field {
  display: grid;
  gap: clamp(8px, 2.2vw, 10px);
  color: #17131f;
  font-size: clamp(13px, 3.45vw, 15px);
  font-weight: 750;
}

.profile-edit-field input,
.profile-edit-field textarea {
  width: 100%;
  border: 1px solid rgba(220, 205, 234, 0.82);
  border-radius: clamp(10px, 2.9vw, 12px);
  padding: clamp(11px, 3vw, 13px);
  color: #17131f;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: clamp(13px, 3.45vw, 15px);
  font-weight: 500;
  outline: none;
}

.profile-edit-field textarea {
  min-height: clamp(92px, 24.5vw, 105px);
  line-height: 1.45;
  resize: none;
}

.profile-edit-field input:focus,
.profile-edit-field textarea:focus {
  border-color: rgba(244, 59, 134, 0.52);
  box-shadow: 0 0 0 3px rgba(244, 59, 134, 0.08);
}

.profile-save-button {
  margin-top: clamp(5px, 1.4vw, 6px);
}

/* 会员中心页 */
.member-shell {
  padding-bottom: calc(6.2rem + env(safe-area-inset-bottom));
}

.member-header {
  grid-template-columns: clamp(27px, 7.4vw, 32px) minmax(0, 1fr) clamp(31px, 8.1vw, 35px);
  align-items: center;
}

.member-content {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3.3vw, 14px);
  padding: clamp(18px, 4.8vw, 21px) var(--page-pad) 0;
}

.member-hero-card {
  display: flex;
  min-height: clamp(150px, 39.5vw, 170px);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: clamp(17px, 4.7vw, 20px);
  padding: clamp(18px, 4.8vw, 21px);
  color: #ffe8c8;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 226, 183, 0.32), transparent 30%),
    linear-gradient(135deg, #241547 0%, #4a3277 54%, #705493 100%);
  box-shadow: 0 0.45rem 1.15rem rgba(66, 37, 112, 0.2);
}

.member-crown {
  display: grid;
  width: clamp(34px, 9vw, 39px);
  height: clamp(34px, 9vw, 39px);
  place-items: center;
  border-radius: 0.8rem;
  color: #3a245e;
  background: linear-gradient(135deg, #ffe8c6, #ffc88e);
  font-size: clamp(22px, 5.8vw, 25px);
  line-height: 1;
}

.member-hero-card h2 {
  margin: clamp(13px, 3.5vw, 15px) 0 0;
  color: #fff4df;
  font-size: clamp(25px, 6.65vw, 29px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.member-hero-card p {
  max-width: 18rem;
  margin: clamp(9px, 2.45vw, 11px) 0 0;
  color: rgba(255, 238, 213, 0.86);
  font-size: clamp(12px, 3.15vw, 13px);
  line-height: 1.45;
}

.member-hero-card strong {
  align-self: flex-end;
  color: #fff4df;
  font-size: clamp(13px, 3.45vw, 15px);
  line-height: 1;
  font-weight: 650;
}

.member-panel {
  border-radius: var(--section-radius);
  padding: clamp(15px, 4vw, 17px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0.14rem 0.62rem rgba(230, 157, 218, 0.15);
}

.member-panel h2 {
  margin: 0 0 clamp(14px, 3.75vw, 16px);
  color: #17131f;
  font-size: clamp(17px, 4.45vw, 19px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0;
}

.member-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2.7vw, 12px);
}

.member-benefits article {
  min-height: clamp(82px, 21.8vw, 94px);
  border-radius: clamp(12px, 3.4vw, 15px);
  padding: clamp(12px, 3.2vw, 14px);
  background: linear-gradient(180deg, rgba(255, 247, 252, 0.95), rgba(252, 241, 255, 0.9));
}

.member-benefits span {
  display: grid;
  width: clamp(24px, 6.4vw, 28px);
  height: clamp(24px, 6.4vw, 28px);
  place-items: center;
  border-radius: 999px;
  color: #f43b86;
  background: #ffe4f1;
  font-size: clamp(12px, 3.15vw, 13px);
  line-height: 1;
  font-weight: 750;
}

.member-benefits strong {
  display: block;
  margin-top: clamp(9px, 2.45vw, 10px);
  color: #17131f;
  font-size: clamp(13px, 3.45vw, 15px);
  line-height: 1;
  font-weight: 750;
}

.member-benefits p {
  margin: 0.42rem 0 0;
  color: #756f9e;
  font-size: clamp(11px, 2.95vw, 12px);
  line-height: 1.25;
}

.member-plans {
  display: grid;
  gap: clamp(10px, 2.7vw, 12px);
}

.member-plan {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(219, 205, 235, 0.9);
  border-radius: clamp(12px, 3.4vw, 15px);
  padding: clamp(13px, 3.45vw, 15px);
  color: #17131f;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  text-align: left;
}

.member-plan.is-selected {
  border-color: rgba(244, 59, 134, 0.72);
  background: linear-gradient(180deg, #fff6fb 0%, #fff0f8 100%);
  box-shadow: 0 0.18rem 0.75rem rgba(244, 59, 134, 0.14);
}

.member-plan mark {
  position: absolute;
  top: -0.55rem;
  right: 0.88rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  color: #fff;
  background: #f43b86;
  font-size: clamp(10px, 2.65vw, 11px);
  line-height: 1;
}

.member-plan span {
  font-size: clamp(14px, 3.7vw, 16px);
  line-height: 1;
  font-weight: 750;
}

.member-plan strong {
  color: #f43b86;
  font-size: clamp(18px, 4.75vw, 20px);
  line-height: 1;
  font-weight: 800;
}

.member-plan em {
  grid-column: 1 / -1;
  color: #756f9e;
  font-size: clamp(11px, 2.95vw, 12px);
  line-height: 1;
  font-style: normal;
}

.member-pay-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: clamp(12px, 3.4vw, 15px) var(--page-pad) calc(clamp(12px, 3.4vw, 15px) + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 247, 253, 0), rgba(255, 247, 253, 0.96) 24%, rgba(255, 247, 253, 0.98) 100%);
}

.member-pay-button {
  width: 100%;
  height: clamp(48px, 12.9vw, 55px);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f72b83 0%, #ff4c97 53%, #fa3a8b 100%);
  box-shadow: 0 0.36rem 0.9rem rgba(244, 59, 134, 0.24);
  font: inherit;
  font-size: clamp(16px, 4.3vw, 18px);
  line-height: 1;
  font-weight: 750;
}

.services-grid a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.34rem;
  color: #756f9e;
}

.service-icon {
  display: grid;
  width: clamp(27px, 7.1vw, 30px);
  height: clamp(27px, 7.1vw, 30px);
  place-items: center;
  color: #9189bd;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-grid em {
  font-size: clamp(10px, 2.72vw, 12px);
  line-height: 1;
  font-style: normal;
  white-space: nowrap;
}

.orders-panel {
  padding-bottom: clamp(8px, 2.3vw, 10px);
}

.orders-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(11px, 3vw, 13px);
}

.orders-title-row a {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  color: #756f9e;
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
  white-space: nowrap;
}

.orders-title-row a span {
  font-size: 1.45em;
  line-height: 0.7;
}

.order-item {
  display: block;
  padding: clamp(9px, 2.55vw, 11px) 0;
  border-bottom: 1px solid rgba(223, 212, 234, 0.64);
}

.order-summary {
  display: grid;
  grid-template-columns: clamp(52px, 13.7vw, 59px) 1fr clamp(68px, 17.9vw, 77px);
  width: 100%;
  gap: clamp(10px, 2.75vw, 12px);
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.order-summary > img {
  width: clamp(52px, 13.7vw, 59px);
  height: clamp(52px, 13.7vw, 59px);
  border-radius: 0.28rem;
  object-fit: cover;
}

.order-main {
  min-width: 0;
}

.order-main strong:first-child {
  display: block;
  margin: 0 0 0.55rem;
  color: #15131e;
  font-size: clamp(13px, 3.45vw, 15px);
  line-height: 1.05;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-main em,
.order-main time {
  display: block;
  color: #756f9e;
  font-size: clamp(10px, 2.85vw, 12px);
  line-height: 1.05;
  font-style: normal;
}

.order-main em {
  margin: 0 0 0.45rem;
}

.order-main b {
  margin-left: 0.55rem;
  color: #17131f;
  font-weight: 500;
}

.order-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: clamp(11px, 3vw, 13px);
}

.status {
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1;
  font-weight: 650;
}

.status.pink {
  color: #f34088;
}

.status.purple {
  color: #8b58ef;
}

.order-side small {
  display: grid;
  place-items: center;
  width: clamp(58px, 15.45vw, 66px);
  height: clamp(22px, 5.75vw, 25px);
  border: 1px solid #ffb7d9;
  border-radius: 999px;
  color: #ef3f8b;
  background: rgba(255, 255, 255, 0.55);
  font-size: clamp(10px, 2.72vw, 12px);
  line-height: 1;
  white-space: nowrap;
}

.order-side small.muted {
  border-color: #d7cbe7;
  color: #756f9e;
}

.order-detail {
  display: grid;
  gap: clamp(10px, 2.7vw, 12px);
  margin-top: clamp(11px, 3vw, 13px);
  padding: clamp(12px, 3.3vw, 14px);
  border-radius: clamp(12px, 3.3vw, 14px);
  background: rgba(255, 248, 252, 0.76);
  box-shadow: inset 0 0 0 1px rgba(247, 226, 242, 0.9);
}

.order-detail[hidden] {
  display: none;
}

.order-item.is-open .order-summary {
  border-radius: clamp(10px, 2.7vw, 12px);
}

.order-detail-head,
.order-price-box span,
.order-price-box b,
.order-info-list p {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.order-detail-head {
  padding-bottom: clamp(8px, 2.15vw, 9px);
  border-bottom: 1px solid rgba(223, 212, 234, 0.64);
  color: #756f9e;
  font-size: clamp(10px, 2.75vw, 12px);
  line-height: 1.2;
}

.order-detail-head strong {
  color: #f34088;
  font-weight: 750;
  white-space: nowrap;
}

.order-product-card {
  display: grid;
  grid-template-columns: clamp(54px, 14.2vw, 61px) minmax(0, 1fr) auto;
  gap: clamp(10px, 2.7vw, 12px);
  align-items: center;
  padding: clamp(9px, 2.45vw, 10px);
  border-radius: clamp(10px, 2.7vw, 12px);
  background: rgba(255, 255, 255, 0.7);
}

.order-product-card img {
  width: clamp(54px, 14.2vw, 61px);
  height: clamp(54px, 14.2vw, 61px);
  border-radius: clamp(7px, 1.9vw, 8px);
  object-fit: cover;
}

.order-product-card h3,
.order-product-card p,
.order-product-card em {
  margin: 0;
}

.order-product-card h3 {
  color: #15131e;
  font-size: clamp(12px, 3.25vw, 14px);
  line-height: 1.15;
}

.order-product-card p,
.order-product-card em {
  display: block;
  margin-top: 0.34rem;
  color: #756f9e;
  font-size: clamp(10px, 2.65vw, 11px);
  line-height: 1.3;
  font-style: normal;
}

.order-product-card > strong {
  color: #756f9e;
  font-size: clamp(11px, 2.95vw, 13px);
}

.order-price-box,
.order-info-list {
  display: grid;
  gap: clamp(7px, 1.9vw, 8px);
}

.order-price-box {
  padding: clamp(9px, 2.45vw, 10px) clamp(10px, 2.7vw, 12px);
  border-radius: clamp(10px, 2.7vw, 12px);
  background: rgba(255, 255, 255, 0.7);
}

.order-price-box span,
.order-price-box b {
  color: #756f9e;
  font-size: clamp(10px, 2.75vw, 12px);
  line-height: 1;
  font-weight: 600;
}

.order-price-box strong {
  color: #17131f;
  font-weight: 750;
}

.order-price-box b {
  padding-top: clamp(7px, 1.9vw, 8px);
  border-top: 1px solid rgba(223, 212, 234, 0.58);
  color: #15131e;
}

.order-price-box b strong {
  color: #f34088;
  font-size: 1.08em;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(5px, 1.35vw, 6px);
}

.order-progress span {
  position: relative;
  display: grid;
  min-height: clamp(28px, 7.45vw, 32px);
  place-items: center;
  border-radius: 999px;
  color: #9b94bd;
  background: #f1ecf6;
  font-size: clamp(9px, 2.42vw, 10px);
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
}

.order-progress span.is-done {
  color: #f34088;
  background: #ffe4f1;
}

.order-progress span.is-current {
  color: #fff;
  background: linear-gradient(135deg, #ff66aa 0%, #f12c82 100%);
}

.order-logistics {
  padding: clamp(10px, 2.7vw, 12px);
  border-radius: clamp(10px, 2.7vw, 12px);
  background: rgba(255, 255, 255, 0.7);
}

.order-logistics h3,
.order-logistics p,
.order-logistics time,
.order-info-list p {
  margin: 0;
}

.order-logistics h3 {
  color: #15131e;
  font-size: clamp(12px, 3.25vw, 14px);
  line-height: 1;
}

.order-logistics p,
.order-logistics time,
.order-info-list p {
  color: #756f9e;
  font-size: clamp(10px, 2.75vw, 12px);
  line-height: 1.45;
}

.order-logistics p {
  margin-top: 0.55rem;
}

.order-logistics time {
  display: block;
  margin-top: 0.35rem;
}

.order-info-list {
  padding: 0 clamp(3px, 0.9vw, 4px);
}

.order-info-list span {
  flex: 0 0 clamp(54px, 14.5vw, 62px);
  color: #9b94bd;
}

.order-info-list strong {
  min-width: 0;
  color: #4b4667;
  font-weight: 600;
  text-align: right;
}

.order-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2.15vw, 9px);
}

.order-detail-actions a {
  display: grid;
  height: clamp(32px, 8.5vw, 37px);
  place-items: center;
  border: 1px solid #ffb7d9;
  border-radius: 999px;
  color: #ef3f8b;
  background: rgba(255, 255, 255, 0.62);
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
  font-weight: 700;
}

.more-orders {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  padding: clamp(13px, 3.55vw, 15px) 0 clamp(4px, 1.2vw, 5px);
  color: #756f9e;
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
}

/* 创作页 */
.create-shell {
  background:
    url("./assets/bg1px.png") top center / 100% 1px repeat-y,
    linear-gradient(180deg, #fff8fc 0%, #fff3fc 48%, #fff 100%);
}

.create-header-avatar {
  width: min(7.65vw, 33px);
  height: min(7.65vw, 33px);
}

.create-content {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.75vw, 12px);
  padding: clamp(14px, 3.85vw, 17px) var(--page-pad) 0;
}

.create-panel {
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0.14rem 0.62rem rgba(230, 157, 218, 0.15);
}

.steps-panel {
  padding: clamp(15px, 4vw, 17px) clamp(13px, 3.55vw, 15px);
}

.steps-panel h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: #17131f;
  font-size: clamp(16px, 4.25vw, 18px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0;
}

.steps-panel h2 span {
  color: #f64a91;
  font-size: 0.8em;
}

.steps-flow {
  display: grid;
  grid-template-columns: 1fr clamp(28px, 7.7vw, 33px) 1fr clamp(28px, 7.7vw, 33px) 1fr;
  align-items: end;
  column-gap: clamp(4px, 1.1vw, 5px);
  padding-top: clamp(18px, 4.9vw, 21px);
}

.steps-flow-compact {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  column-gap: clamp(8px, 2.2vw, 10px);
  padding-top: clamp(18px, 4.9vw, 21px);
}

.step-item {
  min-width: 0;
}

.step-copy {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 1.35vw, 6px);
  min-height: clamp(42px, 11.3vw, 48px);
}

.step-copy strong {
  display: grid;
  flex: 0 0 auto;
  width: clamp(18px, 4.85vw, 21px);
  height: clamp(18px, 4.85vw, 21px);
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1;
  font-weight: 750;
}

.step-pink .step-copy strong {
  background: linear-gradient(135deg, #ff75b4, #ef1f77);
}

.step-purple .step-copy strong {
  background: linear-gradient(135deg, #a78aff, #7256eb);
}

.step-copy h3,
.step-copy p {
  margin: 0;
  white-space: nowrap;
}

.step-copy h3 {
  color: #17131f;
  font-size: clamp(12px, 3.3vw, 14px);
  line-height: 1;
  font-weight: 750;
}

.step-copy p {
  padding-top: 0.55rem;
  color: #756f9e;
  font-size: clamp(9px, 2.55vw, 11px);
  line-height: 1;
  font-weight: 500;
}

.step-visual {
  display: grid;
  width: clamp(54px, 14.25vw, 61px);
  height: clamp(54px, 14.25vw, 61px);
  margin: clamp(12px, 3.2vw, 14px) auto 0;
  place-items: center;
  border-radius: clamp(11px, 3vw, 13px);
  background: rgba(255, 247, 253, 0.86);
  box-shadow: 0 0.13rem 0.55rem rgba(223, 162, 218, 0.14);
}

.step-visual svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-pink .step-visual {
  color: #f23b86;
}

.step-purple .step-visual {
  color: #8465ee;
}

.step-dots {
  align-self: center;
  height: 0.2rem;
  margin-top: clamp(45px, 12vw, 52px);
  border-radius: 999px;
  background-size: 0.32rem 0.2rem;
  background-repeat: repeat-x;
}

.pink-dots {
  background-image: radial-gradient(circle, #ff93c7 42%, transparent 45%);
}

.purple-dots {
  background-image: radial-gradient(circle, #a789ff 42%, transparent 45%);
}

.upload-card {
  display: grid;
  grid-template-columns: clamp(111px, 29vw, 125px) 1fr;
  gap: clamp(11px, 3vw, 13px);
  align-items: center;
  min-height: clamp(175px, 46.2vw, 199px);
  overflow: hidden;
  padding: clamp(16px, 4.3vw, 18px) clamp(14px, 3.8vw, 16px);
}

.sample-polaroid {
  width: clamp(104px, 27.6vw, 119px);
  height: auto;
  justify-self: center;
}

.upload-copy {
  min-width: 0;
  text-align: center;
}

.upload-copy h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  color: #17131f;
  font-size: clamp(16px, 4.35vw, 19px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0;
}

.upload-copy h2 span {
  color: #f64a91;
  font-size: 0.72em;
}

.upload-copy p {
  margin: clamp(8px, 2.25vw, 10px) 0 clamp(16px, 4.25vw, 18px);
  color: #756f9e;
  font-size: clamp(10px, 2.85vw, 12px);
  line-height: 1;
  font-weight: 500;
}

.upload-box {
  position: relative;
  display: flex;
  width: 100%;
  min-height: clamp(88px, 23.2vw, 100px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(13px, 3.45vw, 15px) 0.7rem;
  border: 1px dashed currentColor;
  border-radius: clamp(11px, 3vw, 13px);
  background: rgba(255, 255, 255, 0.42);
  font: inherit;
  overflow: hidden;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.upload-box .upload-plus {
  width: clamp(43px, 11.35vw, 49px);
  height: clamp(43px, 11.35vw, 49px);
  flex: 0 0 auto;
  margin-bottom: clamp(14px, 3.75vw, 16px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.upload-box .upload-plus:last-child {
  margin-bottom: 0;
}

.upload-box.has-preview {
  padding: 0;
  border-style: solid;
  color: rgba(244, 84, 154, 0.24);
  background: rgba(255, 255, 255, 0.66);
}

.upload-box.has-preview .upload-plus {
  opacity: 0;
  transform: scale(0.78);
}

.upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-box strong,
.upload-box em {
  display: block;
  color: #756f9e;
  line-height: 1;
  white-space: nowrap;
}

.upload-box strong {
  font-size: clamp(10px, 2.85vw, 12px);
  font-weight: 650;
}

.upload-box em {
  margin-top: clamp(11px, 3vw, 13px);
  font-size: clamp(8px, 2.35vw, 10px);
  font-style: normal;
}

.pink-upload {
  color: rgba(244, 84, 154, 0.42);
}

.purple-upload {
  color: rgba(138, 102, 240, 0.35);
}

.next-button {
  display: block;
  width: min(76.5vw, 329px);
  margin: clamp(3px, 0.8vw, 4px) auto clamp(10px, 2.8vw, 12px);
  padding: 0;
  border: 0;
  background: transparent;
}

.next-button img {
  width: 100%;
  border-radius: 999px;
  filter: drop-shadow(0 0.14rem 0.42rem rgba(242, 59, 134, 0.18));
}

.flow-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92.2vw, 396px);
  aspect-ratio: 867 / 102;
  margin: clamp(8px, 2.2vw, 10px) auto 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f72b83 0%, #ff4c97 53%, #fa3a8b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0.18rem 0.58rem rgba(242, 59, 134, 0.18);
  font-size: clamp(16px, 4.25vw, 18px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0;
}

/* 创作流程页：步骤 2 / 步骤 3 */
.flow-shell {
  min-height: 100vh;
  padding-bottom: clamp(18px, 4.8vw, 21px);
  background:
    url("./assets/bg1px.png") top center / 100% 1px repeat-y,
    linear-gradient(180deg, #fff8fc 0%, #fff3fc 45%, #fff 100%);
}

.flow-header {
  display: grid;
  grid-template-columns: clamp(27px, 7.4vw, 32px) minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(10px, 2.7vw, 12px);
  padding: clamp(16px, 4.25vw, 18px) var(--page-pad) 0;
}

.flow-back {
  display: grid;
  width: clamp(27px, 7.4vw, 32px);
  height: clamp(27px, 7.4vw, 32px);
  place-items: center;
  border-radius: 999px;
  color: #f23686;
  background: rgba(255, 237, 247, 0.94);
}

.flow-back svg {
  width: 64%;
  height: 64%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-title-copy {
  min-width: 0;
}

.flow-title-copy h1 {
  color: #f23283;
  font-size: clamp(26px, 7.05vw, 30px);
  line-height: 0.96;
}

.flow-title-copy p {
  overflow: hidden;
  color: #746e9e;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 650;
  text-overflow: ellipsis;
}

.flow-actions {
  gap: clamp(9px, 2.5vw, 11px);
  padding-top: 0;
}

.flow-content {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 4.9vw, 21px);
  padding: clamp(21px, 5.55vw, 24px) var(--page-pad) 0;
}

.flow-progress-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  min-height: clamp(39px, 10.4vw, 45px);
  overflow: hidden;
  padding: clamp(9px, 2.45vw, 11px) clamp(9px, 2.4vw, 10px);
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    0 0.18rem 0.72rem rgba(230, 157, 218, 0.13);
}

.flow-progress-card i {
  display: none;
}

.flow-progress-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: clamp(5px, 1.35vw, 6px);
  white-space: nowrap;
}

.flow-progress-item:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: max(-18px, -4.2vw);
  width: clamp(28px, 7.4vw, 32px);
  height: 1px;
  content: "";
  background: rgba(177, 172, 202, 0.26);
  transform: translateY(-50%);
}

.flow-progress-item span {
  display: grid;
  width: clamp(19px, 5.2vw, 22px);
  height: clamp(19px, 5.2vw, 22px);
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1;
  font-weight: 780;
}

.flow-progress-item strong {
  min-width: 0;
  overflow: hidden;
  color: #181522;
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
  font-weight: 750;
  text-overflow: ellipsis;
}

.flow-progress-item.is-done span,
.flow-progress-item.is-current span {
  background: linear-gradient(135deg, #ff5eac 0%, #ef1f77 100%);
}

.flow-progress-item.is-pending span {
  color: #fff;
  background: #e8e4f0;
}

.flow-progress-item.is-pending strong {
  color: #9b94bd;
}

.flow-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(14px, 3.75vw, 16px);
}

.flow-section-head h2 {
  margin: 0;
  color: #181522;
  font-size: clamp(18px, 4.75vw, 20px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.flow-section-head h2 span,
.result-head h2 span {
  color: #f6408e;
  font-size: 0.72em;
}

.flow-section-head button {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0;
  border: 0;
  color: #746e9e;
  background: transparent;
  font: inherit;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1;
  font-weight: 650;
}

.flow-section-head svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(9px, 2.5vw, 11px);
}

.scene-card-button {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: clamp(8px, 2.2vw, 10px);
  background: transparent;
  overflow: hidden;
  line-height: 0;
}

.scene-card-button::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 48%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.66) 100%);
  content: "";
  pointer-events: none;
}

.scene-card-button::after {
  position: absolute;
  top: clamp(6px, 1.55vw, 7px);
  right: clamp(6px, 1.55vw, 7px);
  z-index: 3;
  display: grid;
  width: clamp(13px, 3.55vw, 15px);
  height: clamp(13px, 3.55vw, 15px);
  place-items: center;
  border-radius: 999px;
  color: transparent;
  border: 1.2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(80, 58, 86, 0.06);
  content: "";
  font-size: 0;
  line-height: 1;
}

.scene-card-button.is-selected::after {
  border: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.2 8.1 6.8 10.7 12 5.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% 72% no-repeat,
    #2fcf87;
  box-shadow: none;
  content: "";
}

.scene-card-button img {
  display: block;
  width: 100%;
  height: auto;
}

.scene-hot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 0.28rem 0.42rem;
  border-radius: clamp(7px, 1.9vw, 8px) 0 clamp(7px, 1.9vw, 8px) 0;
  color: #fff;
  background: #f43b86;
  font-size: clamp(8px, 2.2vw, 9px);
  line-height: 1;
  font-weight: 750;
}

.scene-caption {
  position: absolute;
  right: clamp(7px, 1.9vw, 8px);
  bottom: clamp(8px, 2.15vw, 9px);
  left: clamp(7px, 1.9vw, 8px);
  z-index: 2;
  display: grid;
  gap: 0.22rem;
  color: #fff;
  text-align: left;
  pointer-events: none;
  line-height: 1;
}

.scene-caption strong {
  display: block;
  font-size: clamp(8px, 2.25vw, 10px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-caption em {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(7px, 1.95vw, 8px);
  line-height: 1.05;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-grid .scene-caption {
  bottom: clamp(7px, 1.9vw, 8px);
}

.scene-picker-panel {
  padding: clamp(12px, 3.25vw, 14px) clamp(13px, 3.55vw, 15px);
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.86),
    0 0.12rem 0.65rem rgba(230, 157, 218, 0.1);
}

.scene-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(9px, 2.4vw, 10px);
  margin-bottom: clamp(13px, 3.45vw, 15px);
}

.scene-tabs button {
  min-width: 0;
  height: clamp(25px, 6.65vw, 29px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #8b86b4;
  background: rgba(255, 240, 248, 0.9);
  font: inherit;
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
  font-weight: 750;
}

.scene-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff6bae 0%, #f1227b 100%);
}

.scene-tabs button:active,
.flow-section-head button:active,
.scene-card-button:active {
  transform: scale(0.98);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2.8vw, 12px) clamp(12px, 3.15vw, 14px);
}

.selected-scene-panel {
  display: flex;
  align-items: flex-start;
  min-height: clamp(67px, 17.75vw, 76px);
  padding: clamp(15px, 4vw, 17px) clamp(25px, 6.6vw, 28px);
  border-radius: var(--section-radius);
  background: rgba(255, 248, 252, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0.14rem 0.62rem rgba(230, 157, 218, 0.1);
}

.selected-scene-panel.is-empty .selected-thumb {
  display: none;
}

.selected-scene-panel.is-empty::after {
  align-self: center;
  color: #9b94bd;
  content: "暂未选择";
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1;
  font-weight: 600;
}

.selected-scene-panel h2 {
  min-width: clamp(84px, 22.5vw, 97px);
  margin: clamp(11px, 3vw, 13px) 0 0;
  color: #181522;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1;
  font-weight: 750;
}

.selected-thumb {
  position: relative;
  width: clamp(50px, 13.2vw, 57px);
  height: clamp(50px, 13.2vw, 57px);
}

.selected-thumb img {
  width: 100%;
  height: 100%;
  border-radius: clamp(4px, 1.2vw, 5px);
  object-fit: cover;
}

.selected-thumb button {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  display: grid;
  width: clamp(15px, 4vw, 17px);
  height: clamp(15px, 4vw, 17px);
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(124, 112, 120, 0.72);
  font: inherit;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1;
}

.step3-shell {
  background:
    url("./assets/bg1px.png") top center / 100% 1px repeat-y,
    linear-gradient(180deg, #fff8fc 0%, #fff 54%, #fff 100%);
}

.step3-content {
  gap: clamp(23px, 6.25vw, 27px);
}

.result-panel {
  padding: clamp(22px, 5.9vw, 25px) clamp(12px, 3.25vw, 14px) clamp(21px, 5.65vw, 24px);
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    0 0.36rem 1.5rem rgba(226, 152, 209, 0.13);
}

.result-head {
  margin-bottom: clamp(18px, 4.75vw, 20px);
  text-align: center;
}

.result-head h2,
.result-head p {
  margin: 0;
}

.result-head h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #181522;
  font-size: clamp(19px, 5.1vw, 22px);
  line-height: 1;
  font-weight: 780;
}

.result-head p {
  margin-top: clamp(8px, 2.2vw, 10px);
  color: #746e9e;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1;
  font-weight: 650;
}

.result-image {
  width: 100%;
  border-radius: clamp(11px, 3vw, 13px);
  cursor: zoom-in;
}

.result-panel.is-generating .result-image {
  opacity: 0.45;
  filter: saturate(0.75);
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2.65vw, 11px);
  padding: clamp(22px, 5.85vw, 25px) clamp(13px, 3.45vw, 15px) 0;
}

.result-actions button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 3.2vw, 14px);
  padding: 0;
  border: 0;
  color: #746e9e;
  background: transparent;
  font: inherit;
  font-size: clamp(10px, 2.85vw, 12px);
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.result-actions span {
  display: grid;
  width: clamp(35px, 9.2vw, 40px);
  height: clamp(35px, 9.2vw, 40px);
  place-items: center;
  border-radius: 999px;
  color: #f25195;
  background: rgba(255, 240, 248, 0.86);
}

.result-actions svg {
  width: 53%;
  height: 53%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 周边页 */
.peripheral-shell {
  background:
    url("./assets/bg1px.png") top center / 100% 1px repeat-y,
    linear-gradient(180deg, #fff8fc 0%, #fff3fc 42%, #fff 100%);
}

.peripheral-content {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3.2vw, 14px);
  padding: clamp(15px, 4vw, 17px) var(--page-pad) 0;
}

.peripheral-hero img {
  width: 100%;
  border-radius: var(--section-radius);
  box-shadow: 0 0.14rem 0.62rem rgba(230, 157, 218, 0.16);
}

.peripheral-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2.15vw, 9px);
  padding-bottom: clamp(11px, 3vw, 13px);
}

.peripheral-grid a,
.peripheral-grid img {
  display: block;
}

.peripheral-grid img {
  width: 100%;
  border-radius: clamp(11px, 2.95vw, 13px);
  box-shadow: 0 0.12rem 0.52rem rgba(230, 157, 218, 0.13);
}

/* 详情页 */
.detail-shell {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  background:
    url("./assets/bg1px.png") top center / 100% 1px repeat-y,
    linear-gradient(180deg, #fff8fc 0%, #fff2fb 38%, #fff 100%);
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: clamp(13px, 3.55vw, 15px);
  padding: clamp(17px, 4.55vw, 20px) var(--page-pad) 0;
}

.detail-hero-card,
.character-hero-card,
.detail-panel {
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.92),
    0 0.18rem 0.74rem rgba(230, 157, 218, 0.14);
}

.detail-hero-card {
  overflow: hidden;
}

.detail-hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-hero-copy {
  display: grid;
  gap: clamp(7px, 1.95vw, 8px);
  padding: clamp(14px, 3.75vw, 16px);
}

.detail-hero-copy span,
.character-copy span,
.detail-section-head span {
  width: fit-content;
  border-radius: 999px;
  color: #f43b86;
  background: #ffe4f1;
  font-size: clamp(10px, 2.7vw, 12px);
  line-height: 1;
  font-weight: 750;
}

.detail-hero-copy span,
.character-copy span {
  padding: 0.34rem 0.62rem;
}

.detail-hero-copy h2,
.character-copy h2 {
  margin: 0;
  color: #181522;
  font-size: clamp(22px, 5.9vw, 25px);
  line-height: 1.08;
  font-weight: 850;
}

.detail-hero-copy p,
.character-copy p {
  margin: 0;
  color: #746e9e;
  font-size: clamp(12px, 3.25vw, 14px);
  line-height: 1.55;
  font-weight: 550;
}

.detail-panel {
  padding: clamp(14px, 3.75vw, 16px);
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: clamp(12px, 3.25vw, 14px);
}

.detail-section-head h2 {
  margin: 0;
  color: #181522;
  font-size: clamp(16px, 4.35vw, 18px);
  line-height: 1;
  font-weight: 800;
}

.detail-section-head span {
  flex: 0 0 auto;
  padding: 0.28rem 0.52rem;
  color: #8b86b4;
  background: #f5eff8;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 2.45vw, 11px);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: clamp(10px, 2.7vw, 12px);
  object-fit: cover;
  box-shadow: 0 0.12rem 0.48rem rgba(230, 157, 218, 0.12);
}

.prompt-card {
  margin: 0;
  border-radius: clamp(10px, 2.7vw, 12px);
  padding: clamp(13px, 3.5vw, 15px);
  color: #5f5a80;
  background: linear-gradient(180deg, rgba(255, 245, 251, 0.92), rgba(248, 242, 255, 0.82));
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.6;
  font-weight: 560;
}

.mini-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 2.45vw, 11px);
}

.mini-card {
  display: grid;
  grid-template-columns: clamp(48px, 12.8vw, 55px) minmax(0, 1fr);
  gap: clamp(8px, 2.15vw, 9px);
  align-items: center;
  min-width: 0;
  padding: clamp(7px, 1.9vw, 8px);
  border-radius: clamp(10px, 2.7vw, 12px);
  background: rgba(255, 248, 252, 0.78);
  box-shadow: inset 0 0 0 1px rgba(242, 225, 240, 0.78);
}

.mini-card img {
  width: clamp(48px, 12.8vw, 55px);
  aspect-ratio: 1;
  border-radius: clamp(7px, 1.9vw, 8px);
  object-fit: cover;
}

.mini-card strong,
.mini-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card strong {
  color: #181522;
  font-size: clamp(12px, 3.15vw, 13px);
  line-height: 1.15;
  font-weight: 780;
}

.mini-card em {
  margin-top: 0.28rem;
  color: #8b86b4;
  font-size: clamp(10px, 2.65vw, 11px);
  line-height: 1;
  font-style: normal;
}

.detail-bottom-actions {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 15;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: clamp(10px, 2.7vw, 12px);
  padding: clamp(9px, 2.45vw, 11px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    0 -0.08rem 0.6rem rgba(214, 156, 214, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.detail-primary,
.detail-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: clamp(41px, 10.8vw, 46px);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: clamp(14px, 3.7vw, 16px);
  line-height: 1;
  font-weight: 780;
}

.detail-primary {
  color: #fff;
  background: linear-gradient(90deg, #f72b83 0%, #ff4c97 53%, #fa3a8b 100%);
  box-shadow: 0 0.16rem 0.5rem rgba(242, 59, 134, 0.18);
}

.detail-secondary {
  color: #f43b86;
  background: #ffe4f1;
}

.character-hero-card {
  display: grid;
  grid-template-columns: clamp(114px, 30vw, 129px) minmax(0, 1fr);
  gap: clamp(12px, 3.25vw, 14px);
  padding: clamp(14px, 3.75vw, 16px);
}

.character-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: clamp(12px, 3.25vw, 14px);
  object-fit: cover;
  box-shadow: 0 0.14rem 0.56rem rgba(148, 96, 139, 0.16);
}

.character-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: clamp(7px, 1.95vw, 8px);
}

.popularity-box {
  display: grid;
  gap: clamp(6px, 1.65vw, 7px);
  margin-top: clamp(3px, 0.85vw, 4px);
}

.popularity-box div:first-child {
  display: flex;
  align-items: end;
  gap: 0.35rem;
}

.popularity-box strong {
  color: #f43b86;
  font-size: clamp(24px, 6.25vw, 27px);
  line-height: 0.9;
  font-weight: 900;
}

.popularity-box div:first-child span,
.popularity-box em {
  color: #8b86b4;
  font-size: clamp(10px, 2.7vw, 11px);
  line-height: 1;
  font-style: normal;
  font-weight: 650;
}

.heat-track {
  height: clamp(7px, 1.9vw, 8px);
  overflow: hidden;
  border-radius: 999px;
  background: #f2eaf5;
}

.heat-track i {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8ac1 0%, #f43b86 100%);
}

.price-line {
  display: block;
  color: #f43b86;
  font-size: clamp(21px, 5.55vw, 24px);
  line-height: 1;
  font-weight: 900;
}

.detail-check-list {
  display: grid;
  gap: clamp(9px, 2.45vw, 10px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-check-list li,
.shipping-list article {
  position: relative;
  padding: clamp(10px, 2.7vw, 12px) clamp(12px, 3.25vw, 14px) clamp(10px, 2.7vw, 12px) clamp(32px, 8.5vw, 37px);
  border-radius: clamp(10px, 2.7vw, 12px);
  color: #5f5a80;
  background: rgba(255, 248, 252, 0.72);
  font-size: clamp(12px, 3.2vw, 13px);
  line-height: 1.35;
  font-weight: 650;
}

.detail-check-list li::before,
.shipping-list article::before {
  position: absolute;
  top: 50%;
  left: clamp(12px, 3.25vw, 14px);
  display: grid;
  width: clamp(15px, 4vw, 17px);
  height: clamp(15px, 4vw, 17px);
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #f43b86;
  content: "✓";
  font-size: clamp(9px, 2.35vw, 10px);
  transform: translateY(-50%);
}

.option-group {
  display: grid;
  gap: clamp(12px, 3.25vw, 14px);
}

.option-row {
  display: grid;
  gap: clamp(8px, 2.15vw, 9px);
}

.option-row strong {
  color: #181522;
  font-size: clamp(13px, 3.45vw, 15px);
  line-height: 1;
}

.option-row div {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 2.15vw, 9px);
}

.option-row button {
  min-height: clamp(30px, 7.9vw, 34px);
  padding: 0 0.72rem;
  border: 0;
  border-radius: 999px;
  color: #746e9e;
  background: #f4edf7;
  font: inherit;
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
  font-weight: 750;
}

.option-row button.is-selected {
  color: #fff;
  background: linear-gradient(135deg, #ff6bae 0%, #f1227b 100%);
}

.shipping-list {
  display: grid;
  gap: clamp(9px, 2.45vw, 10px);
}

.shipping-list article strong {
  display: block;
  margin-bottom: 0.28rem;
  color: #181522;
  font-size: clamp(13px, 3.45vw, 15px);
}

/* 购物车 */
.cart-shell {
  padding-bottom: calc(6.9rem + env(safe-area-inset-bottom));
  background:
    url("./assets/bg1px.png") top center / 100% 1px repeat-y,
    linear-gradient(180deg, #fff8fc 0%, #fff3fc 42%, #fff 100%);
}

.cart-content {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3.25vw, 14px);
  padding: clamp(17px, 4.55vw, 20px) var(--page-pad) 0;
}

.cart-empty,
.cart-list-panel,
.cart-note-panel {
  border-radius: var(--section-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.92),
    0 0.18rem 0.74rem rgba(230, 157, 218, 0.14);
}

.cart-empty[hidden],
.cart-list-panel[hidden],
.cart-summary-bar[hidden] {
  display: none;
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: clamp(10px, 2.7vw, 12px);
  padding: clamp(34px, 9vw, 39px) clamp(18px, 4.8vw, 21px);
  text-align: center;
}

.cart-empty-icon {
  display: grid;
  width: clamp(52px, 13.8vw, 60px);
  height: clamp(52px, 13.8vw, 60px);
  place-items: center;
  border-radius: 999px;
  color: #f43b86;
  background: #ffe4f1;
}

.cart-empty-icon svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-empty h2,
.cart-empty p,
.cart-note-panel h2,
.cart-note-panel p,
.cart-list-head h2 {
  margin: 0;
}

.cart-empty h2,
.cart-list-head h2,
.cart-note-panel h2 {
  color: #181522;
  font-size: clamp(16px, 4.35vw, 18px);
  line-height: 1;
  font-weight: 800;
}

.cart-empty p,
.cart-note-panel p {
  color: #746e9e;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.55;
  font-weight: 550;
}

.cart-empty-action {
  display: grid;
  min-width: clamp(128px, 34vw, 146px);
  height: clamp(40px, 10.6vw, 46px);
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f72b83 0%, #ff4c97 53%, #fa3a8b 100%);
  font-size: clamp(14px, 3.7vw, 16px);
  line-height: 1;
  font-weight: 780;
}

.cart-list-panel {
  padding: clamp(14px, 3.75vw, 16px);
}

.cart-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: clamp(12px, 3.25vw, 14px);
}

.cart-list-head button {
  border: 0;
  color: #8b86b4;
  background: transparent;
  font: inherit;
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
  font-weight: 700;
}

.cart-list {
  display: grid;
  gap: clamp(10px, 2.7vw, 12px);
}

.cart-item {
  display: grid;
  grid-template-columns: clamp(22px, 5.85vw, 25px) clamp(76px, 20.3vw, 87px) minmax(0, 1fr);
  gap: clamp(10px, 2.7vw, 12px);
  align-items: center;
  padding: clamp(10px, 2.7vw, 12px);
  border-radius: clamp(13px, 3.45vw, 15px);
  background: rgba(255, 248, 252, 0.82);
  box-shadow: inset 0 0 0 1px rgba(242, 225, 240, 0.78);
}

.cart-check {
  display: grid;
  width: clamp(22px, 5.85vw, 25px);
  height: clamp(22px, 5.85vw, 25px);
  place-items: center;
}

.cart-check input,
.cart-select-all input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cart-check span,
.cart-select-all span::before {
  display: grid;
  place-items: center;
  border: 1px solid #e4d6eb;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.cart-check span {
  width: clamp(18px, 4.85vw, 21px);
  height: clamp(18px, 4.85vw, 21px);
}

.cart-check input:checked + span,
.cart-select-all input:checked + span::before {
  border-color: #f43b86;
  color: #fff;
  background: #f43b86;
}

.cart-check input:checked + span::before,
.cart-select-all input:checked + span::before {
  content: "✓";
  font-size: clamp(10px, 2.7vw, 12px);
  font-weight: 850;
}

.cart-item-image img {
  width: clamp(76px, 20.3vw, 87px);
  aspect-ratio: 1;
  border-radius: clamp(10px, 2.7vw, 12px);
  object-fit: cover;
  box-shadow: 0 0.12rem 0.48rem rgba(230, 157, 218, 0.12);
}

.cart-item-main {
  display: grid;
  min-width: 0;
  gap: clamp(5px, 1.35vw, 6px);
}

.cart-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-title strong {
  min-width: 0;
  overflow: hidden;
  color: #181522;
  font-size: clamp(14px, 3.7vw, 16px);
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cart-item-title button {
  flex: 0 0 auto;
  border: 0;
  color: #aaa2bf;
  background: transparent;
  font: inherit;
  font-size: clamp(10px, 2.7vw, 12px);
  line-height: 1;
  font-weight: 700;
}

.cart-item-main p,
.cart-item-main em {
  margin: 0;
  color: #8b86b4;
  font-size: clamp(10px, 2.7vw, 12px);
  line-height: 1.25;
  font-style: normal;
}

.cart-item-main em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(4px, 1.15vw, 5px);
}

.cart-item-bottom > strong {
  color: #f43b86;
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1;
  font-weight: 900;
}

.cart-qty {
  display: grid;
  grid-template-columns: clamp(25px, 6.65vw, 29px) clamp(25px, 6.65vw, 29px) clamp(25px, 6.65vw, 29px);
  height: clamp(25px, 6.65vw, 29px);
  overflow: hidden;
  border-radius: 999px;
  background: #f4edf7;
}

.cart-qty button {
  border: 0;
  color: #f43b86;
  background: transparent;
  font: inherit;
  font-size: clamp(16px, 4.25vw, 18px);
  line-height: 1;
  font-weight: 750;
}

.cart-qty span {
  display: grid;
  place-items: center;
  color: #181522;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1;
  font-weight: 800;
}

.cart-note-panel {
  padding: clamp(14px, 3.75vw, 16px);
}

.cart-note-panel p {
  margin-top: clamp(8px, 2.15vw, 9px);
}

.cart-summary-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 24;
  display: grid;
  grid-template-columns: auto 1fr clamp(124px, 33vw, 142px);
  gap: clamp(10px, 2.7vw, 12px);
  align-items: center;
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: clamp(10px, 2.7vw, 12px) var(--page-pad) calc(clamp(10px, 2.7vw, 12px) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -0.12rem 0.78rem rgba(214, 156, 214, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cart-select-all {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  color: #746e9e;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1;
  font-weight: 750;
}

.cart-select-all span {
  display: flex;
  align-items: center;
  gap: 0.34rem;
}

.cart-select-all span::before {
  width: clamp(18px, 4.85vw, 21px);
  height: clamp(18px, 4.85vw, 21px);
}

.cart-total {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem;
}

.cart-total em {
  color: #746e9e;
  font-size: clamp(11px, 2.95vw, 13px);
  line-height: 1;
  font-style: normal;
  font-weight: 700;
}

.cart-total strong {
  color: #f43b86;
  font-size: clamp(18px, 4.8vw, 21px);
  line-height: 1;
  font-weight: 900;
}

.cart-summary-bar button {
  height: clamp(43px, 11.4vw, 49px);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f72b83 0%, #ff4c97 53%, #fa3a8b 100%);
  font: inherit;
  font-size: clamp(14px, 3.7vw, 16px);
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 0.16rem 0.5rem rgba(242, 59, 134, 0.18);
}

.toast-tip {
  position: fixed;
  left: 50%;
  bottom: calc(5.2rem + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: min(82vw, 352px);
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(33, 27, 45, 0.86);
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.25;
  transform: translateX(-50%);
  box-shadow: 0 0.24rem 0.9rem rgba(44, 30, 52, 0.2);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background: rgba(12, 10, 18, 0.94);
}

.image-viewer img {
  width: 100%;
  max-width: min(100%, 430px);
  max-height: 92vh;
  border-radius: 12px;
  object-fit: contain;
}

.image-viewer-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 380px) {
  .steps-flow {
    column-gap: 0.15rem;
  }

  .upload-card {
    grid-template-columns: 6rem 1fr;
  }

  .upload-box strong,
  .upload-box em {
    transform: scale(0.92);
  }
}

@media (max-width: 380px) {
  .profile-photos {
    opacity: 0.72;
  }

  .profile-info p {
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 431px) {
  body {
    background: #f8edf7;
  }
}
