/* ===== 手机端响应式总修 v2（叠加在 mobile_fix2.css 之后生效） =====
   针对实拍发现的问题：
   ① 统计卡装饰圆盖住数字 ② 卡片长标题换行难看 ③ 工具栏「50 条/页」孤立成行
   ④ 赛事表列宽不合理（名称太窄、右侧被裁） ⑤ 次级文字对比度偏低
*/

/* ---------- ① 装饰层永远在文字下面 ---------- */
.card { position: relative !important; overflow: hidden !important; }
.card .n, .card .v { position: relative !important; z-index: 2 !important; }
.card::after, .card::before, .card .deco {
  z-index: 0 !important;
  pointer-events: none !important;
}
.card > * { position: relative; z-index: 1; }

/* ---------- ② 卡片文字：单行不换行、数字等宽对齐 ---------- */
.card .n {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.card .v { font-variant-numeric: tabular-nums !important; }

/* ---------- ③ 工具栏：搜索整行、按钮两列、下拉两列、计数单独右对齐 ---------- */
#app .bar select,
#app .bar .in {
  flex: 1 1 calc(50% - 4px) !important;
  min-width: 0 !important;
}
#app .bar .hz-count,
#app .bar .cnt {
  flex: 1 1 100% !important;
  text-align: right !important;
  font-size: 12.5px !important;
  margin-top: 2px !important;
}

/* ---------- ④ 表格：手机端加大可读列宽，弱化空白列 ---------- */
@media (max-width: 680px) {
  /* 赛事库：名称/主题列给足，日期收窄，场地可换行 */
  #ev-wrap .tw-scroll > table { min-width: 720px !important; }
  #ev-wrap table th:nth-child(1), #ev-wrap table td:nth-child(1) { width: 44px !important; }
  #ev-wrap table th:nth-child(2), #ev-wrap table td:nth-child(2) { min-width: 200px !important; }
  #ev-wrap table th:nth-child(3), #ev-wrap table td:nth-child(3) { width: 92px !important; white-space: nowrap !important; }
  #ev-wrap table th:nth-child(4), #ev-wrap table td:nth-child(4) { min-width: 130px !important; }
  #ev-wrap table td:nth-child(4) {
    display: table-cell;
    -webkit-line-clamp: 2;
    white-space: normal !important;
    line-height: 1.35;
  }

  /* 球友/赞助商库：姓名列别太宽，手机/微信留可读宽度 */
  #p-wrap .tw-scroll > table,
  #s-wrap .tw-scroll > table { min-width: 620px !important; }
  #tb td, #tb th { padding: 9px 8px !important; }

  /* 次级文字再深一点，粉底上不发虚 */
  :root, body { --dim: #6F6579; }
  .panel td, .panel th { color: #2A2036; }
}

/* ---------- ⑤ 财务台账入口按钮：文字允许换行、不挤成一条 ---------- */
.fin-entry, .hz-fin-entry, .fin-links a, .fin-links .btn {
  white-space: normal !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

/* ---------- ⑥ 顶部右侧按钮：手机端收紧但文字完整 ---------- */
@media (max-width: 680px) {
  .top .btn, .top button {
    font-size: 11.5px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
  }
  .top { gap: 6px !important; }
}

/* ---------- ⑦ 标签栏：可横滑、边缘渐隐提示 ---------- */
.tabs {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 16px), transparent 100%);
}
.tabs::-webkit-scrollbar { display: none; }

/* ---------- ⑧ 面板与吸顶栏之间留呼吸 ---------- */
@media (max-width: 680px) {
  .panel { margin-top: 6px !important; }
  .cards { margin-top: 8px !important; }
}
