/* Mobile page canvas: exactly follows the mobile homepage background. */
:root {
  --mobile-page-canvas: linear-gradient(160deg, #a8dcfb 0%, #d6f0fa 30%, #e8f3ff 55%, #f0fafd 100%);
  --mobile-content-gutter: 20px;
  /* B2 role aliases preserve the measured 390px content-column ceiling.
     Tools and Search keep their page-owned exceptions. */
  --shell-mobile-portal-max: 390px;
  --shell-mobile-standard-max: 390px;
  --mobile-content-max-width: var(--shell-mobile-standard-max);
  --mobile-page-gutter: 10px;
}

body.mobile-page[data-page="home"],
body.mobile-page[data-page="products"] {
  --mobile-content-max-width: var(--shell-mobile-portal-max);
}

html {
  min-height: 100%;
  background: var(--mobile-page-canvas) fixed no-repeat !important;
}

@supports selector(html:has(body.mobile-page)) {
  html:has(body.mobile-page) {
    background: var(--mobile-page-canvas) fixed no-repeat !important;
  }
}

body.mobile-page {
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  margin-inline: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
  background-attachment: scroll !important;
  background-repeat: no-repeat !important;
}

/* tools.css owns a more specific mobile-page background selector. Override it
   directly so its page canvas uses the homepage values and viewport position. */
body.mobile-page[data-page="tools"] {
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  margin-inline: auto !important;
  background: transparent !important;
  background-attachment: scroll !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
}

/* The homepage suppresses the legacy page texture. Suppress it everywhere on
   dedicated mobile URLs so the shared canvas is not tinted page by page. */
body.mobile-page::before {
  display: none !important;
}

body.mobile-page::after {
  display: none !important;
}

/* Page wrappers are transparent; the canvas is painted once by html. This
   prevents legacy per-page gradients from surfacing while the user scrolls. */
body.mobile-page main,
body.mobile-page main::before,
body.mobile-page main::after {
  background: transparent !important;
}

/* 所有独立手机页共用同一画布与安全边距，避免页面间 390/480px 来回跳变。 */
body.mobile-page .container,
body.mobile-page .nav-inner,
body.mobile-page .forum-post-container,
body.mobile-page[data-page="tools"] .tools-container {
  width: calc(100% - 20px) !important;
  max-width: 390px !important;
  margin-inline: auto !important;
}

body.mobile-page.account-auth-view,
body.mobile-page.account-workspace-view {
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  margin-inline: auto !important;
}

/* 正文内容沿用手机首页左右各 20px 的基线。导航保留 10px 紧凑轨道，
   避免六个入口因正文边距而被再次压缩。 */
body.mobile-page.account-auth-view .account-shell,
body.mobile-page[data-page="forum-post"] .forum-post-shell {
  width: calc(100% - (var(--mobile-content-gutter) * 2)) !important;
  max-width: var(--mobile-content-max-width) !important;
  margin-inline: auto !important;
}

/* The homepage navigation is transparent, letting the shared canvas remain visible. */
body.mobile-page .nav,
body.mobile-page .tools-nav,
body.mobile-page .forum-post-nav {
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, .32) !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
}

/* 导航文字必须跨页面保持同一套字形与尺寸。页面主题只能改变内容区，
   不能覆盖导航字体，否则多页切换时会出现粗细、基线和宽度跳变。 */
body.mobile-page .nav-inner,
body.mobile-page .tools-nav-inner,
body.mobile-page .forum-post-nav-inner,
body.mobile-page .logo,
body.mobile-page .tools-logo,
body.mobile-page .logo-copy,
body.mobile-page .nav-menu,
body.mobile-page .tools-nav-menu {
  font-family: var(--site-font-family) !important;
}

body.mobile-page .logo-copy strong,
body.mobile-page .tools-logo .logo-copy strong {
  display: block !important;
  color: var(--text-1, #13233a) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  font-synthesis: none !important;
}

body.mobile-page .logo-copy > span,
body.mobile-page .tools-logo .logo-copy > span {
  display: block !important;
  color: var(--text-3, #2a5f7a) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 14px !important;
  letter-spacing: 0 !important;
  font-synthesis: none !important;
}

body.mobile-page .nav-menu a,
body.mobile-page .tools-nav-menu a {
  color: #40556d !important;
  font-family: var(--site-font-family) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 14px !important;
  letter-spacing: 0 !important;
  font-synthesis: none !important;
  white-space: nowrap !important;
}

body.mobile-page .nav-menu a.active,
body.mobile-page .tools-nav-menu a.active {
  color: #3478dd !important;
  font-weight: 700 !important;
}

/* A single highlight moves between fixed navigation cells. This keeps the
   mobile navigation calm while still acknowledging each cross-page tap. */
@media (max-width: 768px) {
  body.mobile-page .nav-menu,
  body.mobile-page .tools-nav-menu {
    position: relative !important;
    isolation: isolate;
    overflow: visible !important;
  }

  body.mobile-page .mobile-nav-indicator {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.50);
    pointer-events: none;
    transition:
      transform .26s cubic-bezier(.22, 1, .36, 1),
      width .26s cubic-bezier(.22, 1, .36, 1),
      height .26s cubic-bezier(.22, 1, .36, 1),
      opacity .16s ease;
  }

  body.mobile-page .nav-menu a,
  body.mobile-page .tools-nav-menu a {
    position: relative;
    z-index: 1;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    transition: color .18s ease, transform .12s ease !important;
  }

  body.mobile-page .nav-menu a.active,
  body.mobile-page .tools-nav-menu a.active {
    background: transparent !important;
    box-shadow: none !important;
  }

  body.mobile-page .nav-menu a:active,
  body.mobile-page .tools-nav-menu a:active {
    transform: scale(.96);
  }

  body.mobile-page .nav-menu a:focus-visible,
  body.mobile-page .tools-nav-menu a:focus-visible {
    outline: 2px solid rgba(52,120,221,.48);
    outline-offset: 2px;
  }

  body.mobile-page.nav-transitioning .nav-menu,
  body.mobile-page.nav-transitioning .tools-nav-menu {
    pointer-events: none;
  }
}

/* Tools used its own white-blue gradients on every large content layer.
   Use the same restrained glass surface as the other mobile sections instead. */
body.mobile-page[data-page="tools"] .tools-hero-shell,
body.mobile-page[data-page="tools"] .tool-workspace,
body.mobile-page[data-page="tools"] .tool-feature-note {
  background: rgba(255, 255, 255, .50) !important;
  border-color: rgba(255, 255, 255, .74) !important;
  box-shadow: 0 16px 38px rgba(0,46,61,.07), inset 0 1px 0 rgba(255,255,255,.72) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
}

body.mobile-page[data-page="tools"] .tool-panel {
  background: rgba(255, 255, 255, .42) !important;
  border-color: rgba(255, 255, 255, .70) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

body.mobile-page[data-page="tools"] .upload-zone {
  background: rgba(255, 255, 255, .38) !important;
}

/* 资讯页的主题样式会恢复桌面栏头宽度；手机端必须让说明文字随父栏收缩。 */
body.mobile-page[data-page="publish"] .news-column.active .column-head {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.mobile-page[data-page="publish"] .news-column.active .column-title,
body.mobile-page[data-page="publish"] .news-column.active .column-title p {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

body.mobile-page[data-page="publish"] .news-column.active .column-count {
  display: none !important;
}

/* Mobile brand line: the platform name remains the anchor, while the shorter
   scope statement sits alongside it instead of creating a second header line. */
body.mobile-page .nav-inner,
body.mobile-page .tools-nav-inner {
  gap: 6px !important;
}

body.mobile-page .logo,
body.mobile-page .tools-logo {
  width: auto !important;
  max-width: 100% !important;
  align-items: center !important;
  gap: 8px !important;
}

body.mobile-page .logo-mark,
body.mobile-page .tools-logo .logo-mark {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
}

body.mobile-page .logo-copy,
body.mobile-page .tools-logo .logo-copy {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.mobile-page .logo-copy strong,
body.mobile-page .tools-logo .logo-copy strong {
  display: inline-block !important;
  flex: 0 0 auto !important;
  color: #24364e !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -.018em !important;
  white-space: nowrap !important;
}

body.mobile-page .logo-copy > span,
body.mobile-page .tools-logo .logo-copy > span {
  display: inline-block !important;
  min-width: 0 !important;
  margin-inline-start: 8px !important;
  padding-inline-start: 8px !important;
  border-inline-start: 1px solid rgba(64, 85, 109, .20) !important;
  color: #2a5f7a !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 349px) {
  body.mobile-page .logo-copy > span,
  body.mobile-page .tools-logo .logo-copy > span {
    display: none !important;
  }
}

/* Dedicated mobile pages share one static navigation structure. Keep this at
   the end so page-level theme rules cannot change its geometry after paint. */
body.mobile-page header.nav .nav-menu.mobile-primary-nav,
body.mobile-page header.nav .tools-nav-menu.mobile-primary-nav {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, 34px) !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.mobile-page header.nav .nav-menu.mobile-primary-nav > a,
body.mobile-page header.nav .tools-nav-menu.mobile-primary-nav > a {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 4px 0 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #40556d !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.mobile-page header.nav .mobile-primary-nav > a.active {
  background: transparent !important;
  box-shadow: none !important;
  color: #3478dd !important;
  font-weight: 800 !important;
}

body.mobile-page header.nav .mobile-primary-nav > a.active::after {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: 2px !important;
  left: 50% !important;
  display: block !important;
  width: 20px !important;
  height: 2px !important;
  margin: 0 !important;
  content: '' !important;
  transform: translateX(-50%) !important;
  border-radius: 99px !important;
  background: currentColor !important;
}

/* Mobile product rows sit on one canvas. Remove the desktop glass shadow that
   pooled in the grid gap and appeared as a dark horizontal band while scrolling. */
body.mobile-page[data-page="products"] .result-product-grid .product-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62) !important;
}
/* Product cards keep their three compact actions in a dedicated right column.
   The card body remains readable and controls never fall back to browser UI. */
body.mobile-page[data-page="products"] .result-product-grid .product-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 64px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

body.mobile-page[data-page="products"] .result-product-grid .product-card-main {
  min-width: 0 !important;
  align-self: center !important;
}

body.mobile-page[data-page="products"] .result-product-grid .product-actions.compare-inline-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, 28px) !important;
  align-content: center !important;
  width: 64px !important;
  min-width: 64px !important;
  padding: 7px 8px 7px 0 !important;
  gap: 5px !important;
  border-top: 0 !important;
}

body.mobile-page[data-page="products"] .result-product-grid .product-actions .primary-btn,
body.mobile-page[data-page="products"] .result-product-grid .product-actions .compare-inline-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 4px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   Mobile Phase 1A — Global Shell Foundation (mobile-only)
   --------------------------------------------------------------------------
   This layer is intentionally appended to `mobile-page-background.css`, the one
   stylesheet loaded by every dedicated mobile URL (including mobile-products.html),
   so the shell applies everywhere without adding a new <link> to any page.

   Every selector is prefixed with `html body.mobile-page` so it deterministically
   outranks the legacy `body.mobile-page ...` rules without editing any shared
   stylesheet (ios-glass-theme.css / site-font.css / etc.).

   Contents:
     1. shell tokens
     2. page foundation (safe area)
     3. header actions (search / menu) + right-side drawer skin
     4. fixed / floating / footer conflict governance
     5. typography baseline (mobile-readable floor)
     6. component primitives (card / button / chip / input / section title / sheet / empty)
     7. header normalization
   Phase 2A note: the fixed bottom navigation was REMOVED (this is a mobile website,
   not an app — no second bar above the browser toolbar), so there is no bottom-bar
   reservation any more.
   ========================================================================== */

/* 1. Shell tokens ---------------------------------------------------------- */
html body.mobile-page {
  --mobile-safe-top: env(safe-area-inset-top, 0px);
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  /* B1B2: --mobile-font-body / --mobile-font-meta 的定义已随全局正文 fallback 迁至
     mobile-theme.css（Mobile typography/theme owner）。值冻结：body 仍 14px、meta 仍 type-meta。 */
  --mobile-radius-card: 16px;
  --mobile-radius-control: 12px;
  --mobile-space-section: 14px;
  --mobile-control-height: 44px;
  --mobile-color-primary: #00aceb;
  --mobile-color-primary-strong: #0a6fae;
  --mobile-color-primary-soft: #e8f6fd;
  --mobile-color-surface: #ffffff;
  --mobile-color-border: rgba(148, 163, 184, .20);
  --mobile-color-text: #0b2540;
  --mobile-color-text-weak: #4a5c6e;
}

/* 2. Page foundation ------------------------------------------------------- */
/* Notch hooks: resolve to 0px until a page opts into viewport-fit=cover. */
html body.mobile-page header.nav,
html body.mobile-page .tools-nav,
html body.mobile-page .forum-post-nav {
  padding-top: var(--mobile-safe-top) !important;
}

html body.mobile-page footer,
html body.mobile-page .site-footer {
  margin-bottom: 0 !important;
}

/* 3. Header actions + right-side drawer ------------------------------------ */
/* The header keeps only the brand + two actions (search, menu). The menu button
   and the floating 更多功能 button open the SAME shared right-side drawer. */
html body.mobile-page .nav .nav-inner,
html body.mobile-page .tools-nav .tools-nav-inner,
html body.mobile-page .forum-post-nav .forum-post-nav-inner {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

html body.mobile-page .mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}

html body.mobile-page .mha-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--mobile-color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--mobile-color-primary-strong);
  box-shadow: 0 4px 12px rgba(14, 60, 90, .05);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html body.mobile-page .mha-btn:hover { border-color: rgba(0, 172, 235, .38); color: var(--mobile-color-primary); }
html body.mobile-page .mha-btn:focus-visible { outline: 2px solid rgba(0, 172, 235, .48); outline-offset: 2px; }
html body.mobile-page .mha-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Drawer skin: match the confirmed reference (right side, ~80vw, brand header,
   two groups, light blue active state). The drawer DOM belongs to the shared
   floating-actions.js; only its presentation is adjusted here. */
html body.mobile-page .mobile-nav-drawer-scrim {
  background: rgba(11, 37, 64, .38) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

html body.mobile-page .mobile-nav-drawer {
  width: 82% !important;
  max-width: 340px !important;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-left: 1px solid var(--mobile-color-border) !important;
  box-shadow: -18px 0 44px rgba(11, 37, 64, .18) !important;
}

html body.mobile-page .mnd-header {
  padding: 14px 16px 12px !important;
  border-bottom: 1px solid var(--mobile-color-border) !important;
}

html body.mobile-page .mnd-title { font-size: 15px !important; font-weight: 800 !important; color: var(--mobile-color-text) !important; }

html body.mobile-page .mnd-close {
  /* VA-509：触控目标 32 -> 44 */
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: 1px solid var(--mobile-color-border) !important;
  background: #fff !important;
  color: var(--mobile-color-text-weak) !important;
}

html body.mobile-page .mnd-item {
  gap: 12px !important;
  padding: 12px 16px !important;
  border-left: 0 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--mobile-color-text) !important;
}

html body.mobile-page .mnd-item + .mnd-item { border-top: 1px solid rgba(148, 163, 184, .14) !important; }
html body.mobile-page .mnd-item:hover { background: #f5fbff !important; }

html body.mobile-page .mnd-item.is-active,
html body.mobile-page .mobile-nav-drawer button.mnd-item.is-active {
  background: var(--mobile-color-primary-soft) !important;
  border-left: 0 !important;
  color: var(--mobile-color-primary-strong) !important;
  font-weight: 600 !important;
}

html body.mobile-page .mnd-item-icon {
  --drawer-icon-ink: #008ec4;
  --drawer-icon-surface: #e3f6ff;
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #fff 0%, var(--drawer-icon-surface) 100%) !important;
  color: var(--drawer-icon-ink) !important;
  border: 1px solid #e1eef6 !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgb(24 95 132 / 5%) !important;
}

html body.mobile-page .mnd-item-icon[data-mnd-icon="tools"] { --drawer-icon-ink:#008eab; --drawer-icon-surface:#dff6fa; }
html body.mobile-page .mnd-item-icon[data-mnd-icon="news"] { --drawer-icon-ink:#5272d9; --drawer-icon-surface:#eaf0ff; }
html body.mobile-page .mnd-item-icon[data-mnd-icon="knowledge"] { --drawer-icon-ink:#7560c9; --drawer-icon-surface:#efeafd; }
html body.mobile-page .mnd-item-icon[data-mnd-icon="forum"] { --drawer-icon-ink:#159c91; --drawer-icon-surface:#dff7f1; }
html body.mobile-page .mnd-item-icon[data-mnd-icon="cooperate"] { --drawer-icon-ink:#8569bd; --drawer-icon-surface:#f1ebfc; }
html body.mobile-page .mnd-item-icon[data-mnd-icon="feedback"] { --drawer-icon-ink:#bd8533; --drawer-icon-surface:#fff3df; }

html body.mobile-page .mnd-item.is-active .mnd-item-icon {
  background: var(--mobile-color-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
}

html body.mobile-page .mnd-item-icon svg { width: 26px !important; height: 26px !important; }

html body.mobile-page .mnd-secondary {
  background: #f7fbfd !important;
  border-top: 1px solid var(--mobile-color-border) !important;
}

html body.mobile-page .mnd-secondary .mnd-item { font-size: 13.5px !important; font-weight: 500 !important; color: var(--mobile-color-text) !important; }
html body.mobile-page .mobile-nav-drawer button.mnd-me { font-size: 13.5px !important; }

/* 4. Fixed / floating / footer conflict governance ------------------------- */
/* With the bottom bar removed, bottom-anchored overlays only need to clear the
   browser UI / home indicator, so they are based on the safe-area inset. */
html body.mobile-page .compare-dock {
  bottom: calc(10px + var(--mobile-safe-bottom)) !important;
}

html body.mobile-page .filter-done-bar {
  bottom: calc(8px + var(--mobile-safe-bottom)) !important;
}

html body.mobile-page[data-page="forum"] .floating-forum-post {
  bottom: calc(14px + var(--mobile-safe-bottom)) !important;
}

html body.mobile-page[data-page="forum"] .floating-forum-replies {
  bottom: calc(66px + var(--mobile-safe-bottom)) !important;
}

html body.mobile-page .forum-collapse-fab {
  left: 14px !important;
  bottom: calc(22px + var(--mobile-safe-bottom)) !important;
}

/* 5. Typography baseline —— B1B2 已整体迁至 mobile-theme.css（Mobile typography/theme
   owner）。selector/值/!important 位置保持不变，computed 等价；本文件回归 Canvas/Background owner。 */

/* Metadata: weaker than body copy, but never below 12px. */
html body.mobile-page[class] :is(small, time, figcaption),
html body.mobile-page[class] .news-meta,
html body.mobile-page[class] .live-date,
html body.mobile-page[class] .portal-points span,
html body.mobile-page[class] .hero-badges span,
html body.mobile-page[class] .source-count,
html body.mobile-page[class] .source-static,
html body.mobile-page[class] .news-attribution,
html body.mobile-page[class] .knowledge-report-meta,
html body.mobile-page[class] .knowledge-report-description,
html body.mobile-page[class] .required-hint,
html body.mobile-page[class] .spec-tag small,
html body.mobile-page[class] .product-tags span,
html body.mobile-page[class] .result-product-grid .product-tags span,
html body.mobile-page[class] .live-product-card > span,
html body.mobile-page[class] .icase-meta span,
html body.mobile-page[class] .term-standards-list .know-std-status,
html body.mobile-page[class] .difficulty-入门,
html body.mobile-page[class] .difficulty-进阶,
html body.mobile-page[class] .difficulty-高级,
html body.mobile-page[class] .logo-copy > span,
html body.mobile-page[class] .tools-logo .logo-copy > span {
  font-size: var(--mobile-font-meta) !important;
  line-height: 1.45 !important;
}

html body.mobile-page[class] .product-tags span,
html body.mobile-page[class] .result-product-grid .product-tags span {
  height: auto !important;
  min-height: 22px !important;
}

/* B1A3: 上述 .product-summary 字号声明已移交 css/pages/mobile-products-p1.css
   （type-supporting 消费，同值）。背景文件不再持有产品摘要排版。 */
html body.mobile-page[class] .result-product-grid .product-actions .primary-btn,
html body.mobile-page[class] .result-product-grid .product-actions .compare-inline-btn {
  font-size: 12px !important;
}

html body.mobile-page[class] .news-item h4 {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

/* B1B0: html body.mobile-page[class] .news-item p 的排版声明（13px/1.5）已移交给
   mobile-news.css（publish 页面层 owner）。背景文件不再持有 feed 正文排版。 */
/* Home live strip: news/term/forum/product link rows. */
html body.mobile-page[class] .live-block-list a,
html body.mobile-page[class] .live-product-grid a {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Platform strength banner carries an 8px caption on mobile. */
html body.mobile-page[class] .platform-strength-banner__data-item span {
  font-size: var(--mobile-font-meta) !important;
}

html body.mobile-page[class] .platform-strength-banner__data-item strong {
  font-size: 16px !important;
}

html body.mobile-page[class] .platform-strength-banner__cta strong,
html body.mobile-page[class] .platform-strength-banner__cta-kicker,
html body.mobile-page[class] .platform-strength-banner__cta-action {
  font-size: var(--mobile-font-meta) !important;
}

/* Shared server-injected compliance footer (server-utf8.mjs) sets 11px on the
   legal row; raise it on mobile without touching the shared server styles. */
html body.mobile-page[class] .site-compliance-footer__legal {
  font-size: var(--mobile-font-meta) !important;
  line-height: 1.6 !important;
}

html body.mobile-page[class] .site-compliance-footer__links a,
html body.mobile-page[class] .site-compliance-footer__qr-item figcaption,
html body.mobile-page[class] .site-context-notice p,
html body.mobile-page[class] .site-context-notice a {
  font-size: var(--mobile-font-meta) !important;
}

/* VA-501（Oil UI P0-4）：页面说明是正文，不是 meta；手机端提到 13px 地板。 */
html body.mobile-page[class] .site-context-notice p,
html body.mobile-page[class] .site-context-notice a {
  font-size: 13px !important;
}

/* Consistent page title scale across every dedicated mobile page. */
html body.mobile-page[class] :is(.hero, .hero-shell, .hero-card, .hero-head, .search-head, .publish-hero) h1 {
  font-size: 24px !important;
  line-height: 1.2 !important;
}

html body.mobile-page[class] :is(.hero, .hero-shell, .hero-card, .hero-head, .search-head) p {
  font-size: var(--mobile-font-body) !important;
  line-height: 1.6 !important;
}

/* 6. Component primitives --------------------------------------------------- */
html body.mobile-page[class] .filter-chip {
  min-height: 36px !important;
  height: auto !important;
  padding-inline: 12px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
}

html body.mobile-page[class] input:not([type="checkbox"]):not([type="radio"]),
html body.mobile-page[class] select,
html body.mobile-page[class] textarea {
  font-size: 16px !important; /* >=16px prevents iOS focus zoom */
}

html body.mobile-page[class] hr {
  border: 0 !important;
  border-top: 1px solid rgba(148, 163, 184, .20) !important;
}

/* Empty / placeholder states share one readable base. */
html body.mobile-page[class] :is(.empty-state, .forum-empty, .catalog-empty, [class*="empty"]) {
  font-size: var(--mobile-font-body) !important;
  line-height: 1.6 !important;
  color: #4a5c6e;
}

/* GB 标准查询工具 (shared tool-gb-checker.css) drops captions to 9.5-10.5px
   on mobile. Raise them here without touching the shared stylesheet. */
html body.mobile-page[data-tool="gb-checker"] .gbq-mode-switch em,
html body.mobile-page[data-tool="gb-checker"] .gbq-query-nav > header strong,
html body.mobile-page[data-tool="gb-checker"] .gbq-query-nav > header span,
html body.mobile-page[data-tool="gb-checker"] .gbq-query-tabs span,
html body.mobile-page[data-tool="gb-checker"] .gbq-query-capabilities {
  font-size: var(--mobile-font-meta) !important;
  line-height: 1.45 !important;
}

/* Sheet / dialog: the existing mobile scrims already sit above the bottom bar
   (products scrim z-index 1190, forum post sheet 1500), so sheets cover the
   navigation while open and no z-index override is required here. */

/* 7. Header normalization (Phase 2A) --------------------------------------- */
/* The confirmed header shows a two-line brand (name + one-line scope sub-label)
   plus the two header actions. Show the sub-label consistently on every dedicated
   mobile page (mobile-functional-layout.css hides it, and that file is not loaded
   by every page), and keep only the legacy nav note hidden. */
html body.mobile-page .nav .nav-note,
html body.mobile-page .tools-nav .nav-note {
  display: none !important;
}

html body.mobile-page .nav .logo-copy,
html body.mobile-page .tools-nav .logo-copy,
html body.mobile-page .forum-post-nav .logo-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 1px !important;
  min-width: 0 !important;
}

html body.mobile-page .nav .logo-copy strong,
html body.mobile-page .tools-nav .logo-copy strong,
html body.mobile-page .forum-post-nav .logo-copy strong {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

html body.mobile-page .nav .logo-copy > span,
html body.mobile-page .tools-nav .logo-copy > span,
html body.mobile-page .forum-post-nav .logo-copy > span {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--mobile-color-text-weak) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ==========================================================================
   Mobile Phase 2A-2 — Home completion (mobile-only)
   ========================================================================== */

/* Section order is now correct in the DOM (热门产品 → 社区交流热点 → 热门词条 →
   其他功能入口), so no CSS `order` override is needed. */

/* The dedicated "智能门锁研究 Pro" ad slide needs more vertical room than the
   compact legacy slides, so raise the home banner height. */
html body.mobile-page[data-page="home"] .platform-strength-carousel {
  --platform-banner-height: 214px;
}

html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__layout { display: block !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__content {
  display: grid !important;
  align-content: start !important;
  gap: 7px !important;
  min-width: 0 !important;
}
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__eyebrow {
  display: inline-flex !important;
  width: max-content !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #e8f6fd !important;
  border: 1px solid #d4eefb !important;
  color: var(--mobile-color-primary-strong) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__eyebrow::before { display: none !important; content: none !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__title {
  margin: 0 !important;
  color: var(--mobile-color-text) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__title em { font-style: normal !important; color: var(--mobile-color-primary-strong) !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__lede {
  margin: 0 !important;
  color: var(--mobile-color-text-weak) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 2px 0 !important;
}
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metric {
  background: rgba(255, 255, 255, .76) !important;
  border: 1px solid rgba(0, 172, 235, .18) !important;
  border-radius: 12px !important;
  padding: 7px 9px !important;
  text-align: left !important;
}
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metric strong { display: block !important; color: var(--mobile-color-primary-strong) !important; font-size: 15px !important; font-weight: 800 !important; line-height: 1.15 !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metric span { display: block !important; margin-top: 2px !important; color: var(--mobile-color-text-weak) !important; font-size: 11px !important; line-height: 1.3 !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__cta {
  display: inline-flex !important;
  width: max-content !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #00aceb, #57c8ef) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0, 172, 235, .22) !important;
}
/* The ad slide is light blue/white with no photo background. */
html body.mobile-page .platform-strength-banner--pro-ad {
  background: linear-gradient(135deg, #f4fbfe 0%, #e8f6fd 55%, #ddf1fb 100%) !important;
}

/* 其他功能入口 (2x2 compact) */
html body.mobile-page .mobile-function-entries { margin-top: 18px !important; }
html body.mobile-page .mobile-function-entries .section-head { margin-bottom: 10px !important; }
html body.mobile-page .mobile-function-entries .section-head h2 { margin: 0 !important; font-size: 16.5px !important; font-weight: 800 !important; }
html body.mobile-page .mobile-function-entries .section-head p { margin: 4px 0 0 !important; font-size: 12px !important; color: var(--mobile-color-text-weak) !important; }
html body.mobile-page .mfe-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
html body.mobile-page .mfe-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-height: 76px !important;
  padding: 12px !important;
  background: var(--mobile-color-surface) !important;
  border: 1px solid var(--mobile-color-border) !important;
  border-radius: var(--mobile-radius-card) !important;
  box-shadow: 0 6px 18px rgba(14, 60, 90, .06) !important;
  text-decoration: none !important;
}
html body.mobile-page .mfe-icon {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: var(--mobile-color-primary-soft) !important;
  border: 1px solid #d6eefb !important;
}
html body.mobile-page .mfe-icon svg { width: 18px !important; height: 18px !important; fill: none !important; stroke: var(--mobile-color-primary-strong) !important; stroke-width: 1.9 !important; stroke-linecap: round !important; stroke-linejoin: round !important; }
html body.mobile-page .mfe-copy { min-width: 0 !important; }
html body.mobile-page .mfe-copy strong { display: block !important; color: var(--mobile-color-text) !important; font-size: 14px !important; font-weight: 800 !important; line-height: 1.3 !important; }
html body.mobile-page .mfe-copy small { display: block !important; margin-top: 3px !important; color: var(--mobile-color-text-weak) !important; font-size: 11.5px !important; line-height: 1.4 !important; }

/* ==========================================================================
   Mobile Home — Reference Alignment Rework (Phase 2A-3, mobile-only, home-scope)
   Direction: a light, dense, professional mobile industry *website*.
   White canvas + whitespace + hairlines for hierarchy; #00ACEB as accent only.
   Scoped to [data-page="home"] so no other mobile page changes.
   ========================================================================== */

/* 1) White page canvas (was a full-page blue gradient). */
html:has(body.mobile-page[data-page="home"][class]) { background: #ffffff !important; }
html body.mobile-page[data-page="home"] {
  background: linear-gradient(180deg, #eef8fe 0%, #ffffff 300px) !important;
  background-attachment: scroll !important;
}

/* 2) Compact header. */
html body.mobile-page[data-page="home"] header.nav { padding-top: 0 !important; }
html body.mobile-page[data-page="home"] header.nav .nav-inner {
  min-height: 0 !important;
  gap: 4px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}
html body.mobile-page[data-page="home"] .logo-mark { width: 28px !important; height: 28px !important; flex-basis: 28px !important; border-radius: 8px !important; }
html body.mobile-page[data-page="home"] .logo-copy strong { font-size: 14.5px !important; }
html body.mobile-page[data-page="home"] .logo-copy > span { font-size: 12px !important; }
html body.mobile-page[data-page="home"] .mha-btn { width: 30px !important; height: 30px !important; border-radius: 9px !important; }
html body.mobile-page[data-page="home"] .mha-btn svg { width: 16px !important; height: 16px !important; }

/* 3) Thinner notice. */
html body.mobile-page[data-page="home"] .site-announcement__viewport { min-height: 30px !important; height: 30px !important; }

/* 4) Compact search section. */
html body.mobile-page[data-page="home"] .hero { padding: 10px 0 0 !important; }
html body.mobile-page[data-page="home"] .hero .container.hero-shell { padding: 0 !important; }
html body.mobile-page[data-page="home"] .search-panel-title { margin: 0 0 2px !important; font-size: 15.5px !important; font-weight: 800 !important; }
html body.mobile-page[data-page="home"] .search-panel-copy { margin: 0 0 8px !important; font-size: 12.5px !important; line-height: 1.5 !important; color: var(--mobile-color-text-weak) !important; }
html body.mobile-page[data-page="home"] .hero-search { gap: 8px !important; }
html body.mobile-page[data-page="home"] .hero-search input,
html body.mobile-page[data-page="home"] .hero-search button { height: 42px !important; min-height: 42px !important; }

/* 5) Section rhythm: no card shells; title + whitespace + hairline. */
html body.mobile-page[data-page="home"] .live-strip { display: block !important; padding: 4px 0 0 !important; gap: 0 !important; }
html body.mobile-page[data-page="home"] .live-block {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 20px !important;
}
html body.mobile-page[data-page="home"] .live-block-head { margin: 0 0 8px !important; }
html body.mobile-page[data-page="home"] .live-block-head h3::before { content: ""; display: inline-block; width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg,#00aceb,#7fd7f5); margin-right: 8px; vertical-align: -1px; }
html body.mobile-page[data-page="home"] .live-section-link { font-size: 12.5px !important; font-weight: 700 !important; color: var(--mobile-color-primary-strong) !important; }

/* 6) News + community as light lists. */
html body.mobile-page[data-page="home"] #live-news,
html body.mobile-page[data-page="home"] #live-forum { display: block !important; }
html body.mobile-page[data-page="home"] #live-news li,
html body.mobile-page[data-page="home"] #live-forum li {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 10px !important;
  align-items: baseline !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(148,163,184,.16) !important;
}
html body.mobile-page[data-page="home"] .live-date { font-size: 12px !important; color: var(--mobile-color-text-weak) !important; }

/* 7) Terms as compact chips. */
html body.mobile-page[data-page="home"] .live-terms-list { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
html body.mobile-page[data-page="home"] .live-terms-list li { display: inline-flex !important; padding: 0 !important; border: 0 !important; }
html body.mobile-page[data-page="home"] .live-terms-list a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid var(--mobile-color-border) !important;
  border-radius: 999px !important;
  background: #fff !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: #0a4a63 !important;
}

/* 8) Compact horizontal product rail. */
html body.mobile-page[data-page="home"] .live-product-grid {
  display: flex !important;
  overflow-x: auto !important;
  gap: 9px !important;
  padding: 2px 0 4px !important;
  scrollbar-width: none;
}
html body.mobile-page[data-page="home"] .live-product-grid::-webkit-scrollbar { display: none; }
html body.mobile-page[data-page="home"] .live-product-grid > li { flex: 0 0 104px !important; min-width: 0 !important; }
html body.mobile-page[data-page="home"] .live-product-card { grid-template-rows: 56px 26px !important; gap: 5px !important; padding: 6px !important; border-radius: 12px !important; box-shadow: none !important; }
html body.mobile-page[data-page="home"] .live-product-card > span:not(.live-product-media) { min-height: 26px !important; font-size: 12px !important; }
html body.mobile-page[data-page="home"] .live-product-card img { border-radius: 8px !important; }

/* 9) Compact function entries (2x2). */
html body.mobile-page[data-page="home"] .mobile-function-entries { margin-top: 20px !important; }
html body.mobile-page[data-page="home"] .mfe-card { min-height: 62px !important; padding: 10px !important; gap: 9px !important; box-shadow: none !important; }
html body.mobile-page[data-page="home"] .mfe-icon { width: 28px !important; height: 28px !important; flex-basis: 28px !important; border-radius: 9px !important; }
html body.mobile-page[data-page="home"] .mfe-icon svg { width: 15px !important; height: 15px !important; }
html body.mobile-page[data-page="home"] .mfe-copy small { font-size: 12px !important; margin-top: 2px !important; }

/* 10) Light footer. */
html body.mobile-page[data-page="home"] .site-compliance-footer { margin-top: 24px !important; padding: 20px 20px 14px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__brand p { font-size: 12px !important; line-height: 1.55 !important; margin-top: 6px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__main { gap: 14px !important; padding-bottom: 14px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__qr { gap: 18px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__qr-item img { width: 72px !important; height: 72px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__legal { padding-top: 10px !important; font-size: 12px !important; }

/* 11) Banner: horizontal ad, compact height, inline stats. */
html body.mobile-page[data-page="home"] .platform-strength-carousel { --platform-banner-height: 158px; }
html body.mobile-page[data-page="home"] .platform-strength-banner { padding: 12px 12px 10px 16px !important; }
html body.mobile-page[data-page="home"] .platform-strength-banner--pro-ad {
  background-image:
    linear-gradient(100deg, rgba(255,255,255,.99) 0%, rgba(240,250,254,.95) 52%, rgba(224,243,253,.50) 100%),
    url('/images/banners/platform-strength/industry-lightflow-v2.webp') !important;
  background-position: 0 0, 100% center !important;
  background-size: auto, cover !important;
  background-repeat: no-repeat, no-repeat !important;
}
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__content { gap: 5px !important; max-width: 74% !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__title { font-size: 20px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__lede { font-size: 12px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metrics { display: flex !important; gap: 14px !important; margin: 1px 0 2px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metric { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metric strong { font-size: 14.5px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metric span { font-size: 12px !important; margin-top: 1px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__cta { padding: 6px 12px !important; font-size: 12.5px !important; border-radius: 10px !important; }

/* --- Pass 2: tighten to reference density ------------------------------- */
/* Notice (real element: aside.site-announcement > __inner) */
html body.mobile-page[data-page="home"] .site-announcement { padding: 0 !important; }
html body.mobile-page[data-page="home"] .site-announcement__inner { min-height: 30px !important; padding-top: 3px !important; padding-bottom: 3px !important; }
html body.mobile-page[data-page="home"] .site-announcement__label { min-height: 22px !important; font-size: 12px !important; }

/* Header ~50px */
html body.mobile-page[data-page="home"] header.nav .nav-inner { padding-top: 6px !important; padding-bottom: 6px !important; }
html body.mobile-page[data-page="home"] .logo-mark { width: 26px !important; height: 26px !important; flex-basis: 26px !important; }
html body.mobile-page[data-page="home"] .logo-copy strong { font-size: 14px !important; }
html body.mobile-page[data-page="home"] .mha-btn { width: 28px !important; height: 28px !important; }

/* Banner: 150px + 12px eyebrow */
html body.mobile-page[data-page="home"] .platform-strength-carousel { --platform-banner-height: 150px; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__eyebrow { font-size: 12px !important; padding: 3px 9px !important; }

/* Search ~100px */
html body.mobile-page[data-page="home"] .hero { padding: 8px 0 0 !important; }
html body.mobile-page[data-page="home"] .search-panel-copy { margin: 0 0 6px !important; font-size: 12.5px !important; }
html body.mobile-page[data-page="home"] .hero-search input,
html body.mobile-page[data-page="home"] .hero-search button { height: 40px !important; min-height: 40px !important; }

/* Section spacing 16px */
html body.mobile-page[data-page="home"] .live-block { margin-top: 16px !important; }
html body.mobile-page[data-page="home"] .mobile-function-entries { margin-top: 16px !important; }

/* Lists tighter */
html body.mobile-page[data-page="home"] #live-news li,
html body.mobile-page[data-page="home"] #live-forum li { padding: 8px 0 !important; }

/* Chips tighter */
html body.mobile-page[data-page="home"] .live-terms-list { gap: 7px !important; }
html body.mobile-page[data-page="home"] .live-terms-list a { min-height: 28px !important; font-size: 12.5px !important; }

/* Product rail tighter */
html body.mobile-page[data-page="home"] .live-product-grid > li { flex: 0 0 96px !important; }
html body.mobile-page[data-page="home"] .live-product-card { grid-template-rows: 50px 24px !important; padding: 5px !important; gap: 4px !important; }
html body.mobile-page[data-page="home"] .live-product-card > span:not(.live-product-media) { min-height: 24px !important; font-size: 12px !important; }

/* Entries tighter */
html body.mobile-page[data-page="home"] .mfe-grid { gap: 8px !important; }
html body.mobile-page[data-page="home"] .mfe-card { min-height: 56px !important; padding: 9px !important; gap: 8px !important; }
html body.mobile-page[data-page="home"] .mfe-icon { width: 26px !important; height: 26px !important; flex-basis: 26px !important; }

/* Footer lighter */
html body.mobile-page[data-page="home"] .site-compliance-footer { margin-top: 18px !important; padding: 16px 20px 12px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__main { gap: 10px !important; padding-bottom: 10px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__qr { gap: 16px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__qr-item img { width: 62px !important; height: 62px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__brand p { font-size: 12px !important; margin-top: 4px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__legal { padding-top: 8px !important; font-size: 12px !important; line-height: 1.5 !important; }

/* --- Pass 3: final density ------------------------------------------------ */
html body.mobile-page[data-page="home"] .live-block { margin-top: 14px !important; }
html body.mobile-page[data-page="home"] #live-news li,
html body.mobile-page[data-page="home"] #live-forum li { padding: 7px 0 !important; }
html body.mobile-page[data-page="home"] .live-terms-list a { min-height: 27px !important; }
html body.mobile-page[data-page="home"] .mobile-function-entries .section-head { margin-bottom: 8px !important; }
html body.mobile-page[data-page="home"] .mfe-card { min-height: 52px !important; padding: 8px !important; }
html body.mobile-page[data-page="home"] .hero .container.hero-shell { margin: 0 !important; }
html body.mobile-page[data-page="home"] .search-panel { padding: 0 !important; }
html body.mobile-page[data-page="home"] .live-product-card { grid-template-rows: 48px 22px !important; }
html body.mobile-page[data-page="home"] .platform-strength-banner { padding: 10px 12px 9px 16px !important; }

/* Legacy --platform slide: its desktop consult box overlapped the mobile copy. */
html body.mobile-page[data-page="home"] .platform-strength-banner__desktop-consult { display: none !important; }
html body.mobile-page[data-page="home"] .platform-strength-banner--platform .platform-strength-banner__consult { margin-top: 6px !important; }
html body.mobile-page[data-page="home"] .platform-strength-banner--platform .platform-strength-banner__data { margin: 6px 0 2px !important; }

/* Legacy --platform slide: drop its duplicate consult panel on mobile home
   (the Pro ad slide already carries the 商务合作 CTA) — it overlapped the copy. */
html body.mobile-page[data-page="home"] .platform-strength-banner--platform .platform-strength-banner__consult { display: none !important; }
html body.mobile-page[data-page="home"] .platform-strength-banner--platform .platform-strength-banner__layout { display: block !important; }

/* ==========================================================================
   Mobile Home — Final Reference Closure (mobile-only, home-scope)
   ========================================================================== */

/* A) Hide the shared FAB on mobile; a stable Mobile-only FAB replaces it. */
html body.mobile-page .floating-action-entry { display: none !important; }

html body.mobile-page .mobile-more-fab {
  --mobile-more-focus-ring: 3px solid var(--border-focus);
  position: fixed;
  right: max(8px, calc((100vw - 430px) / 2 + 8px));
  bottom: calc(18px + var(--mobile-safe-bottom));
  z-index: 1240;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: linear-gradient(135deg, #0a5fa8, #1268b0);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 8px 20px rgba(11, 103, 189, .27);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html body.mobile-page .mobile-more-fab:focus-visible { outline: 3px solid var(--border-focus); outline-offset: 3px; }

/* B) Drawer brand header. */
html body.mobile-page .mobile-nav-drawer .mnd-title { display: none !important; }
html body.mobile-page .mnd-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
html body.mobile-page .mnd-brand__mark {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px;
  background: #fff; border: 1px solid var(--mobile-color-border);
  display: grid; place-items: center; overflow: hidden;
}
html body.mobile-page .mnd-brand__mark img { width: 78%; height: 78%; object-fit: contain; display: block; }
html body.mobile-page .mnd-brand__copy { min-width: 0; }
html body.mobile-page .mnd-brand__copy strong { display: block; color: var(--mobile-color-text); font-size: 14.5px; font-weight: 800; line-height: 1.25; }
html body.mobile-page .mnd-brand__copy span { display: block; margin-top: 1px; color: var(--mobile-color-text-weak); font-size: 11px; line-height: 1.3; }

/* C) Pro Banner: taller so the CTA is fully visible. */
html body.mobile-page[data-page="home"] .platform-strength-carousel { --platform-banner-height: 168px; }
html body.mobile-page[data-page="home"] .platform-strength-banner { padding: 12px 12px 12px 16px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__content { gap: 4px !important; max-width: 76% !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__title { font-size: 19px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__lede { font-size: 12px !important; line-height: 1.4 !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metrics { gap: 12px !important; margin: 0 !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metric strong { font-size: 14px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__metric span { font-size: 12px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__cta { margin-top: 2px !important; padding: 6px 12px !important; font-size: 12.5px !important; }

/* D) Search block: only the search row on mobile home (label/help stay for a11y). */
html body.mobile-page[data-page="home"] .hero { padding: 8px 0 0 !important; }
html body.mobile-page[data-page="home"] .search-panel-title,
html body.mobile-page[data-page="home"] .search-panel-copy {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
html body.mobile-page[data-page="home"] .hero-search { margin: 0 !important; }

/* E) Product rail: names wrap to at most 2 lines (never clipped mid-line). */
html body.mobile-page[data-page="home"] .live-product-grid > li { flex: 0 0 100px !important; }
html body.mobile-page[data-page="home"] .live-product-card { grid-template-rows: 56px auto !important; gap: 5px !important; padding: 6px !important; }
html body.mobile-page[data-page="home"] .live-product-card > span:not(.live-product-media) {
  display: -webkit-box !important;
  min-height: 30px !important;
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: clip !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

/* F) Light Home footer: legal + brand line only (QR block hidden on home). */
html body.mobile-page[data-page="home"] .site-compliance-footer { margin-top: 18px !important; padding: 16px 20px 14px !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer__main { display: none !important; }
html body.mobile-page[data-page="home"] .site-compliance-footer::before {
  content: "智能锁产业信息平台";
  display: block;
  margin-bottom: 8px;
  color: var(--mobile-color-text);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
html body.mobile-page[data-page="home"] .site-compliance-footer__legal {
  padding-top: 0 !important;
  border-top: 0 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

/* G) Uniform section rhythm. */
html body.mobile-page[data-page="home"] .live-block { margin-top: 16px !important; }
html body.mobile-page[data-page="home"] .mobile-function-entries { margin-top: 18px !important; }
html body.mobile-page[data-page="home"] .platform-strength-banner-section { margin-bottom: 0 !important; }

/* Drawer brand sub-label must stay >=12px (mobile readability floor). */
html body.mobile-page .mnd-brand__copy span { font-size: 12px !important; }

/* ==========================================================================
   Mobile Home — Strict Reference Blueprint (Step 2, mobile-only, home-scope)
   ========================================================================== */

/* Banner right visual: real authorized platform product asset (not a fake product). */
html body.mobile-page[data-page="home"] .platform-strength-banner--pro-ad {
  background-image:
    linear-gradient(100deg, rgba(255,255,255,.99) 0%, rgba(241,250,254,.96) 46%, rgba(226,244,253,.42) 100%),
    url('/images/banners/platform-strength/platform-products-editorial-v1.webp') !important;
  background-position: 0 0, 100% center !important;
  background-size: auto, cover !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* News: image-led feed rows with a real-content-free type placeholder block. */
html body.mobile-page[data-page="home"] #live-news li {
  grid-template-columns: 58px minmax(0,1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 9px 0 !important;
}
html body.mobile-page[data-page="home"] #live-news li::before {
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid var(--mobile-color-border);
  background-color: #eef8fe;
  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='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='16' height='14' rx='2'/><path d='M8 9h8'/><path d='M8 13h5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}

/* Community: conversation icon + title + metadata. */
html body.mobile-page[data-page="home"] #live-forum li {
  grid-template-columns: 26px minmax(0,1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 11px 0 !important;
}
html body.mobile-page[data-page="home"] #live-forum li::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #d6eefb;
  background-color: var(--mobile-color-primary-soft);
  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='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8 8 0 0 1-8 8H4l2.2-2.8A8 8 0 1 1 21 11.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}
/* Community empty state keeps the reference's visual language (icon + real entry). */
html body.mobile-page[data-page="home"] #live-forum li.live-empty {
  grid-template-columns: 26px minmax(0,1fr) !important;
  color: var(--mobile-color-text-weak);
  font-size: 13.5px !important;
}
html body.mobile-page[data-page="home"] #live-forum .live-empty__actions { margin-top: 4px; }
html body.mobile-page[data-page="home"] #live-forum .live-empty__actions a {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--mobile-color-primary-strong) !important;
  font-size: 13px !important; font-weight: 700 !important;
}

/* Terms: keep chips + light arrow affordance (section link already has one). */
html body.mobile-page[data-page="home"] .live-terms-list a:hover { border-color: rgba(0,172,235,.4) !important; color: var(--mobile-color-primary-strong) !important; }

/* ==========================================================================
   Mobile Home — Final Structural Closure (mobile-only, home-scope)
   ========================================================================== */

/* Search: icon inside the input (reference layout), no extra title/copy.
   The `.search-panel-only` variant is listed explicitly so this rule outranks the
   later, more specific `mobile-home-layout.css` reset (padding/background). */
html body.mobile-page[data-page="home"] .hero-search input,
html body.mobile-page[data-page="home"] .search-panel-only .hero-search input {
  padding-left: 38px !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;
}

/* Banner: give the CTA real bottom clearance (>=10px) instead of hugging the edge.
   The Pro-ad content is top-aligned, so the banner box needs to be tall enough to
   contain the CTA plus 10px of clearance. */
html body.mobile-page[data-page="home"] .platform-strength-carousel { --platform-banner-height: 192px; }
html body.mobile-page[data-page="home"] .platform-strength-banner { padding: 12px 12px 15px 16px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__content { gap: 4px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__title { font-size: 19px !important; }
html body.mobile-page .platform-strength-banner--pro-ad .platform-strength-banner__cta { margin-top: 1px !important; }

/* Products: image + name (<=2 lines) + REAL feature line (1 line). */
html body.mobile-page[data-page="home"] .live-product-grid > li { flex: 0 0 92px !important; }
html body.mobile-page[data-page="home"] .live-product-card {
  grid-template-rows: 50px auto auto !important;
  gap: 4px !important;
  padding: 6px !important;
}
html body.mobile-page[data-page="home"] .live-product-card > span:not(.live-product-media):not(.live-product-feature) {
  /* The 72px media block overflows its 50px grid row and overlaps the name row,
     so the image would otherwise paint over the name (seen on cards whose image is
     not down-scaled). Keep the name above the media for every card. */
  position: relative !important;
  z-index: 1 !important;
  min-height: 30px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
html body.mobile-page[data-page="home"] .live-product-feature {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: var(--mobile-color-text-weak) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  white-space: normal !important;
}


/* VA-509（第六批）：移动端主要触控目标补到 ≥44px。
   只覆盖独立的按钮类控件；正文内联文本链接（页脚备案行、卡片标题链接等）按 WCAG
   「inline target」例外保留原尺寸，chip 家族（27/28 vs 40）仍待 P1-5 裁决不动。 */
html body.mobile-page .catalog-page-btn {
  box-sizing: border-box;
  min-height: 44px !important;
  min-width: 44px !important;
}
