/* ==========================================================================
 * 04 案件（主页面：大标题 + 筛选胶囊 + 案件卡列表 + 胶囊 TabBar + 悬浮球）
 * --------------------------------------------------------------------------
 * 与 01/02/03 的差别：头部**不是**蓝渐变头，而是底色上的大标题 + 两个圆钮
 * （搜索 / 新建）。其余沿用交付包骨架：底色 #F1F4F7、白卡负 spread 阴影、
 * 胶囊 TabBar、悬浮球（都来自 mobile-kit.css，不在这里重定义）。
 * 字号、圆角、间距取规范；卡片内部的行高与色值对照 04-案件.png。
 * ========================================================================== */

/* ------------------------------ 大标题行 ------------------------------ */
body.mobile .mc-head {
  display: flex; align-items: center; gap: 10px;
  padding: calc(max(var(--m-status-h, 62px), var(--m-safe-top)) + 6px) var(--m-gutter-lg) 0;
}
body.mobile .mc-head h1 {
  margin: 0; flex: 1; min-width: 0;
  font-size: 26.5px; font-weight: 700; letter-spacing: -.02em; color: var(--m-t1);
  line-height: 1.2;
}
body.mobile .mc-round {
  width: 34px; height: 34px; flex: none; padding: 0; border: none;
  border-radius: 50%; background: var(--m-card); color: var(--m-t1);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--m-sh-card);
  /* 圆钮（40）比标题行（32）高，不抵消会把标题行撑高 8px，
     首行筛选胶囊随之下移。设计稿实测：标题字形 73~92、蓝钮顶 65、胶囊顶 114；
     加负外边距后实现为 72~96 / 64 / 114，与稿子对齐。
     （07 通讯录同一结构、同一处补偿，两屏保持一致。） */
  margin-top: -4px; margin-bottom: -4px;
}
body.mobile .mc-round:active { background: #F1F4F7; }
/* 新建：实心品牌蓝，与搜索区分主次 */
body.mobile .mc-round.add { width: 40px; height: 40px; background: var(--m-grad-btn); color: #fff; box-shadow: var(--m-sh-btn); }

/* 搜索展开后才出现的输入框（不改变静止状态下的版面） */
body.mobile .mc-search { padding: 10px var(--m-gutter-lg) 0; }
body.mobile .mc-search input {
  width: 100%; height: 38px; padding: 0 14px; border-radius: 19px;
  border: none; outline: none; background: var(--m-card); color: var(--m-t1);
  font-size: 12.5px; font-family: var(--m-ff); box-shadow: var(--m-sh-card);
}
body.mobile .mc-search input::placeholder { color: var(--m-t4); }

/* ------------------------------ 筛选胶囊 ------------------------------ */
body.mobile .mc-tabs {
  display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none;
  padding: 14px var(--m-gutter-lg) 2px;
}
body.mobile .mc-tabs::-webkit-scrollbar { display: none; }
body.mobile .mc-tab {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: none;
  background: #E9EEF4; color: var(--m-t2);
  font-size: 12.5px; font-weight: 600; font-family: var(--m-ff);
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  transition: .16s cubic-bezier(.22, 1, .36, 1);
}
body.mobile .mc-tab.on { background: var(--m-brand); color: #fff; box-shadow: var(--m-sh-btn); }
body.mobile .mc-tab:active { transform: scale(.97); }

/* ------------------------------ 案件卡 ------------------------------ */
body.mobile .mc-list {
  padding: 14px var(--m-gutter-lg) 0;
  display: flex; flex-direction: column; gap: 12px;
}
body.mobile .mc-card {
  background: var(--m-card); border-radius: var(--m-r-card);
  box-shadow: var(--m-sh-card); padding: 14px 14px 12px;
  cursor: pointer;
}
body.mobile .mc-card:active { transform: scale(.995); }
body.mobile .mc-top { display: flex; align-items: flex-start; gap: 10px; }
body.mobile .mc-name {
  flex: 1; min-width: 0; margin: 0;
  font-size: 15px; font-weight: 600; line-height: 1.42; color: var(--m-t1);
}
/* 状态片：三档色，取值与桌面台账一致（办理中 / 已结案 / 已归档） */
body.mobile .mc-badge {
  flex: none; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: var(--m-fs-micro); font-weight: 600;
  display: inline-flex; align-items: center;
}
body.mobile .mc-badge.run { background: var(--m-tint); color: var(--m-tint-tx); }
body.mobile .mc-badge.done { background: #E6F8EE; color: var(--m-ok); }
body.mobile .mc-badge.arch { background: #EEF1F5; color: var(--m-t3); }
body.mobile .mc-badge.hold { background: #FFF4E3; color: var(--m-warn); }

body.mobile .mc-sub {
  margin: 7px 0 0; font-size: var(--m-fs-note); color: var(--m-t3); line-height: 1.5;
}
body.mobile .mc-foot {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  /* 期限名长短不一（设计的示意文案很短，真实数据如「羁押必要性审查申请」很长），
     一行放不下就整块换行 —— 绝不截断：被省略掉的正是「逾期多少天」这种
     必须一眼看到的信息。 */
  flex-wrap: wrap; row-gap: 5px;
}
body.mobile .mc-when {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  font-size: 12.5px; color: var(--m-t2);
}
body.mobile .mc-when .mk-ic { color: var(--m-brand); flex: none; }
body.mobile .mc-when.idle .mk-ic { color: var(--m-t4); }
/* 右侧强调：期限紧急度。档位沿用桌面台账（逾期/≤3 天红、≤7 天橙、其余绿） */
body.mobile .mc-due {
  margin-left: auto; flex: none; font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
}
body.mobile .mc-due.red { color: var(--m-danger); }
body.mobile .mc-due.amber { color: var(--m-warn); }
body.mobile .mc-due.green { color: var(--m-ok); }
body.mobile .mc-due.grey { color: var(--m-t3); font-weight: 500; }

body.mobile .mc-empty { padding: 40px 0; }


/* ==========================================================================
 * 案件页头部（终版）
 * --------------------------------------------------------------------------
 * 注意：本文件在 mobile-kit.css **之后**加载，所以这里写的规则才能覆盖
 * 本文件上半部分原有的 `.mc-head{display:flex}` 与 `.mc-head h1{26.5px}`。
 * 之前把这些覆盖写进 mobile-kit.css，被本文件的旧规则反压回去 —— 这就是
 * 「改了两次还是原样、标题依旧很大」的真正原因。
 *
 * 最终规格：标题 20 / 副标题 12 / 搜索 13 / 按钮 13 / 胶囊 12.5，头像 34 居右。
 * ========================================================================== */
body.mobile .mc-head {
  display: block;
  background: linear-gradient(180deg, #1F6BFF 0%, #2F86FF 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 10px 24px rgba(31, 107, 255, .18);
  padding: calc(max(var(--m-status-h, 62px), var(--m-safe-top)) + 10px) 18px 16px;
}
body.mobile .mc-head-top { display: flex; align-items: center; gap: 10px; }
body.mobile .mc-head-txt { flex: 1; min-width: 0; }
body.mobile .mc-head h1 {
  margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25;
  letter-spacing: .2px; color: #fff;
}
body.mobile .mc-sub { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .86); }
body.mobile .mc-ava {
  width: 34px; height: 34px; margin-left: auto; flex: none;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .55);
}
body.mobile .mc-head .mc-search { padding: 12px 0 0; }
body.mobile .mc-head .mc-search input {
  width: 100%; height: 40px; border-radius: 20px; padding: 0 15px;
  border: none; outline: none; background: #fff; box-shadow: none;
  font-size: 13px; font-family: var(--m-ff); color: #1B2740;
}
body.mobile .mc-head .mc-search input::placeholder { color: #9AA7BC; }

body.mobile .mc-acts { display: flex; gap: 10px; padding: 10px 18px 0; }
body.mobile .mc-act {
  flex: 1; height: 40px; border-radius: 12px; border: 1px solid #D9E5F8;
  background: #fff; color: #2C5FA8;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600; font-family: var(--m-ff);
  box-shadow: 0 4px 12px rgba(31, 72, 150, .05);
}
body.mobile .mc-act.primary {
  border: none; color: #fff;
  background: linear-gradient(135deg, #2C7BFF, #59A6FF);
  box-shadow: 0 8px 16px rgba(44, 123, 255, .24);
}
body.mobile .mc-acts:empty { display: none; }
body.mobile .mc-tabs { padding: 12px 18px 2px; }
body.mobile .mc-tab { height: 33px; padding: 0 14px; font-size: 12.5px; }

/* 筛选胶囊均分整行，两端对齐 */
body.mobile .mc-tabs { display: flex; gap: 8px; padding: 12px 16px 2px; }
body.mobile .mc-tab { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 6px; font-size: 12px; white-space: nowrap; }
