/* =========================================================
 * 靓新生活圈 H5 全站统一样式 —— 480px 手机壳方案
 * 所有设备（PC/平板/手机）都渲染成居中手机卡片
 * ========================================================= */

/* ---------- 变量 ---------- */
:root {
  /* 品牌色：延续经营形态四色 */
  --brand: #0A8F52;          /* 主绿 — 靓新生活圈 */
  --brand-dark: #076B3D;
  --brand-light: #E6F4ED;
  --town: #0A8F52;           /* 镇店 */
  --stall: #D97706;           /* 地摊（橙） */
  --village: #2E86C1;        /* 村店（蓝） */
  --enterprise: #805AD5;     /* 企店（紫） */
  --accent: #D97706;         /* 发布/VIP 金色按钮 */

  /* 中性 */
  --ink: #1A202C;
  --ink-2: #4A5568;
  --ink-3: #718096;
  --ink-4: #A0AEC0;
  --line: #EDF2F7;
  --line-2: #F1F5F9;
  --bg: #F6F8FB;
  --card: #FFFFFF;

  /* 圆角阴影 */
  --r-6: 6px;
  --r-10: 10px;
  --r-14: 14px;
  --r-18: 18px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(10,143,82,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);

  /* 外壳 */
  --shell-w: 480px;
  --shell-bg: #1A365D;
}

/* ---------- 重置 ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--shell-bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ---------- 手机壳 ---------- */
.h5-shell {
  width: var(--shell-w);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
/* 平板（<=800px）：外壳加宽 */
@media (max-width: 820px) and (min-width: 560px) {
  .h5-shell { width: 100%; max-width: 640px; }
}
/* 手机（<=559px）：去掉外壳阴影，全宽 */
@media (max-width: 559px) {
  body { background: var(--bg); }
  .h5-shell { width: 100%; box-shadow: none; }
}

/* ---------- Nav Bar ---------- */
.h5-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--brand), #0CAE63);
  color: #fff;
}
.h5-nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; letter-spacing: .5px;
}
.h5-nav-logo img { width: 28px; height: 28px; border-radius: 7px; border:1px dashed #B1E1C5}
.h5-nav-logo span{color:#fff}
.h5-nav-right { display: flex; align-items: center; gap: 8px; }
.h5-nav-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
}
.h5-nav-icon:active { background: rgba(255,255,255,.2); }

/* ---------- 抽屉菜单 ---------- */
.h5-drawer-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 120;
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
}
.h5-drawer-mask.on { opacity: 1; visibility: visible; }
.h5-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 82%; max-width: 380px;
  z-index: 121;
  background: #fff;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.h5-drawer.on { transform: translateX(0); }
.h5-drawer-head {
  background: linear-gradient(135deg, var(--brand), #0CAE63);
  color: #fff;
  padding: 24px 20px 30px;
}
.h5-drawer-head .close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.h5-drawer-user { display: flex; align-items: center; gap: 14px; }
.h5-drawer-user img {
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; object-fit: cover; border: 2px solid rgba(255,255,255,.4);
}
.h5-drawer-user .name { font-size: 16px; font-weight: 700; }
.h5-drawer-user .sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.h5-drawer-auth {
  display: flex; gap: 10px; margin-top: 10px;
}
.h5-drawer-auth a {
  flex: 1; padding: 8px; border-radius: 20px; font-size: 14px; font-weight: 600; text-align: center;
}
.h5-drawer-auth .btn-login { background: rgba(255,255,255,.25); color: #fff; }
.h5-drawer-auth .btn-register { background: #fff; color: var(--brand); }

.h5-drawer-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.h5-drawer-group { margin-bottom: 8px; }
.h5-drawer-group h5 {
  padding: 14px 20px 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-4);
  letter-spacing: 1px;
}
.h5-drawer-group a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; font-size: 14.5px; color: var(--ink-2);
  transition: background .15s;
}
.h5-drawer-group a:active { background: var(--line-2); }
.h5-drawer-group a .chevron { color: var(--ink-4); font-size: 14px; }
.h5-drawer-group a .emoji { width: 24px; margin-right: 10px; text-align: center; }

/* ---------- Tab Bar（仅手机端悬浮；电脑版隐藏） ---------- */
.h5-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: var(--shell-w);
  max-width: 100%;
  z-index: 100;
  display: flex;
  background:linear-gradient(135deg,#E6F4ED,#A7DDBE);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0,0,0,.05);
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: constant(safe-area-inset-bottom);
  height:62px;
}
@media (min-width: 768px) {
  .h5-tabbar { display: none; }
}
/* 平板外壳加宽时同步 */
@media (max-width: 820px) and (min-width: 560px) {
  .h5-tabbar { width: auto; max-width: 640px; }
}
.h5-tabbar a {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0px; padding: 3px 0 5px;
  color: var(--ink-3); font-size: 11px; font-weight: 500;
  min-width: 0;
}
.h5-tabbar a.on { color: var(--brand); font-weight: 600; }
.h5-tabbar .ico { font-size: 20px; line-height: 1.1; }
.h5-tabbar .pub-wrap {
  flex: 1 1 0;
  position: relative; 
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0;position: relative;top:-3px;
}
.h5-tabbar .pub-btn {
  width: 50px; height: 50px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  flex-shrink: 0; min-width: 50px; min-height: 50px; box-sizing: border-box;
  background: linear-gradient(135deg, #F6AD55, #D97706);
  color: #fff; font-size: 26px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(217,119,6,.4);
  border: 3px solid #fff;
  margin: 0px;padding:0;position: relative;top:-3px;
}

/* ---------- 内容容器 ---------- */
.h5-body { padding: 0 0 70px; }
/* 首页页脚在 main 之后，无需为吸底 Tab Bar 预留大间距 */
.h5-body.is-home { padding: 0 0 12px; }
.h5-container { padding: 12px; }

/* ---------- 卡片 ---------- */
.h5-card {
  background: var(--card);
  border-radius: var(--r-14);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.h5-card + .h5-card { margin-top: 12px; }
.h5-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.h5-card-head h3 {
  font-size: 16px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.h5-card-head h3::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--brand);
}
.h5-card-head .more { font-size: 12px; color: var(--ink-3); }
.h5-card-head .more:active { color: var(--brand); }
.h5-card-body { padding: 0 16px 16px; }

/* ---------- 按钮 ---------- */
.h5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 20px;
  border-radius: 21px;
  font-size: 16px; font-weight: 600;
  transition: transform .1s, box-shadow .1s;
}
.h5-btn:active { transform: scale(.97); }
.h5-btn-primary {
  background: linear-gradient(135deg, var(--brand), #0CAE63);
  color: #fff;
  box-shadow: 0 3px 10px rgba(10,143,82,.3);
}
.h5-btn-accent {
  background: linear-gradient(135deg, #F6AD55, var(--accent));
  color: #fff;
  box-shadow: 0 3px 10px rgba(217,119,6,.3);
}
.h5-btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.h5-btn-block { width: 100%; height: 46px; border-radius: 23px; font-size: 15px; }

/* ---------- 四分类入口 ---------- */
.h5-form-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 4px 2px;
}
.h5-form-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 4px;
  border-radius: var(--r-14);
  transition: transform .15s;
}
.h5-form-item:active { transform: scale(.95); }
.h5-form-item .ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.h5-form-item .name { font-size: 15px; font-weight: 700; color: var(--ink); }
.h5-form-item .desc { font-size: 10px; color: var(--ink-3); }
.h5-form-item.f-town .ico   { background: linear-gradient(135deg,#E6F4ED,#A7DDBE); }
.h5-form-item.f-stall .ico  { background: linear-gradient(135deg,#FFF4E6,#FFD8A8); }
.h5-form-item.f-village .ico{ background: linear-gradient(135deg,#E8F4FF,#BDE0FE); }
.h5-form-item.f-ent .ico    { background: linear-gradient(135deg,#F3EBFF,#DDD0F7); }
/* 卡片容器各形态独特性：极淡背景 + 淡色描边 */
.h5-form-item.f-town   { background: #F2FBF5; border: 1px solid #D4F0DF; }
.h5-form-item.f-stall  { background: #FFF9F0; border: 1px solid #FFE8CC; }
.h5-form-item.f-village{ background: #F2F8FF; border: 1px solid #D4E8FB; }
.h5-form-item.f-ent    { background: #F8F4FF; border: 1px solid #E8DCFB; }

/* ---------- 快捷宫格 ---------- */
.h5-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px;
  padding: 8px 4px;
}
.h5-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-2);
}
.h5-quick .q-ico {
  width: 45px; height: 45px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.h5-quick a:active { opacity: .7; }

/* ---------- Banner ---------- */
.h5-banner {
  position: relative; overflow: hidden;
  border-radius: var(--r-14);
  background: linear-gradient(135deg, #0CAE63, #076B3D);
  color: #fff;
  padding: 36px 24px 44px;
  margin: 12px;
  box-shadow: var(--shadow-md);
}
.h5-banner .title { font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.h5-banner .sub { font-size: 14px; margin-top: 6px; opacity: .9; line-height: 1.7; }
.h5-banner .cta {
  display: inline-block; margin-top: 16px;
  padding: 8px 20px; border-radius: 20px;
  background: rgba(255,255,255,.25);
  font-size: 14px; font-weight: 600;
}
.h5-banner .ring {
  position: absolute; right: -30px; top: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.h5-banner .ring-2 {
  position: absolute; right: 30px; top: 30px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}

/* ---------- 特价横向滚动 ---------- */
.h5-special-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; padding: 2px 0 6px;
  scrollbar-width: none;
}
.h5-special-scroll::-webkit-scrollbar { display: none; }
.h5-special-card {
  flex: 0 0 120px;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.h5-special-card .pic {
  width: 120px; height: 100px; object-fit: cover; background: var(--line-2);
}
.h5-special-card .body { padding: 6px 8px 10px; }
.h5-special-card .name {
  font-size: 12px; color: var(--ink); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.h5-special-card .price-row { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; }
.h5-special-card .price { font-size: 15px; color: #E53E3E; font-weight: 800; }
.h5-special-card .origin { font-size: 10px; color: var(--ink-4); text-decoration: line-through; }

/* ---------- 店铺列表 ---------- */
.h5-shop-row {
  display: flex; gap: 12px; padding: 12px;
  background: #fff; border-radius: var(--r-14);
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.h5-shop-row:active { transform: scale(.98); }
.h5-shop-row .cover {
  width: 92px; height: 92px; border-radius: 12px;
  object-fit: cover; flex-shrink: 0; background: var(--line-2);
}
.h5-shop-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.h5-shop-row .name-row { display: flex; align-items: center; gap: 6px; }
.h5-shop-row .name {
  font-size: 15px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-badge {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
}
.h5-badge.town { background: #E6F4ED; color: var(--town); }
.h5-badge.stall { background: #FFF4E6; color: var(--stall); }
.h5-badge.village { background: #E8F4FF; color: var(--village); }
.h5-badge.enterprise { background: #F3EBFF; color: var(--enterprise); }
.h5-shop-row .desc { font-size: 12px; color: var(--ink-3); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.h5-shop-row .meta-row { display: flex; gap: 10px; font-size: 11px; color: var(--ink-4); }
.h5-stall-info { font-size: 11px; color: var(--stall); margin-top: 3px; }

/* ---------- 村店专区 ---------- */
.h5-village-card {
  background: linear-gradient(135deg, #E6F4ED, #D4F0DF);
  border-radius: var(--r-14); padding: 14px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.h5-village-card .ico { font-size: 32px; }
.h5-village-card .info { flex: 1; min-width: 0; }
.h5-village-card .name { font-size: 14px; font-weight: 700; color: var(--brand-dark); }
.h5-village-card .desc { font-size: 11px; color: #1C7C50; margin-top: 2px; }
.h5-village-card .tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.h5-village-card .tags span {
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: rgba(255,255,255,.6); color: #1C7C50;
}

/* ---------- 资讯/列表 ---------- */
.h5-list-row {
  display: flex; gap: 12px; padding: 10px 2px;
  border-bottom: 1px solid var(--line-2);
}
.h5-list-row:last-child { border-bottom: 0; }
.h5-list-row .title {
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}
/* 分类与时间靠右，整行一行显示完 */
.h5-list-row .meta {
  font-size: 12px; color: var(--ink-4); margin-top: 0;
  white-space: nowrap; flex-shrink: 0; align-self: center;
}

/* ---------- 团购卡片 ---------- */
.h5-groupbuy-card {
  background: linear-gradient(135deg, #FFF4E6, #FFE8CC);
  border-radius: var(--r-14); padding: 14px;
  margin-bottom: 10px;
}
.h5-groupbuy-card .title { font-size: 15px; font-weight: 800; color: #B45309; }
.h5-groupbuy-card .price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.h5-groupbuy-card .price { font-size: 22px; color: #E53E3E; font-weight: 900; }
.h5-groupbuy-card .origin { font-size: 12px; color: #B45309; text-decoration: line-through; }
.h5-groupbuy-card .join {
  font-size: 12px; color: var(--stall); margin-left: auto;
  background: #fff; padding: 3px 10px; border-radius: 12px; font-weight: 700;
}

/* ---------- 返回顶部 ---------- */
.h5-backtop {
  position: fixed;
  right: max(calc(50vw - 240px), 14px);
  bottom: 86px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--brand);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  z-index: 80;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.h5-backtop.show { opacity: 1; visibility: visible; }
@media (max-width: 559px) {
  .h5-backtop { right: 14px; }
}

/* ---------- 辅助 ---------- */
.h5-flex-row { display: flex; align-items: center; }
.h5-flex-between { display: flex; align-items: center; justify-content: space-between; }
.h5-text-muted { color: var(--ink-3); }
.h5-text-sm { font-size: 12px; }
.h5-text-lg { font-size: 18px; }
.h5-mt-4 { margin-top: 4px; }
.h5-mt-8 { margin-top: 8px; }
.h5-mt-12 { margin-top: 12px; }
.h5-gap-8 { gap: 8px; }
.h5-gap-12 { gap: 12px; }

/* ---------- 用户菜单按钮（PC 上也有） ---------- */
.h5-user-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 18px;
  background: rgba(255,255,255,.2);
  font-size: 12px; font-weight: 600;
}
.h5-user-chip img { width: 22px; height: 22px; border-radius: 50%; background: #fff; }

/* ---------- 轮播占位（首页） ---------- */
.h5-swip-wrap {
  border-radius: var(--r-14); overflow: hidden;
  margin: 12px;
  position: relative;
}
.h5-swip {
  display: flex;
  transition: transform .4s ease;
}
.h5-swip-slide {
  flex: 0 0 100%;
  height: 150px;
  position: relative;
  overflow: hidden;
}
.h5-swip-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
/* 内置幻灯（无图时的品牌帧） */
.h5-banner-inline {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0CAE63, #076B3D);
  color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 24px;
}
.h5-banner-inline .title { font-size: 21px; font-weight: 900; letter-spacing: 1px; }
.h5-banner-inline .sub { font-size: 12px; margin-top: 6px; opacity: .9; }
.h5-banner-inline .cta {
  display: inline-block; margin-top: 12px;
  padding: 6px 18px; border-radius: 18px;
  background: rgba(255,255,255,.25);
  font-size: 14px; font-weight: 600;
}
.h5-banner-inline.vip { background: linear-gradient(135deg, #805AD5, #553C9A); }
.h5-banner-inline.join { background: linear-gradient(135deg, #D97706, #B45309); }
.h5-swip-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.h5-swip-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.h5-swip-dots span.on { background: #fff; width: 16px; border-radius: 3px; }

/* ---------- 搜索下拉面板（高度延伸至首页幻灯底部） ---------- */
.h5-search-drop {
  position: fixed;
  top: 52px; left: 0; right: 0;
  margin: 0 auto;
  width: var(--shell-w);
  max-width: 100%;
  height: auto; /* nav底(52) → 幻灯底(52+12+150+12=226px)，180 ≈ 226-52 */
  background:#BDE0FE; 
  padding: 12px 14px 24px ;
  z-index: 91;
  display: none;
  /* 平板外壳加宽时同步 */
}
@media (max-width: 820px) and (min-width: 560px) {
  .h5-search-drop { width: auto; max-width: 640px; }
}
.h5-search-drop.on { display: block; }
.h5-search-drop .search-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  flex-wrap: nowrap;
  margin: 10px auto;
}
.h5-search-drop .search-tabs::-webkit-scrollbar { display: none; }
.h5-search-drop .search-tabs button {
  flex-shrink: 0;
  padding: 4px 9px; border-radius: 14px;
  font-size: 12px; font-weight: 600;
  background: var(--line-2); color: var(--ink-2);
}
.h5-search-drop .search-tabs button.active {
  background: var(--brand); color: #fff;
}
.h5-search-drop .search-box {
  display: flex; gap: 8px;padding:12px 15px;margin:20px auto 8px;
}
.h5-search-drop .search-box input {
  flex: 1; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--bg);
}
.h5-search-drop .search-box input:focus { border-color: var(--brand); }
.h5-search-drop .search-btn {
  height: 40px; padding: 0 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), #0CAE63);
  color: #fff; font-size: 14px; font-weight: 600;
}
/* 搜索面板：锚定吸顶导航下方 */
.h5-nav { position: sticky; z-index: 90; }
.h5-nav .h5-search-drop {
  position: absolute;
  top: 100%; left: 0; right: 0;
}

/* ---------- 镇店滚动条 ---------- */
.h5-ticker {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #E6F4ED, #D4F0DF);
  border-radius: var(--r-14);
  padding: 8px 12px;
  overflow: hidden;
}
.h5-ticker .ticker-tag {
  flex-shrink: 0;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
}
.h5-ticker .ticker-view {
  flex: 1; min-width: 0;
  overflow: hidden;
}
.h5-ticker .ticker-track {
  display: flex; gap: 24px;
  width: max-content;
  animation: h5-ticker-scroll 30s linear infinite;
}
.h5-ticker .ticker-track:hover { animation-play-state: paused; }
.h5-ticker .ticker-item {
  font-size: 14px; color: var(--brand-dark); font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.h5-ticker a.ticker-item:hover { text-decoration: underline; }
@keyframes h5-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 商品宫格（一行两个，带图） ---------- */
.h5-goods-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.h5-goods-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  transition: transform .15s;
}
.h5-goods-card:active { transform: scale(.97); }
.h5-goods-card .pic {
  width: 100%; height: 110px; object-fit: cover; background: var(--line-2);
}
.h5-goods-card .body { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.h5-goods-card .name {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h5-goods-card .price-row { display: flex; align-items: baseline; gap: 5px; margin-top: auto; }
.h5-goods-card .price { font-size: 16px; color: #E53E3E; font-weight: 800; }
.h5-goods-card .origin { font-size: 11px; color: var(--ink-4); text-decoration: line-through; }
.h5-goods-card .gb-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3);
}
.h5-goods-card .gb-status { padding: 1px 7px; border-radius: 8px; font-size: 10px; font-weight: 600; }
.h5-goods-card .gb-status.on { background: #E6F4ED; color: var(--brand); }
.h5-goods-card .gb-status.off { background: var(--line-2); color: var(--ink-4); }

/* ---------- 图文列表行（供应/资讯：图+标题+摘要+日期） ---------- */
.h5-media-row {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}
.h5-media-row:last-child { border-bottom: 0; }
.h5-media-row .pic {
  width: 96px; height: 72px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0; background: var(--line-2);
}
.h5-media-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.h5-media-row .title {
  font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h5-media-row .desc {
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.h5-media-row .meta-row { display: flex; align-items: baseline; gap: 8px; font-size: 11px; color: var(--ink-4); }
.h5-media-row .meta-row .price { font-size: 15px; color: #E53E3E; font-weight: 800; }

/* ---------- 友情链接（电脑版显示，手机版隐藏） ---------- */
.h5-flink { display: none; }
@media (min-width: 768px) {
  .h5-flink { display: block; }
}
.h5-flink .flink-body {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 16px 14px;
}
.h5-flink .flink-item {
  font-size: 12px; color: var(--ink-3);
  padding: 4px 12px; border-radius: 12px;
  background: var(--line-2);
}
.h5-flink .flink-item:hover { color: var(--brand); background: var(--brand-light); }

/* ---------- 地摊细分标签 ---------- */
.h5-badge.stall-type { background: #FEF3C7; color: #92400E; }

/* ---------- 页脚（仅首页；电脑版不留底部悬浮栏空隙） ---------- */
.h5-footer {
  padding: 24px 20px 18px;
  background: #fff; border-top: 1px solid var(--line);
}
@media (max-width: 767px) {
  .h5-footer {
    /* 仅手机端：为悬浮 Tab Bar 预留空间 */
    margin-bottom: calc(46px + env(safe-area-inset-bottom));
  }
}
.h5-footer .brand-row {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.h5-footer .brand-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.h5-footer .brand { font-size: 17px; font-weight: 800; color: var(--brand); line-height: 1.3; }
.h5-footer .slogan { font-size: 12px; color: var(--ink-3); }
.h5-footer .pill-nav {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 14px 0 10px;
}
.h5-footer .pill-nav a {
  text-align: center;
  font-size: 12.5px; font-weight: 600;
  padding: 8px 0; border-radius: 18px;
  background: var(--brand-light); color: var(--brand);
}
.h5-footer .pill-nav a:nth-child(2) { background: #FFF4E6; color: var(--stall); }
.h5-footer .pill-nav a:nth-child(3) { background: #E8F4FF; color: var(--village); }
.h5-footer .pill-nav a:nth-child(4) { background: #F3EBFF; color: var(--enterprise); }
.h5-footer .text-links {
  display: flex; justify-content: center; gap: 14px;
  font-size: 12px; color: var(--ink-3);
  margin:12px auto; flex-wrap: wrap;
}
.h5-footer .text-links a:active { color: var(--brand); }
.h5-footer .copy {
  text-align: center;
  font-size: 11px; color: var(--ink-4); line-height: 1.8;
}

/* ---------- 全局字号加大 + 标题统一单行省略号 ---------- */
.h5-card-head h3 { font-size: 17px; }
.h5-card-head h3::before { height: 16px; }
.h5-card-head .more { font-size: 14px; }
.h5-quick a { font-size: 14px; }
.h5-ticker .ticker-item { font-size: 14px; }
.h5-special-card .name {
  font-size: 13.5px; color: var(--ink); font-weight: 600;
  display: block !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  -webkit-line-clamp: unset !important;
}
.h5-goods-card .name {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4;
  display: block !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  -webkit-line-clamp: unset !important;
}
.h5-goods-card .origin { font-size: 12px; }
.h5-goods-card .gb-meta { font-size: 12px; }
.h5-media-row .title {
  font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45;
  display: block !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  -webkit-line-clamp: unset !important;
}
.h5-media-row .desc {
  font-size: 14px; color: var(--ink-3); line-height: 1.5;
  display: block !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  -webkit-line-clamp: unset !important;
}
.h5-media-row .meta-row { font-size: 12px; }
.h5-shop-row .name {
  font-size: 16px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-shop-row .desc {
  font-size: 14px; color: var(--ink-3); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-shop-row .meta-row { font-size: 12px; }
.h5-shop-row .name-row .h5-badge { font-size: 11px; }
.h5-stall-info { font-size: 12px; }
.h5-village-card .name {
  font-size: 16px; font-weight: 700; color:#333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-village-card .desc {
  font-size: 12px; color: #666; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-village-card .tags span { font-size: 11px; }
.h5-banner .title {
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-banner .sub { font-size: 14px; margin-top: 6px; opacity: .9; line-height: 1.7; }
.h5-banner-inline .title {
  font-size: 21px; font-weight: 900; letter-spacing: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-flink .flink-item { font-size: 13px; }
.h5-tabbar a { font-size: 13px; }
.h5-footer .pill-nav a { font-size: 13px; }
.h5-footer .text-links { font-size: 13px; }
.h5-search-drop .search-tabs button { font-size: 12.5px; }

/* ========================================================
   会员中心通用组件（h5-user-*）
   ======================================================== */
/* 会员中心顶部导航：返回箭头 + 标题 + 右侧操作 */
.h5-user-nav {
  position: sticky; top: 0; z-index: 95;
  height: 48px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.h5-user-nav .back {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ink); text-decoration: none;
}
.h5-user-nav .back:active { background: var(--line-2); }
.h5-user-nav .title {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-user-nav .right { display: flex; gap: 6px; align-items: center; }
.h5-user-nav .right .btn {
  font-size: 14px; color: var(--brand); padding: 4px 12px;
  border-radius: 14px; background: var(--line-2); text-decoration: none;
  font-weight: 600;
}

/* 会员首页顶部渐变个人卡 */
.h5-user-hero {
  margin: 12px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #0A8F52 0%, #DB2777 100%);
  color: #fff; padding: 22px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.h5-user-hero .avatar {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6); object-fit: cover;
  background: rgba(255,255,255,.2); flex-shrink: 0;
}
.h5-user-hero .info { flex: 1; min-width: 0; }
.h5-user-hero .name {
  font-size: 17px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-user-hero .meta {
  font-size: 12px; opacity: .92; margin-top: 6px; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-user-hero .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.h5-user-hero .actions .btn {
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  border-radius: 14px; text-decoration: none;
  background: rgba(255,255,255,.2); color: #fff;
  border: 1px solid rgba(255,255,255,.4); white-space: nowrap;
}

/* 会员专属靓新卡横幅 */
.h5-user-card-banner {
  margin: 0 12px 12px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(120deg, #0A8F52 0%, #0EA5A4 45%, #DB2777 100%);
  color: #fff; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  text-decoration: none;
}
.h5-user-card-banner .title { font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.h5-user-card-banner .sub { font-size: 12px; opacity: .92; margin-top: 4px; }
.h5-user-card-banner .cta {
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5);
  border-radius: 99px; white-space: nowrap; flex-shrink: 0;
}

/* 统计卡片网格（会员数/订单数/积分/余额...） */
.h5-stat-grid {
  margin: 0 12px 12px;
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
.h5-stat-grid a {
  background: #fff; border-radius: 12px;
  padding: 16px 8px; text-align: center;
  text-decoration: none; border: 1px solid var(--line);
}
.h5-stat-grid .num {
  font-size: 22px; font-weight: 800; font-family: Consolas, monospace;
  color: #076B3D; line-height: 1.2;
}
.h5-stat-grid .num.pink { color: #DB2777; }
.h5-stat-grid .num.orange { color: #D97706; }
.h5-stat-grid .num.green { color: #10B981; }
.h5-stat-grid .label { font-size: 11px; color: #718096; margin-top: 3px; }

/* 会员入口菜单（常用功能） */
.h5-menu-grid {
  margin: 0 12px 12px;
  background: #fff; border-radius: 14px;
  border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  overflow: hidden;
}
.h5-menu-grid a {
  padding: 14px 6px; text-align: center;
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.h5-menu-grid a:active { background: var(--line-2); }
.h5-menu-grid .emoji { font-size: 22px; line-height: 1; }
.h5-menu-grid .lbl { font-size: 12px; font-weight: 500; color: #4a5568;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

/* 会员列表行（最近发布 / 账户安全 / 订单 等通用） */
.h5-user-list .h5-list-row {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.h5-user-list .h5-list-row:last-child { border-bottom: none; }
.h5-user-list .h5-list-row .tag {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.h5-user-list .h5-list-row .tag.ok { background: #f0fff4; color: #276749; }
.h5-user-list .h5-list-row .tag.pending { background: #fffbeb; color: #92400e; }
.h5-user-list .h5-list-row .tag.blue { background: #ebf8ff; color: #2b6cb0; }

/* 提示横幅（邀请入驻 / 安全提示） */
.h5-user-tip {
  margin: 0 12px 12px; border-radius: 12px;
  padding: 14px 16px; background: #E6F4ED; border: 1px solid #A7DDBE;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.h5-user-tip .tip-title { font-size: 14px; font-weight: 700; color: #0A8F52; }
.h5-user-tip .tip-desc { font-size: 12px; color: #4a5568; margin-top: 3px; line-height: 1.6; }
.h5-user-tip .tip-btn {
  padding: 7px 16px; font-size: 12px; font-weight: 600;
  border-radius: 14px; background: #0A8F52; color: #fff; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}

/* 会员中心底部安全区补偿（因为有 Tab Bar） */
.h5-user-body {
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

/* ========================================================
   H5 表单 / 登录 / 注册 通用组件
   ======================================================== */
.h5-auth-wrap {
  padding: 20px 16px 24px;
}
.h5-auth-card {
  background: #fff; border-radius: 14px; padding: 24px 18px;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.h5-auth-head { text-align: center; margin-bottom: 22px; }
.h5-auth-head h1 { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.h5-auth-head .sub { font-size: 14px; color: var(--ink-3); }

.h5-form-group { margin-bottom: 16px; }
.h5-form-group label {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px;
}
.h5-form-group label .required { color: #E53E3E; margin-left: 2px; }

.h5-form-input {
  width: 100%; box-sizing: border-box;
  height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; color: var(--ink);
  background: #fff; outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.h5-form-input:focus { border-color: var(--brand); }
.h5-form-input::placeholder { color: var(--ink-4); font-size: 14px; }

.h5-form-row { display: flex; gap: 8px; align-items: center; }
.h5-form-row .h5-form-input { flex: 1; }
.h5-form-row .h5-btn-ghost { flex-shrink: 0; height: 44px; padding: 0 14px; font-size: 14px; }

.h5-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px;
  border: none; border-radius: 22px; cursor: pointer;
  font-size: 16px; font-weight: 700; font-family: inherit;
  text-decoration: none; transition: transform .08s, box-shadow .15s;
}
.h5-btn:active { transform: scale(.98); }
.h5-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #FF6B00, #D97706);
  color: #fff; box-shadow: 0 3px 10px rgba(217,119,6,.3);
}
.h5-btn-primary:disabled { opacity: .6; }
.h5-btn-ghost {
  background: var(--line-2); color: var(--brand);
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
}

.h5-form-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--ink-2); font-weight: 400; line-height: 1.6;
}
.h5-form-check a { color: var(--brand); text-decoration: none; }
.h5-form-check input[type="checkbox"]{position:relative;top:3px}
.h5-auth-foot { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 16px; }
.h5-auth-foot a { color: var(--brand); font-weight: 600; text-decoration: none; }

/* 验证码图片 */
#captchaImg { height: 44px; cursor: pointer; border-radius: 10px; border: 1.5px solid var(--line); }

/* 重置密码类型选择 */
.reset-type {
  flex: 1; padding: 12px 10px; border: 2px solid var(--line);
  border-radius: 10px; text-align: center; cursor: pointer;
  background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: border-color .15s, background .15s;
}
.reset-type.active { border-color: var(--brand); background: #FFF4E6; color: var(--brand); }

/* 地区联动 select */
.area-picker select.h5-form-input { height: 44px; }

/* ========================================================
   会员中心通用：列表 / Tab / 分页 / 空状态
   ======================================================== */
.h5-page-wrap { padding: 12px; }
.h5-card-tab {
  display: flex; gap: 0; border-bottom: 1px solid var(--line);
  background: #fff; margin-bottom: 10px;
}
.h5-card-tab a {
  flex: 1; text-align: center; padding: 12px 6px;
  font-size: 14px; font-weight: 600; color: var(--ink-3);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.h5-card-tab a.active { color: var(--brand); border-color: var(--brand); }

.h5-page-nav {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  padding: 14px; font-size: 14px; color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.h5-page-nav a {
  padding: 6px 14px; border-radius: 16px;
  background: var(--line-2); color: var(--brand);
  text-decoration: none; font-size: 14px; font-weight: 600;
}

.h5-empty {
  padding: 48px 20px; text-align: center; color: var(--ink-3);
}
.h5-empty .big { font-size: 40px; margin-bottom: 10px; }
.h5-empty p { font-size: 14px; color: var(--ink-3); margin: 0 0 16px; }

/* 会员卡片横幅 */
.h5-info-banner {
  margin: 0 12px 12px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(120deg,#0A8F52,#0EA5A4 55%,#DB2777);
  color: #fff; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.h5-info-banner .emoji { font-size: 22px; flex-shrink: 0; }
.h5-info-banner .text { flex: 1; min-width: 0; }
.h5-info-banner .text .t { font-size: 14px; font-weight: 700; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.h5-info-banner .text .d { font-size: 12px; opacity: .9; margin-top: 2px; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.h5-info-banner .btn {
  font-size: 12px; padding: 5px 12px; font-weight: 600;
  border-radius: 14px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); white-space: nowrap; flex-shrink: 0;
}

/* 状态 tag 简化 */
.h5-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.h5-tag.blue { background: #ebf8ff; color: #2b6cb0; }
.h5-tag.ok { background: #f0fff4; color: #276749; }
.h5-tag.pending { background: #fffbeb; color: #92400e; }
.h5-tag.reject { background: #fff5f5; color: #9b2c2c; }
.h5-tag.gray { background: #edf2f7; color: #718096; }

/* 优惠券卡片 */
.h5-coupon-card {
  display: flex; border-radius: 12px; overflow: hidden;
  border: 1px solid #f3d9e7; box-shadow: 0 2px 8px rgba(0,0,0,.03);
  background: #fff;
}
.h5-coupon-card.locked { opacity: .55; }
.h5-coupon-card .amt {
  width: 96px; flex-shrink: 0;
  background: linear-gradient(135deg,#DB2777,#9D174D); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 4px; position: relative;
}
.h5-coupon-card .amt::after {
  content: ""; position: absolute; right: -5px; top: 0; bottom: 0; width: 10px;
  background: radial-gradient(circle at 10px 10px,transparent 5px,#fff 5.5px) 0 0/10px 20px repeat-y;
}
.h5-coupon-card .amt .num { font-size: 24px; font-weight: 800; font-family: Consolas,monospace; line-height: 1; }
.h5-coupon-card .amt .num small { font-size: 12px; margin-right: 2px; }
.h5-coupon-card .amt .cond { font-size: 10px; opacity: .92; margin-top: 5px; white-space: nowrap; }
.h5-coupon-card .info { flex: 1; padding: 10px 14px 10px 18px; min-width: 0; }
.h5-coupon-card .info .t {
  font-size: 14px; font-weight: 700; color: var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.h5-coupon-card .info .sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* 推广统计网格 */
.h5-promo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px;
}
.h5-promo-grid .cell {
  background: #fff; border-radius: 12px; padding: 14px 6px; text-align: center;
  border: 1px solid var(--line);
}
.h5-promo-grid .cell .n { font-size: 22px; font-weight: 800; font-family: Consolas,monospace; color: #076B3D; }
.h5-promo-grid .cell .n.orange { color: #D97706; }
.h5-promo-grid .cell .n.pink { color: #C46F00; }
.h5-promo-grid .cell .label { font-size: 11px; color: #718096; margin-top: 3px; }

/* ========================================================
   镇级站点 (townsite) H5 组件
   ======================================================== */
/* 镇站顶栏（独立，不走 h5-user-nav） */
.h5-t-nav {
  position: sticky; top: 0; z-index: 95;
  height: 48px; padding: 0 12px;
  background: linear-gradient(135deg, #076B3D, #0B7A46); color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.h5-t-nav .back {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; text-decoration: none; color: #fff;
}
.h5-t-nav .back:active { background: rgba(255,255,255,.15); }
.h5-t-nav .brand {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-nav .brand .logo-dot {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: #fff; color: #076B3D;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.h5-t-nav .actions { display: flex; gap: 6px; }
.h5-t-nav .actions a {
  font-size: 12px; padding: 5px 10px; border-radius: 12px;
  color: #fff; text-decoration: none;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
}

/* 镇站大横幅（站 banner + 镇名 + intro） */
.h5-t-hero {
  position: relative;
  height: 170px; margin: 0; overflow: hidden;
  background: linear-gradient(135deg,#076B3D,#0A8F52);
}
.h5-t-hero .banner-img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85;
}
.h5-t-hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 100%);
}
.h5-t-hero .content {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  color: #fff; z-index: 2;
}
.h5-t-hero .content h1 {
  font-size: 20px; font-weight: 800; margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-hero .content .intro {
  font-size: 12.5px; opacity: .92; margin: 0; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-hero .content .tag {
  display: inline-block; margin-top: 6px; padding: 2px 8px;
  font-size: 11px; font-weight: 600; border-radius: 10px;
  background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.45);
}

/* 镇站统计横条 */
.h5-t-stats {
  margin: -18px 12px 12px; position: relative; z-index: 3;
  background: #fff; border-radius: 12px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  border: 1px solid var(--line);
  overflow: hidden;
}
.h5-t-stats .cell {
  text-align: center; padding: 12px 4px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}
.h5-t-stats .cell:last-child { border-right: none; }
.h5-t-stats .cell:active { background: var(--line-2); }
.h5-t-stats .cell .n {
  font-size: 18px; font-weight: 800; font-family: Consolas,monospace;
  color: #076B3D; line-height: 1.1;
}
.h5-t-stats .cell .l { font-size: 11px; color: #718096; margin-top: 3px; }

/* 镇站快捷入口（二级导航） */
.h5-t-nav2 {
  margin: 0 12px 12px;
  background: #fff; border-radius: 12px; border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; overflow: hidden;
}
.h5-t-nav2 a {
  padding: 12px 4px; text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink); font-size: 11.5px; font-weight: 500;
  border-right: 1px solid var(--line);
}
.h5-t-nav2 a:nth-child(5n) { border-right: none; }
.h5-t-nav2 a .i { font-size: 20px; line-height: 1; }
.h5-t-nav2 a.active { color: #076B3D; background: #E6F4ED; }

/* 镇站通知滚动条 */
.h5-t-notice {
  margin: 0 12px 12px; border-radius: 10px; overflow: hidden;
  display: flex; background: #fff; border: 1px solid var(--line);
  height: 42px;
}
.h5-t-notice .tag {
  flex-shrink: 0; padding: 0 12px;
  background: linear-gradient(135deg,#076B3D,#0B7A46);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.h5-t-notice .vp {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
}
.h5-t-notice .tr {
  position: absolute; left: 0; right: 0; top: 0;
  transition: transform .5s ease;
}
.h5-t-notice .tr a {
  display: block; padding: 0 14px; height: 42px; line-height: 42px;
  font-size: 14px; color: #2d3748; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 镇站网格卡：资讯/团购/商品/店铺/企业 */
.h5-t-grid {
  margin: 0 12px 12px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.h5-t-card {
  display: block; background: #fff; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.h5-t-card .thumb {
  height: 120px; background: linear-gradient(135deg,#edf2f7,#e2e8f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #a0aec0; overflow: hidden;
}
.h5-t-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.h5-t-card .body { padding: 10px 12px 12px; }
.h5-t-card .title {
  font-size: 14px; font-weight: 700; color: #2d3748;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-card .price {
  font-size: 16px; font-weight: 800; color: #D9452B; font-family: Consolas,monospace;
  margin-top: 4px;
}
.h5-t-card .price small { font-size: 11px; font-weight: 600; }
.h5-t-card .price .old { font-size: 11px; font-weight: 400; color: #a0aec0; text-decoration: line-through; margin-left: 4px; }
.h5-t-card .meta { font-size: 11px; color: #a0aec0; margin-top: 3px; }

/* 镇站店铺/企业列表（3 列小卡，带 logo） */
.h5-t-shop-list {
  margin: 0 12px 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
/* 镇站商家卡片：一行两个（店铺/地摊/企业/村店各 3 行） */
.h5-t-shop-list.two { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.h5-t-shop-list.two .h5-t-shop-card { padding: 14px 10px; }
.h5-t-shop-list.two .h5-t-shop-card .logo { width: 52px; height: 52px; font-size: 22px; }
.h5-t-shop-card {
  background: #fff; border-radius: 10px; border: 1px solid var(--line);
  padding: 12px 8px; text-align: center; text-decoration: none;
  display: block; color: inherit;
}
.h5-t-shop-card .logo {
  width: 44px; height: 44px; border-radius: 10px;
  margin: 0 auto 6px; background: #E6F4ED;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 20px; font-weight: 800; color: #076B3D;
}
.h5-t-shop-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.h5-t-shop-card .name {
  font-size: 12.5px; font-weight: 700; color: #2d3748;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-shop-card .type { font-size: 10px; color: #0A8F52; font-weight: 600; margin-top: 2px; }

/* 镇站便民电话列表 */
.h5-t-service-list {
  margin: 0 12px 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); overflow: hidden;
}
.h5-t-service-list .row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.h5-t-service-list .row:last-child { border-bottom: none; }
.h5-t-service-list .row .ico {
  width: 36px; height: 36px; border-radius: 9px;
  background: #E6F4ED; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.h5-t-service-list .row .info { flex: 1; min-width: 0; }
.h5-t-service-list .row .info .n {
  font-size: 14px; font-weight: 700; color: #2d3748;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-service-list .row .info .d {
  font-size: 12px; color: #a0aec0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-service-list .row .phone {
  font-size: 14px; font-weight: 800; color: #0A8F52;
  text-decoration: none; flex-shrink: 0;
}

/* 镇站通用 section head */
.h5-t-section { margin: 0 12px 12px; }
.h5-t-section .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0 10px;
}
.h5-t-section .head h3 {
  font-size: 16px; font-weight: 800; color: #2d3748; margin: 0;
  position: relative; padding-left: 12px;
}
.h5-t-section .head h3::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  background: linear-gradient(180deg,#076B3D,#0A8F52); border-radius: 2px;
}
.h5-t-section .head .more { font-size: 14px; color: #0A8F52; text-decoration: none; font-weight: 600; }

/* 镇站底部（仅版权+回主站） */
.h5-t-footer {
  padding: 16px; text-align: center;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: #a0aec0; line-height: 1.9;
  background: #fff;
}
.h5-t-footer a { color: #0A8F52; text-decoration: none; }

/* ========================================================
   内容频道（供应/求购/资讯/分类/商品）通用
   ======================================================== */
/* 筛选 chip（排序 / 子栏目） */
.h5-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.h5-filter-chip {
  display: inline-block; padding: 6px 14px; border-radius: 16px;
  font-size: 14px; background: #fff; color: var(--ink-3);
  border: 1px solid var(--line); text-decoration: none;
  white-space: nowrap;
}
.h5-filter-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }

/* 媒体行 / 商品卡的占位图居中 */
.h5-media-row .pic {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 26px; color: var(--ink-4);
}
.h5-goods-card .pic {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 30px; color: var(--ink-4);
}
.h5-media-row .pic img, .h5-goods-card .pic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* 频道列表页内的行容器（去左右重复留白） */
.h5-list-wrap { padding: 0 14px 4px; }
.h5-list-foot { text-align: center; padding: 4px 14px 16px; }

/* 分类信息的小价签/联系方式行 */
.h5-media-row .meta-row .tag-inline {
  font-size: 11px; padding: 1px 7px; border-radius: 8px;
  background: var(--brand-light, #E6F4ED); color: var(--brand);
}

/* ========================================================
   镇站页面字号整体上调（覆盖前文，手机阅读更舒适）
   ======================================================== */
.h5-t-nav .brand { font-size: 16px; }
.h5-t-nav .actions a { font-size: 14px; padding: 6px 11px; }
.h5-t-hero .content h1 { font-size: 22px; }
.h5-t-hero .content .intro { font-size: 14px; }
.h5-t-hero .content .tag { font-size: 12px; padding: 3px 10px; }
.h5-t-stats .cell .n { font-size: 20px; }
.h5-t-stats .cell .l { font-size: 12px; }
.h5-t-nav2 a { font-size: 14px; }
.h5-t-nav2 a .i { font-size: 22px; }
.h5-t-notice { height: 46px; }

/* 镇圈子二级频道横滑导航（子页面用） */
.h5-t-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 12px 2px; -webkit-overflow-scrolling: touch;
}
.h5-t-tabs::-webkit-scrollbar { display: none; }
.h5-t-tabs a {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: #4a5568; font-size: 13.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.h5-t-tabs a.on { background: #076B3D; border-color: #076B3D; color: #fff; }

/* 镇圈子子页大标题（面包屑并入 intro） */
.h5-t-hero.slim { height: 120px; }
.h5-t-hero.slim .content h1 { font-size: 20px; }

/* 镇圈子空态（带发布入口） */
.h5-t-empty {
  margin: 0 12px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 38px 18px; text-align: center;
  color: #718096; font-size: 13.5px; line-height: 1.8;
}
.h5-t-empty a { color: #0A8F52; font-weight: 700; text-decoration: none; }

/* 镇圈子导航：省/市/区/镇 宫格 */
.h5-zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 12px 12px; }
.h5-zone-grid a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 42px; padding: 10px 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: #4a5568;
  text-decoration: none; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
}
.h5-zone-grid a.town { background: #E6F4ED; border-color: #A7DDBE; color: #076B3D; }
.h5-zone-grid a.open { background: linear-gradient(135deg,#fff7e6,#fff); border-color: #f6c177; color: #9a3412; }
.h5-zone-grid a small { display: block; font-size: 10.5px; font-weight: 400; color: #718096; margin-top: 2px; }
@media (min-width: 560px) { .h5-zone-grid { grid-template-columns: repeat(4, 1fr); } }

.h5-t-notice .tr a { font-size: 14px; height: 46px; line-height: 46px; }
.h5-t-card .title { font-size: 15px; }
.h5-t-card .price { font-size: 18px; }
.h5-t-card .meta { font-size: 12px; }
.h5-t-shop-card .name { font-size: 13.5px; }
.h5-t-shop-card .type { font-size: 11.5px; }
.h5-t-service-list .row .info .n { font-size: 15px; }
.h5-t-service-list .row .info .d { font-size: 14px; }
.h5-t-service-list .row .phone { font-size: 15px; }
.h5-t-section .head h3 { font-size: 17px; }
.h5-t-section .head .more { font-size: 14px; }
.h5-t-footer { font-size: 12.5px; }
/* 镇站优惠券字号 */
.h5-coupon-card .info .t { font-size: 15px; }
.h5-coupon-card .amt .num { font-size: 26px; }
.h5-coupon-card .info .sub { font-size: 14px; }
/* 镇站通用列表行（资讯/分类/供应等文字行） */
.h5-t-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.h5-t-row:last-child { border-bottom: 0; }
.h5-t-row .thumb {
  width: 68px; height: 50px; border-radius: 8px; flex-shrink: 0;
  background: var(--line-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--ink-4);
}
.h5-t-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h5-t-row .body { flex: 1; min-width: 0; }
.h5-t-row .body .t {
  font-size: 15px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-row .body .d {
  font-size: 14px; color: var(--ink-3); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h5-t-panel {
  margin: 0 12px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.h5-t-empty-box {
  margin: 0 12px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 16px; text-align: center;
  color: var(--ink-3); font-size: 14px;
}

/* ========================================================
   站中站（店铺 / 企业 / 镇站）店内导航与角标
   ======================================================== */
.h5-s-nav2 {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 10px; background: #fff;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.h5-s-nav2::-webkit-scrollbar { display: none; }
.h5-s-nav2 a {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 15px;
  font-size: 13.5px; color: var(--ink-3); text-decoration: none;
  background: var(--line-2); white-space: nowrap;
}
.h5-s-nav2 a.on { background: var(--brand); color: #fff; font-weight: 600; }

/* 店站顶栏购物车角标 */
.h5-t-nav .actions a .badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 3px;
  border-radius: 8px; background: #E53E3E; color: #fff;
  font-size: 10px; font-weight: 700; vertical-align: middle;
}

/* ---------- 镇站幻灯（默认 3 帧 + 镇站广告，5 秒无缝循环） ---------- */
.h5-t-swip {
  position: relative; overflow: hidden; height: 160px;
  background: linear-gradient(135deg,#076B3D,#0A8F52);
}
.h5-t-swip .h5-swip { height: 100%; }
.h5-t-swip .h5-swip-slide { height: 160px; }
/* 内置宣传帧：内容居中 + 左下浅、右上深的两色过渡背景 + 科技感线条 */
.h5-t-swip .h5-banner-inline {
  position: relative; overflow: hidden;
  align-items: center; text-align: center; padding: 0 20px;
  background: linear-gradient(45deg, #7FE3B4 0%, #0E9C60 45%, #043D26 100%);
}
.h5-t-swip .h5-banner-inline.join {
  background: linear-gradient(45deg, #FFD9A8 0%, #E88A1E 45%, #6B3205 100%);
}
.h5-t-swip .h5-banner-inline.vip {
  background: linear-gradient(45deg, #D3C2F7 0%, #7C5BD0 45%, #33206B 100%);
}
/* 科技感斜纹 + 右上光晕 */
.h5-t-swip .h5-banner-inline::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 84% 14%, rgba(255,255,255,.22), transparent 46%);
  opacity: .7;
}
/* 右上同心圆装饰 */
.h5-t-swip .h5-banner-inline::after {
  content: ""; position: absolute; right: -52px; top: -64px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 0 0 26px rgba(255,255,255,.06), 0 0 0 56px rgba(255,255,255,.04);
  pointer-events: none;
}
.h5-t-swip .h5-banner-inline > * { position: relative; z-index: 1; }
/* 第 2 帧：点阵 + 左下圆环 */
.h5-t-swip .h5-banner-inline.join::before {
  background:
    radial-gradient(rgba(255,255,255,.38) 1px, transparent 1.4px) 0 0 / 14px 14px,
    radial-gradient(circle at 12% 86%, rgba(255,255,255,.22), transparent 42%);
  opacity: .55;
}
.h5-t-swip .h5-banner-inline.join::after {
  right: auto; top: auto; left: -46px; bottom: -58px;
  width: 150px; height: 150px;
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 22px rgba(255,255,255,.06), 0 0 0 48px rgba(255,255,255,.035);
}
/* 第 3 帧：网格线 + 左上光斑 */
.h5-t-swip .h5-banner-inline.vip::before {
  background:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 22px 100%,
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.20), transparent 45%);
  opacity: .6;
}
.h5-t-swip .h5-banner-inline.vip::after {
  right: -30px; top: -30px; width: 120px; height: 120px;
  box-shadow: 0 0 0 18px rgba(255,255,255,.05), 0 0 0 40px rgba(255,255,255,.03);
}
.h5-t-swip .h5-banner-inline .title,
.h5-t-swip .h5-banner-inline .sub { text-shadow: 0 1px 4px rgba(0,0,0,.28); }
.h5-t-swip .h5-banner-inline .title { font-size: 20px; line-height: 1.3; }
.h5-t-swip .h5-banner-inline .sub { font-size: 12.5px; line-height: 1.5; }
.h5-t-swip .h5-swip-dots { bottom: 8px; }

/* ---------- 镇站站点导航（三横杠下拉，等于站点地图） ---------- */
.h5-t-menu-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; cursor: pointer; padding: 0;
}
.h5-t-menu-btn:active { background: rgba(255,255,255,.3); }
/* 镇站顶栏：网上逛街（地图）入口，位于三横杠左侧 */
.h5-t-nav .actions .h5-t-icon-link {
  width: 32px; height: 32px; border:0;
  background:none;font-size:22px;
  color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; line-height: 1; flex: 0 0 auto;display: inline-block;transform: scaleX(-1);
}
.h5-t-nav .actions .h5-t-icon-link:active { background: rgba(255,255,255,.3); }
.h5-t-nav .actions .h5-t-icon-link svg { width: 18px; height: 18px; display: block; }
/* 镇站顶栏品牌可点击回本镇首页 */
.h5-t-nav a.brand { text-decoration: none; color: inherit; }
.h5-t-menu-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(15,23,42,.42);
  z-index: 96; display: none;
}
.h5-t-menu-mask.on { display: block; }
.h5-t-menu {
  position: fixed; left: 0; right: 0; margin: 0 auto;
  width: var(--shell-w); max-width: 100%; top: 48px;
  background: #fff; border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
  z-index: 97; display: none; padding: 12px 12px 14px;
  max-height: 72vh; overflow-y: auto;
}
.h5-t-menu.on { display: block; }
.h5-t-menu .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.h5-t-menu .grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 12px 4px; border-radius: 10px;
  background: var(--line-2); text-decoration: none;
  color: var(--ink); font-size: 12.5px; font-weight: 500;
}
.h5-t-menu .grid a:active { background: var(--brand-light, #E6F4ED); }
.h5-t-menu .grid a .i { font-size: 20px; line-height: 1; }
.h5-t-menu .auth { display: flex; gap: 8px; margin-top: 12px; }
.h5-t-menu .auth a {
  flex: 1; padding: 11px 0; border-radius: 22px; text-align: center;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.h5-t-menu .auth .login { background: var(--brand); color: #fff; }
.h5-t-menu .auth .member { background: var(--line-2); color: var(--brand); }

/* ---------- 镇民留言（审核后循环滚动 + 游客留言表单） ---------- */
.h5-gb-vp {
  overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; margin: 0 0 10px;
}
.h5-gb-tr { display: flex; flex-direction: column; }
.h5-gb-item {
  display: flex; align-items: center; gap: 8px;
  height: 44px; font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden;
}
.h5-gb-item .n { flex-shrink: 0; max-width: 5.6em; overflow: hidden; text-overflow: ellipsis; color: var(--brand); font-weight: 700; }
.h5-gb-item .c { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.h5-gb-item .t { flex-shrink: 0; font-size: 11.5px; color: var(--ink-4); }
.h5-gb-form {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin: 0;
}
.h5-gb-form .row { display: flex; gap: 8px; }
.h5-gb-form .row .h5-form-input { flex: 1; min-width: 0; }

/* ---------- 镇站今日特价：一屏 3 个，3 秒无缝滚动 ---------- */
.h5-sp-marquee { overflow: hidden; }
.h5-sp-track { display: flex; transition: transform .45s ease; will-change: transform; }
.h5-sp-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.h5-sp-page .h5-special-card { flex: none; width: 100%; }
.h5-sp-page .h5-special-card .pic { width: 100%; height: 88px; }
.h5-sp-page .h5-special-card .name { font-size: 12.5px; }
.h5-sp-page .h5-special-card .price { font-size: 14px; }

/* ---------- 镇站内容详情：点赞 / 分享 / 评论 ---------- */
.h5-act { display: flex; gap: 10px; }
.h5-act-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 0; border-radius: 10px; background: var(--line-2);
  color: var(--ink-2); font-size: 14px; text-decoration: none;
}
.h5-act-btn em { font-style: normal; font-weight: 700; color: var(--ink-3); }
.h5-act-btn.on { background: #FFE9E6; color: #E53E3E; }
.h5-act-btn.on em { color: #E53E3E; }
.h5-cm-head { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.h5-cm-head em { font-style: normal; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.h5-cm-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.h5-cm-item:last-child { border-bottom: 0; }
.h5-cm-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-4); }
.h5-cm-meta b { font-size: 14px; color: var(--brand); }
.h5-cm-body { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin-top: 5px; word-break: break-word; }
.h5-cm-reply { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.h5-cm-empty, .h5-cm-login { font-size: 13.5px; color: var(--ink-3); padding: 10px 0; }
.h5-cm-login a { color: var(--brand); text-decoration: none; font-weight: 600; }
/* 绿色按钮（发布评论等） */
.h5-btn-green {
  background: linear-gradient(135deg, #0A8F52, #076B3D);
  color: #fff; box-shadow: 0 3px 10px rgba(10,143,82,.3);
}

/* 镇站面包屑：首页 › 栏目 › 正文 */
.h5-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: 0 12px 10px; font-size: 14px; line-height: 1.4; color: var(--ink-3);
}
.h5-crumb a { color: var(--ink-3); text-decoration: none; }
.h5-crumb a:active { color: var(--brand); }
.h5-crumb .sep { color: var(--ink-4); }
.h5-crumb .cur { color: var(--brand); font-weight: 600; }
/* 列表页标题行内的面包屑：始终单行，与右侧统计垂直居中 */
.h5-t-section .head .h5-crumb { flex-wrap: nowrap; white-space: nowrap; margin: 0; }
/* 分页页码 */
.h5-page-nav { flex-wrap: wrap; }
.h5-page-nav a { padding: 6px 11px; }
.h5-page-nav span.cur {
  padding: 6px 12px; border-radius: 16px;
  background: var(--brand); color: #fff; font-weight: 700;
}

/* ---------- 地摊单页（template/ditan） ---------- */
.ditan-card {
  margin: 12px;
  background: var(--card);
  border-radius: var(--r-14);
  box-shadow: var(--shadow-md);
  padding: 16px;
}
.ditan-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.ditan-sub { font-size: 13px; color: var(--ink-3); line-height: 1.7; word-break: break-word; }
.ditan-desc {
  font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-top: 8px;
  white-space: pre-wrap; word-break: break-word;
}
.ditan-stats {
  display: flex; gap: 10px; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.ditan-stats div {
  flex: 1; text-align: center; font-size: 12px; color: var(--ink-3);
  background: var(--brand-light, #E6F4ED); border-radius: 10px; padding: 8px 0;
}
.ditan-stats b { display: block; font-size: 18px; color: var(--brand-dark, #076B3D); }

/* 卖什么：两列商品卡 */
.ditan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.ditan-goods {
  display: block; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-10);
  overflow: hidden;
}
.ditan-goods:active { border-color: var(--brand); }
.ditan-goods .thumb {
  height: 110px; background-size: cover; background-position: center;
  background-color: var(--line-2);
}
.ditan-goods .info { padding: 8px 10px 10px; }
.ditan-goods .name {
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 36px; word-break: break-word;
}
.ditan-goods .price { margin-top: 4px; font-size: 15px; font-weight: 800; color: #D9452B; }

/* 怎么联系 */
.ditan-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.ditan-contact a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--brand-light, #E6F4ED);
  color: var(--brand-dark, #076B3D); font-size: 15px; font-weight: 700;
}
.ditan-contact a.alt { background: var(--line-2); color: var(--ink-3); font-weight: 500; }

/* 在哪：地图入口 */
.ditan-map { margin-top: 6px; }
.ditan-map a {
  display: block; padding: 12px 14px; border-radius: 12px;
  background: var(--brand-light, #E6F4ED);
  color: var(--brand-dark, #076B3D); font-size: 14px; font-weight: 600;
}









