/* ==========================================================================
   云泽小程序原型 · 手机壳容器 + 微信小程序风格组件
   ========================================================================== */

/* 疗愈主题（Healing）· 米金 + 墨绿 · 衬线标题 */
:root {
  --primary: #b08d57;
  --primary-hover: #96733f;
  --primary-light: #f3ead9;
  --gold: #b08d57;
  --gold-deep: #8a6d3b;
  --gold-light: #d9c39a;
  --ink-green: #3f5a47;
  --wechat-green: #07c160;
  --canvas: #f5efe4;
  --card-bg: #fffdf8;
  --text-1: #3a3630;
  --text-2: #7a7165;
  --text-3: #a89e8f;
  --border: #e7ddca;
  --divider: #f0e8d8;
  --success: #3f5a47;
  --warning: #c99a4e;
  --danger: #b06a4a;
  --shadow: 0 2px 12px rgba(120, 96, 50, 0.10);
  --serif: "Songti SC", "STSong", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
  background: #e7ddca;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 12px;
  overflow: hidden;
}

/* ---------- Phone Shell ---------- */
.phone-shell {
  width: 375px;
  height: min(812px, calc(100vh - 24px));
  background: var(--canvas);
  border: 12px solid #1a1a1a;
  border-radius: 44px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 100;
}

/* Status Bar */
.status-bar {
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  background: transparent;
  padding-bottom: 6px;
}
.status-bar .time { padding-left: 8px; }
.status-bar .icons { display: flex; gap: 4px; align-items: center; padding-right: 8px; }
.status-bar .icons svg { width: 14px; height: 12px; }

/* MP Header (Navigation Bar) */
.mp-header {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  position: relative;
}
.mp-header .back {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-1);
  font-size: 20px;
}
.mp-header .title {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}
.mp-header .more {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-1);
}
.mp-header .step-indicator {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-3);
  font-weight: normal;
}
.mp-header.transparent {
  background: transparent;
  border-bottom: none;
  color: #fff;
}
.mp-header.transparent .back, .mp-header.transparent .more { color: #fff; }

/* MP Body */
.mp-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--canvas);
  position: relative;
}
.mp-body.no-scroll { overflow: hidden; }

/* 隐藏轨道滚动条（保留滚动能力），避免破坏手机外形 */
html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { width: 0 !important; height: 0 !important; background: transparent; }
.mp-body { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }

/* MP Tab Bar */
.mp-tabbar {
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.mp-tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  padding-top: 6px;
}
.mp-tabbar .tab .icon { font-size: 18px; line-height: 1; }
.mp-tabbar .tab.active { color: var(--primary); }

/* ---------- MP Components ---------- */
.mp-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 12px;
  box-shadow: var(--shadow);
}
.mp-cell-group {
  background: #fff;
  margin: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.mp-cell {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  gap: 12px;
}
.mp-cell:last-child { border-bottom: none; }
.mp-cell .cell-label { flex-shrink: 0; color: var(--text-1); }
.mp-cell .cell-value {
  flex: 1;
  text-align: right;
  color: var(--text-3);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-cell .arrow { color: var(--text-3); font-size: 16px; }

.mp-button {
  display: block;
  width: calc(100% - 32px);
  margin: 16px;
  height: 46px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.mp-button:active { background: var(--primary-hover); }
.mp-button.block { width: 100%; margin: 0; border-radius: 0; }
.mp-button.ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.mp-button.disabled, .mp-button[disabled] {
  background: var(--text-3);
  cursor: not-allowed;
  opacity: 0.6;
}
.mp-button-fixed {
  position: absolute;
  left: 0; right: 0; bottom: 56px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 5;
}
.mp-button-fixed .mp-button { margin: 0; width: 100%; }

.mp-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary);
  line-height: 16px;
}
.mp-tag.success { background: #ecfdf5; color: var(--success); }
.mp-tag.warning { background: #fffbeb; color: var(--warning); }
.mp-tag.danger { background: #fef2f2; color: var(--danger); }
.mp-tag.gray { background: var(--divider); color: var(--text-2); }

.mp-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
}

/* MP Form */
.mp-form {
  background: #fff;
  padding: 8px 16px;
  margin: 12px;
  border-radius: 12px;
}
.mp-form-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  gap: 12px;
}
.mp-form-item:last-child { border-bottom: none; }
.mp-form-item .label {
  width: 80px;
  color: var(--text-1);
  font-size: 15px;
  flex-shrink: 0;
}
.mp-form-item .label.required::before {
  content: "*";
  color: var(--danger);
  margin-right: 4px;
}
.mp-form-item .value {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-1);
  background: transparent;
  font-family: inherit;
  padding: 0;
}
.mp-form-item .value::placeholder { color: var(--text-3); }
.mp-form-item .value:disabled { color: var(--text-3); }
.mp-form-item .picker {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-1);
  font-size: 15px;
  cursor: pointer;
}
.mp-form-item .picker.placeholder { color: var(--text-3); }

/* Radio & Checkbox in MP */
.mp-radio-group, .mp-checkbox-group { display: flex; gap: 16px; flex: 1; }
.mp-radio, .mp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
}
.mp-radio input, .mp-checkbox input { accent-color: var(--primary); }

/* MP Dialog (WeChat native style) */
.mp-dialog-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.mp-dialog-mask.show { display: flex; }
.mp-dialog {
  width: 280px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  animation: mpFadeIn 0.15s;
}
.mp-dialog .dialog-title {
  padding: 20px 20px 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}
.mp-dialog .dialog-content {
  padding: 0 20px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.mp-dialog .dialog-actions {
  display: flex;
  border-top: 1px solid var(--border);
}
.mp-dialog .dialog-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  background: #fff;
  border: none;
  font-family: inherit;
  color: var(--text-1);
}
.mp-dialog .dialog-btn + .dialog-btn { border-left: 1px solid var(--border); }
.mp-dialog .dialog-btn.primary { color: var(--primary); }
.mp-dialog .dialog-btn.danger { color: var(--danger); }

/* MP Toast */
.mp-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 300;
  display: none;
  animation: mpFadeIn 0.15s;
  max-width: 240px;
  text-align: center;
}
.mp-toast.show { display: block; }

/* MP Action Sheet */
.mp-action-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #f7f7f7;
  border-radius: 12px 12px 0 0;
  transform: translateY(100%);
  transition: transform 0.25s;
  z-index: 200;
}
.mp-action-sheet.show { transform: translateY(0); }
.mp-action-sheet .item {
  padding: 14px;
  text-align: center;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--divider);
}
.mp-action-sheet .item:last-of-type { border-bottom: none; }
.mp-action-sheet .cancel {
  margin-top: 8px;
  background: #fff;
  color: var(--text-1);
  font-weight: 500;
}

/* MP Empty */
.mp-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}
.mp-empty .empty-icon {
  width: 80px; height: 80px;
  margin: 0 auto 12px;
  background: var(--divider);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: var(--text-3);
}

/* ---------- Business Components ---------- */

/* Member Status Card (Home top) */
.member-card {
  background: linear-gradient(135deg, #b08d57 0%, #8a6d3b 100%);
  color: #fff;
  padding: 20px 16px;
  margin: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(138, 109, 59, 0.28);
  position: relative;
  overflow: hidden;
}
.member-card::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 120px; height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.member-card .name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.member-card .status {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 12px;
}
.member-card .expire {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  opacity: 0.9;
}
.member-card .expire .days {
  font-size: 24px;
  font-weight: 700;
  color: #fef3c7;
}
.member-card.non-member {
  background: linear-gradient(135deg, #6b7280, #374151);
}
.member-card.non-member .cta {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: #fff;
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Package Card */
.package-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin: 0 12px 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.package-card .pkg-cover {
  width: 60px; height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaddc4, #f3ead9);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.package-card .pkg-info { flex: 1; min-width: 0; }
.package-card .pkg-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-card .pkg-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.package-card .pkg-price {
  color: var(--danger);
  font-size: 16px;
  font-weight: 600;
}
.package-card .pkg-price::before { content: "¥"; font-size: 12px; }
.package-card .pkg-price .unit { font-size: 11px; color: var(--text-3); font-weight: normal; margin-left: 2px; }
.package-card .pkg-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.package-card .pkg-arrow { color: var(--text-3); font-size: 16px; }

/* Order Item */
.order-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin: 0 12px 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.order-item .order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.order-item .order-head .status { font-weight: 500; }
.order-item .order-head .status.paid { color: var(--success); }
.order-item .order-head .status.pending { color: var(--warning); }
.order-item .order-head .status.unpaid { color: var(--danger); }
.order-item .order-head .status.refunded { color: var(--text-3); }
.order-item .order-head .status.completed { color: var(--text-3); }
.order-item .order-body {
  display: flex;
  gap: 12px;
  align-items: center;
}
.order-item .order-cover {
  width: 50px; height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaddc4, #f3ead9);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.order-item .order-info { flex: 1; min-width: 0; }
.order-item .order-name {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-item .order-meta { font-size: 12px; color: var(--text-3); }
.order-item .order-price {
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
}
.order-item .order-price::before { content: "¥"; font-size: 11px; }

/* WeChat Pay Sheet */
.pay-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 200;
}
.pay-sheet-mask.show { display: block; }
.pay-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
  z-index: 201;
}
.pay-sheet.show { transform: translateY(0); }
.pay-sheet .pay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
  color: var(--text-1);
  font-weight: 500;
}
.pay-sheet .pay-header .wx-icon {
  width: 24px; height: 24px;
  background: var(--wechat-green);
  color: #fff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.pay-sheet .amount {
  text-align: center;
  padding: 24px 0;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-1);
}
.pay-sheet .amount::before { content: "¥"; font-size: 20px; margin-right: 4px; }
.pay-sheet .pay-info {
  padding: 12px 0;
  border-top: 1px solid var(--divider);
}
.pay-sheet .pay-info .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.pay-sheet .pay-info .row .label { color: var(--text-2); }
.pay-sheet .pay-info .row .val { color: var(--text-1); }
.pay-sheet .pay-btn {
  width: 100%;
  height: 46px;
  background: var(--wechat-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
  font-family: inherit;
}
.pay-sheet .pay-btn:active { background: #06ad56; }

/* Success Page */
.success-page {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  min-height: 100%;
}
.success-page .check {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  animation: popIn 0.4s;
}
.success-page .title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.success-page .amount-line {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.success-page .amount-line .amount { color: var(--text-1); font-weight: 600; font-size: 16px; }
.success-page .info-list {
  background: var(--canvas);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
  margin: 0 12px 24px;
  font-size: 13px;
}
.success-page .info-list .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

/* Store Card (for shop-bind) */
.store-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin: 0 12px 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
}
.store-card .store-logo {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9c39a, #b08d57);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.store-card .store-info { flex: 1; min-width: 0; }
.store-card .store-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.store-card .store-addr {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-card .store-dist { font-size: 11px; color: var(--text-3); }
.store-card .store-btn {
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

/* Profile Header (My) */
.profile-header {
  background: linear-gradient(135deg, #b08d57 0%, #8a6d3b 100%);
  padding: 24px 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-header .avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 600;
  border: 3px solid rgba(255, 255, 255, 0.4);
}
.profile-header .name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.profile-header .phone { font-size: 13px; opacity: 0.9; }

/* Section Title */
.section-title {
  padding: 16px 16px 8px;
  font-size: 13px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* WeChat Auth Popup */
.wx-auth-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  z-index: 200;
}
.wx-auth-sheet {
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 24px 20px 20px;
  animation: slideUp 0.3s;
}
.wx-auth-sheet .auth-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.wx-auth-sheet .auth-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b08d57, #8a6d3b);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 600;
}
.wx-auth-sheet .auth-title { flex: 1; font-size: 15px; font-weight: 500; }
.wx-auth-sheet .auth-title .sub { font-size: 12px; color: var(--text-3); font-weight: normal; margin-top: 2px; }
.wx-auth-sheet .auth-body {
  padding: 16px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-bottom: 20px;
}
.wx-auth-sheet .auth-body .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.wx-auth-sheet .auth-body .item .label { color: var(--text-1); }
.wx-auth-sheet .auth-body .item .value { color: var(--text-2); }
.wx-auth-sheet .auth-actions { display: flex; gap: 12px; }
.wx-auth-sheet .auth-btn {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.wx-auth-sheet .auth-btn.cancel { background: var(--divider); color: var(--text-1); }
.wx-auth-sheet .auth-btn.allow { background: var(--wechat-green); color: #fff; }

/* Animations */
@keyframes mpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.hidden { display: none !important; }

/* ==========================================================================
   疗愈主题 · 新增组件（焕活空间 / LOYALTY 卡 / 积分商城 / 邀请 / 类目）
   ========================================================================== */

/* 手绘植物头部（焕活空间首页） */
.heal-hero {
  position: relative;
  padding: 18px 20px 26px;
  background: #f7f1e6 url('img/home_bg.png') no-repeat right top / cover;
  overflow: hidden;
}
.heal-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247,241,230,0.92) 30%, rgba(247,241,230,0.35) 100%);
  pointer-events: none;
}
.heal-hero .hero-inner { position: relative; z-index: 2; }
.heal-hero .hero-en {
  font-family: var(--serif);
  font-size: 30px;
  color: #4a4234;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #b08d57;
  display: inline-block;
  padding-bottom: 4px;
  margin-top: 40px;
}
.heal-hero .hero-cn {
  font-family: var(--serif);
  font-size: 18px;
  color: #6b6152;
  margin-top: 8px;
  letter-spacing: 3px;
}

/* 类目竖排 + 双列商品布局 */
.heal-body { display: flex; align-items: stretch; }
.cat-rail {
  width: 92px;
  flex-shrink: 0;
  background: #efe6d5;
  overflow-y: auto;
}
.cat-rail .cat-item {
  padding: 16px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  position: relative;
  line-height: 1.3;
}
.cat-rail .cat-item.active {
  background: var(--canvas);
  color: var(--gold-deep);
  font-weight: 600;
}
.cat-rail .cat-item.active::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}
.prod-grid {
  flex: 1;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
  overflow-y: auto;
}
.prod-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.prod-card .pc-img {
  width: 100%; height: 96px;
  object-fit: cover;
  display: block;
  background: #eaddc4;
}
.prod-card .pc-body { padding: 8px 9px 10px; }
.prod-card .pc-name {
  font-size: 13px;
  color: var(--text-1);
  font-weight: 600;
  line-height: 1.35;
  height: 36px;
  overflow: hidden;
}
.prod-card .pc-loc {
  font-size: 11px;
  color: var(--text-3);
  margin: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-card .pc-loc b { color: var(--gold-deep); font-weight: 600; }
.prod-card .pc-price { color: var(--gold-deep); font-weight: 700; font-size: 16px; }
.prod-card .pc-price::before { content: "¥"; font-size: 11px; margin-right: 1px; }
.prod-card .pc-price .at { font-size: 10px; color: var(--text-3); font-weight: normal; margin-left: 2px; }
.prod-card .pc-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(63,90,71,0.85);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
.prod-card .pc-wrap { position: relative; }

/* LOYALTY 会员卡（我的页顶部） */
.loyalty-card {
  position: relative;
  margin: 12px;
  border-radius: 16px;
  padding: 22px 20px;
  color: #4a4234;
  background: url('img/loyalty_card.png') center/cover, linear-gradient(135deg, #d9c39a, #b08d57);
  box-shadow: 0 8px 22px rgba(138,109,59,0.28);
  overflow: hidden;
}
.loyalty-card .lc-edit {
  position: absolute; top: 14px; left: 16px;
  color: #6b6152; font-size: 16px; cursor: pointer;
}
.loyalty-card .lc-name { text-align: center; font-family: var(--serif); font-size: 20px; margin-top: 14px; }
.loyalty-card .lc-brand { text-align: center; font-family: var(--serif); font-size: 34px; letter-spacing: 4px; font-weight: 700; margin: 2px 0; }
.loyalty-card .lc-sub { text-align: center; font-size: 11px; letter-spacing: 6px; color: #6b6152; }
.loyalty-card .lc-no { margin-top: 18px; font-size: 15px; letter-spacing: 1px; color: #5a5142; display: flex; align-items: center; gap: 8px; }

/* 积分 / 数据 三栏 */
.pts-row {
  display: flex; background: #fff; margin: 0 12px 12px;
  border-radius: 12px; padding: 16px 0; box-shadow: var(--shadow);
}
.pts-row .pts {
  flex: 1; text-align: center; cursor: pointer; position: relative;
}
.pts-row .pts + .pts::before {
  content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--divider);
}
.pts-row .pts .num { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--gold-deep); }
.pts-row .pts .lbl { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 模块标题行（积分商城 / 更多） */
.mod-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px;
}
.mod-head .mh-title { font-family: var(--serif); font-size: 17px; color: var(--text-1); font-weight: 600; }
.mod-head .mh-more { font-size: 12px; color: var(--text-3); cursor: pointer; }

/* 积分商城卡片 */
.mall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 12px 12px; }
.mall-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.mall-card .mc-img { width: 100%; height: 120px; object-fit: cover; display: block; background: #eaddc4; }
.mall-card .mc-body { padding: 10px 12px 14px; }
.mall-card .mc-name { font-size: 14px; color: var(--text-1); font-weight: 600; line-height: 1.4; min-height: 40px; }
.mall-card .mc-pts { margin-top: 8px; color: var(--gold-deep); font-weight: 700; font-size: 17px; }
.mall-card .mc-pts .u { font-size: 12px; font-weight: normal; margin-left: 3px; }

/* 积分明细流水 */
.pts-hero {
  background: linear-gradient(135deg, #b08d57, #8a6d3b);
  color: #fff; text-align: center; padding: 26px 0 22px;
}
.pts-hero .lbl { font-size: 13px; opacity: 0.85; }
.pts-hero .big { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.2; }
.pts-hero .rule { display: inline-block; margin-top: 8px; font-size: 12px; background: rgba(255,255,255,0.2); padding: 4px 14px; border-radius: 14px; cursor: pointer; }
.pts-log { background: #fff; margin: 12px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.pts-log .pl-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--divider); }
.pts-log .pl-item:last-child { border-bottom: none; }
.pts-log .pl-main { flex: 1; }
.pts-log .pl-title { font-size: 14px; color: var(--text-1); }
.pts-log .pl-time { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.pts-log .pl-val { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.pts-log .pl-val.plus { color: var(--gold-deep); }
.pts-log .pl-val.minus { color: var(--danger); }
.rule-box { background: #fff; margin: 0 12px 12px; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 13px; color: var(--text-2); line-height: 1.9; }
.rule-box h4 { font-family: var(--serif); color: var(--text-1); margin-bottom: 6px; font-size: 15px; }

/* 邀请好友 */
.invite-hero { text-align: center; padding: 24px 16px; }
.invite-hero .ih-title { font-family: var(--serif); font-size: 22px; color: var(--gold-deep); }
.invite-hero .ih-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.qr-box { width: 180px; height: 180px; margin: 16px auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.qr-box .qr-ph { width: 140px; height: 140px; background:
  repeating-linear-gradient(0deg, #3a3630 0 6px, transparent 6px 12px),
  repeating-linear-gradient(90deg, #3a3630 0 6px, #fff 6px 12px); opacity: 0.8; }
.invite-code { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.invite-code .code { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; color: var(--text-1); background: var(--primary-light); padding: 6px 16px; border-radius: 8px; }
.invite-list { background: #fff; margin: 12px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.invite-list .il-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--divider); font-size: 13px; }
.invite-list .il-item:last-child { border-bottom: none; }
.invite-list .il-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #d9c39a, #b08d57); color: #fff; display: flex; align-items: center; justify-content: center; }
.invite-list .il-pts { margin-left: auto; color: var(--gold-deep); font-weight: 600; }
