/* 竞彩信息汇 · 样式规范入口 -----------------------------------------------
   全站视觉规则集中在 /assets/site.css（对开票根版式），本文件提供：
   1) 规范入口与补充变量；
   2) 供直接引用 css/style.css 时也能获得完整窄屏表现。
   */

@import url("/assets/site.css");

:root {
  --stub-rule: #d9cfbe;
  --ticket-rule: rgba(200, 16, 46, .28);
}

/* 通用图片兜底：任何尺寸下都不撑破容器 */
img,
figure > img {
  max-width: 100%;
  height: auto;
}

/* 正文表格在窄屏允许横向滚动，避免撑破版面 */
.body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

/* ---------- 窄屏：多列一律塌成单列 ---------- */
@media (max-width: 768px) {
  .spread { display: block; }
  .stub {
    position: static;
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px dashed var(--stub-rule);
    padding: 18px 0;
  }
  .main { padding: 18px 0 32px; }
  .dept-grid,
  .field-pair,
  .cross,
  .endband,
  .foot-in {
    display: block;
  }
  .dept-grid { border: 0; background: transparent; }
  .dept {
    border: 1px solid var(--stub-rule);
    margin-bottom: 10px;
  }
  .field-card,
  .foot-in > div { margin-bottom: 20px; }
  .cross a { margin-bottom: 10px; }
  .register-row {
    display: block;
    padding: 12px 0;
  }
  .register-row .iss,
  .register-row .col,
  .register-row .who {
    display: inline-block;
    margin-right: 10px;
  }
  .caliber { display: block; }
  .caliber .num { display: block; margin-bottom: 2px; }
  .byline { flex-wrap: wrap; gap: 8px; }
  .menu-btn { min-height: 44px; }
}
