/* ============ Rind · 地图社交 · 高级简约 (iOS native) ============ */
:root {
  --coral: #FF6B6B;            /* 点睛色：仅发布按钮 / 选中态 / 点赞激活 */
  --bg: #F7F7F8;              /* 页面底 (iOS grouped) */
  --card: #FFFFFF;
  --ink: #1C1C1E;             /* 主文字 */
  --ink-2: #8E8E93;           /* 次文字 */
  --ink-3: #C7C7CC;           /* 三级文字 */
  --hairline: #E5E5EA;        /* 1px 分隔线 */
  --fill: #F2F2F4;            /* 浅灰填充 */
  --radius: 12px;
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, .06);
  --tabbar-h: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.ic { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
svg.ic { max-width: 100%; max-height: 100%; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
#app { height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
main { flex: 1; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; display: none; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); }
.view.active { display: flex; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); font-size: 13px; }

/* ---------- 私信分享卡片 ---------- */
.dm-share-card {
  display: flex; gap: 10px; align-items: center;
  background: #fff; border-radius: 12px; padding: 10px;
  max-width: 240px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border: 1px solid var(--hairline);
}
.dm-msg.mine .dm-share-card { background: rgba(255,255,255,.95); }
.dm-share-img {
  width: 56px; height: 56px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: var(--fill);
}
.dm-share-body { flex: 1; min-width: 0; }
.dm-share-title {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.dm-share-author {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 12px; color: var(--ink-2);
}
.dm-share-avatar { width: 20px !important; height: 20px !important; font-size: 10px !important; }
.dm-share-txt { font-size: 13px; color: var(--ink-2); }

/* ---------- 获客 CTA ---------- */
.join-cta {
  display: flex; align-items: center; gap: 12px;
  margin: 16px -4px 4px; padding: 14px;
  background: linear-gradient(135deg, #1a1a1c 0%, #2d2d30 100%);
  border-radius: 14px;
}
.join-cta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.join-cta-txt b { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.join-cta-txt span { color: rgba(255,255,255,.7); font-size: 12px; }
.join-cta-btns { display: flex; gap: 8px; flex-shrink: 0; }
.join-cta .btn-primary { padding: 10px 20px; font-size: 14px; }
.btn-ghost-light {
  padding: 10px 16px; font-size: 14px; border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff; border: none;
}

/* ---------- 分享面板 ---------- */
.share-card { padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.share-title { font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.share-users { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; }
.share-user {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: none; background: none; cursor: pointer; flex-shrink: 0; min-width: 64px;
}
.share-user .avatar { width: 52px; height: 52px; font-size: 18px; }
.share-user span { font-size: 12px; color: var(--ink-2); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-user:active { opacity: .6; }
.share-divider { border-top: 1px solid var(--hairline); margin: 4px 0 12px; }
.share-row { display: flex; gap: 12px; }
.share-opt {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: none; background: none; cursor: pointer; padding: 8px 0;
}
.share-opt .ic-wrap {
  width: 48px; height: 48px; border-radius: 50%; background: var(--fill);
  display: flex; align-items: center; justify-content: center;
}
.share-opt .ic-wrap .ic { width: 22px; height: 22px; }
.share-opt span { font-size: 12px; color: var(--ink-2); }
.share-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 8px 0 12px; }

/* ---------- 个人资料预览 ---------- */
#profile-preview .modal-card { max-width: 340px; margin: 0 auto; border-radius: 20px; padding: 0 0 16px; overflow: hidden; }
.pp-cover { height: 140px; margin: 0; border-radius: 0; background-size: cover; background-position: center; }
.pp-cover-default { background: linear-gradient(135deg, #2b2b2e 0%, #4a4a4f 50%, var(--coral) 130%); }
.pp-avatar { margin-top: -30px; }
.pp-avatar .avatar { width: 60px; height: 60px; font-size: 22px; border: 3px solid #fff; margin: 0 auto; }
.pp-name { font-size: 17px; font-weight: 700; margin-top: 6px; }
.pp-bio { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; padding: 0 16px; }
.pp-stats { display: flex; justify-content: center; gap: 28px; padding: 10px 0 2px; }
.pp-stats .stat { text-align: center; }
.pp-stats .stat b { display: block; font-size: 15px; }
.pp-stats .stat span { font-size: 11.5px; color: var(--ink-3); }
.pp-posts { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 0; }
.pp-post {
  display: flex; gap: 10px; align-items: center; text-align: left;
  padding: 8px; border-radius: 10px; background: var(--fill);
  border: none; width: 100%; cursor: pointer;
}
.pp-post:active { opacity: .7; }
.pp-post img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.pp-post-txt { flex: 1; min-width: 0; }
.pp-post-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-post-content { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.pp-actions { display: flex; gap: 8px; justify-content: center; padding: 12px 12px 0; }
.pp-actions .follow-btn, .pp-actions .btn-ghost { padding: 8px 18px; border-radius: 20px; font-size: 13.5px; }

/* ---------- OAuth 登录按钮 ---------- */
.oauth-div { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--ink-3); font-size: 13px; }
.oauth-div::before, .oauth-div::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; margin-bottom: 10px;
  border-radius: 12px; border: 1px solid var(--hairline);
  background: var(--card); font-size: 15px; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.oauth-btn:active { background: var(--fill); }
.oauth-apple { background: #000; color: #fff; border-color: #000; }
.oauth-apple:active { background: #222; }

/* ---------- 私信列表（微信风） ---------- */
#view-social .swipe-wrap { border-radius: 0; margin-bottom: 0; background: var(--card); }
#view-social .swipe-wrap .swipe-row { border-radius: 0; }
.dm-conv {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; background: #fff;
  border-bottom: 1px solid #E5E5EA;
}
.dm-conv:active { background: #F2F2F7; }
.dm-conv .avatar { width: 44px; height: 44px; font-size: 18px; flex-shrink: 0; }
.dm-conv-main { flex: 1; min-width: 0; }
.dm-conv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-conv-name { font-size: 17px; font-weight: 600; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.dm-conv-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dm-conv-time { font-size: 13px; color: #8E8E93; }
.dm-chev { color: #C7C7CC; display: flex; }
.dm-chev .ic { width: 14px; height: 14px; }
.dm-conv-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.dm-conv-preview { font-size: 15px; color: #8E8E93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.dm-unread {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: #FF3B30; color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- 聊天窗口 ---------- */
/* ---------- 左滑操作（iOS 风格：图标+文字上下排列） ---------- */
.swipe-wrap { position: relative; overflow: hidden; }
.swipe-wrap .swipe-row { position: relative; z-index: 1; background: #fff; }
.swipe-actions {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 0;
  display: flex;
}
.swipe-btn {
  width: 76px; border: none; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; font-weight: 500;
}
.swipe-btn .ic { width: 22px; height: 22px; }
.swipe-pin { background: #8E8E93; }
.swipe-del { background: #FF3B30; }
.page-head { padding: 20px 18px 10px; }
.page-head h1 { font-size: 20px; font-weight: 600; letter-spacing: 0; }

/* ---------- 底部导航 (iOS tab bar) ---------- */
#tabbar {
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .88);
  border-top: 1px solid var(--hairline);
  display: flex;
  z-index: 500;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.tab {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--ink-2); font-size: 10px; font-weight: 500; height: var(--tabbar-h);
}
.tab.active { color: var(--ink); font-weight: 600; }
.tab-ico { line-height: 0; }
.tab-ico svg { width: 25px; height: 25px; display: block; }

/* ---------- 按钮 ---------- */
.btn-primary {
  width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: var(--coral);
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn-primary:disabled { opacity: .5; cursor: wait; }
.btn-ghost {
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--hairline);
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer;
}
.btn-danger {
  padding: 11px 18px; border-radius: 10px; border: none;
  background: var(--coral); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
/* 中性操作按钮（原 teal）：深色胶囊 / 描边款 */
.btn-teal {
  padding: 9px 18px; border-radius: 999px; border: none;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-teal.outline { background: #fff; color: var(--ink); border: 1px solid var(--hairline); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline); cursor: pointer;
  background: #fff; box-shadow: var(--shadow-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 表单 ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); outline: none;
  min-height: 48px; /* iOS 日期选择器触控优化 */
}
input:focus, textarea:focus, select:focus { border-color: var(--ink-3); }
textarea { resize: vertical; min-height: 110px; }
.form-msg { min-height: 20px; font-size: 13px; color: var(--coral); margin-top: 8px; text-align: center; }
.form-msg.ok { color: var(--ink-2); }

/* ---------- 弹窗 (底部浮层) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .4);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-card {
  background: #fff; width: 100%; max-width: 520px;
  max-height: 92dvh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  position: relative; animation: slideUp .25s ease;
}
.modal-small h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; text-align: center; }
.modal-card input { margin-bottom: 10px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--fill); font-size: 14px; cursor: pointer; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.row-btns { display: flex; gap: 10px; margin-top: 16px; }
.row-btns .btn-ghost, .row-btns .btn-danger { flex: 1; }

/* ---------- 底部动作菜单 (iOS action sheet) ---------- */
#avatar-sheet .modal-card, #action-sheet .modal-card { background: transparent; box-shadow: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
#action-sheet .modal-card { background: var(--bg); border-radius: 20px 20px 0 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px rgba(0,0,0,.12); }
#action-sheet .modal-card h3 { color: var(--ink); text-shadow: none; }
#action-sheet #action-sheet-opts { padding: 0 12px; }
#action-sheet .sheet-opt {
  background: var(--card); color: var(--ink);
  border-radius: 12px; margin-bottom: 2px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
#action-sheet .sheet-opt:active { background: var(--fill); }
#action-sheet .sheet-cancel { margin: 8px 12px 0; background: var(--card); color: var(--ink); font-weight: 600; }
.sheet-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 18px; margin-bottom: 8px;
  border: none; border-radius: 14px;
  background: rgba(46, 46, 50, .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-size: 17px; font-weight: 500; cursor: pointer; color: #fff; text-align: left;
}
.sheet-opt .ic { width: 22px; height: 22px; flex-shrink: 0; }
.sheet-opt:active { background: rgba(60, 60, 66, .9); }
.sheet-opt.sheet-primary { color: var(--coral); font-weight: 600; }
.sheet-opt.sheet-primary .ic { color: var(--coral); }
.sheet-cancel { font-weight: 600; color: #fff; margin-bottom: 0; justify-content: center; }
#avatar-sheet h3, #action-sheet h3 { color: #fff; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* ---------- 分类选择器 ---------- */
.cat-picker-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 16px; cursor: pointer; color: var(--ink); text-align: left;
}
.cat-picker-btn .cat-picker-icon { display: inline-flex; color: var(--coral); }
.cat-picker-btn .cat-picker-icon .ic { width: 22px; height: 22px; display: block; }
.cat-picker-btn .cat-picker-name { flex: 1; }
.cat-picker-btn .chev { color: var(--ink-3); font-size: 18px; transform: rotate(90deg); }
#action-sheet-opts .sheet-opt .ic { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- 封面更换页 ---------- */
.modal-full {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  border-radius: 0; padding: 0; background: #1c1c1e;
  display: flex; flex-direction: column;
}
#cover-editor-body { position: relative; }
.ce-close {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.4); color: #fff; font-size: 18px; cursor: pointer;
  z-index: 2;
}
.ce-compact { padding: 20px 16px 8px; position: relative; }
.ce-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: none; font-size: 16px; z-index: 2; }
.ce-compact-preview {
  height: 160px; border-radius: 12px;
  background: linear-gradient(135deg, #2b2b2e 0%, #4a4a4f 50%, var(--coral) 130%);
  background-size: cover; background-position: center;
  touch-action: none; cursor: grab;
}
.ce-compact .ce-hint { color: var(--ink-3); }
.ce-compact .ce-actions { padding: 12px 0 8px; }
.ce-compact .ce-btn { background: var(--fill); color: var(--ink); }
.ce-compact .ce-btn-primary { background: var(--coral); color: #fff; }
/* 旧全屏版保留兼容 */
.ce-preview {
  flex: 1; background: linear-gradient(135deg, #2b2b2e 0%, #4a4a4f 50%, var(--coral) 130%);
  background-size: cover; background-position: center;
  touch-action: none; cursor: grab;
}
.ce-hint {
  text-align: center; color: rgba(255,255,255,.7); font-size: 13px;
  padding: 8px 0 0;
}
.ce-btn-primary { background: var(--coral); }
.ce-actions {
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 12px;
}
.ce-btn {
  flex: 1; padding: 14px; border-radius: 12px; border: none;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
}

/* ---------- 个人主页（抖音风） ---------- */
.pf-hero {
  position: relative;
  background: linear-gradient(135deg, #2b2b2e 0%, #4a4a4f 50%, var(--coral) 130%);
  background-size: cover; background-position: center;
  margin: -16px -16px 0; cursor: pointer;
  padding-bottom: 18px;
}
.pf-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.pf-hero-inner {
  position: relative; z-index: 2;
  text-align: center; padding-top: 110px;
}
.pf-hero .pf-name, .pf-hero .pf-bio { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.pf-hero .pf-stats .stat b { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.pf-hero .pf-stats .stat span { color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.pf-hero .pf-edit-btn { background: rgba(255,255,255,.92); }
.pf-settings {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px));
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.35); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; backdrop-filter: blur(4px);
}
.pf-settings { right: 14px; }
.pf-settings .ic { width: 18px; height: 18px; }
.pf-avatar.avatar {
  width: 84px; height: 84px; font-size: 30px;
  border: 3px solid var(--bg); margin: 0 auto;
  position: relative; z-index: 2;
}
.pf-name { font-size: 20px; font-weight: 700; margin-top: 8px; }
.pf-bio { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.pf-edit-btn {
  margin-top: 12px; padding: 8px 28px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 14px; color: var(--ink); cursor: pointer;
}
.pf-stats {
  display: flex; justify-content: center; gap: 44px;
  padding: 16px 0 6px;
}
.pf-stats .stat { text-align: center; }
.pf-stats .stat b { display: block; font-size: 18px; }
.pf-stats .stat span { font-size: 12.5px; color: var(--ink-3); }
.pf-tabs { margin-top: 10px; }

/* ---------- 发布页新布局 ---------- */
.pub-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px 12px;
}
.pub-bottom-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 4px calc(16px + env(safe-area-inset-bottom));
  position: sticky; bottom: 0; background: var(--bg);
  border-top: 1px solid var(--hairline); margin-top: 16px;
}
.pub-cancel {
  border: none; background: transparent; font-size: 16px;
  color: var(--ink-2); padding: 8px 12px; cursor: pointer;
}
.pub-submit-top {
  width: auto; padding: 8px 22px; font-size: 15px; border-radius: 20px;
}
.cat-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 2px; scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--card);
  font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.cat-chip .ic { width: 16px; height: 16px; }
.cat-chip.on {
  border-color: var(--coral); color: var(--coral);
  background: color-mix(in srgb, var(--coral) 8%, var(--card));
}
.cat-chip.on .ic { stroke: var(--coral); }
.loc-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 4px; cursor: pointer;
  border-top: 1px solid var(--line); margin-top: 4px;
}
.loc-pin { font-size: 16px; }
.loc-text { flex: 1; font-size: 14px; color: var(--ink-2); }
.loc-hint { padding: 8px 4px 0; font-size: 12px; }
#publish-map-wrap { margin-top: 4px; }
#publish-map { height: 220px; border-radius: 12px; overflow: hidden; }

/* ---------- 地图聚合簇 ---------- */
.map-cluster-wrap { background: transparent; border: none; }
.map-cluster {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ---------- 法律文件 ---------- */
.legal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
.legal-body { padding: 18px; overflow-y: auto; font-size: 14px; line-height: 1.65; color: var(--ink); }
.legal-body h4 { font-size: 17px; margin: 0 0 4px; }
.legal-body h5 { font-size: 14px; margin: 16px 0 6px; }
.legal-body p { margin: 6px 0; }
.legal-date { color: var(--ink-3); font-size: 12px; }
.legal-note { color: var(--ink-3); font-size: 12px; font-style: italic; margin-top: 18px; }

/* ---------- 私信图片 ---------- */
.dm-img-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border: none; border-radius: 50%; background: transparent;
  color: var(--ink-2); cursor: pointer;
}
.dm-img-btn .ic { width: 22px; height: 22px; display: block; }
.dm-img-btn:active { background: var(--fill); }
.dm-msg .dm-img {
  max-width: 220px; max-height: 220px; border-radius: 12px;
  display: block; margin-bottom: 4px; cursor: pointer;
}
.dm-msg.mine .dm-img { margin-left: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px); transform: translateX(-50%);
  background: rgba(28, 28, 30, .92); color: #fff; font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 12px; z-index: 2000;
  max-width: 86vw; text-align: center; animation: fadeIn .2s ease;
  pointer-events: none;
}
/* 有弹窗打开时 toast 移到顶部，避免盖住弹窗底部按钮 */
body:has(.modal:not(.hidden)) .toast { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 16px); }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; } }

/* ---------- 分段选择 (iOS segmented) ---------- */
.seg-tabs {
  display: flex; padding: 2px; margin: 4px 18px 10px;
  background: #E9E9EE; border-radius: 10px; flex-shrink: 0;
}
.seg-tabs .seg {
  flex: 1; padding: 8px; border: none; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 400;
  position: relative;
}
.seg-tabs .seg.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.modal-card .seg-tabs { margin: 0 0 14px; }

/* ---------- 分类 chips ---------- */
.chips { display: flex; gap: 8px; padding: 2px 18px 12px; overflow-x: auto; flex-shrink: 0; }
/* iOS 风格搜索框（发现流顶部） */
.feed-search { padding: 4px 14px 10px; flex-shrink: 0; }
.feed-search input {
  width: 100%; padding: 10px 14px 10px 36px; border: none; border-radius: 12px;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 16px 16px;
  font-size: 15px; font-family: inherit; color: var(--ink); outline: none;
}
.feed-search input::placeholder { color: var(--ink-3); }
.chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hairline);
  background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2); white-space: nowrap;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

/* ---------- 动态卡片（iOS 原生风格 v224） ---------- */
.feed-list { padding: 2px 14px calc(var(--tabbar-h) + 20px); display: flex; flex-direction: column; gap: 12px; }
.post-card {
  background: var(--card); border-radius: 16px; border: 1px solid var(--hairline);
  padding: 16px; cursor: pointer;
}
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: #E9E9EE; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; color: var(--ink-2); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { flex: 1; min-width: 0; }
.post-author { font-weight: 600; font-size: 15px; }
.post-time { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.cat-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; background: #FFF4E5; color: #B7791F;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.cat-tag .ic { width: 13px; height: 13px; }
.post-title {
  font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0 0 6px;
  color: var(--ink); word-break: break-word;
}
.post-content {
  font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px;
  white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 图片：单张全宽，多张2列网格 */
.post-imgs { margin-bottom: 12px; }
.post-imgs.one img {
  width: 100%; border-radius: 12px; display: block;
  max-height: 340px; object-fit: cover; background: var(--fill);
}
.post-imgs.grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.post-imgs.grid img {
  width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover;
  background: var(--fill); display: block;
}
.post-actions { display: flex; align-items: center; padding: 6px 0 2px; }
.act-btn {
  flex: 1; border: none; background: none; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 4px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.act-btn:active { background: var(--fill); }
.act-btn .ic { width: 20px; height: 20px; display: block; }
.act-btn.on { color: var(--coral); font-weight: 600; }
.act-btn.on .ic { fill: var(--coral); stroke: var(--coral); }
.act-btn.fav-on { color: #E8A020; font-weight: 600; }
.act-btn.fav-on .ic { fill: #E8A020; stroke: #E8A020; }
/* 卡片内评论预览 */
.post-cpreview { margin-top: 4px; }
.post-cpreview:empty { display: none; }
.cp-title { font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 8px 0 4px; border-top: 1px solid var(--hairline); margin-top: 6px; }
.cp-item { display: flex; gap: 8px; padding: 6px 0; align-items: flex-start; }
.cp-item .avatar { width: 28px; height: 28px; font-size: 13px; }
.cp-body { flex: 1; min-width: 0; }
.cp-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.cp-meta b { color: var(--ink-2); font-weight: 600; }
.cp-text { font-size: 13.5px; color: var(--ink); line-height: 1.4; word-break: break-word; }
/* 旧单图类保留兼容 */
.post-img { width: 100%; border-radius: 12px; margin-bottom: 12px; display: block; max-height: 340px; object-fit: cover; background: var(--fill); }

/* ---------- 空状态 / 加载 ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--ink-2); font-size: 14px; }
.empty .big { font-size: 38px; margin-bottom: 10px; opacity: .9; }
.empty .big .ic { width: 48px; height: 48px; color: var(--ink-3); }
.loading { text-align: center; padding: 30px; color: var(--ink-2); font-size: 14px; }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 8px; border-radius: 50%;
  border: 2.5px solid var(--hairline); border-top-color: var(--ink-2);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 地图页 ---------- */
#view-map { overflow: hidden; background: transparent; }
#map { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 1; }
#map canvas { display: block; }
.map-topbar {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 500;
  display: flex; gap: 10px;
}
.map-topbar select {
  width: auto; flex: 1; border: 1px solid var(--hairline); font-weight: 500; font-size: 14px;
  box-shadow: var(--shadow-soft); border-radius: 999px; padding: 10px 14px;
}
.map-topbar .icon-btn { border: 1px solid var(--hairline); }
/* 定位按钮：地图右侧垂直居中浮动 */
.map-locate-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--hairline);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.map-locate-btn:active { transform: translateY(-50%) scale(.94); }
.fab {
  position: absolute; z-index: 500; right: 16px; bottom: calc(var(--tabbar-h) + 88px);
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--coral); color: #fff;
  font-size: 30px; font-weight: 300; line-height: 1; box-shadow: 0 4px 14px rgba(255, 107, 107, .35);
  display: flex; align-items: center; justify-content: center;
}
.map-card {
  position: absolute; z-index: 600; left: 12px; right: 12px;
  top: 76px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--hairline);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
  padding: 12px 14px; cursor: pointer; animation: slideUp .22s ease;
  display: flex; gap: 12px; align-items: center;
}
.map-card img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--fill); }
.map-card .mc-body { flex: 1; min-width: 0; }
.map-card .mc-text { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-card .mc-meta { font-size: 12px; color: var(--ink-2); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.map-card .mc-meta .ic { width: 13px; height: 13px; }
.map-card .mc-del {
  flex-shrink: 0; width: 36px; height: 36px; border: none; background: none;
  color: var(--coral); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.map-card .mc-del:active { background: var(--fill); }
.map-card .mc-del .ic { width: 20px; height: 20px; }

/* 头像图钉：白色圆形 + 细描边 + 淡阴影 */
.map-pin.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #E9E9EE;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .08);
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.map-pin.avatar.selected { transform: scale(1.22); border-color: var(--coral); }
.map-pin.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.map-pin.avatar.me { border-color: var(--coral); }
.map-pin.avatar .pin-initial { color: var(--ink-2); font-weight: 600; font-size: 16px; }
.map-pin.avatar .pin-cat {
  position: absolute; right: -4px; bottom: -4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: .5px solid var(--hairline);
  font-size: 10px; line-height: 16px; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  display: flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.map-pin.avatar .pin-cat .ic { width: 11px; height: 11px; display: block; }
.chip .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* 聚合气泡：极简 */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid var(--hairline);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.marker-cluster div {
  background: var(--ink) !important; color: #fff !important;
  font: 600 12px -apple-system, sans-serif !important;
}
.marker-cluster span { line-height: 30px !important; }
/* MapLibre 聚合：珊瑚色数字圆 */
.map-pin.cluster {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 700 14px -apple-system, sans-serif;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  cursor: pointer;
}
/* 我的位置蓝点 */
.my-location-dot { width: 24px; height: 24px; position: relative; }
.my-location-dot .dot-core {
  position: absolute; left: 7px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #1a73e8; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.my-location-dot .dot-pulse {
  position: absolute; left: 2px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(26,115,232,.25);
  animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
/* 聚合展开：左选右预览 */
.mc-split { display: flex; max-height: 45vh; min-height: 200px; }
.mc-split-list { width: 38%; border-right: 1px solid var(--hairline); overflow-y: auto; flex-shrink: 0; }
.mc-split-item {
  display: flex; gap: 8px; padding: 10px; cursor: pointer;
  border-bottom: 1px solid var(--hairline); align-items: center;
}
.mc-split-item.active { background: var(--fill); }
.mc-split-item .mc-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mc-split-item .mc-avatar-fallback {
  width: 28px; height: 28px; border-radius: 50%; background: #E9E9EE; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.mc-split-meta { min-width: 0; }
.mc-split-name { font-size: 12px; font-weight: 600; }
.mc-split-title { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-split-preview { flex: 1; overflow-y: auto; padding: 12px; }
.mc-preview { cursor: pointer; }
.mc-preview-img { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.mc-preview-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mc-preview-text { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 8px; }
.mc-preview-meta { font-size: 11px; color: var(--ink-3); margin-bottom: 10px; }
.mc-preview-open {
  width: 100%; padding: 8px; border: none; border-radius: 8px;
  background: var(--coral); color: #fff; font-size: 14px; font-weight: 600;
}

/* ---------- 发布页 ---------- */
.publish-body { padding: 4px 18px calc(var(--tabbar-h) + 24px); display: flex; flex-direction: column; gap: 14px; }
.photo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-thumb { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; position: relative; background: var(--fill); }
.photo-add {
  width: 84px; height: 84px; border-radius: 8px; border: 1.5px dashed var(--ink-3);
  background: #fff; color: var(--ink-3); font-size: 26px; font-weight: 300; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.photo-wrap { position: relative; }
.photo-del {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(28, 28, 30, .85); color: #fff; border: none; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#publish-map { height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); z-index: 1; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: -8px; }

/* ---------- 详情 ---------- */
.detail-imgs { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.detail-imgs img { width: 100%; border-radius: 10px; display: block; background: var(--fill); }
.detail-content { font-size: 16px; white-space: pre-wrap; word-break: break-word; margin: 8px 0; }
.detail-actions { display: flex; gap: 6px; margin: 12px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.comment .avatar { width: 32px; height: 32px; font-size: 13px; }
.comment-body { flex: 1; }
.comment-author { font-size: 13px; font-weight: 600; }
.comment-text { font-size: 14px; word-break: break-word; margin-top: 2px; }
.comment-input-row { display: flex; gap: 8px; margin-top: 12px; position: sticky; bottom: 0; background: #fff; padding: 10px 0; border-top: 1px solid var(--hairline); }
.comment-input-row input { flex: 1; border-radius: 999px; }
.comment-input-row button { flex-shrink: 0; width: auto; padding: 12px 22px; border-radius: 999px; }
.author-row { display: flex; align-items: center; gap: 10px; }
#post-detail-body { padding-top: 26px; } /* 避开右上角关闭按钮 */
.author-row .post-meta { flex: 1; }

/* ---------- 社交 ---------- */
.social-search { padding: 10px 16px 0; position: relative; display: flex; align-items: center; }
.social-search input {
  width: 100%; padding: 10px 36px; border-radius: 10px; border: none;
  background: #F2F2F7; font-size: 15px; outline: none; box-sizing: border-box; color: #000;
}
.social-search input::placeholder { color: #8E8E93; }
.social-search input:focus { background: #E5E5EA; }
.search-ic { position: absolute; left: 28px; color: #8E8E93; pointer-events: none; display: flex; }
.search-ic .ic { width: 17px; height: 17px; }
.search-mic { position: absolute; right: 28px; color: #8E8E93; pointer-events: none; display: flex; }
.search-mic .ic { width: 17px; height: 17px; }
.user-row {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--hairline);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
}
.user-row .post-meta { flex: 1; }
.follow-btn {
  padding: 7px 18px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.follow-btn.following { background: var(--fill); color: var(--ink-2); font-weight: 500; }
#social-body { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 我的 (iOS 设置式) ---------- */
.profile-top { padding: 26px 18px 14px; display: flex; gap: 14px; align-items: center; background: #fff; border-bottom: 1px solid var(--hairline); }
.profile-top .avatar { width: 64px; height: 64px; font-size: 26px; }
.profile-name { font-size: 19px; font-weight: 600; }
.profile-bio { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.profile-stats { display: flex; background: #fff; border-bottom: 1px solid var(--hairline); padding: 10px 18px 14px; }
.stat { flex: 1; text-align: center; }
.stat b { display: block; font-size: 17px; font-weight: 600; }
.stat span { font-size: 12px; color: var(--ink-2); }
.profile-actions { padding: 14px 18px 4px; display: flex; flex-direction: column; gap: 0; }
.profile-actions .row-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--hairline); cursor: pointer;
  padding: 13px 16px; font-size: 15px; font-weight: 500; color: var(--ink); text-align: left;
}
.profile-actions .row-item:first-child { border-radius: 12px 12px 0 0; border-bottom: none; }
.profile-actions .row-item:last-child { border-radius: 0 0 12px 12px; }
.profile-actions .row-item .chev { color: var(--ink-3); font-size: 18px; }
.profile-actions .row-item .ri-ic { display: inline-flex; margin-right: 10px; color: var(--ink-2); vertical-align: -3px; }
.profile-actions .row-item .ri-ic .ic { width: 20px; height: 20px; display: block; }
.profile-actions .row-item:last-child { color: var(--coral); }
.profile-actions .row-item:last-child .ri-ic { color: var(--coral); }
.my-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 18px calc(var(--tabbar-h) + 20px); }
.my-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; background: var(--fill); }
.my-grid .noimg {
  aspect-ratio: 1; border-radius: 8px; background: var(--fill); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-2);
  padding: 8px; text-align: center; overflow: hidden;
}
.login-hint { padding: 60px 30px; text-align: center; color: var(--ink-2); font-size: 14px; }
.login-hint .big { font-size: 44px; margin-bottom: 12px; opacity: .9; }
.login-hint .big .ic { width: 56px; height: 56px; color: var(--ink-3); }
.login-hint .btn-primary { max-width: 220px; margin: 16px auto 0; }

.leaflet-container { font-family: inherit; background: #E9E9EB; }

/* 私信 */
.modal-full { width: 100%; max-width: 560px; height: 100%; max-height: 100%; border-radius: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); flex-shrink: 0; background: #fff; }
.dm-back { border: none; background: none; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; padding: 0 6px; }
.dm-name { font-size: 16px; font-weight: 700; }
.dm-head .avatar { width: 38px; height: 38px; font-size: 15px; }
.dm-msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; background: var(--fill); }
.dm-msg { display: flex; flex-direction: column; max-width: 76%; align-self: flex-start; animation: msgIn .2s ease; }
.dm-msg.mine { align-self: flex-end; align-items: flex-end; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dm-bubble { padding: 10px 14px; border-radius: 4px 18px 18px 18px; font-size: 15.5px; line-height: 1.5; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); word-break: break-word; }
.dm-msg.mine .dm-bubble { background: var(--coral); color: #fff; border-radius: 18px 4px 18px 18px; box-shadow: none; }
.dm-time { font-size: 11px; color: var(--ink-3); margin-top: 4px; padding: 0 2px; }
.dm-input-row { display: flex; gap: 8px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: var(--card); flex-shrink: 0; }
.dm-input-row input { flex: 1; border: none; border-radius: 20px; padding: 10px 16px; font-size: 16px; outline: none; min-width: 0; background: var(--fill); }
.dm-input-row input:focus { background: #fff; box-shadow: 0 0 0 1.5px var(--coral); }
.dm-input-row .btn-primary { width: auto; flex-shrink: 0; padding: 9px 22px; border-radius: 20px; font-size: 15px; font-weight: 600; }
.dm-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
@media (min-width: 600px) { .modal-full { height: 92%; border-radius: var(--radius); } }

/* 评论回复 */
.comment.is-reply { margin-left: 44px; }
.comment-ops { display: flex; gap: 2px; flex-shrink: 0; align-items: flex-start; }
.reply-tag { color: var(--coral); font-size: 13px; margin-right: 4px; }
.reply-hint { font-size: 13px; color: var(--ink-2); padding: 6px 14px 0; }
.reply-hint button { border: none; background: none; color: var(--coral); font-size: 13px; cursor: pointer; }

/* 未读红点 */
.unread-badge {
  flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--coral); color: #fff; font-size: 12px; font-weight: 600;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.dm-tab-dot {
  position: absolute; top: 8px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  pointer-events: none;
}
#tabbar .tab-ico { position: relative; }
#tabbar .tab-ico .dm-tab-dot { top: 2px; right: calc(50% - 14px); }

/* 通知列表 */
.notif-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: #fff;
  border-bottom: 1px solid var(--hairline); cursor: pointer;
}
.notif-row:active { background: var(--fill); }
.notif-row.unread { background: #FFF9F7; }
.notif-row .post-meta { flex: 1; min-width: 0; }

/* 图钉标题 */
.pin-title-tip {
  background: rgba(255, 255, 255, .96); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 600;
  color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  pointer-events: none; z-index: 10;
}
.pin-title-tip::before { display: none; }
.map-pin { position: relative; }
/* v195 群聊标识单独显示在标题旁边 */
.pin-title-wrap {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; z-index: 10; pointer-events: none;
}
.pin-title-wrap .pin-title-tip {
  position: static; transform: none; bottom: auto; left: auto;
}
.pin-group-badge-standalone {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: #FF6B6B; color: #fff; cursor: pointer; pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pin-group-badge-standalone .ic { width: 14px; height: 14px; }
/* v200 同人聚合：数字角标+标题竖列+并排预览 */
.pin-count-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: #FF6B6B; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: 12;
}
.pin-titles-stack {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 1px; align-items: center; z-index: 10;
  pointer-events: none;
}
.pin-title-tip.stacked {
  position: static; transform: none;
  padding: 3px 8px; font-size: 12px; line-height: 1.2;
  margin-bottom: -4px;
}
.pin-title-tip.stacked:last-child { margin-bottom: 0; }
.ug-previews {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; padding: 12px; max-height: 60vh;
}
.ug-preview-card {
  flex: none; width: 100%;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); cursor: pointer;
}
.ug-preview-img { width: 100%; height: 120px; object-fit: cover; }
.ug-preview-title { font-size: 14px; font-weight: 700; padding: 8px 10px 0; }
.ug-preview-text { font-size: 13px; color: #666; padding: 4px 10px; }
.ug-preview-meta { font-size: 12px; color: #999; padding: 0 10px 10px; }
/* 珊瑚色预览框 - 85% 宽度最舒服 */
.ug-previews.coral {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
  border-radius: 16px; padding: 12px;
  width: 85%; margin: 0 auto;
}
.ug-previews.coral .ug-preview-card {
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(255,255,255,.5);
}
/* 地图聚合弹窗内的卡片：标题换行，避免挤压时间 */
.ug-previews .post-head { flex-wrap: wrap; }
.ug-previews .post-meta { flex: 1 1 auto; min-width: 0; }
.ug-previews .post-title { flex: 1 1 100%; margin-top: 4px; }
.ug-previews .post-time { white-space: nowrap; }
/* 聚合预览时去掉地图卡片白框 */
#map-card.no-white {
  background: transparent; box-shadow: none; padding: 0;
}
/* 详情页悬浮效果 */
#post-modal .modal-card {
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  border-radius: 20px;
  animation: floatUp .25s ease-out;
}
@keyframes floatUp {
  from { transform: translateY(30px); opacity: .8; }
  to { transform: translateY(0); opacity: 1; }
}
/* v203 密度控制：热力+更多提示 */
.map-pin.heat {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,107,107,.85); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.map-more-hint {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.7); color: #fff; font-size: 13px;
  padding: 8px 16px; border-radius: 20px; z-index: 20;
  pointer-events: none; white-space: nowrap;
}
.map-more-hint.hidden { display: none; }
/* 独立注册表单 */
.reg-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: #333; margin: 10px 0; cursor: pointer;
}
.reg-check input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: #FF6B6B;
}
.reg-check a { color: #FF6B6B; text-decoration: underline; }
/* 出生日期三下拉框 */
.reg-bday-row { display: flex; gap: 8px; margin-bottom: 10px; }
.reg-bday-row select {
  flex: 1; padding: 12px 8px; border: 1px solid var(--hairline); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
  min-height: 48px; appearance: auto;
}
#reg-birthday {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 16px; margin: 8px 0; box-sizing: border-box;
}
/* feed 卡片标题 */
.post-title { font-size: 16px; font-weight: 700; margin: 8px 0 0; }
/* 详情页标题 */
.detail-title { font-size: 20px; font-weight: 700; margin: 10px 0 6px; }
/* 发布页标题输入 */
#pub-title {
  width: 100%; border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px 14px; font-size: 16px; font-weight: 600; outline: none;
  margin-bottom: 10px;
}
#pub-title:focus { border-color: var(--coral); }

/* 经典水滴图钉 */
.pin-classic { display: flex; flex-direction: column; align-items: center; }
.pin-classic .pin-head {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
  overflow: hidden; position: relative; background: #E9E9EE;
  display: flex; align-items: center; justify-content: center;
}
.pin-classic .pin-head img { width: 100%; height: 100%; object-fit: cover; }
.pin-classic .pin-head .pin-initial {
  font-size: 18px; font-weight: 700; color: var(--ink-2);
}
.pin-classic.me .pin-head { border-color: var(--teal); }
.pin-classic .pin-cat {
  position: absolute; right: -2px; bottom: -2px;
  font-size: 14px; line-height: 1;
  background: #fff; border-radius: 50%; padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.pin-classic .pin-point {
  width: 0; height: 0; margin-top: -3px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .22));
}
.pin-classic.me .pin-point { border-top-color: var(--teal); }
.pin-classic .pin-head-coral { background: var(--coral); border-color: #fff; }
.pin-classic .pin-point-coral { border-top-color: var(--coral); }
.pin-classic.selected .pin-head { border-color: var(--coral); }
.pin-classic.selected .pin-point { border-top-color: var(--coral); }

/* 发布合成框 */
.compose-box {
  background: #fff; border: 1px solid var(--hairline); border-radius: 14px;
  overflow: hidden; margin-bottom: 2px;
}
.compose-box #pub-title {
  width: 100%; border: none; border-bottom: 1px solid var(--hairline);
  border-radius: 0; padding: 13px 14px; font-size: 16px; font-weight: 600;
  outline: none; margin-bottom: 0;
}
.compose-box #pub-content {
  width: 100%; border: none; padding: 13px 14px;
  min-height: 110px; font-size: 15px; outline: none; resize: none;
}
.compose-box .photo-row { padding: 4px 14px 14px; }

/* 我的位置蓝点 */
.my-loc-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: #2D7FF9; border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
  position: relative;
}
.my-loc-pulse {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(45, 127, 249, .5);
  animation: locPulse 2s ease-out infinite;
}
@keyframes locPulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* 举报管理 */
.report-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline);
}
.report-title { font-size: 15px; font-weight: 600; }
.report-meta { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.report-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }

/* 资料编辑页 */
.pep { padding-bottom: 24px; background: #f8f8f9; min-height: 100%; }
.pep-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 5; border-bottom: 1px solid #f0f0f2; }
.pep-back { font-size: 30px; background: none; border: none; color: #1a1a1a; line-height: 1; padding: 0 4px; }
.pep-title { font-size: 17px; font-weight: 600; color: #1a1a1a; letter-spacing: .5px; }
.pep-cover { height: 200px; background: linear-gradient(135deg, #e8e6e0, #d8d4c8) center/cover; position: relative; }
.pep-avatar-wrap { display: flex; justify-content: center; margin-top: -50px; position: relative; z-index: 2; }
.pep-avatar { width: 100px; height: 100px; border-radius: 50%; background: #e0e0e0; border: 4px solid #fff; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #999; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.pep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pep-avatar-cam { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.55); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 2px solid #fff; }
.pep-rows { margin-top: 20px; background: #fff; border-radius: 16px; margin-left: 12px; margin-right: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.pep-row { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid #f5f5f7; gap: 12px; }
.pep-row:last-child { border-bottom: none; }
.pep-label { color: #8e8e93; font-size: 15px; min-width: 64px; }
.pep-row input { flex: 1; border: none; outline: none; font-size: 16px; text-align: left; background: transparent; color: #1a1a1a; }
.pep-row input::placeholder { color: #c7c7cc; }
.pep-row input[type="date"] { color: #1a1a1a; }
.pep-row .chev { color: #c7c7cc; font-size: 18px; }
.pep-gender { flex: 1; display: flex; gap: 10px; }
.pep-gbtn { border: 1.5px solid #e8e8ea; border-radius: 20px; padding: 8px 20px; font-size: 15px; background: #fff; color: #666; transition: all .2s; }
.pep-gbtn.on { border-color: #ff6b6b; color: #ff6b6b; background: #fff5f5; font-weight: 600; }
.pep-save { margin: 24px 16px 0; width: calc(100% - 32px); border-radius: 14px; font-size: 17px; font-weight: 600; padding: 14px; }

/* 群聊 */
.dm-actions { padding: 12px 16px 4px; }
.dm-group-btn { width: 100%; border-radius: 12px; }
.gc-friend { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #f5f5f7; cursor: pointer; }
.gc-friend input { width: 20px; height: 20px; }
.gc-friend span { font-size: 15px; }
.dm-group-avatar { width: 48px; height: 48px; border-radius: 50%; background: #FF6B6B; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.dm-group-avatar .ic { width: 26px; height: 26px; }
.dm-group-avatar.sm { width: 40px; height: 40px; }
.dm-group-avatar.sm .ic { width: 22px; height: 22px; }
/* 群聊分组（可展开/收起） */
.dm-group-section { background: var(--card); border-radius: 12px; margin-bottom: 8px; overflow: hidden; border: 1.5px solid var(--coral); }
.dm-group-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.dm-group-header:active { background: var(--fill); }
.dm-group-title { font-size: 16px; font-weight: 600; flex: 1; }
.dm-group-arrow { font-size: 20px; color: var(--ink-3); transition: transform 0.2s; }
.dm-group-list { border-top: 1px solid var(--hairline); }
.dm-group-item { border-radius: 0 !important; margin-bottom: 0 !important; }
.dm-more-groups { padding: 10px 16px; text-align: center; font-size: 13px; color: var(--ink-3); }
.post-group-row { padding: 0 16px 12px; }
.post-group-btn { width: 100%; border-radius: 12px; padding: 12px; font-size: 15px; }
.post-group-btn .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.pep-row-bio { align-items: flex-start; }
.pep-row textarea { flex: 1; border: none; outline: none; font-size: 16px; background: transparent; color: #1a1a1a; resize: none; font-family: inherit; line-height: 1.5; }
.pep-row textarea::placeholder { color: #c7c7cc; }
.pep-row-bio .chev { margin-top: 4px; }
.dm-actions { display: flex; gap: 8px; padding: 12px 16px 4px; }
.dm-group-btn { flex: 1; border-radius: 12px; }
.dm-add-btn { flex: 1; border-radius: 12px; border: 1.5px solid #e0e0e0; background: #fff; }
.dm-group-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: 15px; }
.dm-group-btn-new { width: 100%; background: #FF6B6B; border: none; border-radius: 16px; padding: 32px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; cursor: pointer; color: #fff; font-size: 16px; font-weight: 500; }
.dm-group-btn-new .ic { width: 72px; height: 72px; }
.dm-group-btn-new:active { opacity: 0.9; }
.dm-group-btn .ic { width: 20px; height: 20px; }
.modal-card { overscroll-behavior: contain; }
/* v190 2026-10-10 fix: 地图缩放控件被 canvas 盖住无法点击 */
.maplibregl-ctrl-bottom-right { z-index: 10; }
.maplibregl-ctrl-group { box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
/* v191 2026-10-10 发布页关联群聊 */
.pub-title-row { display: flex; align-items: center; gap: 8px; }
.pub-title-row #pub-title { flex: 1; }
.pub-group-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e5e5e5; background: #fff; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.pub-group-toggle.on { background: #FF6B6B; border-color: #FF6B6B; }
.pub-group-opts { display: flex; gap: 16px; padding: 8px 4px; font-size: 14px; color: #666; }
.pub-group-opt { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pub-group-opt input { accent-color: #FF6B6B; }
/* 地图图钉标题旁的群聊标识 */
.pin-title-tip .pin-group-badge { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #FF6B6B; color: #fff; font-size: 10px; line-height: 16px; text-align: center; margin-left: 4px; vertical-align: middle; }
/* v192 2026-10-10 发布页群聊标识：珊瑚红底白图标，右下角 */
.compose-box { position: relative; }
.pub-group-toggle { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: none; background: #FF6B6B; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(255,107,107,0.4); }
.pub-group-toggle .ic { width: 24px; height: 24px; }
.pub-group-toggle:not(.on) { background: #e8e8e8; color: #999; box-shadow: none; }
.pin-title-tip .pin-group-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #FF6B6B; color: #fff; margin-left: 4px; vertical-align: middle; cursor: pointer; }
.pin-title-tip .pin-group-badge .ic { width: 12px; height: 12px; }

/* ============ v226 社交 Tab iOS 原生风格 ============ */
/* 大标题 + 右上按钮 */
.social-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 6px; }
.ios-big-title { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 0; }
.social-head-btns { display: flex; gap: 10px; }
.ios-icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #F2F2F7; cursor: pointer; color: #FF3B30;
  display: flex; align-items: center; justify-content: center;
}
.ios-icon-btn .ic { width: 20px; height: 20px; }
.ios-icon-btn:active { background: #E5E5EA; }
.ios-badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: #FF6B6B; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
/* 分段内的红点 / badge */
.seg { position: relative; }
.seg-dot {
  position: absolute; top: 6px; right: calc(50% - 34px);
  width: 8px; height: 8px; border-radius: 50%; background: #FF3B30;
}
.seg .ios-badge { position: absolute; top: 2px; right: calc(50% - 40px); border: none; }
.social-seg { margin: 8px 18px 10px; }
/* 子页面返回头 */
.sub-head { display: flex; align-items: center; padding: 14px 16px 8px; }
.sub-back { border: none; background: none; font-size: 30px; line-height: 1; color: var(--ink); cursor: pointer; padding: 0 8px 0 0; }
.sub-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }
.sub-spacer { width: 38px; }
/* 会话行：微信式 */
.dm-conv { padding: 11px 16px; gap: 12px; }
.dm-conv .avatar { width: 50px; height: 50px; font-size: 20px; }
.dm-conv-name { font-size: 16px; }
.dm-conv.pinned { background: #F7F7F8; }
/* 群聊叠加头像 */
.dm-stack { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.dm-stack-av {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff; background: #E9E9EE;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #8E8E93;
}
.dm-stack-av:first-child { left: 0; top: 8px; z-index: 1; }
.dm-stack-av:last-child { right: 0; top: 8px; }
.dm-stack-av:only-child { left: 8px; }
/* 左滑双按钮 */
.cswipe-wrap { position: relative; overflow: hidden; }
.cswipe-row { position: relative; z-index: 1; background: #fff; }
.cswipe-btns { position: absolute; right: 0; top: 0; bottom: 0; display: flex; z-index: 0; }
.cswipe-btn {
  border: none; color: #fff; font-size: 13px; font-weight: 500; width: 76px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.cswipe-btn .ic { width: 22px; height: 22px; }
.cswipe-pin { background: #8E8E93; }
.cswipe-del { background: #FF3B30; }
/* 聊天日期分隔 */
.dm-day {
  align-self: center; font-size: 12px; color: #8E8E93; background: rgba(0,0,0,.04);
  padding: 4px 12px; border-radius: 10px; margin: 4px 0;
}
/* iOS 气泡 */
.dm-bubble { border-radius: 20px; }
.dm-msg.mine .dm-bubble { border-radius: 20px; }
/* 分享卡片：图片 + 标题 + 地点 */
.dm-share-card {
  display: block; max-width: 230px; padding: 0; overflow: hidden;
  background: #fff; border-radius: 14px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); border: 1px solid var(--hairline);
}
.dm-msg.mine .dm-share-card { background: rgba(255,255,255,.95); }
.dm-share-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.dm-share-body { padding: 10px 12px; }
.dm-share-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.dm-share-loc { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
/* 已读回执 */
.dm-read { font-size: 11px; color: #8E8E93; margin-top: 2px; }
/* 聊天头部 iOS 居中 */
.dm-head-ios { padding: 10px 14px; }
.dm-head-ios .dm-back { font-size: 32px; color: var(--coral); }
.dm-title-wrap { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.dm-title-wrap .avatar { width: 34px; height: 34px; font-size: 14px; }
.dm-title-wrap .dm-name { font-size: 16px; }
.dm-head-spacer { width: 40px; flex-shrink: 0; }
/* 输入行 iOS 式 */
.dm-plus-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #C7C7CC;
  background: #fff; color: #8E8E93; font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dm-send-btn {
  border: none; background: none; color: var(--coral);
  font-size: 16px; font-weight: 600; cursor: pointer; flex-shrink: 0; padding: 8px 4px;
}

/* v257 举报 ⋯ / 零容忍 / OAuth 条款 */
.act-more { margin-left: auto; font-size: 18px; letter-spacing: 1px; color: var(--muted, #999); padding: 0 8px; }
.comment-ops .act-more { font-size: 15px; margin-left: 0; }
.dm-more { background: none; border: 0; font-size: 22px; color: inherit; text-align: right; cursor: pointer; padding: 0 4px; }
/* v299 法务审阅：零容忍框不用红色（红色只用于热门和未读）——浅灰底 + 边框，标题和关键句加粗 */
.legal-zt { background: #f7f7f8; border: 1px solid #d4d4d8; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin: 10px 0; color: #111; }
.legal-zt-h { display: block; font-size: 14px; margin-bottom: 2px; }
.legal-tr-note { margin-top: 6px; }
.oauth-terms { font-size: 12px; color: #999; text-align: center; margin: 10px 0 0; }
.oauth-terms a { color: inherit; text-decoration: underline; }
#admin-modal .modal-card, #legal-modal .modal-card { background: #fff; color: var(--ink, #1a1a1a); }
#admin-modal .report-item { flex-wrap: wrap; }
#admin-modal .report-main { flex: 1 1 100%; min-width: 0; }
#admin-modal .report-actions { flex-wrap: wrap; }


/* v258 分类配色：图钉描边 4px（不随缩小变细）、聚合环、筛选标签着色 */
.map-pin.cluster.ring { padding: 4px; border: 2px solid #fff; }
.map-pin.cluster.ring .cluster-count { width: 100%; height: 100%; border-radius: 50%; background: #fff; color: #1C1C1E; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.mchip[style*="--cat"] { background: color-mix(in srgb, var(--cat) 12%, #fff); }
.mchip[style*="--cat"] .ic, .mchip[style*="--cat"] svg { color: var(--cat); }
.mchip.on[style*="--cat"] { background: var(--cat); color: #fff; }
.mchip.on[style*="--cat"] .ic, .mchip.on[style*="--cat"] svg { color: #fff; }
.map-pin.avatar.catc:not(.hot-pin) { border: calc(4px / var(--pz, 1)) solid var(--cat) !important; }
.map-pin.hot-pin.catc > img, .map-pin.hot-pin.catc > .pin-initial { border-color: var(--cat) !important; border-width: calc(4px / var(--pz, 1)) !important; }

/* ===== v261 发布页：文字为主，照片可选（mock2） ===== */
#view-publish { background: #FAFAF8; }
#view-publish > .page-head { display: none; }
#view-publish .publish-body { display: block; padding: 0 24px calc(var(--tabbar-h) + 96px); gap: 0; }
.cp-nav { position: sticky; top: 0; z-index: 5; background: #FAFAF8; height: 44px; margin: 0 -24px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; font-size: 17px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.cp-nav b { font-weight: 600; } .cp-navsp { width: 34px; }
.cp-x { background: none; border: 0; padding: 0; font-size: 17px; color: rgba(60,60,67,.6); cursor: pointer; }
#view-publish .cp-title, #view-publish .cp-text { padding: 0 !important; box-shadow: none !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; }
.cp-title { display: block; width: 100%; margin-top: 14px; border: 0; outline: 0; background: transparent; padding: 0; font: inherit; font-size: 24px; font-weight: 600; letter-spacing: -.3px; line-height: 32px; color: #111; }
.cp-text { display: block; width: 100%; margin-top: 10px; border: 0; outline: 0; background: transparent; padding: 0; resize: none; font: inherit; font-size: 17px; line-height: 26px; color: #333; min-height: 130px; height: 130px; overflow: hidden; }
.cp-title::placeholder, .cp-text::placeholder { color: rgba(60,60,67,.3); }
.cp-cnt { text-align: right; font-size: 12px; color: rgba(60,60,67,.3); margin-top: 4px; min-height: 14px; }
.cp-addrow { display: flex; align-items: center; gap: 10px; height: 54px; margin-top: 10px; border-top: .5px solid rgba(60,60,67,.18); color: rgba(60,60,67,.6); font-size: 16px; cursor: pointer; }
.cp-addrow svg { width: 22px; height: 22px; } .cp-addrow small { margin-left: auto; font-size: 13px; color: rgba(60,60,67,.3); }
.cp-photos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 12px 0; border-top: .5px solid rgba(60,60,67,.18); }
.cp-ph { width: 56px; height: 56px; border-radius: 12px; background: #eee center/cover; position: relative; flex-shrink: 0; }
.cp-ph .rm { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 9px; border: 0; padding: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cp-ph.cover::after { content: "封面"; position: absolute; left: 3px; bottom: 3px; font-size: 9px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); padding: 1px 5px; border-radius: 6px; }
html[lang^="en"] .cp-ph.cover::after { content: "Cover"; } html[lang^="es"] .cp-ph.cover::after { content: "Portada"; }
.cp-ph .pg { position: absolute; inset: 0; border-radius: 12px; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 600; }
.cp-ph .pg i { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.cp-ph .pg i b { display: block; height: 100%; background: #fff; transition: width .3s; }
.cp-add { width: 56px; height: 56px; border-radius: 12px; border: 1px dashed rgba(60,60,67,.28); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(60,60,67,.6); font-size: 11px; gap: 2px; cursor: pointer; padding: 0; }
.cp-add svg { width: 22px; height: 22px; }
.cp-rows { margin-top: 6px; border-top: .5px solid rgba(60,60,67,.18); }
.cp-row { display: flex; align-items: center; height: 54px; border-bottom: .5px solid rgba(60,60,67,.18); font-size: 16px; cursor: pointer; }
.cp-row .k { color: rgba(60,60,67,.6); width: 64px; flex-shrink: 0; }
.cp-row .v { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-row .v small { font-weight: 400; color: rgba(60,60,67,.6); font-size: 13px; margin-left: 6px; }
.cp-row .chev { color: rgba(60,60,67,.3); font-size: 20px; margin-left: 8px; }
.cp-sw { width: 51px; height: 31px; border-radius: 16px; border: 0; padding: 0; background: rgba(120,120,128,.16); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.cp-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .2s; }
.cp-sw.on { background: #FF5A4E; } .cp-sw.on::after { left: 22px; }
#pub-group-row:has(+ .cp-grp:not(.hidden)) { border-bottom: 0; }
.cp-grp { padding: 4px 0 14px; border-bottom: .5px solid rgba(60,60,67,.18); }
.cp-grp input[type=text] { width: 100%; height: 44px; border-radius: 12px; border: 0; background: rgba(118,118,128,.12); padding: 0 14px; font: inherit; font-size: 15px; outline: 0; box-sizing: border-box; }
.cp-seg { display: flex; background: rgba(118,118,128,.12); border-radius: 9px; padding: 2px; margin-top: 10px; font-size: 13px; font-weight: 500; }
.cp-seg label { flex: 1; cursor: pointer; } .cp-seg input { display: none; }
.cp-seg span { height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 7px; color: #333; }
.cp-seg input:checked + span { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.cp-foot { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 12px 24px; background: linear-gradient(rgba(250,250,248,0), #FAFAF8 30%); z-index: 20; max-width: 600px; margin: 0 auto; }
.cp-btn { width: 100%; height: 52px; border-radius: 26px; border: 0; background: #FF5A4E; color: #fff; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-family: inherit; }
.cp-btn.off, .cp-btn:disabled { background: rgba(255,90,78,.35); }
.cp-spin { width: 18px; height: 18px; border-radius: 9px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: cpspin .8s linear infinite; box-sizing: border-box; }
@keyframes cpspin { to { transform: rotate(360deg); } }
.cp-sheet-wrap { position: fixed; inset: 0; z-index: 1000; }
.cp-dim { position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.cp-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.15); padding: 8px 20px calc(30px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; box-sizing: border-box; }
.cp-grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(60,60,67,.3); margin: 0 auto 14px; }
.cp-sh-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } .cp-sh-h b { font-size: 20px; font-weight: 700; }
.cp-xb { width: 30px; height: 30px; border-radius: 15px; border: 0; background: rgba(118,118,128,.12); color: rgba(60,60,67,.6); font-size: 14px; font-weight: 600; cursor: pointer; }
.cp-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-pill { height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid rgba(60,60,67,.18); background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: #111; cursor: pointer; }
.cp-pill.on { background: #111; color: #fff; border-color: #111; }
.cp-sub { font-size: 13px; color: rgba(60,60,67,.6); margin-top: 16px; }
.cp-addr .cp-sub { margin-top: 2px; }
#pub-loc-sheet #publish-map-wrap { position: relative; margin: 0; }
#pub-loc-sheet #publish-map { height: min(430px, 50vh); border-radius: 14px; border: 0; }
.cp-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.88); backdrop-filter: blur(12px); font-size: 12px; padding: 6px 12px; border-radius: 14px; white-space: nowrap; color: #333; z-index: 2; pointer-events: none; }
.cp-addr { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px; gap: 12px; } .cp-addr b { font-size: 17px; }
.cp-link { background: none; border: 0; color: #FF5A4E; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }

/* ===== v262 资料编辑页（深色） ===== */
#cover-editor, #avatar-sheet { z-index: 1100; }
#profile-edit-page .modal-card { background: #0E0E11; padding: 0; }
.pe2 { min-height: 100%; background: #0E0E11; color: #F2F2F4; padding-bottom: 40px; position: relative; }
.pe2-top { position: absolute; top: 0; left: 0; right: 0; height: 54px; padding: env(safe-area-inset-top) 18px 0; box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; z-index: 5; }
.pe2-top button { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 16px; cursor: pointer; }
.pe2-x { color: rgba(255,255,255,.75); }
.pe2-t { font-size: 16px; font-weight: 600; }
.pe2-save { font-weight: 600; color: #FF5A4E; }
.pe2-save.off { color: rgba(255,255,255,.28); }
.pe2-hero { height: calc(236px + env(safe-area-inset-top)); position: relative; cursor: pointer; background: radial-gradient(120% 90% at 70% 20%, #4a3a48 0%, #25212b 45%, #0E0E11 100%); background-size: cover; }
.pe2-hero.img { background-size: cover, cover; background-repeat: no-repeat; }
.pe2-hint { position: absolute; right: 18px; bottom: 58px; font-size: 12px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 5px; }
.pe2-hint svg { width: 13px; height: 13px; }
.pe2-av { position: absolute; left: 24px; bottom: -34px; width: 96px; height: 96px; cursor: pointer; }
.pe2-av-in { width: 96px; height: 96px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: #3a3940; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 600; color: #d8d8dc; overflow: hidden; box-sizing: border-box; }
.pe2-av-in img { width: 100%; height: 100%; object-fit: cover; }
.pe2-cam { position: absolute; right: -2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.pe2-cam svg { width: 15px; height: 15px; }
.pe2-av.busy::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: #FF5A4E; animation: cpspin .9s linear infinite; z-index: 1; }
.pe2-av.busy .pe2-av-in { filter: brightness(.65); }
.pe2-form { padding: 58px 24px 0; }
.pe2-f { padding: 14px 0 13px; border-bottom: .5px solid rgba(255,255,255,.1); transition: border-color .2s; }
.pe2-f.focus { border-bottom-color: #FF5A4E; }
.pe2-f label { display: block; font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 5px; letter-spacing: .2px; }
.pe2-v { display: flex; align-items: flex-end; justify-content: space-between; min-height: 22px; position: relative; }
.pe2 input[type=text] { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; padding: 0 !important; color: #F2F2F4; font: inherit; font-size: 17px; caret-color: #FF5A4E; border-radius: 0 !important; height: auto; }
.pe2 input::placeholder, .pe2 .ph { color: rgba(255,255,255,.28); }
.pe2-cnt { font-size: 12px; color: rgba(255,255,255,.3); margin-left: 12px; flex-shrink: 0; }
.pe2-date { font-size: 17px; flex: 1; cursor: pointer; }
.pe2 input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; }
.pe2-seg { display: flex; background: rgba(255,255,255,.08); border-radius: 10px; padding: 3px; margin-top: 2px; }
.pe2-seg button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 500; font-size: 14px; height: 30px; border-radius: 8px; color: rgba(255,255,255,.6); cursor: pointer; }
.pe2-seg button.on { background: rgba(255,255,255,.92); color: #111; }
.pe2-note { font-size: 12px; color: rgba(255,255,255,.3); margin-top: 18px; line-height: 1.5; }
.pe2 .form-msg { color: #FF6B60; }

/* ===== v263 图钉环：A 磨砂玻璃（分类色 45% 透明 + 细亮内线 + 柔和同色光晕）；热点图钉不变 ===== */
html body .map-pin.avatar.catc:not(.hot-pin) { border: calc(3px / var(--pz,1)) solid color-mix(in srgb, var(--cat) 45%, transparent) !important; background-clip: padding-box; box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 10px 1px color-mix(in srgb, var(--cat) 40%, transparent), 0 2px 6px rgba(0,0,0,.12) !important; }
html body .map-pin.avatar.catc:not(.hot-pin) img { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
html body .map-pin.cluster.ring { padding: 3px; border: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--cat, #8E9AAF) 40%, transparent), 0 2px 6px rgba(0,0,0,.12); }
html body .map-pin.cluster.ring .cluster-count { box-shadow: 0 0 0 1px rgba(255,255,255,.9); }
/* v264 皮肤选择色块 */
.skin-sw { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; border: 1px solid rgba(128,128,128,.35); }
.skin-sw-def { background: linear-gradient(135deg, #F7F7F8 50%, #FF6B6B 50%); }
.skin-sw-here { background: linear-gradient(135deg, #0A0A0A 50%, #D4FF00 50%); }

/* ===== 头像全屏查看 + 圆形裁切（feat/avatar-viewer-crop） ===== */
.av-view{position:fixed;inset:0;z-index:10000;background:#000;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:zoom-out}
.av-view img{max-width:100vw;max-height:100vh;width:min(100vw,100vh);height:auto;object-fit:contain;transform-origin:center;user-select:none}
.av-crop{position:fixed;inset:0;z-index:10000;background:#000;color:#fff;display:flex;flex-direction:column;align-items:center}
.avc-bar{width:100%;max-width:560px;display:flex;justify-content:space-between;align-items:center;height:52px;padding:0 20px;box-sizing:border-box;padding-top:env(safe-area-inset-top)}
.avc-bar button{background:none;border:0;color:#fff;font-size:16px;cursor:pointer}
.avc-done{font-weight:600}
.avc-stage{position:relative;width:min(92vw,420px);aspect-ratio:1;margin:auto 0 24px;overflow:hidden;touch-action:none;cursor:grab}
.avc-stage img{position:absolute;left:50%;top:50%;max-width:none;user-select:none;pointer-events:none}
.avc-mask{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 9999px rgba(0,0,0,.55);outline:1.5px solid rgba(255,255,255,.9);outline-offset:-1.5px;pointer-events:none}
.avc-zoom{width:min(80vw,360px);accent-color:#fff}
.avc-hint{font-size:13px;opacity:.7;margin:14px 0 auto;padding-bottom:28px}

/* 资料卡：对方拉黑我（B1） */
.pp-unavail { display:flex; flex-direction:column; align-items:center; gap:12px; padding:48px 0 64px; }
.pp-unavail .pp-av-ghost { background:var(--v3-card) !important; margin:0 !important; border:0 !important; }
.pp-unavail-t { font-size:17px; font-weight:600; color:#8A8A8A; }
