/* ===================== 参考版（huihuashenghuo）样式 ===================== */
.ref-page { padding-bottom: 96px; background: #f8f8fa; }
.ref-top { display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px 12px 10px; }
.ref-loc { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #333; white-space: nowrap; }
.ref-loc b { font-weight: 400; color: #999; }
.ref-search { flex: 1; height: 40px; border: 1.5px solid #e5254b; border-radius: 20px; display: flex; align-items: center; padding: 0 4px 0 12px; background: #fff; }
.ref-search .s-ico { color: #e5254b; font-size: 20px; }
.ref-search input { flex: 1; border: none; background: transparent; font-size: 14px; padding: 0 8px; min-width: 0; outline: none; }
.ref-search .s-btn { color: #e5254b; font-size: 14px; font-weight: 400; padding: 0 10px; }
.ref-chain { width: 42px; flex: 0 0 42px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; color: #333; }
.ref-banner { width: 100%; display: block; }
.ref-icons { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; padding: 12px 13px 8px; row-gap: 10px; }
.ref-icons .ic { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: rgba(0,0,0,.9); }
.ref-icons .ic img { width: 46px; height: 46px; border-radius: 0; }
.ref-promos { display: flex; gap: 6px; padding: 10px 13px; background: #f8f8fa; }
.ref-promos img { flex: 1; width: 0; min-width: 0; border-radius: 10px; }
.ref-sec { background: #fff; margin-top: 8px; padding: 12px 12px 14px; }
.ref-head { display: flex; align-items: center; gap: 6px; }
.ref-head b { font-size: 16px; line-height: 20px; color: rgba(0,0,0,.9); }
.ref-head .tag { background: #fff0e6; color: #ff5a1f; font-size: 10px; padding: 2px 5px; border-radius: 6px; }
.ref-head .sub { color: #999; font-size: 12px; }
.ref-head .more { margin-left: auto; color: #ff5a1f; font-size: 12px; }
.ref-rail { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.ref-rail::-webkit-scrollbar { display: none; }
.ref-rail .card { flex: 0 0 90px; width: 90px; }
.ref-rail .img-wrap { position: relative; }
.ref-rail .img-wrap img { width: 90px; height: 90px; border-radius: 6px; object-fit: cover; }
.ref-rail .earn { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, #ff2d2d, #ff5a1f); color: #fff; font-size: 10px; text-align: center; padding: 1px 0; border-radius: 0 0 6px 6px; }
.ref-rail .p { color: #ff2d2d; font-size: 14px; font-weight: 700; margin-top: 4px; }
.ref-gold { width: calc(100% - 26px); margin: 10px 13px; border-radius: 8px; }
.ref-subsidy { background: #fff; margin: 0 10px 10px; border-radius: 12px; padding: 12px; }
.ref-subsidy .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-subsidy .chip { background: #f7f7f7; color: #666; font-size: 12px; padding: 4px 10px; border-radius: 10px; }
.ref-subsidy .chip.hot { background: #ffe8ef; color: #e5254b; font-weight: 600; }
.ref-subsidy .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ref-subsidy .sc img { width: 100%; height: 82px; object-fit: cover; border-radius: 8px; }
.ref-subsidy .sc .t { font-size: 13px; font-weight: 600; margin-top: 6px; }
.ref-subsidy .sc .s { font-size: 11px; color: #999; margin-top: 2px; }
.ref-services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 10px 10px; }
.ref-services .sv { background: #fff; border-radius: 12px; padding: 12px; }
.ref-services .sv img { width: 36px; height: 36px; border-radius: 10px; }
.ref-services .sv .t { font-size: 14px; font-weight: 600; margin-top: 8px; }
.ref-services .sv .s { font-size: 11px; color: #999; margin-top: 2px; }
.ref-services .sv .b { display: inline-block; margin-top: 8px; background: #ff5a1f; color: #fff; border-radius: 10px; font-size: 11px; padding: 3px 10px; }
.ref-movies { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.ref-movies::-webkit-scrollbar { display: none; }
.ref-movies .mv { flex: 0 0 88px; width: 88px; }
.ref-movies .mv img { width: 88px; height: 124px; border-radius: 8px; object-fit: cover; }
.ref-movies .mv .t { font-size: 11px; color: #333; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-movies .mv .b { text-align: center; font-size: 11px; color: #e5254b; background: #ffe8ef; border-radius: 10px; margin-top: 4px; padding: 2px 0; }
.ref-platforms { display: flex; gap: 18px; background: #fff; padding: 12px; overflow-x: auto; }
.ref-platforms::-webkit-scrollbar { display: none; }
.ref-platforms .pf { flex: 0 0 auto; font-size: 14px; color: #333; padding-bottom: 4px; }
.ref-platforms .pf.on { color: #e5254b; font-weight: 700; border-bottom: 2px solid #e5254b; }
.ref-products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 13px 12px; }
.ref-products .pg { background: #fff; border-radius: 8px; overflow: hidden; }
.ref-products .pg > img { width: 100%; height: 170px; object-fit: cover; }
.ref-products .bd { padding: 8px; }
.ref-products .t { font-size: 12px; line-height: 1.45; height: 35px; overflow: hidden; color: #333; }
.ref-products .cp { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ref-products .coupon { background: #ffe8ef; color: #e5254b; font-size: 10px; padding: 1px 4px; border-radius: 3px; }
.ref-products .e { color: #ff5a1f; font-size: 10px; }
.ref-products .pr { display: flex; align-items: flex-end; gap: 5px; margin-top: 6px; }
.ref-products .now { color: #e5254b; font-size: 16px; font-weight: 700; }
.ref-products .old { color: #bbb; font-size: 11px; text-decoration: line-through; }
.ref-products .sl { margin-left: auto; color: #999; font-size: 10px; }
.ref-more { text-align: center; color: #bbb; font-size: 12px; padding: 12px 0 20px; }

/* 胶囊 tabbar */
.ref-tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 34px; width: 310px; height: 60px; background: #fff; border-radius: 30px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; align-items: center; z-index: 100; }
.ref-tabbar .it { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #8a8f99; }
.ref-tabbar .it.on { color: #e5254b; }
.ref-tabbar .it.mid .pill { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #f2f2f2; border-radius: 26px; padding: 6px 16px; }
.ref-tabbar .it.mid.on .pill { background: #f2f2f2; }

/* 本地生活 */
.life-banners { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 9px; padding: 13px; }
.life-banners img { width: 100%; height: 100%; border-radius: 0; object-fit: fill; display: block; }
.life-banners img.big { grid-row: span 2; }
.life-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 0 13px; }
.life-icons .lc { background: #fff; border-radius: 8px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.life-icons .lc img { width: 58px; height: 49px; border-radius: 0; object-fit: contain; }
.life-icons .lc .t { font-size: 14px; font-weight: 400; color: rgba(0,0,0,.9); margin-top: 6px; }
.life-icons .lc .s { font-size: 11px; color: #8c8c8c; margin-top: 5px; }
.life-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 8px 6px; text-align: center; }
.life-tabs .lt .a { font-size: 14px; color: #333; }
.life-tabs .lt .b { display: inline-block; margin-top: 6px; font-size: 11px; color: #999; line-height: 19px; padding: 0 10px; border-radius: 9px; }
.life-tabs .lt.on .a { color: #e5254b; font-weight: 700; }
.life-tabs .lt.on .b { background: #ff0000; color: #fff; border-radius: 9px; padding: 0 10px; }
.life-sorts { display: flex; justify-content: space-around; padding: 10px; font-size: 14px; color: rgba(0,0,0,.9); }
.life-sorts .on { color: #ff0000; font-weight: 400; }
.life-list { padding: 0 10px 90px; }
.life-list .li { background: #fff; border-radius: 12px; padding: 12px; display: flex; gap: 12px; margin-bottom: 9px; align-items: center; }
.life-list .li img { width: 90px; height: 90px; border-radius: 8px; object-fit: cover; }
.life-list .mid { flex: 1; min-width: 0; }
.life-list .mid .t { font-size: 14px; font-weight: 600; }
.life-list .mid .s { font-size: 11px; color: #999; margin-top: 4px; }
.life-list .mid .pr { margin-top: 8px; }
.life-list .mid .pr b { color: #e5254b; font-size: 16px; }
.life-list .mid .pr span { color: #bbb; font-size: 11px; text-decoration: line-through; margin-left: 6px; }
.life-list .go { background: #ff5a1f; color: #fff; border-radius: 14px; font-size: 12px; padding: 6px 12px; }

/* 商品详情底栏 */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #eee; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); z-index: 90; }
.buy-bar button { width: 100%; height: 46px; border-radius: 23px; background: #e5254b; color: #fff; font-size: 16px; font-weight: 600; }

/* 验证码登录 */
.ref-login { padding: 56px 28px 0; min-height: 100vh; background: #fff; }
.ref-login h1 { font-size: 26px; margin: 0 0 30px; }
.ref-login .ipt-row { margin-bottom: 14px; }
.ref-login input { width: 100%; height: 52px; background: #f7f7f7; border: none; border-radius: 26px; padding: 0 20px; font-size: 15px; }
.ref-login .ipt-row.code { display: flex; gap: 10px; align-items: center; }
.ref-login .ipt-row.code input { flex: 1; }
.ref-login .ipt-row.code button { flex: 0 0 auto; height: 52px; padding: 0 18px; border-radius: 26px; background: #ffe8ef; color: #e5254b; font-size: 14px; font-weight: 600; }
.ref-login .err { color: #f56c6c; font-size: 13px; min-height: 20px; margin: 4px 0 8px; }
.ref-login .submit { width: 100%; height: 50px; border-radius: 25px; background: #e5254b; color: #fff; font-size: 16px; font-weight: 600; }
.ref-login .alt { text-align: center; margin-top: 18px; font-size: 13px; color: #909399; }
.ref-login .tip { text-align: center; margin-top: 8px; font-size: 12px; color: #bbb; }

/* 功能落地页 */
.module-hero { margin: 12px; background: linear-gradient(135deg,#ff7a6b,#e5254b); border-radius: 14px; color: #fff; padding: 22px 18px; }
.module-hero .t { font-size: 22px; font-weight: 700; }
.module-hero .d { font-size: 13px; opacity: .9; margin-top: 6px; }
.module-hero .tip { font-size: 12px; opacity: .85; margin-top: 14px; line-height: 1.7; }
.module-list { background: #fff; margin: 0 12px; border-radius: 12px; overflow: hidden; }
.module-list .it { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid #f4f4f4; font-size: 15px; }
.module-list .it:last-child { border-bottom: none; }
.module-list .it span { flex: 1; }
.module-list .it b { color: #ccc; font-weight: 400; }

/* 参考版红主题覆盖 */
.member-hero { background: linear-gradient(135deg, #ff5a6e, #e5254b) !important; }
.member-hero .assets .div { background: rgba(255,255,255,.25) !important; }
.amount-card { background: linear-gradient(135deg, #ff5a6e, #e5254b) !important; }
.amount-card .btn { color: #e5254b !important; }
.team-sum { background: linear-gradient(135deg, #ff5a6e, #e5254b) !important; }

/* 生成图上的文字叠层 */
.ref-banner { position: relative; }
.ref-banner > img { width: 100%; display: block; }
.banner-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.banner-copy .t { font-size: 26px; font-weight: 800; color: #e5254b; letter-spacing: 1px; }
.banner-copy .s { font-size: 13px; color: #e5254b; opacity: .9; }
.banner-copy .b { margin-top: 6px; background: #e5254b; color: #fff; font-size: 13px; padding: 7px 22px; border-radius: 16px; }

.ref-promos .ref-promo { flex: 1; width: 0; min-width: 0; position: relative; }
.ref-promos .ref-promo > img { width: 100%; display: block; border-radius: 10px; }
.ref-promos .ref-promo .pt { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 700; color: #b23a1f; }

.ref-gold { position: relative; }
.ref-gold > img { width: 100%; display: block; border-radius: 8px; }
.gold-copy .t { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 800; color: #ffe45c; text-shadow: 0 2px 6px rgba(150,0,0,.35); }
.gold-copy .go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: #ffe45c; color: #f21d3c; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }

.life-banners .lb { position: relative; width: 100%; height: 100%; }
.life-banners .lb.big { grid-row: span 2; }
.life-banners .lb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.life-banners .lb-copy { position: absolute; left: 0; right: 0; top: 16px; text-align: center; }
.life-banners .lb-copy .t { font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.18); }
.life-banners .lb-copy .p { display: inline-block; margin-top: 8px; background: #fff; color: #e5254b; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 14px; }
.life-banners .lb:nth-child(1) .lb-copy .t { color: #3a2b00; text-shadow: none; }
.life-banners .lb:nth-child(1) .lb-copy .p { color: #c98a00; }
.life-banners .lb:nth-child(2) .lb-copy .p { color: #ff7a1f; }

/* 领券中心 */
.cp-hero { margin: 10px 13px 0; border-radius: 10px; padding: 18px 16px; background: linear-gradient(120deg, #ff5a6e, #e5254b); color: #fff; }
.cp-hero .t { font-size: 20px; font-weight: 800; }
.cp-hero .s { font-size: 12px; opacity: .92; margin-top: 6px; }
.cp-hero .n { display: inline-block; margin-top: 10px; background: rgba(255,255,255,.2); border-radius: 12px; padding: 4px 10px; font-size: 12px; }
.cp-list { padding: 10px 13px 12px; display: flex; flex-direction: column; gap: 10px; }
.cp-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 12px 12px 12px 14px; }
.cp-card.off { opacity: .6; }
.cp-card .amt { width: 104px; flex-shrink: 0; text-align: center; border-right: 1px dashed #f0d5da; padding-right: 10px; }
.cp-card .amt b { display: block; color: #e5254b; font-size: 24px; font-weight: 800; }
.cp-card .amt span { display: block; color: #909399; font-size: 11px; margin-top: 4px; }
.cp-card .bd { flex: 1; min-width: 0; }
.cp-card .bd .t { font-size: 14px; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-card .bd .s { font-size: 11px; color: #909399; margin-top: 5px; }
.cp-btn { flex-shrink: 0; height: 30px; padding: 0 14px; border-radius: 15px; background: #e5254b; color: #fff; font-size: 12px; font-weight: 600; }
.cp-btn[disabled] { background: #f2c6ce; }
.cp-tip { padding: 4px 16px 20px; font-size: 11px; color: #b8bcc4; text-align: center; }
