/* =========================================================
   mobile-fix.css · 全局移动端适配基线
   引入顺序：必须放最后（tokens → base → components → tabbar → pages/*.css → mobile-fix.css）
   适用范围：hub 三页（index / detail / monitor）+ 100u / 50u / growth 三面板
   断点：768px，与 tabbar.css 保持一致
   依据：2026-08-31 全站 390×844 DOM 实测审计（横向溢出 / 热区 / 字号）
   ========================================================= */
@media (max-width:768px){

  /* ——— 1. 桌面专属控件隐藏（移动端无意义，且易造成 32px 小热区） ——— */
  #resetLayout,
  .win-foot,
  .win-resize,
  .win .dots,
  .desk-hint{display:none!important}

  /* ——— 2. 点击热区（iOS HIG：主操作 ≥44px，紧凑控件 ≥36px） ——— */
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  select,
  a.btn,
  .btn,
  .icon-btn,
  .atab,
  .back-btn,
  .sidebar a.nav-item,
  [role="button"]{
    min-height:44px;
  }
  /* 紧凑行内控件（分段选择 / 日历导航 / 小标签） */
  .heat-tabs button,
  .seg button,
  .cal-nav button,
  .dip-exec-btn,
  .export-btn,
  .tb-nav a,
  .pill,
  .badge{
    min-height:40px;
    padding:6px 14px;
  }
  /* 表格内按钮：不强制 44（会让行高爆炸），但至少 36 */
  table button,
  .tbl button,
  .dd-table button,
  .edit-btn,
  .del-btn{min-height:36px}

  /* ——— 3. 表单控件 iOS 化 ——— */
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea{
    font-size:16px;               /* 关键：≥16px 才不会触发 iOS 聚焦自动放大整页 */
    min-height:44px;
    padding:10px 12px;
    box-sizing:border-box;
    border-radius:10px;
  }
  select{
    -webkit-appearance:none;
    appearance:none;
    padding-right:34px;
  }
  /* A2HS 关闭按钮放大到 36px */
  .a2hs-x{width:36px;height:36px;top:8px;right:8px}

  /* ——— 4. 容器横向可滚（内容不再被 overflow:hidden 裁掉） ——— */
  .win-body,
  .index-card{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  /* ——— 5. 字号下限 11px（只提升实测 <11px 的选择器，不误伤已有的更大字号） ——— */
  /* hub 通用 */
  .win-title{font-size:12px}
  .win-tag,
  .tbl th{font-size:11px}
  /* index */
  .tc-stat .k,
  .tc-idx-name,
  .idx-phase,
  .strat-badge,
  .strat-nums .sn .k,
  .strat-spark .sk-tag,
  .spx-dist-sub,
  .spx-leader-title,
  .spx-dash-meta .badge,
  .spx-heat-legend span,
  .spx-card-label,
  .spx-card-sub,
  .spx-card-pill,
  .spx-card-delta,
  .spx-report-date,
  .spx-dim-sign,
  .spx-action-desc,
  .spx-dash-foot,
  .spx-dist-k,
  .spx-dist-v,
  .spx-heat-cursor .tip,
  .dim,
  .heat-tabs button{font-size:11px}
  .bar-label{font-size:11px}
  /* 内联 style 写的小字号只能用 !important 覆盖 */
  [style*="font-size:8px"],
  [style*="font-size:8.5px"],
  [style*="font-size:9px"],
  [style*="font-size:9.5px"],
  [style*="font-size:10px"],
  [style*="font-size:10.5px"]{font-size:11px!important}
  /* 16px 圆形标的徽章：字号太小，放大到 18px 圆 + 10px 字 */
  .base-sym{width:18px;height:18px;font-size:10px}
  /* detail */
  .card-title .en,
  .kchart-note,
  .metric .k,
  .metric .s,
  .info .k,
  .pos-item .k,
  .dd-table th,
  .yr-cell .y,
  .foot{font-size:11px}
  /* monitor */
  .clock-cell .city,
  .clock-cell .st{font-size:11px}
  /* 三面板 */
  .sidebar a.nav-item,
  .mkt-badge,
  .alert-item .a-sub,
  .pnl-bar-val,
  .dip-pct,
  .dip-done,
  .cal-day-check,
  .alloc-fill{font-size:11px}
}
