/* ============================================================
   App 专属样式层（黄河网客户端）
   仅当 <html> 含 .app-shell 时生效（客户端按 UA=hhdbhApp 注入）
   不影响手机版网页 / PC 端。绿色主题、卡片化、舒适间距。
   ============================================================ */
.app-shell {
  --hh: #1f8a4c;
  --hh-d: #176e3c;
  --hh-l: #e9f5ee;
  --bg: #f4f7f5;
  --card: #ffffff;
  --line: #e6efe9;
  --txt: #2b3a32;
  --sub: #7c8c83;
  --radius: 0;
  --shadow: 0 2px 12px rgba(20,60,38,.07);
}
/* 2026-11-18 根治「切页瞬间顶栏下方绿块」：body 兜底由深绿改浅色 var(--bg)。
   真凶＝SPA 切页那一帧新 .content 尚未绘制，顶栏(深绿 solid 独立合成层)已就位，
   二者之间露出 body 深绿 #176e3c＝用户看到的「绿色突然变宽/向下拉」。
   顶栏自身已是 solid 深绿且不依赖 body 兜底（撕裂真凶弹层早已物理删），
   故 body 改浅底：任何缝隙露出的都是与内容同色的浅底，肉眼无感。 */
.app-shell body { background: var(--bg); }
.app-shell .content,
.app-shell .cont_ny { background: var(--bg); }
/* 2026-11-18 根治「滑动时顶部绿条突然变宽又恢复」：下拉刷新(pullrefresh.js)把 .content
   整体下移最多96px，顶栏(sticky)不动，两者之间露出 body 的兜底深绿 #176e3c——
   看起来就是顶栏下方绿条瞬间变高一截，松手 content 弹回即恢复。这里给内容层向上延伸
   一层与内容同色的浅底(box-shadow 不占布局、随 content 一起 transform)，正好盖住这段缝隙。
   120px > 最大下拉96px，覆盖有余；阴影绘制在 body 背景之上、不影响任何交互。 */
html.app-shell .content{ box-shadow: 0 -120px 0 var(--bg); }
/* 首页/推荐页内容是浅绿渐变，顶色接近 #eef8ed，单独贴近，避免下拉缝隙出现色差 */
html.app-shell .content.hh-home{ box-shadow: 0 -120px 0 #eef8ed; }
/* 2026-11-15：任何加载失败的 <img>（破图框）一律隐藏，避免老 WebView 把失败图渲染成白底方框＋✘ */
img.hh-imgerr { display: none !important; }
/* 2026-11-15 六修（真因根治）：空 src 的 <img>（灯箱/投稿/抽奖的占位图）在 Android 老 WebView
   里必定画成「白底方框＋✘」，且即使父容器 display:none 也可能因合成层撕裂漏在屏幕左上角(0,0)。
   直接从渲染源头按属性选择器物理隐藏，不依赖 error 事件/扫描器（扫描器特意跳过空 src）。
   灯箱打开后 JS 把 src 设为真实图片，选择器自动失效、正常显示，无副作用。 */
img[src=""], img:not([src]) { display: none !important; }
/* 2026-11-16：图片灯箱已恢复（八修系误诊删除，真凶是 PC 弹层按钮 #hhPopClose），
   此处旧防御规则随之撤销；隐藏态由 .hh-imgmodal{display:none} 正常控制。 */

/* ===== iOS「添加到主屏幕」App 的状态栏铺绿（2026-11-05）=====
   apple-mobile-web-app-status-bar-style=black-translucent 会让状态栏透明、
   网页从屏幕最顶端开始绘制；但 body 背景是浅灰绿，状态栏那一块就会显白。
   这里用一条 fixed 纯色层精确盖住状态栏安全区，顶栏再用等量 padding 把内容
   压回安全区。--hh-sb 由 layout.php 的早期脚本量出（老 iOS 兜底 20/44px），
   未设置时回退到 env(safe-area-inset-top)。仅 App 壳（移动端）生效，
   桌面 PWA 与 PC 浏览器不受影响。 */
html.hh-standalone.app-shell { background: #176e3c; }
html.hh-standalone.app-shell body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--hh-sb, env(safe-area-inset-top));
  background: #176e3c;
  z-index: 2147483000;
  pointer-events: none;
}

/* ---------- App 专属顶栏（头条风：绿底 + 搜索行 + 栏目行） ---------- */
.app-shell #chbnav_touch { display: none !important; }  /* 隐藏手机版默认顶栏与侧滑菜单 */
.app-shell .hh-mnav { display: none !important; }       /* 移动端浏览器也套壳后，避免与 App 壳栏目行/底栏重复 */
.app-shell .app-topbar {
  position: sticky; top: 0; z-index: 9000;
  display: flex; flex-direction: column;
  background: #176e3c;  /* 纯色，与 App 壳状态栏 statusBarColor 0xFF176E3C 完全一致 */
  box-shadow: 0 1px 4px rgba(20,60,38,.18);
  padding-top: var(--hh-sb, env(safe-area-inset-top));
  /* 2026-11-21：移除 translateZ(0)/will-change/isolation——这三个属性会给 sticky 顶栏单独提升
     合成层，真机 Android WebView 在 SPA 换页后偶发「合成层残影」，视觉上是两套顶栏上下叠
     （DOM 实际只有一套，去重脚本/CSS 兄弟选择器都命中不到，故 6 次去重全部无效）。
     body 背景早已改 var(--bg)，撕裂白条不再出现，无需再靠合成层兜底。去掉后不会再有重影。 */
}
/* 第一行：logo + 搜索框 + 发布/分享 */
.app-shell .app-srow {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 12px;
}
.app-shell .app-logo2 {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; box-sizing: border-box; text-decoration: none;
}
/* 2026-11-15 十六修：恢复网站原始「白底圆形会徽」并略微放大（30 → 36px）。
   logo_app_white.png 是 skin/logo.png 的 128px 优化副本，作为 CSS 背景图；
   DOM 里零 <img> 节点 → 不会触发老 WebView 破图占位框，也不会退化成默认按钮。
   白底方框＋✘ 的真凶是 PC 弹层残留 #hhPopClose（十五修已物理清除），与图片无关。
   下面 !important 仅兜住旧 Service Worker 缓存里残留的 <img> 节点。 */
.app-shell .app-logo2 img { display: none !important; }
.app-shell .app-logo2 .app-logo-mark {
  width: 36px; height: 36px; display: block;
  background: url(logo_app_white.png) center / contain no-repeat;
}
.app-shell .app-search {
  flex: 1 1 auto; min-width: 0; height: 36px;
  background: #fff; border-radius: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
}
.app-shell .app-search svg { width: 17px; height: 17px; color: #8b9690; flex: 0 0 auto; }
.app-shell .app-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: #333; height: 100%;
}
.app-shell .app-search input::placeholder { color: #9aa79f; }
.app-shell .app-search input::-webkit-search-cancel-button { display: none; }
/* 顶栏右侧按钮组（消息红点 / 升级箭头 / 头像），靠右排布在搜索框之后 */
.app-shell .app-topr {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  flex: 0 0 auto; margin-left: auto;
}
.app-shell .app-msglnk {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: #fff; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.app-shell .app-msglnk svg { width: 22px; height: 22px; display: block; }
/* 2026-11-16 恢复：顶栏「⬆ 新版本」按钮（SW 检测到新版本时由 app.js 显示） */
.app-shell .app-verlnk {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 6px; color: #fff;
  font-size: 15px; text-decoration: none;
  background: rgba(255,255,255,.16); border-radius: 15px;
  -webkit-tap-highlight-color: transparent;
}
.app-shell .app-verlnk::after {
  content: ''; position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%; background: #e24c4c;
}
/* 消息未读数字角标（红底白字，挂在消息图标右上角，如截图所示“2”） */
.app-shell .hh-msg-count {
  position: absolute; top: -3px; right: -5px; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; border-radius: 0; background: #e24c4c; color: #fff;
  font-size: 10.5px; font-weight: 700; text-align: center;
  box-shadow: 0 0 0 2px #176e3c; box-sizing: border-box;
}
/* 头像（豆包位）：圆形，未登录灰色人形占位，登录后显示会员头像 */
.app-shell .app-avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  overflow: hidden; display: flex; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
/* 2026-11-18：头像位宽度与原「返回键」位(.app-backbtn 38px)对齐——
   首页(显示头像)与内页(显示返回键)切换时右侧占位一致，搜索框长度不再跳 4px。
   头像本体仍 34px、居中；红点随之贴头像右上。 */
.app-shell .app-avawrap {
  position: relative; flex: 0 0 auto; width: 38px; height: 38px; display: flex;
  align-items: center; justify-content: center;
}
.app-shell .app-avawrap .hh-dot {
  top: 0; right: 2px; box-shadow: 0 0 0 2px #176e3c;
}
.app-shell .app-avatar svg, .app-shell .app-avatar img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
/* 发布子视图「返回」箭头：默认隐藏；展开表单时替换头像位置（铃铛之后）。
   点它收起表单、回九宫格。仅 App 壳（顶栏存在）显示。 */
.app-shell .app-backbtn {
  flex: 0 0 auto; width: 38px; height: 38px;
  display: none; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; cursor: pointer;
  background: transparent; border: 0;
  -webkit-tap-highlight-color: transparent;
}
/* 2026-11-08：统一用用户提供的弯尾左箭头（白图透明底，alpha 蒙版着色），不再用细线 ‹ */
.app-shell .app-backbtn svg { width: 24px; height: 24px; display: block; }
.app-shell .app-backbtn .hh-back-arw{ width: 34px; height: 34px; flex: 0 0 34px; opacity: .95; }
.app-shell .app-backbtn:active .hh-back-arw{ opacity: .62; }
/* 抽屉（底部 +号面板）打开子视图时：把顶栏层级抬到抽屉之上，让返回箭头可见可点 */
.app-shell body.hh-backmode .app-topbar { z-index: 9003; }
/* 第二行：栏目横滑（绿底白字，比顶栏更鲜亮，形成两色层次） */
.app-shell .app-channels {
  display: flex; align-items: center; gap: 14px;
  padding: 0 12px;
  background: #1f9d54;  /* 比顶栏 #176e3c 更鲜亮，区别于上方颜色 */
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.app-shell .app-channels::-webkit-scrollbar { display: none; }
.app-shell .app-channels a {
  flex: 0 0 auto; white-space: nowrap;
  font-size: 15px; color: rgba(255,255,255,.78); text-decoration: none;
  padding: 10px 0 11px; position: relative;
}
.app-shell .app-channels a.active,
.app-shell .app-channels a.on { color: #fff; font-size: 17px; font-weight: 800; }
.app-shell .app-channels a.active::after,
.app-shell .app-channels a.on::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 5px; width: 18px; height: 3px; border-radius: 0; background: #fff;
}

/* ---------- 隐藏网页专属元素（App 内不需要） ---------- */
.app-shell .gsgg,
.app-shell .newscontl,
.app-shell .hh-actside,
.app-shell .hh-sideshare,
.app-shell .contentd,
.app-shell .contentd_touch,
.app-shell .scene-bar.sb-app,
.app-shell .contentb,
.app-shell .contentcls { display: none !important; }

/* ---------- 内容容器卡片化 ---------- */
.app-shell .contenta,
.app-shell .contentc,
.app-shell .contentcl,
.app-shell .contentcr,
.app-shell .contente,
.app-shell .contente2l,
.app-shell .contente2r,
.app-shell .contentf,
.app-shell .contentclt,
.app-shell .contentcrt,
.app-shell .newscont {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 10px 12px;
}
.app-shell .contenta { padding: 0; overflow: hidden; }
.app-shell .contentcl,
.app-shell .contentcr,
.app-shell .contente,
.app-shell .contente2l,
.app-shell .contente2r,
.app-shell .contentf,
.app-shell .contentclt,
.app-shell .contentcrt { padding: 14px; }
.app-shell .contentc > .contentcl,
.app-shell .contentc > .contentcr,
.app-shell .contentcl > .contentclt,
.app-shell .contente2 > .contente2l,
.app-shell .contente2 > .contente2r { margin: 0 0 12px; }
.app-shell .contentc > .contentcl:last-child,
.app-shell .contente2 > .contente2l:last-child { margin-bottom: 0; }

/* 区块标题绿色化（沿用结构） */
.app-shell .contentartls,
.app-shell .bt,
.app-shell .contentcltl .bt,
.app-shell .contentcrtb .bt,
.app-shell .newscontrtl {
  color: var(--hh-d);
  font-weight: 700;
  border-left: 4px solid var(--hh);
  padding-left: 10px;
  line-height: 1.3;
}
.app-shell .contentartrs a,
.app-shell .contentartr a,
.app-shell .contentcltl .contentartr a { color: var(--sub); font-size: 13px; }

/* ---------- 列表项 App 化 ---------- */
.app-shell .contentcltb ul li,
.app-shell .newscontrb ul li,
.app-shell .contentcrtbb ul li { border-bottom: 1px solid var(--line); }
.app-shell .contentcltb ul li:last-child,
.app-shell .newscontrb ul li:last-child,
.app-shell .contentcrtbb ul li:last-child { border-bottom: 0; }
.app-shell .contentcltb ul li a,
.app-shell .newscontrb ul li a,
.app-shell .contentcrtbb ul li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 4px;
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
}
.app-shell .contentcltbl,
.app-shell .newscontrbt,
.app-shell .contentcrtbbt,
.app-shell .contentcrtbbb { font-size: 17px; color: var(--txt); line-height: 1.45; }
.app-shell .contentcltbr,
.app-shell .newscontrbb,
.app-shell .contentcrtbb .contentcrtbbb { color: var(--sub); font-size: 13px; margin-left: auto; padding-left: 10px; flex: 0 0 auto; }
.app-shell .contentcltb ul li a:hover .contentcltbl,
.app-shell .newscontrb ul li a:hover .newscontrbt { color: var(--hh); padding-left: 4px; }

/* 栏目列表：右侧缩略图（左文右图，保留原链接与分页） */
.app-shell .newscontrb ul li { position: relative; }
.app-shell .newscontrb ul li.app-li-hasimg > a { padding-right: 112px; min-height: 78px; }
.app-shell .newscontrb ul li.app-li-hasimg .newscontrbt { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.app-shell .app-li-thumb {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 88px; height: 64px; border-radius: 0; overflow: hidden;
  background: #eef3f0; pointer-events: none;
}
.app-shell .app-li-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }

/* 搜索无结果提示 */
.app-shell .app-noresult {
  padding: 46px 18px; text-align: center;
  font-size: 15px; color: var(--txt); line-height: 2;
}
.app-shell .app-noresult:before {
  content: '🔍'; display: block; font-size: 34px; line-height: 1; margin-bottom: 12px; opacity: .55;
}
.app-shell .app-noresult span { display: block; font-size: 13px; color: var(--sub); margin-top: 6px; }

/* ---------- 首页轮播 / 活动栏 ---------- */
.app-shell .contental { margin: 10px 12px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.app-shell .contental .am-slides li { height: 200px; }
.app-shell .contental .am-slides li img { height: 200px; object-fit: cover; }
.app-shell .contentar { background: var(--hh-l); border-radius: var(--radius); margin: 10px 12px; box-shadow: none; }
.app-shell .contentar .contentarbt { padding: 14px; }
.app-shell .hab-li { padding: 12px 14px; }
.app-shell .hab-title { font-size: 15px; }

/* ---------- 生态保护横条保留并 App 化 ---------- */
.app-shell .scene-bar { margin: 10px 12px; height: 60px; border-radius: var(--radius); }
.app-shell .scene-bar .sb-txt { font-size: 17px; letter-spacing: 3px; }
.app-shell .contentcls_touch, .app-shell .contentd_touch { margin: 0; }

/* ---------- 详情页 ---------- */
/* 卡片满宽（与首页卡片 24px 边距一致），内层内容由 12px 内边距承担，避免「窄一截」 */
html.app-shell .newscont.cont-single .cgcont,
html.app-shell .newscont.newscont { padding: 12px 0 20px !important; }
.app-shell .newscont > * { margin-left: 12px; margin-right: 12px; }
.app-shell .newscont > .newscontr { margin-left: 0; margin-right: 0; }
.app-shell .newscontrb ul li a { padding: 10px 12px; }
.app-shell .app-li-thumb { right: 12px; }
.app-shell .tybt { font-size: 22px; line-height: 1.5; color: var(--txt); text-align: left; margin-bottom: 10px; }
.app-shell .tybs { color: var(--sub); font-size: 13px; text-align: left; }
.app-shell .cgcont { padding-top: 14px; }
.app-shell .tynr, .app-shell .cgcont .tynr { color: var(--txt); }
.app-shell .tynr p { line-height: 1.85; margin: 12px 0; color: var(--txt); }
.app-shell .tynr p img { border-radius: 0; margin: 8px auto; }
.app-shell .newshow_source { color: var(--sub); font-size: 12px; }
.app-shell .newscontrt { border-bottom: 1px solid var(--line); }

/* ---------- 表单 / 通用卡片（会员、活动、留言等复用） ---------- */
.app-shell .card-panel,
.app-shell .member-box,
.app-shell .form-wrap,
.app-shell .ad-card,
.app-shell .ad-cover { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 12px; padding: 16px; }
/* 会员中心 / 登录卡片与首页同宽：box 已有 12px 内边距，卡片再缩进 12px */
.app-shell .ct-card, .app-shell .login-card { margin-left: 12px; margin-right: 12px; }
/* 发布页去掉「返回活动列表」（App 由底部 Tab 导航） */
.app-shell .ad-back { display: none !important; }
.app-shell .btn,
.app-shell .am-btn { background: var(--hh); border-color: var(--hh); border-radius: 0; }
/* App 壳下保留 ghost 白底按钮（否则被上一条刷成绿底 + ghost 绿字 = 文字隐形） */
.app-shell .btn.ghost { background: #fff; color: #1f8a4c; border: 1px solid #1f8a4c; border-radius: 0; }
.app-shell input, .app-shell textarea, .app-shell select { border-radius: 0; border-color: var(--line); }
.app-shell .tabs a { color: var(--sub); }
.app-shell .tabs a.active { color: var(--hh); border-bottom-color: var(--hh); }

/* ---------- 页脚精简（App 内由底部 Tab 栏替代） ---------- */
.app-shell .footer { display: none !important; }
.app-shell .footert { display: none !important; }
.app-shell .footerb { background: transparent; text-align: center; color: var(--sub); font-size: 12px; line-height: 1.7; padding-top: 4px; }
.app-shell .footerbrt, .app-shell .footerbrs, .app-shell .footerbrb, .app-shell .footerbrb2, .app-shell .footerbrz { color: var(--sub); font-size: 12px; }

/* ---------- 安全区适配（刘海屏） + 为底部 Tab 栏留白 ---------- */
.app-shell body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
@supports (padding: env(safe-area-inset-bottom)) {
  .app-shell body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ---------- App 底部 Tab 栏（极简线性 SVG 图标） ---------- */
.app-shell .hh-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  height: 56px; padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  /* 2026-11-21：改回纯色底栏，去掉 backdrop-filter（毛玻璃会触发独立合成层，
     真机 WebView 换页后偶发「底栏残影」= 视觉上两套底栏；纯色渲染零重影，观感几乎无差）。 */
  background: rgba(255,255,255,.96);
  box-shadow: 0 -2px 16px rgba(24,80,46,.09);
  border-top: 1px solid rgba(255,255,255,.88);
}
.app-shell .hh-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #9CA3AF; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, opacity .18s ease;
}
.app-shell .hh-tab:active { opacity: .55; }
.app-shell .hh-tab .hh-tabi {
  height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.app-shell .hh-tab .hh-tabi svg {
  width: 24px; height: 24px; display: block;
  transition: transform .18s ease, opacity .18s ease;
}
.app-shell .hh-tab .hh-tabl {
  font-size: 11px; line-height: 1; letter-spacing: .3px;
  transform: translateY(0); transition: color .18s ease;
}
.app-shell .hh-tab.active { color: var(--hh); }
.app-shell .hh-tab.active .hh-tabi svg { transform: translateY(-1px); filter: drop-shadow(0 2px 4px rgba(31,138,76,.28)); }
.app-shell .hh-tab.active .hh-tabl { font-weight: 600; }

/* ---------- 发布 Tab：中间凸起悬浮圆钮 ---------- */
.app-shell .hh-tab.tab-mid {
  position: relative;
  justify-content: flex-end;
  padding-bottom: 7px;
}
.app-shell .hh-tab.tab-mid .hh-tabi {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #25a85c, var(--hh));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(31, 138, 76, .45);
  margin-bottom: 0;
}
.app-shell .hh-tab.tab-mid .hh-tabi svg {
  width: 22px; height: 22px;
}
.app-shell .hh-tab.tab-mid.active .hh-tabi {
  background: linear-gradient(135deg, var(--hh), var(--hh-d));
  box-shadow: 0 4px 14px rgba(23, 110, 60, .55);
}
.app-shell .hh-tab.tab-mid.active { color: var(--hh); }

/* ====================== App 专属首页头部（仅首页 + App UA 注入） ====================== */
.app-shell .app-home-top { margin-bottom: 2px; }
.app-shell .app-home-hero {
  margin: 10px 12px 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #25a85c 0%, #176e3c 100%);
  color: #fff;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.app-shell .app-home-hero::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.app-shell .app-home-hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-shell .app-home-hero .leaf { font-size: 24px; }
.app-shell .app-home-hero .sub { font-size: 13px; opacity: .92; position: relative; z-index: 1; }
.app-shell .app-home-quick {
  margin: 12px 12px 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.app-shell .app-home-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--txt);
  font-size: 13px;
}
.app-shell .app-home-quick .qi {
  width: 46px;
  height: 46px;
  border-radius: 0;
  background: var(--hh-l);
  color: var(--hh);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.app-shell .app-home-quick a:nth-child(2) .qi { background: #eaf3ff; color: #2f7de0; }
.app-shell .app-home-quick a:nth-child(3) .qi { background: #fff3e6; color: #e08a2f; }
.app-shell .app-home-quick a:nth-child(4) .qi { background: #fdeaf2; color: #d84a8a; }
.app-shell .app-home-links {
  margin: 12px 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-shell .app-home-links a {
  flex: 1 1 calc(25% - 8px);
  min-width: calc(25% - 8px);
  text-align: center;
  font-size: 13px;
  color: var(--sub);
  background: var(--card);
  border-radius: 0;
  padding: 8px 6px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

/* ===================== App 信息流（头条式混合随机） ===================== */
/* 栏目页/内容页：统一 border-box，宽度自适应（width:auto 才会扣掉左右 margin），
   否则 width:100% + margin:12px 会让内容整体右移 12px、右边缘贴屏被裁 */
.app-shell *, .app-shell *::before, .app-shell *::after { box-sizing: border-box; }
.app-shell .contenta, .app-shell .contentc, .app-shell .contentcl, .app-shell .contentcr,
.app-shell .contente, .app-shell .contente2, .app-shell .contente2l, .app-shell .contente2r,
.app-shell .contentf, .app-shell .contentclt, .app-shell .newscont, .app-shell .cont_ny,
.app-shell .box, .app-shell .newscontr, .app-shell .newscontl, .app-shell .newscontrb,
.app-shell .contentcltb, .app-shell .contentcrtbb { width: auto !important; max-width: 100% !important; }

/* 首页：隐藏与信息流重复的桌面区块，仅保留轮播 + 信息流 */
.app-shell .contentar, .app-shell .contentc, .app-shell .contente2, .app-shell .contentf { display: none !important; }

/* 会员风采等 .fclist 卡片：补左右留白 + 圆角，避免图片贴边导致侧边弧角被切 */
.app-shell .cont_ny > .box { padding-left: 12px !important; padding-right: 12px !important; }
.app-shell .fclist { margin: 8px 12px 16px; }
.app-shell .fclist > li {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 12px; list-style: none;
}
.app-shell .fclist .fcl-img { display: block !important; height: 186px !important; padding-bottom: 0 !important; overflow: hidden; font-size: 0; line-height: 0; }
.app-shell .fclist .fcl-img img { width: 100% !important; height: 186px !important; object-fit: cover; display: block; }
.app-shell .fclist .fcl-body { padding: 12px 14px 14px; }
.app-shell .fclist .fcl-title { font-size: 17px; line-height: 1.45; margin: 0 0 8px; font-weight: 700; }
.app-shell .fclist .fcl-desc { font-size: 15px; line-height: 1.7; color: var(--sub); margin: 0 0 10px; }
.app-shell .fclist .fcl-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--sub); }
.app-shell .fclist .fcl-more { color: var(--hh); text-decoration: none; }

/* App 内隐藏全站面包屑「我的位置：首页 > xxx」：
   .newscontrtr 列表/文章页、.fc-crumbs 会员风采、.newscontrt 旧拼写一并覆盖 */
.app-shell .newscontrtr,
.app-shell .fc-crumbs,
.app-shell .newscontrt,
.app-shell .breadcrumb,
.app-shell .crumb { display: none !important; }
/* 面包屑隐掉后，列表卡片与顶栏贴太近，补一点上间距 */
.app-shell .newscont .newscontrb { margin-top: 2px; }
.app-shell .fclist { margin-top: 10px; }
.app-shell .newscont { padding-top: 14px !important; padding-bottom: 18px !important; }
.app-shell .tybt { margin-bottom: 12px !important; font-size: 21px !important; }
.app-shell .tynr p, .app-shell .cgcont p { font-size: 17px !important; line-height: 1.8 !important; }
.app-shell .contentcltb ul li a, .app-shell .newscontrb ul li a { font-size: 17px !important; }

/* 文章页：封面图放正文内首位（通栏圆角），不再浮在标题处
   注意：站内 `html.is-mobi .cgcont img{width:auto!important;height:auto!important}`
   优先级高于 .app-shell .app-art-cover，这里必须用更高权重的选择器压过它 */
html.app-shell .cgcont img.app-art-cover,
html.app-shell .tynr img.app-art-cover,
html.app-shell .newscontr img.app-art-cover {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  min-width: 0 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  margin: 3px 0 8px 12px !important;
  padding: 0 !important; border: 0 !important;
}
.app-shell .tybt { overflow: hidden; }

/* ---- 信息流容器 ---- */
.app-shell .app-feed { margin: 10px 12px 0; }
/* 资讯页：feed 挂在 .newscont 内，已有 16px 内边距，去掉这层 12px 外边距，与其他列表对齐 */
.app-shell .newscont .app-feed { margin-left: 0; margin-right: 0; }
.app-shell .app-feed-hd { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 10px; }
.app-shell .app-feed-hd .t { font-size: 16px; font-weight: 800; color: var(--txt); }
.app-shell .app-feed-refresh {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eef2f0; color: #6c7a73; border: 0; border-radius: 0;
  font-size: 13px; padding: 5px 12px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.app-shell .app-feed-refresh:active { background: #e2e8e4; }
.app-shell .app-feed-list { display: block; }
.app-shell .app-feed-loading, .app-shell .app-feed-empty { padding: 30px 10px; text-align: center; color: var(--sub); font-size: 14px; }

/* ---- 信息流卡片：左文右图 ---- */
.app-shell .fc-card {
  display: flex; align-items: stretch; gap: 12px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; margin-bottom: 10px; text-decoration: none;
}
.app-shell .fc-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-shell .fc-title {
  font-size: 17px; line-height: 1.45; color: var(--txt); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-shell .fc-digest {
  font-size: 14px; line-height: 1.6; color: var(--sub); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 视频卡：标题在上、视频封面在下（16:9） */
.app-shell .fc-card.fc-vcard { display: block; }
.app-shell .fc-vthumb { position: relative; margin-top: 10px; border-radius: 0; overflow: hidden; background: #eef3f0; height: 180px; }
.app-shell .fc-vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-shell .fc-play-big { width: 46px; height: 46px; font-size: 19px; background: rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.65); }
.app-shell .fc-meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 10px; font-size: 12px; color: var(--sub); }
.app-shell .fc-tag { background: var(--hh-l); color: var(--hh-d); border-radius: 0; padding: 1px 7px; font-size: 11px; }
.app-shell .fc-status { background: #e8f6ee; color: #1f8a4c; border-radius: 0; padding: 1px 7px; font-size: 11px; }
.app-shell .fc-exc { background: #fff3d6; color: #b8860b; border-radius: 0; padding: 1px 7px; font-size: 11px; font-weight: bold; }
.app-shell .fc-date { color: var(--sub); }
.app-shell .fc-thumb { position: relative; flex: 0 0 112px; width: 112px; height: 84px; border-radius: 0; overflow: hidden; background: #eef3f0; }
.app-shell .fc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-shell .fc-nopic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b9c7bf; font-size: 14px; }
.app-shell .fc-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px;
}
/* 无配图卡片：标题 + 摘要（上下结构） */
.app-shell .fc-card.fc-noimg { display: block; min-height: 0; }
.app-shell .fc-card.fc-noimg .fc-title { -webkit-line-clamp: 2; }
.app-shell .fc-card.fc-noimg .fc-meta { padding-top: 8px; }
.app-shell .fc-card.fc-noimg .fc-digest:last-of-type { margin-bottom: 2px; }

/* 防御：即便服务端 UA 检测未命中，只要 JS 已注入 app-shell 类（在 <html> 上），也隐藏普通顶栏/快捷条，避免双顶栏 */
.app-shell .hh-top,
.app-shell .hh-toplink { display: none !important; }

/* 独立窗口（iOS/安卓「添加到主屏幕」）服务端 !isApp() 仍会渲染普通网页外壳，
   这里统一隐藏，避免与 App 壳的顶栏 / 栏目 / 底栏重复： */
.app-shell .hh-utilbar,
.app-shell .hh-homead,
.app-shell .hh-mnav,
.app-shell .hh-foot { display: none !important; }

/* ---------- 首页（新版：轮播 + 推荐流）在 App 壳内的适配 ---------- */
.app-shell .hh-home { padding-bottom: 78px; }
.app-shell .hh-feed-list { gap: 14px; }

/* ==========================================================================
   界面控制栏（2026-11-08）
   layout.php 首帧 HHUI 脚本按 localStorage 把 hh-f-*（前台/首页）与
   hh-b-*（个人后台）两组类打到 <html> 上；这里只负责把类翻译成样式。
   所有选择器都带 .app-shell —— PC 端一个像素都不会变。
   前台作用域：.hh-home / .hh-home-pub；后台作用域：.mc-pub / .hh-more。
   ========================================================================== */

/* 每个入口的实心渐变配色（「彩色」图标模式用；磨砂玻璃模式只用淡色 --ico-tint） */
.app-shell .pub-ico.ico-cmp    {--ico-c1:#e0705f;--ico-c2:#b8442f;}
.app-shell .pub-ico.ico-ask    {--ico-c1:#45c9bb;--ico-c2:#0e8a7e;}
.app-shell .pub-ico.ico-chat   {--ico-c1:#9a80e6;--ico-c2:#5836b5;}
.app-shell .pub-ico.ico-act    {--ico-c1:#43b271;--ico-c2:#14572f;}
.app-shell .pub-ico.ico-ps     {--ico-c1:#f7c752;--ico-c2:#d98c00;}
.app-shell .pub-ico.ico-snap   {--ico-c1:#6db0f2;--ico-c2:#2266c8;}
.app-shell .pub-ico.ico-ct     {--ico-c1:#efbd46;--ico-c2:#c98a0c;}
.app-shell .pub-ico.ico-hb     {--ico-c1:#a8bd72;--ico-c2:#5f7a36;}
.app-shell .pub-ico.ico-volact {--ico-c1:#56ae85;--ico-c2:#1c5640;}
.app-shell .pub-ico.ico-share  {--ico-c1:#e07fac;--ico-c2:#a23468;}
.app-shell .pub-ico.ico-culture{--ico-c1:#c79a63;--ico-c2:#7d5225;}
.app-shell .pub-ico.ico-mall{--ico-c1:#f29b56;--ico-c2:#cf5e18;}
.app-shell .pub-ico.ico-redeem{--ico-c1:#d79be0;--ico-c2:#9b4fb0;}
.app-shell .pub-ico.ico-assn   {--ico-c1:#5d95d6;--ico-c2:#1f4f88;}
.app-shell .pub-ico.ico-star   {--ico-c1:#d8ae4c;--ico-c2:#8f6a12;}
.app-shell .pub-ico.ico-warn   {--ico-c1:#d46a6a;--ico-c2:#8a2626;}
/* 2026-11-16 二十六修：宠物救助站改品牌绿（图标换 SVG 绿底白房子，底色同步） */
.app-shell .pub-ico.ico-pet    {--ico-c1:#2aa15f;--ico-c2:#177a44;}
/* .pi-emo 里内联 SVG（如宠物救助站图标）：跟随 emoji 字号缩放 */
.app-shell .pub-ico .pi-emo svg{width:1em;height:1em;display:block;}
.app-shell .pub-ico.ico-law    {--ico-c1:#6592c7;--ico-c2:#274c74;}
.app-shell .pub-ico.ico-intro  {--ico-c1:#59b3a6;--ico-c2:#1e6b61;}
.app-shell .pub-ico.is-locked{opacity:.42;filter:grayscale(1);-webkit-filter:grayscale(1);pointer-events:none;box-shadow:none;}
.app-shell .pub-ico.ico-video  {--ico-c1:#5db3c9;--ico-c2:#1d637c;}
.app-shell .pub-ico.ico-svc    {--ico-c1:#5bbfa6;--ico-c2:#1c6d59;}
.app-shell .pub-ico.ico-supply {--ico-c1:#d7a459;--ico-c2:#96601f;}
.app-shell .pub-ico.ico-svcpub {--ico-c1:#d7a459;--ico-c2:#96601f;}
.app-shell .pub-ico.ico-appdl {--ico-c1:#7fb7e8;--ico-c2:#2a5f92;}

/* ---- ① 图标排布：2 列 = 大图标，4/5/6 列 = 小图标 ---- */
html.app-shell.hh-f-cols-2 .hh-home .hh-home-pub .pub-grid,
html.app-shell.hh-b-cols-2 .mc-pub .pub-grid,
html.app-shell.hh-b-cols-2 .hh-more .grid{grid-template-columns:repeat(2,1fr);max-width:344px;column-gap:22px;row-gap:40px;}
html.app-shell.hh-f-cols-3 .hh-home .hh-home-pub .pub-grid,
html.app-shell.hh-b-cols-3 .mc-pub .pub-grid,
html.app-shell.hh-b-cols-3 .hh-more .grid{grid-template-columns:repeat(3,1fr);max-width:300px;}
html.app-shell.hh-f-cols-4 .hh-home .hh-home-pub .pub-grid,
html.app-shell.hh-b-cols-4 .mc-pub .pub-grid,
html.app-shell.hh-b-cols-4 .hh-more .grid{grid-template-columns:repeat(4,1fr);max-width:344px;column-gap:9px;row-gap:28px;}
html.app-shell.hh-f-cols-5 .hh-home .hh-home-pub .pub-grid,
html.app-shell.hh-b-cols-5 .mc-pub .pub-grid,
html.app-shell.hh-b-cols-5 .hh-more .grid{grid-template-columns:repeat(5,1fr);max-width:350px;column-gap:7px;row-gap:26px;}
html.app-shell.hh-f-cols-6 .hh-home .hh-home-pub .pub-grid,
html.app-shell.hh-b-cols-6 .mc-pub .pub-grid,
html.app-shell.hh-b-cols-6 .hh-more .grid{grid-template-columns:repeat(6,1fr);max-width:360px;column-gap:6px;row-gap:24px;}
/* 战略合作图标墙跟随「图标排布」(hh-f-cols-N)：与首页宫格同列数、同宽、同列间距，接受后台/界面调整 */
/* 战略合作图标墙跟随「图标排布」(hh-f-cols-N)：与首页宫格同列数、同宽、同列间距，接受后台/界面调整。
   作用域 .hp-mobile（移动端），不再依赖 JS 注入的 app-shell 类，手机浏览器 H5 也生效。 */
html.hh-f-cols-2 .hh-partner.hp-mobile .hp-grid{grid-template-columns:repeat(2,1fr);max-width:344px;column-gap:22px;}
html.hh-f-cols-3 .hh-partner.hp-mobile .hp-grid{grid-template-columns:repeat(3,1fr);max-width:300px;column-gap:10px;}
html.hh-f-cols-4 .hh-partner.hp-mobile .hp-grid{grid-template-columns:repeat(4,1fr);max-width:344px;column-gap:9px;}
html.hh-f-cols-5 .hh-partner.hp-mobile .hp-grid{grid-template-columns:repeat(5,1fr);max-width:350px;column-gap:7px;}
html.hh-f-cols-6 .hh-partner.hp-mobile .hp-grid{grid-template-columns:repeat(6,1fr);max-width:360px;column-gap:6px;}
/* 2 列时图标与文字一起放大，真正像「桌面大图标」 */
html.app-shell.hh-f-cols-2 .hh-home .hh-home-pub .pub-ico .pi-emo{font-size:56px;}
html.app-shell.hh-f-cols-2 .hh-home .hh-home-pub .pub-ico .pi-lbl{font-size:14px;}
html.app-shell.hh-b-cols-2 .mc-pub .pub-ico .pi-emo{font-size:52px;}
html.app-shell.hh-b-cols-2 .hh-more .g-ico{width:58px;height:58px;font-size:29px;}
/* 4 列及以上等比缩小，避免格子拥挤 */
html.app-shell.hh-f-cols-4 .hh-home .hh-home-pub .pub-ico .pi-emo,
html.app-shell.hh-b-cols-4 .mc-pub .pub-ico .pi-emo{font-size:30px;}
html.app-shell.hh-f-cols-4 .hh-home .hh-home-pub .pub-ico .pi-lbl,
html.app-shell.hh-b-cols-4 .mc-pub .pub-ico .pi-lbl,
html.app-shell.hh-f-cols-5 .hh-home .hh-home-pub .pub-ico .pi-lbl,
html.app-shell.hh-b-cols-5 .mc-pub .pub-ico .pi-lbl,
html.app-shell.hh-f-cols-6 .hh-home .hh-home-pub .pub-ico .pi-lbl,
html.app-shell.hh-b-cols-6 .mc-pub .pub-ico .pi-lbl{font-size:10.5px;left:-6px;right:-6px;}
html.app-shell.hh-f-cols-5 .hh-home .hh-home-pub .pub-ico .pi-emo,
html.app-shell.hh-b-cols-5 .mc-pub .pub-ico .pi-emo{font-size:25px;}
html.app-shell.hh-f-cols-6 .hh-home .hh-home-pub .pub-ico .pi-emo,
html.app-shell.hh-b-cols-6 .mc-pub .pub-ico .pi-emo{font-size:21px;}
html.app-shell.hh-b-cols-4 .hh-more .g-cell,
html.app-shell.hh-b-cols-5 .hh-more .g-cell,
html.app-shell.hh-b-cols-6 .hh-more .g-cell{padding:11px 3px 9px;}
html.app-shell.hh-b-cols-4 .hh-more .g-ico,
html.app-shell.hh-b-cols-5 .hh-more .g-ico,
html.app-shell.hh-b-cols-6 .hh-more .g-ico{width:38px;height:38px;font-size:18px;margin-bottom:6px;}
html.app-shell.hh-b-cols-4 .hh-more .g-lbl,
html.app-shell.hh-b-cols-5 .hh-more .g-lbl,
html.app-shell.hh-b-cols-6 .hh-more .g-lbl{font-size:11px;}

/* ---- ② 图标样式：磨砂玻璃（默认）/ 彩色渐变 / 线性描边 ---- */
html.app-shell.hh-f-ico-solid .hh-home .hh-home-pub .pub-ico,
html.app-shell.hh-b-ico-solid .mc-pub .pub-ico{
  background:linear-gradient(150deg,var(--ico-c1,#4aa873),var(--ico-c2,#1f7a4c));
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 8px 20px rgba(20,70,40,.22),inset 0 1px 0 rgba(255,255,255,.35);
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
html.app-shell.hh-f-ico-solid .hh-home .hh-home-pub .pub-ico::before,
html.app-shell.hh-b-ico-solid .mc-pub .pub-ico::before{opacity:.16;}
html.app-shell.hh-f-ico-line .hh-home .hh-home-pub .pub-ico,
html.app-shell.hh-b-ico-line .mc-pub .pub-ico{
  background:rgba(255,255,255,.26);border:1.5px solid rgba(45,110,70,.32);
  box-shadow:none;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
}
html.app-shell.hh-f-ico-line .hh-home .hh-home-pub .pub-ico::after,
html.app-shell.hh-b-ico-line .mc-pub .pub-ico::after{display:none;}
html.app-shell.hh-f-ico-line .hh-home .hh-home-pub .pub-ico::before,
html.app-shell.hh-b-ico-line .mc-pub .pub-ico::before{opacity:.55;}
html.app-shell.hh-b-ico-solid .hh-more .g-cell{background:linear-gradient(150deg,#f0f8f2,#d8ecdf);border-color:#cde5d5;}
html.app-shell.hh-b-ico-line .hh-more .g-cell{background:transparent;border:1.5px solid rgba(45,110,70,.28);box-shadow:none;}
html.app-shell.hh-b-ico-line .hh-more .g-ico{background:rgba(255,255,255,.6);}

/* ---- ③ 圆角 ---- */
html.app-shell.hh-f-rad-sharp .hh-home .hh-home-pub .pub-ico,
html.app-shell.hh-b-rad-sharp .mc-pub .pub-ico{border-radius:9px;}
html.app-shell.hh-f-rad-round .hh-home .hh-home-pub .pub-ico,
html.app-shell.hh-b-rad-round .mc-pub .pub-ico{border-radius:50%;}
html.app-shell.hh-b-rad-sharp .hh-more .g-cell{border-radius:8px;}
html.app-shell.hh-b-rad-round .hh-more .g-cell{border-radius:20px;}

/* ---- ④ 间距（写在列数规则之后，优先级相同、顺序靠后，故可独立覆盖） ---- */
html.app-shell.hh-f-gap-tight .hh-home .hh-home-pub .pub-grid,
html.app-shell.hh-b-gap-tight .mc-pub .pub-grid,
html.app-shell.hh-b-gap-tight .hh-more .grid{column-gap:7px;row-gap:21px;}
html.app-shell.hh-f-gap-loose .hh-home .hh-home-pub .pub-grid,
html.app-shell.hh-b-gap-loose .mc-pub .pub-grid,
html.app-shell.hh-b-gap-loose .hh-more .grid{column-gap:22px;row-gap:46px;}

/* ---- ⑤ 图标文字 ---- */
html.app-shell.hh-f-label-hide .hh-home .hh-home-pub .pub-ico .pi-lbl,
html.app-shell.hh-b-label-hide .mc-pub .pub-ico .pi-lbl,
html.app-shell.hh-b-label-hide .hh-more .g-lbl{display:none!important;}
html.app-shell.hh-f-label-small .hh-home .hh-home-pub .pub-ico .pi-lbl,
html.app-shell.hh-b-label-small .mc-pub .pub-ico .pi-lbl{font-size:10.5px;}
html.app-shell.hh-b-label-small .hh-more .g-lbl{font-size:11px;}

/* ---- ⑥ 页面背景主题（前台首页/推荐页走 --hh-home-bg 变量，后台整页直接换底） ----
   默认背景（四层：顶部柔光 → 顶部远山剪影 → 整页平铺的水波/叶片淡纹 → 淡绿渐变底）
   2026-11-11 从 home_app.php 内联样式挪到公共层：App「推荐」页容器同类 .content.hh-home，
   之前拿不到这条默认背景呈纯白，现与首页一致；hh-f-bg-* 主题切换对两页同时生效。 */
html.app-shell .content.hh-home{
  --hh-home-bg:
    radial-gradient(115% 38% at 50% -6%, rgba(255,255,255,.82), rgba(255,255,255,0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='none'%3E%3Ccircle cx='332' cy='40' r='21' fill='%23f0e3aa' opacity='.34'/%3E%3Cpath d='M0 120 Q50 78 100 108 Q150 58 210 100 Q265 54 320 96 Q360 70 400 106 L400 160 L0 160Z' fill='%23c2e0c9' opacity='.34'/%3E%3Cpath d='M0 138 Q60 106 130 132 Q200 98 270 128 Q340 102 400 134 L400 160 L0 160Z' fill='%23a8d3b6' opacity='.30'/%3E%3C/svg%3E") no-repeat center top / 100% 210px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='none' stroke='%237db793' stroke-opacity='.20' stroke-width='1.4'%3E%3Cpath d='M0 34 Q37 24 75 34 T150 34'/%3E%3Cpath d='M0 112 Q37 102 75 112 T150 112'/%3E%3C/g%3E%3Cpath d='M22 80 C22 65 35 58 48 61 C46 76 35 82 22 80Z' fill='%2397cba8' fill-opacity='.22'/%3E%3Cpath d='M100 20 C100 9 111 3 122 6 C120 19 111 23 100 20Z' fill='%2397cba8' fill-opacity='.19'/%3E%3C/svg%3E") repeat center top / 150px 150px,
    linear-gradient(180deg,#e8f5ea 0%,#dff0e5 52%,#eef8ed 100%);
  background:var(--hh-home-bg);
  position:relative;
}
html.app-shell.hh-f-bg-sky .content.hh-home{--hh-home-bg:
  radial-gradient(115% 38% at 50% -6%,rgba(255,255,255,.92),rgba(255,255,255,0) 70%),
  linear-gradient(180deg,#e9f5ff 0%,#dceffc 55%,#f3faff 100%);}
html.app-shell.hh-f-bg-sand .content.hh-home{--hh-home-bg:
  radial-gradient(115% 38% at 50% -6%,rgba(255,255,255,.90),rgba(255,255,255,0) 70%),
  linear-gradient(180deg,#fdf5e4 0%,#f8ecd2 55%,#fff9ec 100%);}
html.app-shell.hh-f-bg-ink .content.hh-home{--hh-home-bg:
  radial-gradient(115% 38% at 50% -6%,rgba(255,255,255,.80),rgba(255,255,255,0) 70%),
  linear-gradient(180deg,#eef3f1 0%,#dfe9e6 55%,#f2f7f5 100%);}
html.app-shell.hh-f-bg-white .content.hh-home{--hh-home-bg:#fff;}
html.app-shell.hh-b-bg-green .content.hh-my-page{background:linear-gradient(180deg,#eaf6ec 0%,#f4fbf6 60%,#f8fcf9 100%);}
html.app-shell.hh-b-bg-sky .content.hh-my-page{background:linear-gradient(180deg,#e9f5ff 0%,#f3faff 65%,#fff 100%);}
html.app-shell.hh-b-bg-sand .content.hh-my-page{background:linear-gradient(180deg,#fdf5e4 0%,#fff9ec 65%,#fff 100%);}
html.app-shell.hh-b-bg-ink .content.hh-my-page{background:linear-gradient(180deg,#eef3f1 0%,#f4f8f6 65%,#fff 100%);}
html.app-shell.hh-b-bg-white .content.hh-my-page{background:#fff;}

/* ---- ⑦ 天气卡 / ⑧ 点按动效 ---- */
html.app-shell.hh-no-weather .hh-home .hh-weather{display:none!important;}
html.app-shell.hh-f-anim-off .hh-home .pub-ico,
html.app-shell.hh-f-anim-off .hh-home .hh-tab,
html.app-shell.hh-b-anim-off .hh-my-page .pub-ico,
html.app-shell.hh-b-anim-off .hh-my-page .g-cell{transition:none!important;animation:none!important;}

/* ---- ⑨ 卡片质感 ---- */
html.app-shell.hh-f-card-solid .hh-home .hh-weather,
html.app-shell.hh-f-card-solid .hh-home .hh-ad,
html.app-shell.hh-f-card-solid .hh-home .hh-homefoot .card,
html.app-shell.hh-f-card-solid .hh-home .hh-sitefoot{background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
html.app-shell.hh-b-card-solid .hh-my-page .card:not(.mc-id):not(.id-card):not(.mgr-card){background:#fff!important;}

/* ---- ⑩ 底部导航（按当前页选用前台/后台那一套配置） ---- */
html.app-shell.hh-page-front.hh-f-tab-white .hh-tabbar,
html.app-shell.hh-page-back.hh-b-tab-white .hh-tabbar{background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-top-color:#e3ebe6!important;}
html.app-shell.hh-page-front.hh-f-tab-dark .hh-tabbar,
html.app-shell.hh-page-back.hh-b-tab-dark .hh-tabbar{background:rgba(20,52,36,.94)!important;border-top-color:rgba(255,255,255,.14)!important;}
html.app-shell.hh-page-front.hh-f-tab-dark .hh-tab,
html.app-shell.hh-page-back.hh-b-tab-dark .hh-tab{color:rgba(255,255,255,.60);}
html.app-shell.hh-page-front.hh-f-tab-dark .hh-tab.active,
html.app-shell.hh-page-back.hh-b-tab-dark .hh-tab.active{color:#8fe0ac;}

/* ===== 在线状态：绿=在线 / 灰=离线（聊天顶栏 / 找人 / 对话列表 统一一套） ===== */
.hh-chat-who-av, .us-av, .ms-avwrap{ position:relative; }
.hh-ondot, .us-ondot, .ms-ondot{
  position:absolute; right:-2px; bottom:-2px;
  width:11px; height:11px; border-radius:50%;
  border:2px solid #fff; box-sizing:border-box; z-index:2;
  pointer-events:none;
}
.hh-ondot.on, .us-ondot.on, .ms-ondot.on{ background:#1fae5a; }
.hh-ondot.off, .us-ondot.off, .ms-ondot.off{ background:#b9c4be; }

/* 互关标识 */
.hh-mutual-badge, .ms-mutual{
  display:inline-block; margin-left:6px; padding:1px 7px; border-radius:99px;
  font-size:11px; font-weight:700; color:#1f8a4c; background:#e6f5ec; vertical-align:middle;
}
.hh-mutual-badge{ font-size:10.5px; }

/* ===== 聊天室广告位（可关闭） ===== */
.hh-chat-ad{
  display:flex; align-items:center; gap:8px; position:relative;
  margin:8px 10px 0; padding:8px 30px 8px 10px; border-radius:12px;
  background:linear-gradient(135deg,#eef6f1,#e3f0ea); border:1px solid #d6e7dd;
}
.hh-chat-ad-i{ display:flex; align-items:center; gap:8px; text-decoration:none; color:#2c4a3a; flex:1; min-width:0; }
.hh-chat-ad-i img{ width:34px; height:34px; border-radius:8px; object-fit:cover; flex:0 0 auto; }
.hh-chat-ad-tx{ font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hh-chat-ad-x{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:22px; height:22px; border:0; border-radius:50%; background:rgba(0,0,0,.08);
  color:#5b6f62; font-size:13px; cursor:pointer; line-height:22px; text-align:center;
}
.hh-chat-ad-x:active{ background:rgba(0,0,0,.16); }

/* ===== 稿件来源图标：在线白色 / 离线灰色，点击直接关注 ===== */
.ha-src-ico{ display:inline-flex; vertical-align:-5px; margin-right:2px; cursor:pointer; border-radius:50%; }
.ha-src-ico img{ border-color:#e2ece6; transition:filter .2s,opacity .2s; }
.ha-src-ico.on img{ border-color:#fff; box-shadow:0 0 0 1.5px rgba(31,138,76,.55); }
.ha-src-ico.off img{ filter:grayscale(1); opacity:.6; }
.ha-src-letter{ background:#cdd9d2; color:#3f6b51; border:0; }

/* ===== 在线时长积分星星 + 真实姓名证件照 ===== */
.hh-star{ display:inline-block; margin-left:3px; font-size:12px; line-height:1; vertical-align:middle; color:#f4b400; letter-spacing:-1px; }
.hh-star-0{ color:#b9c4be; filter:grayscale(1); opacity:.85; }
.hh-star-lv{ font-size:9px; color:#9aa7a0; margin-left:2px; font-style:normal; }

/* ===== 随拍相机按钮 + 预览（接入五个上传流程） ===== */
.hh-cam-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:4px;
  margin:6px 0; padding:7px 12px; border:1px solid #d6e7dd; border-radius:20px;
  background:#f3faf5; color:#1f8a4c; font-size:13px; font-weight:600; cursor:pointer;
}
.hh-cam-btn:active{ background:#e3f0ea; }
.hh-file-native{ display:inline-block; margin:6px 0; font-size:13px; color:#2c4a3a; }
.hh-cam-prev{ position:relative; display:inline-block; margin:6px 8px 0 0; vertical-align:top; }
.hh-cam-prev-img{ display:block; width:72px; height:72px; border-radius:10px; object-fit:cover; border:1px solid #e0e8e3; }
.hh-cam-prev-x{
  position:absolute; right:-6px; top:-6px; width:20px; height:20px; border:0; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff; font-size:12px; line-height:20px; text-align:center; cursor:pointer; padding:0;
}

/* ============ 全站头像徽章 + 在线标签（badges.js 注入，2026-11-08） ============ */
.hh-vip-b{ position:absolute; top:2px; right:2px; z-index:3; background:linear-gradient(135deg,#f6b91a,#e8920a);
  color:#3a2a00; font-size:9px; font-weight:800; line-height:1; padding:2px 4px; border-radius:8px;
  box-shadow:0 1px 2px rgba(0,0,0,.25); pointer-events:none; white-space:nowrap; }
.hh-star-b{ position:absolute; left:2px; bottom:2px; z-index:3; background:rgba(0,0,0,.45); color:#ffd54a;
  font-size:9px; line-height:1; padding:1px 3px; border-radius:8px; pointer-events:none; white-space:nowrap; }
.hh-oline{ display:inline-block; font-size:11px; line-height:1; padding:2px 6px; border-radius:9px;
  font-weight:600; white-space:nowrap; vertical-align:middle; }
.hh-oline.on{ background:rgba(31,138,76,.12); color:#1f8a4c; border:1px solid rgba(31,138,76,.35); }
.hh-oline.off{ background:rgba(0,0,0,.05); color:#9aa8a0; border:1px solid rgba(0,0,0,.08); }

/* ===== App 字号友好（2026-11-09）：正文 / 评论 / 列表整体放大，方便眼睛不好的朋友看清 ===== */
.app-shell body{ font-size: 16px; }
.app-shell .ad-body{ font-size: 17px !important; line-height: 1.78 !important; }
.app-shell .ad-body p{ font-size: 17px; }
.app-shell .tynr p, .app-shell .cgcont p{ font-size: 17.5px !important; line-height: 1.85 !important; }
.app-shell .tynr, .app-shell .cgcont{ font-size: 16.5px; line-height: 1.8; }
.app-shell .hh-cmt-text{ font-size: 16px !important; line-height: 1.75 !important; }
.app-shell .hh-cmt-meta{ font-size: 12.5px !important; }
.app-shell .fclist .fcl-title{ font-size: 18px; }
.app-shell .fclist .fcl-desc{ font-size: 16px; }
.app-shell .hab-title{ font-size: 16px; }
.app-shell .contentcrtbbb{ font-size: 17.5px; }
.app-shell .scene-bar .sb-txt{ font-size: 18px; }

/* ===== 战略合作单位（首页/捐赠页/部门投稿页 复用；图标墙与 App 九宫格同尺寸同风格，无绿框） ===== */
.hh-partner{ margin:14px 0 4px; padding:14px 12px 16px; background:transparent;
  border:1px solid rgba(0,0,0,.08); border-radius:16px; box-shadow:none; }
.hh-partner .hp-head{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:4px; margin-bottom:12px; }
.hh-partner .hp-titles{ display:flex; flex-direction:column; align-items:center; text-align:center; line-height:1.3; }
.hh-partner .hp-titles b{ font-size:15px; font-weight:800; color:#7c8794; letter-spacing:.5px; }
.hh-partner .hp-titles span{ font-size:11px; color:#a4adb8; }

/* 图标墙：与首页九宫格（pub-grid）同尺寸同风格 —— 一排 4 个、方形圆角无绿框、浅色立体 */
.hh-partner .hp-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; max-width:440px; margin:4px auto 0; }
.hh-partner .hp-cell{ text-decoration:none; display:flex; flex-direction:column; align-items:center; gap:7px;
  transition:transform .15s ease; }
.hh-partner a.hp-cell:active{ transform:scale(.96); }
/* 图标本体：浅色圆角方块 + 轻立体（顶部高光 + 底部阴影） + logo 居中，与 App 九宫格方形按钮同款（无绿框） */
.hh-partner .hp-logo{ width:100%; aspect-ratio:1/1; border-radius:15px; position:relative;
  background:transparent;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  box-shadow:0 6px 14px rgba(20,40,60,.14); }
.hh-partner .hp-logo img{ width:80%; height:80%; object-fit:contain; mix-blend-mode:multiply; }
.hh-partner .hp-logo--ph{ color:#aeb9c4; font-size:24px; font-weight:800; }
.hh-partner .hp-name{ font-size:12.5px; font-weight:700; color:#22303c; text-align:center; line-height:1.3;
  max-width:100%; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ===== PC 端（section 带 .hp-pc 类，由 PHP isMobile() 判定，与移动端 .hp-mobile 区分）：
   战略合作单位改「单列纵向列表」，移动端 (.hp-mobile) 不受影响，仍走网格横排 =====
   每个合作单位 = 一行（小 logo 居左 + 名称居右），整列居中；
   数量随后台 hh_sysset.partner_show（默认全部，当前 10 家）。
   用 !important 覆盖基础网格样式，仅在 PC（.hp-pc）生效。 */
.hh-partner.hp-pc{ max-width:860px; margin:20px auto 8px; }
.hh-partner.hp-pc .hp-head{ margin-bottom:14px; }
.hh-partner.hp-pc .hp-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  max-width:480px !important;
  margin:6px auto 0 !important;
  gap:9px !important;
}
.hh-partner.hp-pc .hp-cell{
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  text-align:left !important;
  padding:9px 12px !important;
  background:#ffffff !important;
  border:1px solid rgba(0,0,0,.07) !important;
  border-radius:12px !important;
  box-shadow:0 1px 4px rgba(40,70,55,.05) !important;
}
.hh-partner.hp-pc a.hp-cell:active{ transform:scale(.99) !important; }
.hh-partner.hp-pc .hp-logo{
  width:44px !important;
  flex:0 0 44px !important;
  aspect-ratio:1/1 !important;
  border-radius:10px !important;
  box-shadow:0 2px 6px rgba(20,40,60,.12) !important;
}
.hh-partner.hp-pc .hp-logo img{ width:78% !important; height:78% !important; }
.hh-partner.hp-pc .hp-logo--ph{ font-size:18px !important; }
.hh-partner.hp-pc .hp-name{ font-size:13.5px !important; text-align:left !important; line-height:1.35 !important; }

/* ===== 公益商城（大家发布）首页横滑商品卡 ===== */
.hh-market{ margin:14px 0 4px; padding:14px 12px 16px; background:rgba(255,255,255,.9);
  border:1px solid rgba(168,210,181,.32); border-radius:16px; box-shadow:0 3px 14px rgba(40,95,58,.07); }
.hh-market .hmk-head{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.hh-market .hmk-ico{ font-size:18px; width:34px; height:34px; border-radius:10px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#6b52b5,#9b7ee0); }
.hh-market .hmk-titles{ display:flex; flex-direction:column; line-height:1.25; flex:1; min-width:0; }
.hh-market .hmk-titles b{ font-size:15px; font-weight:800; color:#4a3a7a; letter-spacing:.5px; }
.hh-market .hmk-titles span{ font-size:11px; color:#9b91b8; }
.hh-market .hmk-more{ flex:0 0 auto; font-size:12.5px; font-weight:700; color:#6b52b5; text-decoration:none; }
.hh-market .hmk-row{ display:flex; gap:10px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.hh-market .hmk-card{ flex:0 0 150px; width:150px; background:#fff; border:1px solid #ece8f5; border-radius:12px;
  overflow:hidden; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease; }
.hh-market a.hmk-card:active{ transform:translateY(1px); }
.hh-market a.hmk-card:hover{ box-shadow:0 6px 16px rgba(107,82,181,.18); }
.hh-market .hmk-im{ width:100%; aspect-ratio:1/1; background:#f4f2fa; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hh-market .hmk-im img{ width:100%; height:100%; object-fit:cover; }
.hh-market .hmk-ph{ font-size:30px; }
.hh-market .hmk-bd{ padding:8px 9px 10px; }
.hh-market .hmk-t{ font-size:13px; font-weight:700; color:#26445c; line-height:1.4; display:-webkit-box;
  -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hh-market .hmk-kd{ font-size:10px; font-weight:700; border-radius:7px; padding:1px 5px; margin-right:3px; vertical-align:1px; }
.hh-market .hmk-kd.p{ background:#e8f0fb; color:#2c6fb5; }
.hh-market .hmk-kd.s{ background:#f2eefb; color:#6b52b5; }
.hh-market .hmk-c{ font-size:14px; font-weight:800; color:#b06a12; margin-top:5px; }
.hh-market .hmk-c i{ font-style:normal; font-size:11px; }
.hh-market .hmk-row::-webkit-scrollbar{ height:6px; }
.hh-market .hmk-row::-webkit-scrollbar-thumb{ background:rgba(107,82,181,.3); border-radius:4px; }

/* ===== 2026-11-16：升级提示 / 安装条 / 新手指南已恢复（九修、十修系误诊删除）=====
   本段旧「完全隐藏」防御规则随之撤销；后台管理面板兜底（hhAdminSheet）保留。 */

/* ===== 2026-11-15：后台管理就地面板残留兜底（旧 Service Worker 缓存）=====
   面板已从 member_center.php 物理删除；若旧缓存仍带回节点，一律不显示。 */
#hhAdminSheet, .hh-adm-mask, .hh-adm-drawer, .hh-adm-bar, .hh-adm-frame { display: none !important; }

/* ===== 2026-11-15 十三修：左上角白框 × 纵深防御 =====
   App 壳内不显示网页端浮动返回按钮；被几何扫描器标记的节点一律隐藏；
   接缝底色兜底（只填缝隙，不新增可见绿、不向上溢出）。 */
.app-shell #hhPubFloatBack { display: none !important; }
[data-hh-leftbox] { display: none !important; }
/* 2026-11-18：接缝兜底同步改浅色，与顶部规则一致，根治切页瞬间露深绿块 */
html.app-shell body { background: var(--bg); }

/* ===== 2026-11-15 十五修：源头清理（撤遮罩 + 弹层残留兜底） =====
   十四修的 #hhLeftPatch 绿遮罩在顶栏创建前按默认 72px 生成且不再更新，
   凸出到顶栏下方浅灰横带 = 用户 11-15 10:01 截图的「错位」绿块，已物理删除；
   这里再兜住旧 Service Worker 缓存可能带回的节点。
   #hhPopMask 是 PC 工具条弹层（!isApp() 已排除），其关闭按钮 hhPopClose 退化后
   就是左上角「框+✘」；App 壳内一律不显示。广告条 .app-topx 关闭叉按用户要求去掉。 */
#hhLeftPatch { display: none !important; }
.app-shell #hhPopMask, .app-shell .hh-pop-x { display: none !important; }
.app-shell .hh-topx, .app-shell .app-topx { display: none !important; }
.app-shell .hh-topx::before, .app-shell .app-topx::before { content: none !important; }

/* ===== 2026-11-21：重复壳（页头/页脚各两套）渲染层根治 =====
   旧缓存 layout / 脚本重挂会让 body 里出现第二套 .app-topbar / .hh-tabbar，
   软导航后 DOM 里同时存在"首页态 + 内容页态"两套壳，视觉上顶栏、底栏各叠两份。
   这里在 CSS 层直接隐藏"同层第二个及以后"的壳，以及误入 .content 内的壳
   （正常壳在 .content 之外，content 内出现即异常）。不依赖任何 JS 是否执行，
   即使旧版内联 dedupe 脚本失效，也能保证屏幕上永远只显示一套。
   正常情况 body 里各只有一套，本规则不命中，零副作用。 */
.app-shell .app-topbar ~ .app-topbar,
.app-shell .hh-tabbar ~ .hh-tabbar,
.app-shell .content .app-topbar,
.app-shell .content .hh-tabbar,
.app-shell .pub-act-pane .app-topbar,
.app-shell .pub-act-pane .hh-tabbar { display: none !important; }

/* ---------- 2026-11-21：栏目列表「上滑加载更多」哨兵 ---------- */
#hhListMore{ text-align:center; padding:14px 0 4px; font-size:13px; color:#8a9a90; }
#hhListMore .hh-lm-tip{ display:inline-block; padding:4px 16px; border-radius:14px; background:#f2f7f3; color:#7d938a; }
#hhListMore.hh-lm-on .hh-lm-tip{ color:#1f8a4c; background:#eaf7ef; }
