/* ===== 首页专属样式 ===== */

/* 顶部安全区由 header 自己处理，避免 body 与 header 重复留白 */
body[data-page="home"] {
    padding-top: 0;
}

/* 固定顶部区域（logo + 搜索栏一起固定） */
body[data-page="home"] .home-sticky-top {
    position: sticky;
    top: 0;
    z-index: 100;
}
body[data-page="home"] .home-sticky-top .header {
    position: relative;
    padding-top: max(0.12rem, env(safe-area-inset-top));
}
.home-sticky-top .search-wrap {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* 滚动时搜索栏添加白色背景+投影 */
.home-sticky-top.scrolled .search-wrap {
    background: rgba(255,255,255,.94);
    box-shadow: 0 0.04rem 0.16rem rgba(255, 128, 168, 0.14);
}

/* Logo 占位：图片未返回或加载失败时显示图标，避免出现碎图 */
body[data-page="home"] .logo {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FFD2E0, #FFF6FA);
}
.logo .logo-fallback { font-size: 0.22rem; color: var(--pink-primary); }

/* 轮播Banner */
.banner-wrapper { padding: 0.12rem 0.18rem 0; }
.banner-container {
    position: relative;
    border-radius: 0.22rem;
    overflow: hidden;
    height: 1.68rem;
    background: #FF80A8;
    box-shadow: 0 0.14rem 0.34rem rgba(255,128,168,.18);
}
.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .42s cubic-bezier(.2,.86,.2,1);
}
.banner-slide { flex: 0 0 100%; height: 100%; position: relative; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-slide::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(120,40,70,.48) 0%, rgba(120,40,70,.14) 48%, rgba(255,255,255,.04) 100%),
        linear-gradient(0deg, rgba(100,30,55,.38) 0%, transparent 55%);
}
.banner-content { position: absolute; left: 0.18rem; right: 0.18rem; bottom: 0.16rem; z-index: 2; color: white; }
.banner-content .pill {
    display: inline-flex; align-items: center; gap: 0.05rem;
    padding: 0.04rem 0.1rem; border-radius: 9.99rem;
    background: rgba(255,255,255,.24);
    font-size: 0.11rem; font-weight: 700;
    backdrop-filter: blur(0.08rem);
}
.banner-content h3 { font-size: 0.21rem; font-weight: 900; margin: 0.1rem 0 0.05rem; letter-spacing: 0.005rem; }
.banner-content p { font-size: 0.12rem; opacity: .92; line-height: 1.5; }
.banner-dots {
    position: absolute; right: 0.16rem; bottom: 0.14rem; z-index: 3;
    display: flex; gap: 0.06rem;
}
.banner-dots .dot {
    width: 0.07rem; height: 0.07rem; border-radius: 50%;
    background: rgba(255,255,255,.52);
    transition: width .28s ease, border-radius .28s ease, background .28s ease;
}
.banner-dots .dot.active { width: 0.2rem; border-radius: 9.99rem; background: white; }

/* 快捷入口 */
.quick-entry { display: flex; justify-content: space-around; padding: 0.18rem 0.18rem 0.06rem; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 0.07rem; cursor: pointer; }
.quick-icon {
    width: 0.5rem; height: 0.5rem; border-radius: 0.16rem;
    display: flex; align-items: center; justify-content: center;
    /*box-shadow: 0 0.08rem 0.18rem rgba(255,128,168,.16);*/
    transition: transform .2s ease;
}
.quick-item:active .quick-icon { transform: scale(.92); }
.quick-icon i { font-size: 0.22rem; color: white; }
.quick-icon img { width: 0.5rem; height: 0.5rem; }
/* .quick-icon.c1 { background: linear-gradient(135deg, #FF80A8, #FFB0C8); } */
/*.quick-icon.c2 { background: linear-gradient(135deg, #A777E3, #D29BFF); }*/
/*.quick-icon.c3 { background: linear-gradient(135deg, #42CDB4, #82E8D8); }*/
/*.quick-icon.c4 { background: linear-gradient(135deg, #D8A447, #FFD77C); }*/
.quick-item span { font-size: 0.11rem; color: var(--text-secondary); font-weight: 600; }

/* 集卡区域 */
.card-collection {
    margin: 0 0.18rem 0.04rem;
    padding: 0.14rem;
    border-radius: 0.22rem;
    background:
        linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,232,240,.92)),
        radial-gradient(circle at 10% 10%, rgba(255,215,124,.35), transparent 26%);
    border: 0.01rem solid rgba(255,192,210,.9);
    box-shadow: 0 0.12rem 0.3rem rgba(255,128,168,.16);
    overflow: hidden;
    position: relative;
}
.card-collection::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(255,218,124,.16), transparent 50%),
                radial-gradient(ellipse at 80% 70%, rgba(255,182,213,.14), transparent 50%);
    opacity: .6;
    animation: cardBreathe 5s ease-in-out infinite;
}
@keyframes cardBreathe {
    0%, 100% { opacity: .35; transform: scale(1); }
    50% { opacity: .65; transform: scale(1.04); }
}
.collection-head {
    position: relative;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.1rem;
}
.collection-head h3 { font-size: 0.15rem; font-weight: 900; }
.collection-head span { font-size: 0.11rem; color: var(--pink-deep); font-weight: 700; }
.gacha-cards {
    position: relative;
    display: flex; gap: 0.1rem;
    overflow-x: auto;
    padding: 0.04rem 0.02rem 0.06rem;
    scrollbar-width: none;
}
.gacha-cards::-webkit-scrollbar { display: none; }
.gacha-card {
    flex: 0 0 1.12rem;
    height: 1.5rem;
    border-radius: 0.14rem;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.1rem 0.22rem rgba(110,38,68,.20);
    border: 0.01rem solid rgba(255,218,124,.9);
    cursor: pointer;
    transition: transform .2s ease;
}
.gacha-card:active { transform: scale(.96); }
.gacha-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gacha-card.locked {
    background: #E8E8EC;
    border: 0.015rem solid rgba(180,180,190,.5);
    box-shadow: 0 0.06rem 0.16rem rgba(0,0,0,.08);
}
.gacha-locked-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.45) opacity(0.55);
}
.gacha-lock-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.04rem;
    z-index: 2;
}
.gacha-lock-overlay i { font-size: 0.26rem; color: rgba(255,255,255,.85); text-shadow: 0 0.02rem 0.08rem rgba(0,0,0,.3); }
.gacha-lock-overlay span { font-size: 0.1rem; color: rgba(255,255,255,.9); font-weight: 700; text-shadow: 0 0.02rem 0.06rem rgba(0,0,0,.3); }
.card-name {
    position: absolute;
    left: 0.1rem; right: 0.1rem; top: 0.06rem;
    height: 0.24rem;
    border-radius: 9.99rem;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,239,201,.92));
    color: #9D5B15;
    font-size: 0.12rem;
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    text-shadow: 0 0.01rem 0 white;
    box-shadow: inset 0 0 0 0.01rem rgba(216,164,71,.45), 0 0.03rem 0.08rem rgba(87,44,12,.14);
    letter-spacing: 0.005rem;
}
.card-status {
    position: absolute;
    right: 0.06rem; bottom: 0.06rem;
    padding: 0.03rem 0.07rem;
    border-radius: 9.99rem;
    background: rgba(255,128,168,.94);
    color: white;
    font-size: 0.1rem;
    font-weight: 800;
    box-shadow: 0 0.04rem 0.1rem rgba(120,28,60,.20);
}
.collection-footer {
    position: relative;
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.08rem;
    font-size: 0.12rem;
    color: var(--text-secondary);
}
.draw-btn {
    border: none;
    padding: 0.07rem 0.15rem;
    border-radius: 9.99rem;
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
    color: white;
    font-size: 0.12rem;
    font-weight: 800;
    box-shadow: 0 0.08rem 0.18rem var(--shadow-pink);
    cursor: pointer;
}

/* 今日主推横向滚动 */
.featured-scroll {
    display: flex; gap: 0.12rem;
    padding: 0 0.18rem 0.16rem;
    overflow-x: auto; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-card {
    flex: 0 0 2.2rem;
    border-radius: 0.18rem; overflow: hidden;
    background: white;
    box-shadow: 0 0.1rem 0.28rem rgba(255,128,168,.14);
    position: relative;
    border: 0.01rem solid rgba(255,208,221,.72);
}
.featured-card .card-image { width: 100%; height: 1.48rem; object-fit: cover; display: block; }
.featured-card .card-content { padding: 0.12rem 0.13rem; }
.featured-card .product-name { font-size: 0.14rem; font-weight: 850; margin-bottom: 0.04rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.featured-card .product-desc { font-size: 0.11rem; color: var(--text-light); margin-bottom: 0.09rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-card .card-bottom { display: flex; align-items: center; justify-content: space-between; }
.featured-tag {
    position: absolute; top: 0.09rem; left: 0.09rem;
    padding: 0.04rem 0.08rem;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(0.08rem);
    border-radius: 0.11rem;
    font-size: 0.1rem; font-weight: 800; color: var(--pink-deep);
    display: flex; align-items: center; gap: 0.03rem;
}

/* 热门推荐网格 */
.hot-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.1rem; padding: 0 0.18rem 0.16rem;
}
.hot-card {
    border-radius: 0.16rem; overflow: hidden;
    background: white;
    position: relative;
    box-shadow: 0 0.08rem 0.22rem rgba(255,128,168,.12);
    border: 0.01rem solid rgba(255,208,221,.64);
}
.hot-card .card-image { width: 100%; height: 1.12rem; object-fit: cover; display: block; }
.hot-card .card-content { padding: 0.09rem 0.11rem; }
.hot-card .product-name { font-size: 0.13rem; font-weight: 800; margin-bottom: 0.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-card .card-meta { display: flex; align-items: center; justify-content: space-between; }
.hot-card .product-price { font-size: 0.14rem; font-weight: 900; color: var(--pink-deep); }
.hot-card .product-price span { font-size: 0.1rem; }
.hot-card .sold-count { font-size: 0.1rem; color: var(--text-light); display: flex; align-items: center; gap: 0.02rem; }
.hot-card .sold-count i { font-size: 0.11rem; color: #FF6B6B; }

/* 精选护理列表 */
.category-tabs {
    display: flex; gap: 0.08rem;
    padding: 0 0.18rem 0.12rem;
    overflow-x: auto; scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    flex: 0 0 auto;
    padding: 0.07rem 0.14rem; border-radius: 0.16rem;
    font-size: 0.12rem; color: var(--text-secondary);
    background: white; border: 0.01rem solid var(--border-color);
    white-space: nowrap; font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.category-tab.active {
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
    color: white; border-color: transparent;
    box-shadow: 0 0.05rem 0.14rem var(--shadow-pink);
}
.product-list { padding: 0 0.18rem 0.2rem; display: flex; flex-direction: column; gap: 0.1rem; }
.home-product-empty {
    min-height: 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    color: var(--text-light);
    text-align: center;
}
.home-product-empty i { font-size: 0.38rem; color: var(--pink-light); }
.home-product-empty p { margin: 0; font-size: 0.13rem; font-weight: 800; color: var(--text-secondary); }
.home-product-empty span { font-size: 0.11rem; }
.product-item {
    display: flex; gap: 0.11rem; padding: 0.11rem;
    background: white; border-radius: 0.16rem;
    box-shadow: 0 0.08rem 0.2rem rgba(255,128,168,.10);
    border: 0.01rem solid rgba(255,208,221,.65);
}
.product-img { width: 0.86rem; height: 0.86rem; border-radius: 0.12rem; object-fit: cover; flex-shrink: 0; }
.product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.product-info .name { font-size: 0.14rem; font-weight: 850; margin-bottom: 0.03rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-info .desc { font-size: 0.11rem; color: var(--text-light); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-tags { display: flex; gap: 0.05rem; margin-top: 0.05rem; flex-wrap: wrap; }
.product-tags span { font-size: 0.09rem; padding: 0.02rem 0.06rem; border-radius: 0.06rem; background: var(--pink-lighter); color: var(--pink-dark); font-weight: 700; }
.product-tags span.points-tag { background: linear-gradient(135deg, #FFF8E1, #FFE082); color: #F57F17; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 0.06rem; }
.product-price.points-price { font-size: 0.13rem; font-weight: 900; color: #F57F17; display: flex; align-items: center; gap: 0.02rem; }
.product-price.points-price i { font-size: 0.14rem; }
/* 现金+积分子价格 */
.price-points-sub { font-size: 0.1rem; font-weight: 800; color: var(--gold); margin-left: 0.04rem; white-space: nowrap; }

/* ===== 首页卡片详情弹窗 ===== */
.home-card-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(0.04rem);
    display: none;
    pointer-events: none;
    align-items: center; justify-content: center;
}
.home-card-overlay.show { display: flex; pointer-events: auto; animation: homeCardFadeIn .3s ease; }
@keyframes homeCardFadeIn { from { opacity: 0; } to { opacity: 1; } }
.home-card-popup {
    display: flex; flex-direction: column;
    align-items: center;
    animation: homeCardPop .4s cubic-bezier(.2,1.3,.4,1);
}
@keyframes homeCardPop {
    from { transform: scale(.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.home-card-popup-title {
    font-size: 0.16rem; font-weight: 900;
    color: rgba(255,255,255,.95);
    margin-bottom: 0.16rem;
    text-shadow: 0 0.02rem 0.1rem rgba(255,128,168,.5);
    letter-spacing: 0.02rem;
    display: flex; align-items: center; gap: 0.06rem;
}
.home-card-popup-title i { font-size: 0.18rem; color: #FFE08A; }
.home-card-img-wrap {
    width: 2.2rem; height: 3.08rem;
    border-radius: 0.16rem;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.6rem rgba(255,128,168,.4);
    border: 0.03rem solid rgba(255,255,255,.3);
    position: relative;
}
.home-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.home-card-img-wrap::after {
    content: "";
    position: absolute; top: 0; bottom: 0; left: -60%;
    width: 38%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg);
    animation: homeCardShine 3.6s ease-in-out infinite;
    z-index: 4;
    pointer-events: none;
}
@keyframes homeCardShine { 0% { left: -60%; } 55%, 100% { left: 120%; } }
.home-card-lock-badge {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 0.04rem;
    padding: 0.06rem 0.14rem;
    border-radius: 9.99rem;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 0.12rem; font-weight: 800;
}
.home-card-popup-name {
    margin-top: 0.2rem;
    font-size: 0.18rem; font-weight: 900;
    color: #fff;
    text-shadow: 0 0.02rem 0.1rem rgba(255,128,168,.5);
}
.home-card-popup-time {
    margin-top: 0.08rem;
    font-size: 0.12rem; font-weight: 600;
    color: rgba(255,255,255,.7);
    display: flex; align-items: center; gap: 0.04rem;
}
.home-card-popup-time i { font-size: 0.13rem; color: rgba(255,255,255,.6); }
.home-card-close-row {
    margin-top: 0.2rem;
    display: flex; justify-content: center;
}
.home-card-close-btn {
    width: 0.4rem; height: 0.4rem;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 0.02rem solid rgba(255,255,255,.4);
    color: #fff;
    font-size: 0.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .15s ease;
}
.home-card-close-btn:active { transform: scale(.88); }

/* ===== 首页卡片详情弹窗（复用集卡详情页样式）===== */
.card-detail-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(0.04rem);
    display: none;
    pointer-events: none;
    flex-direction: column;
    align-items: center; justify-content: center;
}
.card-detail-overlay.show { display: flex; pointer-events: auto; animation: detailFadeIn .3s ease; }
@keyframes detailFadeIn { from { opacity: 0; } to { opacity: 1; } }
.card-detail-single {
    display: flex; flex-direction: column;
    align-items: center;
    animation: detailPop .4s cubic-bezier(.2,1.3,.4,1);
}
@keyframes detailPop {
    from { transform: scale(.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.card-detail-img-wrap {
    width: 2.4rem; height: 3.4rem;
    border-radius: 0.16rem;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.6rem rgba(255,128,168,.4), 0 0 0.04rem rgba(255,218,124,.6);
    border: 0.03rem solid rgba(255,255,255,.3);
    position: relative;
}
.card-detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-detail-img-wrap::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
    background-size: 200% 100%;
    background-position: 200% 0;
    animation: cardDetailShine 3.6s ease-in-out infinite;
    z-index: 4;
    pointer-events: none;
}
@keyframes cardDetailShine { 0% { background-position: 200% 0; } 55%, 100% { background-position: -100% 0; } }
.card-detail-name {
    margin-top: 0.2rem;
    font-size: 0.18rem; font-weight: 900;
    color: #fff;
    text-shadow: 0 0.02rem 0.1rem rgba(255,128,168,.5);
}
.card-detail-time {
    margin-top: 0.08rem;
    font-size: 0.12rem; font-weight: 600;
    color: rgba(255,255,255,.7);
    display: flex; align-items: center; gap: 0.04rem;
}
.card-detail-time i { font-size: 0.13rem; color: rgba(255,255,255,.6); }
.card-detail-carousel {
    display: flex; flex-direction: column;
    align-items: center;
    width: 100%;
    animation: detailPop .4s cubic-bezier(.2,1.3,.4,1);
}
.carousel-track {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem calc(50% - 0.8rem);
    box-sizing: border-box;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
    flex-shrink: 0;
    scroll-snap-align: center;
    width: 1.6rem; height: 2.24rem;
    border-radius: 0.14rem;
    overflow: hidden;
    margin: 0 0.1rem;
    transition: transform .12s ease-out, opacity .12s ease-out;
    box-shadow: 0 0.15rem 0.4rem rgba(0,0,0,.4);
    border: 0.02rem solid rgba(255,255,255,.2);
    transform-origin: center center;
    position: relative;
}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
/* 轮播每张卡的获得时间角标（左下角，避开右下角张数角标） */
.carousel-time {
    position: absolute;
    left: 0.06rem; bottom: 0.06rem;
    z-index: 6;
    display: flex; align-items: center; gap: 0.02rem;
    max-width: calc(100% - 0.12rem);
    padding: 0.03rem 0.07rem;
    border-radius: 9.99rem;
    background: rgba(0,0,0,.46);
    color: rgba(255,255,255,.94);
    font-size: 0.09rem; font-weight: 700;
    white-space: nowrap;
}
.carousel-time i { font-size: 0.1rem; }
.carousel-item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
    background-size: 200% 100%;
    background-position: 200% 0;
    animation: cardDetailShine 3.6s ease-in-out infinite;
    z-index: 4;
    pointer-events: none;
}
.card-detail-info { text-align: center; margin-top: 0.06rem; }
.card-detail-title {
    font-size: 0.16rem; font-weight: 900;
    color: rgba(255,255,255,.95);
    margin-bottom: 0.16rem;
    text-shadow: 0 0.02rem 0.1rem rgba(255,128,168,.5);
    letter-spacing: 0.02rem;
    display: flex; align-items: center; gap: 0.06rem;
}
.card-detail-title i { font-size: 0.18rem; color: #FFE08A; }
.card-detail-close-row {
    margin-top: 0.24rem;
    display: flex; justify-content: center;
}
.card-detail-close-circle {
    width: 0.42rem; height: 0.42rem;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 0.02rem solid rgba(255,255,255,.4);
    color: rgba(255,255,255,.92);
    font-size: 0.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}
.card-detail-close-circle:active { transform: scale(.88); background: rgba(255,255,255,.2); }

/* 操作按钮（赠送/转积分） */
.card-detail-actions {
    display: flex; gap: 0.12rem;
    margin-top: 0.24rem;
    align-items: center;
}
.card-detail-btn {
    padding: 0.1rem 0.32rem;
    border: none;
    border-radius: 9.99rem;
    font-size: 0.14rem; font-weight: 900;
    display: flex; align-items: center; gap: 0.05rem;
    cursor: pointer;
    transition: transform .15s ease;
}
.card-detail-btn:active { transform: scale(.92); }
.card-detail-btn i { font-size: 0.16rem; }
.card-detail-btn.gift {
    background: linear-gradient(135deg, #FF8FB5, #FF5C8A);
    color: #fff;
    box-shadow: 0 0.1rem 0.24rem rgba(255,92,138,.4);
}
.card-detail-btn.convert {
    background: linear-gradient(135deg, #FFE08A, #D8A447);
    color: #fff;
    box-shadow: 0 0.1rem 0.24rem rgba(216,164,71,.4);
}

/* ===== 赠送分享弹窗 ===== */
.share-modal-mask {
    position: fixed; inset: 0; z-index: 9600;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(0.04rem);
    display: none;
    pointer-events: none;
    align-items: center; justify-content: center;
}
.share-modal-mask.show { display: flex; pointer-events: auto; animation: detailFadeIn .25s ease; }
.share-modal-box { width: 2.9rem; max-height: 5.5rem; padding: 0.12rem 0.12rem 0.16rem; position: relative; overflow: hidden; background-color: #fff; border-radius: 0.2rem; }
.share-modal-box.has-poster { background-color: transparent; }
.share-card-preview {
    display: none;
    position: relative;
    overflow: hidden;
}
.share-poster-preview { display: block; padding: 0; background: transparent; }
.share-poster-img { display: block; width: 100%; height: auto; max-height: 4.8rem; object-fit: contain; border-radius: 0.16rem; opacity: 1; -webkit-user-select: none; user-select: none; -webkit-touch-callout: default; }
.share-card-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.share-card-name { font-size: 0.15rem; font-weight: 900; color: var(--text-primary); }
.share-card-ribbon {
    font-size: 0.1rem; color: var(--pink-deep); margin-top: 0.05rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.03rem;
}
.share-card-ribbon i { font-size: 0.11rem; color: var(--gold); }
.share-qr-area {
    width: 1.5rem; height: 1.5rem;
    margin: 0.04rem auto 0.06rem;
    padding: 0.08rem; background: #fff;
    border: 0.02rem solid var(--border-color); border-radius: 0.12rem;
}
.share-qr-area .qr-svg { width: 100%; height: 100%; }
.share-tip {
    position: absolute; left: 0; right: 0; bottom: 0.92rem;
    text-align: center;
    font-size: 0.12rem; font-weight: 800; color: var(--pink-deep);
    display: flex; align-items: center; justify-content: center; gap: 0.04rem;
}
.share-tip i { font-size: 0.14rem; color: var(--pink-primary); }
.share-modal-box .share-modal-btns { position: static; margin-top: 0.12rem; }
.share-modal-btns { display: flex; gap: 0.1rem; }
.share-modal-btn {
    flex: 1; height: 0.4rem; border: none; border-radius: 9.99rem;
    font-size: 0.14rem; font-weight: 900; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.04rem;
    transition: transform .15s ease;
}
.share-modal-btn:active { transform: scale(.96); }
.share-modal-btn.save { background: #F5F5F5; color: var(--text-secondary); }
.share-modal-btn.confirm { background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark)); color: #fff; }
.share-modal-btn i { font-size: 0.15rem; }

/* ===== 转积分确认弹窗 ===== */
.convert-modal-mask {
    position: fixed; inset: 0; z-index: 9600;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(0.04rem);
    display: none;
    pointer-events: none;
    align-items: center; justify-content: center;
}
.convert-modal-mask.show { display: flex; pointer-events: auto; animation: detailFadeIn .25s ease; }
.convert-modal { width: 3.0rem; background: #fff; border-radius: 0.2rem; overflow: hidden; }
.convert-modal-header {
    padding: 0.16rem 0.18rem 0.12rem; text-align: center;
    background: linear-gradient(135deg, #FFF8E8, #FFEEF3);
    border-bottom: 0.01rem solid #FFE0EA;
}
.convert-modal-header h3 {
    font-size: 0.16rem; font-weight: 900; color: var(--pink-deep);
    display: flex; align-items: center; justify-content: center; gap: 0.06rem;
}
.convert-modal-header h3 i { font-size: 0.18rem; color: var(--gold); }
.convert-modal-body { padding: 0.18rem; }
.convert-card-preview { display: flex; align-items: center; gap: 0.12rem; margin-bottom: 0.16rem; }
.convert-card-img {
    width: 0.6rem; height: 0.84rem; border-radius: 0.08rem;
    overflow: hidden; flex-shrink: 0; box-shadow: 0 0.04rem 0.12rem rgba(0,0,0,.1);
}
.convert-card-img img { width: 100%; height: 100%; object-fit: cover; }
.convert-card-name { font-size: 0.15rem; font-weight: 900; color: var(--text-primary); }
.convert-card-stock { font-size: 0.11rem; color: var(--text-light); margin-top: 0.04rem; }
.convert-qty-section { background: #FFF8FB; border: 0.01rem solid #FFE0EA; border-radius: 0.12rem; padding: 0.14rem; }
.convert-qty-label { font-size: 0.12rem; font-weight: 800; color: var(--text-secondary); margin-bottom: 0.1rem; display: flex; align-items: center; gap: 0.04rem; }
.convert-qty-label i { font-size: 0.14rem; color: var(--gold); }
.convert-qty-row { display: flex; align-items: center; justify-content: space-between; }
.convert-qty-control { display: flex; align-items: center; gap: 0.16rem; }
.convert-qty-btn {
    width: 0.32rem; height: 0.32rem; border: 0.01rem solid #FFC0D2; border-radius: 50%;
    background: #fff; font-size: 0.18rem; font-weight: 900; color: var(--pink-deep);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: transform .15s ease;
}
.convert-qty-btn:active { transform: scale(.85); }
.convert-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.convert-qty-num { font-size: 0.2rem; font-weight: 900; color: var(--text-primary); min-width: 0.4rem; text-align: center; }
.convert-points-display { text-align: right; }
.convert-points-num { font-size: 0.2rem; font-weight: 900; color: var(--gold); }
.convert-points-label { font-size: 0.1rem; color: var(--text-light); margin-top: 0.02rem; }
.convert-modal-footer { padding: 0 0.18rem 0.18rem; display: flex; gap: 0.1rem; }
.convert-modal-btn {
    flex: 1; height: 0.4rem; border: none; border-radius: 9.99rem;
    font-size: 0.14rem; font-weight: 900; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.04rem;
    transition: transform .15s ease;
}
.convert-modal-btn:active { transform: scale(.96); }
.convert-modal-btn.cancel { background: #F5F5F5; color: var(--text-secondary); }
.convert-modal-btn.confirm { background: linear-gradient(135deg, #FFE08A, #D8A447); color: #fff; box-shadow: 0 0.08rem 0.2rem rgba(216,164,71,.35); }
.convert-modal-btn i { font-size: 0.15rem; }

/* ===== 首页板块滑动出现动画（从飘奈集卡开始）===== */
.home-load {
    opacity: 0;
    transform: translateY(0.1rem);
    transition: opacity .3s ease, transform .3s ease;
}
.home-load.in {
    opacity: 1;
    transform: none;
}

/* ===== 附近门店预览 ===== */
.store-preview-scroll {
    display: flex;
    gap: 0.12rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 0.18rem 0.02rem;
}
.store-preview-scroll::-webkit-scrollbar { display: none; }
.store-preview-card {
    flex: 0 0 1.42rem;
    background: white;
    border-radius: 0.16rem;
    overflow: hidden;
    border: 0.01rem solid var(--border-color);
    box-shadow: 0 0.08rem 0.22rem rgba(255,128,168,.1);
    cursor: pointer;
    transition: transform .2s ease;
}
.store-preview-card:active { transform: scale(.95); }
.store-preview-img {
    width: 100%;
    height: 0.92rem;
    position: relative;
    overflow: hidden;
}
.store-preview-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.store-preview-status {
    position: absolute;
    top: 0.06rem; right: 0.06rem;
    padding: 0.02rem 0.08rem;
    border-radius: 9.99rem;
    font-size: 0.09rem;
    font-weight: 800;
    color: white;
    backdrop-filter: blur(0.08rem);
    -webkit-backdrop-filter: blur(0.08rem);
}
.store-preview-status.open { background: rgba(66,205,180,.88); }
.store-preview-status.closed { background: rgba(180,154,164,.88); }
.store-preview-info { padding: 0.1rem 0.12rem 0.12rem; }
.store-preview-name {
    font-size: 0.12rem;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.store-preview-meta {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    margin-top: 0.05rem;
    font-size: 0.1rem;
    font-weight: 700;
}
.store-preview-meta .distance {
    color: var(--pink-deep);
    display: flex; align-items: center; gap: 0.02rem;
}
.store-preview-meta .distance i { font-size: 0.11rem; }

/* ===== 首页响应式 ===== */

/* ===== 首页活动弹窗（99会员卡）===== */
.promo-popup-mask {
    position: fixed; inset: 0; z-index: 9700;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(0.06rem);
    -webkit-backdrop-filter: blur(0.06rem);
    display: none;
    pointer-events: none;
    align-items: center; justify-content: center;
}
.promo-popup-mask.show {
    display: flex; pointer-events: auto;
    animation: promoFadeIn .3s ease;
}
@keyframes promoFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 弹窗容器（包裹白底卡片+关闭按钮） */
.promo-popup-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: promoPop .4s cubic-bezier(.2,1.3,.4,1);
}
@keyframes promoPop {
    from { transform: scale(.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.promo-popup-box {
    position: relative;
    width: 3.0rem;
    background: white;
    border-radius: 0.22rem;
    overflow: hidden;
    box-shadow: 0 0.16rem 0.44rem rgba(255,92,138,.22);
}
/* 弹窗顶部视觉区 */
.promo-visual {
    position: relative;
    width: 100%;
    height: 1.8rem;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

/* 装饰圆点 */
.promo-deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}
.promo-deco-circle.c1 {
    width: 0.6rem; height: 0.6rem;
    background: #FFD6E5;
    top: -0.15rem; left: -0.1rem;
    animation: promoFloat 3s ease-in-out infinite;
}
.promo-deco-circle.c2 {
    width: 0.4rem; height: 0.4rem;
    background: #FFF0CC;
    top: 0.15rem; right: 0.1rem;
    animation: promoFloat 3.5s ease-in-out infinite .5s;
}
@keyframes promoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-0.08rem) scale(1.08); }
}

/* 99会员卡视觉区 —— 粉金渐变，符合项目整体风格 */
.promo-visual.member-visual {
    background: linear-gradient(135deg, #FF5C8A 0%, #FF8FB1 45%, #FFB88C 100%);
    height: 2.0rem;
}
.member-card-visual {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0.13rem 0.16rem;
    border-radius: 0.14rem;
    background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
    border: 0.01rem solid rgba(255,255,255,.35);
    box-shadow: 0 0.08rem 0.2rem rgba(110,38,68,.18);
    z-index: 2;
    overflow: hidden;
}
.member-card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.08rem;
}
.member-card-label {
    font-size: 0.12rem; font-weight: 800;
    color: rgba(255,255,255,.95);
}
.member-card-label i { font-size: 0.14rem; color: #FFE08A; vertical-align: middle; margin-right: 0.03rem; }
.member-card-price {
    font-size: 0.2rem; font-weight: 900;
    color: white;
}
.member-card-unit {
    font-size: 0.1rem; font-weight: 600;
    color: rgba(255,255,255,.7);
}
.member-card-benefit {
    display: flex; align-items: baseline; gap: 0.06rem;
    margin-bottom: 0.07rem;
}
.benefit-amount {
    font-size: 0.32rem; font-weight: 900;
    color: #FFE08A;
    line-height: 1;
}
.benefit-unit {
    font-size: 0.14rem; font-weight: 800;
}
.benefit-text {
    font-size: 0.11rem; font-weight: 700;
    color: rgba(255,255,255,.9);
}
.member-card-features {
    display: flex; gap: 0.1rem;
    font-size: 0.09rem; font-weight: 700;
    color: rgba(255,255,255,.8);
}
.member-card-features span {
    display: inline-block;
}
.member-card-features i { font-size: 0.11rem; color: #FFE08A; vertical-align: middle; }
.member-card-shine {
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    animation: memberShine 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes memberShine {
    0%, 100% { left: -60%; }
    55% { left: 120%; }
}

/* 弹窗内容区 */
.promo-content {
    width: 100%;
    padding: 0.16rem 0.2rem 0.2rem;
    text-align: center;
    display: flex; flex-direction: column; gap: 0.1rem;
}
.promo-badge {
    width: fit-content;
    margin: 0 auto;
    padding: 0.03rem 0.1rem;
    border-radius: 9.99rem;
    background: #FFEEF3;
    font-size: 0.1rem; font-weight: 800;
    color: var(--pink-deep);
    line-height: 1.6;
}
.promo-badge i { font-size: 0.12rem; color: var(--pink-primary); vertical-align: middle; margin-right: 0.02rem; }
.promo-badge.gold {
    background: linear-gradient(135deg, #FFF8E1, #FFE082);
    color: #BF6A00;
}
.promo-badge.gold i { color: var(--gold); }
.promo-title {
    font-size: 0.22rem; font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}
.promo-desc {
    font-size: 0.12rem; font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 行动按钮 */
.promo-action-btn {
    width: 100%;
    height: 0.46rem;
    border: none;
    border-radius: 9.99rem;
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
    color: white;
    font-size: 0.15rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center; gap: 0.06rem;
    box-shadow: 0 0.1rem 0.22rem rgba(255,92,138,.35);
    cursor: pointer;
    transition: transform .15s ease;
    margin: 0;
}
.promo-action-btn:active { transform: scale(.96); }
.promo-action-btn i { font-size: 0.18rem; }
.promo-action-btn.gold {
    background: linear-gradient(135deg, #FFD54F, #D8A447);
    box-shadow: 0 0.1rem 0.22rem rgba(216,164,71,.35);
}

/* 圆形关闭按钮 —— 在白色卡片外部的遮罩层中 */
.promo-close-circle {
    margin-top: 0.2rem;
    width: 0.4rem; height: 0.4rem;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 0.02rem solid rgba(255,255,255,.5);
    color: rgba(255,255,255,.9);
    font-size: 0.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
    flex-shrink: 0;
}
.promo-close-circle:active {
    transform: scale(.85);
    background: rgba(255,255,255,.25);
}

/* ===== 绑定手机号弹窗 ===== */
.phone-bind-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 9800;
    display: none;
    align-items: center; justify-content: center;
}
.phone-bind-mask.show { display: flex; }
.phone-bind-wrapper {
    display: flex; flex-direction: column; align-items: center;
    animation: phoneBindPop .3s ease;
}
.phone-bind-box {
    position: relative;
    background: white;
    border-radius: 0.2rem;
    width: 2.9rem;
    padding: 0.2rem 0.2rem 0.18rem;
    text-align: center;
    display: flex; flex-direction: column; gap: 0.1rem;
}
.phone-bind-close-circle {
    margin-top: 0.16rem;
    width: 0.36rem; height: 0.36rem;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 0.02rem solid rgba(255,255,255,.5);
    color: rgba(255,255,255,.9);
    font-size: 0.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
    flex-shrink: 0;
}
.phone-bind-close-circle:active {
    transform: scale(.85);
    background: rgba(255,255,255,.25);
}
@keyframes phoneBindPop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.phone-bind-icon {
    width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.phone-bind-icon i { font-size: 0.26rem; color: white; }
.phone-bind-title {
    font-size: 0.16rem; font-weight: 900; color: var(--text-primary);
    margin: 0;
}
.phone-bind-desc {
    font-size: 0.12rem; color: var(--text-light);
    margin: 0;
}
.phone-bind-field { margin: 0; }
.phone-bind-input-wrap {
    display: flex; align-items: center; gap: 0.04rem;
    background: #FAFAFA;
    border: 0.01rem solid #EEE;
    border-radius: 0.12rem;
    padding: 0 0.1rem;
    transition: all .2s ease;
}
.phone-bind-input-wrap:focus-within {
    border-color: var(--pink-primary);
    background: #FFF8FB;
}
.phone-bind-input-wrap i { font-size: 0.16rem; color: var(--text-light); flex-shrink: 0; }
.phone-bind-input {
    flex: 1; border: none; background: none; outline: none;
    font-size: 0.13rem; color: var(--text-primary);
    padding: 0.1rem 0;
    font-family: inherit;
    min-width: 0;
}
.phone-bind-input::placeholder { color: #CCC; }
.phone-bind-code-btn {
    border: none;
    background: none;
    color: var(--pink-primary);
    font-size: 0.11rem; font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0;
    font-family: inherit;
}
.phone-bind-code-btn:disabled { color: #CCC; }
.phone-bind-confirm-btn {
    width: 100%;
    padding: 0.12rem 0;
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
    color: white; border: none; border-radius: 0.12rem;
    font-size: 0.14rem; font-weight: 800;
    margin: 0;
    box-shadow: 0 0.06rem 0.16rem rgba(255,107,138,.3);
    cursor: pointer;
    transition: transform .15s ease;
}
.phone-bind-confirm-btn:active { transform: scale(.97); }
