/* ============================================================
   手机端中转页 + 舌诊页（D2 组，2026-11-25）
   只在 @media (max-width:600px) 内改呈现；桌面端仅隐藏手机专属
   元素（区段头、图标）与保留分组间距，卡片/字号/功能不动。
   共用设计系统契约类（.m-sec/.m-sec-head/.m-sec-title/.m-sec-more/
   .m-king/.m-king-item/.m-clamp2/.m-sub）全部用 D1 的
   frontend/css/mobile-shop.css 里的定义，本文件不重复定义。
   本文件只放 D2 五页自己的规则（行/格/舌诊步骤点等）与必要的
   页内适配（如区段在 .container 内时左右边距的调整）。
   body 页面类：.m-hub（hub-health/hub-care/hub-help/hub-me）、
   .m-tongue（tongue-face）。
   ============================================================ */

/* ---- 桌面端：手机专属元素隐藏；分组之间留 20px（与 .grid gap 一致） ---- */
.m-sec-head { display: none; }
.hub-ic { display: none; }
@media (min-width: 601px) {
  .hub-group + .hub-group { margin-top: 20px; }
  #announce-section { margin-bottom: 20px; }
}

@media (max-width: 600px) {
  /* 契约类（.m-sec/.m-sec-head/.m-sec-title/.m-sec-more/.m-king/
     .m-king-item/.m-clamp2/.m-sub）全部来自 mobile-shop.css，本文件不定义。 */

  /* ================= 中转页通用（body.m-hub） ================= */
  /* H1 字号以 D1 的 mobile-shop.css 为准（1.05rem）；这里只调边距 */
  body.m-hub h1 { margin: 4px 0 2px; }
  body.m-hub .hub-guide { font-size: 0.85rem; line-height: 1.5; color: var(--muted); margin: 0 0 4px; }
  /* 区段在 .container 内：左右不再另加 16px（容器已有 16px 内边距） */
  body.m-hub .m-sec { margin: 12px 0 0; }
  /* 行列表：grid 在手机上收起，行与行之间用分隔线，不用 16px 间隙 */
  body.m-hub .m-sec .grid { display: block; }
  body.m-hub .m-sec .grid.m-king { display: grid; }
  body.m-hub .disclaimer { font-size: 0.8rem; line-height: 1.5; margin-top: 16px; }

  /* ---- 图标化入口行：图标 + 短名 + 一句说明（超两行截断）+ 右箭头 ---- */
  body.m-hub a.hub-row {
    display: flex; align-items: center; gap: 12px;
    min-height: 0; padding: 13px 0; margin: 0;
    background: transparent; border: none; border-radius: 0; box-shadow: none;
  }
  body.m-hub a.hub-row + a.hub-row { border-top: 1px solid var(--border); }
  body.m-hub a.hub-row:active { background: var(--green-light); }
  body.m-hub a.hub-row::after {
    content: '\203A'; flex: none; font-size: 1.4rem; line-height: 1; color: var(--muted);
  }
  body.m-hub .hub-ic {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--green-light); color: var(--green-dark);
    font-size: 1.15rem; font-weight: 700;
  }
  body.m-hub .hub-row-main { flex: 1; min-width: 0; }
  body.m-hub .hub-row-main h3 { font-size: 0.95rem; line-height: 1.4; margin: 0 0 2px; }
  body.m-hub .hub-row-main p { font-size: 0.85rem; line-height: 1.5; color: var(--muted); margin: 0; }

  /* ---- 我的页：图标化紧凑格（金刚区 5 列，图标 + 短名，说明收起） ---- */
  body.m-hub .m-king a.hub-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    min-height: 0; padding: 12px 2px 10px; margin: 0;
    background: transparent; border: none; border-radius: 0; box-shadow: none;
    text-align: center; position: relative;
  }
  body.m-hub .m-king a.hub-tile:active { background: var(--green-light); }
  body.m-hub .m-king a.hub-tile h3 {
    font-size: 0.72rem; font-weight: 400; line-height: 1.35; margin: 0; color: var(--text);
  }
  body.m-hub .m-king a.hub-tile p { display: none; }
  /* 「消息」未读角标：手机格里改挂在图标右上角，不占名字的位置 */
  body.m-hub .m-king .hub-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    font-size: 0.7rem; line-height: 18px; margin: 0;
  }

  /* ---- 我的页：平台公告区与本周小结卡（结构不动，只调手机间距字号） ---- */
  body.m-hub #announce-section { margin-bottom: 0; padding: 16px; }
  body.m-hub #announce-section h3 { font-size: 1rem; margin: 0 0 6px; }
  body.m-hub #announce-list { font-size: 0.85rem; line-height: 1.6; }
  body.m-hub #announce-list li { margin-bottom: 2px; }
  body.m-hub #week-summary-card { padding: 16px; }
  body.m-hub #week-summary-card h3 { font-size: 1rem; margin: 0 0 4px; }
  body.m-hub .week-stats { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  body.m-hub .week-stat { padding: 12px 8px; }
  body.m-hub .week-num { font-size: 2rem; }
  body.m-hub .week-label { font-size: 1rem; margin-top: 4px; }
  body.m-hub #ws-empty-note { font-size: 0.85rem; margin: 10px 0 0; }
  body.m-hub #week-summary-card .btn { flex: 1 1 100%; font-size: 1.05rem; min-height: 52px; }

  /* ================= 舌诊页（body.m-tongue） ================= */
  /* H1/H2/H3 字号以 D1 的 mobile-shop.css 为准；这里只调边距 */
  body.m-tongue h1 { margin: 4px 0 2px; }
  body.m-tongue .notice { margin: 12px 0 0; padding: 12px 14px; font-size: 0.9rem; }
  /* 流程说明收成一句（.tf-flow），次要灰字 */
  body.m-tongue .tf-flow { font-size: 0.85rem; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
  /* 步骤卡按商城节奏：区段在 .container 内，左右不再另加 16px */
  body.m-tongue .m-sec { margin: 12px 0 0; }
  body.m-tongue .m-sec h2 { margin: 0 0 8px; }
  body.m-tongue .m-sec h3 { margin: 20px 0 6px; }
  /* 步骤点：不许折行（大字模式下「自动分析」曾折成两行，高低不齐） */
  body.m-tongue .tf-step-dot { white-space: nowrap; }
  html.large-font body.m-tongue .tf-step-dot { font-size: 0.85rem; padding-left: 1px; padding-right: 1px; }
}
