/* ============================================================
 * 全季酒店 · 直销 H5 Demo —— 设计系统
 * 视觉基调：米白 / 浅灰 / 原木 + 竹青点缀（呼应全季「晓山青」的东方留白）
 * ============================================================ */

:root {
  --bg: #F5F3EF;
  --card: #FFFFFF;
  --ink: #2B2A26;
  --ink2: #6E6A61;
  --ink3: #9C978C;
  --line: #E7E3DA;
  --line2: #F0EDE7;
  --brand: #3E5245;
  --brand-soft: #EAF0EB;
  --wood: #B99A6B;
  --gold: #A8813F;
  --danger: #B4483C;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 2px 10px rgba(43, 42, 38, .05);
}

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

html, body {
  margin: 0; padding: 0;
  background: #E9E6E0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* 关掉 iOS / 微信 WebView 的自动字号放大，保证设计稿字号真实生效 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 桌面预览时给一个手机宽度容器 */
body { display: flex; justify-content: center; }
.phone {
  width: 100%; max-width: 430px; min-height: 100vh;
  background: var(--bg); position: relative; overflow-x: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, .08);
}
.page { padding-bottom: 84px; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------------- 顶部 ---------------- */
.hd {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 14px;
  background: rgba(245, 243, 239, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line2);
}
.hd .back { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.hd .back svg { width: 20px; height: 20px; }
.hd .title { font-size: 17px; font-weight: 600; letter-spacing: .3px; }
.hd .spacer { flex: 1; }

.lang-tg {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--ink2);
  font-size: 13px; background: #fff;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; background: #DDD8CF; }
.hero-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.hero-swipe::-webkit-scrollbar { display: none; }
.hero-swipe > div { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.hero-swipe img { width: 100%; height: 210px; object-fit: cover; }
.hero-cap {
  position: absolute; left: 14px; bottom: 12px;
  color: #fff; font-size: 13px; letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.hero-over {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.42) 100%);
  pointer-events: none;
}
.hotel-name {
  position: absolute; left: 16px; top: 14px; color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.hotel-name h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 2px; }
.hotel-name p { margin: 2px 0 0; font-size: 13px; opacity: .9; }

/* ---------------- 通用卡片 ---------------- */
.card {
  background: var(--card); border-radius: var(--radius);
  margin: 10px 12px; overflow: hidden; box-shadow: var(--shadow);
}
.card.pad { padding: 14px; }
.sec-title {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 14px 8px; font-size: 16px; font-weight: 600; letter-spacing: .4px;
}
.sec-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--brand);
}
.muted { color: var(--ink2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--ink3); }
.divider { height: 1px; background: var(--line2); margin: 10px 0; }

/* ---------------- 日期条 ---------------- */
.datebar {
  display: flex; align-items: center; margin: -18px 12px 0; position: relative; z-index: 5;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 14px; cursor: pointer;
}
.datebar .col { flex: 1; }
.datebar .col small { display: block; font-size: 12px; color: var(--ink3); }
.datebar .col b { font-size: 16px; font-weight: 600; }
.datebar .mid { padding: 0 12px; color: var(--ink3); font-size: 13px; }
.datebar .arrow { color: var(--brand); font-size: 20px; margin-left: 6px; }
.nights-pill {
  display: inline-block; padding: 1px 8px; margin: 0 6px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 20px; font-size: 12px;
}

/* ---------------- 房型卡片 ---------------- */
.room {
  display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line2);
}
.room:last-child { border-bottom: none; }
.room-img {
  width: 104px; height: 96px; border-radius: 10px; overflow: hidden; flex: 0 0 auto;
  background: #EFECE6;
}
.room-img img { width: 100%; height: 100%; object-fit: cover; }
.room-body { flex: 1; min-width: 0; }
.room-body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.room-meta { font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.room-meta span + span::before { content: ' · '; color: var(--ink3); }
.room-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.room-price { display: flex; align-items: flex-end; justify-content: space-between; }
.price { color: var(--gold); font-weight: 600; }
.price b { font-size: 20px; }
.price i { font-style: normal; font-size: 12px; color: var(--ink3); font-weight: 400; }
.stock-left { font-size: 12px; color: var(--danger); }
.room.sold .room-img { filter: grayscale(1); opacity: .55; }

.tag {
  font-size: 12px; padding: 1px 6px; border-radius: 4px;
  background: var(--line2); color: var(--ink2);
}
.tag.green { background: var(--brand-soft); color: var(--brand); }
.tag.gold { background: #FBF3E4; color: var(--gold); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: block; width: 100%; border: none; cursor: pointer;
  padding: 12px; border-radius: 10px; font-size: 16px; font-weight: 600;
  background: var(--line2); color: var(--ink); text-align: center;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn.ghost.block { margin-top: 8px; }
.btn.danger { background: #FBF0EE; color: var(--danger); margin-top: 8px; }
.btn.sm { padding: 7px 12px; font-size: 14px; width: auto; display: inline-block; }
.btn[disabled] { opacity: .45; }

.btnbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  max-width: 430px; margin: 0 auto;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line2);
}
.btnbar .sum { flex: 1; line-height: 1.3; }
.btnbar .sum i { font-style: normal; font-size: 12px; color: var(--ink3); display: block; }
.btnbar .sum b { font-size: 21px; color: var(--gold); }
.btnbar .btn { width: auto; padding: 12px 26px; }

/* ---------------- 表单 ---------------- */
.field { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.field:last-child { border-bottom: none; }
.field label { width: 84px; flex: 0 0 auto; color: var(--ink2); font-size: 14px; }
.field input, .field select, .field textarea {
  flex: 1; border: none; outline: none; background: transparent;
  /* 必须 >= 16px：小于 16px 时 iOS / 微信会在聚焦时自动放大整页 */
  font-size: 16px; color: var(--ink); font-family: inherit; width: 100%;
}
.field textarea { resize: none; height: 44px; }
.field input::placeholder { color: #C3BFB6; }

/* 价格明细 */
.rows { padding: 4px 14px 12px; }
.row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 600; }
.row.total b { color: var(--gold); font-size: 20px; }

/* ---------------- 订单 ---------------- */
.tabs { display: flex; gap: 18px; padding: 12px 14px 6px; overflow-x: auto; }
.tabs button {
  border: none; background: none; padding: 4px 0; font-size: 15px;
  color: var(--ink2); position: relative; white-space: nowrap;
}
.tabs button.on { color: var(--ink); font-weight: 600; }
.tabs button.on::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -4px; width: 18px; height: 2px; border-radius: 2px; background: var(--brand);
}
.order-card { background: var(--card); border-radius: var(--radius); margin: 10px 12px; padding: 14px; box-shadow: var(--shadow); }
.order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-no { font-size: 12px; color: var(--ink3); }
.st { font-size: 13px; padding: 2px 8px; border-radius: 20px; background: var(--line2); color: var(--ink2); }
.st.PAID { background: var(--brand-soft); color: var(--brand); }
.st.PENDING { background: #FBF3E4; color: var(--gold); }
.st.CANCELLED, .st.EXPIRED { background: #F2F0EC; color: var(--ink3); }
.st.COMPLETED, .st.CHECKED_IN { background: var(--brand-soft); color: var(--brand); }
.order-main { display: flex; gap: 12px; }
.order-main img { width: 74px; height: 74px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.order-main .oi { flex: 1; }
.order-main h3 { margin: 0; font-size: 16px; }
.order-main .sub { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.order-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.order-foot .amt { color: var(--gold); font-weight: 600; }

.voucher {
  margin-top: 12px; padding: 14px; border-radius: 10px;
  background: var(--brand-soft); text-align: center;
}
.voucher small { display: block; font-size: 12px; color: var(--brand); letter-spacing: 2px; }
.voucher b { font-size: 28px; letter-spacing: 4px; color: var(--brand); font-variant-numeric: tabular-nums; }

/* ---------------- 支付 ---------------- */
.pay-amount { text-align: center; padding: 26px 0 20px; }
.pay-amount small { color: var(--ink3); font-size: 13px; }
.pay-amount b { display: block; font-size: 38px; color: var(--ink); margin-top: 6px; font-weight: 600; }
.pay-amount b i { font-size: 24px; font-style: normal; }
.pay-wx { display: flex; align-items: center; gap: 10px; padding: 14px; }
.pay-wx .dot { width: 30px; height: 30px; border-radius: 8px; background: #2AAE67; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.countdown { text-align: center; font-size: 13px; color: var(--ink2); padding: 4px 0 12px; }
.countdown b { color: var(--danger); font-variant-numeric: tabular-nums; }

/* ---------------- 员工工作台 ---------------- */
.kpi { display: flex; gap: 10px; margin: 10px 12px; }
.kpi .box { flex: 1; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.kpi .box small { display: block; font-size: 12px; color: var(--ink3); }
.kpi .box b { font-size: 22px; font-weight: 600; color: var(--ink); }
.kpi .box b.gold { color: var(--gold); }

.qrbox { text-align: center; padding: 16px; }
.qrbox .qr { display: inline-block; padding: 10px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.qrbox .qr img, .qrbox .qr canvas { display: block; width: 150px; height: 150px; }
.qrbox p { margin: 10px 0 0; font-size: 13px; color: var(--ink3); }

.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.list-item:last-child { border-bottom: none; }
.list-item .li-main { min-width: 0; }
.list-item .li-main b { display: block; font-size: 15px; font-weight: 500; }
.list-item .li-main small { font-size: 12px; color: var(--ink3); }
.list-item .li-amt { font-weight: 600; color: var(--gold); }
.list-item .li-amt.invalid { color: var(--ink3); text-decoration: line-through; }

.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.rank-row .no { width: 20px; height: 20px; border-radius: 50%; background: var(--line2); color: var(--ink2); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.rank-row .no.top { background: var(--gold); color: #fff; }
.rank-row .nm { flex: 1; font-size: 14px; }
.rank-row .vl { font-size: 14px; color: var(--ink2); }

/* ---------------- 看板 ---------------- */
.bar-row { padding: 8px 14px; }
.bar-row .bl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.bar { height: 8px; border-radius: 6px; background: var(--line2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.bar > i.gold { background: var(--gold); }

/* ---------------- 底部导航 / 弹层 / Toast ---------------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; max-width: 430px; margin: 0 auto;
  display: flex; background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line2); backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1; padding: 8px 0 9px; text-align: center; color: var(--ink3); font-size: 12px;
}
.tabbar .tab svg { width: 21px; height: 21px; display: block; margin: 0 auto 2px; }
.tabbar .tab.on { color: var(--brand); }

.sheet-mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(30, 28, 25, .38);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.sheet-mask.in { opacity: 1; }
.sheet {
  width: 100%; max-width: 430px; background: #fff;
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(16px); transition: transform .22s;
  max-height: 84vh; overflow-y: auto;
}
.sheet-mask.in .sheet { transform: translateY(0); }
.sheet-hd { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.sheet-hd .sheet-x { font-style: normal; color: var(--ink3); cursor: pointer; padding: 4px; }
.sheet-bd { font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 10px);
  background: rgba(43, 42, 38, .9); color: #fff; font-size: 14px;
  padding: 9px 18px; border-radius: 22px; z-index: 80;
  opacity: 0; pointer-events: none; transition: all .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 演示控制台入口：演示时的主要操作入口，做得显眼但只占一角；可拖拽、位置记忆 */
.demo-fab {
  position: fixed; right: 10px; bottom: 106px; z-index: 55;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: .5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  box-shadow: 0 6px 20px rgba(62, 82, 69, .42);
  border: 2px solid rgba(255, 255, 255, .9);
  cursor: pointer; user-select: none; touch-action: none;
  transition: transform .18s, background .2s;
}
.demo-fab:active { transform: scale(.94); }
.demo-fab:hover, .demo-fab:focus { background: #2F4036; }
.demo-fab b { font-size: 13px; font-weight: 500; line-height: 1; }
.demo-fab span { font-size: 9px; opacity: .8; line-height: 1; letter-spacing: 0; }
/* 呼吸光环：提示"这里可以点"，首次进入更明显 */
.demo-fab::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--brand); opacity: 0;
  animation: fabPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0%   { transform: scale(.82); opacity: .65; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-fab::after { animation: none; }
}

/* 首次进入的气泡提示：一句话说明这个按钮的作用 */
.demo-hint {
  position: fixed; z-index: 56; width: 196px;
  padding: 9px 26px 10px 12px; border-radius: 10px;
  background: #fff; color: var(--ink);
  font-size: 13px; line-height: 1.45;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(43, 42, 38, .2);
  animation: hintIn .28s ease-out;
}
.demo-hint::after {
  content: ''; position: absolute; right: -6px; top: 50%; margin-top: -6px;
  width: 11px; height: 11px; background: #fff;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(-45deg);
}
.demo-hint b { display: block; font-weight: 400; }
.demo-hint .dh-x {
  position: absolute; right: 4px; top: 3px; padding: 2px 5px;
  color: var(--ink3); font-size: 13px; line-height: 1; cursor: pointer;
}
@keyframes hintIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 演示说明（控制台顶部） */
.demo-guide {
  background: var(--brand-soft); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px;
}
.demo-guide h4 {
  margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--brand);
}
.demo-guide ul { margin: 0; padding: 0; list-style: none; }
.demo-guide li {
  font-size: 13px; color: #33503F; line-height: 1.65;
  padding-left: 0; margin-bottom: 2px;
}
.demo-guide .dg-note {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(62, 82, 69, .2);
  font-size: 12px; color: #4A6B58;
}

/* ============================================================
 * 微信内置浏览器适配
 * 微信顶部自带标题栏与返回键；页面里再放一条同款标题栏会重复。
 * 这里让自定义头部"融合"进原生栏：去掉重复标题与分割线，背景与页面一致。
 * ============================================================ */
html.in-wechat .hd {
  height: 44px;
  background: var(--bg);
  border-bottom-color: transparent;
  backdrop-filter: none;
}
html.in-wechat .hd .title { display: none; }
html.in-wechat .page { padding-top: 2px; }

/* 日期选择器 */
.dp-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.dp-head small { display: block; font-size: 12px; color: var(--ink3); }
.dp-head b { font-size: 17px; }
.dp-arrow { color: var(--ink3); }
.dp-tip { font-size: 12px; color: var(--ink3); padding-bottom: 10px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 14px; }
.dcell {
  border-radius: 8px; padding: 7px 0; text-align: center; cursor: pointer;
  border: 1px solid transparent; background: var(--line2);
}
.dcell b { display: block; font-size: 15px; font-weight: 500; }
.dcell span { font-size: 11px; color: var(--ink3); }
.dcell.wk b { color: var(--gold); }
.dcell.sel { background: var(--brand); border-color: var(--brand); }
.dcell.sel b, .dcell.sel span { color: #fff; }
.dcell.in-range { background: var(--brand-soft); }
.dcell.dis { opacity: .35; }

/* 分段控件 / 下拉 */
.dc-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.dc-row label { font-size: 14px; color: var(--ink2); }
.dc-row select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 14px; background: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 6px 12px; font-size: 13px; color: var(--ink2); }
.seg button.on { background: var(--brand); color: #fff; }
.dc-note { font-size: 13px; color: var(--ink3); padding: 10px 0 4px; }
.dc-note b { color: var(--brand); }

/* 海报 */
.poster-wrap { padding: 14px; text-align: center; }
.poster-wrap canvas,
.poster-wrap img {
  display: block; margin: 0 auto;
  width: 100%; max-width: 340px; height: auto;
  border-radius: 12px; box-shadow: 0 6px 22px rgba(43, 42, 38, .13);
}
/* 微信/移动端要靠长按保存，必须允许系统长按菜单与选择 */
.poster-wrap img {
  -webkit-touch-callout: default;
  -webkit-user-select: auto; user-select: auto;
  -webkit-user-drag: none;
}

/* 状态条 */
.notice {
  margin: 10px 12px; padding: 10px 12px; border-radius: 10px;
  background: #FBF3E4; color: #8A6A2F; font-size: 13px;
}
.notice.plain { background: var(--line2); color: var(--ink2); }

/* ============================================================
 * 优惠券票券样式
 * ============================================================ */
.ticket {
  display: flex; align-items: stretch;
  background: var(--card); border-radius: var(--radius);
  margin: 10px 12px; overflow: hidden; box-shadow: var(--shadow);
}
.ticket .tk-left {
  width: 108px; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 6px; text-align: center;
}
.ticket .tk-left .amt { font-size: 28px; font-weight: 600; line-height: 1.1; }
.ticket .tk-left .amt i { font-size: 15px; font-style: normal; font-weight: 500; }
.ticket .tk-left .cond { font-size: 11px; margin-top: 4px; opacity: .8; }
.ticket.gold .tk-left { background: #FBF3E4; color: var(--gold); }
.ticket.green .tk-left { background: var(--brand-soft); color: var(--brand); }
.ticket.blue .tk-left { background: #E6F1FB; color: #185FA5; }
.ticket .tk-right {
  flex: 1; min-width: 0; padding: 12px 12px 12px 14px;
  border-left: 1px dashed var(--line); position: relative;
}
.ticket .tk-right::before, .ticket .tk-right::after {
  content: ''; position: absolute; left: -7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg);
}
.ticket .tk-right::before { top: -7px; }
.ticket .tk-right::after { bottom: -7px; }
.ticket .tk-title { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.ticket .tk-sub { font-size: 12px; color: var(--ink2); }
.ticket .tk-meta { font-size: 11px; color: var(--ink3); margin-top: 6px; }
.ticket .tk-act {
  display: flex; align-items: center; padding-right: 12px; flex: 0 0 auto;
}
.ticket.off { opacity: .5; filter: grayscale(.85); }
.ticket .tk-badge {
  position: absolute; right: 10px; top: 10px;
  font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: var(--gold); color: #fff;
}
.ticket .tk-badge.green { background: var(--brand); }
.ticket .tk-badge.blue { background: #185FA5; }

/* 领券条（首页） */
.coupon-strip {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 12px; padding: 12px 14px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  cursor: pointer;
}
.coupon-strip .cs-icon {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  background: #FBF3E4; color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
}
.coupon-strip .cs-main { flex: 1; min-width: 0; }
.coupon-strip .cs-main b { display: block; font-size: 15px; }
.coupon-strip .cs-main small { font-size: 12px; color: var(--ink3); }

/* 选购券（下单页） */
.coupon-pick {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line2); cursor: pointer;
}
.coupon-pick.off { opacity: .45; }
.coupon-pick .cp-l { min-width: 0; }
.coupon-pick .cp-l b { display: block; font-size: 14px; font-weight: 500; }
.coupon-pick .cp-l small { font-size: 12px; color: var(--ink3); }
.coupon-pick .cp-r { font-size: 15px; font-weight: 600; color: var(--gold); flex: 0 0 auto; }
.coupon-pick.on { background: #FDFAF3; }
.coupon-pick .cp-check { color: var(--brand); font-size: 15px; margin-left: 8px; }

/* ============================================================
 * 储值卡
 * ============================================================ */
.cd {
  background: var(--card); border-radius: var(--radius);
  margin: 10px 12px; overflow: hidden; box-shadow: var(--shadow);
}
.cd-top { padding: 16px 16px 12px; position: relative; }
.cd-top .hot {
  position: absolute; right: 14px; top: 14px;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--gold); color: #fff;
}
.cd-top h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.cd-top .sub { font-size: 13px; color: var(--ink2); }
.cd-price { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.cd-price b { font-size: 28px; color: var(--gold); font-weight: 600; }
.cd-price span { font-size: 13px; color: var(--ink3); }
.cd-gain {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 4px;
  background: #FBF3E4; color: var(--gold); font-size: 12px;
}
.cd-benefits { padding: 0 16px 4px; }
.cd-benefits li {
  list-style: none; font-size: 13px; color: var(--ink2);
  padding: 5px 0 5px 16px; position: relative;
}
.cd-benefits li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.cd-benefits { margin: 0; }
.cd-buy { padding: 10px 16px 16px; }

/* 我的卡 */
.mycards { display: flex; gap: 10px; padding: 10px 12px; overflow-x: auto; }
.mycards::-webkit-scrollbar { display: none; }
.mycard {
  flex: 0 0 auto; width: 168px; border-radius: 14px; padding: 14px;
  background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(62, 82, 69, .25);
}
.mycard.times { background: #7A6A4F; }
.mycard .mc-name { font-size: 13px; opacity: .85; }
.mycard .mc-main { font-size: 26px; font-weight: 600; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.mycard .mc-main i { font-size: 13px; font-style: normal; font-weight: 400; opacity: .85; }
.mycard .mc-sub { font-size: 11px; opacity: .75; }
.mycard.expired { opacity: .5; }

/* ============================================================
 * 消息中心
 * ============================================================ */
.msg {
  display: flex; gap: 12px; padding: 14px;
  border-bottom: 1px solid var(--line2);
}
.msg:last-child { border-bottom: none; }
.msg .mi {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--line2); color: var(--ink2); font-size: 14px;
}
.msg.ok .mi { background: var(--brand-soft); color: var(--brand); }
.msg.gift .mi { background: #FBF3E4; color: var(--gold); }
.msg.card .mi { background: #E6F1FB; color: #185FA5; }
.msg.coin .mi { background: #FBF3E4; color: var(--gold); }
.msg .mb { flex: 1; min-width: 0; }
.msg .mb b { display: block; font-size: 15px; font-weight: 500; }
.msg .mb p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.6; }
.msg .mb small { display: block; font-size: 11px; color: var(--ink3); margin-top: 6px; }
.msg.unread .mb b::after {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger); margin-left: 6px; vertical-align: middle;
}

/* 红点 */
.dot-badge {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 11px; text-align: center; vertical-align: middle;
}

/* 支付方式选择 */
.payopt {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border-bottom: 1px solid var(--line2); cursor: pointer;
}
.payopt:last-child { border-bottom: none; }
.payopt .po-i {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #2AAE67; color: #fff; font-size: 14px;
}
.payopt .po-i.card { background: var(--brand); }
.payopt .po-b { flex: 1; min-width: 0; }
.payopt .po-b b { display: block; font-size: 15px; font-weight: 500; }
.payopt .po-b small { font-size: 12px; color: var(--ink3); }
.payopt .po-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line);
  flex: 0 0 auto; position: relative;
}
.payopt.on .po-radio { border-color: var(--brand); }
.payopt.on .po-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand);
}
.payopt.off { opacity: .45; }

/* 金额高亮块 */
.amount-hero { text-align: center; padding: 22px 16px 6px; }
.amount-hero small { color: var(--ink3); font-size: 13px; }
.amount-hero b { display: block; font-size: 34px; font-weight: 600; margin-top: 4px; }
.amount-hero b i { font-size: 22px; font-style: normal; }
.amount-hero .save {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 20px;
  background: #FBF3E4; color: var(--gold); font-size: 13px;
}
