/* ==========================================================================
 * 05 开庭排期（子页面：白底导航栏 + 月份行 + 按日分组 + 底部双按钮）
 * --------------------------------------------------------------------------
 * 结构对照 05-开庭排期.png：
 *   · 白底导航栏：返回圆钮 · 居中标题 · 右侧日历圆钮（无 TabBar、无悬浮球）
 *   · 其下一行：月份「2026 年 10 月」+ 右侧「本月 N 场 · 待开庭 M 场」
 *   · 按日分组：组头「今天 · 10 月 14 日 周三」+ 右侧「N 场」
 *   · 卡片：左侧时间砖（今天为品牌蓝，其余浅灰）+ 案件名 + 法院·法庭 + 一枚提示条
 *   · 底部固定双按钮：导出排期表（白底描边）/ 新建开庭提醒（品牌蓝实心）
 * 尺寸与配色取规范令牌；卡片内部密度对照设计稿。
 * ========================================================================== */

body.mobile .mh-nav {
  position: sticky; top: 0; z-index: 6;
  background: var(--m-card); border-bottom: 1px solid var(--m-line);
  padding-top: max(var(--m-status-h, 62px), var(--m-safe-top));
}
body.mobile .mh-nav-in {
  position: relative; height: 48px;
  display: flex; align-items: center; justify-content: center; padding: 0 var(--m-gutter);
}
body.mobile .mh-round {
  width: 32px; height: 32px; flex: none; padding: 0; border: none;
  border-radius: 50%; background: #F1F4F7; color: var(--m-t1);
  display: flex; align-items: center; justify-content: center;
}
body.mobile .mh-round:active { background: #E7EBF0; }
body.mobile .mh-round.back { position: absolute; left: var(--m-gutter); }
body.mobile .mh-round.cal { position: absolute; right: var(--m-gutter); }
body.mobile .mh-round.back svg { transform: rotate(180deg); }
body.mobile .mh-title b { font-size: var(--m-fs-h2); font-weight: 600; color: var(--m-t1); }

/* ------------------------------ 月份行 ------------------------------ */
body.mobile .mh-month {
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--m-gutter-lg) 2px;
}
body.mobile .mh-month-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 0; border: none;
  background: none; cursor: pointer; font-family: var(--m-ff);
  font-size: 15px; font-weight: 600; color: var(--m-t1);
}
body.mobile .mh-month-btn .mk-ic { color: var(--m-t3); transition: .18s; }
body.mobile .mh-month-btn.on .mk-ic { transform: rotate(180deg); }
body.mobile .mh-month-sum { margin-left: auto; font-size: var(--m-fs-sub); color: var(--m-t3); }

/* 月份选择：展开成横向胶囊，不改变静止状态下的版面 */
body.mobile .mh-months {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px var(--m-gutter-lg) 0;
}
body.mobile .mh-months::-webkit-scrollbar { display: none; }
body.mobile .mh-months[hidden] { display: none; }
body.mobile .mh-m {
  flex: none; height: 30px; padding: 0 13px; border-radius: 999px; border: none;
  background: #E9EEF4; color: var(--m-t2);
  font-size: var(--m-fs-body); font-weight: 600; font-family: var(--m-ff); cursor: pointer;
}
body.mobile .mh-m.on { background: var(--m-brand); color: #fff; }

/* ------------------------------ 按日分组 ------------------------------ */
body.mobile .mh-list { padding: 16px var(--m-gutter-lg) 0; }
body.mobile .mh-group + .mh-group { margin-top: 18px; }
body.mobile .mh-gh {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
body.mobile .mh-gh b { font-size: 13.5px; font-weight: 600; color: var(--m-t1); }
body.mobile .mh-gh span { margin-left: auto; font-size: var(--m-fs-sub); color: var(--m-t3); }

body.mobile .mh-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--m-card); border-radius: 18px; box-shadow: var(--m-sh-card);
  padding: 12px; cursor: pointer;
}
body.mobile .mh-card + .mh-card { margin-top: 10px; }
body.mobile .mh-card:active { transform: scale(.995); }

/* 时间砖：今天用品牌蓝（同设计稿），其余浅灰 */
body.mobile .mh-tile {
  width: 56px; height: 56px; flex: none; border-radius: 14px;
  background: #F1F4F7; color: var(--m-t1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.15;
}
body.mobile .mh-tile em { font-style: normal; font-size: var(--m-fs-micro); color: var(--m-t3); }
body.mobile .mh-tile b { font-size: 13.5px; font-weight: 600; }
body.mobile .mh-tile.today { background: var(--m-grad-btn); color: #fff; box-shadow: var(--m-sh-btn); }
body.mobile .mh-tile.today em { color: rgba(255, 255, 255, .86); }

body.mobile .mh-body { flex: 1; min-width: 0; }
body.mobile .mh-name {
  margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.42; color: var(--m-t1);
}
body.mobile .mh-where {
  display: flex; align-items: center; gap: 4px; margin-top: 6px;
  font-size: var(--m-fs-sub); color: var(--m-t3);
}
body.mobile .mh-where .mk-ic { flex: none; color: var(--m-t4); }
/* 只让法院名省略，不能写成 .mh-where span —— 图标本身也是 span（.mk-ic），
   那样会把省略号规则套到图标上（实测踩过）。 */
body.mobile .mh-court { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 提示条：真实的法官 / 地位 / 冲突 / 过期信息。设计稿那枚是「法官 + 携带物品」，
   携带提醒接口里没有字段，改成接口真有的冲突与过期标记（详见 m-hearings.js 注释）。 */
body.mobile .mh-note {
  display: inline-block; margin-top: 9px; padding: 5px 9px; border-radius: var(--m-r-chip);
  font-size: var(--m-fs-micro); line-height: 1.5; font-weight: 500;
}
body.mobile .mh-note.info { background: var(--m-tint); color: var(--m-tint-tx); }
body.mobile .mh-note.warn { background: var(--m-warn-bg); color: #B4690E; }
body.mobile .mh-note.danger { background: var(--m-danger-bg); color: var(--m-danger); }

/* ------------------------------ 底部双按钮 ------------------------------ */
body.mobile .mh-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--m-card); border-top: 1px solid var(--m-line);
  padding: 10px var(--m-gutter-lg) calc(10px + var(--m-safe-bottom));
  display: flex; gap: 12px;
}
body.mobile .mh-btn {
  flex: 1; height: 46px; border-radius: 24px; border: none;
  font-size: 14px; font-weight: 600; font-family: var(--m-ff); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
body.mobile .mh-btn.ghost { background: var(--m-card); color: var(--m-brand); border: 1px solid #C9DDF7; }
body.mobile .mh-btn.solid { background: var(--m-grad-btn); color: #fff; box-shadow: var(--m-sh-btn); }
body.mobile .mh-btn:active { transform: scale(.985); }
body.mobile .mh-page { padding-bottom: calc(76px + var(--m-safe-bottom)); }
