/* ============ 1210 跨境保税电商 · H5移动端样式 ============ */
:root {
  /* 以下默认值 = 后台「网站设置 → 风格配色」的默认值；
     前端 loadSiteConfig() 会用后台配置覆盖它们，改配色无需重新部署。 */
  --theme: #FF7A2F;
  --theme-dark: #F2631A;
  --theme-rgb: 255,122,47;
  --theme-op: rgba(255,122,47,.08);
  --theme-light: rgba(255,122,47,.14);
  --grad-start: #FF9A4D;
  --grad-end: #FF6A1F;
  /* 顶部/Hero 区的蓝色渐变（保税蓝） */
  --hero-start: #5FA8F0;
  --hero-end: #CFE6FA;
  --price: #FF6A1F;
  --page-bg: #F4F7FB;
  --card-radius: 14px;
  --shadow: 0 3px 10px 2px rgba(0,0,0,.03);
  --text-1: #1F2430;
  --text-2: #5A6272;
  --text-3: #98A0AE;
  --border: #f0f0f0;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page-bg); color: var(--text-1); font-size: 14px; max-width: 750px; margin: 0 auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; outline: none; background: none; cursor: pointer; }
input, textarea { font-family: inherit; outline: none; border: none; background: none; }
.hidden { display: none !important; }

/* ============ 页面容器 ============ */
.page { display: none; min-height: 100vh; padding-bottom: calc(56px + var(--safe-bottom)); }
.page.active { display: block; }
.safe-top { height: env(safe-area-inset-top, 0px); }

/* ============ 顶部标题栏 ============ */
.h5-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; box-shadow: 0 1px 4px rgba(0,21,41,.06);
}
.h5-header .hh-title { font-size: 17px; font-weight: 700; }
.h5-header .hh-back { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-1); }
.h5-header .hh-right { width: 30px; display: flex; justify-content: flex-end; }
.h5-header .hh-right .hh-cart-badge { position: relative; font-size: 20px; }
.h5-header .hh-right .hh-badge-num { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--theme); color: #fff; border-radius: 8px; font-size: 10px; line-height: 16px; text-align: center; }

/* ============ 底部 TabBar ============ */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 750px;
  background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 200;
  padding-bottom: var(--safe-bottom); height: calc(56px + var(--safe-bottom));
}
.tabbar .tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-3); font-size: 11px; position: relative;
}
.tabbar .tab-item .ti-icon { font-size: 22px; line-height: 1; }
.tabbar .tab-item.active { color: var(--theme); font-weight: 600; }
.tabbar .tab-item.active .ti-icon { transform: scale(1.1); }
.tabbar .tab-item .ti-badge {
  position: absolute; top: 4px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--theme); color: #fff; border-radius: 8px; font-size: 10px; line-height: 16px; text-align: center;
}

/* ============ 首页 ============ */
/* 首页 Hero：蓝色渐变（保税蓝）+ 胶囊搜索 + 预约主视觉 */
.home-header {
  background: linear-gradient(178deg, var(--hero-start) 0%, var(--hero-end) 62%, var(--page-bg) 100%);
  padding: 12px 16px 22px; position: relative; overflow: hidden;
}
.home-header::after { content: ''; position: absolute; right: -40px; top: -30px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.16); }
.home-header::before { content: ''; position: absolute; left: -30px; top: 60px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.10); }
.home-header .bk-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.home-search {
  flex: 1; display: flex; align-items: center; background: rgba(255,255,255,.96); border-radius: 22px;
  padding: 0 12px; height: 42px; position: relative; z-index: 2;
  box-shadow: 0 4px 14px rgba(0,52,110,.12);
}
.home-search input { flex: 1; min-width: 0; font-size: 14px; color: var(--text-1); padding: 0 6px; background: none; }
.home-search input::placeholder { color: var(--text-3); }
.home-search .hs-icon { font-size: 17px; color: #2b3a4d; font-weight: 700; }
.home-search .hs-refresh {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #56677d; border: 1.5px solid #d7e0ea;
}
.bk-tool { flex: 0 0 auto; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; }
.bk-tool .bk-tool-icon { font-size: 20px; line-height: 1; }
.bk-tool .bk-tool-text { font-size: 10px; opacity: .95; }

/* Hero 主视觉：大标题 + 副标题 + 橙色胶囊按钮 */
.bk-hero-main { position: relative; z-index: 2; padding: 20px 2px 2px; }
.bk-hero-main h2 {
  font-size: 30px; font-weight: 800; color: #fff; letter-spacing: 1px;
  text-shadow: 0 3px 12px rgba(0,44,96,.28);
}
.bk-hero-main p { font-size: 13px; color: rgba(255,255,255,.95); margin: 8px 0 16px; text-shadow: 0 1px 6px rgba(0,44,96,.2); }
.bk-hero-btn {
  display: inline-block; padding: 9px 24px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  box-shadow: 0 6px 16px var(--theme-light);
}
.bk-hero-btn:active { background: var(--theme-dark); }

.home-cats-wrap { background: var(--page-bg); }
.home-cats { display: flex; gap: 6px; padding: 10px 14px 2px; overflow-x: auto; scrollbar-width: none; }
.home-cats::-webkit-scrollbar { display: none; }
.home-cats .hc-item {
  flex-shrink: 0; padding: 5px 14px; border-radius: 16px; font-size: 13px; color: var(--text-2);
  background: #fff; border: 1px solid var(--border);
}
.home-cats .hc-item.active { background: var(--theme); color: #fff; border-color: var(--theme); font-weight: 700; }

/* 预约通知条（白色圆角条 + 橙色对勾） */
.bk-notice {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--card-radius);
  margin: 10px 12px 0; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; color: var(--text-1);
}
.bk-notice .bk-notice-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; text-align: center; line-height: 20px;
  font-size: 12px; color: #fff; background: var(--theme);
}
.bk-notice .bk-notice-text { flex: 1; min-width: 0; }
.bk-notice .bk-notice-arrow { color: var(--text-3); font-size: 18px; flex-shrink: 0; }

.h5-banner { margin: 12px 12px 0; border-radius: var(--card-radius); overflow: hidden; height: 130px; position: relative; background: linear-gradient(120deg, var(--hero-start), var(--hero-end)); }
.h5-banner .hb-text { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #fff; z-index: 2; }
.h5-banner .hb-text h2 { font-size: 24px; font-weight: 800; }
.h5-banner .hb-text p { font-size: 12px; opacity: .95; margin-top: 6px; }
.h5-banner .hb-emoji { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 64px; opacity: .9; }

/* 卖点两栏卡片（对应设计稿的「海外直采 / 海关监管」） */
.h5-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px; }
.h5-features .hf-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border-radius: var(--card-radius); padding: 14px 12px; box-shadow: var(--shadow);
}
.h5-features .hf-main { min-width: 0; }
.h5-features .hf-main b { display: block; font-size: 15px; font-weight: 800; color: var(--text-1); }
.h5-features .hf-main i { display: block; font-style: normal; font-size: 11px; color: var(--text-2); margin-top: 4px; }
.h5-features .hf-sub { display: block; font-size: 10px; color: var(--text-3); margin-top: 3px; white-space: nowrap; }
.h5-features .hf-right { flex-shrink: 0; text-align: center; }
.h5-features .hf-icon {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 auto;
  border-radius: 10px; font-size: 19px; background: var(--theme-op);
}

.section-block { margin: 0 12px 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.section-head .sh-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.section-head .sh-title::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--grad-start), var(--grad-end)); }
.section-head .sh-more { font-size: 12px; color: var(--text-3); }

/* 商品双列 */
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
.goods-card {
  background: #fff; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
}
/* 1:1 方形图占位：用 padding-top 方案（老内核通用），不依赖 aspect-ratio，避免微信内置浏览器里图片区塌陷/错位 */
.goods-card .gc-img { position: relative; background: #fafafa; overflow: hidden; padding-top: 100%; }
.goods-card .gc-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.goods-card .gc-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.goods-card .gc-body { padding: 10px 12px 12px; }
.goods-card .gc-name { font-size: 13px; font-weight: 600; line-height: 1.4; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.goods-card .gc-sub { font-size: 11px; color: var(--text-3); margin: 5px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-card .gc-price-row { display: flex; align-items: center; justify-content: space-between; }
.goods-card .gc-price { font-size: 17px; font-weight: 800; color: var(--price); }
.goods-card .gc-price small { font-size: 11px; }
.goods-card .gc-add { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* ============ 分类页 ============ */
.cate-wrap { display: flex; height: calc(100vh - 56px - var(--safe-bottom)); }
.cate-left { width: 90px; background: #fff; overflow-y: auto; flex-shrink: 0; }
.cate-left .cl-item { padding: 16px 8px; text-align: center; font-size: 13px; color: var(--text-2); position: relative; }
.cate-left .cl-item.active { color: var(--theme); font-weight: 700; background: var(--page-bg); }
.cate-left .cl-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 2px; background: var(--theme); }
.cate-right { flex: 1; overflow-y: auto; padding: 10px; }
.cate-right .cr-title { text-align: center; font-size: 12px; color: var(--text-3); margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.cate-right .cr-title::before, .cate-right .cr-title::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; }

/* ============ 购物车 ============ */
.cart-item {
  display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 10px;
  padding: 12px; margin: 0 12px 10px; box-shadow: var(--shadow);
}
.cart-item .ci-checkbox { width: 20px; height: 20px; accent-color: var(--theme); flex-shrink: 0; }
.cart-item .ci-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #fafafa; flex-shrink: 0; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item .ci-sub { font-size: 11px; color: var(--text-3); margin: 4px 0; }
.cart-item .ci-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cart-item .ci-price { font-size: 16px; font-weight: 800; color: var(--price); }
.cart-item .ci-price small { font-size: 11px; }
.cart-stepper { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 15px; overflow: hidden; }
.cart-stepper button { width: 28px; height: 28px; font-size: 15px; color: var(--text-2); background: #fafafa; }
.cart-stepper .cs-num { width: 34px; height: 28px; text-align: center; font-size: 13px; border-left: 1px solid #eee; border-right: 1px solid #eee; line-height: 28px; }
.cart-footer {
  position: fixed; bottom: calc(56px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); width: 100%; max-width: 750px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; z-index: 150;
}
.cart-footer .cf-select { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.cart-footer .cf-select input { width: 18px; height: 18px; accent-color: var(--theme); }
.cart-footer .cf-total { font-size: 13px; color: var(--text-2); }
.cart-footer .cf-total strong { font-size: 20px; color: var(--price); font-weight: 800; margin-left: 4px; }
.btn-settle {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff; font-size: 14px; font-weight: 700;
  padding: 0 22px; height: 38px; border-radius: 19px;
}

/* ============ 我的 ============ */
.my-header { background: linear-gradient(160deg, var(--grad-start), var(--grad-end)); padding: 30px 16px 50px; color: #fff; position: relative; overflow: hidden; }
.my-header::after { content: ''; position: absolute; right: -30px; top: -20px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); }
.my-user { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.my-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25); font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.my-name { font-size: 17px; font-weight: 700; }
.my-sub { font-size: 12px; opacity: .9; margin-top: 4px; }
.my-card { background: #fff; border-radius: 14px; margin: -28px 12px 12px; padding: 16px; box-shadow: var(--shadow); position: relative; z-index: 3; }
.my-card .mc-title { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.my-card .mc-row { display: flex; }
.my-card .mc-item { flex: 1; text-align: center; }
.my-card .mc-num { font-size: 18px; font-weight: 800; color: var(--text-1); }
.my-card .mc-num.used { color: #f90; }
.my-card .mc-num.remain { color: var(--theme); }
.my-card .mc-label { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.my-order-card { background: #fff; border-radius: 12px; margin: 0 12px 12px; padding: 14px; box-shadow: var(--shadow); }
.my-order-card .moc-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.my-order-card .moc-title span { font-size: 12px; color: var(--text-3); font-weight: 400; }
.my-order-card .moc-grid { display: flex; }
.my-order-card .moc-item { flex: 1; text-align: center; }
.my-order-card .moc-item .mi-icon { font-size: 22px; }
.my-order-card .moc-item .mi-label { font-size: 11px; color: var(--text-2); margin-top: 4px; }
.my-menu { background: #fff; border-radius: 12px; margin: 0 12px 12px; box-shadow: var(--shadow); overflow: hidden; }
.my-menu .mm-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.my-menu .mm-item:last-child { border-bottom: none; }
.my-menu .mm-item .mm-icon { font-size: 20px; }
.my-menu .mm-item .mm-text { flex: 1; font-size: 14px; }
.my-menu .mm-item .mm-arrow { color: var(--text-3); font-size: 14px; }

/* ============ 通用面板 ============ */
.h5-panel { background: #fff; border-radius: 12px; margin: 0 12px 12px; padding: 16px; box-shadow: var(--shadow); }
.h5-panel .hp-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-control { width: 100%; height: 44px; border: 1px solid #e0e0e0; border-radius: 10px; padding: 0 14px; font-size: 14px; background: #fff; transition: .2s; }
.form-control:focus { border-color: var(--theme); }
textarea.form-control { height: auto; padding: 10px 14px; }
.btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; border-radius: 23px; background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff; font-size: 15px; font-weight: 700; }
.btn-primary:disabled { opacity: .6; }
.btn-outline { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; border-radius: 22px; background: #fff; border: 1px solid var(--theme); color: var(--theme); font-size: 14px; font-weight: 600; }

/* ============ 底部弹出层 ============ */
.sheet-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.45); z-index: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(100%); bottom: 0; width: 100%; max-width: 750px;
  background: #fff; border-radius: 16px 16px 0 0; z-index: 600; transition: transform .25s;
  max-height: 85vh; overflow-y: auto; padding-bottom: var(--safe-bottom);
}
.sheet-mask.show .sheet { transform: translateX(-50%) translateY(0); }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 2; }
.sheet .sheet-head h3 { font-size: 16px; font-weight: 700; }
.sheet .sheet-close { font-size: 20px; color: var(--text-3); }
.sheet .sheet-body { padding: 18px; }
.sheet-grabber { width: 36px; height: 4px; border-radius: 2px; background: #e0e0e0; margin: 8px auto 0; }

/* ============ 登录 ============ */
.login-tabs { display: flex; gap: 16px; margin-bottom: 18px; }
.login-tab { font-size: 15px; color: var(--text-3); padding-bottom: 6px; position: relative; }
.login-tab.active { color: var(--text-1); font-weight: 700; }
.login-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); }
.login-tip { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }
.login-tip a { color: var(--theme); }
/* 手机号验证码登录：输入框 + 「获取验证码」按钮同一行 */
.sms-row { display: flex; gap: 8px; align-items: center; }
.sms-row .form-control { flex: 1; min-width: 0; }
.btn-sms {
  flex-shrink: 0; height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--theme); background: var(--theme-op, #fff1ef); color: var(--theme);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.btn-sms:disabled { opacity: .6; }
.login-wx-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--text-3); font-size: 12px; }
.login-wx-divider::before, .login-wx-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-wx-login { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; border-radius: 23px; background: #07C160; color: #fff; font-size: 15px; font-weight: 600; border: none; gap: 6px; }
.btn-wx-login:active { opacity: .85; }
.btn-wx-login .wx-logo { font-size: 18px; line-height: 1; }

/* ============ 商品详情 ============ */
.detail-img { aspect-ratio: 1/1; background: #fafafa; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 14px 16px; background: #fff; }
.detail-info .di-price { font-size: 26px; font-weight: 800; color: var(--price); }
.detail-info .di-price small { font-size: 14px; }
.detail-info .di-price .di-tax { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
.detail-info .di-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-top: 8px; }
.detail-info .di-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.detail-panel { background: #fff; border-radius: 12px; margin: 10px 12px; padding: 14px 16px; }
.detail-panel .dp-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; color: var(--text-2); border-bottom: 1px dashed var(--border); }
.detail-panel .dp-row:last-child { border-bottom: none; }
.detail-panel .dp-row .dp-label { color: var(--text-3); }
.detail-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 750px; z-index: 300;
  background: #fff; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; padding-bottom: calc(10px + var(--safe-bottom));
}
.detail-bar .db-icon { text-align: center; font-size: 12px; color: var(--text-2); cursor: pointer; }
.detail-bar .db-icon:active { opacity: 0.6; }
.detail-bar .db-icon .di { font-size: 20px; }
.detail-bar .btn-add { flex: 1; height: 40px; border-radius: 20px; background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: #fff; font-weight: 700; font-size: 14px; }
.detail-bar .btn-buy { flex: 1; height: 40px; border-radius: 20px; background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff; font-weight: 700; font-size: 14px; }

/* ============ 商品详情图集 ============ */
.h5-gallery { background: #fff; }
.h5-gallery-main { position: relative; background: #fafafa; overflow: hidden; padding-top: 100%; }
.h5-gallery-main img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.h5-gallery-thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
.h5-gallery-thumbs::-webkit-scrollbar { display: none; }
.h5-gallery-thumbs img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 2px solid transparent; opacity: .75; flex-shrink: 0; }
.h5-gallery-thumbs img.active { border-color: var(--theme); opacity: 1; }
.h5-desc { font-size: 13px; line-height: 1.8; color: var(--text-2); white-space: pre-line; }

/* ============ H5 评价 ============ */
.h5-review-item { border-bottom: 1px dashed var(--border); padding: 12px 0; }
.h5-review-item:last-child { border-bottom: none; }
.h5-rv-head { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.h5-rv-nick { font-weight: 600; }
.h5-rv-stars { letter-spacing: 1px; }
.h5-rv-time { margin-left: auto; color: var(--text-3); font-size: 11px; }
.h5-rv-content { font-size: 13px; color: var(--text-1); line-height: 1.6; margin-top: 6px; white-space: pre-line; }
.h5-rv-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.h5-rv-imgs img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.rv-product-name { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.h5-rv-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.star-input { display: flex; gap: 6px; }
.star-input .star { font-size: 30px; color: #e0e0e0; cursor: pointer; }
.star-input .star.active { color: #f90; }
.rv-upload-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-img { position: relative; width: 72px; height: 72px; }
.rv-img img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.rv-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rv-upload-btn { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border: 1px dashed #dcdfe6; border-radius: 8px; color: var(--text-3); font-size: 12px; cursor: pointer; }

/* ============ H5 订单详情 ============ */
.h5-od-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-2); gap: 16px; word-break: break-all; }
.h5-od-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.h5-od-item:last-child { border-bottom: none; }
.h5-od-item-name { font-size: 14px; font-weight: 600; }
.h5-od-item-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.h5-review-badge { font-size: 12px; color: #999; background: #f0f0f0; padding: 3px 10px; border-radius: 12px; }
.h5-review-btn { font-size: 12px; color: var(--theme); border: 1px solid var(--theme); padding: 3px 10px; border-radius: 12px; }
.h5-logistics { padding-left: 18px; }
.h5-lt-item { position: relative; padding-bottom: 16px; }
.h5-lt-dot { position: absolute; left: -18px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #ccc; }
.h5-lt-item.current .h5-lt-dot { background: var(--theme); box-shadow: 0 0 0 3px var(--theme-op); }
.h5-lt-line { position: absolute; left: -14px; top: 16px; bottom: -2px; width: 2px; background: #eee; }
.h5-lt-item:last-child .h5-lt-line { display: none; }
.h5-lt-status { font-size: 14px; font-weight: 600; color: var(--text-1); }
.h5-lt-item.current .h5-lt-status { color: var(--theme); }
.h5-lt-desc { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.h5-lt-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ============ 结算/订单 ============ */
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-2); }
.summary-row.total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 12px; color: var(--text-1); font-weight: 600; }
.summary-row.total strong { font-size: 22px; color: var(--price); font-weight: 800; }
.quote-item { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.quote-item:last-child { border-bottom: none; }
.quote-item .qi-label { color: var(--text-2); }
.quote-item .qi-value { font-weight: 600; }
.quote-item .qi-value.used { color: #f90; }
.quote-item .qi-value.remain { color: var(--theme); }
.order-card { background: #fff; border-radius: 12px; margin: 0 12px 12px; box-shadow: var(--shadow); overflow: hidden; }
.order-card .oc-head { display: flex; justify-content: space-between; padding: 12px 14px; background: #fafafa; font-size: 12px; color: var(--text-2); }
.order-card .oc-status { font-weight: 700; }
.order-card .oc-status.st-0 { color: #f90; }
.order-card .oc-status.st-1 { color: #4c9af5; }
.order-card .oc-status.st-2 { color: #58c08c; }
.order-card .oc-status.st-3 { color: #58c08c; }
.order-card .oc-status.st-4 { color: #58c08c; }
.order-card .oc-status.st-6 { color: #d03050; }
.order-card .oc-status.st-5 { color: var(--text-3); }
.order-card .oc-body { padding: 10px 14px; }
.order-card .oc-goods { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.order-card .oc-goods img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #fafafa; }
.order-card .oc-goods .og-name { font-size: 13px; font-weight: 600; }
.order-card .oc-goods .og-price { margin-left: auto; font-size: 13px; font-weight: 700; }
.order-card .oc-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.order-card .oc-foot strong { font-size: 16px; color: var(--price); font-weight: 800; }
.order-card .oc-actions { display: flex; gap: 8px; }
.btn-sm { height: 30px; padding: 0 14px; font-size: 12px; border-radius: 15px; }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty .empty-icon { font-size: 50px; margin-bottom: 10px; }
.empty .empty-text { font-size: 13px; }

/* ============ Toast ============ */
.toast {
  position: fixed; top: 40%; left: 50%; transform: translate(-50%,-50%) scale(.9); z-index: 2000;
  background: rgba(40,44,52,.92); color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px;
  opacity: 0; transition: all .25s; pointer-events: none; max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.toast.success { background: rgba(88,192,140,.95); }
.toast.error { background: rgba(233,51,35,.95); }

/* ============ 加载骨架 ============ */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* ============ 收货地址簿 ============ */
.h5-addr-card { border: 1px solid #ececec; border-radius: 10px; padding: 12px; margin-bottom: 10px; cursor: pointer; }
.h5-addr-card.active { border-color: var(--theme); background: var(--theme-op); }
.h5-addr-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.h5-addr-tag { display: inline-block; background: var(--theme); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 10px; margin-left: 6px; }
.h5-addr-tel { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.h5-addr-addr { font-size: 13px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.h5-addr-ops { margin-top: 8px; display: flex; gap: 16px; }
.h5-addr-op { font-size: 12px; color: var(--theme); }
.h5-addr-op.danger { color: #e94f37; }
.h5-addr-empty { font-size: 13px; color: var(--text-3); padding: 12px; border: 1px dashed #e0e0e0; border-radius: 10px; margin-bottom: 10px; text-align: center; }
.h5-addr-add-btn { font-size: 13px; color: var(--theme); font-weight: 600; padding: 8px 0; margin-bottom: 10px; cursor: pointer; }
.h5-addr-add-form { background: #f8f9fc; border: 1px dashed #d0d5df; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.h5-addr-default { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* ===== H5 清关进度 stepper (A1) ===== */
.h5-clearance-stepper { display: flex; overflow-x: auto; padding: 8px 2px 2px; scrollbar-width: none; }
.h5-clearance-stepper::-webkit-scrollbar { display: none; }
.h5-cl-step { flex: 0 0 auto; width: 56px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.h5-cl-circle { width: 26px; height: 26px; border-radius: 50%; background: #f2f2f2; border: 2px solid #d9d9d9; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.h5-cl-step.done .h5-cl-circle { background: var(--theme); border-color: var(--theme); }
.h5-cl-step.active .h5-cl-circle { border-color: var(--theme); background: #fff; box-shadow: 0 0 0 3px var(--theme-op); }
.h5-cl-label { font-size: 10px; color: var(--text-2); margin-top: 5px; line-height: 1.3; }
.h5-cl-step.done .h5-cl-label { color: var(--text-1); font-weight: 600; }
.h5-cl-step.active .h5-cl-label { color: var(--theme); font-weight: 700; }

/* ===== H5 售后记录 (A2) ===== */
.h5-aftersale-item { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }


/* ===== B5 收藏 / 足迹 ===== */
.h5-fav { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; line-height: 24px; text-align: center; background: rgba(255,255,255,.94); border-radius: 50%; font-size: 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.18); z-index: 3; }
.h5-fav.on { background: #ffe3e3; }
#h5-detail-fav { display: inline-block; font-size: 20px; padding: 4px 2px 2px; cursor: pointer; color: #bbb; }
#h5-detail-fav.on { color: #e02020; }
.h5-fp-item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.h5-fp-item .fp-img { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #fafafa; flex-shrink: 0; }
.h5-fp-item .fp-img img { width: 100%; height: 100%; object-fit: cover; }
.h5-fp-item .fp-info { flex: 1; min-width: 0; cursor: pointer; }
.h5-fp-item .fp-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h5-fp-item .fp-price { color: #d03050; font-weight: 700; font-size: 14px; margin-top: 4px; }
.h5-fp-item .fp-time { font-size: 11px; color: #bbb; margin-top: 2px; }
.h5-fp-item .fp-del { width: 26px; height: 26px; line-height: 24px; text-align: center; color: #bbb; font-size: 14px; flex-shrink: 0; cursor: pointer; border-radius: 50%; background: #f5f5f5; }

/* ============ A3 H5 支付收银台 ============ */
.h5-cashier-amount { text-align: center; font-size: 34px; font-weight: 800; color: var(--theme); margin: 18px 0 2px; }
.h5-cashier-amount-sub { text-align: center; font-size: 13px; color: #999; margin-bottom: 14px; }
.h5-cashier-order { text-align: center; font-size: 13px; color: #666; margin-bottom: 10px; }
.h5-cashier-order span { color: #222; font-weight: 600; }
.h5-cashier-countdown { text-align: center; font-size: 14px; color: #666; margin-bottom: 12px; }
.h5-cashier-qr { display: flex; justify-content: center; margin: 8px 0; }
.h5-cashier-qr canvas { border: 1px solid #f0f0f0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.h5-cashier-tip { text-align: center; font-size: 12px; color: var(--theme); margin: 10px 0 12px; line-height: 1.8; }
.h5-cashier-channels { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.h5-cashier-channel { border: 1px solid #e0e0e0; color: #666; font-size: 12px; padding: 3px 14px; border-radius: 12px; background: #fafafa; }


/* ============ B4 限时促销 / 优惠券 (H5) ============ */
.gc-price-col { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.gc-price-extra { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.gc-flash-badge { background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; line-height: 1.5; }
.gc-price-orig { color: #bbb; font-size: 11px; text-decoration: line-through; }
.ci-price-extra { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.di-flash-badge { display: inline-block; vertical-align: middle; background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; line-height: 1.6; }
.di-orig-price { display: inline-block; vertical-align: middle; color: #bbb; font-size: 15px; text-decoration: line-through; margin-left: 6px; font-weight: 400; }

.h5-coupon-card { display: flex; align-items: center; border-radius: 12px; background: linear-gradient(90deg, #fff5f3, #fff); border: 1px solid #ffe1dc; margin-bottom: 12px; padding: 14px 12px; }
.h5-coupon-card.disabled { opacity: .55; }
.h5-coupon-card.mine.used { background: #f7f7f7; border-color: #eee; }
.h5-cc-left { width: 84px; text-align: center; flex-shrink: 0; border-right: 1px dashed #ffd9d3; }
.h5-cc-left .h5-cc-amt { font-size: 24px; font-weight: 800; color: var(--theme); }
.h5-cc-left .h5-cc-amt small { font-size: 12px; }
.h5-cc-left .h5-cc-type { font-size: 10px; color: #c0392b; background: #ffece8; border-radius: 8px; display: inline-block; padding: 1px 8px; margin-top: 4px; }
.h5-coupon-card.mine.used .h5-cc-left { border-color: #e8e8e8; }
.h5-coupon-card.mine.used .h5-cc-type { color: #999; background: #ececec; }
.h5-cc-mid { flex: 1; min-width: 0; margin-left: 12px; }
.h5-cc-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h5-cc-limit { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.h5-cc-range, .h5-cc-time { font-size: 11px; color: #bbb; margin-top: 3px; }
.h5-cc-btn-wrap { flex-shrink: 0; margin-left: 8px; }
.h5-cc-btn { height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12px; background: #f0f0f0; color: #999; white-space: nowrap; }
.h5-cc-btn.go { background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff; font-weight: 600; }
.h5-mc-tab { padding: 5px 14px; border-radius: 15px; font-size: 12px; background: #f0f0f0; color: var(--text-2); }
.h5-mc-tab.active { background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff; font-weight: 600; }
.h5-mc-goto { font-size: 12px; color: var(--theme); font-weight: 600; }

/* ============ B6 多规格 SKU (H5) ============ */
.h5-spec-values { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.h5-spec-chip { padding: 5px 12px; font-size: 12px; color: var(--text-2); background: #f5f5f5; border: 1px solid #eee; border-radius: 15px; white-space: nowrap; }
.h5-spec-chip.active { color: var(--theme); border-color: var(--theme); background: rgba(233, 51, 35, 0.06); font-weight: 600; }
.h5-spec-chip.disabled { opacity: 0.4; text-decoration: line-through; }
.gc-price-from { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: 1px; }

/* ============ B7 首页装修：H5 Banner 轮播 ============ */
.h5-banner.banner-mode {
  display: block;
  height: 130px;
  background: transparent;
  margin: 12px 12px 0;
}
.h5-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
}
.h5-banner-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.h5-bs-content { position: relative; z-index: 2; max-width: 62%; }
.h5-bs-title { font-size: 20px; font-weight: 800; line-height: 1.3; }
.h5-bs-tip {
  display: inline-block; font-size: 11px; opacity: .95; margin-top: 8px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4);
  padding: 2px 10px; border-radius: 12px;
}
.h5-bs-img {
  position: relative; z-index: 2; height: 96px; max-width: 40%;
  object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.14));
}
.h5-banner-dots {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 6;
}
.h5-banner-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.6);
  cursor: pointer; transition: all .25s; display: block;
}
.h5-banner-dots i.active { width: 14px; border-radius: 4px; background: #fff; }

/* ============ B7 首页装修：H5 楼层 ============ */
#h5-floors .section-block { margin: 0 12px 16px; }

/* ============ F3 搜索体验：热词/历史/排序/筛选 (H5) ============ */
.page#page-search { padding-bottom: 24px; }
.h5-searchbar {
  position: sticky; top: 0; z-index: 100; background: #fff;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; box-shadow: 0 1px 4px rgba(21, 41, 80, .06);
}
.h5-searchbar .hsb-back {
  width: 32px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-1); flex-shrink: 0;
}
.h5-searchbox {
  flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0;
  background: #f5f5f5; border-radius: 18px; padding: 0 12px; height: 36px;
}
.h5-searchbox input { flex: 1; font-size: 14px; color: var(--text-1); min-width: 0; }
.h5-searchbox .h5-searchbox-icon { font-size: 14px; color: #999; }
.h5-searchbox .h5-searchbox-clear { font-size: 14px; color: #bbb; padding: 0 2px; cursor: pointer; }
.h5-searchbar .hsb-submit { color: var(--theme); font-size: 14px; font-weight: 600; flex-shrink: 0; padding: 0 2px; }

.h5-search-title {
  font-size: 13px; color: var(--text-2); font-weight: 600; margin: 16px 2px 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.h5-search-clear-all { font-size: 12px; color: var(--text-3); font-weight: 400; cursor: pointer; }
.h5-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.h5-chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  background: #fff; border: 1px solid var(--border); color: var(--text-2);
  border-radius: 14px; padding: 5px 12px; font-size: 12px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.h5-chip-hot { background: #fff7f5; border-color: #ffe0d8; color: #d24a2a; }
.h5-chip-hot i {
  font-style: normal; color: #fff; background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  border-radius: 8px; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 10px; flex-shrink: 0;
}

.h5-sortbar {
  display: flex; align-items: center; background: #fff; border-radius: 10px;
  padding: 4px 8px; box-shadow: var(--shadow); gap: 2px;
}
.h5-sort-item {
  flex: 1; text-align: center; font-size: 13px; color: var(--text-2);
  padding: 7px 0; border-radius: 6px; white-space: nowrap;
}
.h5-sort-item.active { color: var(--theme); font-weight: 700; background: #fff1f0; }
.h5-filter-toggle {
  flex-shrink: 0; font-size: 13px; color: var(--text-2); padding: 7px 4px 7px 10px; border-left: 1px solid var(--border);
}
.h5-filter-toggle.active { color: var(--theme); font-weight: 700; }
.h5-result-meta { color: var(--text-3); font-size: 12px; margin: 10px 2px 8px; }
.h5-load-more { text-align: center; padding: 16px; color: var(--text-2); font-size: 13px; cursor: pointer; }
.h5-load-end { text-align: center; padding: 16px; color: var(--text-3); font-size: 12px; }

.h5-filter-panel { background: #fff; border-radius: 10px; margin-top: 8px; padding: 10px 12px 4px; box-shadow: var(--shadow); }
.h5-f-label { font-size: 13px; color: var(--text-2); font-weight: 600; margin: 8px 0 8px; }
.h5-f-chip {
  display: inline-block; background: #f5f5f5; color: var(--text-2); border-radius: 6px;
  padding: 5px 12px; font-size: 12px; margin: 0 8px 8px 0; cursor: pointer; border: 1px solid transparent;
}
.h5-f-chip.active { background: rgba(233, 51, 35, .08); color: var(--theme); border-color: var(--theme); font-weight: 600; }
.h5-f-actions { display: flex; gap: 10px; margin: 8px 0 6px; }
.h5-f-actions .btn-outline, .h5-f-actions .btn-primary { flex: 1; height: 34px; font-size: 13px; }

/* ============ G1 预约（到货预告）(H5) ============ */
/* 首页板块：4 列小卡（对应设计稿「热门爆品预告」） */
.bk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bk-grid .bk-mini { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.bk-grid .bk-mini-img { position: relative; padding-top: 100%; background: #fafafa; }
.bk-grid .bk-mini-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-grid .bk-mini-img .bk-mini-ph {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #d8dde5;
}
.bk-grid .bk-tag {
  position: absolute; top: 0; left: 0; max-width: 100%;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); color: #fff;
  font-size: 9px; padding: 2px 6px; border-radius: 0 0 8px 0; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bk-grid .bk-mini-body { padding: 6px 6px 8px; text-align: center; }
.bk-grid .bk-mini-name {
  font-size: 11px; color: var(--text-1); line-height: 1.35; height: 30px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bk-grid .bk-mini-price { font-size: 12px; color: var(--price); font-weight: 800; margin-top: 4px; }
.bk-grid .bk-mini-count { font-size: 10px; color: var(--text-3); margin-top: 2px; }

/* 预约中心整页 */
.page#page-booking { padding-bottom: calc(72px + var(--safe-bottom)); background: var(--page-bg); }
.bk-page-hero {
  background: linear-gradient(170deg, var(--hero-start) 0%, var(--hero-end) 100%);
  padding: 8px 16px 22px; position: relative; overflow: hidden;
}
.bk-page-hero::after { content: ''; position: absolute; right: -36px; bottom: -46px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.16); }
.bk-page-bar { display: flex; align-items: center; justify-content: space-between; height: 40px; position: relative; z-index: 2; }
.bk-page-bar .bk-page-back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.bk-page-bar .bk-page-bar-title { font-size: 16px; font-weight: 700; color: #fff; }
.bk-page-bar .bk-page-bar-right { width: 32px; }
.bk-page-hero h2 { font-size: 26px; font-weight: 800; color: #fff; margin-top: 8px; position: relative; z-index: 2; text-shadow: 0 3px 12px rgba(0,44,96,.26); }
.bk-page-hero p { font-size: 12px; color: rgba(255,255,255,.95); margin-top: 6px; position: relative; z-index: 2; }

.bk-tabs { display: flex; gap: 8px; padding: 12px 12px 4px; }
.bk-tabs .bk-tab {
  flex: 1; text-align: center; font-size: 13px; color: var(--text-2); background: #fff;
  border-radius: 999px; padding: 8px 0; box-shadow: var(--shadow);
}
.bk-tabs .bk-tab.active { background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: #fff; font-weight: 700; }

.bk-list { padding: 10px 12px 4px; }
.bk-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.bk-card .bk-card-main { display: flex; gap: 10px; padding: 10px; }
.bk-card .bk-card-img { position: relative; width: 92px; height: 92px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #fafafa; }
.bk-card .bk-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-card .bk-card-img .bk-mini-ph { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #d8dde5; }
.bk-card .bk-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-card .bk-card-name { font-size: 14px; font-weight: 600; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bk-card .bk-card-sub { font-size: 11px; color: var(--text-3); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-card .bk-card-meta { font-size: 11px; color: var(--text-2); margin-top: auto; padding-top: 6px; }
.bk-card .bk-card-price { font-size: 15px; color: var(--price); font-weight: 800; }
.bk-card .bk-card-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-top: 1px solid var(--border); gap: 8px; }
.bk-card .bk-card-state { font-size: 12px; color: var(--text-2); }
.bk-card .bk-card-state b { color: var(--price); }
.bk-card .bk-btn {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
}
.bk-card .bk-btn.gray { background: #eceff3; color: var(--text-3); }
.bk-card .bk-btn.plain { background: #fff; color: var(--theme); border: 1px solid var(--theme); }
.bk-card .bk-badge {
  display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 4px; color: #fff; margin-right: 4px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
}
.bk-card .bk-badge.gray { background: #b7bec9; }

.bk-page-cta {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-bottom));
  width: calc(100% - 24px); max-width: 726px; text-align: center; padding: 13px 0;
  border-radius: 999px; font-size: 16px; font-weight: 700; color: #fff; z-index: 90;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  box-shadow: 0 8px 20px var(--theme-light);
}
.bk-empty { text-align: center; padding: 46px 0; color: var(--text-3); font-size: 13px; }
.bk-empty .bk-empty-icon { font-size: 40px; display: block; margin-bottom: 10px; opacity: .55; }

/* 预约提交表单 */
.bk-form-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bk-form-row label { width: 72px; font-size: 13px; color: var(--text-2); flex-shrink: 0; }
.bk-form-row input { flex: 1; font-size: 14px; color: var(--text-1); min-width: 0; }
.bk-form-row input::placeholder { color: var(--text-3); }
.bk-qty { display: flex; align-items: center; gap: 12px; }
.bk-qty span {
  width: 28px; height: 28px; border-radius: 50%; background: #f2f4f7; color: var(--text-1);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.bk-qty b { min-width: 26px; text-align: center; font-size: 15px; }
.bk-submit-tip { font-size: 12px; color: var(--text-3); line-height: 1.6; margin: 14px 0 4px; }
.bk-submit-btn {
  margin-top: 12px; text-align: center; padding: 13px 0; border-radius: 999px;
  font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
}
.bk-submit-btn.gray { background: #c9ced6; }
