/* ============================================================
   壁纸领取站 · 对齐参考站配色与布局
   ============================================================ */
:root {
  --paper:#fcf7f5; --white:#fff; --ink:#392b33; --muted:#7c6d75;
  --accent:#a54766; --accent-dark:#8d3653; --soft:#fcf0f4; --line:#eee2e7;
  --accent-soft: rgba(165,71,102,.10); --accent-mid: rgba(165,71,102,.18);
  --card-bg:#fff; --card-border:var(--line);
  --btn-grad: linear-gradient(115deg,#aa4868,#913b59);
  --btn-shadow: 0 6px 18px rgba(165,71,102,.18);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at 15% 0%, #f7e4ed 0, transparent 52%), var(--paper);
  color: var(--ink);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 16px 0;
  -webkit-text-size-adjust:100%;
}

.page {
  width: calc(100% - 24px);
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 20px 12px;
  border: 1px solid #f2e7eb;
  border-radius: 25px;
  background: linear-gradient(165deg, #fffdfb 0%, #fff8fa 44%, #fff 76%);
  box-shadow: 0 12px 45px rgba(123,60,85,.06);
}

/* ---------- 头部 ---------- */
.collection-header { text-align: center; padding: 0 0 6px; }
.collection-eyebrow {
  display: block;
  background: transparent;
  padding: 0;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.4;
}
.collection-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.32;
  color: var(--ink);
}
.product-intro {
  max-width: 300px;
  margin: 5px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .5px;
}

/* ---------- 壁纸预览堆叠 ---------- */
.wallpaper-gallery { margin: 0 0 12px; }
.wallpaper-stack { position: relative; height: 199px; isolation: isolate; }
.wallpaper-stack::before {
  content: "";
  position: absolute;
  left: 5%; right: 5%; top: 15%; bottom: 4%;
  background: radial-gradient(ellipse, #ecd2d8 0, transparent 70%);
  filter: blur(12px);
  z-index: -1;
}
.wallpaper-card {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 35%;
  height: 177px;
  padding: 3px;
  border: 0;
  border-radius: 13px;
  background: #f0dde3;
  box-shadow: 0 9px 18px rgba(89,55,63,.16), 0 1px 4px rgba(89,55,63,.08);
  transform: translateX(-50%) rotate(0deg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  user-select: none;
}
.wallpaper-card img {
  display: block;
  width: 100%;
  height: 100%;
  background: #f0dde3;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 10px;
  -webkit-user-drag: none;
}
.wallpaper-card[data-position="0"] { left: 12%; top: 31px; width: 28%; height: 148px; z-index: 1; transform: translateX(-50%) rotate(-12deg); }
.wallpaper-card[data-position="1"] { left: 29%; top: 19px; width: 30%; height: 163px; z-index: 2; transform: translateX(-50%) rotate(-6deg); }
.wallpaper-card[data-position="2"] { z-index: 3; }
.wallpaper-card[data-position="3"] { left: 71%; top: 19px; width: 30%; height: 163px; z-index: 2; transform: translateX(-50%) rotate(6deg); }
.wallpaper-card[data-position="4"] { left: 88%; top: 31px; width: 28%; height: 148px; z-index: 1; transform: translateX(-50%) rotate(12deg); }
.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 2px 0;
  font-size: 10px;
  line-height: 16px;
  color: #96818a;
}
.gallery-caption > span:first-child { letter-spacing: 1px; }

/* ---------- 套餐区 ---------- */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.section-heading h2 { font-size: 14px; font-weight: 650; color: var(--ink); }
.section-heading > span { flex-shrink: 0; color: #88777f; font-size: 10px; }

.pay-plans { display: grid; gap: 8px; }

.pay-plan {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  min-height: 63px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffcfd;
  cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.pay-plan:active { transform: scale(.99); }
.pay-plan:hover { border-color: #d5a7b7; }
.pay-plan.is-selected, .pay-plan.selected {
  border-color: var(--accent);
  background: linear-gradient(110deg, #fdf0f5, #fff8fa);
  box-shadow: inset 0 0 0 .5px var(--accent);
}

.plan-radio {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  border: 1.5px solid #c9b3bd;
  border-radius: 50%;
  position: relative;
  transition: all .16s;
}
.pay-plan.is-selected .plan-radio, .pay-plan.selected .plan-radio {
  border-color: var(--accent);
}
.pay-plan.is-selected .plan-radio::after, .pay-plan.selected .plan-radio::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-copy { display: block; flex: 1; min-width: 0; }
.plan-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.plan-name { font-size: 14px; font-weight: 650; line-height: 1.45; color: var(--ink); }
.recommend-badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  line-height: 1.7;
  font-weight: 500;
}
.plan-description { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
  color: #66505b;
  font-variant-numeric: tabular-nums;
}
.plan-price small { font-size: 12px; }
.plan-price strong { font-size: 24px; line-height: 1.1; font-weight: 650; letter-spacing: -.8px; }
.pay-plan.is-selected .plan-price, .pay-plan.selected .plan-price { color: var(--accent); }

/* ---------- 底部确认栏 ---------- */
.purchase-actions { margin-top: 10px; }
.selection-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 2px 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 18px;
}
#selPrice { flex-shrink: 0; color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; }

.action-row { display: flex; align-items: stretch; gap: 9px; }

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 0;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.button:disabled { cursor: not-allowed; opacity: .5; }
.button:active { transform: scale(.98); }

.button-primary {
  background: var(--btn-grad);
  color: #fff;
  box-shadow: var(--btn-shadow);
}
.acquire-button { flex: 1.9; width: auto; }
.acquire-button::after { content: "↗"; font-size: 18px; margin-left: 3px; font-weight: 400; }

.part-time-button {
  flex: 1;
  width: auto;
  flex-shrink: 0;
  padding-left: 9px;
  padding-right: 9px;
  border: 1px solid #e8c9d4;
  background: #fff7fa;
  color: #8f4560;
  font-size: 13px;
  box-shadow: none;
}

/* ---------- 底部小字 ---------- */
.entry-footer { margin-top: 8px; padding-top: 6px; }
.delivery-caption { text-align: center; color: var(--muted); font-size: 10px; line-height: 14px; }
.delivery-caption span { padding: 0 9px; color: #bf9eab; }
.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 1px;
  color: #86747d;
  font-size: 11px;
}
.page-footer a { display: inline-flex; align-items: center; min-height: 24px; color: inherit; text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

/* ---------- 说明区（后台可关） ---------- */
.steps { margin-top: 18px; }
.steps h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
}
.step { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.step + .step { border-top: 1px dashed var(--line); }
.step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
  margin-top: 1px;
}
.step p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.contact-line { margin-top: 12px; font-size: 12px; color: #96818a; text-align: center; }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(57,43,51,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 20px;
  box-shadow: 0 20px 60px rgba(57,43,51,.22);
}
.anim-stack .anim-card {
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(160deg, #4a2f6b 0%, #8a3f6f 52%, #c97b9e 100%);
  box-shadow: 0 12px 30px rgba(74, 47, 107, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 10px;
  padding: 22px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.anim-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.28), transparent 42%);
}
.anim-card .anim-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
  z-index: 1;
}
.anim-card p {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 1;
  margin: 0;
}
.modal-partner {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 16px;
  overflow: hidden;
}
.modal-partner img {
  border-radius: 16px;
  display: block;
}
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: #fff;
  border: 2px solid #ff8fa3;
  border-radius: 50%;
  color: #ff5c7d;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,92,125,.35);
  z-index: 3;
}
.modal h3 { font-size: 18px; text-align: center; color: var(--ink); }
.m-desc { color: var(--muted); font-size: 13px; text-align: center; margin-top: 6px; line-height: 1.6; }
.qr-box {
  width: 260px; height: 260px;
  margin: 16px auto;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.m-tip { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.7; }
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  margin-top: 12px;
  font-family: inherit;
}

/* ---------- 领取结果 ---------- */
#claimBox { text-align: center; }
.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  text-align: left;
}
.field-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field-value { font-size: 14px; color: var(--ink); word-break: break-all; }
.btn-block { display: block; width: 100%; box-sizing: border-box; margin-top: 12px; text-decoration: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 99;
  white-space: nowrap;
  max-width: 86vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

[hidden] { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 360px) {
  .page { padding: 15px 15px 10px; border-radius: 22px; }
  .collection-header h1 { font-size: 24px; }
  .wallpaper-gallery { margin-bottom: 12px; }
  .wallpaper-stack { height: 175px; }
  .wallpaper-card { height: 157px; top: 7px; }
  .wallpaper-card[data-position="0"], .wallpaper-card[data-position="4"] { height: 126px; top: 27px; }
  .wallpaper-card[data-position="1"], .wallpaper-card[data-position="3"] { height: 141px; top: 15px; }
  .pay-plan { min-height: 61px; padding: 9px 10px; gap: 8px; }
  .plan-name { font-size: 13px; }
  .plan-description { font-size: 11px; }
  .plan-price strong { font-size: 23px; }
  .entry-footer { margin-top: 7px; padding-top: 6px; }
}


/* ---------- 上传付款截图弹窗 ---------- */
.upload-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-shadow: 0 25px 80px rgba(41,23,32,.27);
}
.upload-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #c9a96e;
  background: #f5efe0;
  color: #8a7a50;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
}
.upload-kicker { font-size: 13px; color: #96818a; margin-bottom: 6px; }
.upload-title { font-size: 24px; font-weight: 700; color: #392b33; margin-bottom: 8px; }
.upload-sub { font-size: 14px; color: #7c6d75; line-height: 1.6; margin-bottom: 18px; }

.upload-drop {
  border: 2px dashed #d4c9a8;
  border-radius: 16px;
  background: #faf7ef;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
}
.upload-drop:active { transform: scale(.98); }
.upload-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #e8e0cc;
  color: #6b5d3a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.drop-text { font-size: 16px; font-weight: 600; color: #392b33; margin-bottom: 4px; }
.drop-hint { font-size: 12px; color: #96818a; }

.upload-note {
  font-size: 12px;
  color: #96818a;
  line-height: 1.7;
  margin-bottom: 18px;
}

.upload-submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: #9aa88e;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.upload-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.upload-submit-btn:active { transform: scale(.98); }

.upload-cancel-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid #e0d5c0;
  border-radius: 14px;
  background: #faf7ef;
  color: #8a7a50;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-top: 10px;
}
.upload-cancel-btn:active { transform: scale(.98); }

.btn-claimed {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  bottom: 10px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(115deg, #aa4868, #913b59);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(165,71,102,.3);
}
.btn-claimed:active { transform: scale(.98); }
.pay-plan { position: relative; }

.qr-price {
  font-size: 36px;
  color: #392b33;
  font-weight: 700;
  letter-spacing: -1px;
}
#qrTier {
  text-align: center;
  margin: 10px 0 6px;
}


/* 顶部小标题（badge_text） */
.badge-text {
  font-size: 13px;
  color: #ff8fa3;
  letter-spacing: 2px;
  margin: 0 0 6px;
  text-align: center;
}
