/* ================================================================
   清水配送 H5 用户端 (user.css) - Apple Bento Card Style
   设计语言：Apple HIG + iOS 18 Water Delivery App 质感
   - 背景柔和 #F2F2F7，卡片纯白 + 1px 柔边 + 柔阴影
   - 渐变头不过饱和（Apple 蓝浅调），圆角 18-20px
   ================================================================ */

/* 确保 Vant 品牌色 token 与公共 CSS 一致（覆盖 common 之前遗留 token，保持兼容） */
:root {
    --blue:           var(--h5-blue);
    --van-primary-color: var(--h5-blue);
}

/* 安全覆盖：与 common.css 相同但更具体的 body，防白屏兼容 */
html, body { margin: 0; padding: 0; }
.h5-main { padding-bottom: 66px; }
.def-img {
    background: var(--h5-card-2);
    border-radius: var(--h5-radius-xs);
}
.orig-price {
    color: var(--h5-text-3);
    text-decoration: line-through;
    font-size: 12px;
    margin-left: 4px;
}
.mini-tag {
    display: inline-block;
    font-size: 10px;
    line-height: 14px;
    padding: 0 5px;
    border-radius: 5px;
    margin-right: 4px;
    font-weight: 600;
}
.tag-ticket {
    color: var(--h5-blue);
    background: rgba(64,158,255,.10);
}
.tag-deposit {
    color: var(--h5-orange);
    background: rgba(255,159,10,.12);
}

/* 下拉刷新容器高度（Apple 优化：底部留 8px 缓冲，防 iPhone safe-area 裁切） */
.pr-home { min-height: calc(100vh - 230px); }
.ord-pr  { min-height: calc(100vh - 140px); }
/* 商品详情：顶部 fixed nav 占位 46px，底部 action-bar 浮于内容上（内容已有 58px spacer） */
.pd-pr   { min-height: calc(100vh - 46px); }
@supports (height: 100dvh) {
    .pr-home { min-height: calc(100dvh - 230px); }
    .ord-pr  { min-height: calc(100dvh - 140px); }
    .pd-pr   { min-height: calc(100dvh - 46px); }
}

/* ====================================================================
   登录页 - 柔和渐变 + 大圆角 Logo 卡
   ==================================================================== */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(64,158,255,.22), transparent 70%),
        linear-gradient(180deg, #F5F9FF 0%, var(--h5-bg) 45%);
    padding-top: 72px;
    padding-bottom: 40px;
}
.login-brand {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--h5-blue);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-brand i {
    background: linear-gradient(135deg, var(--h5-blue), #6ab7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 34px;
}
.login-slogan {
    text-align: center;
    color: var(--h5-text-2);
    font-size: 13px;
    margin: 8px 0 28px;
    font-weight: 500;
}
.login-mode-switch {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: var(--h5-text-2);
    font-size: 14px;
    margin: 0 0 14px;
    background: rgba(120,120,128,.08);
    padding: 4px;
    border-radius: 999px;
    margin-left: 16px;
    margin-right: 16px;
    width: fit-content;
}
.login-mode-switch {
    margin-inline: auto;
    margin-bottom: 14px;
}
.login-mode-switch span {
    padding: 6px 16px;
    cursor: pointer;
    border-radius: 999px;
    transition: all .2s ease;
    font-weight: 500;
    font-size: 13px;
}
.login-mode-switch span.on {
    background: #fff;
    color: var(--h5-blue);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.login-mode-switch .divider {
    display: none;
}
.login-forgot {
    text-align: center;
    margin: 14px 0 8px;
    color: var(--h5-blue);
    font-size: 13px;
    font-weight: 500;
}
.login-tip {
    text-align: center;
    margin: 4px 0 26px;
    color: var(--h5-text-2);
    font-size: 13px;
}
.forgot-popup {
    padding: 20px 0 24px;
}
.forgot-head {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--h5-text);
}
.forgot-mode-switch {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: var(--h5-text-2);
    font-size: 13px;
    margin: 0 16px 12px;
    background: rgba(120,120,128,.08);
    padding: 4px;
    border-radius: 999px;
    width: fit-content;
    margin-inline: auto;
    margin-bottom: 14px;
}
.forgot-mode-switch span {
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 500;
    transition: all .2s ease;
}
.forgot-mode-switch span.on {
    background: #fff;
    color: var(--h5-blue);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.forgot-mode-switch .divider { display: none; }
.forgot-actions {
    padding: 8px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.demo-code-bar {
    margin: 14px 22px 0;
    background: rgba(255,159,10,.11);
    color: #B76E00;
    font-size: 12px;
    padding: 9px 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

/* ====================================================================
   首页 - Apple 蓝浅调头部 + Bento 分类格 + 商品列表卡
   ==================================================================== */
.page-home {
    background: var(--h5-bg);
}
.home-head {
    background:
        radial-gradient(ellipse 100% 60% at 10% 0%, rgba(64,158,255,.30), transparent 60%),
        radial-gradient(ellipse 80% 50% at 90% -10%, rgba(52,199,89,.15), transparent 60%),
        linear-gradient(135deg, #8EC3FF 0%, #409eff 60%, #3A8CE8 100%);
    padding: 22px 18px 18px;
    position: relative;
    overflow: hidden;
}
.home-head::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.14);
    border-radius: 50%;
    filter: blur(20px);
}
.home-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.home-title i {
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 20px;
}
.home-site-logo {
    height: 26px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.12));
}
.login-site-logo {
    height: 32px;
    display: inline-block;
}
.home-slogan {
    color: rgba(255,255,255,.88);
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* 分类格：Apple Bento 格子 */
.cat-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 10px;
    padding: 14px 14px 10px;
    background: transparent;
}
.cat-scroll .chip {
    text-align: center;
    background: #fff;
    color: var(--h5-text);
    border-radius: var(--h5-radius-md);
    padding: 12px 6px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
    font-weight: 500;
}
.cat-scroll .chip.on {
    background: linear-gradient(135deg, rgba(64,158,255,.14), rgba(64,158,255,.06));
    color: var(--h5-blue);
    font-weight: 700;
    border-color: rgba(64,158,255,.28);
    box-shadow: 0 2px 10px rgba(64,158,255,.15);
}

/* 商品列表 */
.product-list {
    padding: 4px 14px 12px;
}
.pcard {
    display: flex;
    background: #fff;
    border-radius: var(--h5-radius-md);
    padding: 12px;
    margin-top: 12px;
    box-shadow: var(--h5-shadow-sm);
    position: relative;
    border: 1px solid var(--h5-border-2);
    transition: all .2s ease;
}
.pcard:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
    transform: translateY(-1px);
}
.pimg {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--h5-card-2);
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.pinfo {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    padding-bottom: 30px;
}
.pname {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--h5-text);
    letter-spacing: -0.01em;
}
.pspec {
    color: var(--h5-text-2);
    font-size: 12px;
    margin-top: 3px;
    font-weight: 500;
}
.ptags {
    margin-top: 6px;
    min-height: 16px;
}
.pprice {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.pprice > .price-num {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.psales {
    color: var(--h5-text-3);
    font-size: 11px;
    margin-top: 2px;
    padding-right: 34px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.padd {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #5FAEFF, #409eff);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(64,158,255,.38);
    transition: transform .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.padd i {
    font-size: 13px;
}
.padd:active {
    transform: scale(.9);
}
.padd.soldout-tag {
    background: rgba(120,120,128,.25);
    color: var(--h5-text-2);
    font-size: 10px;
    line-height: 1.3;
    padding: 0 8px;
    border-radius: 999px;
    width: auto;
    box-shadow: none;
    height: 24px;
    font-weight: 600;
}

/* 购物车浮动按钮 - Apple 毛玻璃 + 阴影 */
.cart-fab {
    position: fixed;
    right: 14px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5FAEFF, #409eff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(64,158,255,.45);
    z-index: 60;
    font-size: 19px;
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(10px);
    transition: transform .15s ease;
}
.cart-fab:active { transform: scale(.92); }

/* ====================================================================
   商品详情 - Apple 大图 + 白色信息卡
   ==================================================================== */
.pd-banner-wrap {
    position: relative;
    /* 直角：多图商品（如详情长图拼接）在圆角裁切下会出现接缝难看的问题（2026-10 用户要求） */
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.pd-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--h5-card-2);
    display: block;
}
.pd-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.pd-card {
    background: #fff;
    border-radius: var(--h5-radius-md);
    margin: 14px;
    padding: 16px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.pd-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--h5-text);
    letter-spacing: -0.02em;
}
.pd-price {
    display: flex;
    align-items: baseline;
    margin-top: 8px;
    gap: 6px;
}
.pd-price .price-num {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.pd-tags {
    margin-top: 10px;
}
.pd-desc {
    margin: 14px;
    background: #fff;
    border-radius: var(--h5-radius-md);
    padding: 16px;
    font-size: 13px;
    color: var(--h5-text-2);
    line-height: 1.75;
    word-break: break-all;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.pd-desc img {
    max-width: 100%;
    border-radius: 12px;
    margin: 8px 0;
}
/* 商品详情富文本（后台编辑器输出的 <p><img></p> 图片串）：
   此前 .pd-rich 完全没有样式 —— 浏览器默认 p 边距 + 图片基线空隙，
   连续详情图之间出现大段缝隙。文本段保留行距，图片段落零间隙堆叠。 */
.pd-rich p { margin: 8px 0; }
.pd-rich p:has(img) { margin: 0; }
.pd-rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* ====================================================================
   购物车 - Apple 细分隔 + 大号合计
   ==================================================================== */
/* 购物车是底部 tab（2026-10 改版）：结算栏上移到 tabbar 正上方；
   tabbar 总高 = content-box 50px + common.css 的 env(safe-area-inset-bottom) padding */
.van-submit-bar.cart-submit {
    bottom: calc(var(--van-tabbar-height) + env(safe-area-inset-bottom));
    padding-bottom: 0 !important;
}
.cart-clear-btn {
    font-size: 13px;
    color: var(--h5-text-2);
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 500;
}
.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--h5-radius-md);
    margin: 12px 14px;
    padding: 12px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.cart-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--h5-card-2);
    flex-shrink: 0;
}
.cart-info {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
}
.cart-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--h5-text);
}
.cart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.cart-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: var(--h5-radius-md);
    margin: 12px 14px;
    padding: 14px 16px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.cart-amt {
    background: #fff;
    border-radius: var(--h5-radius-md);
    /* 下边距 62 = 12 常规 + 50：购物车 2026-10 起是底部 tab，页脚还有
       「结算栏(50) + tabbar(50+env)」两层固定条，page-shell 的 60px 余量不够 */
    margin: 12px 14px 62px;
    padding: 14px 16px;
    font-size: 13px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.amt-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--h5-text-2);
    font-weight: 500;
}
.amt-row.total {
    font-weight: 800;
    font-size: 16px;
    border-top: 1px solid var(--h5-border-2);
    padding-top: 12px;
    margin-top: 8px;
    color: var(--h5-text);
    letter-spacing: -0.01em;
}
.amt-row.total .price-num {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ====================================================================
   结算 - 地址卡大圆角 + 固定底部栏
   ==================================================================== */
.addr-card {
    background: #fff;
    border-radius: var(--h5-radius-md);
    margin: 12px 14px;
    padding: 14px 16px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.addr-line1 {
    font-size: 15px;
    font-weight: 700;
    color: var(--h5-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.addr-line1 i {
    color: var(--h5-blue);
    font-size: 13px;
}
.addr-line2 {
    color: var(--h5-text-2);
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.55;
    font-weight: 500;
}
.cs-cell { background: #fff; }
.cs-amt {
    background: #fff;
    border-radius: var(--h5-radius-md);
    margin: 12px 14px;
    padding: 14px 16px;
    font-size: 13px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.cs-submit {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--h5-border-2);
    z-index: 20;
}
.cs-submit .pay {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    color: var(--h5-red);
    letter-spacing: -0.01em;
}
.cs-submit .pay .price-num {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ====================================================================
   地址管理 - 列表卡片 + 底部固定新建按钮
   ==================================================================== */
.addr-item {
    background: #fff;
    border-radius: var(--h5-radius-md);
    margin: 12px 14px;
    padding: 14px 16px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.addr-item .row1 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.addr-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--h5-text);
    margin-right: 4px;
}
.addr-detail {
    color: var(--h5-text-2);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.55;
    font-weight: 500;
}
.addr-ops {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--h5-border-2);
    font-size: 13px;
    color: var(--h5-text-2);
    font-weight: 500;
}
.addr-ops i {
    margin-right: 4px;
    color: var(--h5-blue);
    font-size: 12px;
}
.addr-bottom-fab {
    position: fixed;
    left: 14px; right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 10;
}

/* ====================================================================
   订单 - 卡片列表
   ==================================================================== */
.order-item {
    background: #fff;
    border-radius: var(--h5-radius-md);
    margin: 12px 14px;
    padding: 14px 16px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-no {
    color: var(--h5-text-3);
    font-size: 11px;
    font-weight: 500;
}
.order-items {
    color: var(--h5-text);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.5;
}
.order-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--h5-border-2);
}
.order-btn { font-size: 12px; }
.order-foot .price-num {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ====================================================================
   券 - Apple 渐变余额卡 + 卡片列表
   ==================================================================== */
.ticket-balance {
    margin: 16px 14px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255,255,255,.2), transparent 60%),
        linear-gradient(135deg, #6ab7ff, #409eff 55%, #3A8CE8);
    border-radius: var(--h5-radius-lg);
    color: #fff;
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(64,158,255,.30);
    border: 1px solid rgba(255,255,255,.22);
}
.ticket-balance::after {
    content: "";
    position: absolute;
    right: -50px; top: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.16);
    border-radius: 50%;
    filter: blur(16px);
}
.ticket-balance .label {
    font-size: 12px;
    opacity: .88;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}
.ticket-balance .big {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 4px;
    position: relative;
    z-index: 2;
}
.ticket-balance .sub {
    margin-top: 4px;
    font-size: 11px;
    opacity: .82;
    position: relative;
    z-index: 2;
    font-weight: 500;
}
.ticket-item {
    background: #fff;
    border-radius: var(--h5-radius-md);
    margin: 12px 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.ticket-item .left {
    font-weight: 600;
    color: var(--h5-text);
    font-size: 14px;
}
.ticket-item .left i {
    color: var(--h5-blue);
    margin-right: 6px;
    font-size: 13px;
}
.ticket-item .num {
    color: var(--h5-blue);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}

/* 券页顶栏入口（购买记录 → 子页） */
.tk-nav-rec {
    font-size: 13px;
    color: var(--h5-blue);
    cursor: pointer;
    padding: 4px 2px;
}
/* 券页：购买按钮常驻底部栏（fixed，压在 tabbar 正上方不重叠；list 已有下方 padding） */
.tk-fixed-bar {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(51px + env(safe-area-inset-bottom));
    z-index: 30;
    padding: 10px 16px;
    background: rgba(255,255,255,.94);
    border-top: 1px solid var(--h5-border-2);
    backdrop-filter: blur(10px);
}
.tk-fixed-bar .van-button { width: 100%; }
/* 券列表容器（390x844 实测：容器 top=219、tabbar 51 → min-height=100vh-270 让
   bottom 正好落在 tabbar 顶、gap=0，空态下拉不被裁切；见 AGENTS 铁律 18） */
.tk-pr {
    min-height: calc(100vh - 270px);
    padding-bottom: 92px;
}
/* 购买记录子页（无 tabbar：top=47 → 100vh-50，gap≈3） */
.tkr-pr { min-height: calc(100vh - 50px); }
.tbp-rec-list { padding: 4px 16px 20px; }
@supports (height: 100dvh) {
    .tk-pr  { min-height: calc(100dvh - 270px); }
    .tkr-pr { min-height: calc(100dvh - 50px); }
}
.tbp-desc {
    margin: 12px 14px 4px;
    font-size: 12px;
    line-height: 1.6;
}
.tbp-grid {
    margin: 12px 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 96px;
}
.tbp-card {
    background: #fff;
    border: 1.5px solid var(--h5-border-2);
    border-radius: var(--h5-radius-md);
    padding: 16px;
    text-align: center;
    transition: all .18s ease;
    box-shadow: var(--h5-shadow-sm);
}
.tbp-card.on {
    border-color: var(--h5-blue);
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, .12);
}
.tbp-qty { font-size: 18px; font-weight: 700; color: var(--h5-text); }
.tbp-price { font-size: 15px; font-weight: 800; color: var(--h5-blue); margin-top: 6px; }
.tbp-sub { font-size: 11px; margin-top: 4px; }
.tbp-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--h5-border-2);
    z-index: 20;
}
.tbp-total { font-size: 12px; color: var(--h5-text-2); }
.tbp-total-num { font-size: 22px; font-weight: 800; color: var(--h5-text); margin-left: 4px; }
.tbp-qr-order {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 4px;
    font-size: 12px;
}
.tbp-qr-actions { margin-top: 14px; }
.tbp-rec-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--h5-border-2);
}
.tbp-rec-item:last-child { border-bottom: none; }
.tbp-rec-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* ====================================================================
   我的 - Apple 头像卡 + 分组列表
   ==================================================================== */
.mine-head {
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 100% 60% at 10% 0%, rgba(64,158,255,.35), transparent 60%),
        radial-gradient(ellipse 80% 50% at 90% 10%, rgba(52,199,89,.18), transparent 60%),
        linear-gradient(135deg, #7FB8FF, #409eff 55%, #3A8CE8);
    padding: 30px 18px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--h5-radius-lg) var(--h5-radius-lg);
}
.mine-head::after {
    content: "";
    position: absolute;
    right: -40px; top: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.14);
    border-radius: 50%;
    filter: blur(24px);
}
.mine-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--h5-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255,255,255,.5);
}
.mine-info {
    margin-left: 14px;
    position: relative;
    z-index: 2;
}
.mine-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mine-name i {
    font-size: 14px;
    opacity: .9;
}
.mine-phone {
    font-size: 12px;
    opacity: .88;
    margin-top: 5px;
    font-weight: 500;
}
.mine-edit-hint {
    font-size: 11px;
    opacity: .8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mine-info { cursor: pointer; }

/* 绑定业务员 */
.binding-card {
    margin: 14px;
    background: #fff;
    border-radius: var(--h5-radius-md);
    padding: 18px 16px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.binding-name {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--h5-text);
    letter-spacing: -0.01em;
}
.binding-status {
    margin-top: 12px;
}
.binding-form {
    margin-top: 8px;
}
.sk-card-list { padding: 14px; }
.sk-card-list .van-skeleton {
    background: #fff;
    border-radius: var(--h5-radius-md);
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}

/* 解绑弹层 */
.unbind-wrap { padding: 16px; }
.unbind-title {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--h5-text);
}

/* 二维码弹层 */
.qr-wrap {
    padding: 22px 16px;
    text-align: center;
}
.qr-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--h5-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.profile-menu {
    padding: 22px 16px 4px;
}
.qr-title i { color: var(--h5-blue); }
.qr-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
}
.qr-box {
    width: 46%;
    background: #fff;
    border: 1px solid var(--h5-border-2);
    border-radius: var(--h5-radius-md);
    padding: 12px;
    box-shadow: var(--h5-shadow-sm);
}
.qr-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.qr-box .qr-name {
    font-size: 12px;
    color: var(--h5-text-2);
    margin-top: 8px;
    font-weight: 500;
}
.qr-refresh { margin-top: 18px; }

/* 时间线（订单状态流） */
.tl { padding: 14px; }
.tl-item {
    position: relative;
    padding-left: 22px;
    padding-bottom: 18px;
    border-left: 2px solid rgba(60,60,67,.10);
    margin-left: 8px;
}
.tl-item:last-child { border-left-color: transparent; }
.tl-dot {
    position: absolute;
    left: -7px; top: 3px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--h5-blue);
    box-shadow: 0 0 0 4px rgba(64,158,255,.12);
}
.tl-item.done .tl-dot {
    background: var(--h5-green);
    box-shadow: 0 0 0 4px rgba(52,199,89,.15);
}
.tl-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--h5-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tl-meta {
    font-size: 12px;
    color: var(--h5-text-2);
    margin-top: 4px;
    line-height: 1.5;
    font-weight: 500;
}

/* 商品详情图集：多图轮播 + 计数/圆点（后台可传多图，原来只显示主图） */
.pd-swipe { width: 100%; }
.pd-swipe .van-swipe__track { height: 300px; }
.pd-banner-count {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    padding: 2px 10px; border-radius: 999px;
    background: rgba(0,0,0,.45); color: #fff; font-size: 12px; line-height: 18px;
}
.pd-banner-dots {
    position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
    display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.pd-banner-dots i {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.35);
}
.pd-banner-dots i.on { background: #fff; width: 16px; border-radius: 3px; }

/* ====================================================================
   地址编辑（按参考稿重排：门牌号 → 联系人+称呼 → 手机号+86 → 标签胶囊
   → 省市区 → 选择收货地址 → 粘贴智能识别 → 设为默认）
   ==================================================================== */
.addr-form-card {
    background: var(--h5-card);
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
    border-radius: var(--h5-radius-md);
    padding: 14px 14px 4px;
    margin: 0 0 12px;
    overflow: hidden;
}
.addr-form-card .van-field { padding: 10px 0; }
.addr-form-card .van-field--error .van-field__control { color: var(--h5-red); }
.addr-form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--h5-text-2);
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}
/* 联系人称呼：分段选择（先生/女士/其他） */
.addr-gender-row {
    display: flex;
    gap: 8px;
    padding: 6px 0 10px;
}
.addr-gender-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--h5-text-2);
    background: var(--h5-card-2);
    border-radius: 999px;
    padding: 8px 0;
    transition: all .15s ease;
}
.addr-gender-btn.on {
    color: #fff;
    background: var(--h5-blue);
    box-shadow: 0 2px 8px rgba(64,158,255,.35);
}
/* 手机号 +86 前缀 */
.addr-tel-prefix {
    font-size: 13px;
    font-weight: 700;
    color: var(--h5-text);
    margin-right: 6px;
    padding-right: 6px;
    border-right: 1px solid var(--h5-border-2);
    line-height: 1;
}
/* 标签四选一：胶囊按钮 */
.addr-tag-row {
    display: flex;
    gap: 8px;
    padding: 6px 0 12px;
}
.addr-tag-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--h5-text-2);
    background: var(--h5-card-2);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 0;
    transition: all .15s ease;
}
.addr-tag-btn.on {
    color: var(--h5-blue);
    background: rgba(64,158,255,.10);
    border-color: var(--h5-blue);
    font-weight: 700;
}
/* 粘贴文本，智能识别地址信息 */
.addr-paste-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(64,158,255,.05);
    border-style: dashed;
    border-color: rgba(64,158,255,.25);
}
.addr-paste-hint {
    font-size: 13px;
    font-weight: 600;
    color: var(--h5-text);
}
.addr-paste-hint::before {
    content: '📋 ';
    font-size: 14px;
}
.addr-paste-card .van-button { flex-shrink: 0; }
/* 设为默认 */
.addr-form-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
}
.addr-form-switch span {
    font-size: 14px;
    font-weight: 600;
    color: var(--h5-text);
}
/* 粘贴兜底弹层（已废弃：2026-10 改为输入框模式，不再弹层；保留样式避免老缓存页面错位） */
.addr-paste-fallback {
    padding: 16px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.addr-paste-fb-head {
    font-size: 15px;
    font-weight: 700;
    color: var(--h5-text);
    text-align: center;
}

/* ====================================================================
   2026-10 地址表单 & 确认订单 优化
   1) 省市区不再三级联动：「手动修改」直接改文字
   2) 粘贴识别：默认一句提示 + 「粘贴」；点提示/粘贴→输入框模式（粘贴 + 识别）
   3) 保存按钮固定在底部，信息不全灰、齐了蓝
   4) 支付方式：图文单选 + 官方 logo
   ==================================================================== */
.addr-region-edit {
    flex: 0 0 auto;
    margin-left: 8px;
    font-size: 13px;
    color: var(--h5-blue);
    white-space: nowrap;
}
.addr-region-edit:active { opacity: .6; }
/* 粘贴卡：默认一行（提示 + 粘贴按钮）；editing 时竖向堆叠（输入框 + 右下角两个按钮） */
.addr-paste-card.me-paste { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addr-paste-card.me-paste.editing { display: block; }
.addr-paste-card.me-paste .addr-paste-hint { flex: 1 1 auto; }
.addr-paste-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid var(--h5-line);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    color: var(--h5-text);
    resize: none;
    outline: none;
    font-family: inherit;
}
.addr-paste-input:focus { border-color: var(--h5-blue); }
.addr-paste-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
/* 保存按钮永远在最底部。
   【为什么用 sticky 而不是 fixed】H5 页面切换动画会给 `.page-shell` 加 transform，
   而 transform 祖先会让 `position:fixed` 退化成"相对该祖先定位"——按钮跑到内容中段、
   还会被 `.addr-sheet`（z-index:810，自身 stacking context）盖住导致点不到。
   sticky 相对最近的滚动容器（这里是 window）生效，且不脱离文档流，不会遮挡表单最后一行。 */
.me-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 900;
    max-width: 520px;
    margin: 0 auto;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--h5-line);
}
/* 确认订单：支付方式图文单选 */
.cs-pay {
    margin: 10px 12px 0;
    padding: 12px 14px;
    background: #fff;
    border-radius: var(--h5-radius-sm, 14px);
}
.cs-pay-title { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--h5-text); }
.pay-opts { display: flex; gap: 10px; }
.pay-opt {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px 10px;
    border: 1.5px solid var(--h5-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.pay-opt:active { transform: scale(.98); }
.pay-opt.on { border-color: var(--h5-blue); background: rgba(64,158,255,.06); }
.pay-opt-logo { display: block; width: 30px; height: 30px; }
.pay-opt-name { font-size: 12px; color: var(--h5-text-2); white-space: nowrap; }
.pay-opt.on .pay-opt-name { color: var(--h5-blue); font-weight: 600; }
.pay-opt-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--h5-blue);
    color: #fff;
    opacity: 0;
    transition: opacity .18s ease;
}
.pay-opt.on .pay-opt-check { opacity: 1; }

/* ====================================================================
   美团式地址编辑两级界面
   界面1：透明导航浮层 + 顶部地图 + 白色圆角表单 sheet
   界面2：poi-view 全屏 POI 选择（城市/搜索 + 地图 + 周边单选 + 确认）
   ==================================================================== */
/* --- 界面1：透明导航 --- */
.addr-edit-head {
    position: relative;
    z-index: 820;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px;
    margin-bottom: -52px;
    pointer-events: none;
}
.addr-edit-head .ae-back,
.addr-edit-head .ae-search { pointer-events: auto; }
.ae-back {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    color: var(--h5-text);
    flex-shrink: 0;
}
.ae-back:active, .ae-search:active { transform: scale(.94); }
.ae-title {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    height: 34px;
    line-height: 34px;
    font-size: 16px;
    font-weight: 700;
    color: var(--h5-text);
    text-shadow: 0 1px 2px rgba(255,255,255,.85);
    white-space: nowrap;
}
.ae-search {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    font-size: 14px;
    font-weight: 600;
    color: var(--h5-text);
    flex-shrink: 0;
}
/* --- 界面1：地图 --- */
.addr-edit-mapwrap { position: relative; height: 44vh; min-height: 260px; }
.addr-edit-map { width: 100%; height: 100%; background: #ECEAE6; }
.map-locate-btn {
    position: absolute;
    right: 12px;
    bottom: 26px;
    z-index: 800;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--h5-text);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.map-locate-btn:active { transform: scale(.94); }
/* --- 界面1：白色表单 sheet --- */
.addr-sheet {
    position: relative;
    z-index: 810;
    background: var(--h5-card);
    border-radius: 16px 16px 0 0;
    margin-top: -14px;
    padding: 4px 16px calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.addr-sheet .addr-form-label {
    width: 62px;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--h5-text);
    letter-spacing: 0;
    margin-bottom: 0;
}
/* 地址（POI）行 */
.me-addr-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--h5-separator);
}
.me-addr-value { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.me-addr-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--h5-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.me-addr-sub {
    font-size: 12px;
    color: var(--h5-text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.me-addr-ph { font-size: 15px; color: var(--h5-text-3); }
.me-addr-arrow { color: #C8C9CC; flex-shrink: 0; }
/* 表单行 */
.me-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--h5-separator);
}
.me-row-top { align-items: flex-start; }
.me-row-top .addr-form-label { padding-top: 7px; }
.me-input { flex: 1; min-width: 0; padding: 0 !important; }
.me-input .van-field__control { font-size: 15px; }
/* 联系人称呼：单选圆点 */
.me-gender { display: flex; gap: 14px; flex-shrink: 0; }
.me-radio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--h5-text-2);
}
.me-radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #C8C9CC;
    box-sizing: border-box;
    background: #fff;
    transition: all .15s ease;
}
.me-radio.on { color: var(--h5-blue); font-weight: 600; }
.me-radio.on .me-radio-dot {
    border-color: var(--h5-blue);
    background: radial-gradient(circle, var(--h5-blue) 0 4px, #fff 5px);
}
/* 手机号 +86 */
.me-tel {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--h5-text);
    padding-right: 10px;
    border-right: 1px solid var(--h5-separator);
    flex-shrink: 0;
}
/* 标签胶囊（覆盖 .addr-tag-* 为紧凑不拉伸样式） */
.addr-sheet .addr-tag-row { padding: 0; flex-wrap: wrap; gap: 10px; }
.addr-sheet .addr-tag-btn { flex: 0 0 auto; min-width: 62px; padding: 7px 16px; }
.addr-sheet .addr-form-switch { padding: 14px 0 4px; border-bottom: none; }
/* 粘贴智能识别卡片 */
.me-paste {
    border: none;
    border-radius: var(--h5-radius-sm);
    background: var(--h5-card-2);
    margin-top: 14px;
    padding: 12px 14px;
}
.me-paste .addr-paste-hint { font-weight: 500; color: var(--h5-text-2); }
.me-paste .addr-paste-hint::before { content: ''; }
/* 保存按钮 */
.me-save-bar { margin-top: 22px; }
.me-save-btn.van-button {
    height: 48px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    background: #E8E9EC !important;
    color: #B4B6BF !important;
}
.me-save-btn.van-button--disabled { opacity: 1; }
.me-save-btn.ready.van-button {
    background: linear-gradient(90deg, #339DFF, var(--h5-blue)) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px -6px rgba(0,113,227,.45);
}

/* --- 界面2：POI 全屏选择 --- */
.poi-view {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: var(--h5-bg);
    display: flex;
    flex-direction: column;
}
.poi-head {
    margin-bottom: 0;
    background: var(--h5-card);
    pointer-events: auto;
    flex-shrink: 0;
}
.poi-head .ae-title { text-shadow: none; }
.poi-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 10px;
    background: var(--h5-card);
    border-bottom: 1px solid var(--h5-separator);
    flex-shrink: 0;
}
.poi-city {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 15px;
    font-weight: 700;
    color: var(--h5-text);
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}
.poi-divider { width: 1px; height: 18px; background: var(--h5-border); flex-shrink: 0; }
.poi-input { flex: 1; min-width: 0; padding: 0 !important; background: transparent !important; }
.poi-input .van-search__content { border-radius: 999px; background: var(--h5-card-2); }
.poi-mapwrap { position: relative; height: 34vh; min-height: 220px; flex-shrink: 0; }
.poi-map { width: 100%; height: 100%; background: #ECEAE6; }
.poi-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--h5-card);
    border-radius: 16px 16px 0 0;
    margin-top: -14px;
    position: relative;
    z-index: 5;
    overflow: hidden;
}
.poi-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #FFF6E8;
    color: #B26205;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}
.poi-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.poi-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--h5-separator);
}
.poi-row:active { background: rgba(120,120,128,.05); }
.poi-ico { color: #C8C9CC; flex-shrink: 0; }
.poi-row.on .poi-ico { color: var(--h5-blue); }
.poi-main { flex: 1; min-width: 0; }
.poi-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--h5-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.poi-row.on .poi-name { color: var(--h5-blue); font-weight: 700; }
.poi-addr {
    font-size: 12px;
    color: var(--h5-text-3);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.poi-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #C8C9CC;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.poi-radio.on { background: var(--h5-blue); border-color: var(--h5-blue); }
.poi-empty { padding: 32px 16px; text-align: center; font-size: 13px; color: var(--h5-text-3); }
.poi-confirm-bar {
    flex-shrink: 0;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
    background: var(--h5-card);
    box-shadow: 0 -4px 16px rgba(0,0,0,.05);
}
.poi-confirm-bar .van-button { height: 46px; font-size: 16px; font-weight: 700; }

/* --- Leaflet 自定义标记（气泡 + 橙色配送标签 + 蓝色圆点） --- */
.me-pin-wrap { background: none; border: none; }
.me-pin {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: 240px;
}
.me-pin-tag {
    background: linear-gradient(90deg, #FF8A00, #FF5F00);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 9px 9px 9px 2px;
    box-shadow: 0 2px 8px rgba(255,95,0,.35);
    margin-bottom: 4px;
    white-space: nowrap;
}
.me-pin-bubble {
    background: #fff;
    color: #1D1D1F;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 10px 10px 10px 2px;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}
.me-pin-dot {
    width: 16px;
    height: 16px;
    background: var(--h5-blue, #0071E3);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    flex-shrink: 0;
}

/* --- 电子围栏超区提醒（结算页 + 地址列表） --- */
.cs-fence-warn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 12px 0;
    padding: 9px 12px;
    background: rgba(255,59,48,.07);
    border: 1px solid rgba(255,59,48,.22);
    border-radius: var(--h5-radius-xs, 12px);
    color: var(--h5-red, #FF3B30);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}
.addr-fence-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--h5-red, #FF3B30);
}

/* ====================================================================
   覆盖层（v2，最后加载）—— 只重定义皮肤，不动类名与几何常量
   ==================================================================== */

/* --- 确认订单页：备注输入框卡片化（背景/圆角/边框与本页其它输入框完全一致） ---
   现状：备注 van-field 直接躺在页面灰底 #F5F5F7 上（common.css 把 .van-cell 背景设为
   transparent !important），而本页所有其它输入/信息块（.addr-card / .cs-cell / .cs-pay /
   .cs-amt）都是白底 22px 圆角卡片 → 观感"这一栏没做完"。
   统一到与 .cs-cell / .addr-card 完全相同的 rgb(255,255,255) + var(--h5-radius-md) + 同边框阴影。
   注意：common.css 用了 !important，覆盖层必须同样 !important 才能赢。 */
.cs-remark {
    background: #fff !important;
    border-radius: var(--h5-radius-md);
    margin: 12px 14px;
    padding: 4px 16px;
    border: 1px solid var(--h5-border-2);
    box-shadow: var(--h5-shadow-sm);
}
.cs-remark .van-field,
.cs-remark .van-cell,
.cs-remark .van-field__body,
.cs-remark .van-field__value,
.cs-remark .van-field__control {
    background-color: #fff !important;
}
.cs-remark .van-field { padding: 12px 0 !important; }
.cs-remark .van-field::after { display: none !important; }
.cs-remark .van-field__word-limit { color: var(--h5-text-3); font-size: 12px; }

/* --- 地址表单：地址栏文本来源提示 + 派生地址允许两行 --- */
.me-addr-value .me-addr-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}
.me-addr-src {
    align-self: flex-start;
    margin-top: 3px;
    padding: 1px 7px;
    border-radius: 7px;
    background: #FFF6E8;
    color: #B26205;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}
/* --- 地址表单：手填地址未能解析坐标的显式告警（保存不阻断，但要让用户看见围栏风险） --- */
.me-geo-warn {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 14px 0 0;
    padding: 9px 12px;
    background: rgba(255,149,0,.10);
    border: 1px solid rgba(255,149,0,.28);
    border-radius: var(--h5-radius-sm);
    color: #B26205;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
}
