/* ============================================================
   小微AIGC科学馆 · 运营管理平台 H5 补充层 v2.0
   叠在 ../theme.css 之上，只补 theme.css 没有的移动端组件
   壳层（.mobile-shell / .app-header / .bottom-nav / main#main-content）
   一律沿用 theme.css，本文件不重复定义，保证与 mobile/ ticket/ 同构
   ============================================================ */

/* ---------- 主区：页面自己控制内边距（hero 需要通栏） ---------- */
.mobile-shell main#main-content { padding: 0; }

/* ---------- 顶部补充 ---------- */
.app-header .back {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 17px;
  flex: none; color: var(--color-text-2);
}
.app-header .back:active { background: var(--color-primary-soft); }
.app-header .h-title {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-header .h-action {
  font-size: 13px; color: var(--color-primary-active);
  font-weight: 600; padding: 5px 9px; border-radius: 8px;
}
.app-header .h-action:active { background: var(--color-primary-soft); }

/* ---------- 底栏补充 ---------- */
.bottom-nav a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.bottom-nav a .bn-ico { filter: grayscale(.45); opacity: .8; }
.bottom-nav a.active .bn-ico { filter: none; opacity: 1; }

/* ---------- 卡片：移动端紧凑版 ---------- */
.mobile-shell .card {
  margin: 0 16px; border-radius: var(--radius-lg); overflow: hidden;
}
.mobile-shell .card + .card { margin-top: 12px; }
.mobile-shell .card-head {
  padding: 13px 14px 9px; border-bottom: 0;
}
.mobile-shell .card-head b { font-size: 14.5px; font-weight: 600; }
.mobile-shell .card-head .more { font-size: 12px; color: var(--color-muted-text); }
.mobile-shell .card-body { padding: 0 14px 14px; }

/* ---------- 区块标题 ---------- */
.blk {
  margin: 18px 0 9px; display: flex;
  align-items: baseline; justify-content: space-between;
  padding: 0 16px;
}
.blk b { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.blk .more { font-size: 12.5px; color: var(--color-muted-text); }

/* ---------- 列表行 ---------- */
.li {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-bottom: 1px solid var(--color-border);
}
.li:last-child { border-bottom: 0; }
.li .ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px;
  flex: none; background: var(--color-primary-softer);
}
.li .tx { flex: 1; min-width: 0; }
.li .tx b {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px;
}
.li .tx span {
  font-size: 12px; color: var(--color-muted-text);
  display: block; line-height: 1.5;
}
.li .rt {
  font-size: 12.5px; color: var(--color-muted-text);
  flex: none; text-align: right;
}

/* ---------- 数据条 ---------- */
.stats {
  display: flex; background: #fff;
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  overflow: hidden;
}
.stats div { flex: 1; padding: 12px 4px; text-align: center; position: relative; }
.stats div + div:before {
  content: ""; position: absolute; left: 0; top: 22%;
  height: 56%; width: 1px; background: var(--color-border);
}
.stats b {
  display: block; font-size: 18px; font-weight: 700;
  color: var(--color-brand-deep); line-height: 1.25;
}
.stats span { font-size: 10.5px; color: var(--color-muted-text); }

/* ---------- 主按钮：移动端通栏 CTA（theme 的 .btn 是描边风，此处按移动语义重设） ---------- */
.mobile-shell .btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #fff; border: 0;
  box-shadow: 0 6px 16px rgba(64, 149, 229, .28);
  width: 100%; cursor: pointer; font-family: inherit;
}
.mobile-shell .btn:active { background: var(--color-primary-active); }
.mobile-shell .btn-ghost {
  background: #fff; color: var(--color-primary-active);
  border: 1px solid var(--color-primary-line); box-shadow: none;
}
.mobile-shell .btn-ghost:hover { background: var(--color-primary-softer); }
.mobile-shell .btn-sm {
  height: 36px; font-size: 13.5px; border-radius: 10px;
  width: auto; padding: 0 16px; box-shadow: none;
}

/* ---------- 空态 ---------- */
.empty { padding: 40px 20px; text-align: center; color: var(--color-muted-text); font-size: 13px; }
.empty .e { font-size: 30px; display: block; margin-bottom: 8px; opacity: .6; }

/* ---------- 标签语义别名（兼容旧写法） ---------- */
.tag.ok { background: var(--color-success-soft); color: var(--color-success); border-color: #bfe6d2; }
.tag.warn { background: var(--color-warning-soft); color: #b5730a; border-color: #f5ddae; }
.tag.danger { background: var(--color-danger-soft); color: var(--color-danger); border-color: #f3c0c0; }
.tag.ai { background: var(--color-ai-soft); color: var(--color-ai); border-color: #d9c8fb; }
.tag.gray { background: var(--color-background); color: var(--color-muted-text); }

/* ---------- 深色区块内标题：跟随区块文字色 ----------
   theme.css 的 h1~h4 统一设了 color:var(--color-text)（深色），
   在 .hd / .hero 这类深蓝渐变头图里会变成深字压深底，几乎不可读。
   这里统一改为继承父级 color，深色头图内的标题自动变白。 */
.hd h1, .hd h2, .hd h3, .hd h4,
.hero h1, .hero h2, .hero h3, .hero h4 { color: inherit; }
