/* /workspace/public/h5/style.css - 移动端黄系商城风格 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2329;
  background: #f5f6f8;
  font-size: 14px;
  line-height: 1.5;
}
html, body, #app { height: 100%; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; outline: none; cursor: pointer; }
input, textarea, select { font-family: inherit; outline: none; }

#app {
  max-width: 480px;
  margin: 0 auto;
  background: #f5f6f8;
  min-height: 100vh;
  position: relative;
  padding-bottom: 70px; /* for bottom nav */
}

/* ------- common ------- */
.container { padding: 12px 16px; }
.card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-16 { font-size: 16px; } .fs-18 { font-size: 18px; } .fs-22 { font-size: 22px; }
.c-9 { color: #8a8f99; } .c-6 { color: #646a73; } .c-red { color: #ff4d4f; } .c-green { color: #22c55e; }
.bold { font-weight: 600; }
.price { color: #ff3b30; font-weight: 700; }
.btn-primary {
  width: 100%;
  height: 48px;
  background: #FFC600;
  color: #1f2329;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255,198,0,0.35);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #ffe680; color: #7a7a7a; box-shadow: none; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; height: 34px; border-radius: 17px;
  background: #fff; border: 1px solid #e5e6eb; color: #1f2329;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  color: #f7a600;
  background: #fff6e0;
  border-radius: 10px;
  margin-right: 6px;
}

.input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e6eb;
  padding: 0 14px;
  font-size: 15px;
  background: #fff;
}
.input:focus { border-color: #FFC600; }

/* top nav bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 48px; background: #fff;
  display: flex; align-items: center; padding: 0 12px;
  border-bottom: 1px solid #f0f1f3;
}
.topbar .back {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #1f2329;
}
.topbar .title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; margin-right: 32px; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8); color: #fff; padding: 12px 20px;
  border-radius: 10px; z-index: 9999;
  max-width: 80%; text-align: center;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* bottom nav */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  max-width: 480px; margin: 0 auto;
  height: 60px; background: #fff; border-top: 1px solid #f0f1f3;
  display: flex; justify-content: space-around; align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #8a8f99; font-size: 11px; gap: 2px;
}
.tabbar .tab.active { color: #FFB000; }
.tabbar .tab .icon { font-size: 22px; line-height: 1; }
.tabbar .tab .label { font-size: 11px; }

/* Redeem — 严格按参考图 1:1 重写 (图 2) */
/* Banner：黄色圆角横幅，主图（已带黄底+袋鼠+漂浮装饰）作为底层铺满，
   上层叠「更省钱 更贴心」手写体白字 + 白色装饰下划线，底部小字云网万店 */
.banner {
  position: relative;
  border-radius: 24px;
  margin: 12px 16px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFCF26 0%, #FFBE00 55%, #FFAE00 100%);
  /* 高度按图2比例，约 2:1 */
  min-height: 220px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 26px rgba(255,174,0,.18);
}
.banner .banner-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.banner h1 {
  position: relative; z-index: 2;
  font-size: 40px; line-height: 1.05;
  margin: 18px 0 0; text-align: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
  font-family: "STKaiti","KaiTi","楷体",-apple-system,"Ma Shan Zheng","ZCOOL KuaiLe",system-ui,sans-serif;
  text-shadow: 0 3px 0 rgba(176,110,0,.2), 0 6px 12px rgba(122,75,0,.22);
  padding-bottom: 12px;
}
/* 「更省钱 更贴心」下面的白色装饰线（略带向左倾斜的手绘感） */
.banner h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 58%;
  height: 5px;
  background: #fff;
  border-radius: 4px;
  opacity: .95;
  box-shadow: 0 2px 5px rgba(122,75,0,.15);
}
/* 主图占位区（在装饰线与底部小字之间留空） */
.banner .spacer {
  flex: 1;
  width: 100%;
  min-height: 110px;
  position: relative; z-index: 1;
}
.banner .sub {
  position: relative; z-index: 2;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.95);
  padding: 6px 0 12px;
  letter-spacing: 1px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(122,75,0,.25);
}

/* 券卡：左图标 + 中间券名/门槛 + 右金额（¥4000 大图），带虚线分隔 + 左右半圆缺口 */
.coupon-card {
  margin: 14px 16px;
  background: #fff;
  border-radius: 20px;
  padding: 18px 18px 18px 18px;
  display: flex; align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
  min-height: 94px;
}
/* 左右半圆缺口 */
.coupon-card::before,
.coupon-card::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: #f5f6f8;
}
.coupon-card::before { left: -8px; }
.coupon-card::after  { right: -8px; }
.coupon-card .logo {
  width: 62px; height: 62px; border-radius: 14px;
  background: #FFCE22;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-right: 14px; flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(255,174,0,.28);
}
.coupon-card .logo svg { width: 32px; height: 32px; }
.coupon-card .info { flex: 1; min-width: 0; }
.coupon-card .info .t {
  font-size: 19px; font-weight: 800; color: #1f2329;
  margin-bottom: 4px;
}
.coupon-card .info .d {
  font-size: 13px; color: #8a8f99;
}
/* 右侧金额：¥+4000 靠右，不换行不压缩，最后一个0 绝对不被切 */
.coupon-card .amount {
  text-align: right; color: #F7B500;
  padding-left: 8px;
  padding-right: 8px;  /* 给右侧留出安全距离，防止 4000 的最后一位贴边被视觉切掉 */
  flex-shrink: 0;      /* 禁止被压缩 */
  min-width: 140px;    /* 硬性最小宽度：¥ + 4000 + 字间距 的安全值 */
  width: auto;
  display: flex; flex-direction: column; align-items: flex-end;
  /* 绝对不允许父容器裁切数字 */
  overflow: visible;
}
.coupon-card .amount .row-top {
  display: flex; align-items: baseline; white-space: nowrap;
  width: 100%; justify-content: flex-end;
  /* 额外保险：数字整串允许向外溢出一点 */
  overflow: visible;
}
.coupon-card .amount .cur {
  font-size: 22px; font-weight: 800; margin-right: 2px;
  color: #F7B500;
}
.coupon-card .amount .num {
  font-size: 40px; font-weight: 900;
  line-height: 1; letter-spacing: 1px;  /* 字间距 1px，让 4 个数字更清晰不挤 */
  color: #F7B500;
  display: inline-block;
  padding: 0 6px 0 0;   /* 右侧额外 6px 内边距，保证最后一个 0 不贴边 */
  overflow: visible;
  text-align: right;
  /* 强制不被裁切 */
  clip-path: none;
  -webkit-clip-path: none;
  mask: none;
}
.coupon-card .amount .thr {
  display: block;
  font-size: 12px; color: #8a8f99; font-weight: 500;
  margin-top: 6px;
  text-align: right;
  padding-right: 2px;
}

.form-card {
  margin: 14px 16px;
  background: #fff;
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.form-card .label { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: #1f2329; }
.form-card .tips { margin-top: 10px; font-size: 12px; color: #8a8f99; }

.info-grid {
  margin: 14px 16px 24px;
  background: #fff;
  border-radius: 20px;
  padding: 16px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.info-grid .item {
  display: flex; align-items: center;
  padding: 4px 6px;
}
/* 红圈白底图标：纯白圆形背景 + 红色细圈 + 红色图标（与参考图1:1对齐） */
.info-grid .item .ic {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff;
  border: 1.5px solid #EA3929;
  display: flex; align-items: center; justify-content: center;
  margin-right: 10px; flex-shrink: 0;
  font-weight: 800;
  color: #EA3929;
  padding: 0;
}
.info-grid .item .ic svg { width: 20px; height: 20px; color: #EA3929; }
.info-grid .item .ic svg * { stroke: #EA3929; fill: #EA3929; }
/* 对于 svg 里只有 circle 背景 + text / path 的情况，强制文字为红色 */
.info-grid .item .ic svg text { fill: #EA3929; stroke: none; }
.info-grid .item .name { font-size: 15px; font-weight: 700; color: #1f2329; }
.info-grid .item .desc { font-size: 12px; color: #8a8f99; line-height: 1.45; }

/* Quick-entry icon grid on H5 home */
.qentry {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; margin: 12px 16px 0; padding: 14px 8px 10px;
  border-radius: 14px; gap: 8px 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.qentry .item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; color: #646a73; font-size: 11px; gap: 6px;
  cursor: pointer; transition: transform 180ms ease; user-select: none; -webkit-tap-highlight-color: transparent;
}
.qentry .item:active { transform: scale(0.93); }
.qentry .item .q {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; line-height: 1;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.qentry .item .q.wx   { background: linear-gradient(135deg,#2ec26a,#07a050); }
.qentry .item .q.or   { background: linear-gradient(135deg,#ffb347,#ff7a3d); }
.qentry .item .q.bl   { background: linear-gradient(135deg,#7aa3ff,#3b82f6); }
.qentry .item .q.pk   { background: linear-gradient(135deg,#ff8ba0,#ef4444); }
.qentry .item .q.gr   { background: linear-gradient(135deg,#6ee7b7,#10b981); }

/* Shop home */
.shop-header {
  padding: 16px; background: #fff;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #f0f1f3;
}
.shop-header .logo {
  width: 50px; height: 70px; border-radius: 0;
  background: transparent; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.shop-header .logo svg { width: 50px; height: 70px; display: block; }
.shop-header .shop-name { font-size: 20px; font-weight: 800; }
.shop-header .shop-meta { font-size: 12px; color: #646a73; margin-top: 6px; }
.shop-header .shop-meta .dot { margin: 0 6px; color: #e5e6eb; }
.shop-header .rating { color: #f7a600; font-weight: 700; margin-right: 4px; }

.tabs {
  display: flex; background: #fff; padding: 0 8px;
  border-bottom: 1px solid #f0f1f3;
}
.tabs .t {
  padding: 12px 14px; font-size: 15px; font-weight: 600;
  color: #646a73; position: relative;
}
.tabs .t.active { color: #1f2329; }
.tabs .t.active::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 3px; border-radius: 2px; background: #FFC600;
}

.coupon-banner {
  margin: 12px 16px; padding: 12px 14px;
  background: linear-gradient(90deg, #fff6e0, #fff1c2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px dashed #f7c100;
}
.coupon-banner .left { display: flex; align-items: center; color: #8a5a00; font-weight: 600; font-size: 13px; flex-wrap: wrap; gap: 4px 0; }
.coupon-banner .left .c-ic {
  width: 26px; height: 26px; border-radius: 6px;
  background: #f7a600; color: #fff; margin-right: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.coupon-banner .arrow { color: #8a5a00; font-size: 16px; }
.coupon-banner .countdown {
  display: inline-flex; align-items: center;
  margin-left: 10px; padding: 2px 8px; border-radius: 10px;
  background: #fff3bf; color: #b45309;
  font-size: 11px; font-weight: 700;
}
.coupon-banner .countdown b {
  font-variant-numeric: tabular-nums;
  color: #ff3b30; margin: 0 2px;
}

/* Redeem success overlay */
.redeem-success-mask {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .25s ease;
}
.redeem-success-card {
  width: 100%; max-width: 360px;
  background: #fff; border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  position: relative; overflow: hidden;
  text-align: center;
}
.redeem-success-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #FFF6D8 0%, transparent 55%);
  z-index: 0; pointer-events: none;
}
.redeem-success-card .icon {
  position: relative; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg,#FFD84B,#FF9A00);
  color: #fff; font-size: 40px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(255,154,0,0.35);
  animation: popIn .45s ease;
}
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  70%{ transform: scale(1.08); opacity: 1; }
  100%{ transform: scale(1); }
}
.redeem-success-card h3 {
  position: relative; z-index: 1;
  margin: 4px 0 2px; font-size: 22px; font-weight: 800; color: #1f2329;
}
.redeem-success-card .sub {
  position: relative; z-index: 1;
  font-size: 12px; color: #8a8f99; margin-bottom: 14px;
}
.redeem-success-card .rc {
  position: relative; z-index: 1;
  margin: 0 0 12px; border-radius: 12px;
  padding: 12px 14px;
  background: #fff8e1; border: 1px dashed #f7c100;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #8a5a00;
}
.redeem-success-card .rc .l { font-weight: 700; }
.redeem-success-card .rc .r { font-weight: 800; color: #ff3b30; font-variant-numeric: tabular-nums; }
.redeem-success-card .timer {
  position: relative; z-index: 1;
  margin-bottom: 14px; padding: 10px 12px; border-radius: 12px;
  background: #fff3bf; color: #b45309;
  font-size: 13px; font-weight: 600;
}
.redeem-success-card .timer b {
  color: #ff3b30; font-weight: 900; font-size: 18px;
  font-variant-numeric: tabular-nums; margin: 0 2px;
}
.redeem-success-card .btn {
  position: relative; z-index: 1;
  width: 100%; height: 46px; border-radius: 23px;
  background: #FFC600; color: #1f2329;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 16px rgba(255,198,0,0.35);
}
.redeem-success-card .btn.go-home { background: #fff; color: #1f2329; border: 1px solid #e5e6eb; box-shadow: none; margin-top: 8px; height: 40px; font-size: 14px; border-radius: 20px; }

.product-list { padding: 4px 16px 20px; }
.product-card {
  display: flex; gap: 12px;
  background: #fff; border-radius: 14px;
  padding: 14px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.product-card .img {
  width: 96px; height: 96px; border-radius: 12px;
  background: linear-gradient(135deg,#f3f4f6,#e5e7eb);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; position: relative;
}
.product-card .img svg { width: 70%; height: 70%; }
.product-card .img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: fadein 300ms ease;
}
@keyframes fadein { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.product-card .meta { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-card .name { font-size: 16px; font-weight: 700; }
.product-card .sub { font-size: 12px; color: #646a73; margin-top: 4px; }
.product-card .tags { margin-top: 4px; }
.product-card .bottom {
  display: flex; justify-content: space-between; align-items: center; margin-top: 6px;
}
.product-card .bottom .price { font-size: 20px; }
.buy-btn {
  height: 34px; padding: 0 18px; border-radius: 17px;
  background: #FFC600; color: #1f2329; font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 8px rgba(255,198,0,0.35);
}

/* Product detail */
.pd-hero {
  background: linear-gradient(135deg,#f9fafb,#eef2ff);
  padding: 20px; text-align: center;
}
.pd-hero .phone {
  width: 220px; height: 220px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 22px; background: transparent;
}
.pd-hero .phone svg { width: 100%; height: 100%; }
.pd-hero .phone img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.pd-info { padding: 16px; background: #fff; }
.pd-info .name { font-size: 20px; font-weight: 800; }
.pd-info .sub { font-size: 13px; color: #646a73; margin-top: 4px; }
.pd-info .price-row { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }

.spec-section { padding: 14px 16px; background: #fff; margin-top: 10px; }
.spec-section .ttl { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.opt-list { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  padding: 8px 14px; border-radius: 10px;
  background: #f5f6f8; font-size: 13px; color: #1f2329;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.opt:active { transform: scale(0.96); }
.opt.active {
  background: #fff6e0; color: #b45309;
  border-color: #FFC600; font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,198,0,0.35);
  animation: optPop .22s ease;
}
@keyframes optPop {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.opt .extra { color: #ff3b30; font-weight: 600; margin-left: 4px; font-size: 12px; }

.summary-card {
  margin: 14px 16px 90px;
  background: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row .k { color: #646a73; }
.summary-row .v { font-weight: 600; }
.summary-pay {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed #e5e6eb; margin-top: 10px; padding-top: 12px;
}
.summary-pay .p { font-size: 22px; font-weight: 800; color: #ff3b30; }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  background: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f1f3;
  display: flex; gap: 12px; align-items: center;
  z-index: 20;
}
.buy-bar .service {
  width: 48px; text-align: center; color: #646a73; font-size: 11px;
}
.buy-bar .service .ic { font-size: 22px; }
.buy-bar .buy {
  flex: 1; height: 44px; border-radius: 22px;
  background: #FFC600; color: #1f2329; font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 14px rgba(255,198,0,0.35);
}

/* Checkout (address + summary) */
.addr-card .ttl { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.addr-card .field { margin-bottom: 12px; }
.addr-card .field label { font-size: 13px; color: #646a73; display: block; margin-bottom: 6px; }
.addr-card textarea.input { height: 80px; padding: 10px 14px; resize: none; }

/* Pay */
.pay-top { text-align: center; padding: 30px 20px 20px; }
.pay-top .amount { font-size: 32px; color: #1f2329; font-weight: 800; }
.pay-top .amount .cur { font-size: 18px; margin-right: 2px; }
.pay-top .no { color: #8a8f99; font-size: 12px; margin-top: 6px; }

.pay-list { margin: 0 16px; background: #fff; border-radius: 14px; overflow: hidden; }
.pay-item {
  display: flex; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid #f0f1f3;
}
.pay-item:last-child { border-bottom: none; }
.pay-item.disabled { opacity: 0.45; }
.pay-item .ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 12px; flex-shrink: 0; overflow: hidden;
  background: #f4f5f7;
}
.pay-item .ic svg { width: 100%; height: 100%; display: block; }
.pay-item .ic.wx { background: #07c160; border-radius: 10px; }
.pay-item .ic.zfb { background: #1677ff; border-radius: 10px; }
.pay-item .ic.bank { background: #fff; border: 1px solid #ececf0; }
.pay-item .name { flex: 1; font-size: 15px; font-weight: 600; }
.pay-item .name .tip { font-size: 11px; color: #8a8f99; font-weight: 400; }
.pay-item .check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #d0d3d9; position: relative; flex-shrink: 0;
}
.pay-item.checked .check { border-color: #FFC600; background: #FFC600; }
.pay-item.checked .check::after {
  content: ''; position: absolute; top: 2px; left: 5px;
  width: 6px; height: 10px; border: 2px solid #fff;
  border-top: none; border-left: none; transform: rotate(45deg);
}

/* Orders */
.order-card {
  background: #fff; border-radius: 14px; margin: 10px 16px; padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.order-card .head { display: flex; justify-content: space-between; align-items: center; }
.order-card .shop { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.order-card .status { font-size: 13px; font-weight: 600; color: #f7a600; }
.order-card .body { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid #f0f1f3; border-bottom: 1px solid #f0f1f3; margin: 10px 0; }
.order-card .body .img {
  width: 70px; height: 70px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,#f3f4f6,#e5e7eb);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.order-card .body .img svg { width: 60%; height: 60%; }
.order-card .body .img img { width: 100%; height: 100%; object-fit: cover; }
.order-card .body .meta { flex: 1; }
.order-card .body .meta .name { font-weight: 600; }
.order-card .body .meta .sub { font-size: 12px; color: #646a73; margin-top: 2px; }
.order-card .foot { display: flex; justify-content: space-between; align-items: center; }
.order-card .foot .price { font-size: 15px; }
.order-card .foot .actions button {
  margin-left: 8px; height: 32px; padding: 0 14px;
  border-radius: 16px; font-size: 13px;
}
.btn-line { background: #fff; color: #1f2329; border: 1px solid #e5e6eb; }
.btn-gold { background: #FFC600; color: #1f2329; font-weight: 700; }

/* Chat - 新版完全按第二张参考图 */
.chat-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  max-width: 480px; margin: 0 auto;
  background: #ffffff; height: 54px;
  display: flex; align-items: center; padding: 0 8px 0 4px;
  border-bottom: 1px solid #ededf0;
}
.chat-header-back {
  width: 36px; height: 36px; color: #1f2329; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-header-center { flex: 1; text-align: center; }
.chat-header-title { font-size: 17px; font-weight: 700; color: #1f2329; line-height: 1.2; }
.chat-header-online {
  margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: #07C160; font-weight: 500;
}
.online-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #07C160; margin-right: 4px;
  box-shadow: 0 0 0 2px rgba(7,193,96,0.15);
}

/* 快捷按钮栏 - 6 个横向滚动 */
.chat-quickbar {
  position: fixed; top: 54px; left: 0; right: 0; z-index: 49;
  max-width: 480px; margin: 0 auto;
  background: #fff; padding: 10px 0 8px;
  border-bottom: 1px solid #f5f5f7;
}
.chat-quick-scroll {
  display: flex; gap: 10px; padding: 0 12px;
  overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chat-quick-scroll::-webkit-scrollbar { display: none; }
.chat-quick-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #f5f6f8;
  color: #555a65;
  border: 1px solid #ececec;
  border-radius: 16px;
  font-size: 12px; line-height: 1.4;
  cursor: pointer; outline: none;
  transition: all 0.15s;
}
.chat-quick-btn:active { background: #e8f8ef; border-color: #07C160; color: #07C160; }

/* 对话区 */
.chat-area {
  padding: 120px 12px 80px;
  min-height: calc(100vh - 140px);
  background: #f4f5f7;
}

/* 消息行 */
.msg-row { display: flex; margin-bottom: 18px; align-items: flex-start; }
.msg-row.me { justify-content: flex-end; }

/* 头像 */
.msg-row .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  margin-right: 8px; flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.msg-row.me .avatar { margin-right: 0; margin-left: 8px; }
.msg-row .avatar svg { width: 100%; height: 100%; display: block; }
.avatar-bot { background: #FFD100; }
.avatar-me { background: #f4f5f7; }

/* 气泡列 */
.msg-col { display: flex; flex-direction: column; max-width: 72%; }
.msg-row.me .msg-col { align-items: flex-end; }

.staff-name {
  font-size: 11px; color: #8a8f99; margin-bottom: 4px; padding-left: 2px;
}

/* 气泡本体 */
.msg {
  max-width: 100%; padding: 10px 14px;
  border-radius: 12px; font-size: 14px; line-height: 1.55;
  word-break: break-word; white-space: pre-wrap;
  background: #fff; color: #1f2329;
  border: 1px solid #ededf0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.msg-row.me .msg {
  background: #1677FF; color: #fff; border: none;
  border-top-right-radius: 2px;
}
.msg-row:not(.me) .msg {
  border-top-left-radius: 2px;
}

/* 底部输入区 */
.chat-input {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 480px; margin: 0 auto;
  background: #fff; border-top: 1px solid #ededf0;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; z-index: 20;
  align-items: center;
}
.chat-input input {
  flex: 1; height: 38px; border-radius: 6px;
  background: #f5f6f8; padding: 0 14px;
  border: 1px solid transparent;
  font-size: 14px; color: #1f2329;
  outline: none;
}
.chat-input input:focus { border-color: #c9e0ff; background: #fff; }

/* 绿色方形"发送"按钮 - 对应第二张图右下角按钮 */
.chat-send-btn {
  min-width: 62px; height: 38px; padding: 0 16px;
  border-radius: 6px;
  background: #07C160; color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-send-btn:active { background: #06ad56; opacity: 0.95; }

/* 旧样式清理占位 */
.chat-transfer-bar, .chat-header-call, .chat-header-hotline, .chat-transfer-btn, .chat-input-btn, .msg-row .time { display: none !important; }

.empty {
  text-align: center; padding: 60px 20px; color: #8a8f99; font-size: 13px;
}
.empty .ic { font-size: 44px; margin-bottom: 10px; opacity: 0.5; }

/* Order detail */
.od-status {
  padding: 20px 16px;
  background: linear-gradient(135deg,#FFC600,#FF9A00);
  color: #fff;
}
.od-status .t { font-size: 18px; font-weight: 800; }
.od-status .d { font-size: 12px; margin-top: 4px; opacity: 0.9; }

.od-section {
  margin: 12px 16px; background: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.od-section .ttl { font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.od-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.od-line .k { color: #646a73; }
.od-addr .name { font-weight: 700; }
.od-addr .phone { margin-left: 10px; color: #646a73; }
.od-addr .full { color: #646a73; margin-top: 4px; font-size: 13px; }
.od-product { display: flex; gap: 10px; }
.od-product .img {
  width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,#f3f4f6,#e5e7eb);
  display: flex; align-items: center; justify-content: center;
}
.od-product .img svg { width: 60%; height: 60%; }
.od-product .name { font-weight: 600; }
.od-product .sub { color: #8a8f99; font-size: 12px; margin-top: 2px; }
