/* ============================================================
   手机商城样式 v35 - 20261115x8 (参考美团手机端逻辑)
   首页: logo区 → 搜索框 → 金刚区(一级分类 一行5个) → 二级分类卡(一排两个: 模块主图+商品名+价格)
   服务大厅: 左一级侧栏 → 右侧二级模块(一排两个) → 下方本栏目商品列表
   仅 ≤768px 生效, 电脑端零影响。风格延续本站蓝色主调 (#038DFE)。
   ============================================================ */

/* 手机专属结构: 电脑端隐藏。
   v35 的 wy-m-sidecat(服务大厅一级分类侧栏)此前漏加, 导致桌面栏目页在搜索框下方
   裸露出一排「服务大厅 / 全部服务 / 工商服务 / 财税服务…」小字链接, 与顶部主导航重复且不协调。
   电脑端一律隐藏; ≤768px 由下方媒体查询里的 body.hm-page .hm-section--list .wy-m-sidecat
   (更高优先级) 恢复为左侧竖栏, 响应式手机版不受影响。
   注意: 这里不能用 !important, 否则会把手机端侧栏一起干掉。 */
.wy-m-tabbar, .wy-m-kingkong, .wy-m-hubprods, .wy-m-sidecat { display: none; }

@media (max-width: 768px) {

/* ---------- 基础 ---------- */
body.hm-page, body.wy-page {
  padding-top: 92px !important;   /* 列表页固定头: Logo行52 + 分类导航40 */
  padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important;  /* 底部 tabbar */
  -webkit-overflow-scrolling: touch;
}
/* 首页: 导航行由金刚区承担, 顶部只留 logo 行 */
body.hm-page:not(.wy-m-list) { padding-top: 52px !important; }
body.hm-page:not(.wy-m-list) .wy-sc-navbar { display: none !important; }

/* v9 精修把容器硬钉 1280px(!important), 手机必须解除 */
body.hm-page .hm-wrap, body.wy-page .hm-wrap,
body.hm-page .wy-sc-container, body.wy-page .wy-sc-container {
  width: auto !important; max-width: 100% !important; min-width: 0 !important;
  margin-left: auto !important; margin-right: auto !important;
  padding-left: 12px !important; padding-right: 12px !important;
}
body.hm-page .hm-hero > .hm-wrap { height: auto !important; min-height: 0 !important; }

/* 楼层/版块间距统一压缩 */
body.hm-page .hm-section { padding: 12px 0 !important; }
body.hm-page .hm-section--list { padding: 10px 0 16px !important; }

/* ---------- 底部固定导航 (首页/服务大厅/我的订单/个人中心) ---------- */
body.hm-page .wy-m-tabbar, body.wy-page .wy-m-tabbar {
  display: flex;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  height: calc(54px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--wy-card,#fff);
  border-top: 1px solid var(--wy-line,#e6ebf2);
  box-shadow: 0 -4px 14px rgba(15,35,80,.07);
}
.wy-m-tabbar a {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; line-height: 1.2; color:var(--dk-667381,#667381); text-decoration: none !important;
}
.wy-m-tabbar a svg { width: 22px; height: 22px; }
.wy-m-tabbar a.on { color:var(--dk-1858c9,#0369C9); font-weight: 700; }

/* ---------- 顶部固定头 ---------- */
body.hm-page .wy-sc-header, body.wy-page .wy-sc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  box-shadow: 0 2px 10px rgba(15,35,80,.08);
}
body.hm-page .wy-sc-topbar, body.wy-page .wy-sc-topbar { display: none !important; }
.wy-sc-brandrow { background: var(--wy-card,#fff) !important; }
.wy-sc-brandrow-inner { height: 52px !important; min-height: 52px !important; padding: 0 12px !important; gap: 10px !important; }
.wy-sc-logo { flex: 0 0 150px !important; width: 150px !important; height: 40px !important; max-width: 150px !important; margin: 6px 0 0 !important; justify-content: flex-start !important; }
.wy-sc-logo-img { height: 40px !important; }
.wy-sc-logo-text { font-size: 17px !important; }
.wy-sc-cta { display: none !important; }
.wy-sc-navbar { display: block !important; }
.wy-sc-nav {
  display: flex !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch;
  white-space: nowrap; scrollbar-width: none;
  background: var(--wy-card,#fff); border-bottom:1px solid var(--ln-eef2f8,#EEF2F8);
}
.wy-sc-nav::-webkit-scrollbar { display: none; }
.wy-sc-nav a { flex: 0 0 auto !important; padding: 0 13px !important; line-height: 40px !important; font-size: 14px !important; margin-right: 0 !important; }
.wy-sc-nav a.on, .wy-sc-nav a.active { color:var(--dk-1858c9,#0369C9) !important; font-weight: 700 !important; }

/* ---------- 首页首屏: 只留搜索框(美团式 logo区+搜索) ---------- */
body.hm-page:not(.wy-m-list) .hm-hero { padding: 10px 0 14px !important; }
body.hm-page:not(.wy-m-list) .hm-hero-badge,
body.hm-page:not(.wy-m-list) .hm-hero-title,
body.hm-page:not(.wy-m-list) .hm-hero-sub,
body.hm-page:not(.wy-m-list) .hm-search-tabs,
body.hm-page:not(.wy-m-list) .hm-trust-row,
body.hm-page:not(.wy-m-list) .hm-hero-panel { display: none !important; }
body.hm-page:not(.wy-m-list) .hm-search { height: 40px !important; width: 100% !important; max-width: 100% !important; }
body.hm-page:not(.wy-m-list) .hm-search input[type=text] { font-size: 13px !important; padding: 0 12px !important; }
body.hm-page:not(.wy-m-list) .hm-search button { flex: 0 0 96px !important; height: 40px !important; font-size: 13px !important; white-space: nowrap !important; }
body.hm-page:not(.wy-m-list) .hm-search button svg { display: none !important; }
body.hm-page:not(.wy-m-list) .hm-search-sel { display: none !important; }

/* 列表页首屏搜索框 */
body.hm-page .hm-search { height: 44px !important; }
body.hm-page .hm-search input[type=text] { font-size: 14px !important; }
body.hm-page .hm-search button { height: 44px !important; font-size: 14px !important; }
body.hm-page .hm-search-sel { display: none !important; }
.hm-trust-row { display: none !important; }

/* 首页: 桌面版模块让位 (楼层由下方二级分类卡承担) */
body.hm-page:not(.wy-m-list) .tk-entry,
body.hm-page:not(.wy-m-list) .tk-hot,
body.hm-page:not(.wy-m-list) .tk-news,
body.hm-page:not(.wy-m-list) .tk-promise,
body.hm-page:not(.wy-m-list) .hm-bb-type { display: none !important; }

/* ---------- 金刚区: 一级分类宫格(一行5个, 美团式) ---------- */
body.hm-page:not(.wy-m-list) .wy-m-kingkong { display: block; background: var(--wy-card,#fff); padding: 14px 6px 8px; }
body.hm-page .wy-m-kk-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px 2px; }
body.hm-page .wy-m-kk-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none !important;
}
body.hm-page .wy-m-kk-ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(15,35,80,.10);
}
body.hm-page .wy-m-kk-ico .hm-subwall-svg { stroke: #FFFFFF; width: 26px; height: 26px; }
body.hm-page .wy-m-kk-tx { font-size: 12px; color:var(--dk-475467,#475467); line-height: 1.3; text-align: center; }

/* ---------- 二级分类卡(首页楼层 + 大厅一级页通用): 一排两个 ----------
   卡片结构 = 模块主图(彩色渐变) + 商品名 + 自定义价格, 与电脑版一致 */
body.hm-page .hm-bb { padding: 6px 0 10px !important; }
body.hm-page .hm-bb-head { margin-bottom: 4px !important; }
body.hm-page .hm-bb-title { font-size: 18px !important; }
body.hm-page .hm-bb-tagline { font-size: 12px !important; }
body.hm-page .hm-bb-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
body.hm-page .hm-bb-card { border-radius: 12px !important; overflow: hidden; box-shadow: 0 2px 10px rgba(15,35,80,.06) !important; }
body.hm-page .hm-bb-visual { height: 92px !important; min-height: 92px !important; }
body.hm-page .hm-bb-name { font-size: 15px !important; }
body.hm-page .hm-bb-ico svg, body.hm-page .hm-bb-icon-img { width: 38px !important; height: 38px !important; }
body.hm-page .hm-bb-foot { padding: 7px 10px !important; }
body.hm-page .hm-bb-sub { font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.hm-page .hm-bb-price { font-size: 12px !important; }
body.hm-page .hm-bb-card.is-placeholder { display: none !important; }

/* 楼层标题统一压缩 */
body.hm-page .hm-sec-head h2 { font-size: 18px !important; }
body.hm-page .hm-sec-head .hm-sub, body.hm-page .hm-sub { font-size: 12px !important; }

/* ---------- 服务大厅: 左侧一级分类侧栏 ---------- */
body.hm-page .hm-section--list .wy-m-sidecat {
  display: block;
  position: fixed; left: 0; top: 92px; bottom: calc(54px + env(safe-area-inset-bottom));
  width: 88px; z-index: 900;
  overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  background: var(--wy-bg-soft,#f4f6fa); border-right: 1px solid var(--wy-line,#e6ebf2);
  padding: 8px 0 12px;
}
body.hm-page .hm-section--list .wy-m-sidecat::-webkit-scrollbar { display: none; }
.wy-m-sidecat-t { display: block; font-size: 10px; letter-spacing: 1px; color:#98A3B3; text-align: center; padding: 4px 4px 8px; }
.wy-m-sidecat-i {
  display: block; position: relative; margin: 2px 5px; padding: 12px 4px; border-radius: 8px;
  font-size: 13px; line-height: 1.35; color:var(--dk-475467,#475467); text-align: center;
  text-decoration: none !important; background:transparent; word-break: break-all;
}
.wy-m-sidecat-i.on { background: var(--wy-card,#fff); color:var(--dk-1858c9,#0369C9) !important; font-weight: 700; box-shadow: 0 2px 8px rgba(24,88,201,.10); }
.wy-m-sidecat-i.on::before {
  content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 2px; background:#038DFE;
}
body.hm-page .hm-section--list .hm-wrap { padding-left: 100px !important; padding-right: 12px !important; }
body.hm-page .hm-section--list .hm-sec-head { margin-bottom: 6px !important; }
body.hm-page .hm-section--list .hm-sec-head h2 { font-size: 17px !important; }

/* 栏目头: 居中标题 + 搜索框 */
body.hm-page.wy-m-list .hm-slim .hm-wrap { padding-left: 100px !important; padding-right: 12px !important; }
body.hm-page.wy-m-list .hm-slim { text-align: center; padding: 10px 0 2px !important; }
body.hm-page.wy-m-list .hm-slim .hm-crumb { display: none !important; }
body.hm-page.wy-m-list .hm-slim h1, body.hm-page.wy-m-list .hm-slim h2 { font-size: 18px !important; margin: 0 0 8px !important; }
body.hm-page.wy-m-list .hm-slim .hm-slim-sub { display: none !important; }
body.hm-page.wy-m-list .hm-slim .hm-search { margin: 0 auto !important; }

/* ---------- 一级栏目页: 二级模块(一排两个) + 下方直接列商品 ---------- */
body.hm-page .hm-section--hub .hm-catbar { display: none !important; }
body.hm-page .hm-subwall { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
body.hm-page .hm-subwall-card {
  display: flex !important; align-items: center; gap: 8px !important;
  padding: 10px 8px !important; border-radius: 10px !important;
}
body.hm-page .hm-subwall-ico { flex: 0 0 42px !important; width: 42px !important; height: 42px !important; border-radius: 10px !important; }
body.hm-page .hm-subwall-ico .hm-subwall-svg { width: 22px !important; height: 22px !important; }
body.hm-page .hm-subwall-tx { flex: 1 1 auto; min-width: 0; }
body.hm-page .hm-subwall-name { font-size: 13px !important; }
body.hm-page .hm-subwall-meta { display: none !important; }
body.hm-page .hm-subwall-go { display: none !important; }
body.hm-page .hm-subwall-foot { display: none !important; }

/* 一级栏目页下方商品列表 */
body.hm-page .hm-section--hub .wy-m-hubprods { display: block; }
body.hm-page .wy-m-hubprods-hd { font-size: 15px; font-weight: 700; color:var(--dk-1d2939,#1D2939); padding: 10px 0 8px; }
body.hm-page .wy-m-hubprods .wy-card-media img { object-fit: cover !important; }

/* ---------- 二级栏目页: 切换胶囊横滑 + 商品单列左图右文卡 ---------- */
body.hm-page .hm-section--list .hm-catbar { margin-bottom: 8px !important; }
body.hm-page .hm-section--list .hm-catbar-list {
  display: flex !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch;
  white-space: nowrap; scrollbar-width: none; gap: 8px !important; padding: 4px 0 8px;
}
body.hm-page .hm-section--list .hm-catbar-list::-webkit-scrollbar { display: none; }
body.hm-page .hm-section--list .hm-catbar-lab { display: none !important; }
body.hm-page .hm-section--list .hm-catbar-chip { flex: 0 0 auto !important; padding: 6px 14px !important; border-radius: 999px; font-size: 13px !important; }
body.hm-page .hm-section--list .hm-sortbar { overflow-x: auto; scrollbar-width: none; font-size: 12px; }
body.hm-page .hm-section--list .hm-sortbar::-webkit-scrollbar { display: none; }
body.hm-page .hm-section--list .wy-tagsrow, body.hm-page .hm-section--list .wy-filterbar { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }

body.hm-page .hm-section--list .hm-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
body.hm-page .hm-section--list .hm-grid .wy-card {
  display: grid !important; grid-template-columns: 126px minmax(0,1fr) !important;
  border-radius: 10px !important; overflow: hidden; min-height: 0 !important;
}
body.hm-page .hm-section--list .wy-card-media { height: 100% !important; min-height: 104px; aspect-ratio: auto !important; border-radius: 0 !important; }
body.hm-page .hm-section--list .wy-card-media .wy-card-idbadge { font-size: 10px !important; }
body.hm-page .hm-section--list .wy-card-body { padding: 10px 12px !important; }
body.hm-page .hm-section--list .wy-card-title {
  font-size: 15px !important; line-height: 1.4; margin: 0 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.hm-page .hm-section--list .wy-card-desc {
  display: -webkit-box !important; -webkit-line-clamp: 1 !important; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px !important; margin-top: 4px !important;
}
body.hm-page .hm-section--list .wy-card-foot { margin-top: 8px !important; }
body.hm-page .hm-section--list .wy-card-cta {
  flex: 0 0 auto !important; background:#038DFE; color:#FFFFFF !important;
  border-radius: 14px; padding: 5px 14px; font-size: 12px !important;
}
body.hm-page .hm-section--list .wy-card-stamp { font-size: 10px !important; padding: 2px 8px !important; }
body.hm-page .hm-section--list .hm-all-more { padding: 10px 0 !important; }
body.hm-page .hm-section--list .hm-btn-lg { width: 100% !important; display: block; text-align: center; }

/* 分页 */
body.hm-page .wy-pager { flex-wrap: wrap; gap: 6px !important; padding: 10px 0 !important; }
body.hm-page .wy-pager-btn, body.hm-page .wy-pager-num { padding: 5px 10px !important; font-size: 12px !important; }

/* ---------- 商品详情页 ---------- */
body.hm-page .wy-pd { gap: 0 !important; }
body.hm-page .wy-pd-quickcats { overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap; }
body.hm-page .wy-pd-quickcats::-webkit-scrollbar { display: none; }
body.hm-page .wy-pd-banner-inner { padding: 14px 12px !important; }
body.hm-page .wy-pd-title { font-size: 18px !important; }
body.hm-page .wy-pd-rel .hm-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }

/* ---------- 页脚: 竖排收纳 ---------- */
body .wy-sc-footer-grid { display: block !important; padding: 16px 14px 10px !important; }
body .wy-sc-foot-menus { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)) !important; width: auto !important; gap: 0 8px !important; }
body .wy-sc-foot-col { width: auto !important; flex: initial !important; }
body .wy-sc-foot-col a { margin-top: 10px !important; font-size: 12px !important; }
body .wy-sc-foot-service-zone { width: auto !important; flex: initial !important; border-left:0 !important; padding-left: 0 !important; margin-top: 16px !important; }
body .wy-sc-foot-svc-main { width: 100% !important; flex: 1 1 100% !important; }
body .wy-sc-foot-service { width: 100% !important; }
body .wy-sc-foot-hotline { width: 100% !important; margin-top: 10px !important; }
body .wy-sc-foot-qr-zone { margin-top: 14px !important; width: 120px !important; flex: initial !important; margin-left: auto; margin-right: auto; }
body .wy-sc-foot-links { width: 100% !important; min-width: 0 !important; margin: 12px 0 !important; }
body .wy-sc-foot-records { font-size: 11px !important; padding: 8px 10px 0 !important; }
body .wy-sc-footer-bottom { font-size: 11px !important; }

}

@media (max-width:768px){
/* 2026-11-25 手机端补搜索入口（业主删掉首屏临时搜索框后，手机上原来一处搜索都没有）：
   上面 .wy-sc-brandrow-inner 的 height:52px !important 把换行后的搜索框挤到容器外，
   这里放开换行与高度，搜索框排成「logo 行下面整行一条」。 */
.wy-sc-brandrow-inner { height:auto !important; min-height:52px !important; flex-wrap:wrap !important;
  row-gap:6px !important; padding:4px 12px 8px !important; }
.wy-sc-brandrow .wy-sc-headsearch { display:flex !important; order:3;
  flex:1 1 100% !important; width:100% !important; max-width:none !important; min-width:0; height:40px !important; }
.wy-sc-headsearch input { font-size:13px !important; padding:0 12px !important; }
.wy-sc-headsearch button { flex:0 0 84px !important; font-size:13px !important; }
/* 首屏搜索框按钮「搜索服务」四个字 + 放大镜图标挤在 72px 里会折成两行，这里放宽并禁止折行 */
body.hm-page .hm-search button { flex:0 0 96px !important; font-size:13px !important; white-space:nowrap !important; }
body.hm-page .hm-search button svg { display:none !important; }
}
