/* 全局 CSS 变量：想换主题色改这里，别到处写死颜色 */
:root {
  --color-primary: #1a3d96;
  --color-primary-soft: rgba(26, 61, 150, 0.12);
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-border: rgba(0, 0, 0, 0.06);

  --header-height: 48px;
  --tabbar-height: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'Helvetica Neue',
    'PingFang SC',
    'Hiragino Sans GB',
    'Microsoft YaHei',
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 干掉 iOS 点按高亮，要 App 的手感 */
  -webkit-tap-highlight-color: transparent;
}
/*
 * App 式布局骨架：顶栏 / 内容区 / 底栏三段。
 * 内容区自己滚，顶栏底栏不参与滚动，等效固定。
 * 移动端 540px 内满宽；PC 上加宽容器居中。
 * base.css 由 index.html 单独 link 引入（file:// 直开不支持 @import 相对解析）
 */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 540px;
  margin: 0 auto;
  background: var(--color-bg);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.1);
}

/* ===== PC 端：整壳 zoom 2 倍，550 布局宽放大成 1100 视觉宽居中，全局滚动 ===== */
@media (min-width: 541px) {
  html,
  body {
    height: auto;
    background: #fff;
  }

  #app {
    max-width: 550px;
    /* 高度随内容：压掉基础段的 100dvh 满屏高度，表格后不留大片空白画布 */
    height: auto;
    zoom: 2;
    background: #fff;
    /* 压掉基础段的灰色投影，白底设计不要阴影 */
    box-shadow: none;
  }

  /* 滚动条归全局：内容不再内部滚 */
  ::-webkit-scrollbar {
    width: 6px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 540px) {
  #app {
    box-shadow: none;
  }
}
/*
 * 全局组件样式（无 scoped，靠类名前缀分区防冲突）：
 *   ball-*   球（共用）
 *   banner-* 首页 banner 轮播
 *   if-*     首页开奖信息卡
 *   hcd-*    首页倒计时（合并卡右栏）
 *   hb-*     首页开奖球卡（合并卡左栏）
 *   hl-*     历史记录列表（首页/历史页共用：PC 表格 + 移动卡片 + 加载更多）
 *   gb-*     历史页开奖球卡（独立卡）
 *   gcd-*    历史页倒计时（独立卡）
 *   app-*    顶栏/子导航/底栏等骨架（原 App.vue）
 * PC 媒体查询统一在文件后半段，zoom 内 1px≈视觉 2px。
 */

/* ===================== 球（共用） ===================== */
.ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.ball {
  position: relative;
}

.ball-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ball-num {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: #000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 方框彩球风格：square 组通过切换右上角风格按钮启用 */
.ball-square {
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.ball-square .ball-img {
  display: none;
}

.ball-square .ball-num {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.ball-square.ball-color-1 {
  background: #3478d4;
}

.ball-square.ball-color-2 {
  background: #df3b3b;
}

.ball-square.ball-color-3 {
  background: #2e9d59;
}

/* 正在开奖但号码未显示时：隐藏球色，只保留中性问号占位 */
.ball.ball-pending {
  background: #eef1f5;
  box-shadow: none;
}

.ball.ball-pending .ball-img {
  visibility: hidden;
}

.ball.ball-pending .ball-num {
  color: #8b95a5;
  text-shadow: none;
}

.ball-zodiac {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.2;
  /* 占位高度：? 状态生肖为空也不塌陷，开出数字后高度不跳动 */
  min-height: 1.2em;
}

/* ===================== banner 轮播 ===================== */
.banner-swiper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

/* 高度统一：固定 160px，图片 contain 完整显示，空当用黑底填 */
.banner-item {
  position: relative;
  flex: 0 0 100%;
  height: 160px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.banner-title {
  position: relative;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease;
}

.dot.active {
  width: 16px;
  background: #fff;
}

/* ===================== 首页开奖信息卡 ===================== */
.if-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.if-badge {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}

.if-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.if-row-issue {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.if-label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.if-issue {
  font-size: 15px;
  font-weight: 700;
}

.if-time {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ===================== 首页倒计时（合并卡右栏） ===================== */
.hcd-card {
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.hcd-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.hcd-title .hcd-label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.hcd-title .hcd-deadline {
  font-size: 15px;
  font-weight: 600;
  color: #dc2626;
}

.hcd-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hcd-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 8px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.hcd-colon {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

/* ===================== 首页开奖球卡（合并卡左栏） ===================== */
.hb-card {
  padding: 14px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.hb-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-left: 4px;
}

.hb-hl {
  color: #dc2626;
}

.hb-balls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hb-plus {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin: 0 2px;
}

/* ===================== 历史记录（PC 表格 + 移动卡片 + 加载更多，共用） ===================== */
/* 移动端卡片 */
.hl-card {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.hl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.hl-issue-txt {
  font-size: 15px;
  font-weight: 600;
}

.hl-rowtime {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.hl-rowballs {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.hl-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.hl-balls {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 列表中的七个号码球横向撑满剩余空间 */
.hl-rowballs .hl-balls {
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  gap: 0;
}

.hl-plus {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin: 0 1px;
}

/* PC 表格（组件只在 PC 渲染，样式直接全局写） */
.hl-table-wrap {
  border: 0.5px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
}

.hl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px; /* ×2 = 视觉 16px */
}

.hl-table th {
  padding: 5px 0;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.hl-table td {
  padding: 4px 0;
  text-align: center;
  border-top: 0.5px solid var(--color-border);
}

/* 斑马纹 + 悬停主色淡底 */
.hl-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.hl-table tbody tr:hover {
  background: rgba(26, 61, 150, 0.05);
}

/* 行入场：翻页时逐行错落淡入 */
@keyframes hl-row-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hl-table tbody tr {
  animation: hl-row-in 0.25s ease both;
}

.hl-table tbody tr:nth-child(2) {
  animation-delay: 0.04s;
}

.hl-table tbody tr:nth-child(3) {
  animation-delay: 0.08s;
}

.hl-table tbody tr:nth-child(4) {
  animation-delay: 0.12s;
}

.hl-issue {
  font-weight: 600;
}

/* 只有期号数字标红，"第/期"保持黑 */
.hl-num {
  color: #dc2626;
}

.hl-time {
  color: var(--color-text-secondary);
}

/* 表格里球收紧凑：隐藏球下的生肖文字 */
.hl-table .ball-zodiac {
  display: none;
}

.hl-table .hl-plus {
  font-size: 7px;
}

.hl-table td:nth-child(3) {
  width: 46%;
}

.hl-table td:nth-child(3) .hl-balls {
  width: 100%;
  justify-content: space-evenly;
  gap: 6px;
}

/* 回放按钮：红色渐变底白字，悬停微提亮 */
.hl-replay {
  padding: 2px 10px;
  border: none;
  border-radius: 0;
  background: linear-gradient(180deg, #d21e1e, #b02b21);
  color: #fff;
  font-size: 8px;
  line-height: 1.5;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.hl-replay:hover {
  filter: brightness(1.1);
}

/* 加载/失败/空数据三态提示 */
.hl-status {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
}

/* 列表底部“加载更多” */
.hl-load-more-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0 6px;
}

.hl-load-more {
  min-width: 160px;
  padding: 10px 28px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(26, 61, 150, 0.22);
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hl-load-more:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 16px rgba(26, 61, 150, 0.3);
  transform: translateY(-1px);
}

.hl-load-more:active {
  filter: brightness(0.92);
  box-shadow: 0 2px 6px rgba(26, 61, 150, 0.2);
  transform: translateY(1px);
}

/* ===================== 历史页开奖球卡（独立卡） ===================== */
.gb-card {
  padding: 14px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.gb-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-left: 4px;
}

.gb-hl {
  color: #dc2626;
}

.gb-balls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gb-plus {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin: 0 2px;
}

/* ===================== 历史页倒计时（独立卡） ===================== */
.gcd-card {
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.gcd-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.gcd-title .gcd-label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.gcd-title .gcd-deadline {
  font-size: 15px;
  font-weight: 600;
  color: #dc2626;
}

.gcd-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gcd-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 8px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.gcd-colon {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

/* ===================== 应用骨架（原 App.vue） ===================== */
/* 顶部 logo 栏 */
.app-header {
  flex-shrink: 0;
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: 16px;
  padding-right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
}

.theme-btn {
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.theme-btn:active {
  opacity: 0.7;
}

/* logo 下的子导航：三个按钮占满一行 */
.subnav {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 0 12px 8px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.subnav-btn {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.subnav-btn.active {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

/* 内容区：只有这里滚 */
.app-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* 底部 tab 栏 */
.app-tabbar {
  flex-shrink: 0;
  height: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.tab-icon {
  width: 24px;
  height: 24px;
}

.tab-label {
  font-size: 11px;
  line-height: 1.2;
}

/* 当前页 tab 高亮（a 标签手动加 active 类） */
.tab.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===================== 页面容器 ===================== */
.home {
  padding: 6px 8px;
}

.home-banner {
  margin-bottom: 10px;
}

.home-info {
  margin-bottom: 10px;
}

.home-countdown {
  margin-bottom: 10px;
}

.home-balls {
  margin-bottom: 10px;
}

.history {
  padding: 6px 8px;
}

.block-gap {
  margin-bottom: 10px;
}

/* ============================================================
 * PC 端（min-width: 541px，zoom 内 1px≈视觉 2px，文字上限视觉 16px）
 * ============================================================ */
@media (min-width: 541px) {
  /* ---- 球：生肖小字压半 ---- */
  .ball-zodiac {
    font-size: 6px; /* ×2 = 视觉 12px */
  }

  /* ---- banner：直角 + 标题压半 ---- */
  .banner-swiper {
    border-radius: 0;
  }

  .banner-title {
    font-size: 8px; /* ×2 = 视觉 16px */
  }

  /* ---- 信息卡：单行横向铺开压高度，衔接合并卡去底边框 ---- */
  .if-card {
    padding: 4px 8px;
    gap: 8px;
    border-radius: 0;
    border-bottom: none;
  }

  .if-main {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
  }

  .if-row-issue {
    gap: 4px;
  }

  /* badge 从纯文字升级成主色软底小标签块 */
  .if-badge {
    font-size: 8px;
    font-weight: 600;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 1px 6px;
  }

  .if-issue {
    font-size: 8px;
  }

  .if-label {
    font-size: 6.5px;
  }

  .if-time {
    font-size: 6.5px;
  }

  /* ---- 首页倒计时：融进合并卡右栏（去壳 + 字号压半） ---- */
  .hcd-card {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .hcd-title {
    /* 竖排省宽度：label 小字一行，截止时间一行 */
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-bottom: 5px;
  }

  .hcd-title .hcd-label {
    font-size: 6.5px; /* ×2 = 视觉 13px */
    white-space: nowrap;
  }

  .hcd-title .hcd-deadline {
    font-size: 8px; /* ×2 = 视觉 16px */
  }

  .hcd-timer {
    gap: 3px;
  }

  .hcd-box {
    min-width: 20px;
    padding: 4px 0;
    border-radius: 0;
    font-size: 8px; /* ×2 = 视觉 16px */
  }

  .hcd-colon {
    font-size: 6.5px;
  }

  /* ---- 首页球卡：融进合并卡左栏（去壳 + 标题缩窄） ---- */
  .hb-card {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .hb-title {
    font-size: 8px; /* ×2 = 视觉 16px，文字上限 */
    margin-bottom: 5px;
    padding-left: 2px;
    white-space: nowrap;
  }

  .hb-balls {
    gap: 4px;
  }

  .hb-plus {
    font-size: 10px;
    margin: 0 1px;
  }

  /* ---- 历史卡片（移动卡片在 PC 显示时压字号） ---- */
  .hl-card {
    padding: 6px 8px;
    margin-bottom: 5px;
    border-radius: 0;
  }

  .hl-issue-txt {
    font-size: 8px;
  }

  .hl-rowtime {
    font-size: 6.5px;
    margin-bottom: 4px;
  }

  .hl-label {
    font-size: 6.5px;
  }

  .hl-plus {
    font-size: 7px;
  }

  .hl-load-more-wrap {
    padding: 6px 0 2px;
  }

  .hl-load-more {
    min-width: 90px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 8px;
    box-shadow: 0 2px 6px rgba(26, 61, 150, 0.22);
  }

  /* ---- 历史页球卡：字号压半 + 直角 ---- */
  .gb-card {
    padding: 6px 8px;
    border-radius: 0;
  }

  .gb-title {
    font-size: 8px; /* ×2 = 视觉 16px */
    margin-bottom: 4px;
    padding-left: 2px;
  }

  .gb-plus {
    font-size: 10px;
  }

  /* ---- 历史页倒计时：字号压半 + 直角 ---- */
  .gcd-card {
    padding: 6px 8px;
    border-radius: 0;
  }

  .gcd-title {
    gap: 4px;
    margin-bottom: 4px;
  }

  .gcd-title .gcd-label {
    font-size: 6.5px; /* ×2 = 视觉 13px */
  }

  .gcd-title .gcd-deadline {
    font-size: 8px; /* ×2 = 视觉 16px */
  }

  .gcd-timer {
    gap: 3px;
  }

  .gcd-box {
    padding: 4px 0;
    border-radius: 0;
    font-size: 8px; /* ×2 = 视觉 16px */
  }

  .gcd-colon {
    font-size: 7px;
  }

  /* ---- 应用骨架：导航挪到 logo 下面，横向样式 ---- */
  .app-header {
    order: 1;
  }

  /* tabbar 上移：彩色实底色块 */
  .app-tabbar {
    order: 2;
    height: auto;
    padding: 0 0 0 8px;
    gap: 0;
    border-top: none;
    border-bottom: none;
  }

  .tab {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0;
    height: 19px; /* ×2 = 视觉 38px */
    padding: 0 20px;
    color: #fff;
    font-size: 7.5px; /* ×2 = 视觉 15px */
  }

  /* 每个 tab 一个色块 */
  .tab:nth-child(1) {
    background: rgb(217, 0, 17);
  }

  .tab:nth-child(2) {
    background: rgb(0, 160, 234);
  }

  /* 选中项文字变黄 */
  .tab.active .tab-label {
    color: #fff100;
  }

  /* PC 不显示图标，纯文字导航 */
  .tab-icon {
    display: none;
  }

  .tab-label {
    font-size: 7.5px;
  }

  /* zoom 2 倍下按钮显太大，字号减半视觉 16px；直角跟全站统一 */
  .theme-btn {
    font-size: 8px;
    padding: 5px 10px;
    border-radius: 0;
  }

  .theme-btn:hover {
    opacity: 0.85;
  }

  /* 子导航：内导航胶囊。上下 6px（视觉 12px）轻间隔，左右 8px 与内容区对齐 */
  .subnav {
    order: 3;
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 6px 8px;
    padding: 0;
    gap: 0;
    background: #f0f0f0;
    border-bottom: none;
    border-radius: 17px; /* ×2 = 视觉 34px */
  }

  .subnav-btn {
    flex: 0 0 auto;
    height: 18px; /* ×2 = 视觉 36px */
    padding: 0 6px; /* ×2 = 视觉 12px */
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 17px;
    background: transparent;
    font-size: 8px; /* ×2 = 视觉 16px */
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  /* 悬停：主色 8% 透明底 */
  .subnav-btn:not(.active):hover {
    background: rgba(26, 61, 150, 0.08);
    color: #1a3d96;
  }

  /* 选中：深蓝底白字 */
  .subnav-btn.active {
    background-color: #1a3d96;
    border-color: transparent;
    color: #fff;
    font-weight: 400;
  }

  /* PC 整页滚动：内容区不再内部滚 */
  .app-content {
    order: 4;
    overflow: visible;
    flex: none;
  }

  /* ---- 首页：上下不留白左右 8px，合并卡一行 ---- */
  .home {
    padding: 0 8px;
  }

  .home-info {
    margin-bottom: 0;
  }

  .home-result {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0;
  }

  /* 球区占左：弹性撑满剩余宽度，min-width 0 防 min-content 撑爆换行 */
  .home-balls {
    order: 1;
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }

  /* 倒计时占右：不压缩，竖分隔线和左半区隔开 */
  .home-countdown {
    order: 2;
    flex-shrink: 0;
    margin-bottom: 0;
    border-left: 1px solid var(--color-border);
    padding-left: 12px;
  }
}
