:root {
  --blue-1: #2f6ee0;
  --blue-2: #1f4fd6;
  --page-bg: #f6f7f9;
  --card: #ffffff;
  --line: #eef0f4;
  --text: #1c2028;
  --muted: #9aa0aa;
  --red: #e0322b;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #e9ecf1; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--page-bg);
  box-shadow: 0 0 40px rgba(20, 30, 60, .08);
  overflow: hidden;
}
.loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- 顶部横幅 ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue-1), var(--blue-2));
  color: #fff;
  padding: 24px 18px 26px;
  position: relative;
}
.hero::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .38);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; position: relative; z-index: 1;
}
.hero h1 { font-size: 24px; font-weight: 800; letter-spacing: .5px; margin: 14px 0 10px; position: relative; z-index: 1; }
.hero .sub { font-size: 13px; color: rgba(255, 255, 255, .93); margin-bottom: 12px; position: relative; z-index: 1; }
.hero .icp { font-size: 12px; color: rgba(255, 255, 255, .8); position: relative; z-index: 1; }
.hero .icp a { color: rgba(255, 255, 255, .95); text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, .8); }
.hero .shop { font-size: 12px; color: rgba(255, 255, 255, .92); margin-top: 8px; position: relative; z-index: 1; }
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 0; }

/* ---------- 区块通用 ---------- */
.section { padding: 18px 14px 2px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.section-side { font-size: 12px; color: #8a8f99; border-bottom: 1px dashed #c9ced7; padding-bottom: 1px; }
.section-note { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 6px 2px; line-height: 1.6; }

/* ---------- 自助权益区 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bcard {
  display: block; text-decoration: none; color: inherit; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 10px; box-shadow: 0 1px 2px rgba(20, 30, 60, .03);
  transition: transform .12s, box-shadow .12s;
}
.bcard:active { transform: scale(.97); box-shadow: 0 0 0 rgba(0,0,0,0); }
.bcard .ico { font-size: 26px; line-height: 1; }
.bcard .nm { font-size: 15px; font-weight: 700; margin-top: 10px; }
.bcard .ds { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 本周到店专享 ---------- */
.pcard {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(20, 30, 60, .03);
}
.pcard .thumb {
  width: 66px; height: 66px; border-radius: 12px; flex-shrink: 0;
  background: #e9edff; display: flex; align-items: center; justify-content: center;
  font-size: 30px; overflow: hidden;
}
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .info { flex: 1; min-width: 0; }
.pcard .pname { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.pcard .prow { display: flex; align-items: baseline; gap: 8px; }
.pcard .old { font-size: 13px; color: #b3b8c2; text-decoration: line-through; }
.pcard .now { font-size: 20px; font-weight: 800; color: var(--red); }
.pcard .tag {
  display: inline-block; margin-top: 8px; font-size: 11px; color: var(--red);
  background: #ffecec; border-radius: 6px; padding: 3px 8px;
}

/* ---------- 加店长企微 ---------- */
.contact-box {
  border: 1.5px dashed #4d8bff; border-radius: 16px;
  background: linear-gradient(180deg, #f1f7ff, #e8f1ff);
  padding: 22px 16px; text-align: center;
}
.contact-box .qr {
  width: 124px; height: 124px; margin: 0 auto 14px; border-radius: 12px;
  background: #fff; border: 1px solid #dbe6f7;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.contact-box .qr img { width: 100%; height: 100%; object-fit: contain; }
.contact-box .qr .ph { width: 58px; height: 58px; background: #333; border-radius: 6px; border: 3px solid #222; }
.contact-box .ch { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.contact-box .cl { font-size: 13px; color: #5b6472; line-height: 1.9; }
.cta {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  margin-top: 16px; background: #fff6d8; color: #b8860b;
  border: 1px solid #f5e3a8; border-radius: 999px; padding: 10px 20px;
  font-size: 14px; font-weight: 700;
}
.cta:active { transform: scale(.97); }

/* ---------- 加平台企微（平台获客） ---------- */
.platform-box {
  position: relative;
  border: 1.5px solid #16b377; border-radius: 16px;
  background: linear-gradient(180deg, #e9faf2, #d8f3e8);
  padding: 26px 16px 22px; text-align: center;
}
.platform-box .pbadge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: #16b377; color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(22, 179, 119, .3);
}
.platform-box .qr {
  width: 124px; height: 124px; margin: 0 auto 14px; border-radius: 12px;
  background: #fff; border: 1px solid #bfe9d4;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.platform-box .qr img { width: 100%; height: 100%; object-fit: contain; }
.platform-box .qr .ph { width: 58px; height: 58px; background: #333; border-radius: 6px; border: 3px solid #222; }
.platform-box .ch { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: #0f7a4f; }
.platform-box .cl { font-size: 13px; color: #4d6b5d; line-height: 1.9; }
.platform-box .cta {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  margin-top: 16px; background: #16b377; color: #fff;
  border: none; border-radius: 999px; padding: 11px 22px;
  font-size: 14px; font-weight: 700; box-shadow: 0 3px 10px rgba(22, 179, 119, .3);
}
.platform-box .cta:active { transform: scale(.97); }

/* ---------- 页脚 ---------- */
.fbar {
  background: #fff4e6; color: #c2410c; text-align: center;
  font-size: 13px; font-weight: 700; padding: 13px 14px; margin-top: 18px;
}
.foot { padding: 18px 16px 30px; font-size: 11px; color: #a2a7b0; line-height: 1.7; background: #fff; }

/* ---------- 权益区横滑轮播 / 分页 ---------- */
.bcarousel { position: relative; }
.btrack {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.btrack::-webkit-scrollbar { display: none; }
.bpage { flex: 0 0 100%; scroll-snap-align: start; }
.bpage.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bnav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--blue-2);
  font-size: 20px; line-height: 28px; cursor: pointer; display: none;
  box-shadow: 0 1px 5px rgba(20, 30, 60, .18);
}
.bcarousel.multi .bnav { display: block; }
.bnav.prev { left: 4px; }
.bnav.next { right: 4px; }
.bdots { display: none; justify-content: center; gap: 6px; margin-top: 12px; }
.bcarousel.multi .bdots { display: flex; }
.bdot {
  width: 7px; height: 7px; border-radius: 50%; background: #c9d3e2;
  cursor: pointer; transition: width .2s, background .2s, border-radius .2s;
}
.bdot.active { background: var(--blue-2); width: 16px; border-radius: 4px; }
