/* v317 帖子关联群聊（Ui/UX post-group/design，白色 v3；跟 iOS 1aac7f1 一致）
   Ink #0A0A0A · Surface #F5F5F5 · 线 #F0F0F0 / 描边 #E5E5E5 · 次要字 #555 / #8A8A8A · 红 #E5484D 只用于群主待审批数字 */
.pg-ic { width: 16px; height: 16px; flex: none; }

/* 发布页：群聊卡（位置卡下方 12px） */
html body .pg-cp { margin: 12px 0 0; background: #F5F5F5; border-radius: 16px; padding: 14px 16px; }
html body .pg-cp-top { display: flex; align-items: center; gap: 12px; color: #0A0A0A; }
html body .pg-cp-top .pg-ic { width: 20px; height: 20px; }
html body .pg-cp-l { flex: 1; font-size: 15px; font-weight: 600; }
html body .pg-cp .cp-sw { flex: none; }
html body .pg-cp-hint { margin: 10px 0 0 32px; font-size: 12px; line-height: 17px; color: #555; }

/* 详情：标题行（标题 flex:1 可换行，按钮 flex:none，间距 12）+ 元信息 */
html body .detail-title-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
html body .detail-title-row .detail-title { flex: 1; min-width: 0; margin-top: 0; }
html body .detail-title-row .pg-notitle { min-height: 1px; }
html body .pg-title-btn { flex: none; position: relative; }
html body .pg-title-btn:empty { display: none; }
html body .pg-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 16px; border: 0; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; font-family: inherit; }
html body .pg-btn.pg-primary { background: #0A0A0A; color: #fff; }
html body .pg-btn.pg-waiting { background: #F5F5F5; color: #555; }
html body .pg-btn.pg-muted { background: #F5F5F5; color: #8A8A8A; cursor: default; }
html body .pg-btn:disabled { opacity: 1; }
html body .pg-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 5px; border-radius: 9px; border: 2px solid #fff; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; line-height: 14px; text-align: center; }
html body .pg-meta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: #8A8A8A; }
html body .pg-meta .pg-ic { width: 12px; height: 12px; }

/* 地图图钉：群聊标识（右下 45°，0.72r；选中时跟着移动不放大） */
html body .map-pin.pv1 .pv-grp { position: absolute; z-index: 4; top: calc(86% - 7.5px); left: calc(86% - 7.5px); width: 15px; height: 15px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid #fff; background: #0A0A0A; color: #fff; padding: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
html body .map-pin.pv1 .pv-grp.mir { left: calc(14% - 7.5px); }
html body .map-pin.pv1 .pv-grp .ic { width: 9px; height: 9px; stroke-width: 2.2; }
html body .map-pin.pv1.selected .pv-grp { transform: none; }

/* 群聊信息页：加入申请（群主）/ 关联帖子 */
html body .pg-info { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
html body .pg-info:empty { display: none; }
html body .pg-info:not(:empty) { margin-top: 12px; }
html body .pg-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: #F5F5F5; color: #0A0A0A; font: inherit; text-align: left; cursor: pointer; width: 100%; box-sizing: border-box; }
html body .pg-row .pg-ic { width: 20px; height: 20px; }
html body .pg-row-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; }
html body .pg-row-t small { font-size: 12px; font-weight: 400; color: #8A8A8A; }
html body .pg-num { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
html body .pg-chev { color: #B5B5B5; display: inline-flex; }
html body .pg-chev .ic { width: 14px; height: 14px; }
html body .pg-thumb { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex: none; background: #E5E5E5; }
html body .pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 群主聊天顶部：「N 条入群申请 ›」 */
html body .pg-chat-bar { padding: 6px 12px; background: #fff; border-bottom: 1px solid #F0F0F0; }
html body .pg-chat-bar button { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: #F5F5F5; color: #0A0A0A; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
html body .pg-chat-bar button span:first-of-type { flex: none; }
html body .pg-chat-bar .pg-chev { margin-right: auto; color: #8A8A8A; }
html body .pg-chat-bar .pg-ic { width: 15px; height: 15px; }

/* 审批列表（手机全屏底部弹出；宽屏居中 560 卡片） */
html body #pg-req-modal .pgr-card { max-width: 560px; width: 100%; max-height: 86vh; padding: 0; display: flex; flex-direction: column; background: #fff; }
html body .pgr-head { display: flex; align-items: center; height: 56px; padding: 0 12px; border-bottom: 1px solid #F0F0F0; flex: none; }
html body .pgr-head b { flex: 1; text-align: center; font-size: 17px; font-weight: 600; }
html body .pgr-back, html body .pgr-sp { width: 40px; height: 40px; flex: none; border: 0; background: none; color: #0A0A0A; cursor: pointer; display: flex; align-items: center; justify-content: center; }
html body .pgr-body { overflow-y: auto; padding: 16px 20px 24px; }
html body .pgr-group { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #F5F5F5; }
html body .pgr-group > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body .pgr-group b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .pgr-group small { font-size: 12px; color: #8A8A8A; }
html body .pgr-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: #E5E5E5; display: flex; align-items: center; justify-content: center; }
html body .pgr-thumb img { width: 100%; height: 100%; object-fit: cover; }
html body .pgr-noimg { color: #8A8A8A; display: flex; }
html body .pgr-noimg .pg-ic { width: 20px; height: 20px; }
html body .pgr-full { margin-top: 12px; padding: 10px 12px; border: 1px solid #E5E5E5; border-radius: 12px; font-size: 13px; color: #555; }
html body .pgr-sec { margin: 20px 0 4px; font-size: 13px; font-weight: 500; color: #8A8A8A; }
html body .pgr-row { display: flex; align-items: center; gap: 12px; min-height: 68px; border-bottom: 1px solid #F0F0F0; }
html body .pgr-row .avatar { width: 44px; height: 44px; flex: none; }
html body .pgr-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body .pgr-who b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .pgr-who small { font-size: 12px; color: #8A8A8A; }
html body .pgr-acts { display: flex; gap: 8px; flex: none; }
html body .pgr-acts button { height: 32px; padding: 0 14px; border-radius: 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
html body .pgr-no { background: #fff; border: 1px solid #E5E5E5; color: #0A0A0A; }
html body .pgr-yes { background: #0A0A0A; border: 1px solid #0A0A0A; color: #fff; }
html body .pgr-yes:disabled { background: #F5F5F5; border-color: #F5F5F5; color: #B5B5B5; cursor: default; }
html body .pgr-done { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #8A8A8A; }
html body .pgr-done .ic { width: 13px; height: 13px; }
html body .pgr-note { margin-top: 14px; font-size: 12px; color: #8A8A8A; }
html body .pgr-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 0 24px; max-width: 300px; margin: 0 auto; }
html body .pgr-empty-ic { width: 64px; height: 64px; border-radius: 50%; background: #F5F5F5; color: #8A8A8A; display: flex; align-items: center; justify-content: center; }
html body .pgr-empty-ic .pg-ic { width: 26px; height: 26px; }
html body .pgr-empty b { font-size: 17px; font-weight: 600; color: #0A0A0A; }
html body .pgr-empty small { font-size: 13px; color: #8A8A8A; line-height: 18px; }
@media (min-width: 720px) {
  html body #pg-req-modal { align-items: center; }
  html body #pg-req-modal .pgr-card { border-radius: 24px; max-height: 80vh; }
}

/* 通知：申请合并行 / 已通过行 */
html body .pg-notif { display: flex; align-items: flex-start; gap: 12px; position: relative; }
html body .pg-notif .post-meta { flex: 1; min-width: 0; }
html body .pg-stack { position: relative; width: 44px; height: 44px; flex: none; }
html body .pg-stack .avatar { position: absolute; width: 30px !important; height: 30px !important; border: 2px solid #fff; box-sizing: content-box; font-size: 12px; }
html body .pg-stack .avatar:first-child { top: 0; left: 0; z-index: 2; }
html body .pg-stack .avatar:nth-child(2) { top: 12px; left: 12px; }
html body .pg-okic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #0A0A0A; color: #fff; display: flex; align-items: center; justify-content: center; }
html body .pg-okic .ic { width: 18px; height: 18px; }
html body .pg-n-btn { flex: none; height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid #0A0A0A; background: #0A0A0A; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; align-self: center; }
html body .pg-n-btn.ghost { background: #fff; color: #0A0A0A; border-color: #E5E5E5; }
html body .pg-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; flex: none; margin-top: 6px; }

/* v317 群成员下面「已移出的成员」（只有群主看到）→ 拉回 */
.gm-bans { padding: 0 16px 14px; }
.gm-bans:empty { display: none; }
.gm-bans-title { font-size: 13px; color: #8A8A8A; padding: 10px 0 4px; }
.gm-ban-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.gm-ban-row:last-child { border-bottom: 0; }
.gm-ban-txt { flex: 1; min-width: 0; }
.gm-ban-name { font-size: 15px; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-ban-sub { font-size: 12px; color: #8A8A8A; margin-top: 2px; }
.gm-readd { flex: none; height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid #D9D9D9; background: #fff; color: #111; font-size: 13px; font-weight: 600; cursor: pointer; }
.gm-readd:disabled { opacity: .5; cursor: default; }
.gm-kick { flex: none; height: 28px; padding: 0 12px; margin-left: 4px; border-radius: 14px; border: 1px solid #D9D9D9; background: #fff; color: #111; font-size: 13px; font-weight: 600; cursor: pointer; }
.gm-kick:disabled { opacity: .5; cursor: default; }
/* 确认框要盖在群成员 / 群信息弹窗上面（以前被压在下面，点不到） */
#confirm-modal { z-index: 1300; }

/* v318 地图预览卡片：标题右边群聊按钮（同详情页 .pg-btn，高 28 稍小） */
#map-card .mc-title-row { display: flex; align-items: flex-start; gap: 8px; }
#map-card .mc-title-row .mc-text { flex: 1; min-width: 0; }
#map-card .mc-pg { flex: none; }
#map-card .mc-pg:empty { display: none; }
/* Tommy 10/20：群聊按钮移到元信息行右侧小胶囊（高 24、12px），标题占满整行不再被截 */
#map-card .mc-meta { display: flex; align-items: center; gap: 8px; }
#map-card .mc-meta .mc-meta-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#map-card .mc-pg .pg-btn { height: 24px; font-size: 12px; gap: 4px; padding: 0 10px 0 8px; border-radius: 12px; }
#map-card .mc-pg .pg-btn svg { width: 12px; height: 12px; }
#map-card .mc-pg .pg-btn .pg-badge { transform: scale(.85); }

/* Tommy 10/20 方案 A：v3 底部卡片，点赞 / 评论行右侧小胶囊 */
.ms-stats { display: flex; align-items: center; }
.ms-stats .ms-pg { margin-left: auto; }
.ms-stats .ms-pg:empty { display: none; }
.ms-stats .ms-pg .pg-btn { height: 24px; font-size: 12px; gap: 4px; padding: 0 10px 0 8px; border-radius: 12px; }
.ms-stats .ms-pg .pg-btn svg { width: 12px; height: 12px; margin: 0; }
