/* 迈青科技 - 复刻样式（墨绿 + 清新绿配色）
   基准：1126px 视口时 1rem = 150px（设计稿 750rpx，1rem = 100rpx） */
:root{
  --primary:#16a34a;
  --accent:#4ade80;
  --price:#ef4444;
  --cream:#f2fbf5;
  --ink:#14532d;
  --muted:#6b8f7a;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{font-size:calc(100vw / 7.5)}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  background:linear-gradient(180deg,#dcfce7 0%,#f0fdf4 12%,#ecfdf5 45%,#d1fae5 100%);
  color:var(--ink);min-height:100vh;padding-bottom:1.35rem;overflow-x:hidden;
}
img{display:block;max-width:100%}
button{font-family:inherit;border:none;background:none;cursor:pointer}

/* 顶部栏 */
.topbar{
  position:sticky;top:0;z-index:50;height:.58rem;padding:0 .13rem;
  display:flex;align-items:center;justify-content:space-between;
  background:linear-gradient(180deg,rgba(220,252,231,.96),rgba(240,253,244,.92));
  backdrop-filter:blur(6px);
}
.brand{display:flex;align-items:center;gap:.09rem}
.logo{
  width:.32rem;height:.32rem;border-radius:50%;
  background:linear-gradient(135deg,#4ade80,#16a34a);color:#fff;
  font-size:0.24rem;font-weight:700;display:flex;align-items:center;justify-content:center;
  box-shadow:0 .01rem .05rem rgba(22,163,74,.28);
}
.brand-name{font-size:0.214rem;font-weight:700;line-height:1.2;color:var(--ink)}
.brand-sub{font-size:0.114rem;color:var(--muted);margin-top:.01rem}
.top-actions{display:flex;align-items:center;gap:.08rem}
.notice-btn{
  font-size:0.147rem;font-weight:600;color:#15803d;
  background:#dcfce7;border:1px solid #bbf7d0;
  padding:.06rem .12rem;border-radius:.15rem;white-space:nowrap;
}
.mine-btn{
  display:flex;align-items:center;gap:.04rem;
  background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;
  font-size:0.147rem;font-weight:600;padding:.07rem .12rem;border-radius:.15rem;
  box-shadow:0 .01rem .06rem rgba(22,163,74,.3);
}
.mine-btn svg{width:.12rem;height:.12rem}

/* 主卡片 */
.page{padding:0 .13rem}
.hero{
  background:linear-gradient(160deg,#166534 0%,#052e16 100%);
  border-radius:.13rem;padding:.13rem;
  box-shadow:0 .04rem .13rem rgba(6,78,59,.2);
}
.search-box{
  height:.31rem;border-radius:.155rem;background:rgba(255,255,255,.1);
  display:flex;align-items:center;gap:.06rem;padding:0 .13rem;
  color:rgba(255,255,255,.65);font-size:0.133rem;
}
.search-icon{width:.10rem;height:.10rem}
.season-tag{
  display:block;width:max-content;margin-top:.07rem;background:rgba(255,255,255,.12);
  color:rgba(255,255,255,.85);font-size:0.107rem;padding:.03rem .09rem;border-radius:.1rem;line-height:1.2;
}
.hero-title{color:#fff;font-size:0.32rem;font-weight:800;margin-top:.09rem;letter-spacing:.01rem}
.hero-sub{color:rgba(255,255,255,.72);font-size:0.124rem;margin-top:.04rem}
.quick-cards{display:flex;gap:.09rem;margin-top:.16rem}
.quick-card{
  flex:1;height:.57rem;border-radius:.07rem;padding:.09rem .13rem;
  display:flex;flex-direction:column;justify-content:center;
}
.quick-card.today{background:linear-gradient(120deg,#16a34a 0%,#15803d 100%)}
.quick-card.help{background:rgba(255,255,255,.08)}
.quick-label{font-size:0.107rem;color:rgba(255,255,255,.7)}
.quick-title{font-size:0.151rem;color:#fff;font-weight:700;margin-top:.05rem;line-height:1.4}
.banner{
  position:relative;margin-top:.12rem;height:2.35rem;border-radius:.09rem;
  overflow:hidden;background:#052e16;
}
.banner img{width:100%;height:100%;object-fit:cover;filter:brightness(.82)}
.banner-dots{position:absolute;top:.09rem;left:0;right:0;display:flex;justify-content:center;gap:.04rem}
.banner-dots i{width:.05rem;height:.05rem;border-radius:50%;background:rgba(255,255,255,.5);transition:.3s}
.banner-dots i.on{background:#fff;width:.13rem;border-radius:.03rem}
.stats{display:flex;gap:.09rem;margin-top:.12rem}
.stat{
  flex:1;height:.6rem;border-radius:.07rem;background:rgba(255,255,255,.08);
  padding:.09rem .13rem;display:flex;flex-direction:column;justify-content:center;
}
.stat-num{font-size:0.25rem;font-weight:700;color:#fff;line-height:1.1}
.stat-label{font-size:0.116rem;color:rgba(255,255,255,.65);margin-top:.04rem}
.tag-row{display:flex;gap:.07rem;margin-top:.1rem;flex-wrap:wrap}
.tag-row span{
  font-size:0.107rem;color:rgba(255,255,255,.85);background:rgba(255,255,255,.12);
  padding:.04rem .09rem;border-radius:.1rem;
}

/* 功能入口 */
.features{display:grid;grid-template-columns:1fr 1fr;gap:.1rem;margin-top:.1rem}
.feature{background:var(--cream);border-radius:.13rem;min-height:1.6rem;padding:.22rem .2rem;box-shadow:0 .01rem .07rem rgba(22,163,74,.06)}
.feature-icon{
  width:.72rem;height:.72rem;border-radius:50%;background:#dcfce7;color:var(--primary);
  display:flex;align-items:center;justify-content:center;
}
.feature-icon svg{width:.4rem;height:.4rem}
.feature-name{font-size:0.24rem;font-weight:700;margin-top:.14rem;color:var(--ink)}
.feature-sub{font-size:0.16rem;color:var(--muted);margin-top:.06rem}

/* 区块 */
.block{margin-top:.18rem}
.section-head{display:flex;align-items:center;justify-content:space-between;padding:0 .04rem .09rem}
.section-head h2{font-size:0.253rem;font-weight:800;color:var(--ink)}
.more{font-size:0.147rem;color:#15803d;background:#dcfce7;border-radius:.1rem;padding:.04rem .12rem}

/* 分类入口 */
.sub-banner{
  height:.48rem;border-radius:.07rem;background:linear-gradient(90deg,#dcfce7,#bbf7d0);
  padding:0 .13rem;display:flex;flex-direction:column;justify-content:center;
}
.sub-tip{font-size:0.123rem;color:#4d7c5f}
.sub-banner strong{font-size:0.2rem;color:#14532d;margin-top:.02rem}
.category-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.1rem;margin-top:.1rem}
.cate-item{background:#fff;border-radius:.1rem;padding:.22rem .14rem;text-align:center;box-shadow:0 .01rem .05rem rgba(22,163,74,.05)}
.cate-icon{width:1.25rem;height:1.25rem;margin:0 auto .14rem;border-radius:.1rem;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cate-icon img{width:100%;height:100%;object-fit:cover}
.cate-name{font-size:0.207rem;color:#334155;white-space:nowrap;font-weight:600}

/* 今日推荐 */
.goods-scroll{display:flex;gap:.1rem;overflow-x:auto;padding-bottom:.05rem;scrollbar-width:none}
.goods-scroll::-webkit-scrollbar{display:none}
.g-card{flex:0 0 2.5rem;background:#fff;border-radius:.1rem;overflow:hidden;box-shadow:0 .01rem .07rem rgba(22,163,74,.06)}
.g-card img{width:100%;height:2.5rem;object-fit:cover}
.g-card-body{padding:.13rem .14rem .15rem}
.g-card-name{
  font-size:0.2rem;font-weight:600;color:var(--ink);line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:.43rem;
}
.g-card-price{font-size:0.247rem;color:var(--price);font-weight:700;margin-top:.08rem}
.g-card-price small{font-size:0.12rem}
.g-addcart{
  font-size:0.153rem;color:#fff;background:linear-gradient(90deg,#4ade80,#16a34a);
  border-radius:.1rem;padding:.065rem .1rem;margin-top:.09rem;display:block;width:100%;font-weight:600;
}
.g-addcart:active{opacity:.85}

/* 商品列表 */
.goods-list{background:transparent}
.g-item{
  display:flex;gap:.12rem;background:#fff;border-radius:.1rem;
  padding:.12rem;margin-bottom:.11rem;box-shadow:0 .01rem .07rem rgba(22,163,74,.05);
}
.g-item img{width:1.85rem;height:1.85rem;border-radius:.06rem;object-fit:cover;flex-shrink:0}
.g-info{flex:1;min-width:0;display:flex;flex-direction:column}
.g-badge{align-self:flex-start;background:#dcfce7;color:#15803d;font-size:0.127rem;padding:.015rem .06rem;border-radius:.03rem}
.g-name{
  font-size:0.227rem;font-weight:600;color:var(--ink);line-height:1.4;margin-top:.06rem;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.g-price{font-size:0.281rem;color:var(--price);font-weight:700;margin-top:.07rem}
.g-price small{font-size:0.12rem}
.g-meta{display:flex;justify-content:space-between;align-items:center;margin-top:auto}
.g-sales{font-size:0.12rem;color:var(--muted)}
.g-btn{font-size:0.12rem;color:#15803d;background:#dcfce7;padding:.05rem .1rem;border-radius:.1rem}
.g-btns{display:flex;align-items:center;gap:.07rem}
.g-btns .g-addcart{margin-top:0;width:auto;padding:.05rem .1rem;font-size:0.12rem}
.load-more{text-align:center;font-size:0.133rem;color:#94a3b8;padding:.13rem 0}

/* 底部导航 */
.tabbar{
  position:fixed;bottom:0;left:0;right:0;z-index:60;height:1.1rem;
  padding-bottom:env(safe-area-inset-bottom);
  background:#fff;border-top:1px solid #e2e8f0;display:flex;align-items:center;
}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#94a3b8;gap:.06rem;font-size:0.214rem}
.tab svg{width:.34rem;height:.34rem;fill:#94a3b8}
.tab.active{color:var(--primary)}
.tab.active svg{fill:var(--primary)}

/* 提示 */
.toast{
  position:fixed;left:50%;bottom:1.4rem;transform:translateX(-50%) translateY(.1rem);
  background:rgba(6,46,22,.9);color:#fff;font-size:0.133rem;
  padding:.08rem .16rem;border-radius:.2rem;z-index:100;
  opacity:0;pointer-events:none;transition:.25s;white-space:nowrap;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* 底部访问统计 + 强制刷新 */
.site-footer{
  display:flex;align-items:center;justify-content:center;gap:.12rem;
  padding:.1rem .13rem .18rem;font-size:0.116rem;color:var(--muted);
}
.visit-count b{color:var(--primary);font-size:0.147rem;font-weight:700;margin:0 .025rem}
.refresh-btn{
  display:inline-flex;align-items:center;gap:.03rem;line-height:1;
  background:#dcfce7;color:#15803d;border-radius:.2rem;
  padding:.05rem .11rem;font-size:0.116rem;
}
.refresh-btn:active{background:#bbf7d0}
