/* ============================================================
   mz-shop.css —— 商城首页「梦想版」样式（对照设计稿一比一）
   蓝色品牌头部 / 圆角轮播大卡 / 双大按钮 / 2x3 宫格 / 双列商品卡 / 四 tab
   仅作用于商城首页（body.mz-home），不影响商城其它页面。
   ============================================================ */

/* ---------- 页面容器 ---------- */
body.mz-home { background:#F4F6FA; }
.mz-page { padding: 0 14px 24px; max-width: 520px; margin: 0 auto; }

/* ---------- 顶部品牌栏 ---------- */
.mz-topbar{
  position:sticky; top:0; z-index:50;
  max-width:520px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; background:rgba(244,246,250,.92); backdrop-filter:blur(12px);
}
.mz-brand{ display:flex; align-items:center; gap:9px; }
.mz-brand-logo{
  width:38px; height:38px; border-radius:11px;
  background:linear-gradient(135deg,#1F7BFF,#0A5BE0);
  color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 12px rgba(31,123,255,.35);
}
.mz-brand b{ font-size:19px; color:#1A2233; letter-spacing:1px; }
.mz-topbar-actions{ display:flex; gap:6px; }
.mz-iconbtn{
  width:38px; height:38px; border:0; border-radius:50%;
  background:transparent; color:#3A4358; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.mz-iconbtn:hover{ background:rgba(31,123,255,.08); }
.mz-iconbtn:active{ transform:scale(.9); }

/* ---------- 代理欢迎条 ---------- */
.mz-agent-tip{
  display:flex; align-items:center; gap:6px;
  margin:4px 0 10px; padding:9px 14px;
  background:linear-gradient(90deg,#EAF1FF,#F0FAFF);
  border:1px solid rgba(31,123,255,.15); border-radius:12px;
  font-size:12px; color:#3A4358;
}
.mz-agent-tip b{ color:#1F7BFF; }

/* ---------- 品牌轮播大卡 ---------- */
.mz-hero-swiper{
  position:relative; overflow:hidden; border-radius:20px;
  box-shadow:0 8px 26px rgba(31,60,120,.12);
  background:#FFFFFF;
  margin-bottom:16px;
}
.mz-hero-swiper .shop-banner-track{ display:flex; transition:transform .45s cubic-bezier(.4,0,.2,1); }
.mz-hero-swiper .shop-banner-slide{ flex:0 0 100%; }
.mz-hero-swiper .shop-banner-slide img{ display:block; width:100%; height:auto; }
.mz-hero-foot{
  position:absolute; left:0; right:0; bottom:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px;
}
.mz-hero-dots{ display:flex; gap:5px; }
.mz-hero-dots span{
  width:6px; height:6px; border-radius:99px;
  background:rgba(120,130,150,.4); transition:all .25s;
}
.mz-hero-dots span.active{ width:18px; background:#1F7BFF; }
.mz-hero-count{ font-size:11px; color:#8A93A6; }
.mz-hero-count b{ color:#3A4358; }

/* ---------- 双大按钮 ---------- */
.mz-duo{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.mz-duo-btn{
  display:flex; align-items:center; gap:12px;
  padding:18px 18px; border-radius:18px; text-decoration:none;
  background:#FFFFFF; box-shadow:0 4px 16px rgba(31,60,120,.08);
  transition:transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.mz-duo-btn:active{ transform:scale(.96); }
.mz-duo-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(31,60,120,.14); }
.mz-duo-primary{
  background:linear-gradient(135deg,#1F7BFF,#0A5BE0);
  box-shadow:0 8px 22px rgba(31,123,255,.35);
}
.mz-duo-primary:hover{ box-shadow:0 12px 30px rgba(31,123,255,.45); }
.mz-duo-ic{
  width:44px; height:44px; border-radius:14px; flex-shrink:0;
  background:rgba(255,255,255,.22); color:#FFFFFF;
  display:flex; align-items:center; justify-content:center;
}
.mz-duo-ic-dark{ background:#F1F4F9; color:#2A3448; }
.mz-duo-txt{ display:flex; flex-direction:column; gap:3px; }
.mz-duo-txt b{ font-size:16px; color:#FFFFFF; }
.mz-duo-txt i{ font-style:normal; font-size:11px; color:rgba(255,255,255,.78); }
.mz-duo-btn:not(.mz-duo-primary) .mz-duo-txt b{ color:#1A2233; }
.mz-duo-btn:not(.mz-duo-primary) .mz-duo-txt i{ color:#8A93A6; }

/* ---------- 快捷宫格 ---------- */
.mz-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
  margin-bottom:20px;
}
/* 分类宫格：一行4个（位于快捷宫格下方） */
.mz-grid-cats{ grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:20px; }
.mz-grid-cats .mz-cell{ flex-direction:column; gap:6px; padding:12px 4px; text-align:center; }
.mz-grid-cats .mz-cell b{ font-size:12px; }
.mz-grid-cats .mz-cell-ic{ width:30px; height:30px; border-radius:10px; }
.mz-cell{
  display:flex; align-items:center; justify-content:center; gap:9px;
  padding:16px 8px; border-radius:16px; text-decoration:none;
  background:#FFFFFF; box-shadow:0 2px 10px rgba(31,60,120,.06);
  transition:transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.mz-cell:active{ transform:scale(.93); }
.mz-cell:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(31,60,120,.12); }
.mz-cell b{ font-size:13.5px; color:#222B3D; font-weight:700; }
.mz-cell-ic{
  width:34px; height:34px; border-radius:11px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.mz-ic-blue{ background:#E8F0FF; color:#1F7BFF; }
.mz-ic-amber{ background:#FFF4E0; color:#F5A200; }
.mz-ic-orange{ background:#FFEDE3; color:#FF6A2B; }
.mz-ic-green{ background:#E4F7EF; color:#12B76A; }

/* ---------- 精选好物分区 ---------- */
.mz-section-head{ display:flex; align-items:baseline; gap:10px; margin:6px 2px 12px; }
.mz-section-title{ font-size:19px; font-weight:800; color:#1A2233; }
.mz-section-sub{ font-size:12px; color:#8A93A6; }

/* ---------- 双列商品卡 ---------- */
.shop-list{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.shop-card{
  border-radius:18px !important; overflow:hidden;
  background:#FFFFFF !important; border:none !important;
  box-shadow:0 3px 14px rgba(31,60,120,.08) !important;
}
.mz-card-body{ padding:12px 13px 14px; display:flex; flex-direction:column; gap:6px; }
.mz-card-name{ font-size:14.5px; font-weight:700; color:#1A2233; line-height:1.4; }
.mz-card-sub{ font-size:11px; color:#8A93A6; }
.mz-card-price-row{ display:flex; align-items:center; justify-content:space-between; margin-top:2px; }
.mz-card-price{ display:flex; align-items:baseline; gap:2px; color:#FF5A1F; }
.mz-card-price i{ font-style:normal; font-size:13px; font-weight:800; }
.mz-card-price b{ font-size:21px; font-weight:900; letter-spacing:-.5px; }
.mz-card-tag{
  font-size:11px; color:#3A4358; padding:4px 10px;
  background:#F1F4F9; border-radius:99px;
}
.mz-card-old{ font-size:12px; color:#B4BCCB; text-decoration:line-through; }

/* ---------- 底部四 tab 导航 ---------- */
.mz-tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  max-width:520px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4,1fr);
  background:rgba(255,255,255,.96); backdrop-filter:blur(14px);
  border-top:1px solid #EDF0F5;
  padding:6px 0 calc(6px + env(safe-area-inset-bottom));
}
.mz-tab{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  text-decoration:none; color:#9AA3B5;
  transition:color .15s;
}
.mz-tab span{ font-size:11px; font-weight:600; }
.mz-tab.active{ color:#1F7BFF; }
.mz-tab:active{ transform:scale(.92); }

/* ---------- 登录页（代理/用户双标签） ---------- */
.mz-login-tab{
  flex:1; display:flex; align-items:center; justify-content:center; gap:6px;
  padding:11px; border-radius:12px; text-decoration:none;
  font-size:13.5px; font-weight:800;
  background:#FFFFFF; color:#7A8399;
  border:1px solid #E6EAF2;
  transition:all .18s;
}
.mz-login-tab.active{
  background:linear-gradient(135deg,#1F7BFF,#0A5BE0);
  color:#FFFFFF; border-color:transparent;
  box-shadow:0 6px 18px rgba(31,123,255,.32);
}
.mz-login-card{
  background:#FFFFFF; border-radius:18px; padding:20px 18px;
  box-shadow:0 4px 16px rgba(31,60,120,.08);
  margin-bottom:14px;
}
.mz-login-card-title{
  display:flex; align-items:center; gap:7px;
  font-size:14.5px; font-weight:800; color:#1A2233;
  margin-bottom:14px;
}
.mz-form-group{ display:flex; flex-direction:column; gap:6px; margin-bottom:13px; }
.mz-form-group label{ font-size:12px; font-weight:700; color:#6B7689; }
.mz-form-input{
  height:44px; border:1px solid #E2E7F0; border-radius:12px;
  padding:0 14px; font-size:14px; outline:none; width:100%;
  box-sizing:border-box; background:#FAFBFD; font-family:inherit;
  transition:border-color .18s, box-shadow .18s, background .18s;
}
.mz-form-input:focus{
  border-color:#1F7BFF; background:#FFFFFF;
  box-shadow:0 0 0 3px rgba(31,123,255,.14);
}
.mz-submit-btn{
  width:100%; height:46px; border:0; border-radius:14px;
  background:linear-gradient(135deg,#1F7BFF,#0A5BE0);
  color:#FFFFFF; font-size:15px; font-weight:800; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:7px;
  font-family:inherit;
  box-shadow:0 6px 18px rgba(31,123,255,.32);
  transition:transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.mz-submit-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 24px rgba(31,123,255,.42); }
.mz-submit-btn:active{ transform:scale(.96); }
.mz-submit-dark{ background:linear-gradient(135deg,#57607A,#3A4358); box-shadow:0 6px 18px rgba(60,70,95,.28); }
.mz-login-tip{ font-size:11.5px; color:#9AA3B5; text-align:center; margin:12px 0 0; line-height:1.7; }
