/* ============ GetRind UI v3 · 黑白 · 清爽（默认主题）============
   规则：界面只用黑/白/灰；12 个分类色只在 Pin 与分类圆点；红色 #E5484D 只给热帖 + 未读角标。
   HERE 皮肤（skin-here-v264）若启用，应在本文件之后加载并覆盖。 */
:root {
  --v3-ink: #0A0A0A; --v3-bg: #FFFFFF; --v3-card: #F5F5F5; --v3-line: #EFEFEF; --v3-mute: #8A8A8A; --v3-hot: #E5484D;
  --coral: #0A0A0A; --ink: #0A0A0A; --ink-2: #8A8A8A; --bg: #FFFFFF; --fill: #F5F5F5; --hairline: #EFEFEF; --ios-tint: #0A0A0A;
}
@font-face { font-family: "Archivo Black"; src: local("Archivo Black"), local("ArchivoBlack-Regular"); font-display: swap; }
html body { background: #fff; font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
html body .view { background: #fff; }
html body .ios-big-title, html body .page-head h1 { font-family: "Archivo Black", "Arial Black", Inter, "PingFang SC", sans-serif; font-weight: 900; letter-spacing: -.02em; }

/* ---- Tab bar：中间黑色「+」 ---- */
html body .tabbar { background: rgba(255,255,255,.96); border-top: 1px solid var(--v3-line); }
html body .tab { color: #9A9A9A; }
html body .tab.active { color: var(--v3-ink); }
html body .tab[data-action="goto-publish"] > span:not(.tab-ico) { display: none; }
html body .tab[data-action="goto-publish"] .tab-ico { width: 48px; height: 36px; border-radius: 12px; background: var(--v3-ink); color: #fff; display: flex; align-items: center; justify-content: center; }
html body .tab[data-action="goto-publish"] .tab-ico svg rect { display: none; }
html body .tab[data-action="goto-publish"] .tab-ico svg { width: 22px; height: 22px; stroke-width: 2.2; }
html body .tab .badge, html body .tab-badge { background: var(--v3-hot); }

/* ---- 地图顶部：搜索栏 + 时间筛选 ---- */
.v3-mapbar { position: absolute; z-index: 6; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); display: flex; gap: 8px; }
.v3-search { flex: 1; height: 44px; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.10); display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--v3-mute); font-size: 14px; cursor: text; }
.v3-mark { width: 30px; height: 30px; border-radius: 8px; }
.v3-time { height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.10); font: inherit; font-size: 13px; font-weight: 600; color: var(--v3-ink); display: flex; align-items: center; gap: 4px; }
.v3-time-menu { position: absolute; right: 0; top: 50px; width: 180px; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 6px; display: flex; flex-direction: column; }
.v3-time-menu button { border: 0; background: none; font: inherit; font-size: 15px; text-align: left; padding: 10px 12px; border-radius: 10px; }
.v3-time-menu button:active { background: var(--v3-card); }
.v3-time-menu small { color: var(--v3-mute); font-size: 11px; padding: 4px 12px 6px; }
html body #view-map .map-chips { top: calc(env(safe-area-inset-top, 0px) + 62px) !important; }
html body .mchip, html body .mchip[style*="--cat"] { background: #fff; color: var(--v3-ink); box-shadow: 0 1px 6px rgba(0,0,0,.08); font-weight: 500; }
html body .mchip[style*="--cat"] .ic, html body .mchip[style*="--cat"] svg { color: var(--cat); }
html body .mchip.on, html body .mchip.on[style*="--cat"] { background: var(--v3-ink); color: #fff; }
html body .mchip.on[style*="--cat"] .ic, html body .mchip.on[style*="--cat"] svg { color: #fff; }
html body .map-locate-btn { color: var(--v3-ink); }

/* ---- 地图底部卡片（可左右滑） ---- */
html body .map-card.map-sheet { border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,.10); transition: transform .25s; }
html body .map-card.sw-l { animation: v3swl .26s ease; } html body .map-card.sw-r { animation: v3swr .26s ease; }
@keyframes v3swl { from { transform: translateX(24px); opacity: .5; } } @keyframes v3swr { from { transform: translateX(-24px); opacity: .5; } }
html body .ms-tag { background: var(--v3-card); color: var(--v3-ink); }
html body .ms-tag.hot { background: rgba(229,72,77,.10); color: var(--v3-hot); }
html body .ms-btn.p { background: var(--v3-ink); color: #fff; }
html body .ms-btn.g { background: #fff; color: var(--v3-ink); box-shadow: inset 0 0 0 1px #E2E2E2; }
.ms-dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.ms-dots i { width: 5px; height: 5px; border-radius: 3px; background: #D6D6D6; }
.ms-dots i.on { width: 14px; background: var(--v3-ink); }
.ms-swipehint { text-align: center; font-size: 11px; color: var(--v3-mute); margin-top: 6px; }
html body .map-pin.selected:not(.hot-pin), html body .map-pin.avatar.selected:not(.hot-pin) { border-color: var(--v3-ink); }
html body .map-pin.avatar.me { border-color: var(--v3-ink); }
html body .mp-spin { border-top-color: var(--v3-ink); }

/* ---- 发现 ---- */
html body #view-feed .chip.on, html body .chip.active { background: var(--v3-ink); color: #fff; }
html body #view-feed .chip.chip-hot { color: var(--v3-hot); }
html body #view-feed .wf-card.wf-hot { box-shadow: 0 0 0 2px var(--v3-hot), 0 4px 14px rgba(229,72,77,.18); }
html body .feed-search input { background: var(--v3-card); }

/* ---- 发布 ---- */
html body .cp-btn { background: var(--v3-ink); border-radius: 14px; }
html body .cp-btn.off, html body .cp-btn:disabled { background: #CFCFCF; }
html body .cp-pill.on { background: var(--v3-ink); color: #fff; }
html body .cat-chip.on { border-color: var(--v3-ink); color: var(--v3-ink); background: var(--v3-card); }
html body .cat-chip.on .ic { stroke: var(--v3-ink); }
html body .cp-sw.on { background: var(--v3-ink); }
html body #pub-loc-sub { display: block; color: var(--v3-mute); font-size: 12px; }
.v3-perm { font-size: 12px; color: var(--v3-mute); padding: 0 2px 6px; }

/* ---- 帖子详情：模糊地点卡片 ---- */
.v3-place { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--v3-card); }
.v3-place-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--v3-ink); }
.v3-place-ic .ic { width: 18px; height: 18px; }
.v3-place b { display: block; font-size: 14px; }
.v3-place small { display: block; font-size: 12px; color: var(--v3-mute); }
html body .act-btn.on { color: var(--v3-hot); } html body .act-btn.on .ic { fill: var(--v3-hot); stroke: var(--v3-hot); }
html body .follow-btn { background: var(--v3-ink); color: #fff; border-color: var(--v3-ink); }
html body .follow-btn.following { background: #fff; color: var(--v3-ink); border: 1px solid #E2E2E2; }
html body .btn-primary { background: var(--v3-ink); }
html body #post-group-row .btn-ghost.post-group-btn { color: var(--v3-ink); }

/* ---- 个人页 ---- */
html body #view-profile .pfb-tab.active::after { background: var(--v3-ink); }
html body #view-profile .pfb-primary { background: var(--v3-ink); color: #fff; }
html body .pp-cover-default, html body .profile-cover-default { background: linear-gradient(135deg, #1a1a1a 0%, #5a5a5a 100%); }

/* ---- 未登录发布页：黑底大 Logo ---- */
html body .lo-screen { background: var(--v3-ink); color: #fff; }
html body .lo-screen .pfl-hero { display: none; }
.v3-lo-logo { display: block; width: 132px; height: 132px; margin: 0 auto 28px; border-radius: 30px; }
html body .lo-screen .pfl-text h2 { color: #fff; text-align: center; }
html body .lo-screen .pfl-text p { color: rgba(255,255,255,.6); text-align: center; }
html body .lo-screen .pfl-btn { background: #fff; color: var(--v3-ink); }
.pfl-guest { display: block; margin: 14px auto 0; border: 0; background: none; color: rgba(255,255,255,.7); font: inherit; font-size: 14px; }
/* v274: 未登录页垂直居中、不被状态栏裁切；社交页用白色 v3 空状态 */
html body .lo-screen { display: flex; flex-direction: column; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 24px) 0 calc(var(--tabbar-h) + 24px); }
html body .lo-screen .pfl-text { margin-top: 0; }
html body #view-social .lo-screen { background: #fff; color: var(--v3-ink); }
html body #view-social .lo-screen .pfl-text h2 { color: var(--v3-ink); }
html body #view-social .lo-screen .pfl-text p { color: #8a8a8a; }
html body #view-social .lo-screen .pfl-btn { background: var(--v3-ink); color: #fff; }

/* ---- 消息：未读用黑点，红只给通知数 ---- */
html body .conv-unread, html body .unread-dot { background: var(--v3-ink); }
html body .act-btn { white-space: nowrap; }

/* ================= v3 round 2 ================= */
/* 规则：布局类不加作用域（HERE 皮肤也用）；颜色类限定 html:not([data-skin=here])，保证皮肤优先 */

/* ---- 点赞统一黑色（红色只给热帖 + 未读角标） ---- */
html:not([data-skin=here]) body .act-btn.on, html:not([data-skin=here]) body .wf-like.on, html:not([data-skin=here]) body .ipc-act.on, html:not([data-skin=here]) body .v3-like.on { color: var(--v3-ink); }
html:not([data-skin=here]) body .act-btn.on .ic, html:not([data-skin=here]) body .wf-like.on .ic, html:not([data-skin=here]) body .ipc-act.on .ic, html:not([data-skin=here]) body .v3-like.on .ic { fill: var(--v3-ink); stroke: var(--v3-ink); }

/* ---- 发现：大热帖卡 + 附近的新鲜事 ---- */
.v3-feedhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.v3-area { font-size: 14px; color: var(--v3-mute); padding-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
html body #view-feed .chips { gap: 8px; padding: 4px 20px 12px; }
html:not([data-skin=here]) body #view-feed .chip { background: var(--v3-card); color: var(--v3-ink); border: 0; border-radius: 18px; height: 34px; padding: 0 14px; font-weight: 600; font-size: 14px; }
html:not([data-skin=here]) body #view-feed .chip.active { background: var(--v3-ink); color: #fff; }
html body #view-feed .feed-search { padding: 0 20px 6px; }
.v3-disc { padding: 0 20px calc(var(--tabbar-h, 84px) + 24px); }
.v3-hero { position: relative; display: block; height: 240px; border-radius: 20px; overflow: hidden; cursor: pointer; margin-bottom: 26px; }
.v3-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.62)); }
.v3-hero .v3-hot { position: absolute; left: 16px; top: 16px; }
.v3-hero-txt { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.v3-hero-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 22px; line-height: 29px; font-weight: 800; }
.v3-hero-txt small { display: block; margin-top: 6px; font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-hero-txt .v3-dot { display: none; }
.v3-hot { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--v3-hot); color: #fff; font-size: 12px; font-weight: 700; margin-right: 6px; flex: none; }
.v3-sec { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.v3-row { display: flex; gap: 16px; align-items: flex-start; padding: 0 0 22px; cursor: pointer; }
.v3-row-img { width: 96px; height: 96px; flex: none; border-radius: 14px; object-fit: cover; background: var(--v3-card); }
.v3-row-txt { display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; font-size: 13px; font-weight: 600; text-align: center; overflow: hidden; }
.v3-row-main { flex: 1; min-width: 0; padding-top: 2px; }
.v3-row-meta { display: flex; align-items: center; font-size: 13px; color: var(--v3-mute); white-space: nowrap; overflow: hidden; }
.v3-dot { display: inline-block; width: 7px; height: 7px; border-radius: 4px; margin-right: 6px; flex: none; }
.v3-dot[class*="tone-"] { background: currentColor !important; }
.v3-row-title { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v3-row-foot { margin-top: 8px; font-size: 13px; color: var(--v3-mute); display: flex; align-items: center; gap: 4px; }
.v3-like { border: 0; background: none; padding: 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.v3-like .ic { width: 14px; height: 14px; }

/* ---- 个人页：浅色，封面在上，头像压边 ---- */
html body #view-profile .pfb-hero.v3-cover { min-height: 0; height: calc(env(safe-area-inset-top, 0px) + 220px); }
html body #view-profile .v3-pfhead { padding: 0 24px; margin-top: -52px; }
html body #view-profile .v3-pfhead .pfb-avatar { width: 96px; height: 96px; border-radius: 50%; font-size: 36px; border-width: 4px; }
html body #view-profile .v3-pfhead .pfb-name { font-size: 28px; font-weight: 800; line-height: 34px; margin-top: 12px; letter-spacing: -.3px; }
.v3-pf-area { font-size: 15px; margin-top: 4px; min-height: 20px; }
html body #view-profile .v3-pfhead .pfb-stats { gap: 22px; margin-top: 18px; flex-wrap: nowrap; }
html body #view-profile .v3-pfhead .pfb-stats .stat b { display: block; font-family: "Archivo Black", "Arial Black", Inter, sans-serif; font-size: 22px; font-weight: 900; line-height: 26px; margin: 0; }
html body #view-profile .v3-pfhead .pfb-stats .stat small { display: block; font-size: 12px; margin-top: 2px; }
html body #view-profile .v3-pfhead .pfb-dot { display: none; }
html body #view-profile.pfb-on .my-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; padding-left: 0; padding-right: 0; }
html body #view-profile.pfb-on .my-grid > div { aspect-ratio: 1; }
html:not([data-skin=here]) body #view-profile.pfb-on, html:not([data-skin=here]) body #view-profile.pfb-on #profile-body { background: #fff; color: var(--v3-ink); color-scheme: light; }
html:not([data-skin=here]) body #view-profile .pfb-hero.v3-cover { background: linear-gradient(135deg, #D9DEFF 0%, #8F9AD0 55%, #5C6699 100%); background-size: cover; }
html:not([data-skin=here]) body #view-profile .pfb-hero.v3-cover.has-cover { background-size: cover; }
html:not([data-skin=here]) body #view-profile .pfb-hero.v3-cover::after { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 30%); }
html:not([data-skin=here]) body #view-profile .v3-pfhead .pfb-avatar { border-color: #fff; }
html:not([data-skin=here]) body #view-profile .pfb-avatar:not(:has(img)) { background: #EDEDED; color: var(--v3-ink); }
html:not([data-skin=here]) body #view-profile .pfb-name { color: var(--v3-ink); }
html:not([data-skin=here]) body #view-profile .v3-pf-area, html:not([data-skin=here]) body #view-profile .pfb-stats small { color: var(--v3-mute); }
html:not([data-skin=here]) body #view-profile .pfb-bio { color: var(--v3-ink); }
html:not([data-skin=here]) body #view-profile .pfb-stats b { color: var(--v3-ink); }
html:not([data-skin=here]) body #view-profile .pfb-primary { background: #fff; color: var(--v3-ink); box-shadow: inset 0 0 0 1.5px #E2E2E2; font-weight: 700; }
html:not([data-skin=here]) body #view-profile .pfb-share { background: #fff; color: var(--v3-ink); box-shadow: inset 0 0 0 1.5px #E2E2E2; }
html:not([data-skin=here]) body #view-profile .pfb-tab { color: var(--v3-mute); font-weight: 600; }
html:not([data-skin=here]) body #view-profile .pfb-tab.active { color: var(--v3-ink); font-weight: 800; }
html body #view-profile .pfb-tab.active::after { width: 100%; height: 3px; border-radius: 2px; }
html:not([data-skin=here]) body #view-profile.pfb-on .my-grid > div, html:not([data-skin=here]) body #view-profile.pfb-on .my-grid .noimg { background: var(--v3-card); color: var(--v3-ink); }
html:not([data-skin=here]) body #view-profile .pfb-empty, html:not([data-skin=here]) body #view-profile.pfb-on .loading { color: var(--v3-mute); }
html:not([data-skin=here]) body #view-profile #pfb-footmap { background: var(--v3-card); }
html:not([data-skin=here]) body #view-profile .pfb-foot-cap, html:not([data-skin=here]) body #view-profile .pfb-foot-cap b { color: var(--v3-ink); }
html:not([data-skin=here]) body #view-profile .pfb-bar .pfb-iconbtn { color: #fff; }
html:not([data-skin=here]) body #view-profile.pfb-scrolled .pfb-bar { background: rgba(255,255,255,.9); box-shadow: 0 .5px 0 var(--v3-line); }
html:not([data-skin=here]) body #view-profile.pfb-scrolled .pfb-bar-name, html:not([data-skin=here]) body #view-profile.pfb-scrolled .pfb-bar .pfb-iconbtn { color: var(--v3-ink); }

/* ---- 消息列表 ---- */
html body #view-social .social-head .ios-big-title { font-size: 34px; }
html body #view-social .search-mic { display: none; }
html body #view-social .social-seg { display: flex; gap: 8px; background: none; padding: 0 20px; margin: 4px 0 8px; width: auto; }
html:not([data-skin=here]) body #view-social .social-seg .seg { flex: none; height: 34px; padding: 0 16px; border-radius: 17px; background: var(--v3-card); color: var(--v3-ink); font-weight: 600; box-shadow: none; }
html:not([data-skin=here]) body #view-social .social-seg .seg.active { background: var(--v3-ink); color: #fff; }
html body .dm-conv { padding: 12px 20px; gap: 16px; }
html body .dm-conv .avatar { width: 56px; height: 56px; }
html body .dm-conv-main { padding-bottom: 12px; }
html:not([data-skin=here]) body .dm-conv-main { border-bottom: 1px solid var(--v3-line); }
html body .dm-conv-name { font-weight: 700; font-size: 17px; }
html body .dm-chev { display: none; }
html:not([data-skin=here]) body .dm-unread { background: var(--v3-ink); color: #fff; }
html:not([data-skin=here]) body .dm-conv.pinned { background: #FAFAFA; }

/* ---- 登录：浅色全屏，GET/RIND 字标 ---- */
html body .v3-auth .modal-card { position: relative; width: 100%; max-width: 480px; height: 100%; max-height: none; border-radius: 0; margin: 0; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 40px) 28px calc(env(safe-area-inset-bottom, 0px) + 24px); box-sizing: border-box; overflow-y: auto; }
html body .v3-auth { align-items: stretch; justify-content: center; padding: 0; }
.v3-auth-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; }
.v3-auth-word { font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-weight: 900; font-size: 92px; line-height: .9; letter-spacing: -.02em; text-align: center; transform: scaleX(.78); }
.v3-auth-hero svg { margin-top: 18px; }
html body .v3-auth h2 { text-align: center; font-size: 20px; font-weight: 800; margin: 18px 0 6px; }
.v3-auth-sub { text-align: center; font-size: 14px; margin: 0 0 28px; }
.v3-auth-btns { display: flex; flex-direction: column; gap: 12px; }
html body .v3-auth .oauth-btn { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; margin: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.v3-auth-email { display: none; flex-direction: column; gap: 10px; }
.v3-auth.v3-email-open .v3-auth-email { display: flex; }
.v3-auth.v3-email-open .v3-auth-email-toggle { display: none; }
.v3-auth.v3-email-open .v3-auth-hero { flex: none; min-height: 0; transform: scale(.55); margin: -40px 0 -50px; }
html body .v3-auth .v3-auth-email input { margin: 0; }
html body .v3-auth .oauth-div { display: none; }
.v3-auth-guest { border: 0; background: none; font: inherit; font-size: 14px; margin: 18px auto 6px; cursor: pointer; }
html body .v3-auth .oauth-terms { text-align: center; font-size: 12px; margin: 6px 0 0; }
html:not([data-skin=here]) body .v3-auth { background: #fff; }
html:not([data-skin=here]) body .v3-auth .modal-card { background: #fff; color: var(--v3-ink); box-shadow: none; }
html:not([data-skin=here]) body .v3-auth-hero { color: var(--v3-ink); }
html:not([data-skin=here]) body .v3-auth-sub, html:not([data-skin=here]) body .v3-auth-guest, html:not([data-skin=here]) body .v3-auth .oauth-terms, html:not([data-skin=here]) body .v3-auth .oauth-terms a { color: var(--v3-mute); }
html:not([data-skin=here]) body .v3-auth .oauth-apple { background: var(--v3-ink); color: #fff; border: 0; }
html:not([data-skin=here]) body .v3-auth .v3-auth-email-toggle, html:not([data-skin=here]) body .v3-auth .oauth-google { background: #fff; color: var(--v3-ink); border: 1.5px solid #E2E2E2; }
html:not([data-skin=here]) body .v3-auth .btn-primary { background: var(--v3-ink); height: 50px; border-radius: 14px; }
html:not([data-skin=here]) body .v3-auth input { background: var(--v3-card); border: 0; border-radius: 12px; height: 48px; }
html:not([data-skin=here]) body #view-feed, html:not([data-skin=here]) body #view-feed .feed-list, html:not([data-skin=here]) body #view-feed .chips, html:not([data-skin=here]) body #view-feed .page-head, html:not([data-skin=here]) body #view-feed .feed-search { background: #fff; }
html body #view-feed .feed-list { padding: 0; }
html body .dm-conv { border-bottom: 0 !important; }
html body .dm-conv::after { display: none; }

/* v272 发现页热度照片墙（bento）；标题在照片下方 */
.bento { --cell: calc((100vw - 32px - 16px) / 3); display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: calc(var(--cell) + 40px); grid-auto-flow: dense; gap: 8px; padding: 4px 16px 0; }
@media (min-width: 600px) { .bento { --cell: 180px; max-width: 600px; margin: 0 auto; } }
.bt { position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.bt-xl { grid-column: span 2; grid-row: span 2; }
.bt-w { grid-column: span 2; }
.bt-t { grid-row: span 2; }
.bt-ph { position: relative; flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--v3-card); }
.bt-xl .bt-ph { border-radius: 16px; }
.bt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-cap { flex: none; padding: 6px 2px 0; display: flex; flex-direction: column; gap: 1px; color: var(--v3-ink); min-width: 0; }
.bt-cap b { font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-xl .bt-cap b, .bt-w .bt-cap b { font-size: 15px; font-weight: 700; }
.bt-cap small { font-size: 11px; color: var(--v3-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-txt { background: #fff; border: 1px solid var(--v3-line); border-radius: 12px; padding: 10px; justify-content: space-between; }
.bt-txt .bt-cap { padding: 0; flex: 1; justify-content: space-between; }
.bt-txt .bt-cap b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; font-size: 13px; }
.bt-txt.bt-xl .bt-cap b { font-size: 20px; -webkit-line-clamp: 8; }
.bt-hot { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--v3-hot); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.bt-txt .bt-hot { position: static; align-self: flex-start; margin-bottom: 6px; }
.bento-more { text-align: center; color: var(--v3-mute); font-size: 12px; padding: 18px 0 calc(var(--tabbar-h, 84px) + 24px); }

/* ---- 名片预览：v3 底部卡片（只用 v3 变量；按钮同登录页黑色胶囊 / 浅灰次按钮） ---- */
#profile-preview { align-items: flex-end; }
html body #profile-preview .modal-card { max-width: 560px; width: 100%; margin: 0 auto; border-radius: 20px 20px 0 0; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); overflow: hidden; background: var(--v3-bg); text-align: center; position: relative; }
@media (min-width: 600px) { #profile-preview { align-items: center; } html body #profile-preview .modal-card { max-width: 400px; border-radius: 20px; } }
.pp-grab { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--v3-mute); opacity: .4; z-index: 2; }
.pp-cover2 { height: 112px; background-size: cover; background-position: center; }
.pp-head { cursor: pointer; padding: 0 20px; }
.pp-av2 { width: 80px; height: 80px; margin: -40px auto 0; border-radius: 50%; border: 4px solid var(--v3-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 600; background: var(--v3-card); color: var(--v3-ink); }
.pp-av2 img { width: 100%; height: 100%; object-fit: cover; }
.pp-name2 { font-size: 20px; font-weight: 600; color: var(--v3-ink); margin-top: 8px; }
.pp-area { font-size: 13px; color: var(--v3-mute); margin-top: 2px; }
.pp-stats2 { display: flex; justify-content: center; margin: 14px auto 0; max-width: 280px; }
.pp-stats2 > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pp-stats2 > div + div { border-left: 1px solid var(--v3-line); }
.pp-stats2 b { font-size: 17px; font-weight: 600; color: var(--v3-ink); }
.pp-stats2 span { font-size: 12px; color: var(--v3-mute); }
.pp-bio2 { font-size: 15px; line-height: 21px; color: var(--v3-ink); margin: 14px 32px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 16px 20px 0; }
.pp-thumb { padding: 0; border: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--v3-card); cursor: pointer; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-actions2 { display: flex; gap: 10px; padding: 20px 20px 0; }
.pp-actions2:empty { display: none; }
html body .pp-actions2 .pp-follow { flex: 1; height: 50px; border-radius: 25px; border: none; background: var(--v3-ink); color: #fff; font-size: 16px; font-weight: 500; padding: 0; font-family: inherit; }
html body .pp-actions2 .pp-follow.following, .pp-dm2 { background: var(--v3-card); color: var(--v3-ink); }
.pp-dm2 { width: 100px; height: 50px; border-radius: 25px; border: none; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.pp-more { display: block; margin: 8px auto 0; border: 0; background: none; color: var(--v3-mute); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; }

/* ---- 编辑动态 / 黑名单（batch1） ---- */
.pe-edit { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 0; }
html body .pe-edit-title { height: 46px; border: none; border-radius: 12px; background: var(--v3-card); padding: 0 14px; font: inherit; font-size: 17px; font-weight: 600; color: var(--v3-ink); margin: 0; }
.pe-edit-text { min-height: 140px; border: none; border-radius: 12px; background: var(--v3-card); padding: 12px 14px; font: inherit; font-size: 15px; line-height: 22px; color: var(--v3-ink); resize: none; }
.pe-edit-cnt { font-size: 12px; color: var(--v3-mute); text-align: right; margin-top: -4px; }
html body .pe-edit-save { width: 100%; height: 50px; border-radius: 25px; border: none; background: var(--v3-ink); color: #fff; font-size: 16px; font-weight: 500; font-family: inherit; }
.bl-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.bl-row .avatar { width: 40px; height: 40px; }
.bl-name { flex: 1; font-size: 15px; color: var(--v3-ink); text-align: left; }
.bl-unblock { height: 32px; padding: 0 14px; border-radius: 16px; border: none; background: var(--v3-card); color: var(--v3-ink); font: inherit; font-size: 14px; font-weight: 500; }

/* ---- batch2：结束时间 ---- */
.v3-exp { display: inline-block; margin: 10px 0 0; padding: 4px 10px; border-radius: 12px; background: var(--v3-card); color: var(--v3-ink); font-size: 12px; font-weight: 500; }
.cp-exp { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 15px; color: var(--v3-ink); text-align: right; padding: 0; }

/* ---- 个人页封面加高（B：55% + 底部渐隐） ---- */
html body #view-profile .pfb-bar .pfb-iconbtn { filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
html body #view-profile .pfb-hero.v3-cover { height: 55vh; height: 55svh; min-height: calc(env(safe-area-inset-top, 0px) + 260px); }
html:not([data-skin=here]) body #view-profile .pfb-hero.v3-cover::after { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 22%, rgba(255,255,255,0) 62%, rgba(255,255,255,.85) 94%, #fff 100%); }
/* 统计行：4 列等宽、居中（我的主页） */
html body #view-profile .v3-pfhead .pfb-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; width: 100%; }
html body #view-profile .v3-pfhead .pfb-stats .stat { text-align: center; min-width: 0; }

/* ---- 封面调整（v3 白色底部面板） ---- */
html body #cover-editor { align-items: flex-end; }
html body #cover-editor .modal-card { height: auto; max-height: 92%; border-radius: 20px 20px 0 0; background: var(--v3-bg); padding: 0; overflow: hidden; }
.cc-sheet { position: relative; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); text-align: center; }
.cc-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--v3-line); margin: 8px auto 0; }
.cc-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 8px; }
.cc-bar b { font-size: 16px; font-weight: 600; color: var(--v3-ink); }
.cc-txt { border: 0; background: none; font: inherit; font-size: 16px; color: var(--v3-mute); padding: 8px 12px; cursor: pointer; }
.cc-txt.cc-save { color: var(--v3-ink); font-weight: 600; }
.cc-frame { position: relative; width: 100%; overflow: hidden; background: var(--v3-card); touch-action: none; cursor: grab; user-select: none; }
.cc-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; pointer-events: none; display: none; }
.cc-frame.has-img img { display: block; }
.cc-frame.has-img .cc-empty { display: none; }
.cc-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--v3-mute); font-size: 15px; cursor: pointer; }
.cc-hint { font-size: 13px; color: var(--v3-mute); margin: 12px 0 0; }
.cc-change { margin: 14px auto 0; height: 44px; padding: 0 22px; border-radius: 22px; border: none; background: var(--v3-card); color: var(--v3-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }

/* ---- v280 发布按钮：60pt 黑色圆形，半浮出底栏，白环 + 柔和阴影 ---- */
html body #tabbar { overflow: visible; }
html body .tab[data-action="goto-publish"] { overflow: visible; position: relative; -webkit-tap-highlight-color: transparent; }
html body .tab[data-action="goto-publish"] .tab-ico { width: 60px; height: 60px; border-radius: 50%; margin-top: -30px; border: 4px solid #fff; box-sizing: content-box;
  box-shadow: 0 6px 18px rgba(10,10,10,.22); transition: transform .15s ease; }
html body .tab[data-action="goto-publish"]:active .tab-ico { transform: scale(.94); }
html body .tab[data-action="goto-publish"] .tab-ico svg { display: none; }
html body .tab[data-action="goto-publish"] .tab-ico::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) center / 100% 3.5px no-repeat, linear-gradient(currentColor, currentColor) center / 3.5px 100% no-repeat; }
html[data-skin=here] body .tab[data-action="goto-publish"] .tab-ico { border-color: #0A0A0A; box-shadow: 0 6px 18px rgba(0,0,0,.5); }

/* ---- Turnstile（托管模式：通常不可见，需要时才出现）/ 忘记密码 ---- */
.v3-ts { width: 100%; margin: 2px 0 8px; }
.v3-ts:empty { display: none; }
.v3-ts iframe { width: 100% !important; border-radius: 12px; }
.v3-auth-forgot { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--v3-mute); font: inherit; font-size: 13px; cursor: pointer; }

/* ---- v283 设置：开关行（「关闭使用分析」）黑白 iOS 风格 ---- */
#action-sheet .sheet-opt.st-switch-row { align-items: center; }
.st-switch-row .st-sw-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-switch-row .st-sw-text small { font-size: 12.5px; font-weight: 400; color: var(--v3-mute); line-height: 1.35; }
.v3-switch { position: relative; flex-shrink: 0; width: 51px; height: 31px; border-radius: 16px; background: #E9E9EA; transition: background .2s; }
.v3-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.12); transition: transform .2s; }
.v3-switch.on { background: var(--v3-ink); }
.v3-switch.on::after { transform: translateX(20px); }
.st-switch-row[disabled] { opacity: .7; }
/* ---------- 附近通知设置页 ---------- */
.nb-page { position: fixed; inset: 0; z-index: 3000; background: #fff; color: var(--v3-ink, #111); overflow-y: auto; }
.nb-page.hidden { display: none; }
.nb-top { position: sticky; top: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; padding-top: env(safe-area-inset-top); font-size: 16px; }
.nb-top button { background: none; border: 0; font-size: 15px; color: var(--v3-ink, #111); padding: 8px 0; }
.nb-top .nb-save { font-weight: 700; }
.nb-body { padding: 8px 20px 40px; }
.nb-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 18px; border-bottom: 1px solid #F0F0F0; }
.nb-h { font-weight: 700; font-size: 16px; }
.nb-sub { color: #8A8A8A; font-size: 13px; margin-top: 4px; }
.nb-switch { flex: none; width: 50px; height: 30px; border-radius: 15px; border: 0; background: #E5E5E5; position: relative; transition: background .2s; }
.nb-switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.nb-switch.on { background: var(--v3-ink, #111); }
.nb-switch.on i { left: 23px; }
.nb-sec.nb-off { opacity: .35; pointer-events: none; }
.nb-label { font-size: 13px; color: #8A8A8A; margin: 22px 0 10px; }
.nb-area { display: flex; align-items: center; gap: 8px; background: var(--v3-card, #F5F5F5); border-radius: 14px; padding: 14px; font-weight: 600; }
.nb-area .ic { width: 18px; height: 18px; }
.nb-area span { flex: 1; }
.nb-link { background: none; border: 0; font-size: 14px; color: var(--v3-ink, #111); text-decoration: underline; }
.nb-seg { display: flex; background: var(--v3-card, #F5F5F5); border-radius: 14px; padding: 4px; }
.nb-seg button { flex: 1; border: 0; background: none; height: 38px; border-radius: 11px; font-size: 14px; font-weight: 600; color: #555; }
.nb-seg button.on { background: #fff; color: var(--v3-ink, #111); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.nb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-chips button { border: 0; background: var(--v3-card, #F5F5F5); color: var(--v3-ink, #111); height: 34px; padding: 0 14px; border-radius: 17px; font-size: 14px; font-weight: 600; }
.nb-chips button.on { background: var(--v3-ink, #111); color: #fff; }
.nb-foot { color: #8A8A8A; font-size: 12px; line-height: 1.6; margin-top: 24px; }
/* 通知行：附近 */
.notif-row .nb-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--v3-card, #F5F5F5); display: flex; align-items: center; justify-content: center; }
.notif-row .nb-ico .ic { width: 20px; height: 20px; }
/* ---- 社区规则 ---- */
.rules h5 { margin: 18px 0 8px; }
.rules-list { margin: 0 0 8px; padding-left: 20px; }
.rules-list li { margin: 4px 0; line-height: 1.5; }
/* ---- 复核中 / 申诉 ---- */
.v3-review { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #F2F2F7; }
.v3-review-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--v3-mute); line-height: 1.4; }
.v3-review-txt b { font-size: 15px; color: var(--v3-ink); }
.v3-review-btn { flex: none; height: 34px; padding: 0 16px; border: 0; border-radius: 17px; background: var(--v3-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.v3-review-btn:disabled { background: #E5E5EA; color: var(--v3-mute); }
.my-grid > div { position: relative; }
.grid-review { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 10px; background: rgba(10,10,10,.78); color: #fff; font-size: 11px; font-weight: 600; }
.notif-sys { display: flex; align-items: center; justify-content: center; background: var(--v3-ink); color: #fff; font-weight: 800; }
.cm-review { margin-left: 4px; padding: 1px 6px; border-radius: 8px; background: #F2F2F7; color: var(--v3-mute); font-size: 11px; font-weight: 600; }
/* ---- 首次引导 onboarding（规格：rind-ios docs/onboarding-cards.md）---- */
.onb { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.32); display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom); transition: opacity .2s; }
.onb.out { opacity: 0; }
.onb-card { width: 100%; max-width: 420px; background: #fff; border-radius: 28px; box-shadow: 0 10px 24px rgba(0,0,0,.12); padding: 18px 0 22px; color: #0A0A0A; touch-action: pan-y; user-select: none; }
.onb-top { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; }
.onb-n { font-size: 13px; font-weight: 600; color: #8E8E93; }
.onb-skip { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 600; color: #8E8E93; cursor: pointer; }
.onb-view { overflow: hidden; }
.onb-track { display: flex; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.onb-page { flex: 0 0 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 26px 0; }
.onb-icon { width: 88px; height: 88px; border-radius: 50%; background: #0A0A0A; display: flex; align-items: center; justify-content: center; }
.onb-page h2 { font-size: 24px; font-weight: 700; margin: 18px 0 10px; }
.onb-page p { font-size: 17px; line-height: 21px; color: #8E8E93; margin: 0; }
.onb-dots { display: flex; justify-content: center; gap: 6px; margin: 22px 0 18px; }
.onb-dots i { width: 6px; height: 6px; border-radius: 3px; background: #E5E5EA; transition: width .2s ease-out, background .2s ease-out; }
.onb-dots i.on { width: 18px; background: #0A0A0A; }
.onb-next { display: block; width: calc(100% - 44px); margin: 0 22px; height: 52px; border: 0; border-radius: 26px; background: #0A0A0A; color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: transform .15s; }
.onb-next:active { transform: scale(.94); }

/* ---- v288：已注销用户 / 陌生人图片模糊 ---- */
.avatar.avatar-deleted { background: #E5E5EA; color: #8E8E93; display: flex; align-items: center; justify-content: center; }
#dm-modal.dm-peer-deleted .dm-input-row { opacity: .45; pointer-events: none; }
.dm-img-wrap { position: relative; display: inline-block; border-radius: 14px; overflow: hidden; max-width: 220px; }
.dm-img-wrap .dm-img { display: block; }
.dm-blur .dm-img { filter: blur(22px) saturate(.6); transform: scale(1.08); }
.dm-blur.revealed .dm-img { filter: none; transform: none; }
.dm-blur-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255,255,255,.18); color: #fff; text-align: center; padding: 10px; cursor: pointer; }
.dm-blur.revealed .dm-blur-cover { display: none; }
.dm-blur-txt { font-size: 14px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.dm-blur-sub { font-size: 11.5px; opacity: .92; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.dm-blur.flagged .dm-blur-cover { cursor: default; background: rgba(20,20,20,.35); }
.dm-img-report { position: absolute; right: 6px; bottom: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: 13px; background: rgba(255,255,255,.92); color: var(--v3-ink, #111); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.reg-check a { color: inherit; text-decoration: underline; }
/* ===== picker-branch 发布页选点（白色 v3；只能选当前位置附近，界面不显示距离） ===== */
.lp-sheet { padding-top: 6px; }
.lp-head { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 6px; }
.lp-head b { font-size: 17px; font-weight: 600; color: #0A0A0A; }
.lp-cancel { background: none; border: 0; padding: 0 2px; font-size: 16px; color: #8A8A8A; cursor: pointer; font-family: inherit; }
.lp-ok { background: #0A0A0A; color: #fff; border: 0; height: 32px; padding: 0 16px; border-radius: 16px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
#pub-loc-sheet #publish-map { height: min(470px, 56vh); border-radius: 14px; }
.lp-warn { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); background: rgba(10,10,10,.9); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 16px; white-space: nowrap; z-index: 3; pointer-events: none; }
.lp-warn.hidden { display: none; }
.lp-me { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #fff; color: #0A0A0A; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.14); cursor: pointer; font-family: inherit; }
.lp-me .ic { width: 16px; height: 16px; }
.lp-addr { background: #F5F5F5; border-radius: 14px; padding: 12px 14px; margin: 12px 0 2px; }
.lp-addr b { font-size: 16px; color: #0A0A0A; }
.lp-pin { width: 34px; height: 46px; display: flex; flex-direction: column; align-items: center; cursor: grab; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.lp-pin i { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-sizing: border-box; border: 10px solid #0A0A0A; }
.lp-pin b { width: 3px; height: 14px; background: #0A0A0A; border-radius: 0 0 2px 2px; }
.lp-medot { width: 14px; height: 14px; border-radius: 50%; background: #0A0A0A; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.25); pointer-events: none; }

/* ===== picker-branch 详情页图片：1 张大图，2+ 张三列九宫格；点开全屏 ===== */
.detail-imgs.one { display: block; margin: 10px 0; }
.detail-imgs.one img { width: 100%; height: auto; max-height: calc((100vw - 48px) * 4 / 3); object-fit: cover; border-radius: 14px; display: block; background: #F5F5F5; cursor: zoom-in; }
.detail-imgs.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 0; }
.detail-imgs.grid .di-cell { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #F5F5F5; cursor: zoom-in; padding: 0; border: 0; display: block; width: 100%; }
.detail-imgs.grid .di-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.iv { position: fixed; inset: 0; z-index: 5000; background: #000; display: flex; flex-direction: column; touch-action: pan-x pinch-zoom; }
.iv.hidden { display: none; }
html.iv-open, html.iv-open body { overflow: hidden; overscroll-behavior: none; }
.iv-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transition: transform .18s ease-out; }
.iv-track::-webkit-scrollbar { display: none; }
.iv-page { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.iv-page img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* v311：✕ 用 v3 白色圆钮，放在安全区以内；左右也让开刘海横屏的安全区 */
.iv-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) 10px calc(16px + env(safe-area-inset-left, 0px)); z-index: 2; pointer-events: none; }
.iv-n { color: #fff; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.15); height: 30px; line-height: 30px; padding: 0 12px; border-radius: 15px; }
.iv-x { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: auto; box-shadow: 0 2px 10px rgba(0,0,0,.25); -webkit-tap-highlight-color: transparent; }
.iv-x:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.iv-hint { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: rgba(255,255,255,.6); font-size: 12px; pointer-events: none; }

/* ===== picker-branch 图钉规范 v1（单位 px=pt）。覆盖旧的分类色环 / 橙色光环；红色只给热门 ===== */
html body .map-pin.pv1 { width: auto; height: auto; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0; overflow: visible; display: block; transform: none; cursor: pointer; }
html body .map-pin.pv1 .pv-av { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff; background: #F2F2F2; box-shadow: 0 2px 4px rgba(0,0,0,.2); overflow: hidden; z-index: 1; transition: transform .15s ease; }
html body .map-pin.pv1 .pv-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
html body .map-pin.pv1 .pv-av.none { color: #888; }
html body .map-pin.pv1 .pv-av.none .ic { width: 15px; height: 15px; }
html body .map-pin.pv1 .pv-ini { font-size: 13px; font-weight: 600; color: #888; }
/* 热门三档 */
html body .map-pin.pv1.hot.t1 .pv-av { width: 40px; height: 40px; border: 2.5px solid #FF3B30; }
html body .map-pin.pv1.hot.t2 .pv-av { width: 48px; height: 48px; border: 3px solid #FF3B30; }
html body .map-pin.pv1.hot.t3 .pv-av { width: 56px; height: 56px; border: 3px solid #FF3B30; }
html body .map-pin.pv1 .pv-heat { position: absolute; z-index: 3; top: -8px; right: -14px; height: 18px; line-height: 18px; padding: 0 6px; border-radius: 9px; background: #FF3B30; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
html body .map-pin.pv1 .pv-rip { position: absolute; z-index: 0; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 2px solid #FF3B30; opacity: .45; pointer-events: none; animation: pvRip 1.6s ease-out infinite; }
html body .map-pin.pv1 .pv-rip.r2 { opacity: .25; animation-delay: .8s; }
@keyframes pvRip { from { transform: scale(1); opacity: .45; } to { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html body .map-pin.pv1 .pv-rip { display: none; } }
/* 标题：头像下 6，白胶囊 h22 r11 左右 10，12px；热门半粗 */
html body .map-pin.pv1 .pv-tips { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 2; pointer-events: none; }
html body .map-pin.pv1 .pv-tips.pv-off { display: none; }
html body .map-pin.pv1 .pv-tip { height: 22px; line-height: 22px; padding: 0 10px; border-radius: 11px; background: #fff; color: #111; font-size: 12px; font-weight: 400; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
html body .map-pin.pv1.hot .pv-tip { font-weight: 600; }
html body .map-pin.pv1 .pv-grp { position: absolute; z-index: 3; top: -6px; left: -8px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; background: #0A0A0A; color: #fff; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
html body .map-pin.pv1 .pv-grp .ic { width: 10px; height: 10px; }
html body .map-pin.pv1 .pv-cnt { position: absolute; z-index: 3; top: -5px; right: -8px; min-width: 18px; height: 18px; line-height: 15px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #0A0A0A; color: #fff; border: 1.5px solid #fff; font-size: 11px; font-weight: 700; text-align: center; }
/* 选中：放大 1.15、黑环 2.5、标题黑底白字最多 2 行、置顶 */
html body .map-pin.pv1.selected { z-index: 3000 !important; }
html body .map-pin.pv1.selected .pv-av { transform: scale(1.15); border: 2.5px solid #0A0A0A !important; }
html body .map-pin.pv1.selected .pv-tips { top: calc(100% + 10px); }
html body .map-pin.pv1.selected .pv-tips.pv-off { display: flex; }
html body .map-pin.pv1.selected .pv-tip { background: #111; color: #fff; height: auto; line-height: 16px; padding: 3px 10px; border-radius: 10px; max-width: 132px; white-space: normal; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .map-pin.pv1.selected .pv-tip ~ .pv-tip { display: none; }
/* 聚合：黑底白字，含热门加红点 */
html body .map-pin.pv1.pv-cl { display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 50%; background: #111 !important; border: 2px solid #fff !important; box-shadow: 0 2px 4px rgba(0,0,0,.2) !important; }
html body .map-pin.pv1.pv-cl.s32 { width: 32px; height: 32px; } html body .map-pin.pv1.pv-cl.s38 { width: 38px; height: 38px; } html body .map-pin.pv1.pv-cl.s44 { width: 44px; height: 44px; }
html body .map-pin.pv1.pv-cl .cluster-count { background: none !important; box-shadow: none !important; color: #fff; font-size: 14px; font-weight: 700; width: auto; height: auto; }
html body .map-pin.pv1 .pv-dot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; border: 1.5px solid #fff; }
html body .map-pin.heat { background: #111 !important; color: #fff !important; border: 2px solid #fff !important; box-shadow: 0 2px 4px rgba(0,0,0,.2) !important; }
html body .map-pin.heat .heat-count { color: #fff !important; }

/* ===== picker-branch 同一人同一处的多条：并排三列小卡（不左右滑）；超过 6 条可滚动 ===== */
#map-card.ug-v2 .ug-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; margin-top: 14px; }
#map-card.ug-v2 .ug-grid.scroll { max-height: min(52vh, 420px); overflow-y: auto; padding-right: 2px; }
#map-card.ug-v2 .ug-c { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; min-width: 0; }
#map-card.ug-v2 .ug-th { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #F5F5F5; }
#map-card.ug-v2 .ug-th img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
#map-card.ug-v2 .ug-txt { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; padding: 8px; font-size: 12px; line-height: 16px; color: #0A0A0A; }
#map-card.ug-v2 .ug-hot { position: absolute; top: 4px; right: 4px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: #FF3B30; font-size: 10px; }
#map-card.ug-v2 .ug-tt { font-size: 13px; font-weight: 600; color: #0A0A0A; line-height: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#map-card.ug-v2 .ug-tm { font-size: 11px; color: #8A8A8A; }
html body .map-pin.pv1 .pv-tips { width: max-content; }
html body .map-pin.pv1.selected .pv-tip { width: max-content; max-width: 132px; box-sizing: border-box; }

/* v296：生日选择后未满 18 岁即时提示（黑字，不用红色） */
.reg-age-warn { margin: 6px 2px 0; font-size: 13px; font-weight: 600; color: #111; line-height: 1.4; }
.reg-age-warn::before { content: "⚠ "; }
.reg-check input[type="checkbox"] { accent-color: #0A0A0A; }
/* 生日锁定（PENDING TOMMY DECISION）：编辑资料里生日只读 */
.pe2-locked .pe2-date { cursor: default; opacity: .6; }

/* ---- v298：1:1 私信对方回复前不能发图片（灰色，不用红色） ---- */
.dm-img-hint { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; font-size: 12.5px; line-height: 16px; color: #8E8E93; background: #F7F7F7; border-top: .5px solid rgba(0,0,0,.08); flex-shrink: 0; }
.dm-img-hint.hidden { display: none; }
#dm-modal .dm-plus-btn.dm-img-locked { opacity: .38; cursor: not-allowed; background: #F2F2F7; color: #AEAEB2; }

/* ---- QA 1018 #6：红色只给热帖 + 未读角标。报错文字不用红色，改成和底色反差的中性色 + ⚠；滑动删除改黑色 ---- */
html body .pe2 .form-msg { color: #F2F2F4; font-weight: 600; }          /* 编辑资料页是深色底（#0E0E11），黑字看不见，用白字 */
html body .pe2 .form-msg:not(:empty)::before { content: "⚠ "; }
html body .pe2-save:not(.off) { color: #fff; }   /* 编辑资料「保存」可点时原来是 #FF5A4E 红色 */
html body .swipe-del, html body .cswipe-del { background: var(--v3-ink); }
html body .dm-group-avatar { background: var(--v3-ink); }   /* 群聊头像原来是 #FF6B6B 红色，同样不符合规则 */

/* ---- QA 1018 #10：群聊里每条别人发的消息显示发送人（同一人连续发只在第一条显示头像 + 名字） ---- */
#dm-modal .dm-msg.dm-g { flex-direction: row; align-items: flex-start; gap: 8px; max-width: 84%; }
#dm-modal .dm-msg.dm-g-head { margin-top: 8px; }
#dm-modal .dm-g-av { width: 28px; flex: 0 0 28px; }
#dm-modal .dm-g-av .avatar { width: 28px; height: 28px; font-size: 12px; }
#dm-modal .dm-g-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
#dm-modal .dm-g-name { font-size: 12px; line-height: 16px; color: var(--v3-mute); margin: 0 0 3px 4px; cursor: pointer; }
#dm-modal .dm-g-name.dm-g-deleted { cursor: default; }
#dm-modal .dm-g-avlink { cursor: pointer; }

/* 1018 找回密码：输入框旁提示（黑字，红色只给热帖 / 未读） + 全屏设置新密码页 */
.v3-field-msg { margin: 6px 4px 2px; min-height: 0; font-size: 13px; line-height: 1.4; color: #111; text-align: left; font-weight: 500; }
.v3-field-msg:empty { display: none; }
.v3-field-msg:not(.ok):not(:empty)::before { content: "⚠ "; }
.v3-field-msg.ok::before { content: "✓ "; }
.v3-auth-forgot:disabled { opacity: .6; }
.v3-newpw { position: fixed; inset: 0; z-index: 10000; background: #fff; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: max(48px, env(safe-area-inset-top)) 22px 32px; }
.v3-newpw.hidden { display: none; }
.v3-newpw-card { width: 100%; max-width: 400px; color: #111; }
.v3-newpw-card h2 { font-size: 24px; font-weight: 800; margin: 24px 0 6px; }
.v3-newpw-card .v3-auth-sub { margin: 0 0 22px; color: #6b6b70; font-size: 14px; }
.v3-newpw-card input { width: 100%; box-sizing: border-box; height: 52px; border: 0; border-radius: 14px; background: #F4F4F6; padding: 0 16px; font: inherit; font-size: 16px; margin-top: 10px; color: #111; }
.v3-newpw-card .btn-primary { width: 100%; height: 52px; margin-top: 20px; border-radius: 14px; background: #111; color: #fff; border: 0; font-weight: 700; font-size: 16px; }
.v3-newpw-card a.btn-primary { display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.v3-newpw-card .v3-auth-secondary { display: block; margin: 16px auto 0; border: 0; background: none; font: inherit; font-size: 14px; color: #6b6b70; cursor: pointer; text-align: center; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.v3-newpw-card .v3-auth-guest { display: block; margin: 14px auto 0; }
.v3-newpw-card h2, .v3-newpw-card .v3-auth-sub { text-align: left; }

/* sql/33 群名称（v311）：群信息顶部卡片 + 改名弹层 + 系统消息，v3 白色 */
#gm-head { padding: 12px 16px 0; }
.gr-card { background: #F5F5F5; border-radius: 14px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.gr-card.gr-edit { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gr-card.gr-edit:active { background: #EDEDED; }
.gr-label { font-size: 13px; color: #8E8E93; flex: 0 0 auto; }
.gr-val { margin-left: auto; display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 70%; }
.gr-name { font-size: 15px; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-chev { color: #C7C7CC; display: flex; }
.gr-chev .ic { width: 16px; height: 16px; }
.gr-note { flex-basis: 100%; font-size: 12px; color: #8E8E93; }
#group-rename-modal { z-index: 1200; }
.gr-sheet { padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fff; }
.gr-sheet-head { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.gr-sheet-title { font-size: 16px; font-weight: 700; color: #111; }
.gr-cancel, .gr-save { border: 0; background: none; font-size: 15px; padding: 8px 4px; cursor: pointer; color: #111; }
.gr-save { font-weight: 700; }
.gr-save:disabled { color: #C7C7CC; cursor: default; }
.gr-input-wrap { position: relative; }
#gr-input { width: 100%; box-sizing: border-box; height: 46px; border-radius: 12px; border: 0; background: #F5F5F5; padding: 0 40px 0 14px; font-size: 16px; color: #111; outline: none; }
#gr-input:focus { box-shadow: 0 0 0 2px #111 inset; }
.gr-clear { position: absolute; right: 8px; top: 9px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #DADADA; color: #fff; font-size: 12px; cursor: pointer; }
.gr-meta { display: flex; justify-content: space-between; font-size: 12px; color: #8E8E93; margin-top: 8px; }
.gr-count.over { color: #111; font-weight: 700; }
.gr-err { font-size: 13px; color: #111; margin-top: 8px; min-height: 18px; }
.gr-err:not(:empty)::before { content: '⚠ '; }
.dm-sys { text-align: center; font-size: 12px; color: #8E8E93; margin: 10px 24px; line-height: 1.4; word-break: break-word; }

/* sql/34 主页置顶（v313）：网格左上角小图钉 + 别人主页列表上的「已置顶」 */
.grid-pin { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.95); color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); pointer-events: none; z-index: 1; }
.grid-pin .pin-ic { width: 13px; height: 13px; transform: rotate(35deg); }
.ipc-pinned { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #8E8E93; margin: 10px 2px 4px; }
.ipc-pinned .pin-ic { width: 13px; height: 13px; transform: rotate(35deg); }
#view-profile .my-grid > div[data-own="1"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* 资料卡：背景图铺到统计行上方（封面块 ≈196px：顶部留 86px，文字下 10px 收边，再留 16px 白给数字） */
.pp-top { position: relative; background-size: cover; background-position: center; padding-bottom: 10px; }
.pp-top > * { position: relative; z-index: 1; }
.pp-top .pp-cover2 { background: none !important; height: 86px; }
.pp-top + .pp-stats2 { margin-top: 16px; }   /* Tommy 10/23：封面底边和数字之间留白 */
.pp-top.has-cover .pp-name2 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 12px rgba(0,0,0,.35); }
.pp-top.has-cover .pp-area { color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 0 10px rgba(0,0,0,.35); }

/* iOS 11/01：自己主页的过期动态标「已结束」 */
.grid-review.grid-ended { background: rgba(142,142,147,.85); }
.st-foot { padding: 8px 16px 4px; font-size: 12px; color: var(--v3-mute); line-height: 1.4; }
