/* =========================================================================
   Pray祈愿电竞 · 样式表
   粉白黑 + 樱花的配色，移动端优先的 H5 点单册。
   ========================================================================= */

:root {
  --cream: #f7f1e7;
  --cream-soft: #fffaf0;
  --paper: #fffdf8;
  --brown-900: #4a3423;
  --brown-800: #5c402e;
  --brown-700: #6f5138;
  --brown-500: #907965;
  --brown-300: #c9b5a0;
  --line: #eadfcc;
  --gold: #d8aa6a;
  --gold-deep: #b98a4a;
  --butter: #f2c877;
  --peach: #f3b994;
  --rose: #eaa8b2;
  --sage: #a9c095;
  --sky: #a6c6d8;
  --ok: #6f9c62;
  --warn: #c98a3c;
  --danger: #c1665c;
  /* 绘马（祈愿牌）素材配色，粉白黑主题里会覆盖 */
  --mark-wood: #f6e6cd;
  --mark-line: #4a3423;
  --mark-accent: #b9853f;
  /* 运势签卡的五个签位配色（暖金主题） */
  --sign-top-a: #f7bb72;
  --sign-top-b: #d98b3f;
  --sign-high-a: #ffe0c8;
  --sign-high-b: #efb289;
  --sign-normal-a: #fff6e6;
  --sign-normal-b: #eed6ae;
  --sign-mid-a: #e2edcf;
  --sign-mid-b: #b9cfa2;
  --sign-special-a: #ece0fa;
  --sign-special-b: #c4aee8;
  --sign-ink: #4a3423;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(96, 66, 40, 0.08);
  --shadow: 0 12px 30px rgba(96, 66, 40, 0.1);
  --shadow-lg: 0 24px 60px rgba(96, 66, 40, 0.18);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--brown-900);
  font: 400 15px/1.6 var(--font);
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 200, 119, 0.34), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(234, 168, 178, 0.24), transparent 38%),
    linear-gradient(165deg, #f9f2e6 0%, #eee0cc 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------- App 外壳 */
.app {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 246, 226, 0.9), transparent 30%),
    var(--cream);
  box-shadow: 0 0 0 1px rgba(200, 175, 140, 0.2), 0 30px 80px rgba(96, 66, 40, 0.16);
  padding-bottom: 96px;
  /* 用 clip 而不是 hidden：不会创建滚动容器，顶栏的 sticky 才能正常工作 */
  overflow-x: clip;
}

@media (min-width: 700px) {
  body {
    padding: 28px 0;
  }
  .app {
    min-height: calc(100vh - 56px);
    border-radius: 32px;
  }
}

/* --------------------------------------------------------- 开屏（绘马） */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--brown-800);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 244, 210, 0.96), transparent 30%),
    linear-gradient(155deg, #f8f0df, #ead9be);
  transition: opacity 0.45s ease, visibility 0s 0.45s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 开屏：一根绳子挂起绘马，轻轻摇晃，樱花慢慢飘落 */
.wish {
  position: relative;
  width: 210px;
  height: 176px;
  margin: 0 auto 18px;
}

.wish .rope {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 46px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(74, 52, 35, 0.05), var(--mark-line, #4a3423));
  border-radius: 999px;
  opacity: 0.75;
}

.wish-swing {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 118px;
  height: 122px;
  margin-left: -59px;
  transform-origin: center -40px;
  animation: wish-swing 3.6s ease-in-out infinite;
}

.wish-swing .ema {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 18px rgba(90, 30, 60, 0.18));
}

.wish-swing .ema svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wish-bell {
  position: absolute;
  top: 34px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(150deg, var(--gold, #d8aa6a), var(--gold-deep, #b98a4a));
  box-shadow: 0 4px 10px rgba(185, 138, 74, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: wish-bell 3.6s ease-in-out infinite;
}

.wish-bell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: inherit;
}

.wish-petal {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50% 0 50% 50%;
  background: linear-gradient(150deg, #ffd3e2, #f77fac);
  opacity: 0.85;
}

.w-p1 {
  left: 22px;
  bottom: 26px;
  animation: petal-drift 5.4s ease-in-out infinite;
}

.w-p2 {
  right: 30px;
  bottom: 46px;
  width: 9px;
  height: 9px;
  animation: petal-drift 6.2s ease-in-out 0.8s infinite;
}

.w-p3 {
  left: 46px;
  bottom: 8px;
  width: 10px;
  height: 10px;
  animation: petal-drift 5.8s ease-in-out 1.6s infinite;
}

@keyframes wish-swing {
  0%, 100% { transform: rotate(-4.5deg); }
  50% { transform: rotate(4.5deg); }
}

@keyframes wish-bell {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@keyframes petal-drift {
  0% { transform: translate3d(0, 10px, 0) rotate(0deg); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: translate3d(14px, -34px, 0) rotate(160deg); opacity: 0; }
}

.preloader h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.preloader p {
  margin: 0;
  color: var(--brown-500);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 18px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
  animation: dot-pulse 1.2s ease-in-out infinite;
}

.dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.dots i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes dot-pulse {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

/* --------------------------------------------------------------- 顶部栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  background: linear-gradient(180deg, rgba(252, 246, 235, 0.96), rgba(252, 246, 235, 0.72) 70%, transparent);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  font-size: 22px;
  background: linear-gradient(150deg, #ffe1a8, #e8b366);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand-mark svg {
  display: block;
  width: 27px;
  height: 27px;
}

/* 打手签位徽章：签越好颜色越亮 */
.sign {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.sign.sign-top { color: #fff4f8; background: linear-gradient(140deg, #e8467f, #b9226a); border-color: transparent; }
.sign.sign-high { color: #b02a5e; background: #ffe6f0; border-color: #f5bcd4; }
.sign.sign-normal { color: #8a6a2a; background: #fdf3d9; border-color: #ecd49a; }
.sign.sign-mid { color: #4a6b57; background: #eaf5ee; border-color: #c3ddcd; }
.sign.sign-low { color: #6b6259; background: #f2ece6; border-color: #ddd2c6; }

.brand-text {
  flex: 1;
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-size: 11.5px;
  color: var(--brown-500);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.shift-chip .dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffd79a, #e3a95e);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.shift-chip .dot::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--ok);
}

.shift-chip em {
  font-style: normal;
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.shift-chip small {
  display: block;
  font-size: 10px;
  color: var(--brown-500);
  line-height: 1.2;
}

/* ----------------------------------------------------------- 通用容器 */
.view {
  animation: view-in 0.32s ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.pad {
  padding: 0 18px;
}

.demo-note {
  margin: 6px 18px 2px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px dashed var(--gold);
  background: rgba(255, 250, 236, 0.8);
  color: var(--brown-700);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

.section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.section-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 650;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--brown-500);
}

.link-btn {
  flex: none;
  font-size: 12.5px;
  color: var(--brown-700);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  transition: 0.2s;
}

.link-btn:hover {
  border-color: var(--gold);
  color: var(--brown-900);
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #40301f;
  background: linear-gradient(150deg, #ffd89b, #e9ae5d);
  box-shadow: 0 10px 22px rgba(200, 150, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  color: var(--brown-800);
  border: 1px solid var(--line);
  background: var(--paper);
}

.btn-dark {
  color: #fff5e4;
  background: linear-gradient(150deg, #6b4b34, #4a3423);
  box-shadow: 0 10px 22px rgba(74, 52, 35, 0.28);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--brown-700);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.chip.gold {
  border-color: rgba(216, 170, 106, 0.7);
  background: rgba(255, 243, 219, 0.9);
  color: #8a6127;
}

.chip.ok {
  border-color: rgba(111, 156, 98, 0.5);
  background: rgba(233, 245, 226, 0.9);
  color: #4d7343;
}

/* ------------------------------------------------------------- 问候 & 轮播 */
.greeting {
  padding: 4px 18px 0;
}

.greeting-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.greeting-row > div {
  flex: 1;
  min-width: 0;
}

.icon-btn {
  position: relative;
}

.dot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  color: #fff;
  background: var(--danger);
  box-shadow: 0 3px 8px rgba(193, 102, 92, 0.4);
}

.greeting h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.greeting p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--brown-500);
}

/* ======================================================== 每日运势（首页） */
.fortune-hero {
  position: relative;
  margin: 16px 18px 0;
  padding: 16px 16px 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 0%, rgba(244, 82, 140, 0.14), transparent 46%),
    linear-gradient(170deg, var(--cream-soft), var(--paper) 62%);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.fortune-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.fortune-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  font-weight: 600;
}

.fortune-date {
  font-size: 11px;
  color: var(--brown-500);
  font-variant-numeric: tabular-nums;
}

.fortune-title {
  margin: 8px 0 4px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fortune-sub {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--brown-500);
}

.tube-wrap {
  display: grid;
  place-items: center;
  padding: 10px 0 4px;
}

.tube-wrap svg {
  display: block;
  filter: drop-shadow(0 12px 18px rgba(90, 30, 60, 0.16));
  transform-origin: 50% 16%;
}

.fortune-hero.is-drawing .tube-wrap svg {
  animation: tube-shake 0.22s ease-in-out infinite;
}

@keyframes tube-shake {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-4px); }
}

.fortune-draw {
  margin-top: 6px;
}

.fortune-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--brown-500);
  line-height: 1.6;
}

/* 抽出来的签 */
.sign-card {
  position: relative;
  margin: 10px auto 0;
  padding: 20px 18px 18px;
  width: min(100%, 300px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(160deg, var(--sign-normal-a), var(--sign-normal-b));
  color: var(--sign-ink);
  box-shadow: 0 16px 34px rgba(90, 30, 60, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.sign-card::before,
.sign-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  transform: rotate(45deg);
  opacity: 0.6;
}

.sign-card::before { left: 10px; top: 10px; }
.sign-card::after { right: 10px; bottom: 10px; }

.sign-card.sign-top { background: linear-gradient(160deg, var(--sign-top-a), var(--sign-top-b)); color: #fff; }
.sign-card.sign-high { background: linear-gradient(160deg, var(--sign-high-a), var(--sign-high-b)); }
.sign-card.sign-mid { background: linear-gradient(160deg, var(--sign-mid-a), var(--sign-mid-b)); }
.sign-card.sign-special { background: linear-gradient(160deg, var(--sign-special-a), var(--sign-special-b)); }

.sign-seal {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border: 1.5px solid currentColor;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(6deg);
  opacity: 0.85;
}

.sign-key {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.sign-card.is-wide .sign-key {
  font-size: 46px;
  letter-spacing: 0.14em;
}

.sign-name {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  opacity: 0.9;
}

.sign-bless {
  margin: 12px 4px 2px;
  font-size: 12.5px;
  line-height: 1.8;
  text-align: left;
  opacity: 0.88;
}

.perks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.perk {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.perk-ico {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--sign-normal-a), var(--sign-normal-b));
  font-size: 13px;
}

.perk-body {
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.65;
}

.perk-body b {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  background: var(--line);
  color: var(--brown-700);
}

.perk-body span {
  color: var(--brown-700);
}

.perks-preview {
  margin-top: 14px;
}

.fortune-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.fortune-actions .btn {
  flex: 1;
  padding: 11px 10px;
  font-size: 13.5px;
}

.fortune-page {
  margin: 6px 0 0;
}

.perk-block {
  margin-top: 22px;
}

.perk-block-head h2 {
  margin: 2px 0 0;
  font-size: 19px;
}

.perk-block-head p {
  margin: 4px 0 12px;
  font-size: 12.5px;
  color: var(--brown-500);
}

.perk-block-head .eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.fortune-foot {
  margin-top: 4px;
  padding-top: 10px;
}

/* 两张推广小卡 */
.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 18px 0;
}

.promo {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 13px 14px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.promo::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.promo-pink {
  background: linear-gradient(150deg, var(--sign-high-a), var(--sign-high-b));
  color: var(--sign-ink);
}

.promo-blue {
  background: linear-gradient(150deg, #e3eef8, #b9cfe4);
  color: #23323d;
}

.promo-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.75;
}

.promo-title {
  font-size: 16px;
  font-weight: 700;
}

.promo-line {
  font-size: 11.5px;
  opacity: 0.8;
  line-height: 1.5;
}

.promo-cta {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.9;
}

/* 横向小卡（推荐 / 保底） */
.mini-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
}

.mini-row::-webkit-scrollbar {
  display: none;
}

.mini-card {
  flex: none;
  width: 132px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.mini-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 56px;
  border-radius: 12px;
  font-size: 24px;
}

.mini-title {
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--brown-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--price-ink, #8a5121);
}

.mini-price i {
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  color: var(--brown-500);
  margin-left: 2px;
}

/* 保底 / 按局 标签 */
.floor-tag,
.hour-tag {
  flex: none;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.floor-tag {
  color: #fff;
  background: linear-gradient(140deg, #4a3423, #17121a);
}

.hour-tag {
  color: var(--brown-700);
  background: var(--line);
}

html[data-theme="pink"] .floor-tag {
  background: linear-gradient(140deg, #e8467f, #b9226a);
}

.p-top .floor-tag,
.p-top .hour-tag {
  padding: 2px 7px;
  font-size: 10px;
}

.cat-chip.cat-floor {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.cat-chip.cat-floor.on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, var(--sign-top-a), var(--sign-top-b));
}

/* 悬浮客服 */
.fab {
  position: fixed;
  z-index: 45;
  right: max(14px, calc(50vw - 266px));
  bottom: 96px;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 54px;
  padding: 8px 0 6px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(150deg, var(--sign-top-a), var(--sign-top-b));
  box-shadow: 0 10px 24px rgba(200, 90, 130, 0.32);
}

.fab i {
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.fab span {
  font-size: 10px;
  font-weight: 600;
}

html[data-theme="warm"] .fab {
  color: #3b2a1c;
}

.hero {
  margin-top: 16px;
}

.hero-track {
  display: flex;
  gap: 14px;
  padding: 0 18px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-card {
  position: relative;
  flex: 0 0 calc(100% - 36px);
  scroll-snap-align: center;
  padding: 0 0 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card .awning {
  height: 16px;
  background: repeating-linear-gradient(90deg, #f0d3a0 0 16px, #fff6e6 16px 32px);
  border-bottom: 1px solid rgba(200, 175, 140, 0.5);
}

.hero-art {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  font-size: 60px;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 12px 18px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.tone-butter { background: linear-gradient(150deg, #ffe0a6, #e9b061); }
.tone-cream { background: linear-gradient(150deg, #fff1d6, #e8c79a); }
.tone-peach { background: linear-gradient(150deg, #ffd9c1, #eaa87c); }
.tone-rose { background: linear-gradient(150deg, #ffd7dd, #e79aa9); }
.tone-sage { background: linear-gradient(150deg, #dbead0, #a7c195); }
.tone-blue { background: linear-gradient(150deg, #d5e8f2, #9dbdd0); }

.hero-art .spark {
  position: absolute;
  font-size: 15px;
  opacity: 0.85;
}

.hero-body {
  padding: 16px 18px 0;
}

.hero-body .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.hero-body h3 {
  margin: 4px 0 6px;
  font-size: 19px;
  font-weight: 650;
}

.hero-body p {
  margin: 0;
  font-size: 13px;
  color: var(--brown-500);
  min-height: 40px;
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.hero-note {
  font-size: 11.5px;
  color: var(--brown-700);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(247, 241, 231, 0.9);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brown-300);
  transition: 0.25s;
}

.hero-dots button.on {
  width: 20px;
  border-radius: 999px;
  background: var(--gold-deep);
}

/* ----------------------------------------------------------- 快捷入口 */
.shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}

.shortcut:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.shortcut i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  font-size: 18px;
  background: linear-gradient(150deg, #fff0d2, #ecc892);
}

.shortcut strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.shortcut small {
  display: block;
  font-size: 11px;
  color: var(--brown-500);
  line-height: 1.35;
}

/* ----------------------------------------------------------- 分类横条 */
.cat-strip {
  display: flex;
  gap: 10px;
  padding: 4px 18px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
  white-space: nowrap;
}

.cat-chip.on {
  color: #43301f;
  border-color: transparent;
  background: linear-gradient(150deg, #ffdda3, #e7ad5e);
  box-shadow: 0 8px 18px rgba(200, 150, 80, 0.3);
}

/* ----------------------------------------------------------- 商品卡片 */
.feed {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.product {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: 0.22s ease;
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.p-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 104px;
  border-radius: 14px;
  font-size: 40px;
  overflow: hidden;
}

.p-art::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.5);
}

.p-art .fang {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  font-size: 10px;
  text-align: center;
  color: rgba(74, 52, 35, 0.65);
  letter-spacing: 0.1em;
}

.p-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.p-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.p-badge {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  color: #8a6127;
  background: rgba(255, 240, 214, 0.95);
  border: 1px solid rgba(216, 170, 106, 0.55);
}

.p-hot {
  font-size: 10.5px;
  color: var(--danger);
}

.p-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.p-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--brown-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0;
}

.p-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  color: #8a5121;
}

.price .cur {
  font-size: 11.5px;
}

.price .num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.price .unit {
  font-size: 11.5px;
  color: var(--brown-500);
}

.price small {
  display: block;
  width: 100%;
  font-size: 10.5px;
  color: var(--brown-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price .cur,
.price .num,
.price .unit {
  white-space: nowrap;
}

.p-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.p-actions .btn {
  padding: 9px 12px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* ----------------------------------------------------------- 值班客服 */
.shift-list {
  display: grid;
  gap: 10px;
}

.shift-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.shift-row.on-duty {
  border-color: rgba(216, 170, 106, 0.8);
  background: linear-gradient(150deg, #fffaea, #fdf1d8);
  box-shadow: var(--shadow-sm);
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  font-size: 17px;
  background: linear-gradient(150deg, #ffe4b4, #e5b06a);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.shift-row .who {
  flex: 1;
  min-width: 0;
}

.shift-row .who strong {
  font-size: 14.5px;
}

.shift-row .who span {
  display: block;
  font-size: 11.5px;
  color: var(--brown-500);
}

/* ----------------------------------------------------------- 会员卡片 */
.member-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: #41301f;
  background: linear-gradient(150deg, #ffe6b6, #efc07c 55%, #e0a75d);
  box-shadow: 0 16px 36px rgba(200, 150, 80, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.member-card::after {
  content: "🎋";
  position: absolute;
  right: -6px;
  bottom: -18px;
  font-size: 92px;
  opacity: 0.22;
}

.member-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-top .avatar {
  width: 46px;
  height: 46px;
  font-size: 20px;
  border-color: rgba(255, 255, 255, 0.9);
}

.member-top .who {
  flex: 1;
  min-width: 0;
}

.member-top .who strong {
  display: block;
  font-size: 16.5px;
}

.member-top .who span {
  font-size: 11.5px;
  color: rgba(65, 48, 31, 0.72);
}

.lv-badge {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.progress {
  position: relative;
  height: 8px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.progress i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c5a3a, #b17f45);
  transition: width 0.6s ease;
}

.progress-note {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(65, 48, 31, 0.78);
}

.wallet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.wallet div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.wallet strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.wallet small {
  font-size: 10.5px;
  color: rgba(65, 48, 31, 0.72);
}

.level-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.level-row.reached {
  border-color: rgba(216, 170, 106, 0.75);
  background: linear-gradient(150deg, #fffdf6, #fdf3e2);
}

.level-row .no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  color: #7a5322;
  background: linear-gradient(150deg, #ffe8bd, #eec489);
}

.level-row.locked .no {
  color: var(--brown-500);
  background: #f2ece1;
}

.level-row .info {
  flex: 1;
  min-width: 0;
}

.level-row .info strong {
  font-size: 14px;
}

.level-row .info span {
  display: block;
  font-size: 11.5px;
  color: var(--brown-500);
}

.level-row .req {
  flex: none;
  font-size: 11px;
  color: var(--brown-500);
  text-align: right;
}

/* ------------------------------------------------------------- 陪陪名片 */
.companion-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.companion {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.companion-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.companion-head .avatar {
  width: 44px;
  height: 44px;
}

.companion-head .who {
  flex: 1;
  min-width: 0;
}

.companion-head .who strong {
  font-size: 15.5px;
}

.companion-head .who span {
  display: block;
  font-size: 11.5px;
  color: var(--brown-500);
}

.companion p {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--brown-700);
}

.companion .quote {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(247, 241, 231, 0.85);
  font-size: 12.5px;
  color: var(--brown-700);
}

.companion .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* --------------------------------------------------------------- 列表页 */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 4px;
}

.page-head h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 680;
}

.page-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--brown-500);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 18px 0;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-size: 14px;
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.cat-card {
  text-align: left;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: 0.22s;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.cat-card i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 20px;
  background: linear-gradient(150deg, #fff1d6, #eccb98);
}

.cat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
}

.cat-card small {
  display: block;
  font-size: 11.5px;
  color: var(--brown-500);
  line-height: 1.45;
}

/* ------------------------------------------------------------- 消息中心 */
.notice-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.notice {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notice-head strong {
  font-size: 14.5px;
}

.notice-head span {
  flex: none;
  font-size: 11px;
  color: var(--brown-500);
}

.notice p {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--brown-700);
}

/* ----------------------------------------------------------- 底部导航 */
.tabbar {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

@media (min-width: 700px) {
  .tabbar {
    bottom: 28px;
    border-radius: 0 0 32px 32px;
  }
}

.tab {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: 14px;
  font-size: 10.5px;
  color: var(--brown-500);
  transition: 0.2s;
}

.tab i {
  font-size: 19px;
  line-height: 1;
  filter: grayscale(0.55);
  transition: 0.2s;
}

.tab.on {
  color: var(--brown-900);
  background: linear-gradient(150deg, rgba(255, 231, 187, 0.95), rgba(238, 205, 150, 0.75));
  font-weight: 600;
}

.tab.on i {
  filter: none;
  transform: translateY(-1px);
}

.tab .badge {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -20px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  color: #fff;
  background: var(--danger);
  box-shadow: 0 3px 8px rgba(193, 102, 92, 0.4);
}

/* --------------------------------------------------------------- 弹层 */
.mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(58, 41, 27, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  animation: mask-in 0.25s ease forwards;
}

@keyframes mask-in {
  to { opacity: 1; }
}

.sheet {
  position: fixed;
  z-index: 101;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--cream-soft);
  box-shadow: 0 -20px 60px rgba(58, 41, 27, 0.28);
  animation: sheet-up 0.32s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

@media (min-width: 700px) {
  .sheet {
    bottom: 28px;
    border-radius: 28px;
    max-height: 86vh;
  }
}

@keyframes sheet-up {
  from { transform: translate(-50%, 24px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.grabber {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  background: linear-gradient(180deg, var(--cream-soft) 60%, transparent);
}

.grabber i {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--brown-300);
}

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 12px;
  background: linear-gradient(180deg, var(--cream-soft) 70%, rgba(255, 250, 240, 0.6));
  backdrop-filter: blur(8px);
}

.sheet-head h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 680;
}

.sheet-body {
  padding: 0 20px;
}

.detail-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  border-radius: var(--radius-lg);
  font-size: 72px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
}

.detail-title {
  margin: 16px 0 5px;
  font-size: 21px;
  font-weight: 700;
}

.detail-sub {
  margin: 0;
  font-size: 13px;
  color: var(--brown-500);
}

.field-group {
  margin-top: 20px;
}

.field-group > h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 650;
}

.field-group > h4::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0c176, #d8aa6a);
}

.tier-list {
  display: grid;
  gap: 10px;
}

.tier {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: 0.2s;
}

.tier .radio {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--brown-300);
  transition: 0.2s;
}

.tier.on {
  border-color: var(--gold);
  background: linear-gradient(150deg, #fffaea, #fdf2dd);
  box-shadow: var(--shadow-sm);
}

.tier.on .radio {
  border-color: var(--gold-deep);
  background: radial-gradient(circle, var(--gold-deep) 0 44%, transparent 46%);
}

.tier .info {
  flex: 1;
  min-width: 0;
}

.tier .info strong {
  display: block;
  font-size: 14.5px;
}

.tier .info span {
  display: block;
  font-size: 11.5px;
  color: var(--brown-500);
}

.tier .money {
  flex: none;
  text-align: right;
  color: #8a5121;
}

.tier .money b {
  font-size: 18px;
}

.tier .money small {
  display: block;
  font-size: 10.5px;
  color: var(--brown-500);
}

.rules {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: rgba(255, 253, 248, 0.9);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--brown-700);
  white-space: pre-wrap;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brown-800);
}

.field label em {
  font-style: normal;
  font-size: 11px;
  color: var(--danger);
  margin-left: 4px;
}

.field label span {
  font-weight: 400;
  color: var(--brown-500);
  font-size: 11px;
  margin-left: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 170, 106, 0.18);
}

.field .hint {
  font-size: 11px;
  color: var(--brown-500);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--brown-800);
  background: rgba(247, 241, 231, 0.9);
}

.stepper b {
  min-width: 30px;
  text-align: center;
  font-size: 14px;
}

.sheet-foot {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 22px rgba(96, 66, 40, 0.07);
}

.sheet-foot .total {
  flex: 1;
  min-width: 0;
}

.sheet-foot .total small {
  display: block;
  font-size: 11px;
  color: var(--brown-500);
}

.sheet-foot .total .total-amount {
  font-size: 20px;
  color: #8a5121;
}

/* --------------------------------------------------------------- 购物车 */
.cart-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 26px 68px 1fr;
  gap: 12px;
  padding: 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.cart-item .p-art {
  min-height: 68px;
  font-size: 28px;
}

.cart-item .p-art::after {
  inset: 6px;
}

.check {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border-radius: 7px;
  border: 2px solid var(--brown-300);
  background: var(--paper);
  transition: 0.2s;
}

.check.on {
  border-color: var(--gold-deep);
  background: linear-gradient(150deg, #ffd89b, #e2a94f);
}

.check.on::after {
  content: "✓";
  display: block;
  color: #4a3423;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cart-item h4 {
  margin: 0;
  font-size: 14.5px;
}

.cart-item .tier-name {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--brown-500);
}

.cart-item .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.cart-item .row .price .num {
  font-size: 17px;
}

.cart-summary {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--brown-700);
}

.cart-summary div.big {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
  color: var(--brown-900);
}

.cart-summary div.big b {
  font-size: 20px;
  color: #8a5121;
}

.empty {
  padding: 46px 24px;
  text-align: center;
  color: var(--brown-500);
}

.empty .glyph {
  font-size: 48px;
  margin-bottom: 10px;
}

.empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brown-800);
  font-size: 15px;
}

.empty p {
  margin: 0 auto 16px;
  max-width: 260px;
  font-size: 12.5px;
}

/* --------------------------------------------------------------- 订单 */
.status-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tab {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--brown-700);
  border: 1px solid var(--line);
  background: var(--paper);
  white-space: nowrap;
}

.status-tab.on {
  color: #43301f;
  border-color: transparent;
  background: linear-gradient(150deg, #ffdda3, #e7ad5e);
  font-weight: 600;
}

.order {
  margin-top: 12px;
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-head .no {
  font-size: 11px;
  color: var(--brown-500);
}

.order-head h4 {
  margin: 3px 0 0;
  font-size: 15px;
}

.state {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.state.pending { color: #8a5a1d; background: #fdf0d7; border: 1px solid #eccb98; }
.state.paid { color: #3f6b7d; background: #e5f0f6; border: 1px solid #b7d2de; }
.state.serving { color: #4d7343; background: #e9f5e2; border: 1px solid #bfd8b2; }
.state.done { color: #6b5a45; background: #f2ece1; border: 1px solid #ddd2c0; }
.state.refund { color: #8c5350; background: #fbe9e7; border: 1px solid #eec6c2; }

.order-meta {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--brown-700);
}

.order-meta span b {
  color: var(--brown-900);
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.tl-item {
  position: relative;
  font-size: 12.5px;
  color: var(--brown-500);
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
}

.tl-item.on {
  color: var(--brown-900);
}

.tl-item.on::before {
  border-color: var(--gold-deep);
  background: linear-gradient(150deg, #ffd89b, #e2a94f);
}

.tl-item strong {
  display: block;
  font-size: 13.5px;
}

/* --------------------------------------------------------------- 抽卡 */
.draw-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.dcard {
  position: relative;
  aspect-ratio: 3 / 4.4;
  border-radius: 18px;
  perspective: 900px;
  background: none;
}

.dcard .inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.2, 1);
}

.dcard.flipped .inner {
  transform: rotateY(180deg);
}

.dcard .face {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  backface-visibility: hidden;
  border: 1px solid var(--line);
  text-align: center;
}

.dcard .back {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.4) 0 8px, transparent 8px 16px),
    linear-gradient(150deg, #f0d3a0, #d8aa6a);
  box-shadow: var(--shadow-sm);
}

.dcard .back span {
  font-size: 30px;
}

.dcard .back svg {
  display: block;
  width: 30px;
  height: 42px;
}

.dcard .back em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(74, 52, 35, 0.72);
}

.dcard .front {
  transform: rotateY(180deg);
  background: linear-gradient(150deg, #fff6e2, #f6dfb6);
  box-shadow: var(--shadow-sm);
}

.dcard .front b {
  font-size: 15px;
  color: #8a5121;
}

.dcard .front small {
  font-size: 10.5px;
  color: var(--brown-500);
  line-height: 1.35;
}

.dcard:disabled {
  cursor: default;
}

/* --------------------------------------------------------------- Toast */
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  max-width: 84vw;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff5e4;
  background: rgba(58, 41, 27, 0.92);
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toast-in 0.28s ease both;
  pointer-events: none;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------- 其它 */
.kbd-note {
  margin: 22px 18px 0;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: rgba(255, 253, 248, 0.7);
  font-size: 11.5px;
  color: var(--brown-500);
  line-height: 1.7;
  white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 380px) {
  .product {
    grid-template-columns: 88px 1fr;
  }
  .p-actions .btn {
    padding: 9px 11px;
  }
}

/* =========================================================================
   配色主题：粉白黑（甜酷）
   -------------------------------------------------------------------------
   默认是暖奶油配色（上面的 :root）。给 <html> 加上 data-theme="pink"
   就整体换成粉白黑：白色打底、粉色做主色、近黑做文字与次级按钮。
   主题值由后台「站点文案 → 配色主题」控制，也可以用 ?theme=pink 临时预览。
   ========================================================================= */

html[data-theme="pink"] {
  /* 樱花素材：一朵五瓣花 + 一张极淡的落瓣暗纹，全部用内联 SVG，不依赖图片文件 */
  --sakura-blossom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23f4528c'%3E%3Cellipse cx='12' cy='5.4' rx='3.3' ry='5'/%3E%3Cellipse cx='12' cy='5.4' rx='3.3' ry='5' transform='rotate(72 12 12)'/%3E%3Cellipse cx='12' cy='5.4' rx='3.3' ry='5' transform='rotate(144 12 12)'/%3E%3Cellipse cx='12' cy='5.4' rx='3.3' ry='5' transform='rotate(216 12 12)'/%3E%3Cellipse cx='12' cy='5.4' rx='3.3' ry='5' transform='rotate(288 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='1.7' fill='%23fff2f7'/%3E%3C/svg%3E");
  --sakura-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76' viewBox='0 0 76 76'%3E%3Cg fill='%23ffffff' opacity='.42'%3E%3Cellipse cx='16' cy='13' rx='4' ry='6.2' transform='rotate(34 16 13)'/%3E%3Cellipse cx='58' cy='47' rx='3.4' ry='5.2' transform='rotate(-26 58 47)'/%3E%3Cellipse cx='31' cy='61' rx='2.6' ry='3.9' transform='rotate(68 31 61)'/%3E%3C/g%3E%3C/svg%3E");
  --cream: #fff7fa;
  --cream-soft: #fffbfd;
  --paper: #ffffff;
  --brown-900: #17121a;
  --brown-800: #2e2631;
  --brown-700: #4a3f4d;
  --brown-500: #8a7b86;
  --brown-300: #e3d2db;
  --line: #f2e3eb;
  --gold: #ffb3ce;
  --gold-deep: #f4528c;
  --butter: #ffd3e2;
  --peach: #ffb1c8;
  --rose: #f45c94;
  --sage: #c4aee8;
  --sky: #a9c0d8;
  --ok: #2e9b76;
  --warn: #c77a00;
  --danger: #e23d5b;
  --mark-wood: #ffe9f1;
  --mark-line: #2a1a22;
  --mark-accent: #e8467f;
  --sign-top-a: #ff9cc2;
  --sign-top-b: #e8467f;
  --sign-high-a: #ffd3e2;
  --sign-high-b: #f48ab2;
  --sign-normal-a: #fff4f9;
  --sign-normal-b: #f7d9e6;
  --sign-mid-a: #e7f4ed;
  --sign-mid-b: #b7dcc9;
  --sign-special-a: #efe6fb;
  --sign-special-b: #c4aee8;
  --sign-ink: #2a1420;
  --shadow-sm: 0 4px 14px rgba(90, 30, 60, 0.06);
  --shadow: 0 12px 30px rgba(90, 30, 60, 0.1);
  --shadow-lg: 0 24px 60px rgba(90, 30, 60, 0.16);
}

html[data-theme="pink"] body {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 179, 206, 0.45), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(196, 174, 232, 0.3), transparent 38%),
    linear-gradient(168deg, #fff9fb 0%, #ffeaf2 100%);
}

html[data-theme="pink"] .app {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 232, 241, 0.95), transparent 32%),
    #fffbfd;
  box-shadow: 0 0 0 1px rgba(242, 227, 235, 0.9), 0 30px 80px rgba(90, 30, 60, 0.14);
}

/* ---- 品牌标、头像、图标底 ---- */
html[data-theme="pink"] .brand-mark,
html[data-theme="pink"] .avatar,
html[data-theme="pink"] .shift-chip .dot,
html[data-theme="pink"] .shortcut i,
html[data-theme="pink"] .cat-card i {
  background: linear-gradient(150deg, #ffdcea, #f77fac);
  box-shadow: 0 6px 16px rgba(244, 82, 140, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="pink"] .topbar {
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.97), rgba(255, 251, 253, 0.72) 70%, transparent);
}

html[data-theme="pink"] .demo-note {
  border-color: rgba(244, 82, 140, 0.45);
  background: rgba(255, 245, 249, 0.85);
  color: #b02a5e;
}

/* ---- 按钮 ---- */
html[data-theme="pink"] .btn-primary {
  color: #ffffff;
  background: linear-gradient(150deg, #ff9cc2, #f4528c);
  box-shadow: 0 10px 22px rgba(244, 82, 140, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html[data-theme="pink"] .btn-dark {
  color: #fff3f8;
  background: linear-gradient(150deg, #33272f, #120d11);
  box-shadow: 0 10px 22px rgba(23, 18, 26, 0.26);
}

html[data-theme="pink"] .link-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brown-700);
}

html[data-theme="pink"] .link-btn:hover {
  border-color: var(--gold-deep);
  color: #b02a5e;
}

/* ---- 选中态：分类条、状态筛选、底部导航 ---- */
html[data-theme="pink"] .cat-chip.on,
html[data-theme="pink"] .status-tab.on {
  color: #ffffff;
  background: linear-gradient(150deg, #ff9cc2, #f4528c);
  box-shadow: 0 8px 18px rgba(244, 82, 140, 0.28);
}

html[data-theme="pink"] .tab.on {
  color: #17121a;
  background: linear-gradient(150deg, rgba(255, 211, 226, 0.95), rgba(255, 179, 206, 0.8));
}

html[data-theme="pink"] .tabbar {
  background: rgba(255, 251, 253, 0.95);
}

html[data-theme="pink"] .tab .badge,
html[data-theme="pink"] .dot-badge {
  background: #e23d5b;
  box-shadow: 0 3px 8px rgba(226, 61, 91, 0.4);
}

/* ---- 首页轮播 ---- */
html[data-theme="pink"] .hero-card .awning {
  background: repeating-linear-gradient(90deg, #ffd3e2 0 16px, #ffffff 16px 32px);
  border-bottom-color: rgba(244, 82, 140, 0.22);
}

html[data-theme="pink"] .hero-note {
  background: rgba(255, 240, 246, 0.9);
  color: #b02a5e;
}

html[data-theme="pink"] .section-head .eyebrow,
html[data-theme="pink"] .hero-body .eyebrow {
  color: #f4528c;
}

/* ---- 商品卡片与价格 ---- */
html[data-theme="pink"] .p-badge {
  color: #b02a5e;
  background: rgba(255, 241, 246, 0.95);
  border-color: rgba(244, 82, 140, 0.32);
}

html[data-theme="pink"] .chip.gold {
  color: #b02a5e;
  background: rgba(255, 241, 246, 0.95);
  border-color: rgba(244, 82, 140, 0.4);
}

html[data-theme="pink"] .chip.ok {
  color: #1f7a5c;
  background: rgba(233, 248, 242, 0.95);
  border-color: rgba(46, 155, 118, 0.4);
}

html[data-theme="pink"] .price,
html[data-theme="pink"] .tier .money {
  color: #c93b70;
}

html[data-theme="pink"] .sheet-foot .total .total-amount {
  color: #c93b70;
}

html[data-theme="pink"] .p-art .fang {
  color: rgba(40, 20, 30, 0.6);
}

/* ---- 陪玩卡片配图配色（六个档位色） ---- */
html[data-theme="pink"] .tone-butter { background: linear-gradient(150deg, #ffe0ec, #ffabc8); }
html[data-theme="pink"] .tone-cream { background: linear-gradient(150deg, #fff3f8, #f7d9e6); }
html[data-theme="pink"] .tone-peach { background: linear-gradient(150deg, #ffd9e4, #ff9ab8); }
html[data-theme="pink"] .tone-rose { background: linear-gradient(150deg, #ffc9dc, #ef6ba0); }
html[data-theme="pink"] .tone-sage { background: linear-gradient(150deg, #efe6fb, #c4aee8); }
html[data-theme="pink"] .tone-blue { background: linear-gradient(150deg, #e6eef8, #a9c0d8); }

/* ---- 会员卡与等级 ---- */
html[data-theme="pink"] .member-card {
  color: #2a1420;
  background: linear-gradient(150deg, #ffe3ee, #ffb3ce 55%, #f482af);
  box-shadow: 0 16px 36px rgba(244, 82, 140, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

html[data-theme="pink"] .member-top .who span,
html[data-theme="pink"] .progress-note,
html[data-theme="pink"] .wallet small {
  color: rgba(42, 20, 32, 0.72);
}

html[data-theme="pink"] .progress {
  background: rgba(255, 255, 255, 0.6);
}

html[data-theme="pink"] .progress i {
  background: linear-gradient(90deg, #f4528c, #b9226a);
}

html[data-theme="pink"] .wallet div,
html[data-theme="pink"] .lv-badge {
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="pink"] .level-row.reached {
  border-color: rgba(244, 82, 140, 0.45);
  background: linear-gradient(150deg, #ffffff, #fff3f8);
}

html[data-theme="pink"] .level-row .no {
  color: #b02a5e;
  background: linear-gradient(150deg, #ffdcea, #f494bb);
}

html[data-theme="pink"] .level-row.locked .no {
  color: var(--brown-500);
  background: #f7eef3;
}

html[data-theme="pink"] .shift-row.on-duty {
  border-color: rgba(244, 82, 140, 0.5);
  background: linear-gradient(150deg, #fff6fa, #ffeaf3);
}

/* ---- 表单与弹层 ---- */
html[data-theme="pink"] .tier.on {
  border-color: var(--gold-deep);
  background: linear-gradient(150deg, #fff6fa, #ffe9f1);
}

html[data-theme="pink"] .tier.on .radio {
  background: radial-gradient(circle, #f4528c 0 44%, transparent 46%);
}

html[data-theme="pink"] .field input:focus,
html[data-theme="pink"] .field select:focus,
html[data-theme="pink"] .field textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(244, 82, 140, 0.16);
}

html[data-theme="pink"] .stepper button {
  background: rgba(255, 240, 246, 0.95);
}

html[data-theme="pink"] .check.on {
  border-color: var(--gold-deep);
  background: linear-gradient(150deg, #ffb3ce, #f4528c);
}

html[data-theme="pink"] .check.on::after {
  color: #ffffff;
}

html[data-theme="pink"] .rules {
  background: rgba(255, 253, 254, 0.95);
}

html[data-theme="pink"] .kbd-note {
  background: rgba(255, 253, 254, 0.8);
}

html[data-theme="pink"] .mask {
  background: rgba(23, 18, 26, 0.42);
}

html[data-theme="pink"] .toast {
  background: rgba(23, 18, 26, 0.94);
}

html[data-theme="pink"] .order {
  border-color: var(--line);
}

/* ---- 订单状态标签：粉黑体系里重新调一遍对比度 ---- */
html[data-theme="pink"] .state.pending { color: #a05000; background: #fff3e2; border-color: #f5d6a8; }
html[data-theme="pink"] .state.paid { color: #9b2f68; background: #fbeaf3; border-color: #f0c6de; }
html[data-theme="pink"] .state.serving { color: #1f7a5c; background: #e9f8f2; border-color: #bee3d4; }
html[data-theme="pink"] .state.done { color: #4a3f4d; background: #f5eff2; border-color: #e3d2db; }
html[data-theme="pink"] .state.refund { color: #a83a50; background: #fdeaee; border-color: #f6c9d3; }

/* ---- 抽卡背面 ---- */
html[data-theme="pink"] .dcard .back {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.45) 0 8px, transparent 8px 16px),
    linear-gradient(150deg, #ffd3e2, #f4a0c4);
}

html[data-theme="pink"] .dcard .back em {
  color: rgba(42, 20, 32, 0.72);
}

html[data-theme="pink"] .dcard .front {
  background: linear-gradient(150deg, #fff4f8, #ffdce9);
}

html[data-theme="pink"] .dcard .front b {
  color: #c93b70;
}

/* ---- 开屏也换成粉白黑 ---- */
html[data-theme="pink"] .preloader {
  color: var(--brown-800);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 234, 242, 0.96), transparent 30%),
    linear-gradient(155deg, #fff9fb, #ffe6ef);
}

html[data-theme="pink"] .dots i {
  background: #f4528c;
}

/* ---------------------------------------------------------------- 樱花 */

/* 飘落的花瓣层：由 app.js 生成，粉色主题下才有 */
#petals {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: none;
  pointer-events: none;
  overflow: hidden;
}

html[data-theme="pink"] #petals {
  display: block;
}

#petals .petal {
  position: absolute;
  top: -10vh;
  animation: petal-fall var(--fall, 12s) linear var(--delay, 0s) infinite;
  will-change: transform;
}

#petals .petal svg {
  display: block;
  animation: petal-sway var(--sway, 3s) ease-in-out infinite alternate;
}

@keyframes petal-fall {
  from { transform: translate3d(0, -10vh, 0); }
  to { transform: translate3d(0, 112vh, 0); }
}

@keyframes petal-sway {
  from { transform: translateX(-13px) rotate(-26deg); }
  to { transform: translateX(13px) rotate(26deg); }
}

@media (prefers-reduced-motion: reduce) {
  #petals { display: none !important; }
}

/* 品牌标右上角贴一朵小花 */
html[data-theme="pink"] .brand-mark {
  position: relative;
}

html[data-theme="pink"] .brand-mark::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  background: var(--sakura-blossom) center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(244, 82, 140, 0.35));
}

/* 问候语下面一条花枝分隔线 */
.sakura-divider {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 0;
}

html[data-theme="pink"] .sakura-divider {
  display: flex;
}

.sakura-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 82, 140, 0.35), transparent);
}

.blossom {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  background: var(--sakura-blossom) center / contain no-repeat;
  opacity: 0.85;
}

/* 分区标题前的小花瓣 */
html[data-theme="pink"] .section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  vertical-align: -1px;
  background: var(--sakura-blossom) center / contain no-repeat;
  opacity: 0.9;
}

/* 轮播大图里的花瓣装饰（默认隐藏，粉色主题才出现） */
.hero-art .petal-deco {
  display: none;
  position: absolute;
}

html[data-theme="pink"] .hero-art .petal-deco {
  display: block;
}

html[data-theme="pink"] .hero-art .spark {
  font-size: 0;
}

html[data-theme="pink"] .hero-art .spark::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: var(--sakura-blossom) center / contain no-repeat;
  opacity: 0.75;
}

/* 商品配图上铺一层极淡的落瓣暗纹 */
html[data-theme="pink"] .p-art,
html[data-theme="pink"] .detail-hero {
  background-image: var(--sakura-tile);
  background-size: 76px 76px;
  background-position: 0 0, 0 0;
  background-blend-mode: normal;
}

html[data-theme="pink"] .tone-butter {
  background-image: var(--sakura-tile), linear-gradient(150deg, #ffe0ec, #ffabc8);
  background-size: 76px 76px, 100% 100%;
}

html[data-theme="pink"] .tone-cream {
  background-image: var(--sakura-tile), linear-gradient(150deg, #fff3f8, #f7d9e6);
  background-size: 76px 76px, 100% 100%;
}

html[data-theme="pink"] .tone-peach {
  background-image: var(--sakura-tile), linear-gradient(150deg, #ffd9e4, #ff9ab8);
  background-size: 76px 76px, 100% 100%;
}

html[data-theme="pink"] .tone-rose {
  background-image: var(--sakura-tile), linear-gradient(150deg, #ffc9dc, #ef6ba0);
  background-size: 76px 76px, 100% 100%;
}

html[data-theme="pink"] .tone-sage {
  background-image: var(--sakura-tile), linear-gradient(150deg, #efe6fb, #c4aee8);
  background-size: 76px 76px, 100% 100%;
}

html[data-theme="pink"] .tone-blue {
  background-image: var(--sakura-tile), linear-gradient(150deg, #e6eef8, #a9c0d8);
  background-size: 76px 76px, 100% 100%;
}

/* 会员卡角落的大花 + 空状态的花 */
html[data-theme="pink"] .member-card::after {
  content: "";
  right: -26px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  font-size: 0;
  opacity: 0.3;
  background: var(--sakura-blossom) center / contain no-repeat;
  transform: rotate(-12deg);
}

html[data-theme="pink"] .empty::before {
  content: "";
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  opacity: 0.35;
  background: var(--sakura-blossom) center / contain no-repeat;
}

html[data-theme="pink"] .preloader .dots i {
  background: #f4528c;
}

/* =========================================================================
   响应式：手机单列 → 平板加宽 → 桌面三栏（左导航 / 中内容 / 右信息）
   参考桌面布局：最宽约 1264px，1440 屏约占 88%，1920 屏约占 66%
   ========================================================================= */

.rail,
.side {
  display: none;
}

@media (min-width: 720px) {
  body {
    padding: 24px 0;
  }
  .app {
    max-width: 900px;
    border-radius: 32px;
  }
  .feed {
    grid-template-columns: 1fr 1fr;
  }
  .companion-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tabbar {
    bottom: 24px;
    max-width: 900px;
    border-radius: 0 0 32px 32px;
  }
  .fab {
    right: max(14px, calc(50vw - 436px));
  }
  .fortune-hero {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1080px) {
  body {
    padding: 22px;
  }
  .app {
    max-width: min(1280px, 94vw);
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr) 286px;
    gap: 22px;
    padding: 22px 24px 26px;
    min-height: calc(100vh - 44px);
    border-radius: 30px;
    background: transparent;
    box-shadow: none;
    align-items: start;
  }
  .column {
    min-width: 0;
  }

  /* 顶部栏：品牌移到左栏，这里只留在岗与夜间模式 */
  html .app .topbar {
    position: static;
    padding: 2px 2px 12px;
    background: transparent;
    backdrop-filter: none;
    justify-content: flex-end;
  }
  .topbar .brand-mark,
  .topbar .brand-text {
    display: none;
  }

  /* 手机上的底部导航换到左栏 */
  .tabbar {
    display: none;
  }
  .fab {
    display: none;
  }

  /* 去掉移动端的左右内边距，交给三栏外壳 */
  .pad {
    padding: 0;
  }
  .greeting {
    padding: 2px 2px 0;
  }
  .greeting h1 {
    font-size: 27px;
  }
  .sakura-divider {
    padding: 14px 0 0;
  }
  .demo-note {
    margin: 8px 0 0;
  }
  .fortune-hero {
    margin: 16px auto 0;
    max-width: 620px;
    width: 100%;
  }
  .promo-row {
    margin: 16px auto 0;
    max-width: 720px;
  }
  .hero-track {
    padding: 0 0 6px;
  }
  .hero-card {
    flex: 0 0 100%;
  }
  .feed {
    grid-template-columns: 1fr;
  }
  .companion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .cat-strip {
    padding: 4px 0 6px;
  }
  .page-head {
    padding: 6px 0 4px;
  }
  .searchbar {
    margin: 12px 0 0;
  }
  .status-tabs {
    padding: 12px 0 2px;
  }
  .kbd-note {
    margin: 22px 0 0;
  }
  .section {
    margin-top: 30px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .mini-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    overflow: visible;
  }
  .mini-card {
    width: auto;
  }
  .shift-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  /* 左栏 */
  .rail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 22px;
    padding-top: 4px;
  }
  .rail-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px 22px;
  }
  .rail-brand .brand-mark {
    width: 46px;
    height: 46px;
    flex: none;
  }
  .rail-brand strong {
    display: block;
    font-size: 16px;
    line-height: 1.3;
  }
  .rail-brand div > span {
    display: block;
    font-size: 11px;
    color: var(--brown-500);
  }
  .rail-nav {
    display: grid;
    gap: 4px;
  }
  .rail-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    color: var(--brown-700);
    text-align: left;
    transition: 0.18s;
  }
  .rail-link:hover {
    background: rgba(255, 255, 255, 0.6);
  }
  .rail-link i {
    width: 22px;
    text-align: center;
    font-style: normal;
    font-size: 17px;
  }
  .rail-link.on {
    color: var(--brown-900);
    font-weight: 600;
    background: linear-gradient(150deg, var(--sign-normal-a), var(--sign-normal-b));
    box-shadow: var(--shadow-sm);
  }
  .rail-link em {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-style: normal;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
  }
  .rail-quote {
    margin-top: 40px;
    padding: 0 8px;
  }
  .rail-quote .blossom {
    margin-bottom: 10px;
  }
  .rail-quote p {
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.5;
    color: var(--brown-800);
  }
  .rail-quote small {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--brown-500);
  }
  .rail-foot {
    margin-top: auto;
    padding: 24px 8px 0;
    font-size: 10.5px;
    color: var(--brown-500);
    opacity: 0.8;
  }

  /* 右栏 */
  .side {
    display: block;
    position: sticky;
    top: 22px;
  }
  .side-card {
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
  }
  .side-mark svg {
    width: 46px;
    height: 46px;
    display: block;
  }
  .side-welcome h3 {
    margin: 14px 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
  }
  .side-welcome p {
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--brown-500);
  }
  .side-links {
    margin-top: 14px;
    display: grid;
  }
  .side-links button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 2px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--brown-700);
  }
  .side-links i {
    font-style: normal;
    color: var(--brown-500);
  }
  .side-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--brown-700);
  }
  .side-head i {
    font-style: normal;
    font-size: 10.5px;
    color: var(--brown-500);
  }
  .side-sign-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .side-sign-row b {
    font-size: 13px;
    color: var(--brown-700);
  }
  .side-sign p {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--brown-500);
  }
  .side-muted {
    color: var(--brown-500);
  }
  .side-shifts {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
  }
  .side-shift {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
  }
  .side-shift small {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--brown-500);
  }
  .side-shift.on {
    background: linear-gradient(150deg, var(--sign-normal-a), var(--sign-normal-b));
  }
  .dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(111, 156, 98, 0.2);
  }
  .sheet {
    max-width: 760px;
  }
}

/* 1080–1199：先去掉右栏，给中间留出呼吸空间 */
@media (min-width: 1080px) and (max-width: 1199px) {
  .app {
    grid-template-columns: 216px minmax(0, 1fr);
  }
  .side {
    display: none;
  }
}

/* 中间列足够宽时，玩法卡片再变两列 */
@media (min-width: 1400px) {
  .feed {
    grid-template-columns: 1fr 1fr;
  }
  .hero-card {
    flex: 0 0 calc(50% - 7px);
  }
}

/* 会员卡上的按钮在深色模式里仍然是浅底深字 */
.member-card .link-btn {
  color: #4a3423;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.85);
}

/* =========================================================================
   夜间护眼模式：暖黑底 + 低对比，独立于 pink / warm 两套配色
   ========================================================================= */

html[data-scheme="dark"] {
  color-scheme: dark;
  --cream: #191317;
  --cream-soft: #1e171b;
  --paper: #241c21;
  --brown-900: #f3e8ee;
  --brown-800: #e6d5de;
  --brown-700: #d3bfc9;
  --brown-500: #a8939f;
  --brown-300: #5a4450;
  --line: #3a2a33;
  --gold: #ff9cc2;
  --gold-deep: #ff7fae;
  --ok: #6fbf98;
  --warn: #e0a95c;
  --danger: #ff6b86;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

html[data-scheme="dark"] body {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 140, 180, 0.12), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(150, 120, 200, 0.14), transparent 38%),
    linear-gradient(168deg, #1b1418 0%, #120e11 100%);
}

html[data-scheme="dark"] .app {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 120, 160, 0.08), transparent 34%),
    #191317;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.5);
}

html[data-scheme="dark"] .topbar {
  background: linear-gradient(180deg, rgba(25, 19, 23, 0.97), rgba(25, 19, 23, 0.72) 70%, transparent);
}

html[data-scheme="dark"] .tabbar {
  background: rgba(28, 21, 26, 0.96);
}

html[data-scheme="dark"] .demo-note {
  background: rgba(36, 28, 33, 0.9);
  border-color: rgba(255, 127, 174, 0.45);
}

html[data-scheme="dark"] .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

html[data-scheme="dark"] .chip.gold {
  background: rgba(255, 127, 174, 0.14);
  border-color: rgba(255, 127, 174, 0.4);
  color: #ffb6d0;
}

html[data-scheme="dark"] .chip.ok {
  background: rgba(111, 191, 152, 0.14);
  border-color: rgba(111, 191, 152, 0.4);
  color: #9ad9bb;
}

html[data-scheme="dark"] .p-badge {
  background: rgba(255, 127, 174, 0.14);
  border-color: rgba(255, 127, 174, 0.4);
  color: #ffb6d0;
}

html[data-scheme="dark"] .link-btn,
html[data-scheme="dark"] .icon-btn {
  background: rgba(255, 255, 255, 0.06);
}

html[data-scheme="dark"] .perk {
  background: rgba(255, 255, 255, 0.04);
}

html[data-scheme="dark"] .perk-body b {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brown-700);
}

html[data-scheme="dark"] .rules,
html[data-scheme="dark"] .kbd-note {
  background: rgba(255, 255, 255, 0.04);
}

html[data-scheme="dark"] .shift-row.on-duty {
  background: linear-gradient(150deg, #2b1e26, #33212b);
}

html[data-scheme="dark"] .tier.on {
  background: linear-gradient(150deg, #2b1e26, #33212b);
}

html[data-scheme="dark"] .level-row.reached {
  background: linear-gradient(150deg, #241c21, #2b2027);
}

html[data-scheme="dark"] .stepper button {
  background: rgba(255, 255, 255, 0.08);
}

html[data-scheme="dark"] .hero-card .awning {
  background: repeating-linear-gradient(90deg, #4a3441 0 16px, #2b2027 16px 32px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-scheme="dark"] .promo-blue {
  background: linear-gradient(150deg, #253341, #1d2833);
  color: #dbe9f2;
}

html[data-scheme="dark"] .promo::after {
  background: rgba(255, 255, 255, 0.08);
}

html[data-scheme="dark"] .mini-art,
html[data-scheme="dark"] .p-art {
  filter: brightness(0.92);
}

html[data-scheme="dark"] .side-shift {
  background: rgba(255, 255, 255, 0.05);
}

html[data-scheme="dark"] .rail-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-scheme="dark"] .rail-link.on {
  color: #2a1420;
}

html[data-scheme="dark"] .sign-card {
  filter: brightness(0.94);
}

html[data-scheme="dark"] .fab {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

html[data-scheme="dark"] .searchbar,
html[data-scheme="dark"] .field input,
html[data-scheme="dark"] .field select,
html[data-scheme="dark"] .field textarea {
  background: var(--paper);
}

html[data-scheme="dark"] .member-card {
  filter: brightness(0.95);
}

html[data-scheme="dark"] .sheet-head {
  background: linear-gradient(180deg, var(--cream-soft) 70%, rgba(30, 23, 27, 0.6));
}

html[data-scheme="dark"] .grabber {
  background: linear-gradient(180deg, var(--cream-soft) 60%, transparent);
}

html[data-scheme="dark"] .sheet-foot {
  background: var(--cream-soft);
}

/* 会员卡内部始终是浅色底，按钮文字要压深，不能跟着夜间模式变浅 */
html[data-scheme="dark"] .member-card .link-btn {
  color: #4a3423;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.9);
}
