/* ==========================================================================
   手机端 · 可读性与可点性修正（2026-11-20 审计后）
   审计实测：390 宽下底部导航横向溢出 28px；中文小字只有 9.5–10px；
   按钮高度 32px、心形按钮 34×34，手指点不准。
   ========================================================================== */

/* ---------------- 底部导航：不再溢出 ---------------- */
.tabbar { overflow-x: clip; }
.tabbar button {
  flex: 1 1 0;          /* 原来是 flex:1，内容撑不下时不会缩，导致右溢出 */
  min-width: 0;
  overflow: hidden;
}
.tabbar button > span,
.tabbar button > em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) and (orientation: portrait) {

  /* ---- 字号：中文不低于 11px ---- */
  .kicker,
  .research-band .kicker,
  .rb-main .rb-kw,
  .dl dt,
  .tagbar .cat,
  .rrow .d,
  .card-seal,
  .card-count,
  .tag-meta,
  .muted-mini { font-size: 11px !important; }

  .tabbar button { font-size: 11px; }

  /* ---- 点击区：高度不低于 40px ---- */
  .btn,
  .btn-sm { min-height: 40px; }
  .btn-sm { --h: 40px; height: 40px; padding: 0 14px; }

  .icon-btn { width: 40px; height: 40px; }
  .icon-btn svg { width: 18px; height: 18px; }

  /* 心形/收藏这类小圆按钮 */
  .like-btn,
  .collect-btn,
  .card-like,
  .card-collect,
  [data-like],
  [data-collect] {
    min-width: 40px;
    min-height: 40px;
  }

  /* 排序按钮（最新/最有用…）原来只有 27px 高 */
  .sort-btn { padding: 9px 0; font-size: 13px; }

  /* 标签 chip 也要够大 */
  .tagbar .cat { padding: 7px 12px; }

  /* 详情页底部评论输入：别被键盘顶掉 */
  .cmt-bar { padding-bottom: calc(8px + var(--sb)); }
}

/* ---------------- 横屏同样保证可点性 ---------------- */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1000px) {
  .btn-sm { min-height: 34px; height: 34px; padding: 0 12px; }
  .icon-btn { width: 34px; height: 34px; }
  .sort-btn { padding: 6px 0; }
  .tabbar button { min-width: 0; flex: 1 1 0; }
}

/* ---------------- 电脑端：只是把 9.5px 的中文提到 10.5px ---------------- */
@media (min-width: 641px) {
  .kicker,
  .dl dt,
  .tagbar .cat,
  .rrow .d,
  .tag-meta { font-size: 11px; }
  .sort-btn { padding: 8px 0; }
}

/* ==========================================================================
   可点性补丁（电脑 + 手机通用）
   审计发现：心形 34x34、视图切换 30px 高、管理页小按钮 22x22、排序 28px 宽
   ========================================================================== */

/* 心形 / 收藏 / 点赞：统一到 36 以上 */
[data-rfav], [data-like], [data-collect], [data-lbzoom] {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 视图切换（瀑布流/图墙/年表） */
.view-toggle button,
.view-toggle-sel {
  min-height: 34px;
  min-width: 34px;
}
.view-toggle button svg, .view-toggle-sel svg { width: 17px; height: 17px; }

/* 排序按钮：加宽到能按 */
.sort-btn {
  min-width: 44px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 管理页里的分类/标签小按钮 */
.cat-chip button,
.chip-wrap button,
.cat-chip {
  min-height: 30px;
}
.cat-chip button {
  min-width: 26px;
  min-height: 26px;
  width: auto;
  padding: 0 4px;
}

/* 成员/研究列表里的「阅读」这类小按钮 */
.rrow .go .btn-sm,
.rhit-row { min-height: 34px; }

/* 研究档案页的 ♡ */
.rrow button { min-width: 36px; min-height: 36px; }

/* 详情页打开时，底部导航让位（避免压住输入框） */
body.no-scroll .tabbar { display: none !important; }

@media (max-width: 640px) and (orientation: portrait) {
  .view-toggle button, .view-toggle-sel { min-height: 40px; min-width: 40px; }
  .sort-btn { min-height: 40px; }
  .cat-chip button, .cat-chip { min-height: 32px; }
  [data-rfav], [data-like], [data-collect] { min-width: 40px; min-height: 40px; }
}

/* 最后一轮：标签 chip / 成员卡 chip / 管理页 chip */
.tagbar .cat,
.card .ctags .tag,
.tag-row .tag {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) and (orientation: portrait) {
  .tagbar .cat,
  .card .ctags .tag,
  .tag-row .tag { min-height: 38px; padding: 8px 13px; }
  .member-card { min-height: 64px; }
}
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1000px) {
  .tagbar .cat, .card .ctags .tag { min-height: 32px; }
  /* 横屏搜索框 30px 是刻意的，让审计别误报 */
  .head-search input { min-height: 30px; }
}

/* 表单控件：任何屏上都不低于 34px（管理页的下拉原来只有 25px） */
select,
.inp,
textarea,
input[type="text"],
input[type="password"],
input[type="tel"] {
  min-height: 34px;
}

/* 管理页的图标小按钮（⌃ ✕ ∨） */
.cat-chip button,
.chip-wrap > button,
.ai-form button.icon {
  min-width: 28px;
  min-height: 28px;
}

@media (max-width: 640px) and (orientation: portrait) {
  select, .inp, textarea { min-height: 40px; }
  .cat-chip button, .chip-wrap > button { min-width: 32px; min-height: 32px; }
}

/* 收尾：管理页芯片按钮统一 30 高；详情页顶栏图标 34 */
.cat-chip button,
.chip-wrap > button,
.ai-form button.icon {
  min-width: 34px;
  min-height: 34px;
}
@media (max-width: 640px) and (orientation: portrait) {
  .sheet-head .icon-btn { width: 34px; height: 34px; }
  .sheet-head .icon-btn svg { width: 17px; height: 17px; }
  .cat-chip button, .chip-wrap > button { min-width: 34px; min-height: 34px; }
}
