@charset "utf-8";
/* 提货系统 H5 移动端主题 (original) —— 适配 layui + jquery */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 1.4rem; color: #333; background: #f5f5f5; line-height: 1.6; padding-bottom: 2rem; }
a { color: inherit; text-decoration: none; }
img { border: 0; vertical-align: middle; }
input, button, textarea, select { font-family: inherit; outline: none; }
.bg-red { background: #e64340 !important; }
.color-red { color: #e64340; }
.color-green { color: #09bb07; }
.color-gray { color: #999; }
.hide { display: none !important; }

/* ===== 顶部固定标题栏 ===== */
.fixtit { position: fixed; top: 0; left: 0; right: 0; height: 4rem; line-height: 4rem; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08); z-index: 999; display: flex; align-items: center; justify-content: center; }
.fixtit i.back { position: absolute; left: 1rem; width: 2rem; height: 2rem; cursor: pointer; }
.fixtit i.back:before { content: ""; display: block; width: 1rem; height: 1rem; border-left: 2px solid #333; border-bottom: 2px solid #333; transform: rotate(45deg); margin-left: .4rem; }
.fixtit span.tab { padding: 0 1rem; font-size: 1.6rem; color: #999; cursor: pointer; }
.fixtit span.tab.on { color: #e64340; font-weight: 700; position: relative; }
.fixtit span.tab.on:after { content: ""; position: absolute; left: 50%; bottom: .2rem; transform: translateX(-50%); width: 2rem; height: 2px; background: #e64340; border-radius: 2px; }
.fixtit a.head-more { position: absolute; right: 1rem; width: 2rem; height: 2rem; cursor: pointer; }
.fixtit a.head-more i.icon-nav1 { display: block; width: 1.8rem; height: 1.8rem; margin-top: 1.1rem; background: linear-gradient(#333,#333) top/100% 2px no-repeat, linear-gradient(#333,#333) center/100% 2px no-repeat, linear-gradient(#333,#333) bottom/100% 2px no-repeat; }

/* 下拉导航 */
.hide-nav { display: none; position: fixed; top: 4rem; right: .5rem; z-index: 998; background: #fff; border-radius: .6rem; box-shadow: 0 2px 12px rgba(0,0,0,.15); padding: .5rem 0; }
.hide-nav.show { display: block; }
.hide-nav-box a { display: block; padding: .8rem 2rem; font-size: 1.4rem; white-space: nowrap; }
.hide-nav-box a:active { background: #f2f2f2; }

/* ===== 轮播 ===== */
.banner { margin-top: 4rem; position: relative; overflow: hidden; background: #fff; }
.banner .swiper-container { width: 100%; }
.banner .swiper-slide img { width: 100%; display: block; }
.banner .swiper-pagination-bullet { background: rgba(255,255,255,.6); }
.banner .swiper-pagination-bullet-active { background: #e64340; }
.banner .slides { display: flex; transition: transform .3s ease; }
.banner .slides img { width: 100%; flex-shrink: 0; display: block; }
.banner .dots { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; }
.banner .dots i { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255,255,255,.6); margin: 0 .3rem; }
.banner .dots i.on { background: #e64340; }

/* ===== 门店选择栏 ===== */
.store-select-bar { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.2rem; background: #fff; border-bottom: 1px solid #f0f0f0; font-size: 1.3rem; }
.store-select-bar .store-select-name { color: #333; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.store-select-bar .store-select-change { color: #e64340; font-size: 1.3rem; }

/* ===== 主容器 ===== */
.main { padding: 1rem; }
.lrcom { background: #fff; border-radius: .8rem; padding: 1.5rem 1.2rem; box-shadow: 0 1px 8px rgba(0,0,0,.05); }

/* ===== 登录/验证卡券表单 ===== */
.login .layui-form-item { margin-bottom: 1.2rem; }
.login .layui-input-wrap { position: relative; display: flex; align-items: center; }
.login .layui-input-prefix { position: absolute; left: 0; top: 0; width: 3.6rem; height: 4.4rem; display: flex; align-items: center; justify-content: center; color: #b2b2b2; font-size: 1.8rem; z-index: 2; }
.login .layui-input { height: 4.4rem; line-height: 4.4rem; border: 1px solid #eee; border-radius: .4rem; padding-left: 3.6rem; font-size: 1.5rem; width: 100%; background: #fafafa; }
.login .layui-input:focus { border-color: #e64340; background: #fff; }
.layui-btn-fluid { width: 100%; }
.layui-btn { height: 4.4rem; line-height: 4.4rem; border-radius: .4rem; font-size: 1.6rem; color: #fff; border: 0; cursor: pointer; }

/* ===== 滑块验证 ===== */
#slider { position: relative; height: 4rem; line-height: 4rem; background: #f7f9fa; border: 1px solid #e4e7eb; border-radius: .4rem; text-align: center; overflow: hidden; }
#slider #slider_bg { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #d1e9fe; border-radius: .4rem 0 0 .4rem; }
#slider #labelTip { position: absolute; left: 0; right: 0; top: 0; text-align: center; color: #999; font-size: 1.4rem; z-index: 1; pointer-events: none; }
#slider #label { position: absolute; left: 0; top: 0; width: 4rem; height: 100%; background: #fff; border: 1px solid #dcdfe6; border-radius: .4rem; cursor: move; z-index: 2; display: flex; align-items: center; justify-content: center; }
#slider #label:before { content: "\2192"; font-size: 1.8rem; color: #7a8b9a; }
#slider #label.success { background: #5cb85c; border-color: #5cb85c; cursor: default; }
#slider #label.success:before { content: "\2713"; color: #fff; }
#slider.ok #labelTip { color: #5cb85c; }

/* ===== 公告 ===== */
.notice { margin: 1rem; background: #fff; border-radius: .8rem; padding: 1.2rem; }
.notice h3 { font-size: 1.6rem; color: #e64340; border-left: 3px solid #e64340; padding-left: .8rem; margin-bottom: .8rem; }
.notice .content { font-size: 1.3rem; color: #666; line-height: 1.9; }
.notice .content p { margin-bottom: .4rem; }
.notice .content img { max-width: 100%; height: auto; }

/* ===== 弹窗(使用规则) ===== */
.alerts-overlay { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 2000; display: none; align-items: center; justify-content: center; }
.alerts-overlay-show { display: flex; }
.alerts-box { width: 88%; max-width: 42rem; max-height: 80vh; background: #fff; border-radius: .8rem; overflow: hidden; display: flex; flex-direction: column; }
.alerts-box-title { padding: 1.2rem; text-align: center; font-size: 1.6rem; font-weight: 700; border-bottom: 1px solid #f0f0f0; }
.alerts-box-content { padding: 1.2rem; overflow-y: auto; font-size: 1.3rem; color: #666; line-height: 1.9; }
.alerts-box-content h3 { font-size: 1.4rem; color: #333; margin: .8rem 0 .4rem; }
.alerts-box-btn { border-top: 1px solid #f0f0f0; }
.alerts-box-btn a { display: block; text-align: center; padding: 1.1rem; color: #e64340; font-size: 1.5rem; }

/* ===== 悬浮便捷功能 ===== */
.bj-box { position: fixed; z-index: 1500; }
.bj-box .directTxt { position: fixed; right: 0; top: 60%; width: 3.5rem; padding: .8rem 0; background: #e64340; color: #fff; border-radius: .6rem 0 0 .6rem; text-align: center; font-size: 1.2rem; writing-mode: vertical-lr; letter-spacing: .2rem; cursor: pointer; }
.bj-con { display: none; position: fixed; right: 1rem; bottom: 8rem; width: 12rem; background: #fff; border-radius: .8rem; box-shadow: 0 2px 16px rgba(0,0,0,.2); padding: .8rem; z-index: 1600; }
.bj-con .navTit { display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; color: #999; padding: 0 .2rem .6rem; border-bottom: 1px solid #f0f0f0; }
.bj-con .navTit i.bj-close { cursor: pointer; font-style: normal; }
.bj-con .navTit i.bj-close:before { content: "\2715"; }
.bj-con ul { list-style: none; padding-top: .4rem; }
.bj-con ul li a, .bj-con ul li { display: flex; flex-direction: column; align-items: center; padding: .8rem 0; font-size: 1.2rem; color: #555; cursor: pointer; }
.bj-con ul li i { width: 2.2rem; height: 2.2rem; margin-bottom: .3rem; background: #e64340; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 1.2rem; }
.whiteBg { display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.3); z-index: 1400; }

/* ===== 产品列表 ===== */
.prod-header { margin-top: 4rem; padding: 1rem; background: #fff; }
.prod-header .card-name { font-size: 1.6rem; font-weight: 700; color: #333; }
.prod-header .card-tip { font-size: 1.2rem; color: #e64340; margin-top: .3rem; }
.prod-list { padding: .5rem 1rem; }
.prod-item { display: flex; background: #fff; border-radius: .8rem; padding: 1rem; margin-bottom: .8rem; align-items: center; }
.prod-item .p-img { width: 7rem; height: 7rem; border-radius: .6rem; object-fit: cover; background: #f2f2f2; flex-shrink: 0; }
.prod-item .p-info { flex: 1; padding: 0 1rem; overflow: hidden; }
.prod-item .p-name { font-size: 1.4rem; color: #333; line-height: 1.4; }
.prod-item .p-spec { font-size: 1.2rem; color: #999; margin-top: .3rem; }
.prod-item .p-price { font-size: 1.4rem; color: #e64340; margin-top: .4rem; font-weight: 700; }
.prod-item .p-radio { width: 2rem; height: 2rem; border: 1px solid #ddd; border-radius: 50%; flex-shrink: 0; position: relative; }
.prod-item.active .p-radio { border-color: #e64340; }
.prod-item.active .p-radio:after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 1rem; height: 1rem; background: #e64340; border-radius: 50%; }
.stepper { display: flex; align-items: center; flex-shrink: 0; }
.stepper button { width: 2.6rem; height: 2.6rem; border: 1px solid #ddd; background: #fff; border-radius: .3rem; font-size: 1.6rem; line-height: 1; color: #666; cursor: pointer; }
.stepper input { width: 3.4rem; height: 2.6rem; text-align: center; border: 1px solid #ddd; border-left: 0; border-right: 0; font-size: 1.4rem; }
.prod-footer { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; padding: .8rem 1rem; box-shadow: 0 -1px 8px rgba(0,0,0,.08); z-index: 900; }

/* ===== 收货信息表单 ===== */
.form-card { margin-top: 4rem; background: #fff; }
.form-item { display: flex; align-items: center; padding: 1.2rem 1rem; border-bottom: 1px solid #f5f5f5; }
.form-item > label { width: 8rem; color: #666; font-size: 1.4rem; flex-shrink: 0; }
.form-item > label.req:before { content: "*"; color: #e64340; margin-right: .2rem; }
.form-item .fi-ctrl { flex: 1; }
.form-item input[type=text], .form-item input[type=tel], .form-item input[type=number], .form-item select, .form-item textarea { width: 100%; border: 0; font-size: 1.4rem; color: #333; background: transparent; }
.form-item textarea { height: 6rem; resize: none; }
.form-item select { height: 2.4rem; }
.form-item .fi-ctrl.pca select { width: 32%; display: inline-block; margin-right: 1%; }
.form-submit { padding: 1.5rem 1rem; }

/* ===== 成功页 ===== */
.success-box { margin-top: 4rem; text-align: center; padding: 4rem 2rem; }
.success-box .icon-ok { width: 7rem; height: 7rem; margin: 0 auto 1.5rem; background: #5cb85c; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.success-box .icon-ok:before { content: "\2713"; color: #fff; font-size: 3.6rem; }
.success-box h2 { font-size: 2rem; color: #333; margin-bottom: 1rem; }
.success-box .order-info { background: #fff; border-radius: .8rem; padding: 1.5rem; margin: 1.5rem 0; text-align: left; font-size: 1.4rem; color: #666; }
.success-box .order-info p { padding: .4rem 0; }
.success-box .btns a { display: inline-block; padding: .8rem 2rem; margin: .4rem; border-radius: 2rem; font-size: 1.4rem; }
.success-box .btns a.primary { background: #e64340; color: #fff; }
.success-box .btns a.ghost { border: 1px solid #ddd; color: #666; }

/* ===== 门店列表 ===== */
.store-search { margin-top: 4rem; padding: .8rem 1rem; background: #fff; position: sticky; top: 4rem; z-index: 10; display: flex; align-items: center; }
.store-search input { flex: 1; height: 3.6rem; border: 1px solid #eee; border-radius: 1.8rem; padding: 0 1.2rem; font-size: 1.4rem; background: #f7f7f7; }
.store-search-icon { position: absolute; right: 2rem; color: #b2b2b2; font-size: 1.6rem; }
.store-list { padding: .5rem 1rem; }
.store-card { background: #fff; border-radius: .8rem; padding: 1.2rem; margin-bottom: .8rem; display: flex; align-items: center; }
.store-card-left { display: flex; align-items: center; flex: 1; overflow: hidden; }
.store-logo { width: 5rem; height: 5rem; border-radius: .6rem; object-fit: cover; background: #f2f2f2; flex-shrink: 0; }
.store-logo-placeholder { display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 2rem; }
.store-info { flex: 1; padding-left: .8rem; overflow: hidden; }
.store-name { font-size: 1.5rem; font-weight: 700; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-addr { font-size: 1.2rem; color: #888; margin-top: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-addr i { font-size: 1.2rem; margin-right: .2rem; color: #e64340; }
.store-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; margin-left: .8rem; }
.store-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #666; }
.store-btn-primary { width: auto; border-radius: 1.5rem; padding: 0 1.2rem; background: #e64340; color: #fff; border: 0; font-size: 1.2rem; height: 2.8rem; white-space: nowrap; }
.store-empty, .store-more { text-align: center; padding: 1.5rem; color: #999; font-size: 1.3rem; }
.store-bottom { padding: 1rem; }
.load-more { text-align: center; padding: 1rem; color: #999; font-size: 1.3rem; }
.store-item { background: #fff; border-radius: .8rem; padding: 1.2rem; margin-bottom: .8rem; }
.store-item .s-name { font-size: 1.5rem; font-weight: 700; color: #333; }
.store-item .s-addr { font-size: 1.3rem; color: #888; margin-top: .4rem; }
.store-item .s-tel { font-size: 1.3rem; color: #e64340; margin-top: .4rem; }
.store-item .s-btn { margin-top: .8rem; }
.store-item .s-btn a { display: inline-block; padding: .5rem 1.6rem; background: #e64340; color: #fff; border-radius: 1.5rem; font-size: 1.3rem; }

/* ===== 订单详情 ===== */
.order-card { background: #fff; border-radius: .8rem; margin: .8rem 1rem; padding: 1.2rem; }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f5f5f5; padding-bottom: .8rem; margin-bottom: .8rem; }
.order-card .oc-no { font-size: 1.3rem; color: #666; }
.order-card .oc-status { font-size: 1.3rem; color: #e64340; font-weight: 700; }
.order-card .oc-row { font-size: 1.3rem; color: #666; padding: .3rem 0; display: flex; }
.order-card .oc-row .k { width: 7rem; color: #999; flex-shrink: 0; }
.order-card .oc-prod { display: flex; align-items: center; padding: .5rem 0; }
.order-card .oc-prod img { width: 5rem; height: 5rem; border-radius: .4rem; object-fit: cover; background: #f2f2f2; }
.order-card .oc-prod .op-info { flex: 1; padding-left: .8rem; }
.order-card .oc-actions { text-align: right; margin-top: .8rem; }
.order-card .oc-actions a { display: inline-block; padding: .4rem 1.2rem; border: 1px solid #ddd; border-radius: 1.4rem; font-size: 1.3rem; color: #666; margin-left: .6rem; }
.order-card .oc-actions a.danger { border-color: #e64340; color: #e64340; }

/* ===== 卡券信息(see) ===== */
.see-card { margin-top: 4rem; background: #fff; border-radius: .8rem; margin: 4.8rem 1rem 1rem; padding: 1.5rem; text-align: center; }
.see-card img.logo { width: 6rem; height: 6rem; border-radius: .6rem; object-fit: cover; }
.see-card .c-name { font-size: 1.7rem; font-weight: 700; margin-top: .8rem; }
.see-card .c-code { font-size: 1.4rem; color: #e64340; margin-top: .4rem; letter-spacing: .1rem; }
.see-card .c-desc { font-size: 1.3rem; color: #888; margin-top: .8rem; text-align: left; }

/* ===== 提货时间限制页 ===== */
.kh-time-box { margin-top: 4rem; text-align: center; padding: 5rem 2rem; }
.kh-time-box .icon-clock { font-size: 4rem; color: #e64340; }
.kh-time-box h2 { font-size: 1.8rem; margin: 1rem 0; }
.kh-time-box p { color: #888; font-size: 1.4rem; }

/* 通用提示条 */
.tip-bar { padding: .8rem 1rem; background: #fff7e6; color: #d48806; font-size: 1.3rem; text-align: center; }
.footer-info { text-align: center; color: #bbb; font-size: 1.2rem; padding: 2rem 0 1rem; }
.footer-info:empty { display: none; }

/* ===== PC 宽屏居中约束 (1:1 复刻原版 demo.tihuo88.cn：640px 手机列居中) ===== */
html { background: #f5f5f5; }
body { width: 100%; min-width: 320px; max-width: 640px; margin: 0 auto; overflow-x: hidden; }
/* 顶部标题栏/底部提交条/全屏遮罩：约束到 640px 列并水平居中（width:100%+margin auto 保证 fixed 元素居中，同原版） */
.fixtit, .prod-footer, .alerts-overlay, .whiteBg { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
/* 右侧悬浮元素：PC 下贴齐 640px 列右缘（移动端 <640px 保持原样） */
@media (min-width: 640px) {
  .hide-nav { right: calc(50% - 320px + .5rem); }
  .bj-box .directTxt { right: calc(50% - 320px); }
  .bj-con { right: calc(50% - 320px + 1rem); }
}
