/* home.css - 美化版 v4 */
.container{background:linear-gradient(180deg,#6558DB 0%,#8b83f5 8%,#f4f4f8 14%,#f4f4f8 100%);min-height:100%}

.main{padding:12px 12px 20px}

/* 顶部主图区 */
.main-head{height:auto;min-height:180px;border-radius:16px;position:relative;overflow:hidden;box-shadow:0 8px 24px rgba(101,88,219,.18)}
.main-tip{background:linear-gradient(90deg,rgba(0,0,0,.5),rgba(0,0,0,.25));border-radius:16px 16px 0 0;height:28px;left:0;top:0;width:100%;z-index:9999;display:flex;align-items:center;padding:0 14px;color:#fff;font-size:12px}
.main-icon{margin-top:12px}
.main-icon img{border-radius:14px;display:block;width:100%}
.main-icon--top{margin-bottom:10px}
.main-icon--top img{width:100%;border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.main-icon--bottom{display:flex;gap:10px;justify-content:space-between}
.main-icon--bottom img{height:78px;width:calc(50% - 5px);border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.main-icon--ad{margin-top:10px}
.main-icon--ad img{width:100%;border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.06)}

/* 分类区 - 精美卡片版 */
.main-cate{background:#fff;border-radius:20px;margin-top:14px;padding:20px 12px 16px;display:flex;flex-wrap:wrap;box-shadow:0 4px 20px rgba(101,88,219,.06);border:1px solid rgba(101,88,219,.04)}
.main-cate--item{color:#333;font-size:13px;font-weight:500;margin-top:14px;padding:0 4px;width:25%;display:flex;flex-direction:column;align-items:center;transition:transform .15s ease}
.main-cate--item:active{transform:scale(.88)}
.main-cate--item>img{border:none;border-radius:16px;height:48px;margin-bottom:8px;width:48px;object-fit:cover;box-shadow:0 4px 12px rgba(0,0,0,.08);transition:box-shadow .2s,transform .2s}
.main-cate--item:hover>img{box-shadow:0 6px 16px rgba(0,0,0,.12);transform:translateY(-2px)}

/* 商品列表 - 精美卡片版 */
.product-list{gap:10px;margin-top:12px}
.product{margin-top:0;width:calc(50% - 5px);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.05);transition:transform .15s ease,box-shadow .2s ease}
.product:active{transform:scale(.97)}
.product:hover{box-shadow:0 6px 20px rgba(0,0,0,.08)}
.product-cover{border-radius:0;height:175px;width:100%;object-fit:cover;display:block;background:linear-gradient(135deg,#f5f5f5,#eaeaea)}
.product-info{background:#fff;padding:10px 10px 12px}
.product-title{color:#1a1a1a;font-size:13px;margin-bottom:6px;line-height:1.35;font-weight:500}
.product-integral{color:#5c5bea;font-size:17px;font-weight:800;letter-spacing:-.5px}
.product-integral>text{font-size:10px;font-weight:600}
.product-price{color:#999;font-size:12px;font-weight:500;margin-top:2px}
.product-btn{background:linear-gradient(135deg,#5c5bea,#7c6ff5);border-radius:16px;color:#fff;font-size:12px;height:28px;width:58px;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;font-weight:600;box-shadow:0 3px 10px rgba(92,91,234,.3);transition:transform .15s}
.product-btn:active{transform:scale(.9)}

/* swiper 轮播 */
.swiper{height:180px;width:100%;border-radius:16px;overflow:hidden;position:relative}
.swiper-wrap{display:flex;transition:transform .5s ease;height:100%}
.swiper-slide{min-width:100%;height:100%}
.swiper-slide img{width:100%;height:100%;object-fit:cover;display:block}
.swiper-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:10}
.swiper-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);transition:all .3s}
.swiper-dot.active{background:#fff;width:18px;border-radius:3px}

/* 公告栏 */
.notice-bar{color:#fff;font-size:12px;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.3px}

/* 购买通知横幅 */
.purchase-notice{
  display:flex;align-items:center;gap:8px;
  background:rgba(0,0,0,.75);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  color:#fff;border-radius:24px;padding:7px 14px 7px 8px;
  font-size:12px;box-shadow:0 6px 20px rgba(0,0,0,.25);
  pointer-events:auto;max-width:100%;overflow:hidden;
  animation:pnIn .35s ease-out;
}
@keyframes pnIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
.purchase-notice .pn-icon{
  width:26px;height:26px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:15px;flex-shrink:0;
}
.purchase-notice .pn-text{
  flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.purchase-notice .pn-uid{color:#ffe680;font-weight:600;margin-right:2px}
.purchase-notice .pn-prod{color:#ffd2ad;font-weight:600}
.purchase-notice .pn-close{
  width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:14px;line-height:1;cursor:pointer;flex-shrink:0;
}

/* 列表底部提示 */
.list-end-tip{color:#bbb!important;font-size:11px!important}


/* ====== 商城页面样式 ====== */
.mall-page{padding:12px}

.mall-search-bar{position:sticky;top:0;z-index:20;background:#f4f4f8;padding:8px 0 10px}
.mall-search-box{display:flex;align-items:center;background:#fff;border-radius:22px;padding:8px 14px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.mall-search-icon{font-size:15px;margin-right:8px;opacity:.5}
.mall-search-input{border:none;outline:none;background:transparent;font-size:14px;flex:1;color:#333}
.mall-search-input::placeholder{color:#bbb}

.mall-cate-bar{display:flex;gap:8px;overflow-x:auto;padding:8px 0 12px;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x;cursor:grab}
.mall-cate-bar::-webkit-scrollbar{display:none}
.mall-cate-item{flex-shrink:0;padding:6px 16px;border-radius:18px;background:#fff;font-size:13px;color:#666;font-weight:500;box-shadow:0 2px 6px rgba(0,0,0,.04);cursor:pointer;transition:all .2s;white-space:nowrap}
.mall-cate-item.active{background:linear-gradient(135deg,#5c5bea,#7c6ff5);color:#fff;box-shadow:0 3px 10px rgba(92,91,234,.3)}
.mall-cate-item:active{transform:scale(.94)}

.mall-product-list{display:flex;flex-wrap:wrap;gap:10px}
.mall-product{width:calc(50% - 5px);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.05);transition:transform .15s ease,box-shadow .2s ease}
.mall-product:active{transform:scale(.97)}
.mall-product-cover{position:relative;height:170px;overflow:hidden;background:linear-gradient(135deg,#f5f5f5,#eaeaea)}
.mall-product-cover img{width:100%;height:100%;object-fit:cover;display:block}
.mall-product-cate{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.5);color:#fff;font-size:10px;padding:2px 8px;border-radius:10px;backdrop-filter:blur(4px)}
.mall-product-info{padding:10px 10px 12px}
.mall-product-title{color:#1a1a1a;font-size:13px;line-height:1.35;margin-bottom:8px;font-weight:500;height:36px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mall-product-bottom{display:flex;align-items:center;justify-content:space-between}
.mall-product-price{display:flex;flex-direction:column}
.mall-product-points{color:#5c5bea;font-size:17px;font-weight:800;letter-spacing:-.5px}
.mall-product-points>text{font-size:10px;font-weight:600}
.mall-product-cash{color:#999;font-size:11px;margin-top:1px}
.mall-product-btn{background:linear-gradient(135deg,#5c5bea,#7c6ff5);color:#fff;border-radius:16px;padding:6px 14px;font-size:12px;font-weight:600;box-shadow:0 3px 10px rgba(92,91,234,.3);cursor:pointer;transition:transform .15s}
.mall-product-btn:active{transform:scale(.9)}

.mall-loading{text-align:center;padding:16px 0;color:#999;font-size:13px}
.mall-end-tip{text-align:center;padding:16px 0 24px;color:#bbb;font-size:11px;width:100%}

/* 4-tab layout */
.tabbar-item{flex:1}


/* ====== 简化首页样式 ====== */
.home-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:80vh;padding:20px}
.home-logo{font-size:80px;margin-bottom:16px;animation:homeBounce 2s ease-in-out infinite}
@keyframes homeBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.home-title{font-size:28px;font-weight:800;color:#5c5bea;margin-bottom:8px;letter-spacing:1px}
.home-subtitle{font-size:14px;color:#999;margin-bottom:36px}
.home-mall-btn{background:linear-gradient(135deg,#5c5bea,#7c6ff5);color:#fff;padding:14px 40px;border-radius:28px;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 6px 20px rgba(92,91,234,.3);transition:transform .15s,box-shadow .2s}
.home-mall-btn:active{transform:scale(.95);box-shadow:0 3px 10px rgba(92,91,234,.3)}
.home-tips{margin-top:40px;display:flex;flex-direction:column;gap:14px}
.home-tip-item{font-size:14px;color:#666;background:#fff;padding:10px 20px;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.04);text-align:center;min-width:200px}
