/* 页面样式：home.css（拆分自原 style.css） */
  /* 关掉 Android/Chrome 的字体自动放大：否则窄卡片里的字号会被偷偷放大，两行装不下 */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  /* ===== 顶部：头像 / 搜索 / 地域 ===== */
  .header { display: flex; align-items: center; gap: 0; padding: 12px 14px 10px; }
  .avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; margin-left: 10px;
    background: #e6f6f7; border: 1px solid #cdecee; cursor: pointer; overflow: hidden; padding: 0;
    display: flex; align-items: center; justify-content: center; color:  var(--brand-deep, #0b6b74);
  }
  .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
  .avatar svg { width: 19px; height: 19px; }
  .search {
    flex: 1; display: flex; align-items: center; gap: 6px;
    background: #f2f4f5; border: 1px solid transparent; border-radius: 18px;
    padding: 8px 12px; min-width: 0; transition: border-color .15s, background .15s;
  }
  .search:focus-within { background: #fff; border-color: #14b8c4; }
  .search svg { flex-shrink: 0; color:  var(--t4, #8a9299); }
  .search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: var(--fs14, 14px); color:  var(--t1, #1f2329); font-family: inherit;
  }
  .search input::placeholder { color:  var(--t4, #8a9299); }
  .city {
    display: flex; align-items: center; gap: 4px; flex-shrink: 0;
    font-size: var(--fs14, 14px); font-weight: 600; color: #fff;
    background: #14b8c4; border: 0; border-radius: 999px;
    padding: 6px 11px; cursor: pointer; font-family: inherit;
    max-width: 138px; letter-spacing: -.2px; margin-right: 10px;
  }
  .city svg { flex-shrink: 0; color: #fff; }
  .city .caret { color: rgba(255,255,255,.82); }
  /* 附近：与城市同一行，选中态用下划线，不做胶囊，避免和城市抢视觉 */
  .near {
    flex-shrink: 0; border: 0; background: transparent; cursor: pointer;
    font-family: inherit; font-size: var(--fs15, 15px); font-weight: 600; color:  var(--t2, #4e5969);
    padding: 6px 2px 5px; border-bottom: 2px solid transparent;
  }
  .near:active { color:  var(--brand, #14b8c4); }
  .near.on { color:  var(--brand, #14b8c4); border-bottom-color: #14b8c4; }
  .hspacer { flex: 1; min-width: 4px; }
  /* 顶部图标按钮：搜索 / 消息共用 */
  .hicon {
    width: 36px; height: 36px; flex-shrink: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: transparent; color:  var(--t2, #4e5969);
    cursor: pointer; font-family: inherit;
  }
  .hicon:active { background: #f2f4f5; }

  /* 消息入口：地域胶囊右侧，未读数字压在图标右上角 */
  .msg {
    position: relative; width: 36px; height: 36px; flex-shrink: 0; padding: 0; margin-left: 4px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: transparent; color:  var(--t2, #4e5969);
    font-family: inherit; cursor: pointer;
  }
  .msg:active { background: #f2f4f5; }
  .msg-badge {
    position: absolute; top: -3px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: #f5453d; color: #fff; font-size: var(--fs11, 11px); font-weight: 600;
    line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff;
  }
  .city #cityName {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 96px;
  }
  .city:active { background: #0ea2ad; }

  /* ===== 滚动信息流 ===== */
  .feedwrap { flex: 1; position: relative; min-height: 0; display: flex; flex-direction: column; }
  .feed { flex: 1; min-height: 0; position: relative; overflow-y: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid #eef1f3; }
  /* 恢复滚动位置期间先隐藏列表（仍占布局，scrollTop 可设），定位好再露出 */
  .feed.restoring { visibility: hidden; }

  /* ===== 下拉刷新指示 =====
     占位在信息流上方，高度等于下拉量（CSS 变量 --pull，由 home.js 动态设置），
     内容整体被顶下去，不会盖住首条卡片 */
  .ptr {
    flex: 0 0 auto; height: var(--pull, 0px); min-height: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    color:  var(--t4, #8a9299); font-size: var(--fs12, 12px); pointer-events: none;
    transition: height .2s ease;
  }
  .ptr.pulling { transition: none; }
  .ptr.ready, .ptr.loading, .ptr.done { color:  var(--brand-deep, #0b6b74); }
  .ptr-icon { display: inline-flex; width: 14px; height: 14px; }
  .ptr.ready .ptr-icon svg { transform: rotate(180deg); }
  .ptr.loading .ptr-icon svg { animation: ptrSpin .9s linear infinite; }
  @keyframes ptrSpin { to { transform: rotate(360deg); } }
  .card {
    background: #fff; border-bottom: 1px solid #eef1f3; padding: 12px 14px 10px;
    cursor: pointer; user-select: none;
  }
  .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
  .tag {
    font-size: var(--fs12, 12px); font-weight: 500; color:  var(--t3, #646a73); background: #f2f5f7;
    border-radius: 999px; padding: 3px 10px; flex-shrink: 0;
  }
  /* 与 base.css 同值：分类=白底描边，话题=浅灰实底 */
  .tag.on {
    color:  var(--t2, #4e5969); background: #fff; font-weight: 500;
    box-shadow: inset 0 0 0 1px #dfe4e8;
  }
  .tag-row { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
  .where { font-size: var(--fs12, 12px); color:  var(--t4, #8a9299); flex-shrink: 0; }

  /* 卡底行（头像 / 名字 / 地区 / 留言）：统一字号与行高，用颜色分主次，不用字号拉层级。
     min-height 保持 24，卡高不因这行变化。 */
  .card .meta {
    gap: 8px; min-height: 24px;
    font-size: var(--fs12, 12px); line-height: 18px; color:  var(--t4, #8a9299);
  }
  .card .meta .author {
    display: inline-flex; align-items: center; gap: 5px;
    color:  var(--t2, #4e5969); min-width: 0; flex-shrink: 1;
  }
  .card .meta .aname {
    font-size: var(--fs12, 12px); line-height: 18px; font-weight: 500; font-style: normal;
    max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .card .meta .ca-av {
    cursor: pointer;
    width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
    background: #e6f6f7; color:  var(--brand-deep, #0b6b74); overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .card .meta .ca-av.has-img { background: #eef1f3; }
  .card .meta .ca-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .card .meta .ca-av-letter { font-size: var(--fs11, 11px); font-weight: 600; letter-spacing: .3px; }
  .card .meta .cmt,
  .card .meta .region { font-size: var(--fs12, 12px); line-height: 18px; color:  var(--t4, #8a9299); flex-shrink: 0; }
  .card .meta .region { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card .meta .hide { display: none; }
  .title { display: block; margin-bottom: 8px; }
  /* 有标题：标题一行加粗 + 正文一行；没标题（.nt）：正文回到原来的两行加粗 */
  .title .t-h {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    font-size: var(--fs16, 16px); font-weight: 700; color:  var(--t1, #1f2329); line-height: 1.4;
  }
  .title .t-b {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    font-size: var(--fs14, 14px); font-weight: 400; color:  var(--t3, #646a73); line-height: 1.4;
  }
  .title.nt .t-h { display: none; }
  .title.nt .t-b { -webkit-line-clamp: 2; font-size: var(--fs16, 16px); font-weight: 600; color:  var(--t1, #1f2329); }

  /* ===== 统一媒体：尺寸只写在这里，JS 只出类名 =====
     一张：右侧 88×88 方缩略，居中裁方
     两张横图：标题下并排，每格等分 347 宽
     三张及以上：标题下三宫格，带高统一 112 */
  .card .cbody { gap: 10px; }
  .card .m-thumb {
    position: relative; flex: 0 0 auto; width: 88px; height: 88px;
    border-radius: 8px; overflow: hidden; background: #f2f4f5;
  }
  .card .m-thumb img, .card .m-thumb video {
    width: 100%; height: 100%; object-fit: cover; display: block; background: #f2f4f5;
  }
  .card .m-band { display: flex; gap: 6px; height: 112px; margin: 0 0 8px; }
  .card .m-band .m-cell {
    position: relative; flex: 1 1 0; min-width: 0;
    border-radius: 8px; overflow: hidden; background: #f2f4f5;
  }
  .card .m-band .m-cell img, .card .m-band .m-cell video {
    width: 100%; height: 100%; object-fit: cover; display: block; background: #f2f4f5;
  }
  /* 小图上的播放键 / 时长 / 角标：尺寸比详情页再收一档，保证 88 宽里不糊 */
  .card .m-thumb .play, .card .m-band .m-cell .play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    display: flex; align-items: center; justify-content: center; color: #fff;
  }
  .card .m-thumb .play svg, .card .m-band .m-cell .play svg {
    width: 10px; height: 10px; fill: #fff; color: #fff;
  }
  .card .m-thumb .dur, .card .m-band .m-cell .dur {
    position: absolute; right: 4px; bottom: 4px; font-size: var(--fs10, 10px); line-height: 1.4;
    color: #fff; background: rgba(0, 0, 0, .62); border-radius: 4px; padding: 1px 4px;
  }
  .card .m-thumb .badge, .card .m-band .m-cell .badge {
    position: absolute; right: 4px; bottom: 4px; font-size: var(--fs10, 10px); font-weight: 600;
    line-height: 1.3; color: #fff; background: rgba(0, 0, 0, .62); border-radius: 4px; padding: 1px 5px;
  }

  /* ===== 悬浮发布按钮 ===== */
  .fab {
    position: absolute; right: 18px; bottom: 26px; z-index: 5;
    width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
    background: #14b8c4; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(14, 154, 166, .38);
    transition: transform .12s, background .15s;
  }
  .fab:active { transform: scale(.94); background: #0e9aa6; }
  .fab svg { width: 26px; height: 26px; }


  /* ===== 地区选择弹层 ===== */
  .region-mask {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .32);
    opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 240;
  }
  .region-mask.on { opacity: 1; pointer-events: auto; }
  .region-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 241;
    background: #fff; border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .12);
    transform: translateY(104%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
    display: flex; flex-direction: column; max-height: 72%;
  }
  .region-sheet.on { transform: translateY(0); }
  .rs-grab {
    width: 38px; height: 4px; border-radius: 2px; background: #e2e6ea;
    margin: 8px auto 0; flex-shrink: 0;
  }
  .rs-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 4px; }
  .rs-title { font-size: var(--fs15, 15px); font-weight: 600; color:  var(--t1, #1f2329); }
  .rs-close {
    width: 30px; height: 30px; border: 0; background: transparent; color:  var(--t4, #8a9299);
    display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer;
  }
  .rs-hint { font-size: var(--fs12, 12px); color:  var(--t4, #8a9299); padding: 0 18px 8px; line-height: 1.5; }
  .rs-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    padding: 0 18px 8px; font-size: var(--fs13, 13px); color:  var(--t3, #646a73); border-bottom: 1px solid #f2f4f5;
  }
  .rs-crumb button { border: 0; background: transparent; color:  var(--brand-deep, #0b6b74); font-size: var(--fs13, 13px); padding: 2px 0; cursor: pointer; }
  .rs-crumb button.on { color:  var(--t1, #1f2329); font-weight: 600; }
  .rs-crumb span.sep { color:  var(--line, #eef1f3); }
  .rs-list {
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 0 calc(14px + env(safe-area-inset-bottom));
  }
  .rs-item {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    border: 0; background: transparent; text-align: left; cursor: pointer;
    padding: 13px 18px; font-size: var(--fs14, 14px); color:  var(--t1, #1f2329);
    border-bottom: 1px solid #f7f8f9;
  }
  .rs-item:active { background: #f4fafb; }
  .rs-item.on { color:  var(--brand-deep, #0b6b74); font-weight: 600; }
  .rs-item small { font-size: var(--fs12, 12px); color:  var(--t4, #8a9299); font-weight: 400; }
  .rs-item .rs-tick { color:  var(--brand, #14b8c4); }

  /* 面板头部两枚胶囊：上面是「已经切到哪」，下面是「定位在哪」，点一下回定位地区 */
  .rs-locwrap { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 10px; }
  .loc-pill {
    display: flex; align-items: center; gap: 6px; width: 100%;
    padding: 9px 12px; border: 1px solid #cfe9ec; border-radius: 10px;
    background: #f4fbfc; color: var(--brand-deep, #0b6b74);
    font-size: var(--fs13, 13px); font-weight: 600; font-family: inherit; text-align: left;
  }
  .loc-pill > svg { flex-shrink: 0; color: var(--brand, #14b8c4); }
  .loc-pill .lab { flex-shrink: 0; font-size: var(--fs12, 12px); font-weight: 400; color: var(--t4, #8a9299); }
  .loc-pill .val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .loc-pill.sel { border-color: #a8dfe3; background: #e8f8fa; }
  .loc-pill .arr { margin-left: auto; flex-shrink: 0; font-size: var(--fs12, 12px); font-weight: 500; white-space: nowrap; }
  .loc-pill.home-solid { background: var(--brand, #14b8c4); border-color: var(--brand, #14b8c4); cursor: pointer; }
  .loc-pill.home-solid .lab, .loc-pill.home-solid .val, .loc-pill.home-solid svg, .loc-pill.home-solid .arr { color: #fff; }
  .loc-pill.home-solid:active { filter: brightness(.96); }
  .empty span { display: block; margin-top: 6px; font-size: var(--fs12, 12px); color:  var(--t6, #c3cad0); }

  /* IP 定位纠偏条 */
  .reg-hint {
    display: none; align-items: center; gap: 8px;
    padding: 7px 14px; background: #fff9ec; border-bottom: 1px solid #fdf0d5;
    font-size: var(--fs12, 12px); color:  var(--gold, #a06a12);
  }
  .reg-hint.on { display: flex; }
  .rh-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rh-btn {
    flex-shrink: 0; border: 0; background: transparent; color:  var(--brand-deep, #0b6b74);
    font-size: var(--fs12, 12px); font-weight: 600; padding: 2px 4px; cursor: pointer; font-family: inherit;
    text-decoration: underline; text-underline-offset: 3px;
  }

  .rs-locate {
    display: flex; align-items: center; gap: 6px; margin: 0 18px 10px;
    padding: 9px 12px; border: 1px solid #cfe9ec; border-radius: 10px;
    background: #f4fbfc; color:  var(--brand-deep, #0b6b74); font-size: var(--fs13, 13px); font-weight: 600;
    font-family: inherit; cursor: pointer; width: calc(100% - 36px);
  }
  .rs-locate:active { background: #e6f6f7; }

  /* 发布时间：信息不再有到期概念，统一中性灰，不再按剩余时长变色 */
  .pubtime { white-space: nowrap; color:  var(--t4, #8a9299); }

  /* 详情页标签行：标签在左、发布时间贴右，与首页卡片一致 */
  .d-tagline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .d-tagline .tag-row { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
  .d-tagline .pubtime { flex: 0 0 auto; font-size: var(--fs12, 12px); }


  /* ===== 两个总分类：便民信息 / 同城趣聊（视觉极轻，一屏对半分） =====
     只占 28px 高、13px 字、无底色无下划线；选中靠字色 + 字重区分，
     视觉分量明显低于头部实青胶囊。左右按钮各 flex:1，点击热区严格对半分。 */
  .toptabs {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    flex-shrink: 0; padding: 0 16px;
    height: 34px; max-height: 34px; background: #fff; overflow: hidden;
    transition: max-height .22s ease, opacity .18s ease;
  }
  .toptabs.hide { max-height: 0; opacity: 0; pointer-events: none; }
  /* 左对齐、字号分级：选中 17px 深色加粗，未选 13px 浅灰；
     两者之间一根 12px 高的浅灰细竖线，不做底色、不做下划线 */
  .ttab {
    flex: 0 0 auto; height: 34px; padding: 0;
    border: 0; background: transparent; font-family: inherit;
    font-size: var(--fs14, 14px); font-weight: 400; color:  var(--t3, #646a73); line-height: 34px;
    cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
    transition: font-size .16s ease, color .16s ease;
  }
  .ttab.on { font-size: var(--fs17, 17px); font-weight: 500; color:  var(--t1, #1f2329); letter-spacing: -.2px; }
  .ttab:active { color:  var(--t1, #1f2329); }
  .tdiv { flex: 0 0 auto; width: 1px; height: 12px; background: #e5e8ea; }

  /* ===== 二级标签栏：全部 + 10 个分类，可左右滑动 =====
     比总分类再轻一档：浅灰底、无边框、字号 14，选中只换字色和淡青底。
     滚动条隐藏（移动端本来也不显示），横滑交给浏览器原生惯性。 */
  .subbar {
    flex-shrink: 0; background: #fff; overflow: hidden;
    /* 下沿留 8px：标签栏与首条卡片之间原来是 1px 分隔线，太挤 */
    padding-bottom: 8px;
    max-height: 44px; transition: max-height .22s ease, opacity .18s ease;
  }
  .subbar.hide { max-height: 0; padding-bottom: 0; opacity: 0; pointer-events: none; }
  .subscroll {
    display: flex; align-items: center; gap: var(--subgap, 16px);
    padding: 2px 16px 0; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none;
  }
  .subscroll::-webkit-scrollbar { display: none; }
  /* 右/左边缘渐隐：右侧还有标签时把出口 14px 淡掉，
     提示「后面还有」，且不会像箭头那样被当成按钮；
     用 mask 而不是覆盖层，避免挡住 chip 的点击 */
  .subscroll.fade-r {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 8px), transparent 100%);
            mask-image: linear-gradient(to right, #000 calc(100% - 8px), transparent 100%);
  }
  .subscroll.fade-l {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px);
            mask-image: linear-gradient(to right, transparent 0, #000 8px);
  }
  .subscroll.fade-l.fade-r {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  }
  /* 二级：纯文字、无底色无边框；选中只换字色并加一条与字同宽的 2px 青线 */
  .schip {
    position: relative; flex: 0 0 auto; height: 32px; padding: 0;
    border: 0; background: transparent; color:  var(--t3, #646a73);
    font-family: inherit; font-size: var(--fs14, 14px); font-weight: 400; line-height: 32px;
    white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color .16s ease;
  }
  /* 上划收起、只剩标签栏时（.solo）：字色加深一档，
     否则没有上排深色字压着，浅灰会显得发虚 */
  .subbar.solo .schip { color:  var(--t2, #4e5969); }
  .subbar.solo .schip.on { color:  var(--brand-deep, #0b6b74); }
  .schip.on { color:  var(--brand-deep, #0b6b74); font-weight: 500; }
  .schip.on::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 3px;
    height: 2px; border-radius: 1px; background: #14b8c4;
  }

  /* ===== 范围说明条：本地无内容、兜到更大范围时出现，避免误以为是本地信息 ===== */
  .scope-bar {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    padding: 7px 14px; background: #fff8ec; border-bottom: 1px solid #f4e7cf;
    transition: opacity .18s ease;
  }
  .scope-bar[hidden] { display: none; }
  .scope-bar.fade { opacity: 0; }
  .sb-text { flex: 1; min-width: 0; text-align: center; font-size: var(--fs12, 12px); line-height: 17px; color:  var(--gold, #a06a12); }

  /* ===== 更多：标签选择弹层 ===== */
  .cs-mask {
    position: absolute; inset: 0; background: rgba(15,23,28,.45);
    opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 120;
  }
  .cs-mask.on { opacity: 1; pointer-events: auto; }
  .cs-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 130;
    height: 78%; background: #fff; border-radius: 16px 16px 0 0;
    display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform .26s ease;
    box-shadow: 0 -8px 30px rgba(15,40,45,.14);
  }
  .cs-sheet.on { transform: translateY(0); }
  /* 展开全部标签时升为全屏 */
  .cs-sheet.full { height: 100%; border-radius: 0; padding-top: 4px; }
  .cs-sheet { transition: transform .26s ease, height .22s ease; }
  .cs-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 14px 10px; flex-shrink: 0;
  }
  .cs-title { font-size: var(--fs16, 16px); font-weight: 700; color:  var(--t1, #1f2329); }
  .cs-close {
    width: 30px; height: 30px; border: 0; background: #f2f4f5; border-radius: 50%;
    color:  var(--t3, #646a73); display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .cs-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 14px 22px; -webkit-overflow-scrolling: touch; }
  .cs-sec { font-size: var(--fs13, 13px); color:  var(--t1, #1f2329); font-weight: 600; margin: 10px 0 10px; }
  .cs-sub { font-size: var(--fs12, 12px); color:  var(--t5, #a9b0b6); font-weight: 400; margin-left: 8px; }
  .cs-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
  .cs-cat {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    height: 44px; padding: 0 4px; border-radius: 8px; border: 1px solid #e5e8ea;
    background: #fff; font-family: inherit; font-size: var(--fs14, 14px); font-weight: 500;
    color:  var(--t1, #1f2329); cursor: pointer; overflow: hidden;
  }
  .cs-cat .cs-cat-name { white-space: nowrap; text-overflow: ellipsis; max-width: 100%; overflow: hidden; }
  .cs-cat.on { border-color: #14b8c4; background: #e8f8f9; color:  var(--brand-deep, #0b6b74); }
  .cs-cat.cs-all.on { border-color: #dfe3e6; background: #f4f6f7; color:  var(--t1, #1f2329); }
  .cs-cat.cs-all.on .cs-cnt { color:  var(--t4, #8a9299); }
  .cs-cat[disabled] { color:  var(--t6, #c3cad0); border-color: #f0f2f3; background: #fafbfb; cursor: default; }
  .cs-cat .cs-cnt { font-size: var(--fs11, 11px); font-weight: 500; color:  var(--t4, #8a9299); }
  .cs-cat.on .cs-cnt { color:  var(--brand-deep, #0b6b74); }
  .cs-more {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 100%; height: 40px; margin: 2px 0 14px; border: 0; border-radius: 8px;
    background: #f4f6f7; color:  var(--t2, #4e5969); font-family: inherit; font-size: var(--fs13, 13px); cursor: pointer;
  }
  .cs-more:active { background: #e8f8f9; color:  var(--brand-deep, #0b6b74); }
  .cs-more svg { transition: transform .2s ease; }
  .cs-more.up svg { transform: rotate(180deg); }
  .cs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .cs-tag {
    height: 32px; padding: 0 12px; border-radius: 999px; border: 0;
    background: #f2f4f5; color:  var(--t2, #4e5969); font-family: inherit; font-size: var(--fs13, 13px);
    cursor: pointer;
  }
  .cs-tag:active { background: #e6f6f7; color:  var(--brand-deep, #0b6b74); }

  /* ===== 便民信息：双列瀑布 + 上图下文（20261114c） =====
     图片在上按原比例展示，图上不压文字；图下一条标题，2 行截断。
     无图帖走白底文字卡：分类 + 标题 + 一行正文。
     同城趣聊仍是单列大卡——那边看的是图，这边读的是信息。 */
  .track.masonry { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px 16px; }
  .pcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .pcard {
    position: relative; border-radius: 12px; overflow: hidden; background: #fff;
    box-shadow: inset 0 0 0 1px #eceff1; cursor: pointer; user-select: none;
  }
  /* 图框统一 3:4（小红书同款封面比例）：竖图裁边、横图缩进，两列永远平齐 */
  .pcard .pimg { position: relative; width: 100%; background: #eef1f3; overflow: hidden; aspect-ratio: 3 / 4; }
  .pcard .pimg img, .pcard .pimg video {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    display: block; background: #eef1f3;
  }
  /* 横图：完整缩进框内，上下由同图放大模糊铺底，不裁掉画面两侧 */
  .pcard .pimg.keep img, .pcard .pimg.keep video { object-fit: contain; object-position: center; position: relative; z-index: 2; background: transparent; }
  .pcard .pimg.keep .bg {
    position: absolute; inset: -12px; z-index: 1;
    background-size: cover; background-position: center;
    filter: blur(12px) saturate(1.06);
  }
  /* 图下标题：两行封顶，长标题自动省略 */
  .pcard .pc-t {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    /* 标题行内挂了分类胶囊后，line-clamp 偶尔裁不干净，用 max-height 兜住两行（2×21 + 上下 padding） */
    max-height: 62px;
    padding: 9px 8px 11px; font-size: var(--fs14, 14px); font-weight: 600;
    line-height: 1.5; letter-spacing: -.2px; color:  var(--t1, #1f2329); word-break: break-word;
  }
  /* 便民卡分类：标题上方单独一行（“地区 · 分类”）。
     不能塞进标题首行——-webkit-box 里混入行内块，line-clamp 会失效，第 3 行从卡片底下漏出来 */
  .pcard .pmeta { padding: 9px 8px 0; }
  .pcard .pmeta:empty { display: none; }
  .pcard .pmeta .ctag {
    display: inline-block; height: 17px; line-height: 17px; padding: 0 6px; border-radius: 5px;
    font-size: var(--fs11, 11px); font-weight: 500; letter-spacing: 0;
    color: #0E6A5C; background: #EAF7F6;
  }
  /* 有分类行时标题上方留白压到 2px，标签与标题贴合 */
  .pcard.cat-on .pc-t { padding-top: 2px; }
  .pcard .pmore {
    position: absolute; right: 6px; top: 6px; font-size: var(--fs10, 10px); line-height: 15px;
    color: #fff; background: rgba(0, 0, 0, .42); border-radius: 999px; padding: 0 6px;
  }
  .pcard .pimg .play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .5);
    display: flex; align-items: center; justify-content: center;
  }
  .pcard .pimg .play svg { width: 11px; height: 11px; fill: #fff; }
  /* 无图帖：浅青图框卡（20261114q）
     纯文字帖不再缩成白底小卡，而是撑成和有图卡一样的 3:4 图框：
     框里只有被大引号包住的标题，框下两行正文带省略号。
     这样纯文字信息也有封面体量，两列瀑布不会出现一截矮下去的缺口。 */
  .pcard.ptext { padding: 0; display: block; }
  .pcard.ptext .qbox {
    position: relative; width: 100%; aspect-ratio: 3 / 4;
    background: #F1FBF8; overflow: hidden;
  }
  /* 五档极淡底色按分类错开，连着几张无图卡也不会糊成一片同一块青 */
  .pcard.ptext.t2 .qbox { background: #EEF5FC; }   /* 房屋：青偏蓝 */
  .pcard.ptext.t3 .qbox { background: #FAF5EC; }   /* 二手/转让：浅米 */
  .pcard.ptext.t4 .qbox { background: #FDF3EE; }   /* 生活服务：浅杏 */
  .pcard.ptext.t5 .qbox { background: #F1F8EF; }   /* 维修/运动：浅豆绿 */
  .pcard.ptext .qin {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 24px 11px;
  }
  .pcard.ptext .qt {
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0; font-weight: 700; letter-spacing: -.3px; text-align: center;
    word-break: break-word;
    font-size: 18.5px; line-height: 1.62; color: #0E6A5C;
  }
  .pcard.ptext .qt::before, .pcard.ptext .qt::after {
    font-family: Georgia, "Songti SC", serif; font-size: 34px; line-height: 0; color: #6DC8B8;
  }
  .pcard.ptext .qt::before { content: "\201C"; margin-right: 1px; vertical-align: -5px; }
  .pcard.ptext .qt::after  { content: "\201D"; margin-left: 1px; vertical-align: -5px; }
  .pcard.ptext .ptag {
    position: absolute; left: 9px; top: 9px; z-index: 2;
    font-size: var(--fs11, 11px); font-weight: 500; line-height: 16px;
    color: #0E6A5C; background: #fff; border-radius: 999px; padding: 1px 7px;
  }
  /* 框下正文与有图卡的标题同规格：14px / 600 / 主文字色，两行封顶 */
  .pcard.ptext .qbody { height: 62px; padding: 9px 8px 11px; overflow: hidden; }
  .pcard.ptext .qbt {
    margin: 0; font-size: var(--fs14, 14px); font-weight: 600; line-height: 1.5;
    letter-spacing: -.2px; color:  var(--t1, #1f2329);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pcard.ptext.nb .qbody { display: none; }

  /* ===== 顶栏 20261112a：地点 / 趣聊·推荐·便民 / 搜索 压成同一行 =====
     地点胶囊只缩小一号，品牌实心和 #14b8c4 底不动；
     三个总分类用「深青加粗 + 青绿下划线」做选中，与底栏同一套语言。 */
  /* 底边留白压 3px：顶栏与分类条之间的视觉空白 14 -> 11，两条信息靠得紧一点 */
  .header { padding: 9px 14px 6px; }
  .city.sm {
    font-size: var(--fs13, 13px); font-weight: 600;
    padding: 4px 9px; gap: 4px; margin-right: 0;
    letter-spacing: -.1px;
    /* 宽度上限跟着槽走：胶囊永远长不出自己的槽，
       所以再长的地名也只会自己省略，压不到中间的 tab */
    max-width: 100%;
  }
  .city.sm svg { flex: 0 0 auto; }
  /* 4 个 13px 汉字 = 52px，留 4px 余量给不同字形 */
  .city.sm #cityName { max-width: 56px; min-width: 0; }
  /* 左右等宽槽：两侧各自 flex 平分剩余空间，中间 tab 组就落在屏幕正中；
     胶囊和放大镜仍各自贴边，位置不动 */
  .hslot { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
  .hslot.r { justify-content: flex-end; }
  /* 间距 18 -> 24：三个 tab 之间松一点，整组仍由两侧等宽槽顶点居中 */
  .htabs { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
  /* 小屏把三个 tab 的间距收一档，把地名的位置让出来：
     360 宽下 4 字地名原本只剩 1px 余量，收到 20 后留 5px */
  @media (max-width: 365px) {
    .htabs { gap: 20px; }
  }
  @media (max-width: 340px) {
    .htabs { gap: 16px; }
  }
  .htab {
    flex: 0 0 auto; border: 0; background: transparent; font-family: inherit;
    /* 未选字色由 --t4(#8a9299) 加深到 --t3(#646a73)，与底栏未选同一档 */
    font-size: var(--fs15, 15px); color: var(--t3, #646a73);
    padding: 4px 0 5px; white-space: nowrap; letter-spacing: -.2px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .16s ease;
  }
  .htab:active { color: var(--brand-deep, #0b6b74); }
  /* 选中与未选同字号：只靠字重 + 青绿下划线区分。
     字号一变三个字宽度就变，切换时整组会横向抖一下，所以不做 */
  .htab.on {
    font-weight: 700; color: var(--brand-deep, #0b6b74);
    border-bottom: 2px solid var(--brand, #14b8c4); padding-bottom: 3px;
  }

  /* ===== 切换地区提示弹窗（居中）：本地区没内容时说清已切到哪一级 ===== */
  .ctip-mask { position: fixed; inset: 0; background: rgba(0,0,0,.34); z-index: 900; }
  .ctip {
    position: fixed; left: 50%; top: 50%; z-index: 901;
    width: min(78vw, 300px); padding: 22px 18px 16px;
    background: #fff; border-radius: 14px; text-align: center;
    box-shadow: 0 14px 36px rgba(0,0,0,.2);
    transform: translate(-50%, -50%) scale(.94); opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
  }
  .ctip.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .ctip-text { margin: 0 0 16px; font-size: 15px; font-weight: 600; line-height: 1.55; color:  var(--t1, #1f2329); }
  .ctip-btn {
    display: block; width: 100%; height: 40px; border: 0; border-radius: 9px;
    background: var(--brand, #12b6c0); color: #fff; font-size: 14px; font-weight: 600;
  }
