/* ============ 社交圈 全站样式 ============ */
:root {
  --primary: #009688;
  --primary-light: #36CFC9;
  --blue: #007AFF;
  --orange: #FF8C42;
  --red: #F5222D;
  --yellow: #FFD700;
  --purple: #7B68EE;
  --bg: #F2F4F8;
  --card: #FFFFFF;
  --text: #1F2329;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --border: #EEF0F4;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(31, 35, 41, 0.06);
}
* { 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", 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: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  box-shadow: 0 1px 4px 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: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--red)); }
/* 后台站点基础设置上传的 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: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: linear-gradient(135deg, var(--blue), var(--primary)); color: #fff; box-shadow: 0 3px 8px rgba(0,122,255,.25); }
.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; }

/* 搜索框 */
.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); }

/* 分类标签栏（横向滚动） */
.tabs-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 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;
}
.tab-pill.active { background: linear-gradient(135deg, var(--blue), var(--primary)); color: #fff; border-color: transparent; font-weight: 600; }

/* 内容 Tab（顶部切换） */
.content-tabs {
  display: flex; align-items: center; justify-content: center; gap: 30px;
  background: #fff; padding: 10px 0 0; 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: 20px; height: 4px; border-radius: 2px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

/* 卡片 */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
}
.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(--orange); }

/* 头像 */
.avatar {
  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.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }

/* 标签 */
.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; }
.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; }

/* 置顶 / 热帖 */
.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: 12px 14px; scrollbar-width: none; }
.hot-rank::-webkit-scrollbar { display: none; }
.hot-rank-card {
  flex-shrink: 0; width: 200px; border-radius: 12px; padding: 12px;
  background: linear-gradient(135deg, #FFF7E6, #FFE7BA);
  box-shadow: var(--shadow); cursor: pointer;
}
.hot-rank-card .hr-title { font-size: 13px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-rank-card .hr-meta { font-size: 11px; color: var(--text-2); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.hot-rank-card .hr-rank { font-size: 22px; font-weight: 900; color: var(--orange); line-height: 1; }

/* 广告 */
.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: #fff; border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  max-width: 560px; margin: 0 auto; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav .bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-3); font-size: 10px; padding: 6px 0; transition: all .2s;
}
.bottom-nav .bn-item .bn-ico { font-size: 20px; line-height: 1; }
.bottom-nav .bn-item.active { color: var(--blue); font-weight: 700; }
.bottom-nav .bn-pub {
  width: 46px; height: 46px; margin-top: -24px; border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, var(--red));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 4px 12px rgba(245,34,45,.4);
  border: 4px solid #fff; transition: transform .2s;
}
.bottom-nav .bn-pub:active { transform: scale(0.92); }

/* 个人中心 */
.profile-header {
  background: linear-gradient(135deg, #fff, #F0F7F7);
  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-bio { font-size: 12px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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; }
.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; }
.pub-type:active .pt-ico { transform: scale(0.9); }
.pub-type .pt-name { font-size: 13px; font-weight: 600; color: var(--text-2); }
.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; }
.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; }
.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(0,150,136,.12); 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; }
.score-box .star.on { color: var(--yellow); }
.score-box .star:active { transform: scale(1.2); }
.score-val { font-size: 13px; color: var(--text-2); margin-left: 6px; }

/* 评论 */
.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; }
.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); }
.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; }
.detail-bottom .db-item .db-num { font-size: 11px; font-weight: 600; }
.detail-bottom .db-item.active { color: var(--red); }
.detail-bottom .db-item.fav.active { color: var(--orange); }
.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, #E8F7F5 0%, #F2F4F8 60%, #FFF7E6 100%); }
.login-logo { width: 76px; height: 76px; border-radius: 24px; background: linear-gradient(135deg, var(--blue), var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 38px; color: #fff; box-shadow: 0 8px 24px rgba(0,150,136,.35); 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; }
.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; }

/* 圈子双列瀑布 */
.circle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.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; }

/* 双列排行榜 */
.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; }

/* ============================================================
   视觉升级层（对齐参考设计图：黄·紫·蓝·橙主调 / 移动端优先）
   ============================================================ */
:root {
  --primary: #6E5BF0;          /* 品牌紫 */
  --primary-light: #36CFC9;    /* 青 */
  --blue: #2F7BFF;
  --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, #2F7BFF, #36CFC9);
  --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%, #2F7BFF 45%, #FFC53D 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar .logo .dot { background: conic-gradient(from 180deg, #FFC53D, #FF8C42, #FF4D6A, #7B68EE, #2F7BFF, #FFC53D); }
.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, #FFC53D, #FF8C42); color: #fff; box-shadow: 0 4px 10px rgba(255,140,66,.3); }
.content-tabs .ct.active::after { background: linear-gradient(135deg, #FFC53D, #FF8C42); width: 26px; }

/* —— 卡片：大圆角 + 多彩顶部描边 + 悬浮质感 —— */
.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, #2F7BFF 40%, #FFC53D 75%, #FF8C42);
  opacity: .85;
}
.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; }

/* —— 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:nth-child(1).active .bn-ico { color: var(--blue); }
.bottom-nav .bn-item:nth-child(2).active .bn-ico { color: var(--orange); }
.bottom-nav .bn-item:nth-child(4).active .bn-ico { color: var(--purple); }
.bottom-nav .bn-item:nth-child(5).active .bn-ico { color: var(--green); }
.bottom-nav .bn-item.active .bn-ico { color: var(--blue); }
.bottom-nav .bn-item.active { color: var(--text); }
.bottom-nav .bn-item.active .bn-ico::after {
  content: ''; display: block; width: 14px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #FFC53D, #FF8C42); margin: 0 auto; margin-top: 1px;
}
.bottom-nav .bn-pub {
  width: 50px; height: 50px; margin-top: -26px; font-size: 26px; border-width: 4px;
  background: linear-gradient(135deg, #FFC53D, #FF8C42, #FF4D6A);
  box-shadow: 0 6px 16px rgba(255,90,80,.45);
}

/* —— 顶栏过渡栏：卡片容器成组 —— */
.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.on { color: #FFC53D; text-shadow: 0 1px 4px rgba(255,197,61,.5); }

/* —— 按钮：更新渐变 —— */
.btn-primary { background: linear-gradient(135deg, #6E5BF0, #2F7BFF); box-shadow: 0 4px 10px rgba(110,91,240,.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, #6E5BF0, #2F7BFF, #36CFC9); box-shadow: 0 10px 28px rgba(110,91,240,.4); }
.login-btn.btn-primary { background: linear-gradient(135deg, #FFC53D, #FF8C42); box-shadow: 0 6px 16px rgba(255,140,66,.4); }

/* —— 广告位：黄橙暖色 —— */
.ad-banner { background: linear-gradient(135deg, #6E5BF0, #2F7BFF); 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; }

/* —— 热帖排行：多彩渐变 —— */
.hot-rank-card:nth-child(1) { background: linear-gradient(135deg, #FFE9C2, #FFC53D); }
.hot-rank-card:nth-child(2) { background: linear-gradient(135deg, #EDE9FF, #7B68EE); }
.hot-rank-card:nth-child(3) { background: linear-gradient(135deg, #E3F2FF, #2F7BFF); }
.hot-rank-card:nth-child(n+4) { background: linear-gradient(135deg, #E8FFF6, #00B578); }
.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: center; padding-bottom: 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; }
.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; }
.uh-bio { font-size: 13px; color: var(--text-2); margin-top: 4px; padding: 0 20px; }
.uh-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.uh-meta-item { font-size: 12px; color: var(--text-2); background: #f5f5f5; border-radius: 20px; padding: 2px 10px; }
.uh-stats { display: flex; justify-content: center; gap: 36px; margin-top: 12px; }
.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: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.mutual-tag { font-size: 11px; color: #FF8C42; background: #FFF3E8; border: 1px solid #FFD591; border-radius: 20px; padding: 1px 8px; align-self: center; }
.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; 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, #FF8C42); 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 .page { padding-bottom: 64px; }
.chat-wrap { display: flex; height: calc(100vh - 56px - 64px); 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 { padding: 12px 16px; font-weight: 700; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; }
.msg-list { flex: 1; overflow-y: auto; padding: 14px 16px; background: #fafafa; }
.msg-row { display: flex; margin-bottom: 10px; }
.msg-row.mine { justify-content: flex-end; }
.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-img { max-width: 200px; max-height: 220px; border-radius: 10px; display: block; cursor: zoom-in; }
.msg-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #f0f0f0; }
.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; }
.hidden-mobile { display: flex; }
.show-mobile { display: none; }
@media (max-width: 900px) {
  .chat-wrap { position: relative; }
  .conv-panel { width: 100%; }
  .msg-panel { display: none; }
  .hidden-mobile { display: none !important; }
  .show-mobile { display: flex; }
  .msg-panel { position: absolute; inset: 0; background: #fff; z-index: 10; }
  .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; right: -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-del { cursor: pointer; font-size: 12px; color: #999; margin-left: 6px; }
.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; }
.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); }
.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: 10px 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: 10px; margin: 10px 12px 0; }
.qe-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 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; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 4px; 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; }
.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; }

/* ===== 签到弹窗（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: #4C7EF3; }
.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: #4C7EF3; background: #F0F5FF; }
.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, #6E5BF0, #2F7BFF);
  box-shadow: 0 4px 10px rgba(47,123,255,.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}
