:root {
  --d12: #e11d48;
  --d12-deep: #be123c;
  --d12-orange: #ff6b9d;
  --d12-gold: #f5d78e;
  --d12-soft: #fff0f5;
  --pink: #ff4d8d;
  --pink-deep: #e11d48;
  --pink-soft: #fff0f5;
  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --bg: #f8f0f8;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #8b93a7;
  --line: #f5d0e0;
  --ok: #16a34a;
  --wait: #ea580c;
  --nav-h: 64px;
  --font-display: "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.app {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 18px);
  background: var(--bg);
  position: relative;
}

.top-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 0;
}
.bean-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff1f0;
  color: #ff0036;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #ffb4a8;
}
.bean-pill b { color: #c4001d; }
.ghost-btn {
  border: 0;
  background: rgba(255,255,255,.85);
  color: #64748b;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}

.hero {
  margin: 10px 14px 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, #fda4af 0%, transparent 40%),
    linear-gradient(135deg, #fb7185, #f43f5e 45%, #e11d48);
  color: #fff;
  padding: 18px 16px 20px;
  position: relative;
  min-height: 148px;
}
.hero h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.hero p {
  margin: 8px 0 0;
  opacity: .92;
  font-size: 13px;
}
.hero .deco {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 54px;
  opacity: .35;
}

.section {
  margin: 16px 14px 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}
.section-title span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gift-grid-3 {
  grid-template-columns: 1fr 1fr;
}
.gift-card.selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, .15);
}
.gift-card { cursor: pointer; }
.profile-panel {
  margin: 12px 14px 0;
  background:
    linear-gradient(180deg, #fff7f9 0%, #ffffff 42%);
  border: 1px solid #f3e0e6;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(225, 29, 72, .06);
}
.profile-top {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1e6ea;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fb7185, #e11d48);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(225, 29, 72, .25);
}
.profile-main h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.lock-chip {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 12px;
  font-weight: 600;
}
.lock-chip b {
  font-weight: 750;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.profile-meta {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.meta-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
}
.meta-item span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  line-height: 1.5;
}
.meta-item b {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-all;
  text-align: left;
}
.balance-row {
  margin: 12px 14px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.balance-box {
  background: linear-gradient(160deg, #fff7ed, #ffffff);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 6px;
}
.balance-box span { color: #a16207; font-size: 12px; font-weight: 650; }
.balance-box b {
  font-size: 28px;
  color: #b45309;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.profile-block { grid-template-columns: 1fr; }
.profile-rows { display: grid; gap: 10px; }
.profile-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.profile-rows span { color: var(--muted); }
.profile-rows b { font-weight: 650; text-align: right; }
.checkin-btn {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.streak-hint {
  margin: 8px 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.redeem-form {
  display: grid;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}
.type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.type-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 0;
  color: var(--muted);
}
.type-tabs button.active {
  border-color: var(--pink);
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 700;
}
.selected-gift {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 650;
}
.fab-feedback {
  position: fixed;
  right: max(12px, calc(50% - 215px + 12px));
  bottom: calc(var(--nav-h) + 16px);
  z-index: 25;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-deep);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 6px;
}
.gift-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gift-cover {
  height: 110px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff1f2, #ffe4e6);
  font-size: 42px;
}
.gift-body { padding: 10px; }
.gift-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.gift-cost {
  margin: 6px 0 10px;
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
}
.btn-red {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 8px 0;
  background: linear-gradient(90deg, #ff6b81, #e11d48);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.btn-red:disabled { opacity: .5; }

.tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  position: relative;
}
.tabs button.active {
  color: var(--ink);
  font-weight: 700;
}
.tabs button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

.order-list { display: grid; gap: 10px; }
.order-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
}
.order-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: #fff1f2;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.order-item h4 { margin: 0; font-size: 14px; }
.order-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--wait);
}
.badge.ok { color: var(--ok); }

.page-head {
  padding: 16px 14px 8px;
  font-size: 18px;
  font-weight: 750;
  text-align: center;
}
.verify-banner {
  margin: 0 14px;
  background: linear-gradient(90deg, #ffe4ec, #ffd6e7);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.verify-banner button {
  border: 0;
  background: transparent;
  color: var(--pink-deep);
  font-weight: 700;
  white-space: nowrap;
}

.profile-card {
  margin: 12px 14px 0;
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fbbf24, #f97316);
  display: grid;
  place-items: center;
  font-size: 30px;
}
.profile-card h2 { margin: 0; font-size: 18px; }
.profile-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.mini-grid {
  margin: 12px 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.mini-card .label { color: var(--muted); font-size: 12px; }
.mini-card .num {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--pink-deep);
}
.checkin-card {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
}
.checkin-card .num { color: #c2410c; font-size: 20px; }
.checkin-card button {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fb923c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.task-list {
  margin: 0 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.task-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.task-item:last-child { border-bottom: 0; }
.task-item h4 { margin: 0; font-size: 14px; }
.task-item p { margin: 4px 0 0; color: var(--pink-deep); font-size: 12px; font-weight: 700; }
.task-item button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 700;
}
.task-item button.done {
  background: #f3f4f6;
  color: #9ca3af;
}

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(430px, 100%);
  height: var(--nav-h);
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  box-sizing: border-box;
}
.tabbar a {
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: 100%;
  text-decoration: none;
}
.tabbar a.active { color: var(--pink-deep); font-weight: 700; }
.tabbar .ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tabbar .ico svg { width: 22px; height: 22px; display: block; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: grid;
  align-items: end;
  z-index: 40;
}
.modal.hidden { display: none; }
.sheet {
  width: min(430px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 24px;
}
.sheet h3 { margin: 0 0 12px; font-size: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field span { font-size: 12px; color: var(--muted); }
.field input, .field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
.sheet .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: rgba(17,24,39,.92);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 50;
}
.toast.hidden { display: none; }
.empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
}
.hidden { display: none !important; }
.auth-app { padding-bottom: 24px; }
.auth-hero { margin-top: 14px; min-height: 120px; }
.auth-card {
  margin: 16px 14px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-tabs button {
  border: 0;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 10px 0;
  color: var(--muted);
  font-weight: 650;
}
.auth-tabs button.active {
  background: var(--pink-soft);
  color: var(--pink-deep);
}
.auth-card .btn-red { margin-top: 4px; padding: 12px 0; }
.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.code-row .btn-ghost {
  padding: 0 12px;
  white-space: nowrap;
}
.auth-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.2em;
}
.auth-hint.err { color: var(--pink-deep); }

/* ===== 淘宝双12氛围：玫红橙撞色 · 流动形 · 年终狂欢 ===== */
.festive-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 210, 77, .35) 0 8%, transparent 9%),
    radial-gradient(circle at 88% 12%, rgba(255, 45, 85, .18) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 40%, rgba(255, 122, 26, .12) 0 14%, transparent 15%),
    radial-gradient(1.8px 1.8px at 18% 22%, rgba(255, 45, 85, .22) 0, transparent 60%),
    radial-gradient(1.8px 1.8px at 42% 16%, rgba(255, 122, 26, .2) 0, transparent 60%),
    radial-gradient(1.8px 1.8px at 76% 28%, rgba(255, 45, 85, .18) 0, transparent 60%),
    radial-gradient(1.8px 1.8px at 28% 58%, rgba(255, 210, 77, .35) 0, transparent 60%),
    radial-gradient(1.8px 1.8px at 62% 72%, rgba(255, 45, 85, .16) 0, transparent 60%),
    linear-gradient(180deg, #ffe8ef 0%, #fff3f0 32%, #fff8f5 100%);
}
.festive-app { background: transparent; }

.d12-top {
  margin: 10px 12px 0;
  position: relative;
  overflow: hidden;
  border-radius: 22px 18px 26px 20px / 20px 24px 18px 22px;
  padding: 16px 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 210, 77, .55) 0%, transparent 36%),
    radial-gradient(circle at 8% 90%, rgba(255, 255, 255, .22) 0%, transparent 40%),
    linear-gradient(125deg, #ff2d55 0%, #ff4d6a 42%, #ff7a1a 100%);
  animation: d12-in .55s ease both;
}
.d12-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.16) 0 12%, transparent 13%),
    radial-gradient(circle at 55% 70%, rgba(255,255,255,.1) 0 10%, transparent 11%),
    radial-gradient(circle at 80% 40%, rgba(255,210,77,.25) 0 8%, transparent 9%);
  pointer-events: none;
}
.d12-top-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.d12-mark {
  flex: 0 0 auto;
  min-width: 58px;
  height: 58px;
  border-radius: 50% 46% 52% 48%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ffe566, #ffb020);
  color: #9f1239;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: 0 6px 14px rgba(159, 18, 57, .18);
  animation: d12-bob 2.8s ease-in-out infinite;
}
.d12-top strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(140, 0, 40, .18);
}
.d12-top p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: .95;
  font-weight: 600;
}
.d12-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.d12-chips span {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.14);
  border-radius: 999px 12px 999px 14px;
}

.festive-logout {
  border: 0;
  border-radius: 999px 12px 999px 14px;
  padding: 6px 12px;
  background: rgba(255,255,255,.92);
  color: var(--d12);
  font-size: 12px;
  font-weight: 700;
}

.festive-profile {
  margin: 12px 14px 0;
  border-radius: 22px 16px 20px 18px / 18px 22px 16px 20px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f9 100%);
  border: 1.5px solid #ffd0dc;
  box-shadow: 0 10px 24px rgba(255, 45, 85, .08);
}
.festive-profile-top {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #ffb4c4;
}
.festive-profile-top h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: #be123c;
}
.festive-body .profile-avatar {
  border-radius: 50% 42% 48% 46%;
  background: linear-gradient(145deg, #ff7a1a, #ff2d55);
}
.festive-body .lock-chip {
  border-radius: 999px 12px 999px 14px;
  background: linear-gradient(90deg, #fff0f4, #ffe8d6);
  color: #be123c;
}
.festive-meta {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.festive-meta > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
}
.festive-meta span {
  color: var(--d12);
  font-size: 13px;
  white-space: nowrap;
  font-weight: 700;
}
.festive-meta b {
  font-size: 14px;
  color: #1f2937;
  word-break: break-all;
}
.festive-beans {
  margin: 12px 14px 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
}
.bean-glow {
  position: relative;
  border-radius: 16px 20px 14px 18px;
  padding: 14px 14px 14px 18px;
  background: linear-gradient(135deg, #ffe566 0%, #ffb020 55%, #ff7a1a 100%);
  color: #7c2d12;
  box-shadow: 0 8px 18px rgba(255, 122, 26, .22);
  overflow: hidden;
}
.bean-glow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 6px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(180deg, #fff 0 4px, transparent 4px 8px);
  opacity: .55;
}
.bean-glow span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}
.bean-glow b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: .02em;
  color: #9f1239;
}
.festive-checkin {
  background: linear-gradient(135deg, #ff2d55, #ff4d6a 45%, #e51a45);
  box-shadow: 0 8px 18px rgba(255, 45, 85, .28);
  border-radius: 18px 14px 20px 16px;
  font-size: 15px;
  font-weight: 800;
}
.festive-section { margin-top: 14px; }
.festive-title .title-text {
  font-family: var(--font-display);
  color: var(--d12);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .04em;
}
.festive-title .title-tag,
.festive-body .title-tag {
  border-radius: 999px 10px 999px 12px;
  padding: 4px 10px;
  background: linear-gradient(90deg, #ff7a1a, #ff2d55);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.festive-tasks {
  border: 1.5px solid #ffd0dc;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(255, 45, 85, .06);
  background: #fff;
}
.festive-tasks .task-item { border-color: #ffe8ee; }
.festive-tasks .task-item p { color: var(--d12); font-weight: 700; }
.festive-tasks .task-item button {
  background: linear-gradient(90deg, #fff0f4, #ffe8d6);
  color: var(--d12);
  border-radius: 999px 12px 999px 14px;
  font-weight: 800;
}
.festive-tasks .task-item button.done {
  background: #f3f4f6;
  color: #9ca3af;
}
.festive-sheet { border-top: 3px solid #ff7a1a; }
.festive-mini {
  background: #fff;
  border-color: #ffd0dc;
  border-radius: 18px 14px 20px 16px;
  box-shadow: 0 6px 14px rgba(255, 45, 85, .05);
}
.festive-mini .num { color: var(--d12); }
.festive-page-head {
  font-family: var(--font-display);
  color: var(--d12);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .04em;
}
.festive-body .bean-pill {
  border-radius: 999px 12px 999px 14px;
  background: linear-gradient(90deg, #fff0f4, #ffe8d6);
  border-color: #ffb4c4;
  color: var(--d12);
}
.festive-body .gift-card {
  border: 1.5px solid #ffd0dc;
  border-radius: 18px 14px 16px 20px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(255, 45, 85, .06);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 45, 85, .15);
  position: relative;
  z-index: 1;
}
.festive-body .gift-card:active {
  transform: scale(0.98);
}
.festive-body .gift-cover {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,210,77,.45) 0%, transparent 40%),
    linear-gradient(160deg, #fff0f4, #ffe8d6 55%, #fff7e6);
}
.festive-body .gift-cost {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px 8px 999px 10px;
  background: linear-gradient(90deg, #ff7a1a, #ff2d55);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
}
.festive-body .btn-red {
  background: linear-gradient(90deg, #ff7a1a, #ff2d55);
  box-shadow: 0 8px 18px rgba(255, 45, 85, .22);
  border-radius: 999px 14px 999px 16px;
  font-weight: 800;
}
.festive-body .redeem-form {
  border: 1.5px solid #ffd0dc;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(255, 45, 85, .05);
  background: #fff;
}
.festive-body .type-tabs button { border-radius: 999px 12px 999px 14px; }
.festive-body .type-tabs button.active {
  background: linear-gradient(90deg, #fff0f4, #ffe8d6);
  border-color: #ffb4c4;
  color: var(--d12);
}
.festive-body .tabs button.active {
  color: var(--d12);
  border-bottom-color: var(--d12);
}
.festive-body .tabbar {
  border-top: 2px solid #ffd0dc;
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
}
.festive-body .tabbar a.active { color: var(--d12); }
.festive-body .auth-card {
  border: 1.5px solid #ffd0dc;
  border-radius: 22px 18px 20px 16px;
  box-shadow: 0 10px 24px rgba(255, 45, 85, .06);
}
.festive-body .auth-tabs button.active {
  color: var(--d12);
  border-bottom-color: var(--d12);
}

@keyframes d12-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes d12-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.task-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.gift-jump {
  text-align: center;
  padding: 8px 0 4px;
}
.gift-jump-ico { font-size: 42px; line-height: 1; }
.gift-jump-badge {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 6px 14px;
  border-radius: 999px 12px 999px 14px;
  background: linear-gradient(90deg, #ff7a1a, #ff2d55);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}
.gift-jump h4 { margin: 8px 0 6px; font-size: 18px; font-family: var(--font-display); font-weight: 400; }
.gift-jump p { margin: 0; color: #6b7280; font-size: 13px; }
.gift-jump p b { color: var(--d12); }
.wecom-box { text-align: center; }
.wecom-qr {
  width: min(220px, 70vw);
  height: auto;
  border-radius: 12px;
  border: 3px solid #ffb4a8;
  background: #fff;
  padding: 8px;
  margin: 8px auto;
  display: block;
  box-shadow: 0 8px 20px rgba(255, 0, 54, .12);
}
.wecom-empty {
  margin: 10px auto;
  padding: 24px 12px;
  border-radius: 12px;
  background: #fff1f0;
  color: #be123c;
  font-size: 13px;
  line-height: 1.6;
}
.wecom-tip {
  margin: 8px 0 12px;
  color: #ff0036;
  font-size: 12px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin: 0 0 10px;
  font-size: 13px;
  color: #374151;
}
.check-line input { width: 16px; height: 16px; }

.task-page-head {
  padding: 14px 14px 0;
  display: grid;
  gap: 8px;
}
.task-page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--d12);
}
.back-link {
  color: var(--d12);
  font-size: 14px;
  font-weight: 650;
  width: fit-content;
}
.festive-task-card {
  border-color: #ffd0dc;
  border-radius: 22px 18px 20px 16px;
  box-shadow: 0 8px 20px rgba(255, 45, 85, .06);
}
.festive-task-card .btn-red {
  margin-top: 8px;
  padding: 12px 0;
}
.verify-steps {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7f2, #fff1f0);
  border: 1px solid #ffc9b8;
}
.verify-steps .step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
}
.verify-steps .step b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6a00, #ff0036);
  color: #fff;
  font-size: 11px;
}
.wecom-truth {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 12px;
  line-height: 1.55;
}
.upload-box {
  display: block;
  margin: 0 0 12px;
  cursor: pointer;
}
.upload-preview {
  border: 1.5px dashed #f9a8d4;
  border-radius: 14px;
  min-height: 140px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff7ed, #fdf2f8);
  color: #9f1239;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  padding: 8px;
}
.upload-preview.empty { color: #be123c; }
.upload-preview img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  display: block;
}

.guest-login-card {
  margin: 12px 14px 0;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  border: 1px solid #fed7aa;
  box-shadow: 0 10px 24px rgba(255, 106, 0, .1);
}
.guest-login-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #9a3412;
  text-align: center;
}
.guest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.guest-actions .btn-red,
.guest-actions .btn-ghost {
  padding: 11px 0;
  font-size: 14px;
  font-weight: 700;
}
.festive-profile.is-guest {
  opacity: .92;
}
.festive-profile.is-guest .lock-chip b {
  color: #94a3b8;
}

/* ===== 暖橙 App 风 · 宽屏商城 · 长按识别 ===== */
.festive-body {
  background:
    radial-gradient(circle at 10% 6%, rgba(255, 140, 66, .14) 0 12%, transparent 13%),
    radial-gradient(circle at 92% 8%, rgba(255, 179, 102, .18) 0 10%, transparent 11%),
    linear-gradient(180deg, #fff4eb 0%, #fff9f5 38%, #fffdfb 100%);
}

.d12-top {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .28) 0%, transparent 42%),
    linear-gradient(125deg, #ff8c42 0%, #ffb366 48%, #ff9f5a 100%);
  border-radius: 24px;
}
.d12-mark {
  background: linear-gradient(160deg, #fff4eb, #ffd4a8);
  color: #c2410c;
  box-shadow: 0 6px 14px rgba(232, 111, 36, .22);
}
.d12-top strong {
  text-shadow: 0 2px 0 rgba(154, 52, 18, .12);
}
.d12-chips span {
  border-color: rgba(255, 255, 255, .45);
}

.xhs-hero .hero-bean-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.hero-bean-pill {
  background: rgba(255, 255, 255, .92);
  color: #c2410c;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}
.hero-bean-pill b { color: #ea580c; }
.hero-auth-btn {
  border: 1px solid rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 650;
  border-radius: 999px;
  padding: 8px 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 14px 0;
}
.quick-item {
  display: grid;
  gap: 6px;
  place-items: center;
  padding: 14px 6px;
  border-radius: 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: #7c2d12;
  box-shadow: 0 6px 16px rgba(255, 140, 66, .1);
  transition: transform .15s ease;
}
.quick-item:active { transform: scale(.97); }
.quick-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(255, 255, 255, .55);
}
.q-orange { background: linear-gradient(160deg, #ffe8d6, #ffd4a8); }
.q-peach { background: linear-gradient(160deg, #fff0e6, #ffe4cc); }
.q-cream { background: linear-gradient(160deg, #fff7ed, #ffedd5); }
.q-sand { background: linear-gradient(160deg, #fef3c7, #fde68a); color: #92400e; }
.q-sand .quick-ico { background: rgba(255, 255, 255, .6); }

.page-grid {
  display: grid;
  gap: 0;
  margin-top: 4px;
}
.page-side .side-panel {
  margin-top: 16px;
}

.gift-card {
  border-radius: 18px;
  border-color: #ffe4cc;
  transition: box-shadow .15s ease, transform .15s ease;
}
.gift-card:hover {
  box-shadow: 0 8px 20px rgba(255, 140, 66, .12);
}
.gift-card.selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 140, 66, .2);
}
.gift-cover {
  background: linear-gradient(160deg, #fff4eb, #ffe8d6);
}
.btn-red {
  background: linear-gradient(90deg, #ffb366, #ff8c42);
}
.festive-body .gift-card .btn-red,
.gift-body .btn-red {
  background: linear-gradient(90deg, #ffb366, #ff8c42);
}

.desktop-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 251, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.desktop-nav-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 8px 0;
}
.desktop-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #c2410c;
  font-weight: 400;
}
.desktop-brand span { font-size: 22px; }
.desktop-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.desktop-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.desktop-links a.active {
  background: var(--pink-soft);
  color: var(--pink-deep);
}
.desktop-links .ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.desktop-links .ico svg { width: 18px; height: 18px; display: block; }

.qr-hold-tip {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, #fff4eb, #ffe8d6);
  border: 1.5px solid #ffb366;
}
.qr-hold-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
  animation: qr-pulse 2s ease-in-out infinite;
}
.qr-hold-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: #c2410c;
}
.qr-hold-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9a3412;
  line-height: 1.5;
}
.qr-hold-sub b { color: #ea580c; }
.wecom-qr.qr-hold {
  border: 2px dashed #ffb366;
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  animation: qr-pulse 2.4s ease-in-out infinite;
}
@keyframes qr-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@media (min-width: 900px) {
  .desktop-nav { display: block; }
  .tabbar { display: none; }

  .app {
    width: min(1200px, calc(100% - 40px));
    padding-bottom: 32px;
  }

  .fab-feedback {
    right: max(24px, calc(50% - 600px + 24px));
    bottom: 24px;
  }

  .page-grid {
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
    padding: 0 14px;
  }
  .page-main .section,
  .page-side .section {
    margin-left: 0;
    margin-right: 0;
  }
  .page-side .side-panel {
    position: sticky;
    top: 72px;
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(255, 140, 66, .08);
  }

  .gift-grid,
  .gift-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .gift-cover { height: 130px; font-size: 48px; }

  .quick-grid {
    margin-left: 14px;
    margin-right: 14px;
    gap: 14px;
  }
  .quick-item {
    border-radius: 20px;
    padding: 18px 8px;
    font-size: 13px;
  }

  .d12-top,
  .festive-profile,
  .festive-beans,
  .guest-login-card,
  .festive-section {
    margin-left: 14px;
    margin-right: 14px;
  }

  .auth-app {
    width: min(480px, calc(100% - 40px));
  }
}

@media (min-width: 1100px) {
  .gift-grid,
  .gift-grid-3 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.festive-profile {
  border: 1.5px solid #ffd4a8;
  box-shadow: 0 10px 24px rgba(255, 140, 66, .08);
}
.festive-profile-top {
  border-bottom: 1px dashed #ffd4a8;
}
.festive-profile-top h2 {
  color: #c2410c;
}
.festive-body .profile-avatar {
  background: linear-gradient(145deg, #ffb366, #ff8c42);
}
.festive-body .lock-chip {
  background: linear-gradient(90deg, #fff4eb, #ffe8d6);
  color: #c2410c;
}
.festive-body .tabbar {
  border-top: 2px solid #ffe4cc;
  background: linear-gradient(180deg, #fff 0%, #fff9f5 100%);
}
.festive-body .auth-card {
  border: 1.5px solid #ffd4a8;
  box-shadow: 0 10px 24px rgba(255, 140, 66, .06);
}
.festive-task-card {
  border-color: #ffd4a8;
  box-shadow: 0 8px 20px rgba(255, 140, 66, .06);
}
.verify-steps {
  background: linear-gradient(180deg, #fff4eb, #fff9f5);
  border-color: #ffd4a8;
}
.verify-steps .step b {
  background: linear-gradient(135deg, #ffb366, #ff8c42);
}
.wecom-truth {
  background: #fff4eb;
  border-color: #ffd4a8;
  color: #9a3412;
}
.upload-preview {
  border-color: #ffb366;
  background: linear-gradient(180deg, #fff4eb, #fff9f5);
  color: #c2410c;
}
.upload-preview.empty { color: #ea580c; }

.mobile-search,
.mobile-promo,
.login-mascot {
  display: none;
}

@media (max-width: 899px) {
  /* ===== 手机端 App 风（参考毛球记） ===== */
  .festive-body {
    background: #f5f5f5;
  }
  .app {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    padding-bottom: calc(var(--nav-h) + 10px);
  }

  /* 顶栏：通栏暖橙 + 大圆角底 */
  .d12-top {
    margin: 0;
    border-radius: 0 0 28px 28px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 22px;
    background: linear-gradient(160deg, #ff8c42 0%, #ff9f5a 100%);
  }
  .d12-top strong {
    font-family: inherit;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
  }
  .d12-top p {
    font-size: 13px;
    opacity: .92;
    font-weight: 500;
  }
  .d12-mark {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 20px;
    border-radius: 16px;
  }
  .d12-chips { margin-top: 10px; }
  .d12-chips span {
    font-size: 11px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, .22);
    border: 0;
  }

  /* 底部 Tab */
  .tabbar {
    width: 100%;
    left: 0;
    transform: none;
    border-top: 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .06);
    background: #fff;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  }
  .tabbar a {
    font-size: 11px;
    gap: 4px;
  }
  .tabbar a.active {
    color: #ff8c42;
  }
  .tabbar .ico svg {
    width: 24px;
    height: 24px;
  }

  .fab-feedback {
    right: 16px;
    bottom: calc(var(--nav-h) + 12px);
    box-shadow: 0 6px 18px rgba(255, 140, 66, .25);
    color: #ff8c42;
  }

  /* ===== 商城页 index ===== */
  .shop-page .mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .95);
    border-radius: 999px;
    padding: 10px 14px;
    margin-bottom: 12px;
    color: #9ca3af;
    font-size: 14px;
  }
  .shop-page .mobile-search-ico { font-size: 15px; opacity: .7; }
  .shop-page .shop-hero-title { display: none; }
  .shop-page .hero-bean-row { margin-top: 0; }
  .shop-page .hero-bean-pill {
    flex: 1;
    background: rgba(255, 255, 255, .95);
    font-weight: 700;
  }
  .shop-page .hero-auth-btn {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .5);
    font-weight: 700;
  }

  .mobile-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -8px 14px 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%);
    box-shadow: 0 8px 20px rgba(255, 183, 77, .35);
    position: relative;
    z-index: 2;
  }
  .mobile-promo-text strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #5d4037;
  }
  .mobile-promo-text p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #795548;
  }
  .mobile-promo-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: #5d4037;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .quick-grid {
    margin: 14px 14px 0;
    gap: 8px;
    background: #fff;
    border-radius: 20px;
    padding: 14px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  }
  .quick-item {
    background: transparent !important;
    box-shadow: none;
    padding: 8px 4px;
    gap: 8px;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
  }
  .quick-ico {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 20px;
    background: #fff4eb;
  }
  .q-orange .quick-ico { background: #ffe0b2; }
  .q-peach .quick-ico { background: #ffccbc; }
  .q-cream .quick-ico { background: #fff9c4; }
  .q-sand .quick-ico { background: #f0f4c3; }

  .page-main .festive-section,
  .page-side .side-panel {
    margin: 14px;
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  }
  .page-side .side-panel {
    margin-top: 0;
  }
  .festive-title .title-text {
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    color: #1f2937;
  }
  .festive-title .title-tag {
    background: #fff4eb;
    color: #ff8c42;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
  }

  .gift-grid,
  .gift-grid-3 {
    gap: 12px;
  }
  .festive-body .gift-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    overflow: hidden;
  }
  .festive-body .gift-cover {
    height: 120px;
    background: linear-gradient(160deg, #fff8e1, #ffe0b2);
    font-size: 44px;
  }
  .gift-body {
    padding: 12px;
  }
  .gift-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
  }
  .festive-body .gift-cost {
    background: #fff4eb;
    color: #ff8c42 !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
  }
  .festive-body .gift-card.selected {
    box-shadow: 0 0 0 2px #ff8c42;
  }

  .redeem-form {
    border: 0;
    background: #fafafa;
    border-radius: 16px;
    padding: 14px;
    box-shadow: none;
  }
  .field input,
  .field textarea {
    border-radius: 12px;
    border-color: #e5e7eb;
    background: #fff;
  }
  .festive-body .btn-red {
    border-radius: 999px;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(90deg, #ffb366, #ff8c42);
    box-shadow: 0 6px 16px rgba(255, 140, 66, .3);
  }
  .type-tabs button {
    border-radius: 999px;
  }
  .type-tabs button.active {
    background: #fff4eb;
    border-color: #ffb366;
    color: #ff8c42;
  }

  /* ===== 会员中心 mine ===== */
  .mine-page .mine-header-zone {
    position: relative;
    margin-bottom: 4px;
  }
  .mine-page .mine-hero {
    padding-bottom: 48px;
  }
  .mine-page .guest-login-card {
    margin: -36px 14px 0;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    background: #fff;
    padding: 20px 16px;
  }
  .mine-page #guestCard:not(.hidden) + .festive-profile {
    display: none;
  }
  .mine-page .festive-profile {
    margin: -36px 14px 0;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  }
  .mine-page .guest-login-card p {
    color: #6b7280;
  }
  .mine-page .festive-profile-top h2 {
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
  }
  .mine-page .profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 20px;
  }
  .mine-page .festive-beans {
    margin: 14px;
    gap: 12px;
  }
  .mine-page .bean-glow {
    border-radius: 20px;
    background: linear-gradient(135deg, #fff4eb, #ffe0b2);
    color: #c2410c;
    box-shadow: 0 4px 14px rgba(255, 140, 66, .15);
  }
  .mine-page .bean-glow b {
    font-family: inherit;
    font-size: 28px;
    font-weight: 800;
    color: #ea580c;
  }
  .mine-page .festive-checkin {
    border-radius: 20px;
    background: linear-gradient(135deg, #ffb366, #ff8c42);
    box-shadow: 0 6px 16px rgba(255, 140, 66, .3);
    font-weight: 700;
  }
  .mine-page .festive-section {
    margin: 14px;
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  }
  .mine-page .festive-tasks {
    border: 0;
    box-shadow: none;
    border-radius: 16px;
    background: #fafafa;
  }
  .mine-page .festive-tasks .task-item {
    padding: 14px 12px;
    border-color: #f3f4f6;
  }
  .mine-page .festive-tasks .task-item h4 {
    font-size: 15px;
    font-weight: 700;
  }
  .mine-page .festive-tasks .task-item p {
    color: #ff8c42;
    font-weight: 600;
  }
  .mine-page .festive-tasks .task-item button {
    background: #fff4eb;
    color: #ff8c42;
    border-radius: 999px;
    font-weight: 700;
    padding: 8px 14px;
  }

  /* ===== 登录页 ===== */
  .login-page.festive-body {
    background: #ff8c42;
  }
  .login-page .app {
    background: transparent;
    min-height: 100vh;
    padding-bottom: 24px;
  }
  .login-page .login-mascot {
    display: block;
    text-align: center;
    font-size: 56px;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 0 8px;
    line-height: 1;
  }
  .login-page .login-hero {
    background: transparent;
    margin: 0;
    padding: 0 16px 12px;
    border-radius: 0;
    text-align: center;
  }
  .login-page .login-hero .d12-mark,
  .login-page .login-hero .d12-top-inner {
    display: none;
  }
  .login-page .login-hero strong {
    display: block;
    font-size: 24px;
    color: #fff;
    text-shadow: none;
  }
  .login-page .login-hero p {
    color: rgba(255, 255, 255, .88);
    margin-top: 6px;
  }
  .login-page .auth-card {
    margin: 12px 16px 0;
    border: 0;
    border-radius: 24px;
    padding: 20px 18px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    background: #fff;
  }
  .login-page .auth-tabs {
    margin-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
  }
  .login-page .auth-tabs button {
    font-size: 16px;
    font-weight: 600;
    color: #9ca3af;
    padding: 10px 0;
  }
  .login-page .auth-tabs button.active {
    color: #ff8c42;
    border-bottom: 3px solid #ff8c42;
    font-weight: 700;
  }
  .login-page .field input {
    border-radius: 14px;
    padding: 12px 14px;
    border-color: #e5e7eb;
    background: #fafafa;
  }
  .login-page .field span {
    font-weight: 600;
    color: #374151;
  }
  .login-page .btn-red {
    margin-top: 8px;
    border-radius: 999px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
  }
  .login-page .btn-ghost {
    border-radius: 999px;
    color: #ff8c42;
    border-color: #ffd4a8;
  }

  /* ===== 任务页 / 消息 ===== */
  .festive-body .auth-card,
  .festive-task-card {
    margin-left: 14px;
    margin-right: 14px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  }
  .task-page-head {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 8px;
    background: #ff8c42;
    color: #fff;
    margin: 0;
  }
  .task-page-head h1 {
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-align: center;
  }
  .task-page-head .back-link {
    color: #fff;
    opacity: .95;
  }
  .festive-body.auth-app .task-page-head + .auth-card {
    margin-top: -12px;
    position: relative;
    z-index: 2;
  }

  .festive-page-head {
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 12px;
    background: #fff;
    margin: 0 0 14px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  }
  .festive-app > .section {
    margin-top: 0;
  }
  .order-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 10px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  }

  /* 桌面专用元素默认隐藏，手机端按需显示 */
  .shop-page .mobile-search { display: flex; }
  .shop-page .mobile-promo { display: flex; }
  .login-page .login-mascot { display: block; }

  .page-side .side-panel {
    margin-left: 14px;
    margin-right: 14px;
  }
}

/* ===== 显隐：手机 / 电脑 ===== */
.m-only { display: none; }
.d-only { display: block; }

@media (max-width: 899px) {
  .m-only { display: block; }
  .d-only { display: none !important; }
  .type-tabs.d-only { display: none !important; }

  /* 手机端首页：奶油底 + App 风 */
  .shop-page.festival-2026 {
    background: #f7f4ef;
  }
  .shop-page.festival-2026 .festive-sparks { display: none; }
  .shop-page .app {
    background: #f7f4ef;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .m-home {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
  }

  .m-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 12px;
  }
  .m-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffb366, #ff8c42);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(255, 140, 66, .25);
  }
  .m-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eee;
    color: #9ca3af;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
  }
  .m-search-ico { font-size: 14px; opacity: .7; }
  .m-auth-btn {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #ff8c42;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 2px;
  }

  .m-banner {
    position: relative;
    margin: 0 14px;
    padding: 18px 16px 22px;
    min-height: 148px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffe566 0%, #ffb020 100%);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(255, 176, 32, .28);
  }
  .m-banner-text { position: relative; z-index: 1; max-width: 62%; }
  .m-banner-date {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #9a3412;
    opacity: .85;
  }
  .m-banner h2 {
    margin: 6px 0 0;
    font-size: 26px;
    font-weight: 850;
    color: #5d4037;
    letter-spacing: .02em;
  }
  .m-banner-sub {
    margin: 6px 0 0;
    font-size: 12px;
    color: #7c2d12;
  }
  .m-banner-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #3d348b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }
  .m-banner-art {
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 72px;
    line-height: 1;
    opacity: .92;
    transform: rotate(-8deg);
  }
  .m-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 1;
  }
  .m-banner-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(93, 64, 55, .25);
  }
  .m-banner-dots i.on { background: #5d4037; width: 14px; border-radius: 999px; }

  .m-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 16px 10px 0;
  }
  .m-quick-item {
    display: grid;
    gap: 8px;
    place-items: center;
    font-size: 12px;
    font-weight: 650;
    color: #374151;
  }
  .m-qi {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  }
  .m-qi-blue { background: #dbeafe; color: #2563eb; }
  .m-qi-red { background: #fee2e2; color: #ef4444; }
  .m-qi-yellow { background: #fef3c7; }
  .m-qi-grid {
    background: linear-gradient(135deg, #fde68a, #fdba74);
    color: #c2410c;
    font-size: 18px;
  }

  .m-service {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    margin: 16px 14px 0;
    min-height: 200px;
  }
  .m-svc-lg {
    grid-row: 1 / span 2;
    position: relative;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(160deg, #ffd4a8, #ffb366);
    color: #7c2d12;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(255, 140, 66, .15);
  }
  .m-svc-lg h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
  }
  .m-svc-lg p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    opacity: .85;
  }
  .m-svc-art {
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 56px;
    opacity: .9;
  }
  .m-svc-sm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
  }
  .m-svc-sm h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
  }
  .m-svc-sm p {
    margin: 4px 0 0;
    font-size: 11px;
    color: #6b7280;
  }
  .m-svc-blue { background: #e0f2fe; }
  .m-svc-yellow { background: #fef9c3; }
  .m-svc-mini { font-size: 28px; line-height: 1; }

  .m-topic {
    margin: 14px 14px 0;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
  }
  .m-topic-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }
  .m-topic-row b {
    flex: 0 0 auto;
    color: #ff8c42;
    font-size: 14px;
  }
  .m-topic-row span {
    flex: 1;
    font-weight: 650;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-topic-row i {
    color: #9ca3af;
    font-style: normal;
    font-size: 18px;
  }
  .m-topic-hot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
  }
  .m-topic-hot em {
    flex: 0 0 auto;
    font-style: normal;
    font-weight: 800;
    color: #ff8c42;
    font-size: 12px;
  }
  .m-topic-avs {
    display: flex;
    flex: 0 0 auto;
  }
  .m-topic-avs i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -6px;
    background: linear-gradient(135deg, #ffb366, #ff8c42);
  }
  .m-topic-avs i:first-child { margin-left: 0; background: #93c5fd; }
  .m-topic-avs i:nth-child(2) { background: #fcd34d; }
  .m-topic-hot p {
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-feed {
    margin: 16px 14px 0;
  }
  .m-feed-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    border: 0;
    background: transparent;
  }
  .m-feed-tabs button {
    border: 0;
    background: transparent;
    padding: 4px 0 8px;
    font-size: 15px;
    color: #9ca3af;
    font-weight: 600;
    border-radius: 0;
    border-bottom: 3px solid transparent;
  }
  .m-feed-tabs button.active {
    color: #1f2937;
    font-size: 18px;
    font-weight: 800;
    border-bottom-color: #ff8c42;
    background: transparent;
  }
  .m-tags {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
  }
  .m-tags::-webkit-scrollbar { display: none; }
  .m-tags span {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #eee;
  }
  .m-tags span.on {
    background: #fff4eb;
    color: #ff8c42;
    border-color: #ffd4a8;
  }
  .bean-inline {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 650;
    color: #9a3412;
  }
  .bean-inline b {
    color: #ea580c;
    font-size: 16px;
    margin-left: 4px;
  }

  .m-feed .gift-grid {
    gap: 12px;
  }
  .m-feed .gift-card {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  }

  .shop-page .page-grid {
    margin-top: 8px;
  }
  .shop-page .page-side .side-panel {
    margin: 12px 14px 0;
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  }

  /* 底栏：中间凸起 + */
  .tabbar.tabbar-plus {
    grid-template-columns: repeat(5, 1fr);
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-top: 6px;
    border-top: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
    background: #fff;
  }
  .tabbar.tabbar-plus a {
    font-size: 10px;
    gap: 2px;
  }
  .tabbar.tabbar-plus a.active { color: #ff8c42; }
  .tabbar .tab-plus {
    position: relative;
    top: -14px;
  }
  .tabbar .plus-btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffb366, #ff8c42);
    color: #fff;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(255, 140, 66, .4);
  }
  .tabbar .tab-plus .ico { display: none; }

  .fab-feedback { display: none; }
}

@media (min-width: 900px) {
  .m-only { display: none !important; }
  .d-only { display: block; }
  .type-tabs.d-only { display: grid; }
  .page-main.d-only { display: block; }
}

/* ===== 2026造价人节 紫粉设计图（手机端） ===== */
.zj-theme.festive-body {
  background: linear-gradient(180deg, #f3e8ff 0%, #fdf2f8 40%, #f8fafc 100%);
}
.zj-theme .festive-sparks { display: none; }

.zj-hero {
  position: relative;
  margin: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 210, 77, .35) 0%, transparent 28%),
    radial-gradient(circle at 15% 70%, rgba(255, 77, 141, .25) 0%, transparent 35%),
    linear-gradient(165deg, #6d28d9 0%, #a21caf 38%, #e11d48 78%, #fb7185 100%);
  color: #fff;
  border-radius: 0 0 28px 28px;
}
.zj-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.zj-bean-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.zj-bean-pill b { color: #e11d48; }
.zj-feedback {
  border: 0;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
}
.zj-hero-main {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px 0 8px;
}
.zj-hero-main.compact { padding: 18px 0 4px; }
.zj-year {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #c026d3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.zj-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: .08em;
  background: linear-gradient(180deg, #fff7cc, #f5d78e 45%, #d4a017);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 0 rgba(120, 53, 15, .35));
}
.zj-title.sm { font-size: 36px; }
.zj-slogan {
  display: inline-block;
  margin: 10px 0 0;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #be123c;
  font-size: 13px;
  font-weight: 700;
}
.zj-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.zj-hero-deco span {
  position: absolute;
  font-size: 28px;
  opacity: .85;
}
.zj-hero-deco .d1 { right: 18px; top: 42%; font-size: 42px; }
.zj-hero-deco .d2 { left: 16px; bottom: 28px; font-size: 34px; }
.zj-hero-deco .d3 { left: 48px; top: 38%; font-size: 26px; }
.zj-hero-deco .d4 { right: 48px; top: 28%; font-size: 20px; animation: d12-bob 2.4s ease-in-out infinite; }

.zj-page-title {
  text-align: center;
  font-size: 16px;
  font-weight: 750;
  position: relative;
  z-index: 2;
}
.zj-hero-mine .festive-logout {
  position: absolute;
  right: 14px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 3;
}

.zj-section {
  margin: 14px 14px 0;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .08);
}
.zj-sec-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
}
.zj-sec-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ca3af;
}
.zj-type-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.zj-type-tabs button {
  border: 1px solid #f3e8ff;
  background: #faf5ff;
  border-radius: 999px;
  padding: 6px 14px;
  color: #7c3aed;
  font-size: 13px;
}
.zj-type-tabs button.active {
  background: linear-gradient(90deg, #ff6b9d, #e11d48);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.zj-gift-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.zj-gift-side {
  display: grid;
  gap: 10px;
}
.zj-gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.zj-gift-featured,
.zj-gift-card {
  position: relative;
  background: linear-gradient(180deg, #faf5ff, #fff);
  border: 1px solid #f3e8ff;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
}
.zj-gift-featured.selected,
.zj-gift-card.selected {
  box-shadow: 0 0 0 2px #ff4d8d;
}
.zj-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6b9d, #e11d48);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.zj-gift-cover {
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 36px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ede9fe, #fce7f3);
  margin-bottom: 8px;
}
.zj-gift-cover.big {
  height: 120px;
  font-size: 52px;
}
.zj-gift-featured h3,
.zj-gift-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  color: #1f2937;
}
.zj-cost {
  margin: 4px 0 8px;
  color: #e11d48;
  font-size: 13px;
  font-weight: 800;
}
.zj-buy {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 8px 0;
  background: linear-gradient(90deg, #ff6b9d, #e11d48);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.zj-tabs {
  gap: 24px;
  margin: 10px 0 12px;
  border-bottom: 1px solid #f3e8ff;
}
.zj-tabs button.active {
  color: #e11d48;
  border-bottom-color: #e11d48;
  font-weight: 800;
}
.zj-order-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8fafc;
}
.zj-order-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #faf5ff;
  font-size: 24px;
}
.zj-order-main h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}
.zj-order-main p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ca3af;
}
.zj-order-status {
  font-size: 12px;
  color: #e11d48;
  font-weight: 700;
  white-space: nowrap;
}
.zj-orders-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

.zj-lock-bar {
  margin: -18px 14px 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff7ed, #fce7f3);
  border: 1px solid #fecdd3;
  box-shadow: 0 6px 16px rgba(225, 29, 72, .1);
}
.zj-lock-bar p {
  flex: 1;
  margin: 0;
  font-size: 12px;
  color: #9a3412;
  font-weight: 650;
}
.zj-lock-bar button {
  border: 0;
  background: transparent;
  color: #e11d48;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.zj-lock-bar.hidden { display: none; }

.zj-profile-card {
  margin: 12px 14px 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .08);
}
.zj-profile-card.is-guest { opacity: .92; }
.zj-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: linear-gradient(145deg, #fde68a, #fb923c);
  box-shadow: 0 6px 14px rgba(251, 146, 60, .3);
}
.zj-profile-rows {
  display: grid;
  gap: 6px;
}
.zj-profile-rows > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  font-size: 13px;
}
.zj-profile-rows span { color: #9ca3af; }
.zj-profile-rows b {
  font-weight: 700;
  color: #1f2937;
  word-break: break-all;
}

.zj-bean-row {
  margin: 12px 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.zj-bean-card,
.zj-checkin {
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 6px;
  text-align: left;
}
.zj-bean-card {
  background: linear-gradient(135deg, #fff7ed, #fce7f3);
  border: 1px solid #fecdd3;
}
.zj-bean-card span,
.zj-checkin span {
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
}
.zj-bean-card b {
  font-size: 28px;
  color: #e11d48;
  font-weight: 850;
}
.zj-checkin {
  border: 0;
  background: linear-gradient(135deg, #ff6b9d, #e11d48);
  color: #fff;
  box-shadow: 0 8px 18px rgba(225, 29, 72, .28);
}
.zj-checkin span { color: rgba(255,255,255,.9); }
.zj-checkin b {
  font-size: 26px;
  font-weight: 850;
  color: #fff;
}
.zj-checkin:disabled {
  opacity: .65;
}

.zj-task-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.zj-task {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f8fafc;
}
.zj-task:last-child { border-bottom: 0; }
.zj-task-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #faf5ff;
  font-size: 20px;
}
.zj-task-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}
.zj-task-body p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #9ca3af;
}
.zj-task-body em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #e11d48;
}
.zj-task button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(90deg, #fff0f5, #fce7f3);
  color: #e11d48;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.zj-task button.done {
  background: #f3f4f6;
  color: #9ca3af;
}

.zj-theme .btn-red {
  background: linear-gradient(90deg, #ff6b9d, #e11d48);
  box-shadow: 0 8px 18px rgba(225, 29, 72, .22);
  border-radius: 999px;
}
.zj-theme .tabbar a.active { color: #e11d48; }

@media (max-width: 899px) {
  .zj-theme .app {
    background: transparent;
    width: 100%;
    max-width: 100%;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar.tabbar-4 {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    left: 0;
    transform: none;
    border-top: 0;
    box-shadow: 0 -4px 20px rgba(124, 58, 237, .08);
    background: #fff;
  }
  .zj-theme .fab-feedback { display: none; }
  .zj-theme .page-side.d-only { display: none !important; }
}

.zj-gift-cover.has-img,
.gift-cover.has-img {
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
}
.zj-gift-cover.has-img img,
.gift-cover.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zj-order-thumb.has-img {
  padding: 0;
  overflow: hidden;
}
.zj-order-thumb.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 京东式省市区选择 ===== */
.region-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.region-trigger #regionDisplay.is-placeholder {
  color: #9ca3af;
}
.region-arrow {
  color: #9ca3af;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}
.region-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.region-sheet-mask.hidden { display: none; }
.region-sheet {
  width: min(430px, 100%);
  max-height: 72vh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: region-up .25s ease;
}
@keyframes region-up {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.region-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.region-sheet-head strong {
  font-size: 16px;
  font-weight: 750;
}
.region-sheet-close {
  border: 0;
  background: transparent;
  color: #ff8c42;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 4px;
}
.region-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #f3f4f6;
  padding: 0 8px;
}
.region-tabs button {
  border: 0;
  background: transparent;
  padding: 12px 6px;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-tabs button.active {
  color: #ff8c42;
  border-bottom-color: #ff8c42;
  font-weight: 750;
}
.region-tabs button:disabled { opacity: .45; }
.region-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: 52vh;
}
.region-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 18px;
  font-size: 14px;
  color: #374151;
}
.region-item.active {
  color: #ff8c42;
  font-weight: 700;
  background: #fff7ed;
}
.region-item:active { background: #fff4eb; }

@media (min-width: 900px) {
  .region-sheet {
    width: min(480px, 100%);
    border-radius: 18px;
    margin-bottom: 40px;
    max-height: 60vh;
  }
  .region-sheet-mask {
    align-items: center;
  }
}

/* ===== 2026 造价人节喜庆元素 ===== */
.festival-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe566, #ffb020);
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(255, 176, 32, .35);
  position: relative;
  z-index: 1;
}
.festival-chips span {
  background: rgba(255, 255, 255, .22) !important;
  border: 1px solid rgba(255, 255, 255, .45) !important;
}
.festival-promo {
  background: linear-gradient(135deg, #ff6b3d 0%, #ffb020 55%, #ffe566 100%) !important;
  box-shadow: 0 10px 28px rgba(255, 107, 61, .35) !important;
}
.festival-promo .promo-badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: #c2410c;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.festival-promo .mobile-promo-text strong {
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(154, 52, 18, .2);
}
.festival-promo .mobile-promo-text p {
  color: rgba(255, 255, 255, .92) !important;
}
.festival-promo .mobile-promo-btn {
  background: #fff !important;
  color: #c2410c !important;
}

.festive-sparks {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 210, 77, .35) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 28%, rgba(255, 45, 85, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(255, 210, 77, .3) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 36%, rgba(255, 107, 61, .25) 0 2px, transparent 3px),
    radial-gradient(circle at 14% 72%, rgba(255, 210, 77, .2) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 80%, rgba(255, 45, 85, .18) 0 3px, transparent 4px);
  opacity: .85;
}
.festival-2026 .app,
.festival-2026 .d12-top {
  position: relative;
  z-index: 1;
}
.festival-2026.festive-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 210, 77, .28) 0 10%, transparent 11%),
    radial-gradient(circle at 88% 10%, rgba(255, 45, 85, .14) 0 12%, transparent 13%),
    linear-gradient(180deg, #ffe8ef 0%, #fff4eb 36%, #fff9f5 100%);
}
.festival-hero {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 210, 77, .55) 0%, transparent 36%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .2) 0%, transparent 40%),
    linear-gradient(125deg, #ff2d55 0%, #ff6b3d 42%, #ff9f1a 100%) !important;
}
.festival-hero .d12-mark {
  background: linear-gradient(160deg, #ffe566, #ffb020) !important;
  color: #9f1239 !important;
}
.festival-2026 .festive-title .title-tag {
  background: linear-gradient(90deg, #ff7a1a, #ff2d55) !important;
  color: #fff !important;
}

@media (max-width: 899px) {
  .festival-2026.festive-body {
    background: #fff5f0;
  }
  .festival-hero {
    border-radius: 0 0 28px 28px !important;
  }
  .shop-page.festival-2026 .shop-hero-title {
    display: flex !important;
    margin-bottom: 8px;
  }
  .shop-page.festival-2026 .festival-chips {
    display: flex;
    margin-top: 10px;
  }
  .shop-page.festival-2026 .mobile-search {
    margin-bottom: 10px;
  }
}

.zj-gift-cover.has-img,
.gift-cover.has-img {
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
}
.zj-gift-cover.has-img img,
.gift-cover.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zj-order-thumb.has-img {
  padding: 0;
  overflow: hidden;
}
.zj-order-thumb.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===== 设计图对齐：真实 Banner / 产品图 / 详情页 ===== */
.zj-hero-photo {
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 12px;
  background: transparent;
  border-radius: 0;
  min-height: 0;
}
.zj-hero-photo .zj-hero-img {
  display: block;
  width: calc(100% + 24px);
  margin: 0 -12px 0;
  height: auto;
  border-radius: 0 0 22px 22px;
  object-fit: cover;
}
.zj-hero-photo .zj-hero-top {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(12px + env(safe-area-inset-top, 0px));
}
.zj-hero-mine.zj-hero-photo { padding-bottom: 8px; }
.zj-hero-mine .zj-page-title {
  position: absolute;
  left: 0; right: 0;
  top: calc(10px + env(safe-area-inset-top, 0px));
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  z-index: 3;
  pointer-events: none;
}
.zj-bean-ico {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #f59e0b 55%, #d97706);
  vertical-align: -2px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
}
.zj-bean-pill .zj-bean-ico { margin-right: 6px; }
.zj-sec-head.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.zj-sec-head.row p { margin: 0; color: #c084a0; font-weight: 600; }
.zj-star { color: #f472b6; font-size: 14px; }
.zj-zone {
  background: linear-gradient(180deg, #fff1f5, #ffffff 40%);
  border: 1px solid #fce7f3;
}
.zj-gift-cover { height: 88px; }
.zj-gift-cover.big { height: 148px; }
.zj-gift-grid-3 { grid-template-columns: repeat(3, 1fr); }
.zj-gift-grid-3 .zj-gift-card { padding: 8px; }
.zj-gift-grid-3 .zj-gift-cover { height: 72px; }
.zj-gift-grid-3 h3 { font-size: 12px; }
.zj-gift-grid-3 .zj-cost { font-size: 11px; }
.zj-gift-grid-3 .zj-buy { font-size: 11px; padding: 6px 0; }
.zj-order-cost { color: #9ca3af !important; font-size: 11px !important; }
.zj-order-status.pending { color: #f97316; font-weight: 700; }
.zj-order-status.shipped { color: #7c3aed; font-weight: 700; }
.zj-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #fce7f3;
  display: block;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(124,58,237,.18);
}
.zj-task-ico.pink { background: #fce7f3; }
.zj-task-ico.purple { background: #ede9fe; }
.zj-task-ico.orange { background: #ffedd5; }

.gift-detail-page .app { padding-bottom: 88px; }
.zj-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
}
.zj-detail-nav h1 { margin: 0; font-size: 16px; font-weight: 750; }
.zj-detail-nav .back-link {
  font-size: 28px; line-height: 1; text-decoration: none; color: #1f2937; width: 36px;
}
.zj-detail-nav-spacer { width: 36px; }
.zj-detail-gallery {
  position: relative;
  margin: 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(124,58,237,.08);
}
.zj-detail-gallery .detail-tag { top: 12px; left: 12px; }
.zj-detail-cover,
.zj-detail-main-img .zj-detail-cover,
.zj-detail-main-img .zj-gift-cover {
  height: 240px !important;
  margin: 0;
  border-radius: 0;
}
.zj-detail-info .zj-detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.zj-detail-info h2 { margin: 0; font-size: 22px; font-weight: 800; }
.zj-detail-info #gSub { margin: 4px 0 0; color: #7c3aed; font-size: 13px; }
.zj-detail-price { text-align: right; color: #e11d48; white-space: nowrap; }
.zj-detail-price b { font-size: 28px; font-weight: 800; }
.zj-detail-price span { font-size: 12px; color: #9ca3af; }
.zj-detail-badges { display: flex; gap: 8px; margin: 12px 0; }
.zj-detail-badges span {
  border: 1px solid #e9d5ff; color: #7c3aed;
  border-radius: 999px; padding: 2px 10px; font-size: 11px;
}
.zj-feature-list, .zj-rule-list { margin: 0; padding: 0; list-style: none; }
.zj-feature-list li, .zj-rule-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: 13px; color: #4b5563;
  border-bottom: 1px solid #f3e8ff;
}
.zj-feature-list li:last-child, .zj-rule-list li:last-child { border-bottom: 0; }
.zj-feature-list li::before, .zj-rule-list li::before {
  content: "✦"; position: absolute; left: 0; color: #a855f7; font-size: 10px; top: 11px;
}
.zj-related { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zj-related-card {
  text-decoration: none; color: inherit;
  background: #faf5ff; border: 1px solid #f3e8ff;
  border-radius: 14px; padding: 10px; display: block;
}
.zj-related-card h4 { margin: 6px 0 2px; font-size: 14px; }
.zj-buy.mini {
  display: inline-block; width: auto; padding: 6px 14px; font-size: 12px;
  background: linear-gradient(90deg, #fb923c, #f97316);
}
.zj-buy.big { width: auto; min-width: 148px; padding: 12px 22px; font-size: 15px; }
.zj-detail-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96);
  border-top: 1px solid #f3e8ff;
  backdrop-filter: blur(8px);
}
.zj-detail-bar-cost { font-weight: 750; color: #e11d48; }
.zj-detail-bar-cost b { font-size: 20px; }
@media (min-width: 900px) {
  .zj-hero-photo .zj-hero-img {
    max-height: 280px; width: 100%; margin: 0; border-radius: 20px;
  }
  .zj-hero-photo { padding: 16px 16px 0; }
  .zj-hero-photo .zj-hero-top { left: 28px; right: 28px; top: 28px; }
}

.zj-desk-hero {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  border-radius: 20px;
  margin: 16px 16px 0;
}
.zj-desk-hero-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}
.zj-desk-hero-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.zj-desk-hero-overlay .hero-bean-pill {
  background: rgba(255,255,255,.95);
}
.zj-desk-hero-overlay .hero-auth-btn {
  background: rgba(255,255,255,.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
