/* ============ 茶野小程序 · 视觉系统 ============ */
:root {
  --ink: #1b2622;
  --ink-2: #4a5751;
  --ink-3: #8b968f;
  --green: #2f5d50;
  --green-2: #3e7a66;
  --green-3: #e8f0eb;
  --gold: #bf9754;
  --gold-2: #f6efdf;
  --cream: #f5f2e9;
  --paper: #fffdf8;
  --line: #eae5da;
  --danger: #c4553f;
  --radius: 16px;
  --brand-grad: linear-gradient(160deg, #2f5d50 0%, #3a6d5c 58%, #4a8168 100%);
  --shadow: 0 2px 12px rgba(31, 45, 38, 0.06);
  --shadow-lg: 0 12px 40px rgba(31, 45, 38, 0.14);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #22262a radial-gradient(1200px 600px at 50% -100px, #35403b 0%, #1d2124 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ============ 手机壳 ============ */
.phone {
  width: 390px;
  height: 844px;
  max-height: 96vh;
  background: var(--cream);
  border-radius: 44px;
  box-shadow: 0 0 0 10px #0d0f10, 0 0 0 12px #2a2f31, 0 40px 90px rgba(0, 0, 0, 0.6);
  /* clip：彻底禁止手机壳容器被 scrollIntoView/聚焦滚动，浮层不会串位（不支持时回退 hidden） */
  overflow: hidden;
  overflow: clip;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 状态栏 */
.statusbar {
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 30px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  position: relative;
  z-index: 10;
}
.statusbar .notch {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 108px;
  height: 26px;
  background: #0d0f10;
  border-radius: 14px;
}
.statusbar .icons {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* 导航栏 */
.navbar {
  flex: 0 0 auto;
  background: var(--green);
  padding: 0 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 9;
}
.navbar .title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}
.navbar .capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #fff;
  backdrop-filter: blur(6px);
}
.capsule .dot3 {
  letter-spacing: 2px;
}
.capsule .sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
}

/* 页面容器 */
.screen {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
  background: var(--cream);
}
.screen::-webkit-scrollbar {
  width: 0;
}

/* 底部 TabBar */
.tabbar {
  flex: 0 0 auto;
  height: 62px;
  background: rgba(255, 253, 248, 0.94);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding-bottom: 6px;
  backdrop-filter: blur(12px);
  z-index: 8;
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.18s;
  position: relative;
  padding-top: 6px;
}
.tabbar .tab .ico {
  font-size: 19px;
  line-height: 1;
}
.tabbar .tab.active {
  color: var(--green);
  font-weight: 600;
}
.tabbar .tab.active .ico {
  transform: scale(1.05);
}

/* ============ 通用组件 ============ */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin: 10px 12px;
}
.card.flat {
  box-shadow: none;
  border: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.muted {
  color: var(--ink-3);
  font-size: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.price {
  color: var(--danger);
  font-weight: 700;
}
.price .unit {
  font-size: 11px;
  font-weight: 500;
}
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--green-3);
  color: var(--green);
  margin-right: 4px;
  line-height: 1.6;
}
.tag.gold {
  background: var(--gold-2);
  color: #8a6d2f;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
  font-family: inherit;
}
.btn:active {
  transform: scale(0.97);
  opacity: 0.88;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 93, 80, 0.28);
}
.btn-gold {
  background: linear-gradient(135deg, #cfa761, #b98f49);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.btn-block {
  width: 100%;
  padding: 13px;
  font-size: 15px;
}

/* ============ 首页 ============ */
.hero {
  background: var(--brand-grad);
  padding: 14px 16px 46px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 65%);
}
.store-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  cursor: pointer;
}
.store-pick .name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.store-pick .type {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 7px;
  border-radius: 5px;
}
.store-pick .arrow {
  font-size: 11px;
  opacity: 0.8;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  margin-top: 5px;
}

.searchbar {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
}

/* 九宫格 */
.grid9 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 0;
  padding: 4px 2px;
}
.grid9 .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.16s;
}
.grid9 .cell:active {
  background: var(--green-3);
}
.grid9 .cell .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--green-3);
}
.grid9 .cell .icon.gold {
  background: var(--gold-2);
}
.grid9 .cell .icon.img{background:transparent;box-shadow:none}
.grid9 .cell .icon.img .ico-img{width:38px;height:38px;object-fit:contain;display:block;filter:drop-shadow(0 3px 4px rgba(40,60,45,.12))}
.grid9 .cell .icon.gold .ico-img{filter:drop-shadow(0 2px 3px rgba(120,90,20,.18))}
.grid9 .cell .label {
  font-size: 11px;
  color: var(--ink-2);
}

/* 商品横滑 */
.hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 12px 6px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar {
  display: none;
}
.prod-card {
  flex: 0 0 132px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
}
.prod-card .thumb {
  height: 88px;
  background: linear-gradient(135deg, #eef2ec, #dde8e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
}
.prod-card .thumb .badge {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 9px;
  background: rgba(47, 93, 80, 0.9);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.prod-card .info {
  padding: 8px 9px 10px;
}
.prod-card .info .n {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

/* 分区标题 */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
}
.section-title .t {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 10px;
}
.section-title .t::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
}
.section-title .more {
  font-size: 11px;
  color: var(--ink-3);
}

/* ============ 点单页 ============ */
.cat-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 3;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar {
  display: none;
}
.cat-tabs .ct {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.cat-tabs .ct.on {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 600;
}

.item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.item .thumb {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ec, #dde8e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.item .body {
  flex: 1;
  min-width: 0;
}
.item .body .n {
  font-size: 13.5px;
  font-weight: 600;
}
.item .body .tags {
  margin: 4px 0 6px;
}
.item .body .sub {
  font-size: 11px;
  color: var(--ink-3);
}
.item .ops {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 8px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--green);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button {
  width: 24px;
  height: 24px;
  border: 0;
  background: var(--green-3);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.stepper .qty {
  width: 26px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.stepper .zero {
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

/* 购物车浮条 */
.cart-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 74px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transform: translateY(120px);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 20;
}
.cart-bar.show {
  transform: translateY(0);
}
.cart-bar .left {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-bar .left b {
  font-size: 17px;
  color: #ffd88a;
}
.cart-bar .btn {
  background: var(--gold);
  color: #fff;
  padding: 9px 20px;
  font-size: 13px;
}

/* ============ 结算 ============ */
.sheet-item {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
}
.sheet-item:last-child {
  border-bottom: 0;
}
.sheet-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.sheet-total b {
  font-size: 22px;
  color: var(--danger);
}
.benefit-box {
  background: linear-gradient(135deg, #fdf6e6, #f8eed6);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12px;
  color: #7a6229;
  line-height: 1.7;
  border: 1px solid #eeddb8;
}
.pay-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 20px 20px;
}
.check-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 26px rgba(47, 93, 80, 0.35);
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============ 存茶 ============ */
.storage-card {
  margin: 10px 12px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}
.bar {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  margin-top: 8px;
}
.bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-2), var(--gold));
  border-radius: 6px;
}
.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--green-3);
  color: var(--green);
  padding: 4px 9px;
  border-radius: 7px;
  letter-spacing: 1px;
}

/* ============ 店长中心 ============ */
.leader-hero {
  background: linear-gradient(150deg, #1f3e35, #2f5d50 60%, #3f7763);
  color: #fff;
  padding: 20px 18px 26px;
  border-radius: 0 0 22px 22px;
}
.leader-hero .label {
  font-size: 11px;
  opacity: 0.75;
}
.leader-hero .amount {
  font-size: 32px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.leader-hero .amount small {
  font-size: 14px;
  font-weight: 500;
  margin-left: 3px;
}
.leader-stats {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.leader-stats .s {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 10px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.leader-stats .s b {
  display: block;
  font-size: 17px;
}
.leader-stats .s span {
  font-size: 10px;
  opacity: 0.75;
}

/* ============ 我的 ============ */
.me-header {
  background: var(--brand-grad);
  padding: 22px 18px 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  border-radius: 0 0 20px 20px;
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.asset-row {
  display: flex;
  background: var(--paper);
  border-radius: var(--radius);
  margin: -18px 12px 0;
  padding: 15px 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.asset-row .a {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--line);
}
.asset-row .a:last-child {
  border-right: 0;
}
.asset-row .a b {
  font-size: 19px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: block;
}
.asset-row .a span {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
  display: block;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 13.5px;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--green-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.list-row .arrow {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12px;
}

/* ============ AI 助手 ============ */
.ai-fab {
  position: absolute;
  right: 16px;
  bottom: 150px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, #3a6d5c, #2f5d50);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 28px rgba(47, 93, 80, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  z-index: 25;
  transition: transform 0.2s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.ai-fab:active {
  transform: scale(0.94);
}
.ai-fab.dragging {
  transform: scale(1.05);
  box-shadow: 0 16px 36px rgba(47, 93, 80, 0.5);
  transition: none;
}
.ai-fab.dragging::after {
  animation: none;
  opacity: 0;
}
.ai-fab .spark {
  font-size: 20px;
  line-height: 1;
}
.ai-fab .lbl {
  font-size: 9px;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.ai-fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.ai-panel {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 16, 0.42);
  backdrop-filter: blur(3px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.ai-panel.open {
  opacity: 1;
  pointer-events: auto;
}
.ai-sheet {
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  height: 88%;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
  overflow: hidden;
}
.ai-panel.open .ai-sheet {
  transform: translateY(0);
}
.ai-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-head .who {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ai-head .who .ava {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, #3a6d5c, #2f5d50);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ai-head .who .meta b {
  font-size: 13.5px;
  display: block;
}
.ai-head .who .meta span {
  font-size: 10px;
  color: var(--ink-3);
}
.ai-close {
  border: 0;
  background: var(--cream);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
}
.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 6px;
  background: var(--cream);
}
.msg {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}
.msg .bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user {
  justify-content: flex-end;
}
.msg.user .bubble {
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.ai .bubble {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}
.trace {
  margin: 8px 0 12px;
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 11px;
  color: var(--ink-2);
}
.trace .h {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.trace .step-line {
  display: flex;
  gap: 6px;
  padding: 3px 0;
  align-items: flex-start;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  line-height: 1.5;
}
.trace .step-line .dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green-3);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  margin-top: 1px;
}
.trace .step-line .nm {
  color: var(--green);
  font-weight: 600;
}
.ai-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 14px;
  background: var(--cream);
  scrollbar-width: none;
}
.ai-chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: 0 0 auto;
  font-size: 11.5px;
  padding: 6px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
}
.chip:active {
  background: var(--green-3);
}
.ai-input-bar {
  display: flex;
  gap: 8px;
  padding: 9px 12px 16px;
  background: var(--cream);
  align-items: center;
}
.ai-input-bar input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 11px 15px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.ai-input-bar input:focus {
  border-color: var(--green-2);
}
.ai-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex: 0 0 42px;
}

/* ============ toast ============ */
.toast {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(20, 28, 24, 0.86);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  max-width: 76%;
  text-align: center;
  line-height: 1.6;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 小屏适配 */
@media (max-width: 460px), (max-height: 900px) {
  .phone {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}


/* ============ 业态主题：咖啡 / 烘焙（暖棕奶油） ============ */
body[data-theme='coffee'] {
  --ink: #2b1d15;
  --ink-2: #5d4738;
  --ink-3: #9c8574;
  --green: #7a4a2b;
  --green-2: #96603a;
  --green-3: #f5e9dd;
  --gold: #c08b4a;
  --gold-2: #fbf0df;
  --cream: #faf4ea;
  --paper: #fffdf9;
  --line: #eee1d2;
  --danger: #c4553f;
  --brand-grad: linear-gradient(160deg, #5b3623 0%, #7a4a2b 56%, #9a6038 100%);
  --shadow: 0 2px 12px rgba(90, 60, 40, 0.08);
}

/* 集章格子 */
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.stamp-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink-3);
}
.stamp-dot.on {
  background: radial-gradient(circle at 32% 26%, #d9ad63 0%, #bb8747 52%, #96652f 100%);
  border-color: #a4743a;
  color: #fff;
  font-size: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(150, 105, 50, 0.28);
}

/* 到店福利主卡 */
.gift-hero {
  margin: 14px 12px 0;
  padding: 20px 18px;
  border-radius: 18px;
  color: #fff;
  background: var(--brand-grad);
  position: relative;
  overflow: hidden;
}
.gift-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
}
.gift-hero .label {
  font-size: 10.5px;
  letter-spacing: 2px;
  opacity: 0.72;
}
.gift-hero .gift {
  font-size: 19px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.35;
}
.gift-hero .desc {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 8px;
  line-height: 1.7;
}
.gift-code {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-align: center;
}

/* 活动横幅第二入口 */
.promo-row {
  display: flex;
  gap: 9px;
  padding: 0 12px;
  margin-top: 10px;
}
.promo-card {
  flex: 1;
  border-radius: 13px;
  padding: 11px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
}
.promo-card .t {
  font-size: 12.5px;
  font-weight: 700;
}
.promo-card .s {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 3px;
}
.promo-card.warm {
  background: linear-gradient(135deg, var(--gold-2), #f7e7cd);
  border-color: #eeddb8;
}

/* ============ 会员卡 / 会员码（参考蜜雪会员中心） ============ */
.vip-card {
  margin: 12px;
  padding: 18px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #21493d 0%, #2f5d50 55%, #4a7a63 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 73, 61, 0.28);
  position: relative;
  overflow: hidden;
}
.vip-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 230, 173, 0.12);
}
.vip-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.vip-level {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffe6ad;
}
.vip-valid {
  font-size: 10.5px;
  opacity: 0.8;
  margin-top: 5px;
}
.vip-qr {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.vip-growth-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 26px;
}
.vip-growth-row b {
  font-size: 26px;
  color: #ffe6ad;
  font-variant-numeric: tabular-nums;
}
.vip-growth-row span {
  font-size: 11px;
  opacity: 0.85;
}
.vip-next {
  font-size: 10.5px;
  opacity: 0.8;
  margin-top: 6px;
}
.vip-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.vip-bar i {
  display: block;
  height: 100%;
  background: #ffe6ad;
  border-radius: 99px;
}
.svc-title {
  font-size: 12.5px;
  font-weight: 700;
  padding: 13px 14px 4px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px 14px;
}
.svc-grid .svc {
  text-align: center;
  padding: 6px 0;
  cursor: pointer;
}
.svc-grid .svc .cico {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--green-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.svc-grid .svc span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-2);
  margin-top: 6px;
}
.mc-card {
  margin: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.mc-card .mc-qr svg {
  width: 210px;
  height: 210px;
}
.mc-code {
  font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: 15px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 14px;
}
.mc-tip {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 10px;
}
.mc-refresh {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--green);
  background: var(--green-3);
  border-radius: 99px;
  padding: 5px 12px;
}
.sec-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  padding: 18px 14px 10px;
}
.asset-row .a b .rmb {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  margin-right: 1px;
}
.promo-banner {
  margin: 14px 12px 0;
  padding: 16px 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d8432f 0%, #ef7d3a 60%, #f7b23c 100%);
  color: #fff;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(216, 67, 47, 0.25);
  position: relative;
  overflow: hidden;
}
.promo-banner::after {
  content: '¥';
  position: absolute;
  right: -6px;
  top: -18px;
  font-size: 90px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.14);
}
.promo-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(120, 30, 10, 0.35);
}
.promo-perks {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 10px;
}
.promo-perks span {
  background: rgba(255, 255, 255, 0.92);
  color: #c23a20;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  padding: 5px 9px;
  box-shadow: 0 1px 4px rgba(120, 30, 10, 0.25);
}
.promo-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 11px;
  background: linear-gradient(135deg, #ffe08a, #ffc24a);
  color: #7a2d10;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 99px;
  padding: 7px 18px;
  box-shadow: 0 3px 8px rgba(120, 30, 10, 0.3);
}
.promo-cta b {
  font-size: 15px;
}

/* ============ 即享商城 ============ */
.mall-hero {
  margin: 12px;
  padding: 20px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d3a44 0%, #2f5d50 60%, #6a8f5f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(29, 58, 68, 0.3);
}
.mall-hero-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  background: #ff5d3a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px 8px 8px 2px;
  padding: 3px 8px;
}
.mall-hero-t {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
}
.mall-hero-s {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 6px;
}
.mall-hero-cta {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d3a44;
  font-size: 12px;
  font-weight: 800;
  border-radius: 99px;
  padding: 7px 16px;
}
.mall-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px 10px;
  -webkit-overflow-scrolling: touch;
}
.mall-chips::-webkit-scrollbar { display: none; }
.mchip {
  flex-shrink: 0;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 99px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.mchip.on {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
}
.mall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 20px;
}
.mall-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.mall-thumb {
  height: 86px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.mtag {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  padding: 3px 8px;
  border-radius: 0 0 10px 0;
}
.mtag.new { background: #ff5d3a; }
.mtag.hot { background: #e8842c; }
.mall-name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mall-store {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mall-price {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.mall-price b {
  font-size: 15px;
  color: var(--green);
}
.mall-price del {
  font-size: 10px;
  color: var(--ink-3);
}
.mall-price span {
  font-size: 10px;
  color: var(--ink-3);
}

/* ============ 商家活动弹窗 ============ */
.camp-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 20, 0.55);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.camp-card {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  background: linear-gradient(160deg, #e8452e 0%, #f06a33 55%, #f7a53c 100%);
  padding: 20px 16px 18px;
  color: #fff;
  position: relative;
  box-shadow: 0 16px 40px rgba(120, 30, 10, 0.45);
  animation: campPop 0.25s ease-out;
}
@keyframes campPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.camp-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 2;
}
.camp-head { text-align: center; }
.camp-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(120, 30, 10, 0.4);
}
.camp-sub {
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.92;
}
.camp-coupons {
  background: linear-gradient(180deg, #fff7e8, #ffe9c9);
  border-radius: 14px;
  padding: 10px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.camp-coupon {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  position: relative;
}
.camp-coupon .amt {
  color: #e8452e;
  display: flex;
  align-items: baseline;
}
.camp-coupon .amt b { font-size: 24px; }
.camp-coupon .amt span { font-size: 11px; margin-left: 2px; }
.camp-coupon .info { flex: 1; }
.camp-coupon .info div:first-child { font-size: 13px; font-weight: 700; }
.camp-coupon .info .valid { font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.camp-coupon .badge {
  font-size: 9.5px;
  color: #e8452e;
  border: 1px solid #e8452e;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 700;
}
.camp-coupon .badge.on {
  color: #fff;
  background: #e8452e;
  border-color: #e8452e;
}
.camp-coupon .lock {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 16px;
  opacity: 0.5;
}
.camp-tips {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 11px;
  flex-wrap: wrap;
}
.camp-cta {
  display: block;
  text-align: center;
  margin: 13px auto 0;
  background: linear-gradient(135deg, #ffe08a, #ffc24a);
  color: #7a2d10;
  font-size: 15px;
  font-weight: 900;
  border-radius: 99px;
  padding: 11px 0;
  width: 82%;
  box-shadow: 0 4px 10px rgba(120, 30, 10, 0.3);
  cursor: pointer;
}

/* ============ 我的页（瑞幸版式补充） ============ */
.me-two-col {
  display: flex;
  gap: 10px;
  margin: 14px 12px 0;
  align-items: stretch;
}
.me-two-col .card { margin: 0; }
.sec-inline {
  font-size: 12.5px;
  font-weight: 800;
  padding: 12px 12px 4px;
}
.last-order {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 12px;
}
.lo-info { flex: 1; }
.lo-name {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lo-sub {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
}
.lo-btn {
  display: inline-block;
  margin-top: 7px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  padding: 4px 10px;
}
.lo-ico { font-size: 30px; }
.svc-more {
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 12px 14px 0 0;
  cursor: pointer;
}
.invite-banner {
  margin: 14px 12px 0;
  padding: 15px 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, #17495e 0%, #2b6e8f 60%, #3f9db1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 73, 94, 0.28);
}
.invite-banner .ib-t { font-size: 15px; font-weight: 900; }
.invite-banner .ib-s { font-size: 10.5px; opacity: 0.85; margin-top: 4px; }
.invite-banner .ib-btn {
  background: linear-gradient(135deg, #ffe08a, #ffc24a);
  color: #103c4d;
  font-size: 11px;
  font-weight: 800;
  border-radius: 99px;
  padding: 7px 12px;
  flex-shrink: 0;
}
.camp-foot {
  text-align: center;
  font-size: 10px;
  opacity: 0.82;
  margin-top: 8px;
}
.camp-cta[data-busy] { opacity: 0.7; }

/* ============ 商家入驻 / 我要开店 ============ */
.join-hero {
  margin: 14px 12px 0;
  padding: 20px 18px 17px;
  border-radius: 20px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 93, 80, 0.26);
  position: relative;
  overflow: hidden;
}
.join-hero::after {
  content: '';
  position: absolute;
  right: -46px;
  top: -56px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.join-hero .jh-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}
.join-hero h2 {
  margin: 10px 0 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.2px;
}
.join-hero .jh-sub {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.65;
  opacity: 0.86;
}
.join-hero .jh-stats {
  display: flex;
  gap: 6px;
  margin-top: 15px;
}
.join-hero .jh-stats div {
  flex: 1;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  padding: 9px 4px;
  text-align: center;
}
.join-hero .jh-stats b {
  display: block;
  font-size: 15px;
  font-weight: 900;
}
.join-hero .jh-stats span {
  font-size: 9.5px;
  opacity: 0.82;
  display: block;
  margin-top: 2px;
}
.join-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 14px 12px 0;
}
.join-perk {
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 12px 11px;
  box-shadow: var(--shadow);
}
.join-perk .jp-i {
  font-size: 17px;
}
.join-perk .jp-t {
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
}
.join-perk .jp-d {
  font-size: 10px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-top: 3px;
}
.join-flow {
  margin: 14px 12px 0;
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 14px 6px;
  box-shadow: var(--shadow);
}
.join-flow .jf-h {
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 12px;
}
.join-step {
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
  position: relative;
}
.join-step .js-n {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: var(--green-3);
  color: var(--green);
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9.5px;
  top: 22px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}
.join-step .js-t {
  font-size: 12px;
  font-weight: 700;
}
.join-step .js-d {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.5;
}
.join-form {
  margin: 14px 12px 0;
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 14px 14px;
  box-shadow: var(--shadow);
}
.join-form .jf-title {
  font-size: 13px;
  font-weight: 800;
}
.join-form .jf-title span {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 6px;
}
.jf {
  margin-top: 12px;
}
.jf label {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.jf label i {
  color: var(--danger);
  font-style: normal;
}
.jf input,
.jf select,
.jf textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.jf select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.jf textarea {
  resize: none;
  line-height: 1.6;
}
.jf input:focus,
.jf select:focus,
.jf textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px var(--green-3);
}
.jf-row {
  display: flex;
  gap: 10px;
}
.jf-row .jf {
  flex: 1;
}
.join-err {
  font-size: 11px;
  color: var(--danger);
  margin-top: 10px;
  min-height: 0;
}
.join-ok {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--green);
  background: var(--green-3);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}
.join-note {
  font-size: 10px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 11px;
  text-align: center;
}
.join-login {
  margin: 14px 12px 0;
  background: var(--paper);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.join-login .jl-t {
  font-size: 12.5px;
  font-weight: 700;
}
.join-login .jl-d {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 3px;
}
.join-login .jl-btn {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-3);
  border-radius: 99px;
  padding: 8px 13px;
}
.join-ok-card {
  margin: 14px 12px 0;
  background: var(--paper);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.join-ok-card .jo-i {
  font-size: 40px;
}
.join-ok-card .jo-t {
  font-size: 16px;
  font-weight: 900;
  margin-top: 8px;
}
.join-ok-card .jo-d {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-top: 6px;
}
.join-kv {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 6px;
  text-align: left;
}
.join-kv .r {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  padding: 7px 0;
}
.join-kv .r span {
  color: var(--ink-3);
}
.join-kv .r b {
  font-weight: 700;
}
.join-entry {
  margin: 14px 12px 0;
  padding: 14px 15px;
  border-radius: 16px;
  background: linear-gradient(120deg, #f7efdd 0%, #fbf6ea 58%, #f4ead3 100%);
  border: 1px solid #efe2c8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(191, 151, 84, 0.14);
}
.join-entry .je-t {
  font-size: 13.5px;
  font-weight: 900;
  color: #6b4f1d;
}
.join-entry .je-s {
  font-size: 10.5px;
  color: #94794a;
  margin-top: 4px;
}
.join-entry .je-btn {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #c79a52, #b07f34);
  border-radius: 99px;
  padding: 8px 13px;
  box-shadow: 0 4px 10px rgba(176, 127, 52, 0.3);
}

/* ============ 证件资料（入驻） ============ */
.kyc-block {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}
.kyc-block .kb-title {
  font-size: 13px;
  font-weight: 800;
}
.kyc-block .kb-title span {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 6px;
}
.kyc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 11px;
}
.kyc-tile {
  position: relative;
  border-radius: 12px;
  border: 1px dashed #d7d1c3;
  background: #fbf9f3;
  aspect-ratio: 1.55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  overflow: hidden;
  padding: 4px;
}
.kyc-tile .kt-ico {
  font-size: 17px;
  opacity: 0.75;
}
.kyc-tile .kt-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.3;
}
.kyc-tile .kt-hint {
  font-size: 8px;
  color: var(--ink-3);
}
.kyc-tile.done {
  border-style: solid;
  border-color: var(--green);
  padding: 0;
}
.kyc-tile.done img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kyc-tile .kt-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(47, 93, 80, 0.92);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  display: none;
}
.kyc-tile.done .kt-badge {
  display: block;
}
.kyc-tile.done .kt-ico,
.kyc-tile.done .kt-hint {
  display: none;
}
.kyc-tile.done .kt-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 0 3px;
  color: #fff;
  font-size: 8.5px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}
.kyc-note {
  font-size: 9.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 8px;
}
.kyc-err-inline {
  font-size: 10.5px;
  color: var(--danger);
  margin-top: 6px;
}

/* ============ 证件 OCR 自动识别 ============ */
.ocr-panel {
  margin-top: 10px;
}
.ocr-run {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f2f7f4;
  border: 1px solid #d8e7de;
  border-radius: 12px;
  padding: 10px 12px;
}
.orc-spin {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(47, 93, 80, 0.18);
  border-top-color: var(--green);
  animation: ocrSpin 0.8s linear infinite;
  flex: none;
}
@keyframes ocrSpin {
  to {
    transform: rotate(360deg);
  }
}
.orc-run-main {
  flex: 1;
  min-width: 0;
}
.orc-run-t {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
}
.orc-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(47, 93, 80, 0.13);
  margin: 6px 0 5px;
  overflow: hidden;
}
.orc-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3f7f6c, #5aa48c);
  transition: width 0.3s;
}
.orc-run-s {
  font-size: 9px;
  color: var(--ink-3);
  line-height: 1.4;
}
.ocr-card {
  background: #fff;
  border: 1px solid #d8e7de;
  border-radius: 13px;
  padding: 11px 12px;
  box-shadow: 0 6px 16px rgba(47, 93, 80, 0.07);
  animation: ocrIn 0.25s ease;
}
@keyframes ocrIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.ocr-card.fail {
  background: #fdf8f2;
  border-color: #ecdfc9;
}
.ocr-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ocr-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
  background: var(--green);
  padding: 2px 5px;
  border-radius: 4px;
}
.ocr-badge.warn {
  background: #b8842f;
}
.ocr-head b {
  font-size: 12px;
  color: var(--ink);
}
.ocr-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  color: var(--ink-3);
}
.ocr-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ocr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.45;
}
.ocr-row span {
  width: 56px;
  flex: none;
  color: var(--ink-3);
  font-size: 9.5px;
}
.ocr-row b {
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}
.ocr-row .ocr-ok {
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  color: var(--green);
  background: rgba(47, 93, 80, 0.09);
  padding: 1px 5px;
  border-radius: 99px;
  margin-left: auto;
  flex: none;
}
.ocr-tip {
  font-size: 9.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-top: 8px;
}
.ocr-acts {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.ocr-btn {
  flex: 1;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 7px 0;
  border-radius: 9px;
  font-family: inherit;
}
.ocr-btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.jf input.ocr-filled,
.jf textarea.ocr-filled {
  border-color: rgba(47, 93, 80, 0.45);
  background: #f6fbf8;
}

/* 经营地址：执照住所建议卡（不自动覆盖商家填写的地址） */
.addr-sug {
  margin-top: 8px;
  border: 1px solid rgba(191, 151, 84, 0.4);
  background: linear-gradient(180deg, #fdf8ee, #fbf4e6);
  border-radius: 11px;
  padding: 10px 11px;
}
.addr-sug .as-main { display: flex; gap: 7px; align-items: baseline; }
.addr-sug .as-t {
  font-size: 9.5px;
  color: var(--gold);
  border: 1px solid rgba(191, 151, 84, 0.45);
  border-radius: 5px;
  padding: 1px 5px;
  flex: 0 0 auto;
  letter-spacing: .3px;
}
.addr-sug .as-a {
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-all;
}
.addr-sug .as-acts { display: flex; gap: 8px; margin-top: 9px; }
.addr-sug .as-btn {
  border: 0;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
}
.addr-sug .as-btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid rgba(191, 151, 84, 0.45);
  font-weight: 500;
}
.addr-sug .as-btn:active { transform: scale(.97); }


/* ============ 证件拍摄（银行式） ============ */
.kyc-root {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: #0d0f10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.kyc-sheet {
  background: var(--paper);
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 46px 20px 20px;
  overflow-y: auto;
}
.kc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.kc-x {
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
  padding: 4px 2px;
  cursor: pointer;
}
.kc-illus {
  margin: 18px 0 6px;
  background: #101614;
  border-radius: 14px;
  padding: 20px 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.kc-illus-frame {
  width: 100%;
  aspect-ratio: 1.55;
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 1px;
  position: relative;
}
.kc-illus-frame::before,
.kc-illus-frame::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(120, 214, 178, 0.9);
}
.kc-illus-frame::before { left: -1.5px; top: -1.5px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.kc-illus-frame::after { right: -1.5px; bottom: -1.5px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.kc-illus-hint {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}
.kc-rules {
  margin-top: 16px;
}
.kc-rules-t {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}
.kc-rule {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.kc-rule i {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-3);
  color: var(--green);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.kc-rule span {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.kc-detect-tip {
  margin-top: 12px;
  background: var(--green-3);
  color: var(--green);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 10.5px;
  line-height: 1.6;
}
.kc-err {
  margin-top: 10px;
  background: #fdeceb;
  color: var(--danger);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 10.5px;
  line-height: 1.55;
}
.kc-primary {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--green);
  font-family: inherit;
  box-shadow: 0 8px 18px rgba(47, 93, 80, 0.22);
  cursor: pointer;
}
.kc-ghost {
  margin-top: 9px;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
}
.kc-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 9.5px;
  color: var(--ink-3);
}

/* 取景 */
.kc-live {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}
.kc-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.kc-shade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 44px 0 0;
}
.kc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.kc-topbar .kc-x {
  color: rgba(255, 255, 255, 0.85);
}
.kc-topbar.dark {
  background: #0d0f10;
  padding: 46px 18px 12px;
}
.kc-frame-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 24px;
}
.kc-frame {
  position: relative;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.kc-c {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2.5px solid #7cd6b2;
}
.kc-c.tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.kc-c.tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.kc-c.bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.kc-c.br { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.kc-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 214, 178, 0), #7cd6b2, rgba(124, 214, 178, 0));
  box-shadow: 0 0 12px rgba(124, 214, 178, 0.8);
  animation: kcScan 2.6s linear infinite;
}
@keyframes kcScan {
  0% { transform: translateY(4px); opacity: 0.2; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(calc(100% - 4px)); opacity: 0.2; }
}
.kc-count {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 78px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.18);
}
.kc-guide {
  color: #fff;
  font-size: 11.5px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.kc-status {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(6px);
  max-width: 88%;
  text-align: center;
  line-height: 1.4;
}
.kc-status .kc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfd6d2;
  flex: 0 0 6px;
}
.kc-status.ok { background: rgba(38, 122, 95, 0.9); }
.kc-status.ok .kc-dot { background: #8ff0c6; box-shadow: 0 0 8px #8ff0c6; }
.kc-status.warn { background: rgba(180, 112, 40, 0.92); }
.kc-status.warn .kc-dot { background: #ffd08a; }
.kc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px 26px;
}
.kc-side {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-family: inherit;
  padding: 8px;
  cursor: pointer;
}
.kc-shutter {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.kc-shutter span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: block;
}
.kc-shutter:active span { transform: scale(0.94); }
.kc-watermark-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  padding-bottom: 10px;
}

/* 预览确认 */
.kc-prev {
  position: absolute;
  inset: 0;
  background: #0d0f10;
  display: flex;
  flex-direction: column;
}
.kc-prev-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  overflow: hidden;
}
.kc-prev-box img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.kc-prev-check {
  padding: 0 22px 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.7;
}
.kc-prev-check ul {
  margin: 6px 0 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.6);
}
.kc-prev-actions {
  display: flex;
  gap: 10px;
  padding: 14px 20px 24px;
}
.kc-prev-actions .kc-ghost,
.kc-prev-actions .kc-primary {
  flex: 1;
  margin-top: 0;
}
.kc-prev-actions .kc-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* 身份证信息核验 */
.idv-mask {
  position: absolute;
  inset: 0;
  z-index: 95;
  background: rgba(12, 18, 16, 0.5);
  display: flex;
  align-items: flex-end;
}
.idv-card {
  width: 100%;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 22px;
  animation: idvUp 0.24s ease;
}
@keyframes idvUp {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.idv-title {
  font-size: 14px;
  font-weight: 800;
}
.idv-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.6;
}
.idv-card .jf {
  margin-top: 12px;
}
.idv-hint {
  font-size: 10px;
  margin-top: 6px;
  min-height: 13px;
}
.idv-hint.ok { color: var(--green); }
.idv-hint.bad { color: var(--danger); }
.idv-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}
.idv-actions .btn {
  flex: 1;
}

/* ============ 门店收款码（扫码转账 + 商家确认） ============ */
.qr-pay {
  background: #fff;
  border: 1px solid #e6eae7;
  border-radius: 14px;
  padding: 16px 16px 12px;
  text-align: center;
  margin-bottom: 12px;
}
.qr-pay-t {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.qr-pay-t b {
  font-size: 22px;
  color: var(--danger);
  margin-left: 4px;
}
.qr-pay-img {
  width: 208px;
  height: 208px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #eef1ef;
  background: #fff;
  padding: 6px;
  cursor: zoom-in;
}
.qr-pay-hint {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 10px;
}
.qr-pay-note {
  font-size: 10.5px;
  color: var(--ink-3);
  background: #f7f9f8;
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 9px;
  line-height: 1.6;
}
.qr-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 16, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
.qr-mask-box img {
  width: min(78vw, 340px);
  height: min(78vw, 340px);
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
}

/* ============ 收银台：多收款方式 ============ */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e6eae7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pay-method.on {
  border-color: rgba(47, 93, 80, 0.5);
  background: #f6fbf8;
}
.pm-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f4f6f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: 0 0 auto;
}
.pay-method.on .pm-ic { background: #e6f2eb; }
.pm-l { font-size: 13px; font-weight: 600; }
.pm-n { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.pm-dot { color: var(--green); font-size: 13px; flex: 0 0 auto; }

.pay-alt {
  background: #fff;
  border: 1px solid #e6eae7;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.pay-alt-t { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.pay-alt-t b { font-size: 20px; color: var(--danger); margin-left: 4px; }
.pay-alt-d { font-size: 11.5px; color: var(--ink-2); line-height: 1.75; }
.pay-acc {
  background: #f8faf9;
  border: 1px solid #eef1ef;
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 9px;
}
.pay-acc .r {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  padding: 3px 0;
}
.pay-acc .r span { color: var(--ink-3); flex: 0 0 auto; }
.pay-acc .r b { font-weight: 600; color: var(--ink-1); text-align: right; word-break: break-all; }


/* ============ 商品规格选择弹层 ============ */
.spec-hint {
  display: inline-block; margin-top: 4px; font-size: 11px; color: #b08a4a;
  background: #fdf6e9; border-radius: 4px; padding: 2px 6px;
}
.spec-mask {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(20, 24, 20, 0.42);
  display: none; align-items: flex-end; z-index: 62;
}
.spec-mask.show { display: flex; }
.spec-panel {
  width: 100%; background: #fff; border-radius: 16px 16px 0 0;
  padding: 14px 16px 18px; box-sizing: border-box;
  animation: specUp 0.22s ease;
}
@keyframes specUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.spec-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #f0ece3; }
.spec-thumb {
  width: 46px; height: 46px; border-radius: 10px; background: #eef2ee;
  display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden;
}
.spec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spec-info { flex: 1; min-width: 0; }
.spec-name { font-size: 14px; font-weight: 600; color: #222; }
.spec-price { font-size: 11px; color: #c0392b; margin-top: 3px; }
.spec-price b { font-size: 17px; }
.spec-orig { color: #999; margin-left: 6px; }
.spec-close {
  border: 0; background: #f5f2ec; color: #777; width: 26px; height: 26px;
  border-radius: 50%; font-size: 13px; line-height: 1;
}
.spec-group { margin-top: 12px; }
.spec-gname { font-size: 12px; color: #666; margin-bottom: 7px; }
.spec-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.spec-opt {
  padding: 6px 12px; border-radius: 6px; font-size: 12px; color: #444;
  background: #f6f4ee; border: 1px solid transparent;
}
.spec-opt.on { background: #fdf3e3; border-color: #c8a165; color: #8a6a33; font-weight: 600; }
.spec-add { font-size: 10px; color: #b08a4a; margin-left: 3px; }
.spec-confirm {
  width: 100%; margin-top: 16px; height: 42px; border: 0; border-radius: 21px;
  background: #2f5d50; color: #fff; font-size: 14px;
}


/* 商品实拍图：统一裁切，避免长图撑破卡片 */
.item .thumb img,
.prod-card .thumb img,
.spec-thumb img,
.cart-thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block;
}

/* 结算页餐具选择 */
.uten {
  font-size: 12px; padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--ink-3); background: #fff; cursor: pointer;
}
.uten.on { border-color: var(--green); color: var(--green); background: #eef6f1; font-weight: 600; }

/* ===== 现金积分兑换 / 分享赚积分 ===== */
.share-landing{display:flex;gap:10px;align-items:center;margin:-6px 12px 10px;padding:10px;border-radius:14px;background:linear-gradient(135deg,#fff8e6,#fff);border:1px solid #f3e3bc;}
.share-landing .sl-head img{width:52px;height:52px;border-radius:10px;object-fit:cover;flex:none;}
.sl-t{font-size:12px;font-weight:700;color:#a0670f;}
.sl-d{font-size:11.5px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);}
.sl-m{font-size:10px;color:var(--ink-3);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sl-badge{font-size:10px;color:#fff;background:#c98a1c;padding:3px 7px;border-radius:99px;flex:none;}

.pts-bar{height:5px;border-radius:99px;background:var(--cream);margin-top:10px;overflow:hidden;}
.pts-bar i{display:block;height:100%;background:linear-gradient(90deg,#7fc8a9,#1f5f4b);}

.reward-list{margin:0 12px;display:flex;flex-direction:column;gap:9px;}
.reward-item{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #eee9dc;border-radius:14px;padding:11px;}
.rw-img{width:52px;height:52px;border-radius:11px;overflow:hidden;flex:none;background:var(--cream);display:flex;align-items:center;justify-content:center;font-size:22px;}
.rw-img img{width:100%;height:100%;object-fit:cover;}
.rw-name{font-size:12.5px;font-weight:700;}
.rw-meta{font-size:10.5px;color:var(--ink-3);margin-top:2px;}
.rw-bar{height:4px;border-radius:99px;background:#f2eee2;margin-top:6px;overflow:hidden;}
.rw-bar i{display:block;height:100%;background:#c98a1c;}
.rw-need{font-size:10px;color:#a0670f;margin-top:4px;}
.redeem-row{display:flex;gap:8px;align-items:center;padding:11px 13px;border-bottom:1px solid #f3f0e6;}
.redeem-row:last-child{border-bottom:0;}
.redeem-code{font-family:ui-monospace,Menlo,monospace;font-size:12px;font-weight:700;letter-spacing:.5px;color:var(--green);}

.share-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0;}
.share-pick{position:relative;height:150px;border-radius:14px;overflow:hidden;background:var(--cream);display:flex;align-items:center;justify-content:center;}
.share-pick img{width:100%;height:100%;object-fit:cover;}
.sp-empty{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--ink-3);font-size:11.5px;pointer-events:none;}
.sp-ico{font-size:26px;line-height:1;}
.sp-sub{font-size:10px;color:#b3ac9c;}
.share-input{width:100%;margin-top:10px;padding:10px 12px;border:1px solid #eee9dc;border-radius:11px;font-size:12.5px;background:#fff;font-family:inherit;color:var(--ink);box-sizing:border-box;}
.fm-label{font-size:12px;font-weight:600;color:var(--ink-2);margin-top:12px;}
.fm-label:first-of-type{margin-top:0;}
.share-row{display:flex;gap:8px;}
.share-geo{margin-top:10px;padding:9px 12px;border-radius:11px;background:#fbf9f1;font-size:11px;color:var(--ink-2);display:flex;justify-content:space-between;gap:8px;align-items:center;}
.sg-btn{color:var(--green);font-weight:700;flex:none;}
.share-poster{border-radius:13px;overflow:hidden;background:#fff;border:1px solid #f0ebdd;}
.share-poster img{width:100%;max-height:260px;object-fit:cover;display:block;}
.poster-info{padding:10px 12px;}
.poster-title{font-size:13px;font-weight:700;line-height:1.5;}
.poster-store{font-size:10.5px;color:var(--ink-3);margin-top:3px;}
.poster-geo{font-size:10px;color:var(--ink-3);margin-top:3px;}
.poster-code{font-size:10px;color:#a0670f;margin-top:5px;font-family:ui-monospace,Menlo,monospace;}
.share-link{margin-top:10px;padding:9px 11px;border-radius:10px;background:#fbf9f1;font-size:10.5px;color:var(--ink-2);word-break:break-all;}
.sh-row{display:flex;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid #f3f0e6;}
.sh-row:last-child{border-bottom:0;}
.sh-row img{width:46px;height:46px;border-radius:10px;object-fit:cover;flex:none;}
.sh-t{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sh-m{font-size:10.5px;color:var(--ink-3);margin-top:3px;}
.sh-code{font-size:10px;color:var(--green);margin-top:4px;font-family:ui-monospace,Menlo,monospace;}
.pts-row{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;border-bottom:1px solid #f3f0e6;font-size:11.5px;}
.pts-row:last-child{border-bottom:0;}
.pr-t{font-weight:600;}
.pr-m{font-size:10px;color:var(--ink-3);margin-top:2px;}
.pr-a{color:#a0670f;font-weight:700;}

/* 分享文案：体验评价 + AI 美言 */
.share-lab{font-size:11px;color:var(--ink-3);margin:2px 0 6px;display:flex;align-items:baseline;justify-content:space-between;}
.lab-hint{font-size:10px;color:#bfb6a4;}
.share-textarea{height:76px;padding-top:10px;line-height:1.6;resize:none;font-family:inherit;border-radius:10px;}
.share-tags{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 2px;}
.st-chip{font-size:11px;color:#8b7f6c;background:#f6f2e9;border:1px solid #ece4d4;border-radius:999px;padding:4px 9px;line-height:1.4;}
.st-chip.on{color:#fff;background:#2f6b4e;border-color:#2f6b4e;}
.share-ai-row{display:flex;gap:8px;margin:10px 0 12px;}
.poster-note{font-size:10.5px;color:#6f6454;line-height:1.55;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.poster-note-outer{font-size:11px;color:var(--ink-2);line-height:1.65;background:#faf7f0;border-radius:8px;padding:8px 10px;margin-top:10px;}
.sh-note{font-size:10.5px;color:#8d8474;line-height:1.5;margin-top:2px;}
.sl-note{font-size:10.5px;color:#8d8474;line-height:1.5;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* 分享落地页：分享商品 + 红色定位 */
.pin-ico{vertical-align:-2px;margin-right:3px;}
.share-landing{display:block;padding:0;overflow:hidden;}
.sl-head{display:flex;gap:10px;padding:12px;align-items:flex-start;}
.share-landing .sl-head img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:0 0 56px;}
.sl-geo{display:flex;align-items:center;font-size:10.5px;color:#9a8f7c;margin-top:4px;line-height:1.4;}
.sl-prod{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px dashed #efe4d0;background:#fbf8f1;}
.sl-prod img{width:46px;height:46px;border-radius:9px;object-fit:cover;flex:0 0 46px;}
.sl-pn{font-size:11.5px;color:#4a4136;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sl-pp{font-size:11px;color:#c4562f;margin-top:3px;font-weight:600;}
.sl-pv{color:#8d8474;font-weight:400;}
.sl-pbtn{font-size:11px;color:#fff;background:#2f6b4e;border-radius:999px;padding:5px 10px;white-space:nowrap;}

/* 分享卡：图片为主 + 只留位置图标 + 链接 */
.share-landing .sl-hero{width:100%;height:172px;object-fit:contain;display:block;border-radius:0;background:#f5f0e5;}
.sl-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:linear-gradient(180deg,#fbf8f1,#fff);border-bottom:1px solid #f2ece0;}
.sl-loc{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#fdeeeb;flex:0 0 26px;}
.sl-loc .pin-ico{width:14px;height:14px;margin:0;}
.sl-locname{font-size:10.5px;color:#9a8f7c;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sl-linkbtn{font-size:10.5px;color:#2f6b4e;background:#eaf3ee;border-radius:999px;padding:4px 9px;white-space:nowrap;}
/* 成品文案块 */
.post-msg{background:#fbf8f1;border:1px solid #f2ece0;border-radius:10px;padding:8px 10px;margin-top:10px;}
.pm-row{display:flex;gap:8px;align-items:flex-start;padding:3px 0;}
.pm-k{font-size:10px;color:#b3a894;flex:0 0 28px;padding-top:1px;}
.pm-v{font-size:10.5px;color:#6f6454;line-height:1.5;}
.pm-loc{display:inline-flex;align-items:center;gap:4px;}
.pm-loc-t{font-size:10.5px;color:#6f6454;}
.pm-link{font-size:10.5px;color:#8d8474;word-break:break-all;line-height:1.5;}

/* 分享卡（海报式：图 + 标题/评价 + 位置图标 + 链接） */
.sl-body{padding:10px 12px 8px;background:#fff;}
.sl-title{font-size:13px;font-weight:700;color:#1f5f4b;line-height:1.4;}
.sl-store{font-size:10.5px;color:#9a8f7c;margin-top:3px;}
.sl-geo2{display:flex;align-items:center;gap:4px;font-size:10.5px;color:#8d8474;margin-top:5px;line-height:1.4;}
.sl-geo2 .pin-ico{width:12px;height:12px;margin:0;flex:0 0 12px;}
.sl-code{font-size:10px;color:#a0670f;margin-top:5px;}
.sl-url{font-size:10px;color:#a9a294;word-break:break-all;flex:1;min-width:0;line-height:1.4;}

/* 入会（新客礼 10 积分） */
.join-entry{display:flex;align-items:center;gap:10px;margin:10px 12px 0;padding:10px 12px;border-radius:14px;
  background:linear-gradient(135deg,#fff3d6,#fffaf0);border:1px solid #f0dfae;}
.je-t{font-size:12px;font-weight:700;color:#8a5a12;}
.je-s{font-size:10px;color:#a9977a;margin-top:3px;}
.je-b{font-size:11px;color:#fff;background:#c4811b;border-radius:999px;padding:5px 10px;white-space:nowrap;}
.join-mask{position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(20,24,20,.44);z-index:80;display:flex;align-items:center;justify-content:center;padding:0 22px;}
.join-box{width:100%;background:#fff;border-radius:16px;padding:18px 16px 16px;position:relative;box-shadow:0 12px 32px rgba(30,25,15,.18);}
.jb-close{position:absolute;right:12px;top:8px;font-size:20px;color:#b9b1a0;line-height:1;}
.jb-badge{display:inline-block;font-size:10px;color:#fff;background:#c4811b;border-radius:999px;padding:2px 8px;}
.jb-title{font-size:16px;font-weight:700;color:#1f5f4b;margin-top:8px;line-height:1.4;}
.jb-sub{font-size:11.5px;color:#8d8474;line-height:1.65;margin-top:6px;}
.jb-sub b{color:#c4562f;}
.jb-tip{font-size:10px;color:#b3a894;line-height:1.6;margin-top:9px;text-align:center;}

/* 分享卡主图：电商图风格（透明底商品居中 + 干净渐变底 + 投影） */
.share-landing .sl-hero.ec{box-sizing:border-box;height:200px;padding:16px 22px;object-fit:contain;background:radial-gradient(120% 90% at 50% 0%,#e6eff9 0%,#f2f5f2 45%,#fdfaf3 100%);filter:drop-shadow(0 6px 10px rgba(30,60,90,.10));}

/* 电商图舞台：商品居中，不铺满 */
.sl-ec{height:196px;box-sizing:border-box;padding:16px 22px;display:flex;align-items:center;justify-content:center;background:radial-gradient(120% 90% at 50% 0%,#e6eff9 0%,#f2f5f2 45%,#fdfaf3 100%);}
.sl-ec img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;filter:drop-shadow(0 6px 10px rgba(30,60,90,.10));}

/* 电商图：卖点标签 */
.sl-ec{position:relative;}
.sl-ec-badges{position:absolute;left:0;right:0;top:8px;display:flex;gap:5px;justify-content:center;overflow:hidden;z-index:2;}
.sl-ec-badge{font-size:10px;color:#2b5a7d;background:rgba(255,255,255,.9);border:1px solid #d8e6f2;border-radius:999px;padding:2px 8px;white-space:nowrap;}
.sl-ec{padding:30px 22px 12px;}

/* 电商主图纯底 + 地面投影 */
.sl-ec{background:linear-gradient(180deg,#f7f8fa 0%,#eff1f3 62%,#e7eaed 100%);}
.sl-ec-floor{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);width:56%;height:16px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(60,70,80,.20) 0%,rgba(60,70,80,.08) 45%,rgba(60,70,80,0) 72%);}

/* 主图=顾客上传照片：区域内居中完整显示 */
.sl-ec img{border-radius:10px;box-shadow:0 6px 16px rgba(40,60,80,.12);}

/* 分享主图铺满整块区域（cover），标签浮在图上 */
.sl-ec{position:relative;height:196px;padding:0;overflow:hidden;display:block;background:#eef0f2;}
.sl-ec img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;border-radius:0;box-shadow:none;}
.sl-ec-floor{display:none;}

/* ---- 即享商城 v2 ---- */
.mall-search{margin:10px 12px 0;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:8px;padding:9px 12px}
.mall-search .ms-ico{font-size:14px;color:var(--ink-3)}
.mall-search input{border:0;outline:0;flex:1;background:transparent;font-size:12.5px;color:var(--ink-1)}
.mall-sort{display:flex;align-items:center;gap:8px;padding:10px 14px 4px;font-size:11px;color:var(--ink-3)}
.msort{padding:4px 9px;border-radius:999px;background:#f1efe7;color:#6b6257}
.msort.on{background:var(--green);color:#fff}
.mcount{margin-left:auto;font-size:10.5px;color:var(--ink-3)}
.mall-card{position:relative;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 8px rgba(60,45,20,.07);padding-bottom:10px}
.mall-thumb{height:112px;background:#f4f1e9;display:flex;align-items:center;justify-content:center;overflow:hidden}
.mall-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mall-thumb .mt-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;color:#7a8a78;letter-spacing:1px}
.mtag.pick{background:#2f6b4e;color:#fff}
.mall-step{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 9px}
.mall-step span{width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px}
.mall-step b{font-size:12.5px;min-width:14px;text-align:center}
.mall-add{margin:2px 9px 0;border:1px solid var(--green);color:var(--green);border-radius:999px;text-align:center;font-size:11px;padding:5px 0}
.mall-bar-slot{height:64px}
.mall-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:74px;width:calc(100% - 24px);max-width:390px;background:#1f5f4b;color:#fff;border-radius:14px;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;box-shadow:0 8px 20px rgba(31,95,75,.28);z-index:40}
.mb-cart{display:flex;align-items:center;gap:9px}
.mb-n{width:24px;height:24px;border-radius:50%;background:var(--gold-1);color:#5a3f10;display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700}
.mb-t{font-size:15px;font-weight:700}
.mb-s{font-size:10px;opacity:.8}
.mb-go{background:#fff;color:#1f5f4b;border:0;border-radius:999px;padding:9px 18px;font-size:12.5px;font-weight:700}
/* 分流结算 */
.mc-card{margin:0 12px 10px;padding:13px 14px}
.mc-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:9px;border-bottom:1px dashed var(--line)}
.mc-store{font-size:13.5px;font-weight:700;color:var(--ink-1)}
.mc-way{font-size:10.5px;color:var(--green);background:#eaf2ea;border-radius:999px;padding:3px 9px}
.mc-item{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px dashed #f2eee3}
.mc-i-name{flex:1;min-width:0;font-size:12.5px;color:var(--ink-1)}
.mc-i-unit{font-size:10px;color:var(--ink-3)}
.mc-i-step{display:flex;align-items:center;gap:7px}
.mc-i-step span{width:19px;height:19px;border-radius:50%;background:#f0eee5;color:#5f6b5f;display:flex;align-items:center;justify-content:center;font-size:12px}
.mc-i-step b{font-size:12px}
.mc-i-price{width:56px;text-align:right;font-size:12px;font-weight:600;color:var(--ink-1)}
.mc-foot{display:flex;justify-content:space-between;padding-top:9px;font-size:12px}
.mc-total{display:flex;justify-content:space-between;align-items:baseline;font-size:13px}
.mc-total b{font-size:19px;color:var(--danger)}
.mc-tip{font-size:10.5px;color:var(--ink-3);margin-top:8px;line-height:1.7}
/* 附近好物 */
.np-card{margin:0 12px 10px;padding:12px 13px}
.np-head{display:flex;align-items:center;justify-content:space-between}
.np-store{font-size:13.5px;font-weight:700}
.np-sub{font-size:10.5px;color:var(--ink-3);margin-top:3px}
.np-enter{border:1px solid var(--green);color:var(--green);background:#fff;border-radius:999px;font-size:11px;padding:5px 11px}
.np-row{display:flex;gap:10px;overflow-x:auto;margin-top:10px;padding-bottom:2px}
.np-item{flex:0 0 96px}
.np-item img,.np-ph{width:96px;height:96px;border-radius:12px;object-fit:cover;display:block;background:#f2efe6}
.np-ph{display:flex;align-items:center;justify-content:center;font-size:14px;color:#7a8a78;font-weight:700}
.np-name{font-size:11px;margin-top:6px;line-height:1.35;height:30px;overflow:hidden}
.np-price{font-size:12px;font-weight:700;color:var(--danger);margin-top:2px}
/* ---- 履约：结算选择 / 自提码 ---- */
.mc-way-row{display:flex;gap:8px;margin-top:10px}
.mc-chip{font-size:11px;border-radius:999px;padding:5px 11px;background:#f0eee5;color:#6b6257;border:1px solid transparent}
.mc-chip.on{background:var(--green);color:#fff}
.mc-chip.off{opacity:.45}
.mc-hint{margin-top:8px;font-size:10.5px;color:var(--ink-3);line-height:1.7}
.mc-addr{width:100%;border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:12px;outline:0;background:#fffdf7}
.mc-ok{color:#2f6b4e;margin-top:5px}
.mc-warn{color:#b4552c;margin-top:5px}
.pk-box{margin-top:9px;background:linear-gradient(180deg,#f7fbf7,#eff6ef);border:1px dashed #bfd6c4;border-radius:11px;padding:9px 11px}
.pk-box.deli{background:#fbf8f1;border-color:#eadfc7}
.pk-label{font-size:10px;color:var(--ink-3);letter-spacing:.5px}
.pk-code{font-size:20px;font-weight:700;color:#1f5f4b;letter-spacing:2px;margin-top:2px}
.pk-addr{font-size:10.5px;color:var(--ink-2);margin-top:3px;line-height:1.5}
.pk-line{margin-top:6px;font-size:11.5px;color:var(--ink-2)}
.pk-line b{font-size:15px;color:#1f5f4b;letter-spacing:1.5px}

/* 外卖地址：定位 + 手填 */
.mc-loc{display:flex;gap:6px;align-items:center}
.mc-loc .mc-addr{flex:1}
.mc-locbtn{white-space:nowrap;padding:7px 12px;font-size:11.5px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--brand);flex:0 0 auto}
.mc-locbtn:disabled{opacity:.6}
.mc-geo{margin-top:5px;font-size:10.5px;color:var(--ink-3);line-height:1.6}
.mc-maplink{color:var(--brand);text-decoration:none;border-bottom:1px dotted var(--brand)}
