/* ============================================================
   PC 布局 pc.css（≥1024px）
   ============================================================ */

/* ---------- 顶部条 ----------
   定位是「辅助信息条」：白底、12px 弱化字色、无胶囊底色，
   只在视觉上开一条细线，让下面那条品牌导航成为唯一主角。 */
.top-bar { background: #fff; border-bottom: 1px solid #f4f5f8; font-size: var(--fs-xs); }
.top-bar .container { display: flex; align-items: center; height: 34px; }
.top-bar .container > div {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 8px;
  margin-left: auto; min-width: 0;
}
.top-bar .site-link { display: flex; align-items: center; }
.top-bar .site-link li { display: flex; align-items: center; color: var(--text-3); }
.top-bar .site-link a { color: var(--text-3); padding: 0 8px; line-height: 22px; border-radius: 6px; }
.top-bar .site-link a:hover { color: var(--brand); }
/* 「手机版」按钮与同排链接同一视觉（原生 button 去掉默认外观）。
   line-height 必须写在 font:inherit 之后 —— font 简写会把行高重置回 normal，
   按钮就会比同排链接矮 3px，改成 flex 居中对齐后与「开奖日历」错开一截。 */
.top-bar .site-link .site-link-btn {
  color: var(--text-3); padding: 0 8px; border-radius: 6px;
  background: none; border: 0; font: inherit; line-height: 22px; cursor: pointer;
}
.top-bar .site-link .site-link-btn:hover { color: var(--brand); }
/* 带图标的入口（开奖日历 / 手机访问）：改成 inline-flex 让 13px 图标与 12px 文字
   垂直居中对齐，不再靠 vertical-align 猜基线；图标与文字间距 4px，
   比 padding 里的 8px 略紧，读起来仍是一个词而不是两个元素。 */
.top-bar .site-link .site-link-ico-item { display: inline-flex; align-items: center; gap: 4px; }
.top-bar .site-link .site-link-ico { width: 13px; height: 13px; flex: none; opacity: .9; }
/* 登录 / 注册是顶部条里唯一的动作入口：比同排链接重一档（深色 + 600）。 */
.top-bar .site-link .user-entry a { color: var(--text); font-weight: 600; }
/* 分隔线：10px 高、比正文更浅，只做分组提示，不做视觉分割。 */
.top-bar .split-line { width: 1px; height: 10px; background: #e8eaef; }
.top-bar .person { display: flex; gap: 12px; color: var(--text-3); }
/* 今日日期 / 星期：与欢迎语之间用细浅色竖线分隔，数字等宽避免刷新时抖动。
   竖线用 12px 的伪元素而不是 border-left —— border 会跟随整行文字高度（19px）显得过高，
   和右侧 .split-line 的 12px 也对不齐。 */
.top-bar .person .today {
  position: relative; padding-left: 12px;
  font-variant-numeric: tabular-nums;
}
.top-bar .person .today::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 12px; background: #eef0f3; transform: translateY(-50%);
}

/* ---------- 「手机版」扫码浮层 ---------- */
.qr-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 900; }
.qr-pop {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 901;
  width: 236px; padding: 24px 20px 16px; background: #fff; text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.qr-pop-body img { display: block; width: 180px; height: 180px; margin: 0 auto 10px; }
.qr-pop-tip { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.qr-pop-close {
  position: absolute; right: 4px; top: 2px; width: 30px; height: 30px;
  border: 0; background: none; color: var(--text-3); font-size: var(--fs-2xl); line-height: 1; cursor: pointer;
}
.qr-pop-close:hover { color: var(--brand); }

/* ---------- 主头部 ----------
   版式：一条 72px 的通栏主行（栏目 / 搜索）+ 一条 60px 的彩种条，
   两者都白底、只用 1px 细线分隔，整块读起来是一张「网站的封面」。

   ⚠ 别给 .header .container 定死 height —— mobile.css 用 height: 52px 控制移动端。
   PC 的固定高度写在 .header-bar 上（wap 不渲染这个类），两端互不干扰。

   flex-wrap 的 WCAG 1.4.4 兜底移到 .header-bar 上：PC 导航 5 项（AI 开关打开时
   末尾多一项「AI彩票助手」，共 6 项），常规字号下都在容器内；200% 字号真的放
   不下时改由 .header-bar 换行，不横向溢出。
   主行用 flex 两端对齐，栏内容各自 nowrap。 */
/* 头部贴顶吸顶：整块（主行 + 彩种条）滚动时常驻，栏目与彩种随时可用。
   ⚠ 代价是页内吸附元素要自己让位 —— 走势图的两行 sticky 表头原本 top:0，
   吸顶后会钻到头部底下，见本文件末尾「走势图表头下移」那条规则。
   z-index 50：高于页面内容，低于日历浮层（900+）与 AI 面板（95）。
   限定 data-dev="pc"：移动端 header 自己就是 sticky top:0 z-60（mobile.css）。 */
html[data-dev="pc"] { --hd-h: 73px; } /* 主行 72 + 底部 1px 描边；走势图页无彩种条，头高即此值 */
html[data-dev="pc"] .header {
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 6px 16px -14px rgba(20, 26, 38, .45);
}
/* 吸顶后页内锚点（跳到主内容 / 评论 / 目录）要留出头部高度，否则落点被头部盖住。 */
html[data-dev="pc"] { scroll-padding-top: calc(var(--hd-h) + 12px); }
.header { background: #fff; border-bottom: 1px solid #eef0f3; }
.header .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 9px; flex: none; text-decoration: none; }
/* Logo 基础样式给 wap 用（34px 红方块 + 17px 字标）；PC 换成纯文字字标见下。 */
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand);
  box-shadow: 0 1px 2px rgba(31, 36, 48, .10);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; letter-spacing: -.3px;
}
.logo-text strong { display: block; font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: .2px; line-height: 1.15; }
/* 字标下方的域名不显示：页脚与备案区已有域名。 */
.logo-text span { display: none; }

/* ---- PC 主行：栏目（贴左） —— 搜索（贴右） ----
   页头不放站点 Logo，导航从容器左边缘起排；搜索靠右，中间留白。
   两者用 space-between 顶到两端，导航宽度恒定，不会随搜索框长度漂。 */
html[data-dev="pc"] .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding-top: 0; padding-bottom: 0;
}
/* PC 不出站点 Logo（wap 顶栏仍用同一份 .logo：红方块 + 字标）。
   导航贴左之后左上角不需要品牌占位，视线直接从「首页」开始。 */
html[data-dev="pc"] .header-bar .logo { display: none; }

/* 主导航（全站恒定 5 项，AI 开关打开时末尾追加「AI彩票助手」共 6 项，贴左）。
   选中态：品牌红字 + 贴着主行底边的 2px 短横线。不再用色块 ——
   一条横线既指明位置，又不在白底上压一块颜色，是这套版式里最轻的强调。 */
html[data-dev="pc"] .header-nav { min-width: 0; }
/* 首项文字必须压在容器左边缘上（与下方福彩标识、内容卡片同一条竖线），
   但 a 自带 14px 内边距供 hover 底色用 —— 所以把整条导航左移 14px 抵掉，
   而不是把首项 padding 改成 0（那样 hover 圆角会贴死在容器边上）。 */
html[data-dev="pc"] .main-nav { display: flex; align-items: center; gap: 2px; margin-left: -14px; flex-wrap: nowrap; justify-content: flex-start; }
html[data-dev="pc"] .main-nav > li { position: relative; display: flex; align-items: center; height: 72px; }
/* gap 归零：a 里只有「文字 + 徽标」两段，间距全部交给徽标自己的 margin-left 控，
   避免 gap 与 margin 叠加出一段说不清的空白。 */
/* 未选中：--text-2 灰蓝（试过纯黑 #000，整条导航压得太重，已回退）。
   选中项是唯一的彩色，未选中只需安静地待在第二层。 */
html[data-dev="pc"] .main-nav > li > a {
  display: inline-flex; align-items: center; gap: 0;
  height: 36px; padding: 0 14px; border-radius: 9px;
  font-size: var(--fs-md); font-weight: 500; color: var(--text-2); white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}
html[data-dev="pc"] .main-nav > li > a:hover { color: var(--text); background: #f5f6f8; }
/* 选中态：品牌红字 + 加粗，颜色与底边横线同源，指认最省事。 */
html[data-dev="pc"] .main-nav > li.active > a { color: var(--brand); font-weight: 600; }
/* 选中项 hover 不加底色：底边横线已经在指认位置，再叠一层灰会显得脏。 */
html[data-dev="pc"] .main-nav > li.active > a:hover { background: transparent; color: var(--brand); }
html[data-dev="pc"] .main-nav > li.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; border-radius: 2px 2px 0 0; background: var(--brand);
}

/* 「热」标记：极小的一枚浅红标签，贴着文字右上角，不做成圆点。
   左边只留 2px —— 徽标自带 4px 内边距，再加上汉字本身的字面留白，
   实际视觉间距约 4px，与「文字带角标」的常见排法一致。 */
html[data-dev="pc"] .main-nav .nav-dot {
  display: inline-flex; align-items: center; align-self: center;
  margin: -8px 0 0 2px; padding: 0 4px;
  font-size: var(--fs-3xs); line-height: 15px; font-weight: 600;
  color: var(--brand); background: var(--brand-light);
  border-radius: 5px;
}

/* ---- PC 搜索：整条做成一颗胶囊，右侧一枚圆形提交按钮 ----
   胶囊底色 #f5f6f8、无描边 —— 白底上的灰胶囊比描边输入框安静，
   聚焦时才浮出白底 + 浅红描边 + 4px 光环。
   ⚠ 这是全站唯一保留圆角的表单控件：base.css 的 --ctl-radius: 0 只管
   input / select / textarea 元素本身，圆角画在本容器上、内部 input 透明无边，
   因此「页头搜索框保持胶囊」不需要额外例外规则。 */
html[data-dev="pc"] .header-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 4px 4px 4px 14px;
  border: 1px solid #eef0f4; border-radius: 999px; background: #f5f6f8;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
html[data-dev="pc"] .header-search:focus-within {
  background: #fff; border-color: #efc4c1; box-shadow: 0 0 0 4px rgba(211, 47, 47, .07);
}
html[data-dev="pc"] .header-search input[type="text"] {
  width: 146px; height: 30px; padding: 0; line-height: normal;
  font-size: var(--fs-sm);
  border: 0; background: transparent;
}
/* 占位符沿用 --text-3：浅灰胶囊上 #8b93a1 只有 2.9:1，
   和全站「元信息色」保持同一档才不破 WCAG 4.5:1。 */
html[data-dev="pc"] .header-search input[type="text"]::placeholder { color: var(--text-3); }
/* 聚焦态交给上面的 :focus-within 表达，输入框自身不能再画一圈。
   必须同时干掉 layui 的 3px 外扩光圈与 base.css 全局 :focus-visible 的 2px 红轮廓。 */
html[data-dev="pc"] .header-search input[type="text"]:focus,
html[data-dev="pc"] .header-search input[type="text"]:focus-visible {
  outline: none !important; border: 0 !important; box-shadow: none !important;
}
html[data-dev="pc"] .header-search button {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer;
  transition: background-color .15s ease;
}
html[data-dev="pc"] .header-search button:hover { background: var(--brand-dark); }

/* ---------- 彩种条（第二层导航） ----------
   淡红渐变底把「栏目」与「彩种」分两层（原来的中性浅灰 #f7f8fa 换成品牌淡红，
   让这一条与页头的红色主色连成一体）；8 个彩种是一枚枚白底卡片，
   图标 + 名称 + 开奖日/时刻，等宽排列，最后一行永远不会参差。
   组标（福彩 / 体彩）保留官方标识，竖排在组首，是分组锚点而不是装饰。
   渐变方向：上深下浅（180deg 起于顶部最重色、收于底部纯白），
   并让白色提前到 68% 就到位 —— 卡片下沿之下整段都是白，收口与下方
   白色内容区完全接平，看不出「一条带子」的边界。
   浓度用品牌红的 rgba 叠白来写：顶部 5.5%、28% 处 2.2%、68% 起归零 ——
   想整体再淡/再浓只调这几个小数，不必重新配色。 */
html[data-dev="pc"] .lot-strip {
  background: linear-gradient(180deg,
    rgba(211, 47, 47, .055) 0%,
    rgba(211, 47, 47, .022) 28%,
    rgba(211, 47, 47, 0) 68%,
    rgba(211, 47, 47, 0) 100%);
  border-bottom: 1px solid #fbf1f0;
  /* 顶边 1px 内高光：纯渐变在 60px 高的一条里会有「上亮下暗」的塑料感，
     加一道极淡白线后更像一张有厚度的横条。 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
html[data-dev="pc"] .lot-strip-in {
  /* 覆盖 .header .container 的 flex 与内边距，改成定高的单行 flex。
     间距刻意压得比主行紧：8 枚卡片 + 2 个组标要塞进 1168px，
     每省 10px 固定间距，每枚卡片就多 1px 给「周二/四/日 21:15」。 */
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding-top: 0; padding-bottom: 0;
}
html[data-dev="pc"] .lot-group { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
html[data-dev="pc"] .lot-group-mark {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: none; width: 30px;
}
html[data-dev="pc"] .lot-group-mark img { display: block; height: 20px; width: auto; }
html[data-dev="pc"] .lot-group-name { font-size: var(--fs-2xs); font-weight: 700; line-height: 1; letter-spacing: .5px; white-space: nowrap; }
html[data-dev="pc"] .lot-group-mark.ln-fc .lot-group-name { color: #c62828; }
html[data-dev="pc"] .lot-group-mark.ln-tc .lot-group-name { color: #1d4ed8; }
html[data-dev="pc"] .lot-chips { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; }
/* 内边距左右不对称：左侧 6px 让图标更贴左，右侧 12px 给「周二/四/日 21:15」
   留出收尾空隙。总内边距仍是 18px（原来左右各 9），所以 8 枚卡片的等分宽度不变，
   只是图标与文字整体左移 3px、右侧多出 3px 呼吸位。 */
html[data-dev="pc"] .lot-chip {
  display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0;
  height: 42px; padding: 0 12px 0 6px;
  border: 1px solid #eceef3; border-radius: 11px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
html[data-dev="pc"] .lot-chip:hover {
  border-color: #f2c8c5; box-shadow: 0 3px 12px rgba(31, 36, 48, .08); transform: translateY(-1px);
}
html[data-dev="pc"] .lot-chip-icon { display: block; flex: none; width: 24px; height: 24px; }
html[data-dev="pc"] .lot-chip-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
html[data-dev="pc"] .lot-chip-name {
  font-size: var(--fs-base); font-weight: 600; line-height: 1.25; color: var(--text); white-space: nowrap;
  transition: color .15s ease;
}
html[data-dev="pc"] .lot-chip:hover .lot-chip-name { color: var(--brand); }
/* 开奖日与时刻：11px 元信息。数字等宽，切换彩种时不会跳动。
   「周二/四/日 21:15」这一串里斜杠本身就是分隔符，再加一个空格会读成
   「四/日 21:15」三个词并排，故用 letter-spacing 把整串平均撑开一点，
   比塞空格干净。 */
html[data-dev="pc"] .lot-chip-time {
  font-size: var(--fs-2xs); line-height: 1.25; color: var(--text-3);
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 当前彩种：浅红底 + 浅红描边 + 红字，与主导航的「横线」区分开，
   让人一眼看出「在哪个彩种」和「在哪个栏目」是两个不同的维度。
   底色不能继续用 --brand-light(#fdecec)：条底已改成淡红渐变，
   两者几乎同色，卡片会「消失」在条里 —— 改为比条底再深一档的双色渐变，
   并把描边压到 #eab0ad，选中的位置才立得住。
   （老板连降两次条底浓度后，选中卡成了整条最深的一块，这个是刻意的：
   条底越淡，「在哪个彩种」越要靠这枚卡片说清楚，不要再跟着条底一起变淡。） */
html[data-dev="pc"] .lot-chip.active {
  background: linear-gradient(180deg, #fde6e6 0%, #fbdbdb 100%);
  border-color: #ecb6b3;
}
html[data-dev="pc"] .lot-chip.active .lot-chip-name { color: var(--brand); }
/* 选中卡里的开奖时间：不能再留 #8b93a1 的中性灰 —— 冷灰压在粉底上会发褐发脏，
   和上面的红字也接不上，整块像没渲染完。改成品牌红的压暗一档（#b8453f）：
   既退到「次要信息」的位置，又跟名称同色系；11px 小字压到 4.5:1（#bd4b47 只有 4.2），
   权重 500 + 微量字距让它别显虚。 */
html[data-dev="pc"] .lot-chip.active .lot-chip-time { color: #b8453f; }
html[data-dev="pc"] .lot-strip-div { flex: none; width: 1px; height: 28px; background: #f5e5e4; }

/* 页面自己带彩种切换条时（走势图的 .zst-switch.zst-lots），页头彩种条整块让位：
   它切的是「当前栏目的其它彩种」，与页头那 8 枚卡片是同一批名字，
   上下紧邻出现两遍比少一层入口更难读。用 :has() 判定，不必给每个页面单独开标志位。 */
html[data-dev="pc"] body:has(.zst-switch.zst-lots) .lot-strip { display: none; }

/* 1024–1199px：容器约 990px，8 枚卡片每枚只有约 110px。
   「周二/四/日 21:15」放不下，只留开奖日；时刻留给 ≥1200px 的基准宽度。 */
@media (max-width: 1199px) {
  html[data-dev="pc"] .lot-chip-hm { display: none; }
  html[data-dev="pc"] .lot-group { gap: 10px; }
  html[data-dev="pc"] .lot-strip-in { gap: 10px; }
}

/* ---------- 首页开奖快讯卡（右栏顶部） ----------
   版式：浅蓝标题栏 →「彩种 + 期号 ……… 日期」→ 号码条 →「开奖日历」。
   号码不再用 24px 实心球：8 个彩种竖排就是 60 多个红点，整卡变成一面红点墙，
   与「资讯速览」的定位不符。改为 20px 高的浅底红字号码片，只有特别号
   （双色球蓝球 / 大乐透后区 / 七乐彩金球）保留实心色 —— 每行 1~2 个实心块
   当视觉落点，其余退缩成可快速扫读的数字。 */
/* 外层卡片统一无描边（见 base.css 的 .card），快讯卡不再单独加 #e6e8eb 边 */
.ticker.card { border: 0; }
.ticker.card .card-hd {
  padding: 10px 14px;
  background: #eaf3fe;
  border-bottom: 1px solid #dce9fb;
}
/* 标题与刷新按钮拉开 6px：图标原来贴着「讯」字，像误落的标点。 */
.ticker.card .card-hd h2 {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-md); font-weight: 700; color: var(--text);
}
.ticker.card .card-hd h2::before { display: none; }
/* 标题旁刷新按钮：点一下立即重拉快讯，加载期间图标旋转。
   20px 命中区靠负外边距抵消，不改变标题栏高度。 */
.ticker .ticker-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin: -3px 0; padding: 0;
  border: 0; border-radius: 50%; background: none;
  color: #4a7fd4; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.ticker .ticker-refresh svg { width: 13px; height: 13px; }
.ticker .ticker-refresh:hover { color: var(--brand); background: #dbe9fb; }
.ticker .ticker-refresh:focus-visible { outline: 2px solid #4a7fd4; outline-offset: 2px; }
.ticker .ticker-refresh[disabled] { cursor: default; }
.ticker .ticker-refresh[disabled]:hover { color: #4a7fd4; background: none; }
.ticker .ticker-refresh.is-spinning svg { animation: ticker-spin .7s linear infinite; }
@keyframes ticker-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ticker .ticker-refresh.is-spinning svg { animation: none; }
}
.ticker .card-hd .hd-more { color: var(--text-3); font-size: var(--fs-xs); }
.ticker .card-hd .hd-more:hover { color: var(--brand); }
.ticker.card .ticker-list { padding: 0 14px 8px; }
/* 行内左右各 6px 内边距 + 等量负外边距：文字位置不变，hover 底色却比文字
   宽出一点，不至于像一层贴在字上的色块。
   上下 12 / 14px 决定「相邻彩种之间」的留白（12 + 1px 分隔线 + 14 = 27px）；
   球缩到 24px 后行高变矮，若还沿用旧的 9/10，8 个彩种会挤成一条密不透风的列表。 */
.ticker-item {
  position: relative;
  margin: 0 -6px; padding: 12px 6px 14px;
  border-bottom: 1px solid #f2f4f7;
  transition: background-color .15s ease;
}
.ticker-item:last-child { border-bottom: 0; }
.ticker-item:hover { background: #f8fafd; }
/* 标题行只留三个信息：彩种名（主）、期号（次）、日期（右对齐元信息）。
   行尾的 › 箭头去掉了 —— 整行本来就可点，hover 变底色已经能提示，
   多一个箭头只是又多一处要读的东西。 */
.ticker-item .t-head { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 6px; }
.ticker-item .t-main { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ticker-item .t-ico { flex: none; width: 20px; height: 20px; object-fit: contain; }
/* 整条快讯都是同一个目标：主链接的伪元素撑满条目，日期、空白处
   点击后同样进入该彩种开奖首页（视觉上整行就是一个入口，不能只有文字能点）。 */
.ticker-item .t-main::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ticker-item .t-name { color: var(--text); font-size: var(--fs-md); font-weight: 600; white-space: nowrap; }
.ticker-item .t-main:hover .t-name { color: var(--brand); }
/* 期号与日期共用元信息样式，回到站内标准 12px：
   11px 对老年用户偏小，而这两个字段是「哪一期、哪天开」的定位信息，值得读清。
   tabular-nums 保证换期时右端日期不会左右跳动。 */
.ticker-item .t-qi,
.ticker-item .t-date {
  color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ticker-item .t-date { margin-left: auto; }
/* 号码条整体从彩种名那条左边线起排（图标 20px + 图标与名字的 7px = 27px）：
   图标因此独占一列，八个彩种竖着扫下来是同一根「图标栏」，
   球不再和图标左对齐挤成一坨。号码区可用宽度 = 312 - 27 = 285px，
   仍装得下一行 10 个 24px 的球（267px），折行位置不变。
   这个缩进在手机端也保留：手机上图标同样是 20px/7px，两边对齐方式一致。 */
.ticker-item .t-body {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding-left: 27px;
}
/* 号码条自身负责折行：max-width 卡在 267px（10 个号一行），
   快乐8 的 20 个号因此稳定折成 10 + 10 两排，而不是跟着卡片宽度变成 12+8；
   3D / 排列3 这种只有 3 个号的彩种，宽度按内容走。
   这里只放正式开奖号 —— 试机号 / 开机号已挪到卡片底部的机号区块，
   号码条不再跟一组小号描边球（同一份号码在一张卡里出现两次容易看串行）。 */
.ticker-item .t-nums {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 3px;
  min-width: 0; max-width: 267px;
}
.ticker-item .t-nums .balls { display: contents; }
.ticker .balls { gap: 3px; }
/* 号码球直接沿用全站的 .ball（实心渐变球 + 白字 + 高光/暗边），
   快讯卡不再自造一套「号码片」样式 —— 同一个号在快讯、开奖页、走势图里
   必须是同一颗球，否则用户要重新认一遍。
   尺寸比全站默认 28px 收小一档到 24px（原来这里反而放大到 28px/14px，
   8 个彩种叠在侧栏里球太抢眼、号码条也把整卡撑高）；字号跟着落到 13px，
   球径/字号比与 28px 球一致，两位数仍不贴边。 */
.ticker .balls-xs .ball {
  width: 24px; height: 24px;
  font-size: 13px; font-weight: 600;
}
/* 机号沿用快讯卡原有的「描边方块」：它是模拟数据，不是开奖号，
   和实心球区分开才不会看串行；尺寸比正号小一档（20px/12px）。
   现在只有卡片底部的机号区块用它（号码条里已不出现试机号）。 */
.ticker .balls-sjh .ball-sjh {
  width: 20px; height: 20px; border: 1px solid #e57373; border-radius: 4px;
  background: #fff; color: var(--brand); font-size: var(--fs-xs); line-height: 18px;
  box-shadow: none; text-shadow: none;
}
/* 标题栏右侧动作组：开奖日历 +「更多」。
   开奖日历原先独占 40px 高的页脚条，只为放一个入口；挪进标题栏后整卡少一行，
   也省掉「视线从卡片头拉到尾再折回来」的一趟。
   两个入口都是 12px 的轻量文字，各自带 hover 胶囊，间距 4px 足够分开。 */
.ticker .card-hd .hd-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
/* 组内的「更多」不再自己往右顶（.hd-more 默认 margin-left:auto），
   否则它会把「开奖日历」挤到标题那一侧。 */
.ticker .card-hd .hd-tools .hd-more { margin-left: 0; }
.ticker .cal-btn {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 24px; padding: 3px 8px; /* 24px 是站内移动端最小触控目标 */
  border: 0; border-radius: 999px;
  background: none; color: var(--text-3);
  font-family: inherit; font-size: var(--fs-xs); line-height: 1.5;
  white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.ticker .cal-btn-ico { width: 13px; height: 13px; flex: none; }
.ticker .cal-btn:hover,
.ticker .cal-btn[aria-expanded="true"] { color: var(--brand); background: #dbe9fb; }

/* ---------- 快讯卡页脚：开机号 / 试机号速览 ----------
   卡内列表只放开奖号，机号一律在这块：既补上双色球 / 大乐透只有开机号、列表给不出
   的那一半，也让用户不必从一行彩种名去猜该点哪个入口。
   结构是「彩种一组 → 组内每种机号一条」：
     福彩3D
     试机号 2026317期 5 3 2
     开机号 2026318期 8 1 4
   两条各有自己的期号：开机号 09:00 发布、试机号 17:00 发布，白天里同一个彩种
   常常是「今天的开机号 + 昨天的试机号」，写在同一行期号上会把其中一条标错。
   号码沿用机号的描边小球（.ball-sjh），每条都可点，进对应类型的机号页。
   底色与页头彩种条同一套「品牌淡红 → 白」的渐变（同一条 rgba 配方），
   让卡片收尾这一块和页头呼应；这里块高随内容变（约 200px），
   所以用 px 而不是百分比收口，浓度在 90px 内化到 0，不会拖成一大片粉。 */
.ticker .ticker-mach {
  padding: 7px 14px 9px;
  border-top: 1px solid #fbf1f0;
  background: linear-gradient(180deg,
    rgba(211, 47, 47, .055) 0,
    rgba(211, 47, 47, 0) 90px);
}
.ticker .tm-hd {
  margin-bottom: 2px;
  color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5;
}
.ticker .tm-item { padding: 4px 0 2px; }
.ticker .tm-name {
  color: var(--text); font-size: var(--fs-xs); font-weight: 600; line-height: 1.7;
}
/* 一条机号：类型（次）+ 期号（元信息）+ 号码球；命中区铺满整行，负外边距让
   hover 底色比文字宽出一点，和卡内条目同一套「整行可点」的手感。 */
.ticker .tm-row {
  display: flex; align-items: center; gap: 8px;
  margin: 0 -6px; padding: 1px 6px; border-radius: 6px;
  transition: background-color .15s ease;
}
/* 行 hover 底色跟着底色走暖色：原来是淡蓝 #f1f6fd，压在粉底上会发脏 */
.ticker .tm-row:hover { background: rgba(211, 47, 47, .06); }
.ticker .tm-row:hover .tm-kind { color: var(--brand); }
.ticker .tm-kind { flex: none; color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; }
/* 期号与卡内条目同款元信息：12px 灰字 + tabular-nums，换期时右端不会左右跳 */
.ticker .tm-issue {
  flex: none; color: var(--text-3); font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 机号一律用描边球（不是开奖号，实心红球会被误读成开奖结果） */
.ticker .tm-balls { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
/* 唯一的例外是双色球 / 大乐透的后区蓝号：不标出来，一行里会出现两个一样的数字
   （如红 15 与蓝 15），读起来像渲染出错。 */
.ticker .tm-balls .ball-sjh-blue { border-color: #8fb6e8; color: #2f6fc0; }

/* ---------- 开奖日历浮层 ----------
   版式对齐目标站：时间行 + 彩种/停售开奖/周一到周日日程表，当前星期整列高亮
   （福彩红、体彩蓝）。PC 由脚本定位到触发按钮上方/下方，手机端改为居中弹窗。 */
.cal-mask {
  position: fixed; inset: 0; z-index: 980;
  background: rgba(15, 23, 42, .42);
}
.cal-pop {
  position: fixed; z-index: 981;
  width: 648px; max-width: calc(100vw - 32px);
  padding: 14px 16px 0;
  background: #fff; border: 1px solid #e3e6ea; border-radius: 12px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .2);
}
.cal-pop[hidden], .cal-mask[hidden] { display: none !important; }
.cal-hd {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; color: var(--text); font-size: var(--fs-md); font-weight: 600;
}
.cal-hd > svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.cal-now { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.cal-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-left: auto; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer;
}
.cal-x:hover { background: #f2f4f7; color: var(--text); }
.cal-x svg { width: 14px; height: 14px; }
.cal-bd { border-radius: 6px; }
.cal-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  font-size: var(--fs-sm); color: var(--text);
}
.cal-table th,
.cal-table td {
  height: 38px; padding: 0 4px; text-align: center;
  border: 1px solid #dedfe2;
}
.cal-table th { background: #f5f5f5; font-weight: 600; white-space: nowrap; }
.cal-table th:nth-child(1), .cal-table td:nth-child(1) { width: 92px; }
.cal-table th:nth-child(2), .cal-table td:nth-child(2) { width: 108px; }
.cal-table .cal-name { font-weight: 700; }
.cal-table .cal-name a { color: var(--text); }
.cal-table .cal-name a:hover { color: var(--brand); }
.cal-table .cal-time { font-weight: 700; white-space: nowrap; }
.cal-table .cal-day { color: var(--text-3); }
.cal-bell { width: 17px; height: 17px; color: var(--text-3); vertical-align: -3px; }
.cal-table tr.cal-stripe td { background: #f5f5f5; }
/* 当前星期列：福彩红底红铃，体彩蓝底蓝铃（与目标站一致） */
.cal-table th.is-today { background: #cd0000; color: #fff; }
.cal-table td.is-today { background: #fff1ee !important; border-color: #ffc5c5; }
.cal-table td.is-today .cal-bell { color: #cd0000; }
.cal-table tr.cal-tc td.is-today { background: #d0e4ff !important; border-color: #b9d5ff; }
.cal-table tr.cal-tc td.is-today .cal-bell { color: #1678ff; }
.cal-more {
  display: flex; align-items: center; justify-content: center;
  height: 42px; margin: 0 -16px;
  border-top: 1px solid #eef0f3; border-radius: 0 0 12px 12px;
  color: var(--text-3); font-size: var(--fs-sm);
}
.cal-more:hover { color: var(--brand); }

/* ---------- 主内容区 ---------- */
/* 上下留白也用卡片间距：内容区顶部与第一张卡、卡片与卡片、卡片与页脚
   共用同一套节奏，避免「首屏留白 20、卡间距 16」这种差 4px 的不齐。 */
.main-wrap { padding: var(--card-gap) 0 var(--block-gap); }
.main-wrap > .container > .card,
.main-wrap > .container > .grid-2,
.main-wrap > .container > .lot-section,
.main-wrap > .container > .home-split { margin-bottom: var(--card-gap); }
/* 最后一个卡片（友情链接）已到页面底部，不再保留底部外边距 */
.main-wrap > .container > .card:last-child { margin-bottom: 0; }

/* 内页两栏（彩种首页 / 列表 / 工具 / 指南等）：左内容 + 右侧栏。
   左列用 minmax(0, 1fr) 而非 1fr —— 1fr 的下限是内容 min-content，文章标题
   （nowrap + ellipsis）的 min-content 是整行标题宽，窄屏（1024~1199）会把左列
   顶宽、整页横向溢出。minmax(0, 1fr) 让列可以被压缩，截断交给 .art-list li a。 */
.lot-section { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--card-gap) var(--card-gap-x); }
.lot-section .side-stack { display: flex; flex-direction: column; gap: var(--card-gap); }
.lot-section .side-stack > .card + .card { margin-top: 0; }
/* 侧栏入口卡片下线后，公告 / 新闻列表页只剩单列，铺满整行 */
.lot-section.single { grid-template-columns: minmax(0, 1fr); }

/* ---------- 试机号 / 开机号「当期机号」卡（sjh.html） ----------
   PC 把卡内正文拆成左右两栏：左边期号 / 号码球 / 开奖日期与说明，右边只放链接
   （「推荐」那组栏目入口，10 条）。原先这组链接横铺在说明下面、折成两行且断在词
   中间，看着更像正文；单独成栏后与号码信息左右分明，链接也排成两列更好点。
   右栏固定 340px、与全站侧栏同宽，左边剩 ~780px 放号码球足够。
   窄屏不套用这条（mobile.css 里整栏隐藏）。 */
html[data-dev="pc"] .sjh-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 24px; }
/* 竖分隔线用「左内边距 + 左描边」而不是整块底色：右栏只有链接，不代表另一个区块 */
html[data-dev="pc"] .sjh-top-links { padding-left: 24px; border-left: 1px solid #f1f3f6; }
.sjh-links-hd { margin-bottom: 8px; font-size: var(--fs-sm); color: var(--text-3); }
.sjh-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.sjh-links a { font-size: var(--fs-sm); color: var(--brand); line-height: 1.7; }
.sjh-links a:hover { text-decoration: underline; }

/* ---------- 首页轮播图 ----------
   左栏顶部横幅：图片可后台上传；未配置图片时用三套渐变兜底。
   控制按钮默认淡出，悬停/键盘聚焦时出现；圆点当前项拉长成小胶囊。 */
.hero-slider { position: relative; overflow: hidden; border: 0; }
.hero-viewport { overflow: hidden; border-radius: inherit; }
.hero-track { display: flex; transition: transform .5s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.hero-slide {
  position: relative; display: block; flex: 0 0 100%; width: 100%; height: 280px;
  color: #fff; overflow: hidden;
}
.hero-slide:nth-child(3n+1) { background: linear-gradient(120deg, #8f1010 0%, #d32f2f 48%, #ff6b5e 100%); }
.hero-slide:nth-child(3n+2) { background: linear-gradient(120deg, #0d2b57 0%, #1565c0 55%, #4da3ff 100%); }
.hero-slide:nth-child(3n)   { background: linear-gradient(120deg, #4a2d06 0%, #a8710a 55%, #e0a92f 100%); }
.hero-slide::before {
  content: ""; position: absolute; right: -70px; top: -120px; width: 340px; height: 340px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero-slide::after {
  content: ""; position: absolute; left: 34%; bottom: -110px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.hero-slide-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .28) 52%, rgba(0, 0, 0, .04) 100%);
}
.hero-slide-body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 9px; padding: 28px 32px;
}
.hero-slide-kicker {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); font-size: var(--fs-xs); letter-spacing: .08em;
  backdrop-filter: blur(4px);
}
.hero-slide-title {
  max-width: 78%; font-size: var(--fs-3xl); line-height: 1.35; font-weight: 700;
  letter-spacing: .01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}
.hero-slide-cta {
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start; font-size: var(--fs-sm); color: #fff; opacity: .92;
  transition: gap .18s ease, opacity .18s ease;
}
.hero-slide-cta svg { width: 15px; height: 15px; }
.hero-slide:hover .hero-slide-cta { gap: 8px; opacity: 1; }
.hero-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .26); color: #fff;
  cursor: pointer; opacity: 0; backdrop-filter: blur(4px);
  transition: opacity .18s ease, background .18s ease;
}
.hero-nav svg { width: 18px; height: 18px; }
.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }
.hero-nav:hover { background: rgba(0, 0, 0, .5); }
.hero-slider:hover .hero-nav,
.hero-slider:focus-within .hero-nav { opacity: 1; }
.hero-dots { position: absolute; right: 18px; bottom: 16px; z-index: 3; display: flex; gap: 6px; }
.hero-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .45); cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.hero-dot.on { width: 18px; background: #fff; }

@media (max-width: 1023px) {
  .hero-slide { height: 180px; }
  .hero-slide-body { padding: 18px 20px; gap: 7px; }
  .hero-slide-title { max-width: 100%; font-size: var(--fs-2xl); }
  .hero-slide-kicker { font-size: var(--fs-2xs); padding: 2px 8px; }
  .hero-slide-cta { font-size: var(--fs-xs); }
  .hero-nav { width: 30px; height: 30px; opacity: 1; }
  .hero-nav.prev { left: 8px; }
  .hero-nav.next { right: 8px; }
  .hero-dots { right: 12px; bottom: 10px; }
}

/* 首页主体：左栏各彩种文章区，右栏顶部开奖快讯 + 新闻 / 工具 / 走势图。
   .home-split 直接放三块（快讯卡、左栏、右栏），用显式网格位置把快讯卡
   固定在 340px 右栏的第一行，左栏跨两行，右栏其余卡片从第二行开始。
   移动端单列时按 DOM 顺序排列，快讯卡自然排在最前。 */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto 1fr;
  column-gap: var(--card-gap-x); row-gap: var(--card-gap);
  align-items: start;
}
/* 首页的彩种入口条只服务 wap（图标网格在内容流里）；PC 的彩种入口统一由页头
   的 .lot-strip 承担，这里整块隐藏，避免同一批彩种在首屏出现两次。 */
html[data-dev="pc"] .home-split > .lot-entry { display: none; }
/* 通栏血洗用的是 100vw，Windows 上滚动条占 15px 会顶出横向滚动条。 */
html[data-dev="pc"] body { overflow-x: clip; }
.home-split > .ticker { grid-column: 2; grid-row: 1; }
.home-main { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.home-rail { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: var(--card-gap); }
.home-rail > .card + .card { margin-top: 0; }

/* 左栏文章双列：12 条排 6 行，标题仍单行省略 */
.lot-card .card-bd > .art-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
/* 双列时最后一行的左单元格不是 :last-child，单独去掉分隔线，保持左右一致 */
.lot-card .card-bd > .art-list > li:nth-last-child(2) { border-bottom: 0; }
/* 右栏按彩种分组：彩种名一行，入口链接紧凑排布（14px + 更大行距，避免密集小字） */
.rail-group + .rail-group { margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid #f1f3f6; }
.rail-group-name { display: inline-block; margin-bottom: 6px; font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.rail-group-name:hover { color: var(--brand); }
.rail-links { display: flex; flex-wrap: wrap; gap: 6px; }
.rail-links a {
  padding: 3px 9px; border-radius: 7px; font-size: var(--fs-base); line-height: 1.6; color: var(--text-2);
  transition: background .15s ease, color .15s ease;
}
.rail-links a:hover { color: var(--brand); background: var(--brand-light); }

/* 工具 / 走势 / 遗漏入口：自适应 chip（标签式按钮）。
   原先是等宽方框网格（如 5 列 × 4 行，每格只有 4~6 个字），留白比文字还多，
   整屏看下去就是一片空盒子；分类数不是列数整数倍时，末行还会剩一个孤零零的格子，
   像排版没写完。改成宽度随文字走的 chip：行数由 5 行压到 2~3 行，
   右端参差反而更像「分类标签」而不是「表单按钮」。
   hover 用 inset 描边而不加真实 border —— 不改变盒子尺寸，鼠标扫过时不会抖。
   直角（border-radius: 0）：走势图 / 遗漏 / 工具首页这些入口与全站表单控件同一套
   方角语言，浅灰底 + 间距已经足够表达「可点的一块」，不需要再画圆角。
   .cols3/.cols4/.cols5 已无语义，保留类名仅为兼容仍传列数的模板调用。 */
.tool-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-grid a {
  display: block; padding: 7px 14px; border-radius: 0; background: #f2f4f7;
  font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); text-align: left;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.tool-grid a:hover {
  background: #fff; color: var(--brand); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px #f2c3c3, 0 4px 12px rgba(16, 24, 40, .06);
}

/* 走势图总览：按彩种分组卡片的锚点定位，避开吸顶主导航 */
.zst-group { scroll-margin-top: 96px; }

/* 图库条目 */
.tuku-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tuku-item {
  display: block; padding: 12px 10px; border: 1px solid var(--border); border-radius: 10px;
  font-size: var(--fs-sm); color: var(--text-2); text-align: center; background: #fff;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.tuku-item:hover { border-color: #f3caca; color: var(--brand); box-shadow: var(--shadow-sm); }
.tuku-item .tk-qi { display: block; color: var(--text-3); font-size: var(--fs-xs); margin-top: 2px; }

/* 快捷标签行（图库底部 / 推荐） */
.link-chips { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-top: var(--gap-md); border-top: 1px dashed var(--border); margin-top: var(--gap-md); }
.link-chips a { font-size: var(--fs-xs); color: var(--text-3); }
.link-chips a:hover { color: var(--brand); }

/* 开奖速览卡（首页顶部右侧）：网格布局；.km-item / .km-hd / .km-name / .km-qi
   是通用组件，已提到 base.css（侧栏「最新开奖」卡片复用同一套样式）。 */
.kaijiang-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* 彩种首页侧栏「最新开奖」的内层边框与灰底已统一由 base.css 的
   .lot-side-latest .card-bd > .km-item 处理（彩种首页 / 列表页 / 玩法页 /
   文章页共用同一张卡），这里不再重复声明。 */

/* 开奖总览：福彩 / 体彩两个分组卡在 PC 端左右并排，各占一半（这几条规则带
   html[data-dev="pc"] 前缀，手机端 .kj-split 退回普通块级容器，仍是上下整宽）。
   组内速览卡改成单列——半宽卡片里两列会让
   快乐8 的 20 个号码球折成三行、开奖日期也没地方放；单列后每期都有整卡宽度。 */
html[data-dev="pc"] .kj-split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--card-gap-x);
}
html[data-dev="pc"] .kj-split > .card + .card { margin-top: 0; }
/* 两列等高收尾：四期一组的卡片里，快乐8 的号码要折两行、另一组都是单行，
   两卡自然高度差约 40~60px。让卡纵身撑满、组内把余量均分到条目之间
   （align-content: space-between 只拉开行距，不拉高条目本身），
   短的一侧就不会在卡底留一块空白，条目也不会被拉变形。 */
html[data-dev="pc"] .kj-split > .card { display: flex; flex-direction: column; }
html[data-dev="pc"] .kj-split > .card > .card-bd { flex: 1; display: flex; flex-direction: column; }
html[data-dev="pc"] .kj-split .kaijiang-mini {
  grid-template-columns: 1fr; flex: 1; align-content: space-between;
}
/* 组内条目跟着外层卡走「方角」语言：去掉 .km-item 的 10px 圆角。
   这条不加 data-dev 前缀——同一张分组卡在手机端也是这四行，两端观感要一致；
   首页侧栏的速览卡不带 .kj-split 祖先，仍是圆角。 */
.kj-split .km-item { border-radius: 0; }

/* 号码球从彩种图标右侧起排，图标下面留白 —— 与首页「今日开奖快讯」卡
   （.ticker-item .t-body 的 padding-left: 27px）同一套版式：
   原来号码球和图标左边缘齐在一条竖线上，一行十几个红色实心球又大又密，
   视线全被号码吸走，22px 的彩种图标挤在球堆上方几乎看不出是什么彩种。
   让出图标这一列之后，左侧自上而下只有图标，彩种一眼可辨，号码也退回
   「内容」的位置。缩进 = 图标 22px + .km-hd 的 6px 间距。
   两端都保留：手机端图标同样是 22px/6px，缩进量一致，不是 PC 专属。 */
.kj-split .km-item .balls { padding-left: 28px; }

/* ---------- 页脚 ---------- */
/* 页脚与内容区的间距由 .main-wrap 的底部内边距统一提供，页脚自身不再叠加 margin */
.footer { background: #151922; color: var(--text-invert-2); font-size: var(--fs-sm); margin-top: 0; }
.footer a { color: var(--text-invert-2); }
.footer a:hover { color: var(--text-invert); }
/* 页脚只保留「关于 / 隐私 / 标签 / 站点地图 / 回到顶部」与版权行。
   原来那组「彩种 × 走势分析/走势图/开奖结果 + 试机号」的全站链接矩阵已删除：
   每个页面都重复输出 30 余条同款链接，对权重传递的边际作用很低，却把页脚
   变成整站最长的链接堆；这些入口在顶栏彩种导航与各彩种页内均已覆盖。 */
.footer-bottom { padding: 28px 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-bottom .fb-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin-bottom: 8px; }
.footer-bottom .fb-links a { padding: 0 8px; border-right: 1px solid rgba(255,255,255,.12); }
/* 首尾链接去掉外侧内边距：否则「关于我们」的文字比下方版权行右移 8px（这是给分隔线
   留的间距），整排链接看上去没和左侧内容齐边；末项同理，右边缘会多出 8px 空白。 */
.footer-bottom .fb-links a:first-child { padding-left: 0; }
.footer-bottom .fb-links a:last-child { border-right: 0; padding-right: 0; }
/* 页脚在深色底 #2b2b2b 上，文字要往亮处调：#8b9098 只有 4.41:1（差 2%），
   #9ba3ac 为 5.39:1。注意页脚**不用** --text-3（那是浅底用的深色）。 */
.footer-bottom .copy { color: var(--text-invert-3); font-size: var(--fs-xs); line-height: 1.8; }

/* ---------- 开奖页 ---------- */
/* 「最新开奖 / 奖级明细 / 历史开奖」是独立卡片，间距沿用全站统一的 --card-gap。 */
.kj-page > .kj-draw { margin-bottom: var(--card-gap); }
.kj-draw > .card + .card { margin-top: var(--card-gap); }

/* PC 端把「最新开奖」与「奖级明细」并排成左右两列：左边是整页唯一焦点区（期号 + 号码球 +
   奖池/销售额），右边紧接本期奖级表，一屏内就能看完「开了什么 + 各奖级多少钱」，
   也省掉上下两块各自的高度差留白。
   仅服务端确认本期有奖级数据时才带 --split（模板里按 $d.Prizes 加类）：快乐8 / 福彩3D
   没有奖级表，仍是原来的单列整宽，不会出现右边空着半屏的情况。
   两列按 1 : 1.06 分——奖级表三列文字需要略宽的横向空间，左侧 7 个 48px 大球在 1fr 下也放得开。 */
@media (min-width: 1024px) {
  .kj-draw--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    align-items: stretch;
    gap: var(--card-gap) var(--card-gap-x);
  }
  /* 栅格项默认 min-width:auto，长数字/宽表会把列撑破，统一压成 0 让内部自己收缩 */
  .kj-draw--split > .card { min-width: 0; }
  /* 并排后两列的间距由 gap 负责，取消原先纵向堆叠时的上下外边距 */
  .kj-draw--split > .card + .card { margin-top: 0; }
  /* 奖级多的彩种（大乐透 9 个奖级）右表明显更高：左卡片跟着拉满行高，
     内容整体垂直居中，避免左下方留一块空白；奖级少的彩种则几乎看不出差别。 */
  .kj-draw--split > .kj-latest-card { display: flex; flex-direction: column; }
  .kj-draw--split .kj-latest--hero {
    flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
    padding: 20px 22px;
  }
  /* 列宽收窄到 ~570px 后，球间距也从 12 收到 10，7 个 48px 大球仍能一行放下 */
  .kj-draw--split .kj-latest.kj-latest--hero .kj-balls { gap: 10px; }
}
/* 1024~1199 的窄屏 PC：左列内宽只剩 ~440px，三栏数据里「每周二、四、日晚 21:15」
   会被折成两行，改成两栏 + 开奖时间独占一行（它本来就是最长的一条）。 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .kj-draw--split .kj-latest--hero .kj-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kj-draw--split .kj-latest--hero .kj-meta > :last-child { grid-column: 1 / -1; }
}

/* 顶部彩种切换：与走势图顶部 segment 同一套观感——白底轨道、淡红选中项、
   14px 文字与 6px 上下内边距。保留开奖页原有的「无边框 / 无阴影」外壳，
   只把选中态和尺寸对齐走势图；窄屏仍由 mobile.css 接管横向滚动。
   选择器需压过 layui-site.css 里 .kj-tabs > .layui-tab-title li(.layui-this) a 的
   字号 / 颜色 / 下划线规则，否则会出现选中态被旧规则盖掉。 */
.kj-navbar {
  padding: 5px 12px;
  border: 0; border-radius: 0; box-shadow: none;
  background: #fff;
}
.kj-navbar .kj-tabs {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0; border: 0; background: #fff;
}
.kj-navbar .kj-tabs::-webkit-scrollbar { display: none; }
.kj-navbar .kj-tabs > .layui-tab-title {
  display: flex; flex-wrap: nowrap; width: max-content; min-width: 100%;
  gap: 2px;
}
.kj-navbar .kj-tabs > .layui-tab-title li { flex: none; }
.kj-navbar .kj-tabs > .layui-tab-title li a {
  display: flex; align-items: center; justify-content: center;
  height: auto; padding: 6px 12px;
  border: 0; border-radius: 8px;
  background: transparent;
  font-size: var(--fs-base); line-height: 1.5; color: var(--text-2);
  white-space: nowrap;
}
.kj-navbar .kj-tabs > .layui-tab-title li a:hover { color: var(--brand); }
.kj-navbar .kj-tabs > .layui-tab-title li.layui-this a,
.kj-navbar .kj-tabs > .layui-tab-title li.layui-this a:hover {
  background: var(--brand-light); color: var(--brand); font-weight: 600;
  box-shadow: none;
}

/* 最新开奖：整页唯一焦点区，浅品牌色打底 + 大号号码球 */
.kj-latest--hero {
  padding: 24px 26px;
  background: linear-gradient(160deg, #fff4f4 0%, #fff 58%);
}
.kj-hero-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.kj-hero-issue { font-size: var(--fs-2xl); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.kj-hero-date { margin-left: auto; font-size: var(--fs-xs); color: var(--text-3); }
.kj-hero-date b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.kj-latest.kj-latest--hero .kj-balls { justify-content: center; gap: 12px; margin-bottom: 18px; }
.kj-latest.kj-latest--hero .kj-balls .ball { width: 48px; height: 48px; font-size: var(--fs-2xl); }
.kj-latest--hero .kj-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px;
  margin: 0; padding-top: 16px; border-top: 1px dashed var(--border);
}
.kj-meta-item span { display: block; margin-bottom: 2px; font-size: var(--fs-xs); color: var(--text-3); }
.kj-meta-item b { display: block; font-size: var(--fs-base); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* 表格：期号做成可点的边框小签；一等奖行用浅品牌色标出，避免整表一条一条全一样 */
.kj-prize-table tbody tr:first-child td { background: var(--brand-light); color: var(--text); font-weight: 600; }
.kj-prize-table td:nth-child(2),
.kj-prize-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.kj-hist-table td { padding-top: 10px; padding-bottom: 10px; }
.kj-issue-link {
  display: inline-block; padding: 0; border: 0;
  font-size: inherit; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kj-issue-link:hover { color: var(--brand); }
.kj-hist-date { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* 相关栏目的三组链接：加小标题与虚线分隔，避免三坨链接挤在一起分不清 */
.kj-link-group + .kj-link-group { margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid #f1f3f6; }
.kj-link-label { margin-bottom: 8px; font-size: var(--fs-xs); color: var(--text-3); }
.kj-link-group .link-chips { gap: 8px 12px; }

.kj-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* 历史开奖工具栏的期号筛选：与年份下拉同高（紧凑档 --ctl-h-sm），输入框按内容自适应宽度 */
.kj-issue-search { display: inline-flex; align-items: center; gap: 6px; }
.kj-issue-search .layui-input {
  width: 176px; height: var(--ctl-h-sm); padding: 0 10px; line-height: var(--ctl-h-sm);
  font-size: var(--fs-xs); border: 1px solid var(--btn-border); border-radius: var(--ctl-radius);
}
.kj-issue-search .layui-btn {
  height: var(--ctl-h-sm); line-height: var(--ctl-h-sm); padding: 0 10px; font-size: var(--fs-xs);
  /* 小尺寸按钮跟 .zq-btn 一样收到 8px 圆角（大按钮是 9px） */
  border-radius: 8px;
}
.kj-empty { padding: 18px 0; text-align: center; color: var(--text-3); }
.kj-latest { padding: var(--pad-y) var(--pad-x); }
.kj-latest .kj-tip { font-size: var(--fs-sm); color: var(--text-3); margin-bottom: 10px; }
.kj-latest .kj-balls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.kj-latest .kj-balls .ball { width: 42px; height: 42px; font-size: var(--fs-xl); }
.kj-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-sm); color: var(--text-2); }
.kj-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 16px; flex-wrap: wrap; }
.kj-tabs a { padding: 10px 14px; font-size: var(--fs-sm); color: var(--text-2); border-bottom: 2px solid transparent; }
.kj-tabs a.active, .kj-tabs a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* 历史开奖卡片：页签 / 期数选择与标题同一栏。
   页签做成轻量分段控件：浅灰底槽 + 白色选中块 + 品牌色文字，
   既看得出是可切换控件，又不会被误读成两个并排的标题。 */
.kj-hist-hd { flex-wrap: nowrap; }
.kj-hist-tabs {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px; background: var(--bg-2); border-radius: 8px;
}
.kj-hist-tabs a {
  padding: 4px 14px; border-radius: 6px; line-height: 20px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-2);
  transition: background .15s, color .15s;
}
.kj-hist-tabs a:hover { color: var(--brand); }
.kj-hist-tabs a.on {
  background: #fff; color: var(--brand); font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.kj-hist-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.kj-hist-tools .kj-count { margin-left: 0; }
.kj-hist-more { margin-left: 0; }

/* 年份筛选：自定义下拉（details + 链接），不依赖 layui.js。
   展开层会越过卡片下边界，因此本卡片放开 overflow。卡片已无圆角，
   表格滚动容器不再需要补底部圆角。 */
.kj-hist-card { overflow: visible; scroll-margin-top: 12px; }
.kj-hist-card .table-scroll { border-radius: 0; }
.kj-year { position: relative; display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.kj-year-dd { position: relative; }
.kj-year-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  min-width: 84px; height: var(--ctl-h-sm); padding: 0 9px 0 10px;
  border: 1px solid var(--btn-border); border-radius: var(--ctl-radius); background: #fff;
  color: var(--text-2); font-size: var(--fs-xs); cursor: pointer;
  list-style: none; transition: border-color .2s;
}
.kj-year-btn::-webkit-details-marker { display: none; }
.kj-year-btn::marker { content: ""; }
.kj-year-btn:hover { border-color: #c4c4c4; }
.kj-year-dd[open] .kj-year-btn { border-color: var(--brand); }
/* 下拉箭头用纯 CSS 三角，不依赖图标字体，任何环境下都能显示 */
.kj-caret {
  width: 0; height: 0; flex: none;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-3);
  transition: transform .2s;
}
.kj-year-dd[open] .kj-caret { transform: rotate(180deg); }
.kj-year-menu {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 30;
  min-width: 100%; max-height: 260px; overflow-y: auto;
  padding: 5px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-md);
}
.kj-year-menu a { display: block; padding: 7px 12px; border-radius: 7px; font-size: var(--fs-xs); color: var(--text-2); }
.kj-year-menu a:hover { background: var(--bg-2); color: var(--brand); }
.kj-year-menu a.on { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.kj-year-hint { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
/* 期数下拉只在手机端启用；PC 沿用下面的按钮组 */
.kj-count-select { display: none; }
.kj-count {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap;
}
/* 期数是独立的小按钮，不沿用页签样式 */
.kj-count a { padding: 3px 10px; border: 1px solid var(--btn-border); border-radius: 999px; color: var(--text-2); }
.kj-count a:hover { color: var(--brand); border-color: var(--brand); }
.kj-count a.on { color: var(--brand); border-color: var(--brand); background: var(--brand-light); }

/* ============================================================
   文章详情页 article.html
   ============================================================ */
.article-card { position: relative; }
/* align-items: start —— 默认的 stretch 会把正文卡片拉到与右侧栏等高，
   正文较短时卡片底部就会出现一大片空白（像被设置了 min-height）。 */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--card-gap) var(--card-gap-x); align-items: start; }
/* 主列：正文卡片 + 评论区。min-width:0 允许列内长内容收缩，避免撑破网格。 */
.art-main { min-width: 0; }

/* 阅读进度条 */
.read-progress {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: transparent; z-index: 2;
}
.read-progress > span {
  display: block; height: 100%; width: 0;
  background: var(--brand);
  transition: width .15s linear;
}

/* ---------- 文章头部 ---------- */
/* 顶部留白交给 .card-bd 的 --pad-y，标题区自身与下方正文保持 --gap-lg 的块间距 */
.article-head { padding: 0 0 var(--pad-y); border-bottom: 1px solid var(--border); margin-bottom: var(--gap-lg); }

/* 徽章行 */
.art-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.art-badges [class^="art-"] {
  display: inline-flex; align-items: center;
  padding: 2px 9px; height: 20px;
  font-size: var(--fs-2xs); font-weight: 500; line-height: 1;
  border-radius: 999px; letter-spacing: .3px;
}
.art-issue   { background: #fff5f5; color: var(--brand); border: 1px solid #fde0e0; }
.art-expert  { background: #eef3f8; color: var(--link); border: 1px solid #dce6f2; }
.art-col     { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); }
.art-col:hover { background: var(--brand-light); color: var(--brand); border-color: #fde0e0; }

/* 标题 */
.article-head h1 {
  font-size: var(--fs-article-title); line-height: 1.38; margin-bottom: 14px;
  font-weight: 700; letter-spacing: 0; color: var(--text);
}

/* meta 行：发布/更新/来源/编辑/阅读数 + 右侧工具按钮 */
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 16px; font-size: var(--fs-xs); color: var(--text-3);
  line-height: 1.5;
}
.article-meta > span::before { content: "·"; margin-right: 14px; color: var(--border-2); }
.article-meta > span:first-child::before { display: none; }
/* 分析师徽章移入 meta 行后，保留内边距与字号，避免只剩底色和边框 */
.article-meta .art-expert { padding: 1px 7px; font-size: var(--fs-2xs); line-height: 1.6; }

/* 工具按钮组：在 meta flex 容器里自然靠右 */
.article-tools {
  display: flex; gap: 4px; margin-left: auto; flex: none;
}
.art-tb {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px;
  border: 1px solid var(--btn-border); border-radius: 8px;
  background: #fff; color: var(--text-2);
  font-size: var(--fs-xs); cursor: pointer;
  transition: all .15s;
}
.art-tb:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.art-tb svg { flex: none; }
.art-tb.on { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.art-tb:disabled { cursor: default; opacity: .7; }

/* ---------- 分享面板 ---------- */
.share-pop { position: relative; }
.share-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: 196px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.share-panel[hidden] { display: none; }
.sp-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border: 0; background: none;
  font-size: var(--fs-sm); line-height: 1.4; color: var(--text-2);
  text-align: left; cursor: pointer;
}
.sp-item:hover, .sp-item:focus-visible,
.sp-item.on { background: var(--brand-light); color: var(--brand); }
.sp-item:disabled { cursor: default; }
.sp-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.sp-wechat { background: #07c160; }
.sp-weibo { background: #e6162d; }
.sp-qq { background: #12b7f5; }
.sp-qzone { background: #f5b800; }
.sp-copy { background: var(--text-3); }
.sp-native { background: var(--brand); }
.share-qr {
  margin-top: 4px; padding: 10px 0 4px;
  border-top: 1px solid var(--border); text-align: center;
}
.share-qr img { width: 120px; height: 120px; display: inline-block; }
.share-qr-tip {
  margin: 6px 0 0; padding: 0 4px;
  font-size: var(--fs-xs); line-height: 1.5; color: var(--text-3);
}

/* ---------- 摘要 ---------- */
.article-summary {
  display: flex; gap: 12px; padding: 14px 16px; margin-bottom: var(--gap-lg);
  background: #fff8f8; border: 1px solid #fbe0e0; border-left: 3px solid var(--brand);
  border-radius: 12px;
  font-size: var(--fs-base); line-height: 1.8; color: var(--text-2);
}
.article-summary-label {
  flex: none; font-weight: 600; color: var(--brand);
  padding-top: 1px; font-size: var(--fs-sm);
}
.article-summary p { margin: 0; }

/* ---------- 正文排版 ---------- */
.article-body { font-size: var(--fs-article-body); line-height: 2; color: var(--text); }
.article-body p { margin-bottom: 18px; }

/* 标题 */
.article-body h2,
.article-body h3 {
  margin: 32px 0 14px; font-weight: 600; line-height: 1.4;
  scroll-margin-top: 80px;
}
.article-body h2 {
  font-size: var(--fs-article-h2); padding-left: 12px;
  border-left: 3px solid var(--brand);
}
.article-body h3 {
  font-size: var(--fs-article-h3); padding-left: 10px;
  border-left: 3px solid #e3e7ee; border-radius: 2px;
  color: var(--text);
}

/* 列表 */
.article-body ul,
.article-body ol { margin: 0 0 18px 0; padding-left: 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body li:last-child { margin-bottom: 0; }

/* 引用 */
.article-body blockquote {
  margin: 18px 0; padding: 14px 16px;
  background: #f8fafc; border: 1px solid #eef1f5; border-left: 3px solid var(--brand);
  border-radius: 10px;
  font-size: var(--fs-base); line-height: 1.9; color: var(--text-2);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* 代码 */
.article-body code {
  padding: 1px 6px; background: #f1f3f6; border-radius: 5px;
  font-size: .9em; font-family: "SF Mono", "Consolas", monospace;
  color: var(--brand-dark);
}
.article-body pre {
  margin: 18px 0; padding: 16px 18px;
  background: #1c2027; border-radius: 12px; overflow-x: auto;
}
.article-body pre code {
  padding: 0; background: transparent; color: #e0e0e0; font-size: var(--fs-sm);
}

/* 表格 */
.article-body .table,
.article-body table {
  width: 100%; margin: 18px 0; border-collapse: collapse;
  font-size: var(--fs-sm);
}
.article-body th,
.article-body td {
  padding: 9px 12px; border: 1px solid var(--border);
  text-align: center;
}
.article-body th { background: var(--bg-2); font-weight: 600; color: var(--text-2); }
.article-body tr:hover td { background: #fafbfc; }

/* 图片 */
.article-body img {
  max-width: 100%; height: auto;
  display: block; margin: 18px auto;
}

/* 分隔线 */
.article-body hr {
  margin: var(--gap-lg) 0; border: 0; border-top: 1px solid var(--border);
}

/* 行内强调 */
.article-body strong,
.article-body b { font-weight: 600; color: var(--text); }
.article-body em,
.article-body i { font-style: italic; color: var(--text-2); }

/* 中奖号码行内样式（正文里的 kw-title） */
.article-body .kw-title { font-weight: 600; margin: 20px 0 10px; font-size: var(--fs-md); }

/* ---------- 推荐数据面板 ---------- */
.reco-panel {
  margin: 0 0 var(--gap-lg); padding: 18px;
  background: linear-gradient(180deg, #fff6f6 0%, #fff 100%);
  border: 1px solid #fbe0e0; border-radius: 14px;
}
.reco-hd {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed #fde0e0;
}
.reco-hd h2 {
  margin: 0; font-size: var(--fs-md); font-weight: 600; padding: 0; border: 0;
  color: var(--brand);
}
/* 推荐列表：两列「标签 + 号码」，一条一行。
   这块只放本期可打的号码，量少（通常 3~8 条），用卡片网格会把面板撑得很散，
   还会出现「一项一张卡、右边留白」的问题；两列定宽标签 + 号码球既对齐又紧凑，
   不管几条都自动铺满整行。 */
.reco-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}
.reco-item {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid #f0d3d3;
  border-radius: 8px;
}
/* 语气色条与后端 Tone 对齐：hot（胆/码）=红、cold（杀）=蓝、neutral（和值/跨度）=灰。 */
.reco-item.tone-hot     { border-left-color: var(--ball-red); }
.reco-item.tone-cold    { border-left-color: var(--ball-blue); }
.reco-item.tone-neutral { border-left-color: #c3c9d4; }
.reco-item dt {
  font-size: var(--fs-xs); color: var(--text-3); font-weight: 500;
  line-height: 1.5; overflow-wrap: anywhere;
}
/* 杀码用蓝色标签，和胆码一眼区分开。 */
.reco-item.tone-cold dt { color: var(--ball-blue); }
/* 奇数条时最后一条跨两列铺满，免得右下角空出半格（5 条最常见）。 */
.reco-list > .reco-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.reco-item dd { margin: 0; font-size: var(--fs-sm); min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reco-balls { display: flex; flex-wrap: wrap; gap: 4px; }
/* 双区彩种的 + 号：分隔红球与蓝球（大乐透为前区/后区）。
   + 与后一组号码打包成一个不可拆的 flex 项，换行时不会出现「…… +」孤零零留在行尾。 */
.reco-zone { display: inline-flex; align-items: center; gap: 4px; }
.reco-plus { color: var(--text-3); font-weight: 600; line-height: 1; }
.reco-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ef5a5a 0%, var(--ball-red) 52%, var(--ball-red-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(16, 24, 40, .14);
  color: #fff; font-size: var(--fs-2xs); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.reco-num-blue {
  background: radial-gradient(circle at 32% 26%, #4e8fd8 0%, var(--ball-blue) 52%, var(--ball-blue-dark) 100%);
}
/* 号码组合（直组号 / 精选三位号）宽度不固定，用等宽数字撑开更整齐。 */
.reco-text { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 开奖结果区 ---------- */
.article-draw {
  margin: var(--gap-lg) 0; padding: 20px;
  background: #f7f9fc; border-radius: 14px; border: 1px solid var(--border);
}
/* 最新一期单独成卡，与下方「最新 5 期」用分隔线隔开 */
.draw-latest {
  padding: 18px 20px 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  border-left: 3px solid var(--brand);
}
.article-draw-hd {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.article-draw-hd h2 {
  margin: 0; font-size: var(--fs-md); font-weight: 600; padding: 0; border: 0;
}
.draw-state {
  padding: 2px 10px; height: 20px;
  font-size: var(--fs-2xs); font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; border-radius: 999px;
}
.draw-state.ok   { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.draw-state.wait { background: #fff3e0; color: #b34700; border: 1px solid #ffe0b2; }
.draw-main {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 14px;
}
.draw-main .balls { gap: 8px; }
.article-draw .draw-main .ball { width: 32px; height: 32px; font-size: var(--fs-base); }
/* 号码较多（如快乐8 每期 20 个号）：缩小号码球，避免最新一期独占半屏 */
.draw-main .balls-many { gap: 6px; }
.article-draw .balls-many .ball { width: 24px; height: 24px; font-size: var(--fs-2xs); }
.draw-date {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; background: #f7f8fa; border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums;
}
.draw-date-label { font-size: var(--fs-2xs); color: var(--text-3); }
.draw-tip { font-size: var(--fs-sm); color: var(--text-3); margin-top: 10px; }

/* 最新 5 期：与上方「最新一期」同为白卡片，靠间距区分，不再用深色分隔线 */
.draw-recent {
  margin-top: 12px; padding: 16px 20px 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
}
.draw-recent-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.draw-more { font-size: var(--fs-xs); color: var(--text-3); }
.draw-more:hover { color: var(--brand); }
.draw-recent .kw-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 0; font-size: var(--fs-md);
  font-weight: 600; color: var(--text);
}
.draw-recent .kw-title::before {
  content: ""; flex: none; width: 3px; height: 14px; background: var(--brand);
}
/* 标题已是卡片头，表格不再套第二层边框 */
.draw-recent .table-scroll { background: transparent; border: 0; border-radius: 0; overflow: hidden; }
/* 表头与内容统一左对齐、固定列宽，号码起始位置上下成一条竖线 */
.draw-recent .table.layui-table { table-layout: fixed; }
.draw-recent .table.layui-table th:first-child { width: 56%; }
.draw-recent .table.layui-table th,
.draw-recent .table.layui-table td { padding: 11px 8px; text-align: left; }
.draw-recent .table.layui-table th:first-child,
.draw-recent .table.layui-table td:first-child { padding-left: 4px; }
.draw-recent .table.layui-table th:last-child,
.draw-recent .table.layui-table td:last-child { padding-right: 4px; }
/* 表头去掉灰底块：轻量小字 + 一条细线，避免和卡片头形成两条并列的「标题条」 */
.draw-recent .table.layui-table th {
  background: transparent; border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-3);
}
.draw-recent .table.layui-table tbody tr:last-child td { border-bottom: 0; }
/* 期号与开奖日期合并列：PC 并排，手机换行（见 mobile.css） */
.draw-when { display: flex; align-items: baseline; gap: 10px; min-width: 150px; white-space: nowrap; }
.draw-when-issue {
  color: var(--text); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.draw-when-date {
  font-size: var(--fs-2xs); color: var(--text-3); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.draw-recent .table td:last-child { white-space: nowrap; }

/* 原文链接（转载详情页）：与正文保持统一的段间距，避免贴着正文 */
.article-source {
  margin: var(--gap-md) 0 0;
  font-size: var(--fs-sm); line-height: 1.7; color: var(--text-3);
  word-break: break-all;
}

/* ---------- 关键词 ---------- */
.article-keywords {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: var(--gap-lg) 0; padding: 14px 0; border-top: 1px solid var(--border);
}
.article-keywords .kw-label {
  flex: none; font-size: var(--fs-xs); color: var(--text-3); font-weight: 500;
  margin-right: 4px;
}
.article-keywords a {
  padding: 3px 11px; background: #f8fafc; border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--fs-xs); color: var(--text-2);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.article-keywords a:hover { background: var(--brand-light); color: var(--brand); border-color: #fde0e0; }

/* ---------- 翻页 ---------- */
.article-nav {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px;
  align-items: stretch;
  margin-top: var(--gap-lg); padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.article-nav > span { display: block; }
/* 上一篇 / 下一篇：左侧（或右侧）固定箭头，纵向居中；文字区两行，
   标题单行省略，两张卡片等高对称。 */
.art-nav-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 12px 16px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-2); transition: all .15s ease;
  min-width: 0;
}
.art-nav-item.next { grid-template-columns: minmax(0, 1fr) auto; text-align: right; }
.art-nav-item:hover { border-color: #f3caca; background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.art-nav-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.art-nav-label { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.4; }
.art-nav-arrow {
  font-size: 16px; line-height: 1; color: var(--text-3);
  transition: transform .15s ease, color .15s ease;
}
.art-nav-item:hover .art-nav-arrow { color: var(--brand); }
.art-nav-item.prev:hover .art-nav-arrow { transform: translateX(-3px); }
.art-nav-item.next:hover .art-nav-arrow { transform: translateX(3px); }
.art-nav-item .art-nav-title {
  font-weight: 500; color: var(--text); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.art-nav-item:hover .art-nav-title { color: var(--brand); }
.art-nav-back {
  display: inline-flex; align-items: center; justify-content: center; align-self: center;
  padding: 7px 14px; border-radius: 999px;
  color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.art-nav-back:hover { color: var(--brand); background: var(--brand-light); }

/* ---------- 关于页 ---------- */
.about-content { font-size: var(--fs-md); line-height: 1.9; color: var(--text-2); }
.about-content h2 { font-size: var(--fs-lg); color: var(--text); margin: 20px 0 10px; }
.about-content p { margin-bottom: 12px; }
/* layui 把 ul/ol 的 list-style 与间距全部清零，关于页正文里的条目列表需自行恢复。
   layui 的 `li{list-style:none}` 直接作用在 li 上，优先级高于从 ul 继承的值，
   所以圆点必须写在 li 上。 */
.about-content ul,
.about-content ol { margin: 0 0 12px; padding-left: 22px; }
.about-content li { list-style: disc; margin-bottom: 6px; }
.about-content ol li { list-style: decimal; }
.about-content li:last-child { margin-bottom: 0; }
/* 全站 a 继承正文色，站点地图这类纯链接页需要把链接与正文区分开 */
.about-content a { color: var(--brand); }
.about-content a:hover { text-decoration: underline; }

/* ---------- 号码球行内小尺寸（快讯条） ----------
   号码球承载的是开奖号码本身（真实数据），不是装饰：字号取 --fs-xs(12px)。
   两位数（如 "75"）在 20px 圆内实测不溢出，见 probe_ball.mjs。 */
.balls-xs .ball { width: 20px; height: 20px; font-size: var(--fs-xs); }

/* ---------- 窄屏 PC（1024~1199px）主行压缩 ----------
   导航只有 5~6 项（AI 开关决定末尾那项），不需要为换行做减法；这里只压导航项的
   内边距（负 margin 跟着改，首项文字才仍压在容器左缘）。搜索胶囊保持 146px ——
   收到 104px 时占位文字「搜索开奖号 / 文章」会被裁掉半句，而 992px 的容器完全
   放得下（6 项导航约 490px，加搜索胶囊仍余 300px 以上）。 */
@media (max-width: 1199px) and (min-width: 1024px) {
  html[data-dev="pc"] .header-bar { gap: 12px; }
  html[data-dev="pc"] .main-nav { margin-left: -11px; }
  html[data-dev="pc"] .main-nav > li > a { padding: 0 11px; font-size: var(--fs-base); }
  html[data-dev="pc"] .main-nav > li.active::after { left: 11px; right: 11px; }
}

/* ---------- 含内部滚动区的页面不吸顶 ----------
   走势图的表格在 .zst-scroll 里（overflow:auto + max-height:74vh），两行表头
   是相对**这个容器**顶部吸的（top:0 / 24px），不是相对视口。
   一旦页面把容器顶端滚到头部底下，表头就永远藏在吸顶头部后面 —— 所以这类页面
   让位给数据：头部回到普通文档流，表头照旧在容器内吸顶。
   （同一条 :has 判定，和上面隐藏彩种条用的是同一批页面。） */
html[data-dev="pc"] body:has(.zst-scroll) .header { position: static; }

/* ---------- 吸顶后的层次 ----------
   未滚动时头部只有一道极浅的投影；滚起来（0→90px）渐变成实一点的阴影 +
   加深的下描边，让「头部浮在内容上」这件事不靠猜。用滚动驱动动画实现，
   不支持 animation-timeline 的浏览器停在静态态，不影响可用性。 */
@supports (animation-timeline: scroll()) {
  html[data-dev="pc"] .header {
    animation: hd-lift linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 90px;
  }
}
@keyframes hd-lift {
  from {
    box-shadow: 0 6px 16px -14px rgba(20, 26, 38, .45);
    border-bottom-color: #eef0f3;
  }
  to {
    box-shadow: 0 12px 26px -16px rgba(20, 26, 38, .55);
    border-bottom-color: #dfe3ea;
  }
}
