/* ============================================
   神皇预测 App - 社区页样式（SPEC-B3）
   作用域前缀 .cm-*；亮色主题；老 WebView 兼容
   ============================================ */

#page-community {
  transition: none;
  overflow: hidden;
  padding-bottom: 0;
}
#page-community.active {
  display: flex;
  flex-direction: column;
  transform: none;
}

.cm-page {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #eef1f6;
  overflow: hidden;
}

/* ---------- 顶部条 ---------- */
.cm-topbar {
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, #4a7dff 0%, #3f6ef0 100%);
  color: #fff;
  padding: 12px 14px 8px;
}
.cm-topbar-row {
  display: flex;
  align-items: center;
}
.cm-back {
  background: none;
  border: 0;
  color: #fff;
  font-size: 16px;
  padding: 2px 6px 2px 0;
  cursor: pointer;
  white-space: nowrap;
  width: 88px;
  flex: none;
}
.cm-logo {
  flex: 1;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.cm-logo-sub {
  font-size: 19px;
  font-weight: 700;
  color: #ffd66b;
  letter-spacing: .5px;
}
.cm-topbar-icons {
  display: flex;
  align-items: center;
  flex: none;
}
.cm-topicon {
  position: relative;
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  padding: 4px 6px;
  cursor: pointer;
  margin-left: 6px;
  line-height: 1;
}
.cm-bell-badge {
  position: absolute;
  top: -3px;
  right: -2px;
  background: #ff4d4f;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  min-width: 12px;
  line-height: 14px;
  text-align: center;
  display: none;
}
.cm-tabs {
  display: flex;
  margin-top: 10px;
  touch-action: pan-y;
}
.cm-tab {
  padding: 4px 6px 7px;
  margin-right: 20px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  opacity: .75;
  cursor: pointer;
}
.cm-tab.on {
  opacity: 1;
  border-bottom-color: #ffd66b;
  font-weight: 600;
}

/* ---------- 话题 chips ---------- */
.cm-chips {
  flex-shrink: 0;
  display: flex;
  background: #fff;
  padding: 10px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.cm-chips::-webkit-scrollbar {
  display: none;
}
.cm-chip {
  flex-shrink: 0;
  background: #eef3ff;
  color: #4a7dff;
  border-radius: 14px;
  padding: 4px 11px;
  font-size: 12px;
  margin-right: 8px;
  cursor: pointer;
}
.cm-chip.hot {
  background: #fff3e0;
  color: #f07a1f;
}
.cm-chip.on {
  background: #4a7dff;
  color: #fff;
}

/* ---------- feed ---------- */
.cm-feed {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 10px 96px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.cm-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
}
.cm-urow {
  display: flex;
  align-items: center;
}
.cm-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-right: 9px;
}
.cm-ava-blue { background: linear-gradient(135deg, #4a7dff, #6a9bff); }
.cm-ava-green { background: linear-gradient(135deg, #12b886, #38d9a9); }
.cm-ava-orange { background: linear-gradient(135deg, #e8590c, #ff922b); }
.cm-ava-pink { background: linear-gradient(135deg, #f783ac, #faa2c1); }
.cm-ava-purple { background: linear-gradient(135deg, #9775fa, #b197fc); }
.cm-uname {
  font-size: 14px;
  font-weight: 600;
  color: #1f2733;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.cm-badge {
  background: #4a7dff;
  color: #fff;
  font-size: 9px;
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: 600;
  margin-left: 5px;
  flex-shrink: 0;
}
.cm-badge-role {
  background: #f0a13a;
}
.cm-follow-btn {
  flex: none;
  margin-left: 8px;
  border: 1px solid #4a7dff;
  background: #fff;
  color: #4a7dff;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 11.5px;
  cursor: pointer;
}
.cm-follow-btn.on {
  background: #eef3ff;
}
.cm-utime {
  font-size: 11px;
  color: #9aa4b2;
  flex-shrink: 0;
  margin-left: 6px;
}
.cm-pbody {
  margin-top: 9px;
  font-size: 14.5px;
  color: #2b3442;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.cm-tag {
  color: #4a7dff;
}
.cm-issue {
  color: #9aa4b2;
  font-size: 12px;
}
.cm-share-imgwrap {
  margin-top: 10px;
}
.cm-cardimg {
  width: 100%;
  border-radius: 10px;
  display: block;
  /* 列表页晒卡图限高约 45% 屏：v2 卡片布局把开奖数字/和值/命中结论压缩在上部 335px 内，
     裁切线落在区块空白处，列表即可见全核心信息 */
  max-height: 335px;
  object-fit: cover;
  object-position: top;
  background: #eef1f6;
}
/* 详情页恢复全图（无裁切、完整展示） */
.cm-detail .cm-cardimg {
  max-height: none;
  object-fit: contain;
}

/* ---------- 帖子图片（SPEC-FE-R6 任务2） ---------- */
.cm-postimg-wrap {
  margin-top: 10px;
}
.cm-postimg {
  width: 100%;
  max-height: 240px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  background: #eef1f6;
  cursor: pointer;
}
.cm-detail .cm-postimg {
  max-height: none;
  object-fit: contain;
}

/* ---------- 晒卡 HTML 摘要卡（SPEC-G，米色系） ---------- */
.cm-sharecard {
  margin-top: 10px;
  background: linear-gradient(180deg, #fff8f0, #fff2e2);
  border: 1px solid #ffe0b8;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.cm-sc-title {
  text-align: center;
  font-size: 12px;
  color: #8a6d3b;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.cm-sc-boxrow {
  display: flex;
  margin: 0 -4px;
}
.cm-sc-box {
  flex: 1;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 9px 4px;
  margin: 0 4px;
  box-shadow: 0 1px 3px rgba(140, 90, 20, .08);
}
.cm-sc-box-k {
  font-size: 10.5px;
  color: #8a7a63;
}
.cm-sc-box-v {
  font-size: 16px;
  font-weight: 800;
  color: #e8590c;
  margin-top: 4px;
  word-break: break-all;
}
.cm-sc-hit {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.cm-sc-hit.hit-ok {
  color: #12b886;
}
.cm-sc-hit.hit-no {
  color: #9aa4b2;
}
.cm-sc-note {
  margin-top: 6px;
  text-align: center;
  font-size: 10px;
  color: #b3a184;
}
.cm-iactions {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: #8a94a3;
}
.cm-like, .cm-cmt {
  cursor: pointer;
  margin-right: 22px;
}
.cm-sharepost {
  cursor: pointer;
  margin-right: 22px;
}
.cm-like.on {
  color: #4a7dff;
  font-weight: 600;
}
.cm-report {
  cursor: pointer;
  margin-left: auto;
  color: #b0b8c4;
}

/* ---------- 官方结果卡 ---------- */
.cm-result-card {
  margin-top: 10px;
  background: linear-gradient(160deg, #f0f6ff 0%, #e8f0ff 100%);
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  padding: 12px;
}
.cm-rc-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #5d6b82;
}
.cm-rc-nums {
  display: flex;
  margin: 10px 0 4px;
  justify-content: center;
}
.cm-rc-nums div {
  width: 46px;
  height: 52px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(180deg, #ff6b6b, #e03131);
  box-shadow: 0 3px 0 rgba(224, 49, 49, .35);
  margin-right: 8px;
}
.cm-rc-nums div:last-child {
  margin-right: 0;
}
.cm-rc-nums div.blue {
  background: linear-gradient(180deg, #4a7dff, #3b5bdb);
  box-shadow: 0 3px 0 rgba(59, 91, 219, .35);
}
.cm-rc-sum {
  text-align: center;
  font-size: 12.5px;
  color: #3b4658;
  margin-top: 6px;
}
.cm-rc-sum b {
  color: #e03131;
  font-size: 14px;
}
.cm-rc-extra {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #cdd9f2;
  font-size: 11.5px;
  color: #5d6b82;
}

/* ---------- 走势图卡（trend） ---------- */
.cm-trend-card {
  margin-top: 10px;
  background: #fbfdff;
  border: 1px solid #e4ecf8;
  border-radius: 12px;
  padding: 11px;
}
.cm-tc-title {
  font-size: 11.5px;
  color: #5d6b82;
  display: flex;
  justify-content: space-between;
}
.cm-tc-title b {
  color: #2b3442;
}

/* ---------- 战绩卡（plan） ---------- */
.cm-plan-card {
  margin-top: 10px;
  background: #f8f9fb;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #3b4658;
}
.cm-pl {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  line-height: 1.9;
}
.cm-pl b {
  color: #e03131;
}
.cm-pl b.g {
  color: #12b886;
}

/* ---------- feed 状态 ---------- */
.cm-feed-loading, .cm-feed-empty, .cm-feed-error {
  text-align: center;
  padding: 40px 16px;
  color: #9aa4b2;
  font-size: 14px;
  display: none;
}
.cm-feed-empty { color: #5d6b82; }
.cm-feed-error { color: #5d6b82; }
.cm-feed-error button, .cm-me-error button, .cm-notice-error button {
  display: block;
  margin: 12px auto 0;
  padding: 7px 26px;
  border: 0;
  border-radius: 4px;
  background: #4a7dff;
  color: #fff;
  font-size: 14px;
}
.cm-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e4e9f1;
  border-top-color: #4a7dff;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: cm-spin .8s linear infinite;
}
@keyframes cm-spin {
  to { transform: rotate(360deg); }
}
.cm-feed-loading p, .cm-me-loading p, .cm-notice-loading p {
  color: #9aa4b2;
  font-size: 13px;
  margin-top: 4px;
}
.cm-loadmore {
  display: block;
  width: 100%;
  margin: 4px 0 8px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #4a7dff;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
}
.cm-loadmore:disabled {
  color: #9aa4b2;
}

/* ---------- FAB ---------- */
.cm-fab {
  position: absolute;
  left: 14px;
  bottom: 76px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a7dff, #3f6ef0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 16px rgba(74, 125, 255, .4);
  cursor: pointer;
  z-index: 30;
}

/* ---------- 发帖 sheet ---------- */
.cm-sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
}
.cm-sheet.cm-show {
  display: block;
}
.cm-sheet-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .4);
}
.cm-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 22px;
  box-shadow: 0 -8px 30px rgba(30, 50, 90, .18);
}
.cm-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #1f2733;
}
.cm-sheet-close {
  background: none;
  border: 0;
  color: #9aa4b2;
  font-size: 18px;
  cursor: pointer;
}
.cm-sheet-topics {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cm-stopic {
  background: #eef3ff;
  color: #4a7dff;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}
.cm-stopic.on {
  background: #4a7dff;
  color: #fff;
}
.cm-sheet-title {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #e4e9f1;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  color: #2b3442;
  background: #fafbfd;
  box-sizing: border-box;
}
.cm-sheet-content {
  width: 100%;
  height: 88px;
  margin-top: 10px;
  border: 1px solid #e4e9f1;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  color: #2b3442;
  resize: none;
  background: #fafbfd;
  box-sizing: border-box;
  font-family: inherit;
}
.cm-sheet-opts {
  display: flex;
  margin-top: 10px;
}
.cm-opt {
  flex: 1;
  text-align: center;
  border: 1px dashed #c9d6ee;
  color: #4a7dff;
  border-radius: 10px;
  padding: 10px 4px;
  font-size: 12.5px;
  background: #f5f8ff;
  margin-right: 8px;
  cursor: pointer;
}
.cm-opt:last-child {
  margin-right: 0;
}
.cm-opt:disabled {
  color: #b0b8c4;
  border-color: #e4e9f1;
  background: #f7f8fa;
  cursor: not-allowed;
}
.cm-opt-primary {
  border: 0;
  background: linear-gradient(135deg, #4a7dff, #3f6ef0);
  color: #fff;
  font-weight: 600;
}
.cm-soon {
  display: block;
  font-size: 10px;
  color: #b0b8c4;
  margin-top: 2px;
}

/* 发帖 sheet 选图预览（SPEC-FE-R6 任务2） */
.cm-sheet-img {
  margin-top: 10px;
}
.cm-sheet-thumb {
  position: relative;
  display: inline-block;
}
.cm-sheet-thumb img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: #eef1f6;
}
.cm-sheet-img-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 详情 ---------- */
.cm-detail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
  background: #eef1f6;
}
.cm-detail.cm-show {
  display: flex;
}
.cm-detail-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #4a7dff 0%, #3f6ef0 100%);
  color: #fff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
}
.cm-detail-head span {
  flex: 1;
  text-align: center;
  margin-right: 40px;
}
.cm-detail-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.cm-detail-post .cm-card {
  box-shadow: none;
}
.cm-detail-chat {
  margin: 0 0 10px;
}
.cm-detail-chat button {
  width: 100%;
  padding: 10px;
  border: 1px solid #c9d6ee;
  border-radius: 10px;
  background: #fff;
  color: #4a7dff;
  font-size: 14px;
}
.cm-detail-ctitle {
  font-size: 14px;
  font-weight: 700;
  color: #1f2733;
  margin: 4px 2px 8px;
}
.cm-cmt-item {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
}
.cm-cmt-main {
  flex: 1;
  min-width: 0;
}
.cm-cmt-head {
  display: flex;
  align-items: center;
}
.cm-cmt-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2733;
}
.cm-cmt-time {
  font-size: 11px;
  color: #9aa4b2;
  margin-left: 8px;
}
.cm-cmt-body {
  font-size: 14px;
  color: #2b3442;
  line-height: 1.5;
  margin-top: 4px;
  word-break: break-word;
  white-space: pre-wrap;
}
.cm-detail-nocomment, .cm-detail-unavailable, .cm-detail-error, .cm-detail-loading {
  text-align: center;
  padding: 40px 16px;
  color: #9aa4b2;
  font-size: 14px;
}
.cm-detail-error button {
  display: block;
  margin: 12px auto 0;
  padding: 7px 26px;
  border: 0;
  border-radius: 4px;
  background: #4a7dff;
  color: #fff;
  font-size: 14px;
}
.cm-detail-composer {
  flex-shrink: 0;
  display: flex;
  background: #fff;
  padding: 8px 10px 14px;
  border-top: 1px solid #eef0f4;
}
.cm-comment-input {
  flex: 1;
  border: 1px solid #e4e9f1;
  border-radius: 18px;
  padding: 9px 14px;
  font-size: 14px;
  background: #fafbfd;
  box-sizing: border-box;
}
.cm-comment-send {
  margin-left: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #4a7dff, #3f6ef0);
  color: #fff;
  font-size: 14px;
}

/* ---------- 我的 ---------- */
.cm-me {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
  background: #eef1f6;
}
.cm-me.cm-show {
  display: flex;
}
.cm-me-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #4a7dff 0%, #3f6ef0 100%);
  color: #fff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
}
.cm-me-head span {
  flex: 1;
  text-align: center;
  margin-right: 40px;
}
.cm-me-tabs {
  flex-shrink: 0;
  display: flex;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}
.cm-metab {
  flex: 1;
  text-align: center;
  padding: 11px 0 9px;
  font-size: 14px;
  color: #5d6b82;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.cm-metab.on {
  color: #4a7dff;
  border-bottom-color: #4a7dff;
  font-weight: 600;
}
.cm-me-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.cm-mecmt-content {
  font-size: 14px;
  color: #2b3442;
  line-height: 1.5;
}
.cm-mecmt-post {
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 6px;
  padding: 6px 8px;
  background: #f5f7fa;
  border-radius: 8px;
}
.cm-mecmt-time {
  font-size: 11px;
  color: #9aa4b2;
  margin-top: 6px;
}
.cm-me-loading, .cm-me-empty, .cm-me-error {
  text-align: center;
  padding: 40px 16px;
  color: #9aa4b2;
  font-size: 14px;
  display: none;
}
.cm-me-empty { color: #5d6b82; }
.cm-me-error { color: #5d6b82; }

/* ---------- 举报理由（全局 Modal 内容） ---------- */
.cm-report-reasons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}
.cm-reason {
  margin: 5px;
  padding: 8px 14px;
  border: 1px solid #e4e9f1;
  border-radius: 18px;
  background: #fafbfd;
  color: #5d6b82;
  font-size: 13px;
  cursor: pointer;
}
.cm-reason.on {
  border-color: #4a7dff;
  background: #eef3ff;
  color: #4a7dff;
  font-weight: 600;
}

/* ---------- 晒卡弹窗（SPEC-D 任务3） ---------- */
.cm-share-sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  display: none;
}
.cm-share-sheet.cm-show {
  display: block;
}
.cm-share-panel {
  max-height: 86%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cm-share-host {
  margin-top: 10px;
}

/* ---------- 分享图灯箱（兜底保证可返回，SPEC-G 二轮） ---------- */
.cm-imgview {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(15, 20, 30, .94);
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.cm-imgview.cm-show {
  display: flex;
}
.cm-imgview-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 12px 14px;
}
.cm-imgview-back {
  background: rgba(255, 255, 255, .14);
  border: none;
  color: #fff;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 14px;
}
.cm-imgview-tip {
  margin-left: 10px;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
}
.cm-imgview-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 0 14px 20px;
  -webkit-overflow-scrolling: touch;
}
.cm-imgview-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

/* ---------- 消息（铃铛） ---------- */
.cm-notice {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
  background: #eef1f6;
}
.cm-notice.cm-show {
  display: flex;
}
.cm-notice-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #4a7dff 0%, #3f6ef0 100%);
  color: #fff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
}
.cm-notice-head span {
  flex: 1;
  text-align: center;
  margin-right: 40px;
}
.cm-notice-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.cm-notice-loading, .cm-notice-empty, .cm-notice-error {
  text-align: center;
  padding: 40px 16px;
  color: #9aa4b2;
  font-size: 14px;
  display: none;
}
.cm-notice-empty { color: #5d6b82; }
.cm-notice-error { color: #5d6b82; }
.cm-notice-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
  cursor: pointer;
}
.cm-notice-urow {
  display: flex;
  align-items: center;
}
.cm-notice-content {
  font-size: 14px;
  color: #2b3442;
  line-height: 1.5;
  margin-top: 8px;
  word-break: break-word;
  white-space: pre-wrap;
}
.cm-notice-post {
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 8px;
  padding: 6px 8px;
  background: #f5f7fa;
  border-radius: 8px;
}

/* ---------- 消息/关注管理 tab（铃铛内，SPEC-FE-R5 任务1） ---------- */
.cm-ntabs {
  flex-shrink: 0;
  display: flex;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}
.cm-ntab {
  flex: 1;
  text-align: center;
  padding: 11px 0 9px;
  font-size: 14px;
  color: #5d6b82;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.cm-ntab.on {
  color: #4a7dff;
  border-bottom-color: #4a7dff;
  font-weight: 600;
}
.cm-msg-man {
  display: block;
}
.cm-follow-man {
  display: none;
}
.cm-follow-loading, .cm-follow-empty, .cm-follow-error {
  text-align: center;
  padding: 40px 16px;
  color: #9aa4b2;
  font-size: 14px;
  display: none;
}
.cm-follow-empty { color: #5d6b82; }
.cm-follow-error { color: #5d6b82; }
.cm-follow-error button {
  display: block;
  margin: 12px auto 0;
  padding: 7px 26px;
  border: 0;
  border-radius: 4px;
  background: #4a7dff;
  color: #fff;
  font-size: 14px;
}
.cm-follow-loading p {
  color: #9aa4b2;
  font-size: 13px;
  margin-top: 4px;
}
.cm-fm-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
}
.cm-fm-main {
  flex: 1;
  min-width: 0;
}
.cm-fm-nick {
  font-size: 14px;
  font-weight: 600;
  color: #1f2733;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-fm-time {
  font-size: 11px;
  color: #9aa4b2;
  margin-top: 4px;
}
.cm-fm-btn {
  flex: none;
  margin-left: 8px;
  border: 1px solid #e4e9f1;
  background: #fff;
  color: #5d6b82;
  border-radius: 12px;
  padding: 3px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* ---------- 设置浮层 ---------- */
.cm-settings {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  display: none;
}
.cm-settings.cm-show {
  display: block;
}
.cm-settings-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .4);
}
.cm-settings-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px;
  box-shadow: 0 -8px 30px rgba(30, 50, 90, .18);
}
.cm-set-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  font-size: 14px;
  color: #1f2733;
  border-bottom: 1px solid #f0f2f6;
}
.cm-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #d4dae4;
  cursor: pointer;
  flex: none;
  transition: background .2s;
}
.cm-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: left .2s;
}
.cm-switch.on {
  background: #4a7dff;
}
.cm-switch.on::after {
  left: 22px;
}
.cm-set-item {
  padding: 15px 4px;
  font-size: 14px;
  color: #1f2733;
  border-bottom: 1px solid #f0f2f6;
  cursor: pointer;
}
.cm-set-item:last-child {
  border-bottom: 0;
}

/* ---------- 关于弹窗内容 ---------- */
.cm-about {
  font-size: 14px;
  line-height: 1.9;
  color: #5d6b82;
  text-align: left;
  padding: 4px 2px;
}

/* R7: pinned */
.cm-pinned-card {
  position: relative;
  border: 1px solid #ffe0b3;
  border-radius: 10px;
  background: #fffaf2;
  margin-bottom: 10px;
  overflow: hidden;
}
.cm-pin-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: #ff9800;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  margin: 8px 10px 0 10px;
}
.cm-pinned-card .cm-card {
  margin-bottom: 0;
}

/* R8: upload status */
.cm-sheet-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef3ff;
  color: #4a7dff;
  font-size: 13px;
  display: inline-block;
}
.cm-sheet-status-fail {
  background: #fff1f0;
  color: #e5484d;
}

/* R9: multi-image */
.cm-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cm-grid-item {
  position: relative;
  width: 31.8%;
  margin-right: 2.3%;
  margin-bottom: 6px;
  height: 0;
  padding-bottom: 31.8%;
  background: #eef1f6;
  border-radius: 6px;
}
.cm-grid-item:nth-child(3n) {
  margin-right: 0;
}
.cm-grid-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #eef1f6;
}
.cm-grid-4 .cm-grid-item {
  width: 48.5%;
  padding-bottom: 48.5%;
  margin-right: 3%;
  margin-bottom: 6px;
}
.cm-grid-4 .cm-grid-item:nth-child(3n) {
  margin-right: 3%;
}
.cm-grid-4 .cm-grid-item:nth-child(2n) {
  margin-right: 0;
}
.cm-grid-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.cm-grid-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  z-index: 1;
}
.cm-grid-mask-fail {
  background: rgba(229, 72, 77, .85);
}
.cm-grid-count {
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 4px;
}

/* R12: 九宫格「+」加图格 */
.cm-grid-add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
  color: #9aa4b2;
  font-size: 24px;
  border: 1px dashed #c6cede;
  cursor: pointer;
  box-sizing: border-box;
}

/* R9: 发帖 sheet 内九宫格预览用固定小格子 */
.cm-sheet-img .cm-grid-item,
.cm-sheet-img .cm-grid-4 .cm-grid-item {
  width: 84px;
  height: 84px;
  padding-bottom: 0;
  margin-right: 8px;
  margin-bottom: 8px;
}
.cm-sheet-img .cm-grid-item:nth-child(3n),
.cm-sheet-img .cm-grid-4 .cm-grid-item:nth-child(2n),
.cm-sheet-img .cm-grid-4 .cm-grid-item:nth-child(3n) {
  margin-right: 8px;
}

/* R10: progress */
.cm-grid-mask-reading { background: rgba(0, 0, 0, .35); }
.cm-grid-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, .2);
  z-index: 2;
}
.cm-grid-bar i {
  display: block;
  height: 100%;
  background: #4a7dff;
  width: 0;
}

/* R14: 错误持久显示 */
.cm-sheet-errbar { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #fff1f0; color: #e5484d; font-size: 13px; position: relative; word-break: break-all; }
.cm-sheet-errbar-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #e5484d; font-size: 14px; }

/* R17: 灯箱图片计数 */
.cm-imgview-count { margin-left: 8px; font-size: 14px; color: #fff; opacity: .9; }
.cm-imgview-count:empty { display: none; }

/* ============================================================
   R18: 评论回复（两级楼中楼）+ 帖主个人主页（2026-09-07）
   间距按手机版实测收紧：卡片 8×10 / 回复区紧贴 / 行高 1.45
   ============================================================ */

.cm-hidden { display: none !important; }

/* 徽章：浅底彩字小胶囊（小红书「作者」同款） */
.cm-badge-author, .cm-badge-official {
  display: inline-block;
  font-size: 9px;
  border-radius: 999px;
  padding: 1px 5px;
  font-weight: 600;
  line-height: 1.5;
  margin-left: 4px;
  flex-shrink: 0;
  vertical-align: 1px;
}
.cm-badge-author { background: #fff3e0; color: #e8890c; }
.cm-badge-official { background: #eef3ff; color: #4a7dff; }
.cm-badge-vip { background: #fff0f0; color: #e8590c; }
.cm-badge-sm { font-size: 8.5px; padding: 0 4px; margin-left: 3px; }
.cm-reply-a .cm-badge-author,
.cm-reply-a .cm-badge-official,
.cm-reply-b .cm-badge-author { margin-left: 3px; }

/* 评论卡收紧 */
.cm-cmt-item {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
}
.cm-cmt-item .cm-ava { width: 30px; height: 30px; font-size: 13px; }
.cm-cmt-head { display: flex; align-items: center; }
.cm-cmt-name { font-size: 13px; font-weight: 600; color: #1f2733; display: flex; align-items: center; }
.cm-cmt-body { font-size: 14px; color: #2b3442; line-height: 1.45; margin-top: 3px; word-break: break-word; white-space: pre-wrap; }
.cm-cmt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.cm-cmt-time { font-size: 11px; color: #9aa4b2; }
.cm-cmt-replybtn { font-size: 12px; color: #8a94a3; padding: 2px 4px; cursor: pointer; }

/* 回复区：灰底块，行距紧凑 */
.cm-replies {
  margin-top: 5px;
  background: #f4f6fa;
  border-radius: 8px;
  padding: 5px 8px;
}
.cm-reply-item {
  font-size: 13px;
  line-height: 1.45;
  padding: 2px 0;
  color: #2b3442;
  word-break: break-word;
  white-space: pre-wrap;
  cursor: pointer;
}
.cm-reply-item + .cm-reply-item { border-top: 1px solid #eceff5; }
.cm-reply-a { font-weight: 600; color: #3b4658; display: inline-flex; align-items: center; }
.cm-reply-conn { color: #9aa4b2; margin: 0 3px; font-size: 12px; }
.cm-reply-b { color: #5d6b82; font-weight: 600; display: inline-flex; align-items: center; }
.cm-reply-time { color: #b3bcc9; font-size: 10px; margin-left: 4px; }
.cm-replies-toggle {
  text-align: center;
  font-size: 12px;
  color: #8a94a3;
  padding: 3px 0 0;
  cursor: pointer;
}
.cm-replies-toggle b { color: #4a7dff; font-weight: 600; }

/* composer：column 布局 + 回复态 bar（两行） */
.cm-detail-composer {
  flex-shrink: 0;
  flex-direction: column;
  background: #fff;
  padding: 8px 10px 14px;
  border-top: 1px solid #eef0f4;
}
.cm-replybar {
  display: flex;
  align-items: flex-start;
  background: #f4f6fa;
  border-radius: 10px 10px 0 0;
  padding: 6px 12px;
}
.cm-replybar-txt { flex: 1; min-width: 0; }
.cm-replybar-l1 { font-size: 12px; color: #5d6b82; font-weight: 500; }
.cm-replybar-target { color: #4a7dff; font-weight: 600; }
.cm-replybar-l2 {
  font-size: 11.5px;
  color: #9aa4b2;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-replybar-x { margin-left: 8px; color: #9aa4b2; font-size: 15px; padding: 0 4px; cursor: pointer; }
.cm-composer-row { display: flex; margin-top: 8px; }
.cm-composer-row .cm-comment-input { flex: 1; }
.cm-composer-row .cm-comment-send { margin-left: 8px; }

/* ===== 个人主页 ===== */
.cm-user {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 121;
  display: none;
  flex-direction: column;
  background: #f6f7fa;
}
.cm-user.cm-show { display: flex; }
.cm-user-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
  background: linear-gradient(135deg, #4a7dff 0%, #3f6ef0 100%);
  color: #fff;
}
.cm-user-head .cm-back { background: none; border: 0; color: #fff; font-size: 18px; }
.cm-user-head span { font-size: 16px; font-weight: 700; }
.cm-user-body { flex: 1; overflow-y: auto; padding: 10px 12px 90px; }

.cm-user-profile {
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 0;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
}
.cm-up-head { display: flex; align-items: center; gap: 12px; }
.cm-up-ava {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
}
.cm-up-info { flex: 1; min-width: 0; }
.cm-up-name { font-size: 16px; font-weight: 700; color: #1f2733; display: flex; align-items: center; }
.cm-up-sub { font-size: 11.5px; color: #9aa4b2; margin-top: 4px; }
.cm-user-follow-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #4a7dff, #3f6ef0);
  color: #fff;
  cursor: pointer;
}
.cm-user-follow-btn.on { background: #eef0f4; color: #8a94a3; }

/* 战绩卡（米金） */
.cm-war-card {
  margin-top: 10px;
  background: linear-gradient(180deg, #fff8f0 0%, #fff2e2 100%);
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  padding: 13px;
}
.cm-wc-title { display: flex; justify-content: space-between; align-items: center; }
.cm-wc-l { font-size: 13px; font-weight: 700; color: #8a6d3b; letter-spacing: .5px; }
.cm-wc-r { font-size: 10.5px; color: #b3a184; }
.cm-wc-empty { text-align: center; padding: 18px 0 22px; font-size: 13px; color: #b3a184; }
.cm-wc-main { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cm-wc-bignum { text-align: center; flex-shrink: 0; width: 90px; }
.cm-wc-bignum b { font-size: 32px; font-weight: 800; color: #e8590c; line-height: 1; }
.cm-wc-bignum span { font-size: 11px; color: #8a7a63; display: block; margin-top: 6px; }
.cm-wc-bars { flex: 1; min-width: 0; }
.cm-wc-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.cm-wc-bar:last-child { margin-bottom: 0; }
.cm-wc-k { width: 32px; font-size: 11px; color: #8a7a63; flex-shrink: 0; }
.cm-wc-track { flex: 1; height: 7px; background: #fff; border-radius: 4px; overflow: hidden; }
.cm-wc-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffb84d, #f08c1f); }
.cm-wc-v { width: 32px; font-size: 11px; color: #8a6d3b; font-weight: 600; text-align: right; flex-shrink: 0; }
.cm-wc-dots {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #efd9b8;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.cm-wc-lab { font-size: 10.5px; color: #b3a184; flex-shrink: 0; }
.cm-wc-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}
.cm-wc-dot.hit { background: #d5f5e9; color: #12b886; }
.cm-wc-dot.miss { background: #ffe3e0; color: #e8590c; }

/* tabs */
.cm-user-tabs {
  display: flex;
  background: #fff;
  border-radius: 12px;
  margin-top: 10px;
  padding: 3px;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
}
.cm-usertab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13.5px;
  color: #8a94a3;
  border-radius: 10px;
  cursor: pointer;
}
.cm-usertab.on {
  background: linear-gradient(135deg, #4a7dff, #3f6ef0);
  color: #fff;
  font-weight: 600;
}
.cm-user-list { margin-top: 10px; }

/* 战绩记录行 */
.cm-rec-item {
  background: #fff;
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(30, 50, 90, .05);
}
.cm-rec-top { display: flex; align-items: center; }
.cm-rec-issue { font-size: 13px; font-weight: 700; color: #1f2733; }
.cm-rec-tag { font-size: 10px; border-radius: 4px; padding: 1px 5px; margin-left: 6px; font-weight: 600; }
.cm-rec-tag.settled { background: #d5f5e9; color: #12b886; }
.cm-rec-tag.pending { background: #eef0f4; color: #8a94a3; }
.cm-rec-time { font-size: 11px; color: #9aa4b2; margin-left: auto; }
.cm-rec-guess { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.cm-g-item { font-size: 11px; border-radius: 6px; padding: 3px 8px; font-weight: 600; }
.cm-g-item.on { background: #eef3ff; color: #4a7dff; }
.cm-g-item.off { background: #f4f6fa; color: #b3bcc9; }
.cm-rec-draw { margin-top: 7px; font-size: 12px; color: #5d6b82; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-rec-nums { display: flex; gap: 4px; }
.cm-rec-n {
  width: 22px;
  height: 24px;
  border-radius: 6px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(180deg, #ff6b6b, #e03131);
}
.cm-rec-n.blue { background: linear-gradient(180deg, #4a7dff, #3b5bdb); }
.cm-rec-hit { margin-top: 7px; font-size: 11.5px; }
.cm-rec-h { color: #12b886; font-weight: 700; }
.cm-rec-m { color: #e8590c; font-weight: 700; }
.cm-rec-pending { margin-top: 7px; font-size: 11.5px; color: #b3bcc9; }
