/* 甄流式公众号 H5：皇家蓝主色、白底卡片、底部四 Tab */
:root {
  --zhen-blue: #1a4ea2;
  --zhen-blue-dark: #143d82;
  --zhen-blue-soft: #e8eef9;
  --zhen-cta: #ffb300;
  --zhen-text: #1a1a1a;
  --zhen-sub: #6b7280;
  --zhen-line: #e8ecf2;
  --zhen-bg: #f4f6fa;
  --zhen-card: #ffffff;
  --zhen-red-bar: #e53935;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
.zhen-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--zhen-bg);
  color: var(--zhen-text);
  -webkit-tap-highlight-color: transparent;
}

#app { min-height: 100%; padding-bottom: calc(56px + var(--safe-bottom)); }
.zhen-view { min-height: 50vh; }

/* —— 顶栏（首页 / 商城） —— */
.zhen-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--zhen-blue) 0%, var(--zhen-blue-dark) 100%);
  color: #fff;
  padding: 10px 12px 12px;
  box-shadow: 0 2px 10px rgba(26, 78, 162, 0.25);
}
.zhen-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.zhen-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.zhen-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.95);
  border-radius: 999px;
  overflow: hidden;
  height: 36px;
}
.zhen-search-wrap input {
  flex: 1;
  border: 0;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: transparent;
  color: #333;
}
.zhen-search-wrap button {
  border: 0;
  background: var(--zhen-blue);
  color: #fff;
  font-size: 13px;
  padding: 0 14px;
  height: 100%;
  cursor: pointer;
}
.zhen-quick {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.95;
  padding-top: 4px;
}
.zhen-quick span { flex: 1; text-align: center; }

/* —— 水站页顶 —— */
.zhen-subbar {
  background: var(--zhen-card);
  padding: 10px 12px;
  border-bottom: 1px solid var(--zhen-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.zhen-city-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.zhen-city-row select {
  border: 1px solid var(--zhen-line);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
  background: #fff;
}
.zhen-input-line {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.zhen-input-line input {
  flex: 1;
  border: 1px solid var(--zhen-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}
.zhen-input-line button {
  border: 1px solid var(--zhen-blue);
  color: var(--zhen-blue);
  background: #fff;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
}
.zhen-tab-pill {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--zhen-blue);
  padding: 4px 0 0;
}

/* —— 轮播 —— */
.zhen-banner {
  margin: 10px 12px 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #2f5fc4, #1a4ea2);
  box-shadow: 0 4px 14px rgba(26, 78, 162, 0.2);
}
.zhen-banner-slide {
  position: absolute;
  inset: 0;
  padding: 20px 16px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.zhen-banner-slide.on { opacity: 1; z-index: 1; }
.zhen-banner-slide h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.zhen-banner-slide p { margin: 0; font-size: 13px; opacity: 0.9; }
.zhen-dots {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.zhen-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.45);
}
.zhen-dots i.on { background: #fff; width: 14px; border-radius: 4px; }

/* —— 宫格菜单 —— */
.zhen-grid-wrap {
  margin: 12px;
  background: var(--zhen-card);
  border-radius: 14px;
  padding: 14px 6px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.zhen-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 4px;
}
.zhen-icon-cell {
  text-align: center;
  font-size: 11px;
  color: var(--zhen-sub);
  cursor: pointer;
}
.zhen-icon-cell .ic {
  width: 44px; height: 44px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 1px solid var(--zhen-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #fafbff;
}
.zhen-grid-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
.zhen-grid-dots b {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #d0d7e5;
}
.zhen-grid-dots b.on { background: var(--zhen-blue); }

/* —— 公告 —— */
.zhen-notice {
  margin: 0 12px 10px;
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: #7a5c00;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.zhen-notice .marquee {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}
.zhen-notice .marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: zhenMarq 18s linear infinite;
}
@keyframes zhenMarq {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* —— 促销块 —— */
.zhen-promo {
  margin: 0 12px 12px;
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.zhen-promo.blue { background: linear-gradient(120deg, #1a4ea2, #3d6fd0); }
.zhen-promo.gold { background: linear-gradient(120deg, #b8860b, #daa520); }
.zhen-promo h4 { margin: 0 0 6px; font-size: 16px; }
.zhen-promo p { margin: 0 0 12px; font-size: 12px; opacity: .92; }
.zhen-promo .cta {
  display: inline-block;
  background: var(--zhen-cta);
  color: #333;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

/* —— 视频占位 —— */
.zhen-video-card {
  margin: 0 12px 12px;
  background: #000;
  border-radius: 12px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  opacity: 0.85;
}

/* —— 选择我们 —— */
.zhen-choose {
  margin: 0 12px 16px;
  background: var(--zhen-card);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.zhen-choose h3 { margin: 0 0 8px; font-size: 16px; color: var(--zhen-blue); }
.zhen-choose .kw { font-size: 12px; color: var(--zhen-sub); margin-bottom: 8px; }
.zhen-choose .desc { font-size: 13px; color: #444; line-height: 1.5; }

/* —— 水站卡片 —— */
.zhen-station-list { padding: 0 12px 12px; }
.zhen-st-card {
  background: var(--zhen-card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.zhen-st-card .body { flex: 1; min-width: 0; }
.zhen-st-card h4 { margin: 0 0 6px; font-size: 15px; }
.zhen-st-card .addr { font-size: 12px; color: var(--zhen-sub); line-height: 1.45; margin-bottom: 6px; }
.zhen-st-card .time { font-size: 12px; color: #374151; }
.zhen-st-card .pick {
  border: 1px solid var(--zhen-blue);
  color: var(--zhen-blue);
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.zhen-st-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
}
.zhen-st-card .pick-map {
  border-color: #94a3b8;
  color: #475569;
}

/* —— 我的页头 —— */
.zhen-mine-head {
  background: linear-gradient(165deg, #1a4ea2 0%, #0f2f66 55%, #1a4ea2 100%);
  color: #fff;
  padding: 28px 14px 22px;
  position: relative;
  overflow: hidden;
}
.zhen-mine-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -40px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.zhen-mine-user { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.zhen-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; border: 2px solid rgba(255,255,255,.5);
}
.zhen-mine-meta h2 { margin: 0; font-size: 18px; font-weight: 700; }
.zhen-mine-meta .sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.zhen-vip {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffd54f, #ffb300);
  color: #5d4037;
  font-size: 11px;
  font-weight: 800;
}
.zhen-stats4 {
  display: flex;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.zhen-stats4 > div {
  flex: 1;
  text-align: center;
  font-size: 11px;
  opacity: .9;
}
.zhen-stats4 strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 1;
}

/* —— 订单入口（我的） —— */
.zhen-order-strip {
  margin: -14px 12px 12px;
  background: var(--zhen-card);
  border-radius: 12px;
  padding: 12px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  position: relative;
  z-index: 2;
}
.zhen-order-tabs {
  display: flex;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 0 8px;
  gap: 16px;
}
.zhen-order-tabs span { color: var(--zhen-sub); padding-bottom: 4px; }
.zhen-order-tabs span.on { color: var(--zhen-blue); font-weight: 700; border-bottom: 2px solid var(--zhen-blue); }
.zhen-order-icons {
  display: flex;
  justify-content: space-between;
}
.zhen-order-icons > div {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--zhen-sub);
  cursor: pointer;
}
.zhen-order-icons .ic { font-size: 22px; margin-bottom: 4px; }

/* —— 分区标题（红竖条） —— */
.zhen-section {
  margin: 12px;
  background: var(--zhen-card);
  border-radius: 12px;
  padding: 12px 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.zhen-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px 4px;
  color: #222;
}
.zhen-sec-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--zhen-red-bar);
  border-radius: 2px;
}
.zhen-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 4px;
  font-size: 11px;
  color: var(--zhen-sub);
  text-align: center;
}
.zhen-mini-grid > div { cursor: pointer; }
.zhen-mini-grid .ic { font-size: 22px; margin-bottom: 4px; }

/* —— 列表 / 表单通用 —— */
.zhen-page-title {
  padding: 14px 12px 8px;
  font-size: 17px;
  font-weight: 700;
}
.zhen-list-card {
  margin: 0 12px 10px;
  background: var(--zhen-card);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.zhen-form .row { margin-bottom: 10px; }
.zhen-form label { display: block; font-size: 12px; color: var(--zhen-sub); margin-bottom: 4px; }
.zhen-form input, .zhen-form textarea, .zhen-form select {
  width: 100%;
  border: 1px solid var(--zhen-line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}
.zhen-btn-primary {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #2f6bde, var(--zhen-blue));
  margin-top: 8px;
  cursor: pointer;
}
.zhen-btn-ghost {
  border: 1px solid var(--zhen-blue);
  color: var(--zhen-blue);
  background: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}
.zhen-muted { font-size: 12px; color: var(--zhen-sub); padding: 8px 12px; }

/* —— 底部 Tab —— */
.zhen-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--zhen-line);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,.05);
}
.zhen-tabbar a, .zhen-tabbar button {
  flex: 1;
  text-align: center;
  padding: 6px 0 4px;
  font-size: 10px;
  color: var(--zhen-sub);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.zhen-tabbar .ic { display: block; font-size: 22px; margin-bottom: 2px; }
.zhen-tabbar .on { color: var(--zhen-blue); font-weight: 700; }

/* —— Toast —— */
.zhen-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) scale(0.9);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  max-width: 86%;
  text-align: center;
}
.zhen-toast.show { opacity: 1; transform: translateX(-50%) scale(1); }

.zhen-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--zhen-blue);
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
  border: 0;
  background: none;
  font-family: inherit;
}

/* —— 店铺页省市区选择 —— */
.zhen-region-trigger {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--zhen-line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: var(--zhen-text);
  cursor: pointer;
  font-family: inherit;
}
.zhen-region-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.zhen-region-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 78vh;
  background: var(--zhen-card);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}
.zhen-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--zhen-line);
  font-weight: 700;
  font-size: 15px;
}
.zhen-region-head button {
  border: 0;
  background: none;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 8px;
}
.zhen-reg-cancel { color: var(--zhen-sub); }
.zhen-reg-ok { color: var(--zhen-blue); font-weight: 700; }
.zhen-region-cols {
  display: flex;
  flex: 1;
  min-height: 0;
  max-height: calc(78vh - 52px);
}
.zhen-region-col {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid var(--zhen-line);
  padding: 6px 0 12px;
}
.zhen-region-col:last-child { border-right: 0; }
.zhen-reg-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--zhen-text);
  cursor: pointer;
  font-family: inherit;
}
.zhen-reg-item.on {
  background: var(--zhen-blue-soft);
  color: var(--zhen-blue);
  font-weight: 600;
}
.zhen-reg-hint {
  margin: 12px 10px;
  font-size: 12px;
  color: var(--zhen-sub);
}
