/* 宽屏适配（电脑端）
   ------------------------------------------------------------------
   老系统的页面是按 390×844 的手机模型写的：`.phone` 定宽定高、内部滚动。
   在电脑上就变成"中间一个小手机"，字小、两侧空。

   这层样式做三件事，不改任何 HTML 结构：
     1. 拆掉 .phone 的固定尺寸，改成铺满页面宽度
     2. 把 .scroll 里的卡片从"竖向堆叠"改成两列网格（头部通栏）
     3. 底部 tabbar 从 fixed 改成页面底部的普通条（电脑上本来就该是页脚）

   只在 ≥900px 生效，手机和平板竖屏完全不受影响。
   ------------------------------------------------------------------ */

@media (min-width: 900px) {
  html { background: #EDE7DC; }
  body { background: transparent !important; padding: 0 !important; }

  /* 1. 拆掉手机壳 */
  .phone {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    min-height: 100vh;
    margin: 0 auto;
    border-radius: 0;
    overflow: visible !important;
    display: block !important;
  }

  /* 2. 内容区改两列 */
  .scroll {
    overflow: visible !important;
    max-height: none !important;
    padding: 0 28px 28px !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
  }

  /* 头部通栏，红色龙纹铺满 */
  .head {
    grid-column: 1 / -1;
    margin: 0 -28px !important;
    border-radius: 0 !important;
    padding-top: 28px !important;
  }

  /* 卡片本身在手机上带左右外边距，网格里由 gap 负责，去掉 */
  .scroll > .card,
  .scroll > .vip2,
  .scroll > .tb {
    margin: 0 !important;
  }

  /* 推广中心那块数据多，给它整行；账户四格也整行更好读 */
  .scroll > .vip2 { grid-column: 1 / -1; }

  /* 3. 底部 tabbar 落到页脚 */
  .app-tabbar {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: none !important;
    border-top: 1px solid #EDE3D4;
  }
}

/* 更宽的屏幕上，列表页也可以三列 */
@media (min-width: 1500px) {
  .scroll { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- 老系统通用容器（index / records / consume / talents / intro …） ----------
   这些页面各自内联了 `.page{ max-width:480~640px }`，在电脑上就是中间一条。
   放宽到 1180：内容不再挤在中间，卡片本身由各页自己的布局决定怎么排。
   ★ 不包含排盘页/报告页 —— 那两页的列宽是 1:1 基线（38 条断言锁死），
     容器一放宽列宽就变，断言会全红。 */
@media (min-width: 900px) {
  .page {
    /* 不是越宽越好：这些页面内部是按 520 宽排的（九宫格 5 列、黄历条按百分比），
       放到 1180 会把图标拉散、卡片拉成超宽条。880 是"明显变大、但比例还站得住"的位置。 */
    max-width: 880px !important;
    margin: 0 auto;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}
