/* ============ 社交圈 全站样式 ============ */
:root {
  --primary: #7B68EE;
  --primary-light: #A48CFF;
  --primary-grad: linear-gradient(135deg, #7B68EE, #5B8DEF);
  --blue: #5B8DEF;
  --orange: #FF8C42;
  --red: #F5222D;
  --yellow: #FFD700;
  --purple: #7B68EE;
  --bg: #F4F5FA;
  --card: #FFFFFF;
  --text: #1F2329;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --border: #EEF0F4;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(31, 35, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(123, 104, 238, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; outline: none; border: none; background: none; color: var(--text); }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* 顶部导航 */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.topbar .logo { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.topbar .logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary-grad); box-shadow: 0 0 0 3px rgba(123,104,238,.15); }
/* 后台站点基础设置上传的 Logo 图片：顶栏适配 */
.topbar .logo.has-logo img { height: 26px; width: auto; object-fit: contain; display: block; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; transition: all .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.btn-ico { display: inline-flex; vertical-align: -2px; margin-right: 3px; }
.btn-ico svg { display: block; }
button svg { vertical-align: -2px; }
.icon-btn:active { transform: scale(0.92); background: #e5e7eb; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  transition: all .2s; border: none;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 4px 12px rgba(123,104,238,.3); }
.btn-orange { background: linear-gradient(135deg, #FFB347, var(--orange)); color: #fff; box-shadow: 0 3px 8px rgba(255,140,66,.3); }
.btn-green { background: linear-gradient(135deg, #00B578, #2CC990); color: #fff; box-shadow: 0 3px 8px rgba(0,181,120,.25); }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text-2); }
.btn-danger { background: #fff; border: 1px solid #ffccc7; color: var(--red); }
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* 页面容器 */
.page { min-height: 100vh; padding-bottom: 90px; }
.container { max-width: 560px; margin: 0 auto; padding: 0 14px; }
/* 首页帖子列表与内容 Tab 之间的统一间距 */
#postList { padding-top: 8px; }

/* 搜索框 */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 22px; padding: 8px 14px;
  flex: 1;
}
.search-bar input { flex: 1; background: none; font-size: 13px; }
.search-bar .ico { color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: none; }
.search-bar .ico svg { display: block; }

/* 分类标签栏（横向滚动） */
.tabs-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px;
  scrollbar-width: none; white-space: nowrap;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab-pill {
  padding: 6px 14px; border-radius: 16px; background: #fff; color: var(--text-2);
  font-size: 13px; border: 1px solid var(--border); transition: all .2s;
  flex-shrink: 0; display: inline-flex; align-items: center;
}
.tab-pill.active { background: var(--primary-grad); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 3px 8px rgba(123,104,238,.28); }
.tab-pill img { border: none; }

/* 内容 Tab（顶部切换） */
.content-tabs {
  display: flex; align-items: center; justify-content: center; gap: 30px;
  background: rgba(255,255,255,0.9); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
  padding: 6px 0 2px; position: sticky; top: 58px; z-index: 99;
}
.content-tabs .ct {
  font-size: 15px; color: var(--text-2); padding: 6px 2px 10px; position: relative; font-weight: 500;
}
.content-tabs .ct.active { color: var(--text); font-weight: 700; }
.content-tabs .ct.active::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 4px; width: 22px; height: 4px; border-radius: 2px;
  background: var(--primary-grad);
}

/* 卡片 */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,0.02);
}
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-body { margin-bottom: 10px; }
.card-footer { display: flex; align-items: center; justify-content: space-around; border-top: 1px solid var(--border); padding-top: 10px; }
.card-footer .cf-item { display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 13px; padding: 4px 12px; border-radius: 14px; transition: all .2s; }
.card-footer .cf-item:active { background: var(--bg); }
.card-footer .cf-item.active { color: var(--red); }
.card-footer .cf-item.fav.active { color: var(--yellow); }
.card-footer .cf-item.cmt.active { color: var(--blue); }

/* 头像 */
.avatar {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
  flex-shrink: 0; overflow: hidden; background: var(--primary);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
/* 头像右下角认证徽标（微博样式：半悬于圆形头像右下角，完整显示不被圆形裁剪） */
.avatar-link { position: relative; display: inline-flex; align-self: flex-start; }
.avatar-link .av-v { position: absolute; right: -2px; bottom: -2px; z-index: 3; display: flex; }
.av-v .v-badge { width: 15px; height: 15px; font-size: 9px; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0,0,0,.25); white-space: nowrap; }
.avatar-link .avatar.sm + .av-v .v-badge { width: 12px; height: 12px; font-size: 7px; box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(0,0,0,.25); }
.avatar-link .avatar.xs + .av-v .v-badge { width: 11px; height: 11px; font-size: 6.5px; box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(0,0,0,.25); }
.avatar-link .avatar.xl + .av-v .v-badge { width: 24px; height: 24px; font-size: 12px; }
.avatar-link .avatar.md + .av-v .v-badge { width: 17px; height: 17px; font-size: 10px; }
/* 无跳转链接的头像：徽章内缩到圆形安全区内 */
.avatar .av-v { position: absolute; right: 12%; bottom: 12%; z-index: 2; display: flex; }
.avatar.sm .av-v .v-badge { width: 12px; height: 12px; font-size: 7px; box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(0,0,0,.25); }
.avatar.xl .av-v .v-badge { width: 24px; height: 24px; font-size: 12px; }
.avatar.md .av-v .v-badge { width: 17px; height: 17px; font-size: 10px; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.xs { width: 28px; height: 28px; font-size: 12px; }
.avatar.xs .av-v .v-badge { width: 11px; height: 11px; font-size: 6.5px; box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(0,0,0,.25); }

/* 标签 */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; margin-right: 6px;
  background: #fff1f0; color: var(--red);
}
.tag.orange { background: #fff7e6; color: var(--orange); }
.tag.blue { background: #e6f7ff; color: var(--blue); }
.tag.green { background: #e8f8f0; color: #00B578; }
.tag.purple { background: #f3f0ff; color: var(--purple); }
.tag.top { background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; }

/* 帖子标题/内容 */
.post-title { font-size: 15px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.post-content { font-size: 13.5px; color: var(--text-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-content.full { display: block; }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; margin-top: 8px; flex-wrap: wrap; }

/* 帖子图片九宫格 */
.post-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; border-radius: 10px; overflow: hidden; }
.post-images img { width: 100%; height: 110px; object-fit: cover; background: #f0f0f0; }
.post-images.one img { height: auto; max-height: 300px; min-height: 110px; background: #f0f0f0; }

/* 置顶 / 热帖 */
.pin-badge { display: inline-flex; align-items: center; gap: 2px; background: #fff1f0; color: var(--red); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }

/* 热帖排行（横向滚动） */
.hot-rank { display: flex; gap: 10px; overflow-x: auto; padding: 6px 14px 8px; scrollbar-width: none; }
.hot-rank::-webkit-scrollbar { display: none; }
.ht-btn { padding: 4px 14px; border-radius: 20px; background: #f2f2f7; color: var(--text-2); font-size: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
.ht-btn.active { background: var(--primary, #7B68EE); color: #fff; font-weight: 600; }
.ht-btn:active { opacity: .8; }
.hot-rank-card {
  flex-shrink: 0; width: 172px; height: 64px; border-radius: 10px; padding: 8px 10px;
  background: linear-gradient(135deg, #FFF7E6, #FFE7BA);
  box-shadow: var(--shadow); cursor: pointer; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hot-rank-card .hr-title { font-size: 12px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hot-rank-card .hr-meta { font-size: 10px; color: var(--text-2); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex: none; }
.hot-rank-card .hr-rank { font-size: 17px; font-weight: 900; color: var(--orange); line-height: 1; flex: none; }

/* 广告 */
.ad-banner {
  border-radius: var(--radius); padding: 14px 16px; margin: 10px 0;
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden;
}
.ad-banner .ad-title { font-size: 15px; font-weight: 700; }
.ad-banner .ad-text { font-size: 12px; opacity: .9; }
.ad-banner .ad-go { background: rgba(255,255,255,.25); padding: 4px 12px; border-radius: 14px; font-size: 12px; }
.ad-banner.ad-image-banner { display: block; padding: 0; line-height: 0; }
.ad-banner .ad-img { width: 100%; max-height: 140px; object-fit: cover; display: block; }
.ad-banner.ad-image-banner .ad-go { position: absolute; right: 10px; bottom: 10px; line-height: 1.4; background: rgba(0,0,0,.45); }

/* 金刚区 */
.grid-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.grid-nav .gn-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.grid-nav .gn-ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.grid-nav .gn-name { font-size: 12px; color: var(--text-2); }

/* 底部 Tab */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 20px rgba(31,35,41,0.07);
  max-width: 560px; margin: 0 auto; padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav .bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-3); font-size: 10px; padding: 4px 0 6px; transition: all .25s;
  position: relative;
}
.bottom-nav .bn-item .bn-ico { font-size: 20px; line-height: 1; position: relative; transition: transform .25s; }
.bottom-nav .bn-item .bn-ico svg { width: 23px; height: 23px; }
.bottom-nav .bn-item.active { color: var(--primary); font-weight: 700; }
.bottom-nav .bn-item.active .bn-ico { transform: translateY(-2px); }
.bottom-nav .bn-item.active .bn-ico::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  width: 14px; height: 3px; border-radius: 2px; background: var(--primary-grad);
}
.bottom-nav .bn-pub {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; margin-top: -24px;
  color: #fff; transition: transform .2s;
}
.bottom-nav .bn-pub::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary-grad);
  box-shadow: 0 6px 16px rgba(123,104,238,.45);
  border: 4px solid #fff;
}
.bottom-nav .bn-pub svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.bottom-nav .bn-pub:active { transform: scale(0.92) rotate(90deg); }

/* 个人中心 */
.profile-header {
  background: linear-gradient(135deg, #fff, #F1EEFF);
  padding: 20px 16px 14px; display: flex; align-items: center; gap: 14px;
  border-radius: 0 0 20px 20px;
}
.profile-info { flex: 1; min-width: 0; }
.profile-info .p-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.profile-info .p-name #signBtn { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; }
.profile-info .p-bio { font-size: 12px; color: var(--text-2); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.stat-row { display: flex; background: #fff; margin: -8px 14px 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-row .st { flex: 1; text-align: center; padding: 12px 0; cursor: pointer; }
.stat-row .st .num { font-size: 17px; font-weight: 800; color: var(--text); }
.stat-row .st .lbl { font-size: 11px; color: var(--text-3); }

/* 功能网格 */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.menu-grid .mg-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 0; cursor: pointer; position: relative; }
.menu-grid .mg-item .mg-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.menu-grid .mg-item .mg-name { font-size: 11.5px; color: var(--text-2); }
.menu-grid .mg-item .mg-badge {
  position: absolute; top: 6px; right: calc(50% - 22px);
  min-width: 16px; height: 16px; border-radius: 8px; background: var(--red);
  color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.section-title { font-size: 14px; font-weight: 700; margin: 14px 2px 10px; display: flex; align-items: center; gap: 6px; }

/* 消息中心 */
.noti-item { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.noti-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.noti-body { flex: 1; min-width: 0; }
.noti-title { font-size: 14px; font-weight: 600; }
.noti-content { font-size: 12.5px; color: var(--text-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.noti-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.noti-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 6px; }

/* 发布页 */
.publish-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px; }
.pub-type { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; position: relative; opacity: .55; transform: scale(.94); transition: opacity .2s, transform .2s; }
.pub-type.on { opacity: 1; transform: scale(1); }
.pub-type .pt-ico { width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.pub-type.on .pt-ico { transform: scale(1.08); box-shadow: 0 0 0 3px var(--primary), 0 8px 20px rgba(90,80,220,.28); }
.pub-type:active .pt-ico { transform: scale(0.9); }
.pub-type .pt-name { font-size: 13px; font-weight: 600; color: var(--text-2); transition: color .2s; }
.pub-type.on .pt-name { color: var(--primary); font-weight: 700; }
.pub-type .pt-check { position: absolute; top: -8px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; line-height: 22px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; z-index: 2; }
.pub-type .pt-check svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); fill: #fff; stroke: #fff; }
.pub-type.on .pt-check { opacity: 1; transform: scale(1); }
.pub-vip { background: linear-gradient(135deg, #FADB14, #FFB347); color: #fff !important; position: relative; }
.pub-vip::after { content: 'VIP'; position: absolute; top: -4px; right: -8px; background: var(--red); color: #fff; font-size: 8px; padding: 1px 4px; border-radius: 6px; }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: block; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--bg); border-radius: 10px; padding: 10px 12px;
  border: 1px solid transparent; transition: all .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); background: #fff; }
.cat-pick { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 14px; }
.cat-pick:active { background: #EDEFF6; }
.form-textarea { min-height: 100px; resize: vertical; }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.upload-box {
  aspect-ratio: 1; border-radius: 10px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--text-3); cursor: pointer; overflow: hidden; position: relative;
}
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box .del-ico { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
/* 上传入口按钮（相册/拍照）：虚线边框 + 主色，醒目可见 */
.upload-add {
  aspect-ratio: 1; border-radius: 10px; background: #F7F9FE;
  border: 1.5px dashed #C3CDF5; color: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 13px; font-weight: 600; cursor: pointer; overflow: hidden; position: relative;
}
.upload-add .add-ico { font-size: 26px; line-height: 1; }
.option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.option-row .form-input { flex: 1; }
.option-row .del-btn { color: var(--red); font-size: 18px; padding: 6px; }

/* 帖子详情 */
.detail-header { background: #fff; padding: 16px; }
.detail-title { font-size: 19px; font-weight: 800; line-height: 1.4; margin: 10px 0 8px; }
.detail-content { font-size: 15px; color: var(--text); white-space: pre-line; }
.detail-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.detail-images img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.detail-images.one img { height: auto; max-height: 400px; }
.detail-stat { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 12px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); }

/* 投票 */
.vote-box { background: var(--bg); border-radius: 12px; padding: 14px; margin-top: 10px; }
.vote-question { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.vote-option { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff; border-radius: 10px; margin-bottom: 8px; cursor: pointer; position: relative; overflow: hidden; border: 1.5px solid transparent; transition: all .2s; }
.vote-option.selected { border-color: var(--primary); }
.vote-option .vo-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(123,104,238,.14); transition: width .4s; }
.vote-option .vo-text { position: relative; z-index: 1; flex: 1; font-size: 13px; }
.vote-option .vo-count { position: relative; z-index: 1; font-size: 12px; color: var(--text-3); }
.vote-option .vo-radio { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #ccc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vote-option.selected .vo-radio { border-color: var(--primary); }
.vote-option.selected .vo-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.vote-total { font-size: 12px; color: var(--text-3); text-align: right; }

/* 活动 */
.activity-box { background: linear-gradient(135deg, #F0FFF8, #E6F7FF); border-radius: 12px; padding: 14px; margin-top: 10px; border: 1px solid #d9f7e6; }
.activity-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.activity-item .ai-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #e8f8f0; }
.activity-item .ai-lbl { font-size: 11px; color: var(--text-3); }
.activity-item .ai-val { font-size: 13px; font-weight: 600; }
.activity-enroll { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.enroll-progress { flex: 1; height: 6px; background: #e8f8f0; border-radius: 3px; overflow: hidden; margin-right: 12px; }
.enroll-progress .ep-bar { height: 100%; background: linear-gradient(90deg, #00B578, #2CC990); border-radius: 3px; transition: width .4s; }

/* 评分 */
.score-box { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.score-box .star { font-size: 24px; color: #ddd; cursor: pointer; transition: transform .15s; display: inline-flex; }
.score-box .star svg { width: 24px; height: 24px; }
.score-box .star.on { color: var(--yellow); }
.score-box .star.on svg { fill: currentColor; }
.score-box .star:active { transform: scale(1.2); }
.score-val { font-size: 13px; color: var(--text-2); margin-left: 6px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.detail-stat span svg { vertical-align: -2px; }

/* 评论 */
.comment-input-row { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--border); position: sticky; bottom: 0; z-index: 90; }
.cmt-locked { flex: 1; text-align: center; padding: 10px 0; background: var(--bg); border-radius: 20px; }
.comment-input-row input { flex: 1; background: var(--bg); border-radius: 20px; padding: 9px 14px; font-size: 13px; }
.comment-item { display: flex; gap: 10px; padding: 12px 14px; }
.comment-item .cm-body { flex: 1; min-width: 0; }
.comment-item .cm-name { font-size: 13px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.comment-item .cm-name .lv-badge { flex-shrink: 0; vertical-align: middle; }
.comment-item .cm-content { font-size: 13.5px; margin-top: 2px; }
.comment-item .cm-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; display: flex; align-items: center; gap: 10px; }

/* 底部操作栏（详情页） */
.detail-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto;
}
.detail-bottom .db-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2); font-size: 10px; padding: 4px 10px; }
.detail-bottom .db-item .db-ico { font-size: 20px; position: relative; display: inline-flex; }
.detail-bottom .db-item .db-num { font-size: 11px; font-weight: 600; }
.detail-bottom .db-item.active { color: var(--red); }
.detail-bottom .db-item.active .db-ico svg { fill: currentColor; }
.detail-bottom .db-item.fav.active { color: var(--yellow); }
.detail-bottom .db-item.fav.active .db-ico svg { fill: currentColor; }
.detail-bottom .db-item.cmt.active { color: var(--blue); }
.detail-bottom .db-item.cmt.active .db-ico svg { fill: currentColor; }
.detail-bottom .db-main { background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; font-size: 14px; font-weight: 700; padding: 10px 26px; border-radius: 24px; box-shadow: 0 4px 10px rgba(255,140,66,.35); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 30px; }
.modal-card { background: #fff; border-radius: 16px; width: 100%; max-width: 380px; padding: 20px; max-height: 80vh; overflow-y: auto; }
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; text-align: center; }

/* 登录页 */
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: linear-gradient(160deg, #EEEAFF 0%, #F4F5FA 60%, #EAF2FF 100%); }
.login-logo { width: 76px; height: 76px; border-radius: 24px; background: var(--primary-grad); display: flex; align-items: center; justify-content: center; font-size: 38px; color: #fff; box-shadow: 0 10px 28px rgba(123,104,238,.4); margin-bottom: 12px; }
/* 后台上传的 Logo 图片：登录页适配（覆盖渐变底） */
.login-logo.has-logo { background: #fff; box-shadow: none; }
.login-logo.has-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; display: block; }
.login-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--text-2); margin-bottom: 28px; }
.login-card { width: 100%; max-width: 360px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.login-input { width: 100%; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
/* 密码可见切换（小眼睛） */
.pwd-wrap { position: relative; }
.pwd-wrap .login-input { padding-right: 42px; }
.pwd-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-62%); font-size: 17px; cursor: pointer; user-select: none; line-height: 1; opacity: .75; z-index: 3; }
/* 输入框内容清除（小叉叉） */
.inp-clear-w { position: relative; display: block; margin-bottom: 12px; }
.inp-clear-w .login-input { margin-bottom: 0; padding-right: 30px; }
.pwd-wrap .inp-clear-w .login-input { padding-right: 42px; }
.captcha-row .inp-clear-w, .code-row .inp-clear-w { flex: 1; display: flex; align-items: center; margin-bottom: 0; min-width: 0; }
.captcha-row .inp-clear-w .login-input, .code-row .inp-clear-w .login-input { flex: 1; width: auto; margin-bottom: 0; }
.inp-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-52%); width: 18px; height: 18px; line-height: 16px; text-align: center; border-radius: 50%; background: rgba(0,0,0,.16); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; user-select: none; transition: opacity .15s, background .2s; opacity: 0; pointer-events: none; z-index: 2; }
.inp-clear:hover { background: rgba(0,0,0,.32); }
.inp-clear.has-eye { right: 42px; }
.login-btn { width: 100%; padding: 12px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.login-switch { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.login-switch a { color: var(--primary); font-weight: 600; }

/* 弹层操作菜单 */
.action-sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.action-sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 10px 0 calc(14px + env(safe-area-inset-bottom)); animation: slideUp .25s ease; }
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.action-sheet .as-item { padding: 14px 20px; text-align: center; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--border); cursor: pointer; }
.action-sheet .as-item:active { background: var(--bg); }
.action-sheet .as-item.danger { color: var(--red); }
.action-sheet .as-item.cancel { color: var(--text-3); border-bottom: none; }

/* 站内确认弹窗（居中卡片，与全站 UI 一致） */
.confirm-dialog { position: fixed; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 284px; max-width: 82vw; background: #fff; border-radius: 16px; padding: 24px 18px 14px; text-align: center; z-index: 301; box-shadow: 0 10px 34px rgba(0,0,0,.16); animation: cdIn .2s ease; }
@keyframes cdIn { from { transform: translate(-50%, -50%) scale(.92); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.confirm-dialog .cd-title { font-size: 16px; font-weight: 700; color: var(--text, #1F2937); }
.confirm-dialog .cd-msg { font-size: 13px; color: var(--text-3, #6B7280); margin-top: 8px; line-height: 1.6; }
.confirm-dialog .cd-btns { display: flex; gap: 10px; margin-top: 20px; }
.confirm-dialog .cd-btn { flex: 1; padding: 10px 0; border-radius: 10px; font-size: 14px; cursor: pointer; -webkit-user-select: none; user-select: none; text-align: center; }
.confirm-dialog .cd-cancel { background: #F2F3F5; color: var(--text-3, #6B7280); }
.confirm-dialog .cd-ok { background: var(--primary, #7B68EE); color: #fff; font-weight: 600; }
.confirm-dialog .cd-ok:active { opacity: .85; }
.confirm-dialog .cd-cancel:active { background: #E8E9EC; }
@media (max-width: 900px) { .confirm-dialog { z-index: 2001; } }

/* 圈子双列瀑布 */
.circle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rank-more { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 0; margin: 2px 0 4px; border-radius: 10px; background: #fff; border: 1px dashed var(--border, #E5E7EB); font-size: 13px; color: var(--text-3, #6B7280); cursor: pointer; }
.rank-more:active { background: var(--bg, #F5F6F7); }
.apply-circle-btn { font-size: 12px; font-weight: 500; color: var(--primary, #7B68EE); background: rgba(123,104,238,.08); border: 1px solid rgba(123,104,238,.25); padding: 3px 10px; border-radius: 14px; cursor: pointer; white-space: nowrap; }
.apply-circle-btn:active { opacity: .7; }
.circle-card { border-radius: 12px; height: 110px; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; cursor: pointer; box-shadow: var(--shadow); }
.circle-card .cc-emoji { position: absolute; top: 10px; right: 10px; font-size: 26px; opacity: .85; }
.circle-card .cc-name { font-size: 15px; font-weight: 800; }
.circle-card .cc-desc { font-size: 11px; opacity: .9; }
.circle-card .cc-count { font-size: 10px; opacity: .75; margin-top: 2px; }
.circle-card .cc-actions { display: flex; gap: 6px; margin-top: 6px; }
.circle-card .cc-act { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,.22); color: #fff; font-weight: 600; }
.circle-card .cc-act-primary { background: #fff; color: #7B68EE; }

/* 双列排行榜 */
.rank-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 10px; }
.rank-card { border-radius: 12px; padding: 12px; color: #fff; box-shadow: var(--shadow); background: linear-gradient(135deg, #6E8EFB, #A777E3); cursor: pointer; }
.rank-card .rk-title { font-size: 13px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rank-card .rk-meta { font-size: 11px; opacity: .85; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.rank-card .rk-rank { font-size: 20px; font-weight: 900; opacity: .8; line-height: 1; }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .e-ico { font-size: 46px; margin-bottom: 10px; }
.empty .e-text { font-size: 14px; }

/* toast（居中大提示，带图标；前后台共用） */
.toast {
  position: fixed; top: 45%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(17,24,39,.9); color: #fff; font-size: 14px;
  padding: 18px 26px; border-radius: 14px; z-index: 9999;
  display: flex; align-items: center; gap: 10px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.22); font-weight: 600; line-height: 1.5;
  pointer-events: none; max-width: 78%; animation: toastIn .25s ease;
}
.toast-ico { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; color: #fff; }
.toast-info .toast-ico { background: #2F7BFF; }
.toast-success .toast-ico { background: #00B578; }
.toast-error .toast-ico { background: #FF4D6A; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.toast-out { opacity: 0; transform: translate(-50%, -56%) scale(.96); transition: all .3s; }

.loading { text-align: center; padding: 30px; color: var(--text-3); font-size: 13px; }
/* 新帖子提示条 */
.new-post-tip { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 999; background: linear-gradient(135deg, #7B68EE, #5B2D8E); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 13px; box-shadow: 0 4px 16px rgba(91, 45, 142, .35); cursor: pointer; }

/* ============================================================
   视觉升级层（对齐参考设计图：黄·紫·蓝·橙主调 / 移动端优先）
   ============================================================ */
:root {
  --primary: #6E5BF0;          /* 品牌紫 */
  --primary-light: #A48CFF;    /* 亮紫 */
  --blue: #5B8DEF;
  --orange: #FF8C42;
  --red: #FF4D6A;
  --yellow: #FFC53D;           /* 亮黄（仅点缀） */
  --purple: #7B68EE;
  --green: #00B578;
  --bg: #F5F6FB;
  --card: #FFFFFF;
  --text: #1F2329;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --border: #EFF0F6;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(60, 70, 150, 0.08);
  --grad-cool: linear-gradient(135deg, #7B68EE, #5B8DEF);
  --grad-warm: linear-gradient(135deg, #FFC53D, #FF8C42);
  --grad-mix: linear-gradient(135deg, #FF8C42, #FF4D6A);
  --grad-purple: linear-gradient(135deg, #7B68EE, #A777E3);
  --grad-green: linear-gradient(135deg, #00B578, #2CC990);
}

/* —— 顶部导航：毛玻璃 + 统一紫色品牌字 —— */
.topbar { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #F0EDFB; box-shadow: 0 2px 10px rgba(80,70,150,.06); }
.topbar .logo {
  background: linear-gradient(120deg, #6E5BF0 0%, #5B8DEF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar .logo .dot { background: linear-gradient(135deg, #7B68EE, #5B8DEF); box-shadow: 0 0 0 3px rgba(123,104,238,.15); }
.search-bar { background: #F3F4FA; border: 1px solid transparent; }
.search-bar:focus-within { border-color: rgba(110,91,240,.4); background: #fff; }

/* —— 分类/主 Tab：紫色渐变高亮 —— */
.tab-pill.active { background: linear-gradient(135deg, #7B68EE, #5B8DEF); color: #fff; box-shadow: 0 4px 10px rgba(123,104,238,.3); }
.content-tabs .ct.active::after { background: linear-gradient(135deg, #7B68EE, #5B8DEF); width: 24px; }

/* —— 卡片：大圆角 + 紫色顶部描边 + 悬浮质感 —— */
.card { border: 1px solid rgba(255,255,255,.6); box-shadow: var(--shadow); padding: 15px; }
.card::before {
  content: ''; display: block; height: 3px; border-radius: 4px; margin: -15px -15px 12px;
  background: linear-gradient(90deg, #7B68EE, #5B8DEF 60%, #A48CFF);
  opacity: .8;
}
.card-footer .cf-item { color: var(--text-2); }
.card-footer .cf-item:active { transform: scale(1.08); background: transparent; }

/* —— 投票迷你进度（列表卡片内） —— */
.mini-vote { background: #F6F5FF; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.mini-vote-q { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.mini-vote-row { position: relative; background: #fff; border-radius: 8px; padding: 7px 8px; margin-bottom: 6px; overflow: hidden; font-size: 12px; display: flex; align-items: center; }
.mini-vote-row:last-child { margin-bottom: 0; }
.mini-vote-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(123,104,238,.18), rgba(47,123,255,.18)); border-radius: 8px; }
.mini-vote-text { position: relative; z-index: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-vote-pct { position: relative; z-index: 1; font-weight: 700; color: var(--primary); margin-left: 6px; }
.mini-vote-total { font-size: 11px; color: var(--text-3); margin-top: 6px; text-align: right; }

/* —— 活动迷你进度（列表卡片内） —— */
.mini-act { background: #F0FFF8; border: 1px solid #D9F4E7; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.mini-act .act-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.mini-act .act-bar { height: 6px; background: #E8F8F0; border-radius: 3px; overflow: hidden; }
.mini-act .act-bar .act-bar-in { height: 100%; background: linear-gradient(90deg, #00B578, #2CC990); border-radius: 3px; }
.mini-act .act-meta { font-size: 11px; color: #00A667; margin-top: 6px; text-align: right; font-weight: 600; }

/* —— 评论点赞 —— */
.cm-like { display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); font-size: 12px; padding: 2px 6px; border-radius: 10px; cursor: pointer; transition: all .2s; }
.cm-like:active { transform: scale(1.15); }
.cm-like.active { color: var(--red); font-weight: 700; }
.cm-like.active svg { fill: currentColor; }

/* —— Toast 变体 —— */
.toast { background: rgba(17,24,39,.82); backdrop-filter: blur(4px); font-weight: 600; }
.toast-success { background: rgba(0,181,120,.92); }
.toast-error { background: rgba(255,77,106,.92); }
.toast-out { opacity: 0; transform: translate(-50%, -6px); transition: all .3s; }

/* —— 字数计数器 —— */
.char-counter { text-align: right; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.char-counter.over { color: var(--red); font-weight: 700; }

/* —— 底部 Tab：统一紫色激活 —— */
.bottom-nav { border-top: 1px solid #F0EDFB; border-radius: 22px 22px 0 0; }
.bottom-nav .bn-item.active .bn-ico { color: var(--primary); }
.bottom-nav .bn-item.active { color: var(--primary); font-weight: 700; }
.bottom-nav .bn-item.active .bn-ico::after {
  content: ''; display: block; width: 14px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #7B68EE, #5B8DEF); margin: 0 auto; margin-top: 1px;
}
.bottom-nav .bn-pub::before {
  width: 50px; height: 50px; border-width: 4px;
  background: linear-gradient(135deg, #7B68EE, #5B8DEF);
  box-shadow: 0 6px 16px rgba(123,104,238,.45);
}
.bottom-nav .bn-pub svg { width: 25px; height: 25px; }

/* 树洞帖子图片：网格排版，点击放大查看 */
.th-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.th-images img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: zoom-in; display: block; background: #f0f0f0; }
.th-images.one img { width: 90px; height: 90px; }

/* ============ 树洞留言列表：卡片化 + 回复分区 ============ */
#treeholeList .th-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(20, 30, 80, .05);
}
#treeholeList .th-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#treeholeList .th-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #7B68EE, #4A90D9); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
#treeholeList .th-nick { font-size: 14px; font-weight: 600; color: var(--text-1); }
#treeholeList .th-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }
#treeholeList .th-content {
  font-size: 14px; color: var(--text-1); line-height: 1.7;
  word-break: break-word; white-space: pre-wrap;
}
#treeholeList .th-foot {
  display: flex; gap: 18px; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed #EDEFF3;
}
#treeholeList .th-act { font-size: 12px; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
#treeholeList .th-act.active { color: #E5484D; }
#treeholeList .th-act.danger { color: #E5484D; }
/* 回复区：灰底 + 左侧主题色条，与留言主体明显区分 */
#treeholeList .th-replies {
  margin-top: 10px; padding: 8px 12px; background: #F6F7FB;
  border-radius: 10px; border-left: 3px solid #7B68EE;
}
#treeholeList .th-reply { padding: 9px 0; border-bottom: 1px dashed #E7E9EF; }
#treeholeList .th-reply:last-child { border-bottom: none; }
#treeholeList .th-reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#treeholeList .th-reply .th-nick { font-size: 12px; color: #5B68EE; }
#treeholeList .th-reply .th-time { font-size: 11px; }
#treeholeList .th-reply-content { font-size: 13px; color: #374151; line-height: 1.6; word-break: break-word; }
#treeholeList .th-reply-foot { display: flex; gap: 14px; margin-top: 6px; }
/* 回复输入框 */
#treeholeList .th-reply-box { display: flex; gap: 8px; margin-top: 10px; }
#treeholeList .th-reply-box.hidden { display: none; }

/* ============ 全局新消息横幅胶囊通知 ============ */
#notif-banner {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 99999; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #7B68EE, #5B8DEF); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(91, 100, 238, .35); cursor: pointer;
  animation: nb-in .35s ease; max-width: 88vw; white-space: nowrap;
}
@keyframes nb-in { from { transform: translate(-50%, -18px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
#notif-banner.hide { transition: opacity .3s, transform .3s; opacity: 0; transform: translate(-50%, -18px); }
#notif-banner .nb-x { margin-left: 4px; font-size: 15px; opacity: .8; padding: 2px; flex: none; }
#notif-banner .nb-x:active { opacity: 1; }
#notif-banner > span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* —— 顶栏过渡栏：卡片容器成组 —— */
.section-group { margin: 10px 14px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* —— 个人中心：多彩渐变头部 —— */
.profile-header { background: linear-gradient(140deg, #F0ECFF 0%, #F4F9FF 45%, #FFF6E6 100%); border-radius: 0 0 24px 24px; }
.stat-row { border: 1px solid #F0EDFB; }
.menu-grid .mg-item .mg-ico { box-shadow: 0 3px 8px rgba(60,70,150,.08); }
.menu-grid .mg-item:active .mg-ico { transform: scale(1.1); }

/* —— 发布页：类型卡选中高亮 + 居中大图标 —— */
.publish-types { padding: 24px 20px 16px; }
.pub-type .pt-ico { width: 64px; height: 64px; border-radius: 22px; font-size: 30px; box-shadow: 0 6px 14px rgba(60,70,150,.15); }
.pub-type .pt-name { font-weight: 700; }
.pub-type:active .pt-ico { transform: scale(1.08) translateY(-2px); }

/* —— 表单 —— */
.form-label { color: var(--text); font-size: 13.5px; }
.form-input, .form-textarea, .form-select { background: #F3F4FA; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(110,91,240,.12); }

/* —— 详情页 —— */
.detail-header { border-radius: 0 0 18px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.vote-box { background: #F6F5FF; }
.vote-option.selected { border-color: var(--primary); box-shadow: 0 2px 8px rgba(110,91,240,.2); }
.score-box .star { font-size: 26px; }
.score-box .star svg { width: 26px; height: 26px; }
.score-box .star.on { color: #FFC53D; text-shadow: 0 1px 4px rgba(255,197,61,.5); }
.score-box .star.on svg { fill: currentColor; }

/* —— 按钮：统一紫色主渐变 —— */
.btn-primary { background: linear-gradient(135deg, #7B68EE, #5B8DEF); box-shadow: 0 4px 10px rgba(123,104,238,.3); }
.btn-orange { background: linear-gradient(135deg, #FFC53D, #FF8C42); box-shadow: 0 4px 10px rgba(255,140,66,.32); }

/* —— 登录页 —— */
.login-logo { background: linear-gradient(135deg, #7B68EE, #5B8DEF); box-shadow: 0 10px 28px rgba(123,104,238,.4); }
.login-btn.btn-primary { background: linear-gradient(135deg, #7B68EE, #5B8DEF); box-shadow: 0 6px 16px rgba(123,104,238,.4); }

/* —— 广告位：紫色 —— */
.ad-banner { background: linear-gradient(135deg, #7B68EE, #5B8DEF); border-radius: 14px; }

/* —— 消息中心：纯白底 + 蓝绿图标（参考图） —— */
body[data-tabbar="messages"] { background: #fff; }
body[data-tabbar="messages"] .card { box-shadow: 0 2px 10px rgba(30,60,120,.06); }
.noti-title { color: #1B4B7A; }

/* —— 热帖排行：多彩渐变（按排名 1-8 名各配色，三色渐变更丰富） —— */
.hot-rank-card:nth-child(1) { background: linear-gradient(135deg, #FFF3D6, #FFD479, #FFB020); }
.hot-rank-card:nth-child(2) { background: linear-gradient(135deg, #F0ECFF, #B9A8FF, #7B68EE); }
.hot-rank-card:nth-child(3) { background: linear-gradient(135deg, #EAF4FF, #74A9FF, #2F7BFF); }
.hot-rank-card:nth-child(4) { background: linear-gradient(135deg, #EAFBF3, #5FDFAC, #00B578); }
.hot-rank-card:nth-child(5) { background: linear-gradient(135deg, #E4FBFE, #55D9EC, #00B8D9); }
.hot-rank-card:nth-child(6) { background: linear-gradient(135deg, #FFECF5, #FFA5C8, #FF5C8A); }
.hot-rank-card:nth-child(7) { background: linear-gradient(135deg, #FFF3EA, #FFB78F, #FF7D45); }
.hot-rank-card:nth-child(8) { background: linear-gradient(135deg, #F0F3F9, #9FB0CC, #5B7FA6); }
.hot-rank-card .hr-rank { -webkit-background-clip: text; background-clip: text; color: transparent; background-image: linear-gradient(135deg, #FF8C42, #FF4D6A); }

/* —— 全局滚动加载 & 底栏安全区 —— */
.page { padding-bottom: 100px; }
#loadMore { letter-spacing: 2px; }

/* —— 桌面端适配：居中限宽 + 侧边留白 —— */
@media (min-width: 641px) {
  .bottom-nav, .detail-bottom { max-width: 560px; left: 50%; transform: translateX(-50%); }
  .bottom-nav .bn-item { cursor: pointer; }
  .tab-pill, .icon-btn, .btn, .cf-item, .cm-like { cursor: pointer; }
}
@media (max-width: 380px) {
  .publish-types { gap: 10px; padding: 18px 10px 14px; }
  .pub-type .pt-ico { width: 56px; height: 56px; font-size: 26px; }
}


/* ===== 个人主页 user.html ===== */
.user-header { text-align: left; padding: 0 0 14px; background: #fff; }
.uh-bg { height: 140px; border-radius: 0 0 20px 20px; position: relative; }
.uh-avatar { margin-top: -40px; position: relative; z-index: 2; margin-left: 14px; }
.uh-avatar .avatar.xl { width: 84px; height: 84px; font-size: 34px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.avatar.md { width: 48px; height: 48px; font-size: 20px; }
.uh-name { font-size: 20px; font-weight: 800; margin-top: 8px; margin-left: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.uh-bio { font-size: 13px; color: var(--text-2); margin-top: 4px; padding: 0 14px; white-space: pre-wrap; word-break: break-word; }
.uh-meta { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-left: 14px; }
.uh-meta-item { font-size: 12px; color: var(--text-2); background: #f5f5f5; border-radius: 20px; padding: 2px 10px; }
.uh-stats { display: flex; justify-content: flex-start; gap: 36px; margin-top: 12px; padding-left: 14px; }
.uh-stat { cursor: pointer; text-align: center; }
.uh-stat b { display: block; font-size: 18px; }
.uh-stat span { font-size: 12px; color: var(--text-3); }
.uh-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; padding-left: 14px; padding-right: 14px; }
.uh-actions.cols-3 { grid-template-columns: repeat(3, 1fr); }
.uh-actions .btn, .uh-actions .mutual-tag { min-width: 0; box-sizing: border-box; }
.uh-actions .btn { height: 32px; padding: 0 6px; text-align: center; white-space: nowrap; }
.uh-actions .mutual-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; font-size: 13px; color: #FF8C42; background: #FFF3E8; border: 1px solid #FFD591; border-radius: 20px; white-space: nowrap; }
/* 关注申请面板（私密账号作者） */
.follow-req-box { margin: 10px 14px 0; background: #FFF; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; }
.freq-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text); }
.freq-badge { background: #FF4D6A; color: #FFF; font-size: 11px; border-radius: 10px; padding: 1px 7px; margin-left: 2px; }
.freq-arrow { margin-left: auto; color: var(--text-3); display: inline-flex; transition: transform .2s; }
.freq-list { border-top: 1px solid #F0F0F0; padding: 4px 0; }
.freq-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px; }
.freq-item .btn { margin-left: auto; }
.freq-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-item { margin-bottom: 12px; }
.form-item label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.ipt { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid #e2e2e2; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; background: #fff; color: var(--text); }
.ipt:focus { border-color: #7B68EE; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ===== 关注/粉丝列表 follow.html ===== */
.pager { display: flex; justify-content: center; gap: 6px; padding: 14px 0 4px; flex-wrap: wrap; }
.pager .pg { min-width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 8px; background: #f2f2f2; font-size: 13px; cursor: pointer; padding: 0 6px; }
.pager .pg.active { background: linear-gradient(135deg, #7B68EE, #5B8DEF); color: #fff; font-weight: 700; }

/* ===== 消息中心 Tab 徽标 ===== */
.tab-badge { display: inline-block; margin-left: 4px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 10px; background: #FF4D4F; color: #fff; font-size: 10px; padding: 0 4px; vertical-align: 2px; }

/* ===== 私信 chat.html ===== */
/* 聊天页锁定视口高度并禁止整页滚动：顶部头部 / 输入框固定，仅消息列表内部滚动 */
.chat-page { height: 100dvh; overflow: hidden; }
.chat-page .topbar { position: relative; }
.chat-page .topbar .logo { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
.chat-page .page { height: 100%; display: flex; flex-direction: column; padding-bottom: 64px; box-sizing: border-box; overflow: hidden; }
.chat-wrap { display: flex; flex: 1; min-height: 0; background: #fff; }
.conv-panel { width: 280px; min-width: 200px; border-right: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.conv-head { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid #f0f0f0; }
.conv-list { flex: 1; overflow-y: auto; }
.conv-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid #f7f7f7; }
.conv-item:hover, .conv-item.active { background: #f7f4ff; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 14px; }
.conv-last { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-right { text-align: right; }
.conv-time { font-size: 11px; color: var(--text-3); }
.conv-badge { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; border-radius: 10px; background: #FF4D4F; color: #fff; font-size: 10px; padding: 0 4px; text-align: center; }
.msg-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.msg-head { position: relative; min-height: 56px; padding: 8px 12px; font-weight: 700; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 10px; box-sizing: border-box; }
.msg-head .mh-left { flex-shrink: 0; display: flex; align-items: center; }
.msg-head .mh-left .avatar-link { display: flex; }
.msg-head .mh-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.msg-head .mh-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; }
.msg-head .mh-name > span { flex-shrink: 0; }
.msg-head .mh-sub { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 2px; }
.msg-head .mh-jm { font-size: 12px; }
.msg-head .mh-owner { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-head .mh-gav { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#7B68EE,#A777E3); font-size: 17px; flex-shrink: 0; }
.msg-head .mh-gav img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.msg-head .mh-right { flex-shrink: 0; display: flex; align-items: center; gap: 2px; }
.msg-head .mh-right .mh-more-btn { background: transparent; border: none; color: var(--text-2); }
.msg-head .mh-right .mh-more-btn:hover { background: transparent; color: var(--text-1); }
.msg-head .mh-right .mh-more-btn:active { background: transparent; transform: scale(.9); }
.msg-head .head-dot { margin-left: 0; }
#msgHeadName, .msg-head .mh-name { overflow: hidden; text-overflow: ellipsis; }
.msg-head .lv-badge { flex-shrink: 0; }
.head-more-menu { position: absolute; top: 54px; right: 10px; background: #fff; border: 1px solid #ececec; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.09); display: none; flex-direction: column; padding: 5px; z-index: 40; min-width: 150px; }
.head-more-menu.show { display: flex; }
.head-more-menu .hm-item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 13px; font-weight: 500; color: var(--text-1); border-radius: 9px; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.head-more-menu .hm-item svg { flex-shrink: 0; opacity: .75; }
.head-more-menu .hm-item:hover, .head-more-menu .hm-item:active { background: #f4f5f7; }
.head-more-menu .hm-item.danger { color: #E5484D; }
.head-more-menu .hm-item.danger svg { opacity: .8; }
.head-more-menu .hm-item.danger:hover, .head-more-menu .hm-item.danger:active { background: #fdf0f0; }
.msg-list { flex: 1; overflow-y: auto; padding: 14px 16px; background: #fafafa; }
.msg-row { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 10px; }
.msg-row.mine { align-items: flex-end; }
/* 群聊发送者：头像 + 昵称（点击跳对方主页） */
.msg-sender { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; padding: 0 2px; }
.msg-sender .g-avatar { position: relative; display: inline-block; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; text-decoration: none; }
.msg-sender .g-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-sender .g-av-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; font-size: 13px; font-weight: 600; }
.msg-sender .g-avatar .av-v { position: absolute; right: 15%; bottom: 15%; z-index: 2; display: flex; }
.msg-sender .g-avatar .av-v .v-badge { width: 11px; height: 11px; font-size: 6.5px; box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(0,0,0,.25); }
.msg-sender .g-nick { font-size: 12px; color: var(--text-2); text-decoration: none; }
.msg-bubble { max-width: 72%; }
.msg-text-in { display: inline-block; background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 8px 12px; font-size: 14px; word-break: break-word; }
.mine .msg-bubble .msg-text-in { background: linear-gradient(135deg, #7B68EE, #A777E3); color: #fff; border: none; }
.msg-time { font-size: 10px; color: var(--text-3); margin-top: 3px; padding-left: 4px; }
.msg-recall { color: #9CA3AF; font-size: 11px; cursor: pointer; margin-right: 8px; }
.msg-recall:hover { color: #F5222D; }
.msg-img { max-width: 200px; max-height: 220px; border-radius: 10px; display: block; cursor: zoom-in; }
.msg-video { max-width: 220px; max-height: 260px; border-radius: 10px; display: block; background: #111; }
/* 语音消息气泡 */
.msg-voice { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 9px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; min-width: 130px; }
.mine .msg-bubble .msg-voice { background: linear-gradient(135deg, #7B68EE, #A777E3); color: #fff; border: none; }
.vv-play { font-size: 14px; color: var(--primary); }
.mine .msg-bubble .vv-play { color: #fff; }
.vv-anim { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.vv-anim i { width: 3px; background: currentColor; border-radius: 2px; animation: vvB 1s ease-in-out infinite; }
.vv-anim i:nth-child(1) { height: 8px; }
.vv-anim i:nth-child(2) { height: 14px; animation-delay: .15s; }
.vv-anim i:nth-child(3) { height: 6px; animation-delay: .3s; }
@keyframes vvB { 0%,100% { transform: scaleY(.6); } 50% { transform: scaleY(1.15); } }
.vv-dur { font-size: 12px; color: var(--text-3); min-width: 26px; text-align: right; }
.mine .msg-bubble .vv-dur { color: rgba(255,255,255,.85); }
/* 录音面板 */
.voice-rec-panel { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #7B68EE; border-radius: 20px; padding: 7px 8px 7px 14px; }
.vr-dot { width: 10px; height: 10px; border-radius: 50%; background: #F5222D; animation: vrBlink 1s ease-in-out infinite; }
@keyframes vrBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.vr-tip { font-size: 13px; color: var(--text-2); }
.vr-time { font-size: 13px; color: #7B68EE; font-weight: 600; min-width: 34px; }
.vr-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: #f3f3f7; color: var(--text-2); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vr-btn.vr-send { background: linear-gradient(135deg, #7B68EE, #A777E3); color: #fff; }
.vr-btn.vr-pause { background: linear-gradient(135deg, #4A90E2, #5B8DEF); color: #fff; }
.vr-btn.vr-pause.vr-resume { background: linear-gradient(135deg, #52C41A, #73D13D); color: #fff; }
.vr-btn.vr-pause svg { fill: currentColor; }
.vr-btn.vr-pause.vr-resume svg { fill: currentColor; }
/* 视频发送前预览确认层 */
.video-preview-mask { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-preview-box { background: #fff; border-radius: 16px; width: min(420px, 94vw); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.vp-head { padding: 14px 16px 10px; font-size: 15px; font-weight: 600; color: var(--text-1); }
.video-preview-box video { width: 100%; max-height: 55vh; background: #000; display: block; }
.vp-actions { display: flex; gap: 10px; padding: 14px 16px 16px; }
.vp-actions .btn { flex: 1; padding: 9px 0; border-radius: 10px; font-size: 14px; }
.vp-btn-cancel { background: #f3f3f7; color: var(--text-2); border: none; }
@media (max-width: 480px) { .video-preview-box { width: 96vw; } }
/* 通话记录（居中系统卡片） */
.msg-call-row { justify-content: center; }
.msg-call-row .call-record { display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.045); color: var(--text-3); font-size: 12px; padding: 4px 14px; border-radius: 999px; margin: 4px 0; }
/* 语音通话浮层 */
.call-mask { position: fixed; inset: 0; background: rgba(15,15,25,.92); z-index: 1100; display: flex; align-items: center; justify-content: center; }
.call-box { text-align: center; color: #fff; width: min(360px, 92vw); padding: 30px 20px; }
.call-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; background: linear-gradient(135deg,#7B68EE,#A777E3); display: flex; align-items: center; justify-content: center; font-size: 44px; box-shadow: 0 8px 30px rgba(123,104,238,.45); }
.call-name { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.call-status { font-size: 14px; color: rgba(255,255,255,.65); min-height: 20px; }
.call-duration { font-size: 30px; font-weight: 300; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.call-actions { display: flex; justify-content: center; gap: 28px; margin-top: 44px; }
.call-btn { width: 74px; height: 74px; border-radius: 50%; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: #fff; background: rgba(255,255,255,.12); -webkit-tap-highlight-color: transparent; }
.call-btn .cb-ico { font-size: 26px; line-height: 1; }
.call-btn:active { transform: scale(.94); }
.call-end { background: #F5222D; }
.call-answer { background: #22C55E; }
.call-mute.muted-on { background: #7B68EE; }
.call-mask .pulse { animation: callPulse 1.4s ease-in-out infinite; }
@keyframes callPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(123,104,238,.55); } 50% { box-shadow: 0 0 0 16px rgba(123,104,238,0); } }
/* 来电横幅（顶部通知，不打断浏览） */
.call-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); width: min(420px, 94vw); background: rgba(28,28,42,.97); color: #fff; border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.35); z-index: 1150; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent; }
.call-banner.cb-in { animation: cbIn .3s ease-out; }
.call-banner.cb-out { animation: cbOut .3s ease-in forwards; }
@keyframes cbIn { from { transform: translateX(-50%) translateY(-120%); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes cbOut { from { transform: translateX(-50%) translateY(0); opacity: 1; } to { transform: translateX(-50%) translateY(-120%); opacity: 0; } }
.call-banner .cb-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#7B68EE,#A777E3); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.call-banner .cb-info { flex: 1; min-width: 0; }
.call-banner .cb-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-banner .cb-sub { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.call-banner .cb-btn { border: none; border-radius: 999px; padding: 7px 18px; font-size: 13px; cursor: pointer; color: #fff; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.call-banner .cb-ans { background: #22C55E; }
.call-banner .cb-rej { background: #F5222D; }
.call-banner .cb-btn:active { transform: scale(.94); }
/* 来电通知横幅（其他页面：点查看跳转聊天页接听） */
.call-notify { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); width: min(420px, 94vw); background: rgba(28,28,42,.97); color: #fff; border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.35); z-index: 1150; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent; }
.call-notify.cn-in { animation: cnIn .3s ease-out; }
.call-notify.cn-out { animation: cnOut .3s ease-in forwards; }
@keyframes cnIn { from { transform: translateX(-50%) translateY(-120%); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes cnOut { from { transform: translateX(-50%) translateY(0); opacity: 1; } to { transform: translateX(-50%) translateY(-120%); opacity: 0; } }
.call-notify .cn-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#7B68EE,#A777E3); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.call-notify .cn-info { flex: 1; min-width: 0; }
.call-notify .cn-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-notify .cn-sub { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.call-notify .cn-btn { border: none; border-radius: 999px; padding: 7px 18px; font-size: 13px; cursor: pointer; color: #fff; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.call-notify .cn-view { background: #7B68EE; }
.call-notify .cn-rej { background: #F5222D; }
.call-notify .cn-btn:active { transform: scale(.94); }
.msg-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #f0f0f0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.msg-input .btn-primary { min-height: 38px; flex-shrink: 0; }
.msg-input .icon-btn { flex-shrink: 0; }
.msg-text { flex: 1; border: 1px solid #e2e2e2; border-radius: 20px; padding: 8px 14px; font-size: 14px; outline: none; }
.msg-text:focus { border-color: #7B68EE; }
/* 输入框"+" 功能菜单 */
.msg-input { position: relative; }
.msg-menu { position: absolute; bottom: calc(100% + 8px); left: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.12); border: 1px solid #f0f0f0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 30; }
.msg-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.msg-menu .mm-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px; cursor: pointer; font-size: 12px; color: var(--text-2); transition: background .15s; -webkit-tap-highlight-color: transparent; }
.msg-menu .mm-item:active { background: #f4f4f8; }
.msg-menu .mm-item span { font-size: 22px; line-height: 1; }
#msgMoreBtn.active { color: var(--primary); background: rgba(123,104,238,.12); }
@media (max-width: 480px) { .msg-menu { left: 6px; right: 6px; } .msg-list { padding: 12px 12px; } .msg-row { margin-bottom: 12px; } }
.hidden-mobile { display: flex; }
.show-mobile { display: none; }
@media (max-width: 900px) {
  .chat-wrap { position: relative; }
  /* 移动端不再显示会话列表页（消息中心已是列表入口），直接进入聊天窗口 */
  .conv-panel { display: none; }
  .msg-panel { display: flex; }
  .hidden-mobile { display: none !important; }
  .show-mobile { display: flex; }
  .msg-img { max-width: 160px; }
}

/* ===== 帖子审核状态 ===== */
.detail-status-tip {
  margin: 10px 14px 0; padding: 10px 14px; border-radius: 10px;
  background: #FFF8E1; color: #B8860B; font-size: 13px; font-weight: 600;
}
.detail-status-tip.rejected { background: #FDECEC; color: #D9534F; }

/* ===== 投票不可更改 ===== */
.vote-option.disabled { cursor: not-allowed; opacity: .95; }

/* ===== 活动报名信息 ===== */
.activity-myinfo {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: #F4F1FF; border: 1px solid #E4DCFF;
  font-size: 13px; line-height: 1.9; color: var(--text-2);
}
.activity-myinfo .ai-lbl { font-weight: 800; color: #6B5BD9; }
.activity-enrolls { margin-top: 12px; }
.enrolls-btn { width: 100%; background: var(--orange); color: #fff; border: none; border-radius: 10px; padding: 9px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.enrolls-table { margin-top: 10px; border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; }
.enroll-row { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f5f5f5; font-size: 13px; line-height: 1.7; }
.enroll-row:last-child { border-bottom: none; }
.enroll-idx { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.enroll-name { font-weight: 700; }
.enroll-real { margin-left: 8px; color: var(--orange); font-weight: 700; }

/* ===== 报名信息弹窗 ===== */
.enroll-modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.enroll-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 340px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.em-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; text-align: center; }
.em-field { margin-bottom: 12px; }
.em-field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.em-field label em { color: #E54D42; font-style: normal; }
.em-input { width: 100%; box-sizing: border-box; border: 1px solid #e2e2e2; border-radius: 10px; padding: 9px 12px; font-size: 14px; outline: none; font-family: inherit; }
.em-input:focus { border-color: #7B68EE; }
.em-area { resize: none; }
.em-btns { display: flex; gap: 10px; margin-top: 16px; }
.em-btns .btn { flex: 1; border-radius: 10px; padding: 10px 0; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ===== 在线状态 / 已读回执 / 地图导航 ===== */
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 0 2px rgba(46, 204, 113, .25); }
.conv-dot { position: absolute; left: -2px; bottom: -2px; border: 2px solid #fff; width: 10px; height: 10px; }
.head-dot { margin-left: 2px; vertical-align: 1px; }
.uh-online { display: inline-flex; align-items: center; gap: 5px; color: #2ECC71; background: #EAFBF0; }
.uh-loc { cursor: pointer; color: #7B68EE; background: #F0EDFF; }
.msg-read { color: #9AA0A6; font-size: 10px; margin-right: 6px; }
.mine .msg-read { color: rgba(255,255,255,.75); }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.map-link { font-size: 12px; font-weight: 600; color: #7B68EE; background: #F0EDFF; border-radius: 20px; padding: 4px 12px; text-decoration: none; border: 1px solid #E4DCFF; }
.map-link:hover { background: #E4DCFF; }
.btn-danger { background: linear-gradient(135deg, #FF4D4F, #FF7A45); color: #fff; border: none; }

/* ===== 评论楼中楼与确认弹窗 ===== */
.comment-input-row { position: relative; }
.reply-hint { position: absolute; top: -22px; left: 4px; font-size: 12px; color: #7B68EE; background: #F0EDFF; border-radius: 12px; padding: 2px 10px; }
.rh-cancel { margin-left: 6px; cursor: pointer; font-weight: 700; color: #999; }
.cm-replies { margin-top: 8px; background: #F7F7F9; border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; gap: 6px; }
.cm-reply { font-size: 13px; line-height: 1.6; }
.cm-r-content { color: var(--text-1); }
.cm-more { color: #7B68EE; font-size: 12px; cursor: pointer; padding: 3px 0; }
.cm-r-like { cursor: pointer; font-size: 12px; margin-left: 6px; }
.cm-r-like.active { color: #FF4D6A; }
.cm-r-reply { cursor: pointer; font-size: 12px; color: #7B68EE; margin-left: 6px; }
.cm-r-report { cursor: pointer; font-size: 12px; color: #999; margin-left: 8px; display: inline-flex; align-items: center; gap: 3px; }
.cm-r-del { cursor: pointer; font-size: 12px; color: #999; margin-left: 6px; display: inline-flex; align-items: center; }
.confirm-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.confirm-box { background: #fff; border-radius: 16px; width: 100%; max-width: 320px; padding: 22px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
/* 开屏公告阅读进度条（移动端无滚动条，顶部细条显示阅读进度） */
.splash-progress { position: relative; height: 3px; background: rgba(0,0,0,.05); overflow: hidden; }
.splash-progress i { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--primary, #7c5cff); border-radius: 0 2px 2px 0; transition: width .1s linear; }
.confirm-msg { font-size: 15px; line-height: 1.7; text-align: center; color: var(--text-1); word-break: break-all; }
.confirm-btns { display: flex; gap: 10px; margin-top: 18px; }
.confirm-btns .cbtn { flex: 1; border-radius: 10px; padding: 10px 0; font-size: 14px; font-weight: 700; cursor: pointer; border: none; }
.cbtn-cancel { background: #F2F3F5; color: var(--text-2); }
.cbtn-ok { background: linear-gradient(135deg, #7B68EE, #5B8DEF); color: #fff; }

/* ===== 首页轮播图 ===== */
.hero-swiper { position: relative; margin: 8px 12px 0; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #7B68EE, #5B8DEF); min-height: 120px; }
.swiper-track { position: relative; height: 100%; }
.swiper-slide { position: relative; display: none; width: 100%; min-height: 120px; flex-direction: column; align-items: stretch; justify-content: flex-start; color: #fff; cursor: pointer; box-sizing: border-box; background: #fff; }
.swiper-slide.active { display: flex; z-index: 2; }
.swiper-slide img { width: 100%; height: 150px; object-fit: cover; display: block; }
.swiper-title { position: static; padding: 10px 14px 12px; font-size: 15px; font-weight: 700; color: var(--text); background: #fff; text-shadow: none; text-align: left; }
.swiper-dots { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 5px; z-index: 5; pointer-events: auto; }
.swiper-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: all .2s; }
.swiper-dots .dot.active { background: #fff; width: 16px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* ===== 首页功能入口宫格 ===== */
.quick-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 12px 0; }
.qe-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; background: #fff; border-radius: 14px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: transform .15s; }
.qe-cell:active { transform: scale(.96); }
.qe-cell .qe-ico { font-size: 24px; }
.qe-cell .qe-name { font-size: 12px; font-weight: 700; color: var(--text-2); }

/* ===== logo 图片（后台可改） ===== */
.logo img { height: 26px; max-width: 120px; object-fit: contain; vertical-align: -5px; margin-right: 4px; }
.logo.has-logo .dot { display: none; }

/* ===== PC 响应式（≥960px 多栏布局） ===== */
@media (min-width: 960px) {
  body { background: #F0F1F5; }
  .page { max-width: 1080px; margin: 0 auto; padding: 0 16px 30px; }
  .topbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 0 0 12px 12px; padding: 12px 20px; }
  .bottom-nav { left: 50%; transform: translateX(-50%); width: 680px; max-width: 92vw; border-radius: 18px 18px 0 0; }
  .quick-entry-grid { grid-template-columns: repeat(6, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
  .hero-swiper { max-width: 860px; margin-left: auto; margin-right: auto; }
  .swiper-slide img { height: 220px; }
  .tabs-scroll, .content-tabs, .hot-rank, .container { max-width: 860px; margin-left: auto; margin-right: auto; }
  .container { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  #loadMore { max-width: 860px; margin: 0 auto; }
  .card { margin-bottom: 0; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
  .action-sheet-mask { z-index: 2000; }
}


/* ===== 认证V标 / 等级徽标 ===== */
.v-badge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; vertical-align: middle; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.lv-badge { display: inline-flex; align-items: center; justify-content: center; height: 15px; padding: 0 5px; border: 1px solid; border-radius: 8px; font-size: 10px; font-weight: 700; line-height: 1; vertical-align: middle; white-space: nowrap; }

/* ===== 底部导航角标 ===== */
.bn-ico { position: relative; }
.bn-badge { position: absolute; top: -6px; right: -10px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #EF4444; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 15px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* ===== 广告背景图（自定义上传） ===== */
.ad-image-banner { position: relative; overflow: hidden; }
.ad-image-banner .ad-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-image-banner .ad-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15)); }
.ad-image-banner .ad-overlay { position: relative; z-index: 1; }
.ad-image-banner .ad-go { position: relative; z-index: 1; }

/* ===== 文字轮播 ===== */
/* 关键：必须保持与 .swiper-slide 同级特异性并在 active 时才显示，避免文字轮播全部叠加错位 */
.swiper-slide.text-banner-slide { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.swiper-slide.text-banner-slide.active { display: flex; z-index: 3; }
.text-banner-slide .tb-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; animation: tbFloat 2.4s ease-in-out infinite; }
.text-banner-slide .tb-sub { font-size: 13px; opacity: .92; animation: tbFloat 2.4s ease-in-out .4s infinite; }
.text-banner-slide .tb-link { margin-top: 8px; font-size: 12px; padding: 4px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: rgba(255,255,255,.18); }
@keyframes tbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ===== 签到反馈弹窗 ===== */
.signin-pop { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 900; width: 280px; background: #fff; border-radius: 16px; padding: 24px 20px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.18); animation: tbFloat .3s ease; }
.signin-pop .sp-title { font-size: 18px; font-weight: 700; color: #F59E0B; margin-bottom: 8px; }
.signin-pop .sp-row { font-size: 13px; color: var(--text-2); margin: 5px 0; display: flex; justify-content: space-between; }
.signin-pop .sp-row b { color: var(--text-1); }
.signin-pop .sp-btn { margin-top: 14px; width: 100%; padding: 10px; border: none; border-radius: 10px; background: var(--primary, #07C160); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ===== 注册人机验证 ===== */
.captcha-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.code-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.captcha-row img { width: 108px; height: 40px; border-radius: 8px; border: 1px solid #e2e2e2; cursor: pointer; background: #f5f5f5; flex-shrink: 0; }
.captcha-row .login-input { flex: 1; }
.captcha-row .code-btn { flex-shrink: 0; }
.code-row .code-btn { flex-shrink: 0; }
/* 验证码/邮箱验证码行：输入框 flex 撑开并收缩，防止被右侧按钮/图片遮挡 */
.captcha-row .login-input, .code-row .login-input { flex: 1; min-width: 0; width: auto; margin-bottom: 0; }

/* ===== 签到弹窗（mask + 头部） ===== */
.signin-pop-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; display: flex; align-items: center; justify-content: center; }
.signin-pop .sp-head { font-size: 18px; font-weight: 700; color: #F59E0B; margin-bottom: 8px; }

/* ===== 认证中心 ===== */
.form-item { margin-bottom: 14px; }
.form-item > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-item .ipt { width: 100%; box-sizing: border-box; border: 1px solid #e2e2e2; border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; background: #fff; color: var(--text-1); }
.form-item .ipt:focus { border-color: #6E5BF0; }
.verify-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.verify-type-item { border: 1.5px solid #e2e2e2; border-radius: 12px; padding: 12px 10px; text-align: center; cursor: pointer; transition: all .15s; }
.verify-type-item.active { border-color: #6E5BF0; background: #F0EDFF; }
.verify-type-item .vt-name { font-size: 13px; font-weight: 700; margin-top: 6px; color: var(--text-1); }
.verify-type-item .vt-color { font-size: 11px; margin-top: 2px; }
.verify-files { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-item { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.vf-item img { width: 100%; height: 100%; object-fit: cover; }
.vf-item .vf-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px; text-align: center; background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; font-size: 13px; cursor: pointer; }
.vf-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid #eee; }
.verify-upload-row { margin-top: 8px; }
.verify-state-item { font-size: 14px; }

/* ===== 帖子详情视频：移动端撑满父容器，宽度一致、不变形 ===== */
.detail-video {
  width: 100%;
  margin: 12px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.detail-video video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: #000;
}
.detail-video-tip {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-2, #8a8a8a);
  background: #f7f7f7;
  text-align: center;
}

/* ===== 登录/注册：认证子面板与平滑过渡 ===== */
.auth-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-sub-tabs .ct {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-2, #8a8a8a);
  background: var(--bg, #f5f6f7);
  cursor: pointer;
  transition: all .25s ease;
}
.auth-sub-tabs .ct.active {
  color: #fff;
  background: linear-gradient(135deg, #7B68EE, #5B8DEF);
  box-shadow: 0 4px 10px rgba(123,104,238,.3);
}
.auth-panel {
  animation: authFadeSlide .28s ease;
}
.auth-panel.hidden {
  display: none;
}
@keyframes authFadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reg-mode-card {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.reg-mode-card .rm-cell {
  flex: 1;
  border: 1.5px solid #e3e5ea;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2, #8a8a8a);
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}
.reg-mode-card .rm-cell.active {
  border-color: #2F7BFF;
  color: #2F7BFF;
  background: rgba(47,123,255,.06);
  font-weight: 700;
}
.field-tip {
  font-size: 11px;
  color: var(--text-3, #aaa);
  margin: -6px 0 10px 2px;
  line-height: 1.5;
}
.field-tip.error { color: #e5484d; }
.code-sent-tip {
  font-size: 11px;
  color: #00B578;
  margin-top: -6px;
  margin-bottom: 8px;
  padding-left: 2px;
}

/* ===== 图形验证码弹窗（人机验证，登录注册页） ===== */
.captcha-mask {
  position: fixed; inset: 0; background: rgba(30, 27, 60, 0.55);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.captcha-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 340px;
  padding: 18px; box-shadow: 0 12px 44px rgba(60, 70, 150, 0.25);
  animation: cmPop .22s ease;
}
@keyframes cmPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cm-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.cm-close { cursor: pointer; color: var(--text-3); font-size: 16px; padding: 2px 6px; line-height: 1; }
.cm-close:hover { color: var(--red); }
.cm-body img {
  width: 100%; height: 54px; border-radius: 10px; border: 1px solid var(--border);
  cursor: pointer; background: #F5F6FB; object-fit: cover; display: block;
}
.cm-input-row { display: flex; gap: 8px; margin-top: 12px; }
.cm-input-row .login-input { flex: 1; }
.cm-input-row .code-btn { flex-shrink: 0; }
.cm-foot { margin-top: 14px; }
.cm-foot .btn-primary { width: 100%; background: linear-gradient(135deg, #7B68EE, #2F7BFF); box-shadow: 0 3px 8px rgba(123, 104, 238, .3); }
.cm-foot .btn-primary:disabled { opacity: .6; cursor: not-allowed; }
#cmCaptchaTip.error { color: var(--red); }

/* 发布页拍照入口 */
.cam-upload{background:#F3F1FF;color:#7B68EE;font-size:22px;font-weight:700}


/* ===== WAP 移动端体验增强 ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
img, video, canvas, iframe { max-width: 100%; }
a, button, [onclick], .clickable { -webkit-touch-callout: none; }
/* 小屏：表单字号 16px 防 iOS 聚焦自动放大；触控目标更大 */
@media (max-width: 640px) {
  .ipt, .msg-text, textarea, select, input { font-size: 16px; }
  .bn-item, .tab-pill, .icon-btn, .btn, .cf-item, .cm-like { min-height: 44px; }
  .uh-actions .mutual-tag { min-height: 44px; }
  /* 圆形图标按钮保持正方形，避免被 min-height 拉成椭圆 */
  .icon-btn { width: 44px; height: 44px; }
  /* 聊天输入框内图标按钮固定尺寸，防止 flex 拉伸变形 */
  .msg-input .icon-btn { flex: 0 0 44px; }
  /* 语音录制面板圆形按钮保持正方形 */
  .vr-btn { width: 40px; height: 40px; }
}
@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); }
}


/* ===== 视频帖子卡片缩略图 ===== */
.video-preview { position: relative; width: 100%; height: 190px; border-radius: 12px; overflow: hidden; background: #111; margin-top: 10px; }
.video-preview img, .video-preview video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.vp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.85); }
.vp-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }

.vp-ph { position: absolute; inset: 0; background: linear-gradient(135deg, #8B7BE8, #B388EB 55%, #FFB86C); }

/* 桌面端横向容器显示细滚动条（置于末尾确保覆盖隐藏规则）；移动端保留触屏滑动 */
@media (min-width: 769px) {
  .tabs-scroll, .hot-rank { scrollbar-width: thin; scrollbar-color: rgba(123,104,238,.4) transparent; }
  .tabs-scroll::-webkit-scrollbar, .hot-rank::-webkit-scrollbar { display: block; height: 5px; }
  .tabs-scroll::-webkit-scrollbar-thumb, .hot-rank::-webkit-scrollbar-thumb { background: rgba(123,104,238,.4); border-radius: 3px; }
  .tabs-scroll::-webkit-scrollbar-track, .hot-rank::-webkit-scrollbar-track { background: transparent; }
}

/* 上传中转圈提示 */
.uploading-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.uploading-box { background: #fff; border-radius: 14px; padding: 22px 34px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.uploading-spin { width: 26px; height: 26px; border: 3px solid #E5E7EB; border-top-color: #7B68EE; border-radius: 50%; animation: upSpin 0.8s linear infinite; flex-shrink: 0; }
@keyframes upSpin { to { transform: rotate(360deg); } }
.uploading-text { font-size: 14px; color: #333; font-weight: 500; }
