/* ============================================================
   台球套餐竞拍系统 · H5 前端样式（白色明亮主题）
   ============================================================ */

:root {
  --bg: #f4f7f5;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-soft: #f7faf8;
  --line: rgba(18, 60, 44, 0.08);
  --line-strong: rgba(18, 60, 44, 0.16);
  --text: #16241e;
  --text-dim: #4f6659;
  --text-mute: #8b9d94;
  --green: #10b768;
  --green-d: #0a8c50;
  --green-soft: rgba(16, 183, 104, 0.10);
  --gold: #c98a12;
  --gold-d: #a8710a;
  --gold-soft: rgba(201, 138, 18, 0.10);
  --danger: #e0483f;
  --warn: #d98324;
  --radius: 16px;
  --radius-lg: 22px;
  --tabbar-h: 58px;
  --shadow: 0 6px 22px rgba(18, 60, 44, 0.07);
  --shadow-lg: 0 14px 38px rgba(18, 60, 44, 0.13);
}

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

html, body { min-height: 100%; background: var(--bg); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(120% 46% at 10% -6%, rgba(16, 183, 104, 0.10) 0%, rgba(244, 247, 245, 0) 62%),
    radial-gradient(90% 38% at 96% 2%, rgba(201, 138, 18, 0.08) 0%, rgba(244, 247, 245, 0) 58%),
    var(--bg);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------------- 启动加载 ---------------- */
.boot {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; color: var(--text-mute); font-size: 13px;
}
.boot-ball {
  width: 68px; height: 68px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 34% 28%, #6ee6a9 0%, #12a763 46%, #0a6b3d 100%);
  box-shadow: 0 12px 30px rgba(16, 183, 104, 0.28), inset -7px -9px 18px rgba(0, 0, 0, 0.28), inset 6px 7px 14px rgba(255, 255, 255, 0.45);
  animation: bootSpin 1.5s cubic-bezier(.6,.05,.35,1) infinite;
}
.boot-ball::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px;
  border-radius: 50%; background: #ffffff; box-shadow: inset 0 2px 6px rgba(0,0,0,.22);
}
.boot-ball span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 2; font-size: 14px; font-weight: 700; color: #16241e;
}
@keyframes bootSpin { 0% { transform: rotate(0) } 50% { transform: rotate(180deg) } 100% { transform: rotate(360deg) } }

/* ---------------- 通用容器 ---------------- */
.app-shell { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
.app-shell.no-tabbar { padding-bottom: 0; }
.page-pad { padding: 0 15px; }

.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------- 顶部栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px 10px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 60, 44, 0.05);
}
.topbar .brand { flex: 1; min-width: 0; }
.topbar .brand h1 {
  font-size: 17px; font-weight: 700; letter-spacing: .5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 7px;
}
.topbar .brand h1::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--green), var(--gold));
}
.topbar .brand p { font-size: 10.5px; color: var(--text-mute); letter-spacing: 2px; text-transform: uppercase; }
.topbar .avatar-btn {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(18, 60, 44, .14);
}
.topbar .avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* 公告 */
.notice-bar {
  margin: 10px 15px 2px; padding: 9px 12px; border-radius: 12px;
  display: flex; align-items: center; gap: 8px;
  background: var(--gold-soft); border: 1px solid rgba(201, 138, 18, 0.18);
  font-size: 12.5px; color: #8a5e08; overflow: hidden;
}
.notice-bar .ico { flex: none; font-size: 13px; }
.notice-bar .txt { flex: 1; overflow: hidden; white-space: nowrap; }
.notice-bar .txt span { display: inline-block; padding-left: 100%; animation: marquee 16s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0) } 100% { transform: translateX(-100%) } }

/* ---------------- 轮播 ---------------- */
.banner-wrap { margin: 12px 15px 4px; }
.banner-scroll {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.banner-scroll::-webkit-scrollbar { display: none; }
.banner-scroll a { flex: none; width: 100%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner-scroll img { width: 100%; height: 132px; object-fit: cover; }

/* ---------------- 标签栏 ---------------- */
.tabs {
  display: flex; gap: 8px; padding: 14px 15px 14px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab {
  flex: none; padding: 8px 18px; border-radius: 30px; font-size: 13.5px; color: var(--text-dim);
  background: #fff; border: 1px solid var(--line); transition: .22s; white-space: nowrap;
}
.tabs .tab.active {
  color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #17c479, var(--green-d));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(16, 183, 104, 0.28);
}

/* ---------------- 竞拍卡片 ---------------- */
.card-list { display: flex; flex-direction: column; gap: 14px; padding: 0 15px 20px; }

.auction-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
}
.auction-card:active { transform: scale(.985); box-shadow: var(--shadow-lg); }
.auction-card .cover { position: relative; height: 158px; overflow: hidden; background: #e8efeb; }
.auction-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.auction-card .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 9, .16) 0%, rgba(4, 12, 9, .02) 50%, rgba(4, 12, 9, .42) 100%);
}
.auction-card .badge-hours {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: #fff; color: var(--green-d);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}
.auction-card .badge-status {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .4);
}
.badge-status.ing { background: rgba(16, 183, 104, .9); color: #fff; }
.badge-status.upcoming { background: rgba(233, 168, 32, .92); color: #fff; }
.badge-status.end { background: rgba(90, 108, 100, .82); color: #fff; }

.auction-card .body { padding: 2px 14px 14px; position: relative; z-index: 2; margin-top: -16px; background: var(--card); border-radius: 18px 18px 0 0; }
.auction-card .title { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.auction-card .subtitle { font-size: 12px; color: var(--text-mute); margin-top: 3px; height: 20px; overflow: hidden; }

.auction-card .price-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.price-now { display: flex; align-items: baseline; gap: 2px; }
.price-now .sym { font-size: 14px; font-weight: 700; color: var(--gold); }
.price-now .num {
  font-size: 27px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
  background: linear-gradient(92deg, #e5a91f, var(--gold-d) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-market { font-size: 12px; color: var(--text-mute); text-decoration: line-through; padding-bottom: 3px; }
.tag-discount {
  font-size: 11px; font-weight: 700; color: #fff; padding: 2px 7px; border-radius: 6px;
  background: linear-gradient(135deg, #ea4f45, #c93b32); margin-bottom: 3px;
}

.auction-card .foot {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed var(--line-strong);
}
.auction-card .foot .meta { flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-mute); }
.auction-card .foot .meta b { color: var(--text-dim); font-weight: 600; }

.btn-bid {
  flex: none; padding: 9px 22px; border-radius: 30px; font-size: 13.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #17c479, var(--green-d));
  box-shadow: 0 8px 18px rgba(16, 183, 104, 0.26);
  transition: .2s;
}
.btn-bid:active { transform: scale(.94); }
.btn-bid.disabled { background: #eef2f0; color: var(--text-mute); box-shadow: none; }

/* 倒计时 */
.countdown { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.countdown .cd-label { font-size: 11.5px; color: var(--text-mute); }
.countdown .cd-time { font-size: 13px; font-weight: 800; color: var(--green-d); letter-spacing: .4px; }
.countdown .cd-time.urgent { color: var(--danger); animation: pulse 1s ease-in-out infinite; }
.countdown .cd-time.muted { color: var(--text-mute); font-weight: 500; letter-spacing: 0; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .5 } }

/* ---------------- 详情页 ---------------- */
.hero { position: relative; height: 250px; overflow: hidden; background: #e8efeb; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 12, .28) 0%, rgba(6, 16, 12, .04) 40%, rgba(6, 16, 12, .34) 100%);
}
.hero .nav-back, .topbar .nav-back {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(18, 60, 44, .08);
  font-size: 17px; color: var(--text); box-shadow: 0 3px 10px rgba(18, 60, 44, .12); flex: none;
}
.hero .nav-back { position: absolute; left: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 5; }

.detail-body { position: relative; margin-top: -46px; z-index: 3; padding: 0 15px 190px; }
.detail-head {
  background: var(--card); border-radius: var(--radius-lg); padding: 18px 16px 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.detail-head h2 { font-size: 19px; font-weight: 800; letter-spacing: .2px; }
.detail-head .sub { font-size: 12.5px; color: var(--text-mute); margin-top: 5px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.chip {
  padding: 4px 11px; border-radius: 20px; font-size: 11.5px; color: var(--green-d);
  background: var(--green-soft); border: 1px solid rgba(16, 183, 104, 0.16);
}
.chip.gold { color: var(--gold-d); background: var(--gold-soft); border-color: rgba(201, 138, 18, 0.2); }

.bid-panel {
  margin-top: 14px; padding: 18px 16px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.bid-panel .row-price { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bid-panel .label { font-size: 12px; color: var(--text-mute); letter-spacing: .5px; }
.bid-panel .big-price {
  font-size: 34px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -1px;
  background: linear-gradient(92deg, #e5a91f, var(--gold-d) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bid-panel .big-price .sym { font-size: 18px; }
.bid-panel .leader { font-size: 12px; color: var(--text-dim); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.bid-panel .leader img { width: 20px; height: 20px; border-radius: 50%; }
.bid-panel .cd-side { text-align: right; flex: none; }
.bid-panel .cd-big { display: flex; gap: 4px; align-items: center; justify-content: flex-end; margin-top: 7px; }
.bid-panel .cd-block {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 5px 7px; border-radius: 9px;
  background: var(--green-soft); border: 1px solid rgba(16, 183, 104, 0.18);
}
.bid-panel .cd-block b {
  font-size: 16px; font-weight: 800; color: var(--green-d);
  font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.5px;
}
.bid-panel .cd-block i { font-size: 9.5px; font-style: normal; color: var(--green-d); opacity: .8; }

/* 出价输入 + 提交按钮：分两行，避免窄屏被挤压变形 */
.bid-input-row { display: block; margin-top: 16px; }
.bid-input-wrap {
  display: flex; align-items: center; gap: 6px;
  width: 100%; min-width: 0; box-sizing: border-box;
  padding: 0 14px; height: 52px; border-radius: 14px;
  background: var(--card-soft); border: 1.5px solid var(--line-strong);
}
.bid-input-wrap:focus-within { border-color: var(--green); background: #fff; }
.bid-input-wrap .sym { flex: none; color: var(--gold); font-weight: 700; font-size: 17px; }
.bid-input-wrap input {
  flex: 1 1 0; min-width: 0; width: 100%; height: 100%;
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.bid-input-row .btn-primary-lg { width: 100%; margin-top: 10px; height: 48px; font-size: 15px; }
.btn-primary-lg {
  height: 50px; padding: 0 22px; border-radius: 14px; font-size: 15.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #17c479, var(--green-d));
  box-shadow: 0 10px 22px rgba(16, 183, 104, 0.26); transition: .2s;
  white-space: nowrap; flex: none;
}
.btn-primary-lg:active { transform: scale(.97); }
.btn-primary-lg:disabled { background: #eef2f0; color: var(--text-mute); box-shadow: none; }

.quick-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.quick-btn {
  padding: 7px 14px; border-radius: 10px; font-size: 12.5px; color: var(--text-dim);
  background: var(--card-soft); border: 1px solid var(--line); transition: .2s;
}
.quick-btn:active { background: var(--green-soft); color: var(--green-d); border-color: rgba(16, 183, 104, .3); }

/* 悬浮底栏 */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(18, 60, 44, .06);
}
.bottom-bar .info { flex: 1; min-width: 0; }
.bottom-bar .info .k { font-size: 11px; color: var(--text-mute); }
.bottom-bar .info .v { font-size: 19px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------------- 内容区块 ---------------- */
.section { margin-top: 18px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.section-title::before { content: ""; width: 3.5px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--green), var(--gold)); }

.inner-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.inner-tabs::-webkit-scrollbar { display: none; }
.inner-tabs .it { padding: 10px 14px; font-size: 13.5px; color: var(--text-mute); position: relative; white-space: nowrap; }
.inner-tabs .it.active { color: var(--text); font-weight: 700; }
.inner-tabs .it.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.bid-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.bid-item:last-child { border-bottom: none; }
.bid-item img { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.bid-item .who { flex: 1; min-width: 0; }
.bid-item .who .n { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bid-item .who .t { font-size: 11px; color: var(--text-mute); }
.bid-item .amt { font-size: 15px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.bid-item .flag { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.flag.lead { background: var(--green-soft); color: var(--green-d); }
.flag.me { background: var(--gold-soft); color: var(--gold-d); }
.flag.warn { background: rgba(217, 131, 36, .12); color: var(--warn); }

.rich-text { font-size: 13.5px; color: var(--text-dim); line-height: 2; white-space: pre-wrap; word-break: break-word; }
.rich-text p { margin-bottom: 8px; }

.empty { text-align: center; padding: 54px 20px; color: var(--text-mute); font-size: 13px; }
.empty .ico { font-size: 40px; opacity: .3; margin-bottom: 12px; }

.skeleton {
  height: 168px; border-radius: var(--radius-lg); margin-bottom: 14px;
  background: linear-gradient(100deg, #eef2f0 30%, #f7faf8 50%, #eef2f0 70%);
  background-size: 220% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { 0% { background-position: 130% 0 } 100% { background-position: -30% 0 } }

.load-more { text-align: center; padding: 16px; color: var(--text-mute); font-size: 13px; }

/* ---------------- 订单 ---------------- */
.order-card {
  padding: 14px; border-radius: var(--radius); margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.order-card .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-card .hd .no { font-size: 11px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.order-card .st { font-size: 12.5px; font-weight: 700; }
.order-card .main { display: flex; gap: 11px; }
.order-card .main img { width: 74px; height: 74px; border-radius: 11px; object-fit: cover; flex: none; background: #eef2f0; }
.order-card .main .info { flex: 1; min-width: 0; }
.order-card .main .info h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.order-card .main .info .m { font-size: 11.5px; color: var(--text-mute); }
.order-card .main .info .p { font-size: 18px; font-weight: 800; color: var(--gold); margin-top: 6px; font-variant-numeric: tabular-nums; }
.order-card .ft { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.btn-sm { padding: 7px 17px; border-radius: 20px; font-size: 12.5px; font-weight: 600; transition: .2s; }
.btn-sm.solid { background: linear-gradient(135deg, #17c479, var(--green-d)); color: #fff; box-shadow: 0 6px 14px rgba(16, 183, 104, .22); }
.btn-sm.line { border: 1px solid var(--line-strong); color: var(--text-dim); background: #fff; }
.btn-sm:active { transform: scale(.95); }

/* ---------------- 二维码 ---------------- */
.qr-card {
  margin: 18px 15px; padding: 26px 20px; border-radius: var(--radius-lg); text-align: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.qr-card .st-tag { display: inline-block; padding: 4px 15px; border-radius: 20px; font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }
.qr-box {
  width: 214px; height: 214px; margin: 0 auto; padding: 12px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(18, 60, 44, .1);
}
.qr-box img, .qr-box canvas { width: 190px !important; height: 190px !important; display: block; }
.qr-code-text {
  margin-top: 16px; font-size: 26px; font-weight: 800; letter-spacing: 6px; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.qr-tip { font-size: 12px; color: var(--text-mute); margin-top: 8px; }

/* ---------------- 我的 ---------------- */
.profile {
  margin: 14px 15px 0; padding: 22px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1cc47d 0%, #0d8f55 62%, #0a7345 100%);
  position: relative; overflow: hidden;
  box-shadow: 0 14px 32px rgba(13, 143, 85, .28);
}
.profile::after {
  content: ""; position: absolute; right: -34px; top: -46px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 70%);
}
.profile .u { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.profile .u img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .6); background: #fff; }
.profile .u .n { font-size: 18px; font-weight: 700; color: #fff; }
.profile .u .d { font-size: 11.5px; color: rgba(255, 255, 255, .82); margin-top: 3px; }
.profile .stat { display: flex; margin-top: 18px; position: relative; z-index: 2; }
.profile .stat .it { flex: 1; text-align: center; }
.profile .stat .it .v { font-size: 21px; font-weight: 800; color: #ffe9a8; font-variant-numeric: tabular-nums; }
.profile .stat .it .k { font-size: 11.5px; color: rgba(255, 255, 255, .8); }

.menu-list { margin: 14px 15px 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--card-soft); }
.menu-item .mi-ico { width: 20px; text-align: center; font-size: 15px; }
.menu-item .mi-txt { flex: 1; }
.menu-item .mi-val { font-size: 12.5px; color: var(--text-mute); }
.menu-item .arrow { color: #b9c7c1; font-size: 15px; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(18, 60, 44, .05);
}
.tabbar .tb {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-mute); font-size: 10.5px; transition: .2s;
}
.tabbar .tb .ti { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: .55; }
.tabbar .tb.active { color: var(--green-d); font-weight: 600; }
.tabbar .tb.active .ti { filter: none; opacity: 1; transform: translateY(-1px); }

/* ---------------- Toast / 弹层 ---------------- */
.toast-wrap { position: fixed; left: 0; right: 0; top: 22%; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  max-width: 78%; padding: 11px 20px; border-radius: 12px; font-size: 13.5px; color: #fff;
  background: rgba(22, 36, 30, 0.9);
  box-shadow: 0 12px 30px rgba(18, 60, 44, .24);
  opacity: 0; transform: translateY(-8px); transition: .24s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: rgba(196, 53, 45, .94); }

.mask {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center;
  background: rgba(14, 26, 21, 0.45); backdrop-filter: blur(3px); padding: 24px;
}
.modal {
  width: 100%; max-width: 340px; border-radius: 20px; overflow: hidden;
  background: #fff; box-shadow: 0 24px 60px rgba(18, 60, 44, .28);
  animation: pop .22s ease-out;
}
@keyframes pop { from { transform: scale(.92); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.modal .m-hd { padding: 20px 20px 8px; font-size: 16.5px; font-weight: 700; text-align: center; }
.modal .m-bd { padding: 0 20px 18px; font-size: 13.5px; color: var(--text-dim); text-align: center; line-height: 1.9; }
.modal .m-ft { display: flex; border-top: 1px solid var(--line); }
.modal .m-ft button { flex: 1; padding: 14px; font-size: 15px; font-weight: 600; }
.modal .m-ft button + button { border-left: 1px solid var(--line); }
.modal .m-ft .ok { color: var(--green-d); }
.modal .m-ft .no { color: var(--text-mute); }

/* ---------------- 未登录引导 ---------------- */
.login-guide { padding: 50px 26px; text-align: center; }
.login-guide .lg-ball {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; position: relative;
  background: radial-gradient(circle at 34% 28%, #6ee6a9 0%, #12a763 46%, #0a6b3d 100%);
  box-shadow: 0 12px 30px rgba(16, 183, 104, 0.26), inset -7px -9px 18px rgba(0,0,0,.24), inset 6px 7px 14px rgba(255,255,255,.42);
}
.login-guide .lg-ball::after { content: ""; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.login-guide .lg-ball span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; font-weight: 700; color: #16241e; font-size: 15px; }
.login-guide h3 { font-size: 17px; margin-bottom: 10px; }
.login-guide p { font-size: 13px; color: var(--text-mute); line-height: 1.9; margin-bottom: 24px; }
.login-guide .btn-primary-lg { width: 100%; }

.mb-safe { height: 12px; }

/* ============================================================
   出价支付 / 退款 / 积分商城 / 卡券
   ============================================================ */

/* 出价支付说明 */
.pay-tip { margin-top: 12px; font-size: 11.5px; line-height: 1.7; color: var(--text-mute); }

/* 退款提示卡 */
.refund-card {
  display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 13px 15px;
  border-radius: 14px; background: rgba(16, 183, 104, 0.07);
  border: 1px solid rgba(16, 183, 104, 0.18);
}
.refund-card .rc-ico {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 15px;
  background: rgba(16, 183, 104, 0.14); color: var(--green-d);
}
.refund-card .rc-txt { flex: 1; font-size: 12px; color: #2c6a4e; line-height: 1.75; }
.refund-card .rc-txt b { color: var(--green-d); font-weight: 700; }

/* ---------------- 积分横幅 ---------------- */
.points-banner {
  margin: 14px 15px 4px; padding: 20px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1cc47d 0%, #0d8f55 62%, #0a7345 100%);
  position: relative; overflow: hidden;
  box-shadow: 0 14px 32px rgba(13, 143, 85, .26);
}
.points-banner::after {
  content: ""; position: absolute; right: -30px; top: -46px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 70%);
}
.points-banner .pb-l { font-size: 12px; color: rgba(255, 255, 255, .82); letter-spacing: 1px; }
.points-banner .pb-v {
  font-size: 38px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums;
  color: #ffe9a8;
}
.points-banner .pb-row { display: flex; gap: 20px; margin-top: 8px; font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.points-banner .pb-link { position: absolute; right: 18px; top: 20px; font-size: 12px; color: #fff; z-index: 2; opacity: .9; }

/* ---------------- 积分明细 ---------------- */
.point-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.point-item:last-child { border-bottom: none; }
.point-item .pi-l { flex: 1; min-width: 0; }
.point-item .pi-t { font-size: 14px; }
.point-item .pi-d { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }
.point-item .pi-time { font-size: 11px; color: #a9b8b2; margin-top: 3px; }
.point-item .pi-r { font-size: 17px; font-weight: 800; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.point-item .pi-r.plus { color: var(--green-d); }

/* ---------------- 积分商城 ---------------- */
.goods-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 15px 20px; }
.goods-card {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s;
}
.goods-card:active { transform: scale(.975); }
.goods-card .gc-cover { position: relative; height: 118px; overflow: hidden; background: #eef2f0; }
.goods-card .gc-cover img { width: 100%; height: 100%; object-fit: cover; }
.goods-card .gc-type {
  position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 20px; font-size: 10.5px;
  background: rgba(255, 255, 255, .94); color: var(--green-d); font-weight: 600;
  box-shadow: 0 2px 8px rgba(18, 60, 44, .12);
}
.goods-card .gc-sold {
  position: absolute; right: 8px; top: 8px; padding: 3px 9px; border-radius: 20px; font-size: 10.5px;
  background: rgba(224, 72, 63, .92); color: #fff;
}
.goods-card .gc-body { padding: 10px 11px 12px; }
.goods-card .gc-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; height: 38px; overflow: hidden; }
.goods-card .gc-sub { font-size: 11px; color: var(--text-mute); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-card .gc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.goods-card .gc-pts { font-size: 14px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.goods-card .gc-stock { font-size: 10.5px; color: var(--text-mute); }

/* ---------------- 卡券 ---------------- */
.coupon-card {
  position: relative; display: flex; align-items: stretch; margin-bottom: 12px;
  border-radius: 14px; overflow: hidden; min-height: 96px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.coupon-card.dim { opacity: .5; filter: grayscale(.6); }
.coupon-card .cc-left {
  width: 96px; flex: none; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  background: linear-gradient(150deg, rgba(16, 183, 104, .14), rgba(201, 138, 18, .1));
  border-right: 1px dashed var(--line-strong);
}
.coupon-card .cc-val { font-size: 26px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.coupon-card .cc-val span { font-size: 14px; margin-right: 1px; }
.coupon-card .cc-min { font-size: 10.5px; color: var(--text-mute); margin-top: 4px; }
.coupon-card .cc-right { flex: 1; padding: 12px; min-width: 0; }
.coupon-card .cc-name { font-size: 14px; font-weight: 700; }
.coupon-card .cc-sub { font-size: 11px; color: var(--text-mute); margin-top: 3px; }
.coupon-card .cc-time { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.coupon-card .cc-warn { color: var(--warn); margin-left: 6px; }
.coupon-card .cc-code { font-size: 11px; color: var(--green-d); margin-top: 5px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.coupon-card .cc-status { position: absolute; right: 10px; top: 10px; font-size: 11px; color: var(--text-mute); }

/* ---------------- 地址 ---------------- */
.addr-card, .addr-item {
  padding: 14px 15px; border-radius: 14px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.addr-item { box-shadow: none; }
.addr-item:last-child { margin-bottom: 0; }
.addr-card .ai-top, .addr-item .ai-top { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.addr-card .ai-top b, .addr-item .ai-top b { font-weight: 700; }
.addr-card .ai-addr, .addr-item .ai-addr { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.7; }
.addr-card .ai-ops { display: flex; gap: 9px; justify-content: flex-end; margin-top: 10px; }

/* 表单（弹层内） */
.fi { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; text-align: left; }
.fi label { font-size: 12.5px; color: var(--text-dim); }
.fi input {
  height: 44px; padding: 0 12px; border-radius: 11px; font-size: 15px;
  background: var(--card-soft); border: 1px solid var(--line-strong);
  color: var(--text); outline: none;
}
.fi input:focus { border-color: var(--green); background: #fff; }
.fi-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.fi-check input { width: 17px; height: 17px; accent-color: var(--green); }

/* ---------------- 个人中心四宫格 ---------------- */
.mine-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 14px 15px 0; padding: 16px 8px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.mine-grid .mg-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-dim);
}
.mine-grid .mg-item:active { opacity: .6; }
.mine-grid .mg-ico { font-size: 21px; }
.mine-grid .mg-item em {
  position: absolute; top: -4px; right: 50%; margin-right: -22px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #e0483f; color: #fff; font-size: 10px; font-style: normal; line-height: 16px; text-align: center;
}

/* ---------------- 微信资料授权卡片 ---------------- */
.wx-bind-card {
  display: flex; align-items: center; gap: 12px; margin: 14px 15px 0; padding: 14px 15px;
  border-radius: var(--radius); background: var(--gold-soft);
  border: 1px solid rgba(201, 138, 18, 0.2);
}
.wx-bind-card .wb-ico {
  width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--green-d);
  box-shadow: 0 2px 8px rgba(18, 60, 44, .1);
}
.wx-bind-card .wb-txt { flex: 1; min-width: 0; }
.wx-bind-card .wb-txt h4 { font-size: 13.5px; font-weight: 700; color: #8a5e08; }
.wx-bind-card .wb-txt p { font-size: 11.5px; color: #a07c30; margin-top: 2px; }
.wx-bind-card .wb-btn {
  flex: none; padding: 7px 15px; border-radius: 20px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #e5a91f, var(--gold-d));
  box-shadow: 0 6px 14px rgba(201, 138, 18, .26);
}

/* ============================================================
   多门店：切换入口 / 门店卡片 / 门店主页
   ============================================================ */
.store-switch {
  flex: none; padding: 6px 13px; border-radius: 20px; font-size: 12px; font-weight: 600;
  color: var(--green-d); background: var(--green-soft); border: 1px solid rgba(16, 183, 104, 0.2);
}
.store-switch:active { opacity: .7; }

.store-tag {
  display: inline-block; margin-bottom: 5px; padding: 2px 9px; border-radius: 20px;
  font-size: 10.5px; color: var(--gold-d); background: var(--gold-soft);
  border: 1px solid rgba(201, 138, 18, 0.18);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.store-card {
  margin-top: 12px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s;
}
.store-card:active { transform: scale(.985); }
.store-card .sc-cover {
  position: relative; height: 122px; background-size: cover; background-position: center;
  background-color: #e8efeb;
}
.store-card .sc-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 9, .06) 0%, rgba(4, 12, 9, .38) 100%);
}
.store-card .sc-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700;
  background: #fff; color: var(--green-d); box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}
.store-card .sc-badge.ghost { background: rgba(255, 255, 255, .92); color: var(--text-dim); font-weight: 600; }
.store-card .sc-body { padding: 12px 14px 14px; }
.store-card .sc-head { display: flex; align-items: center; gap: 9px; }
.store-card .sc-head img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #eef2f0; }
.store-card .sc-name { font-size: 15.5px; font-weight: 700; }
.store-card .sc-line { font-size: 12px; color: var(--text-mute); margin-top: 6px; }
.store-card .sc-ops { display: flex; gap: 9px; justify-content: flex-end; margin-top: 12px; }

.store-all {
  text-align: center; padding: 16px; margin-top: 6px; font-size: 13.5px; color: var(--green-d);
}

.store-head { display: flex; align-items: center; gap: 12px; }
.store-head .store-logo {
  width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none;
  background: #eef2f0; border: 1px solid var(--line);
}
.store-line { font-size: 12.5px; color: var(--text-dim); margin-top: 8px; line-height: 1.75; }

.gallery-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll img {
  flex: none; width: 168px; height: 112px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); background: #eef2f0;
}

/* ---------------- 窄屏适配 ---------------- */
@media (max-width: 350px) {
  .bid-panel .big-price { font-size: 30px; }
  .bid-panel .cd-big { gap: 3px; }
  .bid-panel .cd-block { padding: 4px 6px; }
  .bid-panel .cd-block b { font-size: 14px; }
  .bid-panel .cd-block i { font-size: 9px; }
  .btn-primary-lg { padding: 0 16px; font-size: 14.5px; }
  .countdown .cd-time { font-size: 12px; }
}

/* ============================================================
   门店广告位（仅平台总部投放）
   ============================================================ */
.ad-strip { margin: 12px 15px 2px; }
.ad-strip .ad-head { display: flex; align-items: center; }
.ad-strip .ad-badge {
  display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 10px;
  color: #8b9d94; background: #eef2f0; letter-spacing: .5px;
}
.ad-strip .ad-scroll {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin-top: 6px; -webkit-overflow-scrolling: touch;
}
.ad-strip .ad-scroll::-webkit-scrollbar { display: none; }
.ad-strip .ad-item {
  position: relative; flex: none; width: 100%; overflow: hidden;
  border-radius: 14px; background: #eef2f0;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ad-strip .ad-scroll.multi .ad-item { width: 84%; }
.ad-strip .ad-item img { width: 100%; height: 108px; object-fit: cover; display: block; }
.ad-strip .ad-txt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 9px; font-size: 12.5px; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 100%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   首页门店专区（汇聚所有门店，点击进入）
   ============================================================ */
.store-strip { margin: 12px 15px 2px; }
.store-strip .ss-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.store-strip .ss-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.store-strip .ss-more { font-size: 12px; color: var(--green-d); }
.store-strip .ss-scroll {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin-top: 9px; padding-bottom: 2px; -webkit-overflow-scrolling: touch;
}
.store-strip .ss-scroll::-webkit-scrollbar { display: none; }
.store-strip .ss-item {
  flex: none; width: 118px; padding: 12px 10px; border-radius: 14px; text-align: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s;
}
.store-strip .ss-item:active { transform: scale(.96); }
.store-strip .ss-item img {
  width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 12px; object-fit: cover;
  background: #eef2f0; border: 1px solid var(--line);
}
.store-strip .ss-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-strip .ss-count { font-size: 10.5px; color: var(--text-mute); margin-top: 4px; }

/* ============================================================
   手机端扫码核销
   ============================================================ */
.verify-head {
  display: flex; align-items: center; gap: 12px; margin: 14px 15px 0; padding: 16px;
  border-radius: var(--radius-lg); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.verify-head img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none;
  background: #eef2f0; border: 1px solid var(--line);
}
.verify-head .vh-name { font-size: 16px; font-weight: 700; }
.verify-head .vh-store { font-size: 12px; color: var(--text-mute); margin-top: 3px; }

.alert-bar {
  margin: 12px 15px 0; padding: 11px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.7;
  color: #b0342c; background: rgba(224, 72, 63, .08); border: 1px solid rgba(224, 72, 63, .22);
}

.verify-box {
  margin: 14px 15px 0; padding: 18px 16px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}

.scan-btn {
  width: 100%; padding: 26px 16px; border-radius: 16px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; color: #fff;
  background: linear-gradient(135deg, #17c479, var(--green-d));
  box-shadow: 0 12px 26px rgba(16, 183, 104, .28); transition: .2s;
}
.scan-btn:active { transform: scale(.97); }
.scan-btn .sb-ico { font-size: 30px; line-height: 1; }
.scan-btn .sb-txt { font-size: 16.5px; font-weight: 800; letter-spacing: 1px; }
.scan-btn .sb-sub { font-size: 11.5px; opacity: .82; }

.or-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or-line span { font-size: 11.5px; color: var(--text-mute); }

.vr-card { text-align: center; padding: 6px 0 0; }
.vr-card .vr-ico {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
}
.vr-card.ok .vr-ico { color: #fff; background: linear-gradient(135deg, #17c479, var(--green-d)); }
.vr-card.fail .vr-ico { color: #fff; background: linear-gradient(135deg, #ef5f55, #c93b32); }
.vr-card .vr-title { font-size: 18px; font-weight: 800; }
.vr-card.ok .vr-title { color: var(--green-d); }
.vr-card.fail .vr-title { color: var(--danger); }
.vr-card .vr-msg { font-size: 12.5px; color: var(--text-mute); margin-top: 6px; line-height: 1.7; }
.vr-card .vr-list {
  margin-top: 16px; padding: 4px 14px; border-radius: 14px; text-align: left;
  background: var(--card-soft); border: 1px solid var(--line);
}
.vr-card .vr-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.vr-card .vr-row:last-child { border-bottom: none; }
.vr-card .vr-row span { color: var(--text-mute); flex: none; }
.vr-card .vr-row b { font-weight: 600; text-align: right; word-break: break-all; }
