/* ============ H5 抖音团购风格 ============ */
:root { --brand: #FE2C55; --brand2: #ff6034; --bg: #f6f7f9; --tx: #1f2329; --tx2: #86909c; --ok: #07c160; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--tx); font-size: 14px; padding-bottom: 58px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }

/* 顶部 */
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; height: 48px; display: flex; align-items: center; padding: 0 14px; gap: 10px; }
.topbar .back { font-size: 20px; width: 26px; }
.topbar .tt { flex: 1; text-align: center; font-weight: 600; font-size: 16px; }
.topbar .ph { width: 26px; }

/* 首页头部搜索 */
.hero { background: linear-gradient(160deg, #ff5f6d 0%, var(--brand) 55%, #ff2c55aa 100%); padding: 12px 14px 42px; }
.hero .searchbar { background: rgba(255,255,255,.92); border-radius: 999px; display: flex; align-items: center; padding: 9px 14px; gap: 8px; color: var(--tx2); font-size: 13.5px; }
.hero .shopline { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #fff; }
.hero .shopline img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid rgba(255,255,255,.7); object-fit: cover; }
.hero .shopline .n { font-size: 17px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.hero .shopline .s { font-size: 12px; opacity: .92; margin-top: 2px; }

/* 公告 */
.notice { background: #fff; margin: -28px 12px 0; border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; font-size: 13px; color: #8a5a00; background: #fff7e6; }
.notice b { flex-shrink: 0; }

/* 区块通用 */
.block { margin: 10px 12px; }
.card { background: #fff; border-radius: 14px; overflow: hidden; }

/* 轮播 */
.swiper { position: relative; overflow: hidden; border-radius: 14px; }
.swiper .track { display: flex; transition: transform .35s; }
.swiper .slide { min-width: 100%; }
.swiper img { width: 100%; height: 180px; object-fit: cover; }
.swiper .dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.swiper .dots i { width: 6px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.5); }
.swiper .dots i.on { background: #fff; width: 14px; }

/* 店铺卡 */
.shopcard { padding: 14px; display: flex; gap: 12px; align-items: center; }
.shopcard img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #f0f1f4; }
.shopcard .info { flex: 1; min-width: 0; }
.shopcard .n { font-size: 16.5px; font-weight: 700; }
.shopcard .meta { font-size: 12px; color: var(--tx2); margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; }
.shopcard .score { color: #ff9500; font-weight: 700; }
.shopcard .navbtn { flex-shrink: 0; background: #fff0f3; color: var(--brand); font-size: 12px; padding: 7px 12px; border-radius: 999px; font-weight: 600; }

/* 金刚区 */
.navgrid { background: #fff; border-radius: 14px; padding: 14px 6px 10px; display: grid; }
.navgrid .it { text-align: center; padding: 6px 2px; }
.navgrid .ic { width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 14px; background: linear-gradient(135deg, #fff1f4, #ffe3e9); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.navgrid .tx { font-size: 12px; color: var(--tx); }

/* 标题栏 */
.sect { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px 10px; }
.sect .t { font-size: 17px; font-weight: 800; }
.sect .sub { font-size: 12px; color: var(--tx2); flex: 1; }
.sect .more { font-size: 12px; color: var(--tx2); }

/* 套餐卡片 */
.plist { display: grid; gap: 10px; }
.plist.grid { grid-template-columns: 1fr 1fr; }
.pcard { background: #fff; border-radius: 14px; overflow: hidden; position: relative; }
.pcard .cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #eef0f3; }
.pcard.grid .cover { aspect-ratio: 1/0.82; }
.pcard .body { padding: 10px 12px 12px; }
.pcard .tt { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.pcard.grid .tt { font-size: 13.5px; }
.pcard .desc { font-size: 11.5px; color: var(--tx2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.pcard .tg { font-size: 10px; color: var(--brand); background: #fff0f3; border: 1px solid #ffd4dd; padding: 1.5px 6px; border-radius: 4px; }
.pcard .prices { display: flex; align-items: baseline; gap: 6px; margin-top: 9px; }
.pcard .pr { color: var(--brand); font-weight: 800; font-size: 20px; }
.pcard .pr i { font-style: normal; font-size: 12px; font-weight: 600; }
.pcard .op { color: var(--tx2); font-size: 11px; text-decoration: line-through; }
.pcard .sold { color: var(--tx2); font-size: 11px; margin-left: auto; }
.pcard .buy { position: absolute; right: 12px; bottom: 12px; background: linear-gradient(90deg, var(--brand2), var(--brand)); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px; box-shadow: 0 4px 10px rgba(254,44,85,.35); }
.pcard.grid .prices { padding-right: 64px; }
.pcard .off { position: absolute; left: 0; top: 0; background: linear-gradient(90deg, var(--brand), #ff7a45); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 0 0 10px 0; }

/* 保障 */
.guar { background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 14px; justify-content: space-around; }
.guar .g { font-size: 12px; color: var(--tx2); display: flex; align-items: center; gap: 4px; }
.guar .g::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* 富文本 */
.rich { background: #fff; border-radius: 14px; padding: 14px; font-size: 14px; line-height: 1.8; color: #3a3f47; overflow: hidden; }
.rich img { max-width: 100%; }

/* 门店 */
.storeblk { background: #fff; border-radius: 14px; padding: 14px; }
.storeblk .addr { font-size: 13.5px; line-height: 1.6; }
.storeblk .ops { display: flex; gap: 10px; margin-top: 10px; }
.storeblk .op { flex: 1; text-align: center; background: #f6f7f9; border-radius: 10px; padding: 9px 0; font-size: 13px; font-weight: 600; }
.mapimg { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin-top: 10px; background: #e8ecf2; }

/* 详情页 */
.dhead img { width: 100%; height: 240px; object-fit: cover; background: #eef0f3; }
.dhead .dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.dinfo { margin: -22px 12px 0; position: relative; background: #fff; border-radius: 16px; padding: 14px; }
.dinfo .pricerow { display: flex; align-items: baseline; gap: 8px; }
.dinfo .pr { color: var(--brand); font-size: 30px; font-weight: 800; }
.dinfo .pr i { font-style: normal; font-size: 14px; }
.dinfo .op { color: var(--tx2); text-decoration: line-through; font-size: 13px; }
.dinfo .off { background: var(--brand); color: #fff; font-size: 11px; border-radius: 4px; padding: 2px 6px; font-weight: 700; }
.dinfo .sold { margin-left: auto; color: var(--tx2); font-size: 12px; }
.dinfo .tt { font-size: 18px; font-weight: 700; margin-top: 8px; line-height: 1.4; }
.dinfo .st { font-size: 12.5px; color: var(--tx2); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.dsec { margin: 10px 12px; background: #fff; border-radius: 14px; padding: 14px; }
.dsec h4 { font-size: 15px; margin-bottom: 10px; }
.dsec .li { display: flex; gap: 8px; font-size: 13.5px; padding: 5px 0; color: #3a3f47; }
.dsec .li b { color: var(--brand); flex-shrink: 0; }
.dsec .notice-box { background: #fff7e6; color: #8a5a00; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; }

/* 底部购买条 */
.buybar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; background: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); z-index: 40; }
.buybar .shop { display: flex; flex-direction: column; align-items: center; font-size: 10.5px; color: var(--tx2); gap: 2px; }
.buybar .price { flex: 1; }
.buybar .price .p { color: var(--brand); font-size: 24px; font-weight: 800; }
.buybar .price .p i { font-style: normal; font-size: 13px; }
.buybar .price .o { color: var(--tx2); font-size: 11.5px; text-decoration: line-through; margin-left: 6px; }
.buybar .btn { background: linear-gradient(90deg, var(--brand2), var(--brand)); color: #fff; border: none; font-size: 16px; font-weight: 700; padding: 12px 34px; border-radius: 999px; }
.buybar .btn:disabled { opacity: .55; }

/* 表单 */
.fitem { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid #f2f3f6; }
.fitem label { width: 88px; font-size: 13.5px; color: var(--tx2); flex-shrink: 0; }
.fitem label b { color: var(--brand); margin-right: 2px; }
.fitem input, .fitem select, .fitem textarea { flex: 1; border: none; outline: none; font-size: 14.5px; background: transparent; text-align: right; }
.fitem textarea { text-align: left; min-height: 60px; }
.fitem .opts { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fitem .opts label { width: auto; background: #f6f7f9; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--tx); }
.fitem .opts label.on { background: #fff0f3; color: var(--brand); font-weight: 600; }

/* 订单卡 */
.ocard { background: #fff; border-radius: 14px; margin: 10px 12px; padding: 13px 14px; }
.ocard .row1 { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--tx2); }
.ocard .st { color: var(--brand); font-weight: 600; }
.ocard .row2 { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.ocard img { width: 74px; height: 58px; border-radius: 10px; object-fit: cover; background: #f0f1f4; }
.ocard .t { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.ocard .qty { font-size: 12px; color: var(--tx2); margin-top: 4px; }
.ocard .row3 { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ocard .amt { font-size: 15px; font-weight: 800; color: var(--brand); }
.ocard .acts { display: flex; gap: 8px; }
.ocard .abtn { font-size: 12px; padding: 6px 13px; border-radius: 999px; border: 1px solid #dfe3ea; color: var(--tx); }
.ocard .abtn.pri { background: linear-gradient(90deg, var(--brand2), var(--brand)); color: #fff; border: none; font-weight: 600; }
.codebox { text-align: center; padding: 22px 0 10px; }
.codebox .code { font-size: 34px; letter-spacing: 6px; font-weight: 800; color: var(--tx); }
.codebox .tip { font-size: 12px; color: var(--tx2); margin-top: 8px; }
.status-flow { font-size: 12.5px; color: var(--tx2); line-height: 2; }

/* tabbar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; background: #fff; display: flex; border-top: 1px solid #f0f1f4; padding-bottom: env(safe-area-inset-bottom); z-index: 35; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 9px; font-size: 10.5px; color: var(--tx2); }
.tabbar a .ic { font-size: 21px; display: block; margin-bottom: 1px; filter: grayscale(1) opacity(.6); }
.tabbar a.on { color: var(--brand); font-weight: 600; }
.tabbar a.on .ic { filter: none; }

/* 我的 */
.mine-head { background: linear-gradient(160deg, #ff5f6d, var(--brand)); padding: 26px 18px 30px; color: #fff; display: flex; gap: 14px; align-items: center; }
.mine-head img { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); object-fit: cover; background: #fff2f5; }
.mine-head .n { font-size: 18px; font-weight: 700; }
.mine-head .s { font-size: 12px; opacity: .9; margin-top: 4px; }
.mine-stats { margin: -18px 12px 0; background: #fff; border-radius: 14px; display: flex; padding: 14px 0; }
.mine-stats a { flex: 1; text-align: center; font-size: 12px; color: var(--tx2); }
.mine-stats b { display: block; font-size: 20px; color: var(--tx); }
.mcell { background: #fff; border-radius: 14px; margin: 10px 12px; }
.mcell a { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid #f5f6f8; font-size: 14.5px; }
.mcell a:last-child { border-bottom: none; }
.mcell .ar { margin-left: auto; color: #c9cdd4; }

/* 通用 */
.empty { text-align: center; color: var(--tx2); padding: 70px 0; font-size: 13.5px; }
.empty .ic { font-size: 44px; display: block; margin-bottom: 10px; }
.toast { position: fixed; left: 50%; top: 45%; transform: translate(-50%,-50%); background: rgba(0,0,0,.75); color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; z-index: 99; display: none; max-width: 76%; text-align: center; }
.loading { text-align: center; color: var(--tx2); font-size: 12.5px; padding: 14px 0 20px; }
.btn-lg { display: block; width: calc(100% - 24px); margin: 16px 12px; background: linear-gradient(90deg, var(--brand2), var(--brand)); color: #fff; border: none; font-size: 16px; font-weight: 700; padding: 13px; border-radius: 999px; }
.btn-lg:disabled { opacity: .5; }
.linkline { text-align: center; font-size: 12.5px; color: var(--tx2); padding: 4px 0 14px; }
.agree { font-size: 11.5px; color: var(--tx2); text-align: center; padding: 0 20px 14px; line-height: 1.6; }

/* ===== 预约服务（景区/美业/旅游） ===== */
.bk-datebar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.bk-datebar::-webkit-scrollbar { display: none; }
.bk-date { flex: 0 0 auto; min-width: 62px; text-align: center; border-radius: 12px; background: #f6f7f9; padding: 8px 10px; border: 1.5px solid transparent; transition: .15s; }
.bk-date .w { font-size: 11px; color: var(--tx2); }
.bk-date .d { font-size: 15px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bk-date.on { background: #fff0f3; border-color: var(--brand); color: var(--brand); }
.bk-date.on .w { color: var(--brand); }
.bk-date.off { opacity: .32; }
.bk-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.bk-slot { text-align: center; border: 1.5px solid #e8ebf0; border-radius: 11px; padding: 9px 4px; font-size: 13.5px; font-weight: 700; background: #fff; color: var(--tx); }
.bk-slot small { display: block; font-size: 11px; color: var(--tx2); font-weight: 400; margin-top: 3px; }
.bk-slot.on { border-color: var(--brand); background: #fff0f3; color: var(--brand); }
.bk-slot.on small { color: var(--brand); opacity: .8; }
.bk-slot.off { opacity: .42; background: #f7f8fa; }
.bk-people { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px 2px; }
.bk-people .stepper { display: flex; align-items: center; gap: 14px; }
.bk-people .sb { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e2e6ec; background: #fff; font-size: 17px; line-height: 1; color: var(--tx); }
.bk-people .sb:active { background: #f4f5f7; }
.bk-people .num { font-size: 16px; font-weight: 700; min-width: 26px; text-align: center; }
.bk-tip { background: linear-gradient(180deg, #fff8ec, #fffaf3); color: #8a5a00; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.75; margin-top: 10px; border: 1px solid #ffe7c2; }
.bk-rule { background: #f7f9fc; border-radius: 10px; padding: 12px; font-size: 12.8px; color: #3a3f47; line-height: 2; margin-top: 8px; }
.bk-rule i { font-style: normal; color: var(--tx2); display: inline-block; min-width: 76px; }
/* 订单详情预约卡 */
.bk-card { margin: 10px 12px; background: linear-gradient(135deg, #fff4f6, #fff); border: 1px solid #ffe0e7; border-radius: 14px; padding: 14px; }
.bk-card .h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brand); font-weight: 700; }
.bk-card .big { font-size: 18px; font-weight: 800; margin-top: 8px; letter-spacing: .5px; }
.bk-card .sub { font-size: 12.5px; color: var(--tx2); margin-top: 4px; }
.bk-card .ops { display: flex; gap: 9px; margin-top: 12px; }
.bk-card .ops a { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 9px 0; border-radius: 10px; background: #fff; border: 1px solid #ffd0da; color: var(--brand); }
.bk-card .ops a.mut { border-color: #e6e9ef; color: var(--tx2); }
/* 卡片角标 */
.pcard .bkflag { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; backdrop-filter: blur(4px); }
.pcard .off { position: absolute; top: 8px; left: 8px; }
