/* ==========================================================================
   全站统一布局：最大宽度 790px，复用于所有页面（含头部与底部）
   通过 head.html 引入，保证平台模式（不渲染 nav header）下同样生效。
   例外：竞彩足球赛事预测页（views/game/soccer_jczq_predict.html）保持 1280px，
        该页 body 上加 class="page-wide-1280" 即可，无需改动其它页面。
   ========================================================================== */

html {
  background-color: #e8e8e8;
}

/* 页面主体限制在 790px 内并水平居中 */
body {
  max-width: 790px;
  margin: 0 auto;
  position: relative;
}

/* 固定 / 吸顶的头部、底部、筛选栏等同样限制在 790px 内并居中
   left:0;right:0 + margin:0 auto + max-width 是固定元素居中的通用写法 */
header,
footer,
.fixed-header,
.group_1,
.filter-bar,
.page-tabbar,
.bottom-bar {
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
}

/* 例外页：竞彩足球赛事预测保持 1280px 宽度（含头部、底部） */
body.page-wide-1280 {
  max-width: 1280px;
}

body.page-wide-1280 header,
body.page-wide-1280 footer,
body.page-wide-1280 .match-content {
  max-width: 1280px !important;
}

/* 选号页头部彩种信息（竞彩足球 / 北京单场 / 传统足彩）
   插入到导航栏 .block_3 中，占满剩余空间并居中显示。 */
.lottery-title {
  flex: 1 1 0%;
  text-align: center;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  font-family: PingFangSC-Medium, "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 选号 / 赛果等页面主内容容器。
   模板常在 #app(flex column) 内给 .match-content 设置 margin:0 auto，
   作为 flex 子元素时，auto 外边距会覆盖 align-items:stretch，
   使其塌陷为内容宽度(约 840px)而非撑满 790px 容器。
   这里强制撑满容器(不超过 790px)。!important 用于覆盖模板内联样式。 */
.match-content {
  width: 100% !important;
  max-width: 790px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
