/* 蓝图茶咖 H5 样式（移动端优先，主题令牌驱动，后台可切换 A/B/C） */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* 默认主题令牌 = 方案A 暖棕琥珀（后台切换后会由 index.html 动态覆盖） */
:root {
  --brand: #7B4B2A;
  --brand2: #A9703F;
  --accent: #E0A458;
  --accent-soft: #F6E9D6;
  --bg: #FBF7F0;
  --card: #FFFFFF;
  --ink: #2E2419;
  --ink2: #6B5D4F;
  --muted: #A89B89;
  --line: #EDE3D5;
  --success: #3F8F5B;
  --danger: #D9694E;
  --bar: #3a2c1e;
  --price: var(--brand);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }

/* ---------- 顶部品牌栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; padding: 13px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.brand { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.top-ops a { color: rgba(255,255,255,.82); margin-left: 14px; font-size: 14px; padding-bottom: 2px; transition: color .15s; }
.top-ops a.active, .top-ops a:hover { color: #fff; border-bottom: 2px solid var(--accent); }

#view { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }
.empty-box { text-align: center; color: var(--muted); padding: 60px 20px; line-height: 2; }
.empty-box a { color: var(--brand); font-weight: 600; }
.bottom-space { height: 96px; }

/* ---------- 通用卡片 ---------- */
.card { background: var(--card); border-radius: 16px; padding: 16px; margin: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.card-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }

.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--brand); border-radius: 22px; padding: 8px 22px; font-size: 14px; cursor: pointer; text-align: center; transition: transform .1s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand2), var(--brand)); border: none; color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(123,75,42,.25); }
.btn-primary[disabled] { background: var(--muted); box-shadow: none; opacity: .7; }
.btn-outline { border: 1px solid var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

/* ---------- 点单页 ---------- */
.menu-wrap { display: flex; min-height: calc(100vh - 56px); }
.cat-pane { width: 104px; background: color-mix(in srgb, var(--bg) 60%, #000 0%); flex-shrink: 0; background: rgba(0,0,0,.03); }
.cat-item { padding: 16px 8px; text-align: center; font-size: 14px; color: var(--ink2); border-left: 4px solid transparent; cursor: pointer; transition: background .15s; }
.cat-active { background: var(--card); color: var(--brand); font-weight: 700; border-left-color: var(--brand); }
.product-pane { flex: 1; padding: 0 12px; }
.notice { font-size: 12px; color: var(--ink2); padding: 12px 4px 8px; background: var(--accent-soft); border-radius: 10px; margin: 8px 4px; }

.product-card { display: flex; background: var(--card); border-radius: 16px; padding: 12px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: transform .1s; }
.product-card:active { transform: scale(.99); }
.p-img { width: 86px; height: 86px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), #fff); object-fit: cover; flex-shrink: 0; }
.p-body { flex: 1; margin-left: 12px; display: flex; flex-direction: column; }
.p-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.p-tags { margin: 4px 0; }
.tag { display: inline-block; font-size: 11px; color: var(--brand2); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-right: 5px; }
.p-desc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.p-price { color: var(--price); font-size: 18px; font-weight: 800; }
.p-origin { color: var(--muted); font-size: 12px; font-weight: 400; text-decoration: line-through; margin-left: 6px; }

.stepper { display: flex; align-items: center; }
.stepper-btn { width: 28px; height: 28px; border-radius: 50%; border: none; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.12); transition: transform .1s; }
.stepper-btn:active { transform: scale(.9); }
.stepper-btn.plus { background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; }
.stepper-btn.minus { background: #fff; border: 1px solid var(--line); color: var(--ink2); box-shadow: none; }
.stepper-num { min-width: 30px; text-align: center; font-size: 15px; font-weight: 600; }

/* ---------- 底部购物车栏 ---------- */
.cart-bar, .bottom-bar {
  position: fixed; left: 12px; right: 12px; bottom: 14px;
  max-width: 736px; margin: 0 auto;
  background: var(--bar); border-radius: 30px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  display: flex; align-items: center; padding: 8px 8px 8px 20px; z-index: 40;
}
.cart-info { flex: 1; }
.total-line { color: #fff; font-size: 20px; font-weight: 800; }
.total-sub { font-size: 12px; color: rgba(255,255,255,.75); }
.checkout-btn, .bottom-bar .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--brand2)); color: #fff; border: none; border-radius: 24px; padding: 12px 32px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.bottom-total { flex: 1; color: #fff; font-size: 20px; font-weight: 800; }

/* ---------- 确认订单 ---------- */
.line { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--accent-soft); }
.line-info { flex: 1; margin-left: 12px; }
.line-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.line-price { font-size: 12px; color: var(--muted); margin-top: 2px; }
.line-sub { color: var(--price); font-weight: 700; }
.total-row { display: flex; justify-content: space-between; padding-top: 12px; font-size: 13px; color: var(--muted); }
.total-amount { color: var(--price); font-size: 18px; font-weight: 800; }
.radio-line { display: flex; align-items: center; padding: 8px 0; font-size: 14px; color: var(--ink2); }
.radio-line input { margin-right: 8px; accent-color: var(--brand); }
.remark-input { width: 100%; min-height: 70px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 14px; resize: vertical; color: var(--ink); }
.member-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.member-row input { width: 17px; height: 17px; accent-color: var(--brand); }
.member-empty { font-size: 13px; color: var(--muted); }

.sum-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--ink2); }
.sum-row.discount { color: var(--danger); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 14px; color: var(--ink); font-weight: 600; }
.sum-num { color: var(--price); font-size: 18px; font-weight: 800; }
select.form-input { appearance: auto; }

/* ---------- 订单列表 ---------- */
.order-card { background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.oc-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.st { font-weight: 700; }
.st-pending { color: var(--danger); }
.st-paid, .st-completed { color: var(--success); }
.st-cancelled, .st-refunded { color: var(--muted); }
.oc-body { display: flex; justify-content: space-between; align-items: flex-end; margin: 12px 0; }
.oc-items { flex: 1; font-size: 14px; line-height: 1.6; padding-right: 10px; color: var(--ink); }
.oc-total { color: var(--price); font-size: 17px; font-weight: 800; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.oc-time { font-size: 11px; color: var(--muted); }
.mini-btn { font-size: 12px; color: var(--brand); border: 1px solid var(--brand); background: #fff; border-radius: 16px; padding: 5px 14px; cursor: pointer; transition: transform .1s; }
.mini-btn:active { transform: scale(.95); }
.mini-btn.mini-primary { background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; border: none; }
.pickup { color: var(--success); margin-left: 10px; font-size: 13px; font-weight: 600; }

/* ---------- 会员 ---------- */
.member-card-mini { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.mc-name { font-size: 17px; font-weight: 700; }
.mc-level { font-size: 11px; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; padding: 1px 8px; margin-left: 8px; }
.mc-no { font-size: 12px; opacity: .85; margin-top: 4px; }
.mc-balance-label { font-size: 12px; opacity: .8; margin-top: 16px; }
.mc-balance-num { font-size: 36px; font-weight: 800; }
.mc-foot { display: flex; justify-content: space-between; font-size: 12px; opacity: .9; margin-top: 12px; }
.member-ops { display: flex; gap: 10px; justify-content: center; margin: 16px 0 4px; flex-wrap: wrap; }
.member-ops .btn { flex: 1; max-width: 46%; }
.no-member { text-align: center; padding: 20px 0; }
.nm-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.nm-sub { font-size: 13px; color: var(--muted); margin: 8px 0 18px; }
.no-member .form-item { max-width: 260px; margin: 0 auto 12px; }

/* ---------- 充值 ---------- */
.plan-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-item { width: calc(33.33% - 7px); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 16px 0; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.plan-active { border-color: var(--brand); background: var(--accent-soft); }
.plan-amount { font-size: 17px; font-weight: 800; color: var(--ink); }
.plan-bonus { font-size: 12px; color: var(--danger); margin-top: 4px; }
.amount-input { width: 100%; max-width: 240px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 17px; color: var(--ink); }

/* ---------- 支付结果 ---------- */
.result-page { text-align: center; padding: 70px 20px; }
.result-icon { width: 66px; height: 66px; border-radius: 50%; color: #fff; font-size: 36px; line-height: 66px; margin: 0 auto 16px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.result-icon.ok { background: var(--success); }
.result-icon.fail { background: var(--danger); }
.result-title { font-size: 19px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.result-page p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.result-actions { display: flex; justify-content: center; gap: 12px; }
.pickup-card { background: var(--card); border-radius: 16px; padding: 18px 40px; display: inline-block; margin-bottom: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.rc-label { font-size: 12px; color: var(--muted); }
.rc-no { font-size: 42px; font-weight: 800; color: var(--brand); }
.rc-tip { font-size: 12px; color: var(--muted); }

/* ---------- 表单与弹窗 ---------- */
.form-item { margin-bottom: 14px; }
.form-input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; color: var(--ink); }
.form-input:focus { outline: 2px solid var(--accent); border-color: var(--brand); }
.sms-row { display: flex; }
.sms-row .form-input { flex: 1; margin-right: 10px; }
.sms-btn { white-space: nowrap; border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 10px; padding: 0 14px; font-size: 13px; cursor: pointer; }
.modal { display: none; position: fixed; top: 0; left: 0; right:0; bottom: 0; background: rgba(0,0,0,.45); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-box { background: var(--card); border-radius: 18px; padding: 24px 20px; width: 100%; max-width: 340px; }
.modal-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 18px; color: var(--ink); }
.modal-tip { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

.log-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.log-title { font-size: 14px; color: var(--ink); }
.log-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.log-amount { font-weight: 700; }
.log-amount.plus { color: var(--success); }
.log-amount.minus { color: var(--danger); }

/* v2：积分中心 */
.points-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 8px; }
.points-num { font-size: 42px; font-weight: 800; color: var(--brand); }
.tip { font-size: 12px; color: var(--muted); }

/* v2：积分商城 */
.mall-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 14px; }
.mall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mall-card { background: var(--bg); border-radius: 12px; padding: 10px; border: 1px solid var(--line); }
.mall-img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; background: var(--accent-soft); }
.mall-type { display: inline-block; font-size: 10px; color: var(--brand2); background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; margin: 8px 0 4px; }
.mall-name { font-size: 13px; font-weight: 600; line-height: 1.4; min-height: 36px; color: var(--ink); }
.mall-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mall-points { color: var(--price); font-size: 15px; font-weight: 800; }
.mall-sold { font-size: 11px; margin-top: 4px; color: var(--muted); }

/* v2：优惠券 */
.tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.tabs span { flex: 1; text-align: center; font-size: 13px; padding: 8px 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.tabs span.tab-active { background: var(--brand); color: #fff; font-weight: 600; }
.coupon { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.coupon-used, .coupon-expired { opacity: .55; }
.coupon-left { width: 108px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 14px 0; }
.coupon-used .coupon-left, .coupon-expired .coupon-left { background: var(--muted); }
.coupon-value { font-size: 19px; font-weight: 800; }
.coupon-min { font-size: 10px; margin-top: 4px; opacity: .92; }
.coupon-right { flex: 1; padding: 12px 14px; }
.coupon-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.coupon-desc { font-size: 11px; color: var(--muted); margin-top: 4px; }
.coupon-status { font-size: 11px; color: var(--brand); margin-top: 4px; }

/* v2：地址管理 */
.addr-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.addr-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.addr-text { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.addr-ops { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; }
.addr-ops a.danger { color: var(--danger); }
.oc-tag { font-size: 10px; background: var(--accent-soft); color: var(--brand2); border-radius: 4px; padding: 1px 6px; }
.oc-tag.called { background: var(--danger); color: #fff; }

/* v2：邀请 */
.invite-hero { text-align: center; padding: 20px 0; background: linear-gradient(135deg, var(--brand), var(--brand2)); border-radius: 16px; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.invite-num { font-size: 46px; font-weight: 800; }
.invite-label { font-size: 13px; opacity: .85; margin-top: 4px; }
.invite-sub { font-size: 13px; color: var(--accent); margin-top: 6px; font-weight: 600; }

.toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); background: rgba(0,0,0,.78); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 10px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 80%; }
.toast.show { opacity: 1; }

@media (min-width: 700px) {
  .cat-pane { width: 140px; }
  .p-img { width: 110px; height: 110px; }
}

/* 首页轮播图（后台上传） */
.banner-swiper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 4px;
  margin: 0;
}
.banner-swiper::-webkit-scrollbar { display: none; }
.banner-img {
  flex: 0 0 88%;
  width: 88%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: center;
  box-shadow: 0 4px 14px rgba(62, 42, 24, 0.08);
}

/* ==================== v4 新功能 ==================== */

/* 桌码横幅（扫码点餐） */
.table-banner {
  margin: 12px 12px 0;
  background: var(--accent-soft);
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* 已售罄 */
.product-card.soldout { position: relative; opacity: .65; }
.soldout-mask {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  border-radius: 8px; padding: 6px 16px;
}
.stepper-btn[disabled], .mini-btn[disabled], .promo-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 促销区块（限时秒杀 / 超值套餐 / 猜你喜欢） */
.promo-section {
  margin: 12px;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.promo-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.promo-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.promo-sub { font-size: 11px; color: var(--muted); }
.h-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.h-scroll::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 132px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.promo-card.promo-over { opacity: .55; }
.promo-img { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; background: var(--accent-soft); }
.promo-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.4; min-height: 36px; overflow: hidden; }
.promo-price { color: var(--danger); font-size: 16px; font-weight: 800; margin-top: 4px; }
.promo-price s { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 4px; }
.promo-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.promo-btn { margin-top: 8px; width: 100%; }

.combo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.combo-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.combo-img { width: 100%; height: 110px; object-fit: cover; background: var(--accent-soft); }
.combo-body { padding: 10px; }
.combo-items { font-size: 11px; color: var(--ink2); margin: 4px 0; line-height: 1.5; min-height: 32px; }
.combo-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 6px; flex-wrap: wrap; }

.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rec-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.rec-img { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; background: var(--accent-soft); }
.rec-name { font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 6px; line-height: 1.4; height: 34px; overflow: hidden; }
.rec-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.rec-foot .promo-price { font-size: 13px; margin-top: 0; }
.rec-add {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  font-size: 16px; line-height: 1; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
  transition: transform .1s;
}
.rec-add:active { transform: scale(.9); }

/* 会员等级进度 */
.lv-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; color: var(--ink2); }
.lv-cur { color: var(--brand); font-weight: 700; }
.lv-bar { height: 8px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.lv-bar-inner { height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand2)); border-radius: 4px; transition: width .3s; }
.lv-text { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* 快速下单弹层（秒杀 / 套餐 / 拼团） */
.modal-wide { max-width: 420px; max-height: 86vh; overflow-y: auto; }
.qo-step { width: 28px; height: 28px; border-radius: 50%; border: none; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); transition: transform .1s; }
.qo-step:active { transform: scale(.9); }
.qo-step.plus { background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; }
.qo-step.minus { background: #fff; border: 1px solid var(--line); color: var(--ink2); box-shadow: none; }
.qo-item { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.qo-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--accent-soft); flex-shrink: 0; }
.qo-info { flex: 1; }
.qo-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.qo-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qo-block-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.qo-sum { padding-top: 10px; }

/* 每日签到 */
.checkin-hero {
  text-align: center; padding: 24px 0 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: 16px; color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
.ci-points { font-size: 40px; font-weight: 800; }
.ci-label { font-size: 12px; opacity: .85; margin-top: 2px; }
.ci-days { font-size: 12px; color: var(--accent); margin-top: 8px; font-weight: 600; }

/* 礼品卡购买金额摘要 */
#gc-summary { font-size: 15px; font-weight: 800; color: var(--brand); }

/* 分销推广 */
.dist-hero {
  text-align: center; padding: 20px 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: 16px; color: #fff;
}
.dist-label { font-size: 12px; opacity: .85; }
.dist-code { font-size: 32px; font-weight: 800; letter-spacing: 3px; margin: 6px 0; }
.dist-sub { font-size: 12px; color: var(--accent); font-weight: 600; }
.kv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kv-item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; }
.kv-num { font-size: 15px; font-weight: 800; color: var(--brand); }
.kv-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 拼团详情 */
.gd-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.gd-meta { font-size: 13px; color: var(--ink2); margin-bottom: 8px; }
.gd-members { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gd-member { font-size: 12px; background: var(--accent-soft); color: var(--brand2); border-radius: 14px; padding: 4px 12px; }

/* 发票 / 礼品卡状态色 */
.st-unused, .st-issued { color: var(--success); }
.st-rejected { color: var(--danger); }
