/* ==========================================================================
   Mobile Forum / 社区交流 — mobile-only presentation layer for mobile-forum.html.
   Scoped to `body.mobile-page[data-page="forum"]`, so PC forum.html and every
   frozen mobile page are unaffected. It only restyles the REAL DOM produced by
   forum.js (the single post renderer) — no markup is re-rendered here.

   Real hooks used (confirmed in forum.js):
     article.post[data-post-id] > .post-top > .author/.tags, h3, p.post-body,
     .post-images > img, .post-time, .post-like/.post-like-count,
     section.post-discussion > .comment/.composer-form, .forum-pagination, .empty
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) Frozen shell: search icon stays, hamburger hidden (the FAB is the menu).
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] #mobile-header-actions [data-mobile-menu-toggle] {
  display: none !important;
}
html body.mobile-page[data-page="forum"] header.nav .logo-copy > span {
  font-size: 12px !important;
}

/* --------------------------------------------------------------------------
   2) Hero + the forum search entry (首页主操作 = 搜索).
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] .hero {
  padding: 6px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.mobile-page[data-page="forum"] .hero-shell {
  width: calc(100% - (var(--mobile-content-gutter, 20px) * 2)) !important;
  max-width: var(--mobile-content-max-width, 390px) !important;
  margin: 0 auto !important;
  display: block !important;
}
html body.mobile-page[data-page="forum"] #forum-hero-title {
  margin: 0 0 2px !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #18344f !important;
}
html body.mobile-page[data-page="forum"] #forum-hero-description {
  margin: 0 !important;
  color: #4a5c6e !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html body.mobile-page[data-page="forum"] #forum-hero-badge { display: none !important; }

html body.mobile-page[data-page="forum"] .forum-search-block {
  width: calc(100% - (var(--mobile-content-gutter, 20px) * 2)) !important;
  max-width: var(--mobile-content-max-width, 390px) !important;
  margin: 10px auto 0 !important;
  padding: 0 !important;
}
html body.mobile-page[data-page="forum"] .forum-search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  margin: 0 !important;
}
html body.mobile-page[data-page="forum"] .forum-search input {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px 0 38px !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  border-radius: var(--radius-control) !important;
  background-color: #f4fafd !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.6'/><path d='m16.2 16.2 4 4'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: 13px center !important;
  background-size: 18px 18px !important;
  color: #1c3049 !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}
html body.mobile-page[data-page="forum"] .forum-search button {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #00aceb, #6fd4f4) !important;
  color: #002e3d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
html body.mobile-page[data-page="forum"] .forum-search-status {
  margin: 8px 0 0 !important;
  color: #718199 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
html body.mobile-page[data-page="forum"] .forum-search-status[hidden] { display: none !important; }
html body.mobile-page[data-page="forum"] .forum-search-actions { margin: 8px 0 0 !important; }
html body.mobile-page[data-page="forum"] .forum-search-clear {
  min-height: 32px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(0, 172, 235, .35) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0f7ac7 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}
html body.mobile-page[data-page="forum"] .forum-search-clear[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   3) Tabs: 全部 + 最新帖子(sort=latest) + the real tags. All from the real row.
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] .layout,
html body.mobile-page[data-page="forum"] .layout > div,
html body.mobile-page[data-page="forum"] .card.feed {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.mobile-page[data-page="forum"] .feed-head { padding: 0 !important; margin: 12px 0 0 !important; border: 0 !important; }
html body.mobile-page[data-page="forum"] .feed-title-row h2 { /* B1A: type-section-title（Mobile step） */ font-size: var(--type-section-title-size) !important; font-weight: var(--type-section-title-weight) !important; color: #18344f !important; }
html body.mobile-page[data-page="forum"] #post-count { color: #718199 !important; font-size: 12px !important; }
html body.mobile-page[data-page="forum"] #forum-topic-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: calc(100% - (var(--mobile-content-gutter, 20px) * 2)) !important;
  max-width: var(--mobile-content-max-width, 390px) !important;
  margin: 10px auto 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
html body.mobile-page[data-page="forum"] #forum-topic-tabs button {
  flex: 0 0 auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .82) !important;
  color: #52667e !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
html body.mobile-page[data-page="forum"] #forum-topic-tabs button.active,
html body.mobile-page[data-page="forum"] #forum-latest-tab.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #00aceb, #6fd4f4) !important;
  color: #002e3d !important;
  font-weight: 800 !important;
}
html body.mobile-page[data-page="forum"] .forum-points-bar { margin: 10px auto 0 !important; }

/* --------------------------------------------------------------------------
   4) The single authoritative post list. Titles clamp to 2 lines (CSS only).
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] #post-list {
  width: calc(100% - (var(--mobile-content-gutter, 20px) * 2)) !important;
  max-width: var(--mobile-content-max-width, 390px) !important;
  margin: 10px auto 0 !important;
  padding: 0 0 var(--forum-list-bottom, 132px) !important;
}
html body.mobile-page[data-page="forum"] #post-list:has(.empty):not(:has(#retry-posts)) {
  --forum-list-bottom: 28px;
}
html body.mobile-page[data-page="forum"] #post-list:has(#retry-posts),
html body.mobile-page[data-page="forum"] #post-list[aria-busy="true"] {
  --forum-list-bottom: 56px;
}
html body.mobile-page[data-page="forum"] #post-list .post {
  margin: 0 !important;
  padding: 13px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked {
  padding: 0 0 18px !important;
  border-bottom: 0 !important;
}
html body.mobile-page[data-page="forum"] #post-list .post-top { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px 8px !important; }
html body.mobile-page[data-page="forum"] #post-list .post-top .author { display: inline-flex !important; align-items: center !important; gap: 6px !important; color: #52667e !important; font-size: 12px !important; }
html body.mobile-page[data-page="forum"] #post-list .post-top .avatar { width: 20px !important; height: 20px !important; }
html body.mobile-page[data-page="forum"] #post-list .post-top .tags { display: inline-flex !important; flex-wrap: wrap !important; gap: 4px !important; }
html body.mobile-page[data-page="forum"] #post-list .post-top .tags span {
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: #f2f7fc !important;
  color: #5b748f !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
html body.mobile-page[data-page="forum"] #post-list h3 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  margin: 8px 0 5px !important;
  color: #18344f !important;
  /* B1A: type-item-title（Mobile step） */
  font-size: var(--type-item-title-size) !important;
  font-weight: var(--type-item-title-weight) !important;
  line-height: var(--type-item-title-line-height) !important;
}
html body.mobile-page[data-page="forum"] #post-list p.post-body {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  margin: 0 0 8px !important;
  color: #5b6f85 !important;
  /* B1A: type-body（Mobile step） */
  font-size: var(--type-body-size) !important;
  line-height: var(--type-body-line-height) !important;
}
html body.mobile-page[data-page="forum"] #post-list p.post-body.is-expanded { -webkit-line-clamp: unset !important; }
html body.mobile-page[data-page="forum"] #post-list .post-time { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 4px 10px !important; color: #718199 !important; font-size: 12px !important; }
html body.mobile-page[data-page="forum"] #post-list .post-time .time { color: #718199 !important; /* B1A: type-meta（Mobile step） */ font-size: var(--type-meta-size) !important; }
html body.mobile-page[data-page="forum"] #post-list .post-like { min-height: 30px !important; padding: 0 12px !important; border: 1px solid rgba(148, 163, 184, .22) !important; border-radius: 999px !important; background: #fff !important; color: #52667e !important; font-size: 12.5px !important; font-weight: 700 !important; }
html body.mobile-page[data-page="forum"] #post-list .post-like.active { border-color: rgba(0, 172, 235, .5) !important; background: #e9f7ff !important; color: #00698f !important; }
html body.mobile-page[data-page="forum"] #post-list .post-like-count { color: #718199 !important; font-size: 12px !important; }

/* ---- media: 0 (none) / 1 wide 16:9 capped / 2 two columns / 3 one row ---- */
html body.mobile-page[data-page="forum"] #post-list .post-images {
  display: grid !important;
  gap: 6px !important;
  margin: 9px 0 0 !important;
}
html body.mobile-page[data-page="forum"] #post-list .post-images:has(img:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
html body.mobile-page[data-page="forum"] #post-list .post-images:has(img:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
html body.mobile-page[data-page="forum"] #post-list .post-images img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 168px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  background: #eef6fb !important;
}
html body.mobile-page[data-page="forum"] #post-list .post-images:not(:has(img:nth-child(2))) img { aspect-ratio: 16 / 9 !important; }
html body.mobile-page[data-page="forum"] #post-list .post-images:has(img:nth-child(2)) img { aspect-ratio: 4 / 3 !important; }
html body.mobile-page[data-page="forum"] #post-list .post-images:has(img:nth-child(3)) img { aspect-ratio: 1 / 1 !important; }

/* ---- comments / composer inside a card (list state) ---- */
html body.mobile-page[data-page="forum"] #post-list .post-discussion { margin: 10px 0 0 !important; padding: 0 !important; border: 0 !important; }
html body.mobile-page[data-page="forum"] #post-list .comment { padding: 10px 0 !important; border-top: 1px solid rgba(148, 163, 184, .12) !important; }
html body.mobile-page[data-page="forum"] #post-list .comment p { font-size: 13.5px !important; line-height: 1.8 !important; }
html body.mobile-page[data-page="forum"] .composer-form textarea { font-size: 14px !important; }
html body.mobile-page[data-page="forum"] #post-list .empty,
html body.mobile-page[data-page="forum"] .empty {
  margin: 12px 0 0 !important;
  padding: 26px 18px !important;
  border: 1px dashed rgba(148, 163, 184, .3) !important;
  border-radius: 16px !important;
  background: #f8fbfe !important;
  text-align: center !important;
}
html body.mobile-page[data-page="forum"] .empty strong { display: block !important; margin: 0 0 6px !important; color: var(--forum-empty-title-ink, #18344f) !important; font-size: 15px !important; }
html body.mobile-page[data-page="forum"] #post-list[data-forum-state="error"] { --forum-empty-title-ink: var(--ink-status-error); }
html body.mobile-page[data-page="forum"] .empty p { margin: 0 !important; color: #718199 !important; font-size: 12.5px !important; line-height: 1.6 !important; }
html body.mobile-page[data-page="forum"] .forum-pagination { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; justify-content: center !important; margin: 14px 0 0 !important; }
html body.mobile-page[data-page="forum"] .forum-pagination button {
  min-width: 34px !important; height: 32px !important; padding: 0 10px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important; border-radius: 9px !important;
  background: #fff !important; color: #52667e !important; font-size: 12px !important; font-weight: 700 !important;
}
html body.mobile-page[data-page="forum"] .forum-pagination button.active {
  border-color: transparent !important; background: linear-gradient(135deg, #00aceb, #6fd4f4) !important; color: #002e3d !important;
}

/* --------------------------------------------------------------------------
   5) Post FAB (Forum scoped pill). Never rendered inside the shared FAB system.
   Hidden on detail / compose / lightbox.
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] .forum-post-fab {
  position: fixed;
  right: max(8px, calc((100vw - 430px) / 2 + 8px));
  bottom: calc(18px + var(--mobile-safe-bottom, 0px) + 44px + 18px);
  z-index: 1239;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 14px;
  border-radius: 21px;
  background: linear-gradient(135deg, #00aceb, #6fd4f4);
  color: #002e3d !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 172, 235, .34);
}
html body.mobile-page[data-page="forum"].forum-detail-state .forum-post-fab,
html body.mobile-page[data-page="forum"]:has(#forum-post-sheet.open) .forum-post-fab,
html body.mobile-page[data-page="forum"]:has(#image-lightbox.open) .forum-post-fab {
  display: none !important;
}

/* --------------------------------------------------------------------------
   6) Detail state (?post=<id>) — light reading page on the page background.
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked h3 {
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  margin: 2px 0 8px !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked p.post-body {
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  display: block !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  font-weight: 400 !important;
  color: #22384f !important;
}
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked .post-images:has(img:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding-right: 52px !important;
}
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked .comment p { font-size: 13.5px !important; line-height: 1.8 !important; }
/* Forum reading safe zone: the frozen 52px FAB never covers detail text/controls. */
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked h3,
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked p.post-body,
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked .post-time,
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked .comment p,
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked .composer-form,
html body.mobile-page[data-page="forum"] #post-list .post.is-deep-linked .post-discussion {
  padding-right: 52px !important;
}
html body.mobile-page[data-page="forum"].forum-detail-state #post-list .post-discussion { padding-bottom: 24px !important; }

/* --------------------------------------------------------------------------
   7) Composer sheet (real #forum-post-sheet) — single CTA, FAB safe zone.
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] #forum-post-sheet .forum-post-sheet-panel {
  border-radius: var(--radius-drawer) var(--radius-drawer) 0 0 !important;
  background: #f7fcfe !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .forum-post-sheet-head strong,
html body.mobile-page[data-page="forum"] #forum-post-sheet .forum-post-sheet-head h2 { font-size: 16px !important; font-weight: 800 !important; color: #172b44 !important; }
html body.mobile-page[data-page="forum"] #forum-post-sheet .forum-post-sheet-body { padding-bottom: 148px !important; }
html body.mobile-page[data-page="forum"] #forum-post-sheet #post-title,
html body.mobile-page[data-page="forum"] #forum-post-sheet #post-body {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #1c3049 !important;
  font-size: 14px !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet #post-title { height: 44px !important; padding: 0 14px !important; }
html body.mobile-page[data-page="forum"] #forum-post-sheet #post-body { min-height: 148px !important; padding: 12px 14px !important; line-height: 1.8 !important; }
html body.mobile-page[data-page="forum"] .forum-field-count {
  display: block !important;
  margin: 4px 0 0 !important;
  color: #718199 !important;
  font-size: 12px !important;
  text-align: right !important;
}
html body.mobile-page[data-page="forum"] .forum-field-count.is-over { color: #c0392b !important; }
html body.mobile-page[data-page="forum"] #forum-post-sheet .tag-picker button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #52667e !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .tag-picker button.active,
html body.mobile-page[data-page="forum"] #forum-post-sheet .tag-picker button[aria-pressed="true"] {
  border-color: transparent !important;
  background: linear-gradient(135deg, #00aceb, #6fd4f4) !important;
  color: #002e3d !important;
}
/* Single submit CTA, kept clear of the frozen FAB (right safe zone). */
html body.mobile-page[data-page="forum"] #forum-post-sheet .submit-btn,
html body.mobile-page[data-page="forum"] #forum-post-sheet #post-submit {
  display: block !important;
  width: calc(100% - 52px) !important;
  height: 44px !important;
  margin: 16px 52px 0 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #00aceb, #6fd4f4) !important;
  color: #002e3d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .tag-picker { padding-right: 0 !important; }

/* VF-06: the real 9px/10px small print inside the Forum points bar and the check-in
   button is lifted to the 12px floor. Forum scope only — no PC CSS, no shared CSS,
   no blanket !important. */
html body.mobile-page[data-page="forum"] .forum-check-in {
  font-size: 12px !important;
  line-height: 1.5 !important;
}
html body.mobile-page[data-page="forum"] .forum-points-bar span,
html body.mobile-page[data-page="forum"] .forum-points-copy,
html body.mobile-page[data-page="forum"] .forum-points-streak,
html body.mobile-page[data-page="forum"] .forum-points-notice {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

/* --------------------------------------------------------------------------
   8) Lightbox skin (real #image-lightbox).
   -------------------------------------------------------------------------- */html body.mobile-page[data-page="forum"] #image-lightbox.open { display: grid !important; }
html body.mobile-page[data-page="forum"] #image-lightbox .lightbox-container { border-radius: 14px !important; }
html body.mobile-page[data-page="forum"] #image-lightbox .lightbox-counter { font-size: 12px !important; color: #e6eef5 !important; }
html body.mobile-page[data-page="forum"] #image-lightbox .lightbox-image { max-width: 100% !important; max-height: 70vh !important; object-fit: contain !important; }

/* VF-11: compose contact toggle alignment (checkbox + label on one baseline). */
html body.mobile-page[data-page="forum"] #forum-post-sheet .contact-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: flex-start !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .contact-toggle input {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .contact-toggle span { flex: 1 1 auto !important; }

/* --------------------------------------------------------------------------
   VF-07: closed overlays must never paint (deterministic screenshots + no leakage).
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] #forum-post-sheet:not(.open),
html body.mobile-page[data-page="forum"] .forum-replies-sheet:not(.open),
html body.mobile-page[data-page="forum"] .forum-check-in-dialog:not(.open),
html body.mobile-page[data-page="forum"] #image-lightbox:not(.open) {
  display: none !important;
}

/* --------------------------------------------------------------------------
   VF-08: sort vs filter grouping. The real sort dropdown owns sorting (最新回复 /
   最新发布 / 最热); the chip row below is topic + type only, so no chip can look
   active at the same time as a different sort value.
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] .feed-head-tools { display: flex !important; justify-content: flex-end !important; }
html body.mobile-page[data-page="forum"] .forum-sort-picker { margin: 0 !important; }
html body.mobile-page[data-page="forum"] .forum-sort-trigger {
  height: 34px !important; min-height: 34px !important; padding: 0 12px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important; border-radius: 999px !important;
  background: rgba(255, 255, 255, .82) !important; color: #52667e !important;
  font-size: 13px !important; font-weight: 700 !important;
}
/* one shared page gutter for the section head, filter rows, points strip and cards */
html body.mobile-page[data-page="forum"] .feed-head,
html body.mobile-page[data-page="forum"] .forum-points-bar {
  width: calc(100% - (var(--mobile-content-gutter, 20px) * 2)) !important;
  max-width: var(--mobile-content-max-width, 390px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body.mobile-page[data-page="forum"] .feed-head { padding: 0 !important; }
html body.mobile-page[data-page="forum"] .feed-title-row { align-items: baseline !important; gap: 8px !important; }

/* VF-09: the points strip is a secondary utility strip — lighter than a post title. */
html body.mobile-page[data-page="forum"] .forum-points-bar {
  margin-top: 10px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .7) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
}
html body.mobile-page[data-page="forum"] .forum-points-copy strong { font-size: 12px !important; font-weight: 800 !important; }
html body.mobile-page[data-page="forum"] .forum-points-bar .forum-points-actions { gap: 6px !important; }

/* --------------------------------------------------------------------------
   VF-10: DETAIL reading state (mobile-forum.html?post=<id>). Same renderer, same
   DOM — only the presentation switches: list chrome is hidden and the deep-linked
   article becomes a light reading page on the page background.
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"].forum-detail-state .hero,
html body.mobile-page[data-page="forum"].forum-detail-state .forum-search-block,
html body.mobile-page[data-page="forum"].forum-detail-state .feed-head,
html body.mobile-page[data-page="forum"].forum-detail-state #forum-topic-tabs,
html body.mobile-page[data-page="forum"].forum-detail-state .forum-points-bar {
  display: none !important;
}
html body.mobile-page[data-page="forum"] .forum-detail-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #2b72c7 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
html body.mobile-page[data-page="forum"] #post-list > .forum-detail-back { margin: 0 0 2px !important; }
html body.mobile-page[data-page="forum"].forum-detail-state #post-list .post:not(.is-deep-linked) { display: none !important; }
html body.mobile-page[data-page="forum"].forum-detail-state #post-list .post.is-deep-linked .post-top .author,
html body.mobile-page[data-page="forum"].forum-detail-state #post-list .post.is-deep-linked .post-top .tags {
  font-size: 12px !important;
}
html body.mobile-page[data-page="forum"].forum-detail-state #post-list .post.is-deep-linked .post-discussion {
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(148, 163, 184, .22) !important;
}
html body.mobile-page[data-page="forum"].forum-detail-state #post-list .post.is-deep-linked .post-discussion-head strong { font-size: 16px !important; font-weight: 800 !important; color: #18344f !important; }

/* --------------------------------------------------------------------------
   9) Lightweight footer (same treatment as the frozen pages).
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] .site-compliance-footer { margin-top: 18px !important; padding: 16px 20px calc(14px + 70px) !important; }
html body.mobile-page[data-page="forum"] .site-compliance-footer__main,
html body.mobile-page[data-page="forum"] .site-compliance-footer__brand,
html body.mobile-page[data-page="forum"] .site-compliance-footer__qr { display: none !important; }
html body.mobile-page[data-page="forum"] .site-compliance-footer::before {
  content: "智能锁产业信息平台"; display: block; margin-bottom: 8px; color: #1d3349; font-size: 14px; font-weight: 800; text-align: center;
}
html body.mobile-page[data-page="forum"] .site-compliance-footer__legal {
  padding-top: 0 !important; border-top: 0 !important; font-size: 12px !important; line-height: 1.7 !important; text-align: center !important;
}

/* --------------------------------------------------------------------------
   VF-12 (BLOCKER A): Compose contact block layout.
   Real markup: .contact-intro > label.contact-toggle (checkbox + span) + p.contact-note.
   The label was laid out beside the note, squeezing it to ~1 character and producing
   the broken right-aligned / stacked text. .contact-intro must be a plain block:
   checkbox + label on one line, note on its own line below.
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] #forum-post-sheet .contact-intro {
  display: block !important;
  width: 100% !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .contact-toggle {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  gap: 8px !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .contact-toggle input {
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  position: static !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .contact-toggle span {
  display: inline !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  position: static !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}
html body.mobile-page[data-page="forum"] #forum-post-sheet .contact-note {
  display: block !important;
  width: 100% !important;
  margin: 6px 0 0 !important;
  white-space: normal !important;
  line-height: 1.6 !important;
}

/* --------------------------------------------------------------------------
   VF-13 (BLOCKER B): Forum list content safe zone for the two floating entries.
   The frozen More FAB stays exactly where it is; instead every list content
   surface keeps a right inset, so no author / tag / title / body / media / comment
   control can sit under the Post FAB or the More FAB at any scroll position.
   Nothing is hidden or truncated — only inset.
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] #post-list .post .post-top,
html body.mobile-page[data-page="forum"] #post-list .post h3,
html body.mobile-page[data-page="forum"] #post-list .post p.post-body,
html body.mobile-page[data-page="forum"] #post-list .post .post-time,
html body.mobile-page[data-page="forum"] #post-list .post .post-images,
html body.mobile-page[data-page="forum"] #post-list .post .post-discussion,
html body.mobile-page[data-page="forum"] #post-list .post .post-contact-card,
html body.mobile-page[data-page="forum"] #post-list .post .post-promotion-meta,
html body.mobile-page[data-page="forum"] #post-list .empty,
html body.mobile-page[data-page="forum"] .forum-pagination,
html body.mobile-page[data-page="forum"] .forum-search-status,
html body.mobile-page[data-page="forum"] .forum-search-actions {
  padding-right: 80px !important;
}

/* --------------------------------------------------------------------------
   关注按钮（本轮 Forum **唯一**批准的 UI 新增）
   仅由 forum.js 的移动端 hook 注入到帖子详情的作者区。
   品牌色 #00ACEB；未关注=白底描边，已关注=浅蓝灰底 + 次要文字。
   尺寸克制，不与标题/正文/作者争抢，也不影响既有布局。
   -------------------------------------------------------------------------- */
html body.mobile-page[data-page="forum"] .forum-follow-btn {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #00ACEB;
  background: #fff;
  color: #00ACEB;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

html body.mobile-page[data-page="forum"] .forum-follow-btn.is-following {
  border-color: #dbe6ef;
  background: #f1f6fa;
  /* B1B2: ink-muted */ color: var(--ink-muted);
}

html body.mobile-page[data-page="forum"] .forum-follow-btn:disabled {
  opacity: .6;
  cursor: default;
}

html body.mobile-page[data-page="forum"] .forum-follow-btn:focus-visible {
  outline: 2px solid rgba(0, 172, 235, .48);
  outline-offset: 2px;
}
