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

/* 与主站 public/css/style.css 的 :root 同名同值——资料区嵌在主站页面里，
   蓝色、分隔线、文字色必须是同一套，改色要两处一起改。 */
:root {
  --blue: #2f8bff;
  --blue-dark: #1f6fe0;
  --line: #eceff3;
  --text: #222;
  --muted: #8a93a2;
  /* 下面两个主站没有：
     --ink-2  次要文字色。--muted 在白底上只有 3.2:1，期数、表头这类要读的字
              用它会发虚；这个是 4.7:1，过 WCAG AA
     --panel  浅底面板，取自主站 .tz-note / .his-more 的底色 */
  --ink-2: #6b7482;
  --panel: #f7f9fc;
}

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* 默认不预留滚动条槽，去掉右侧灰条/拉动框 */
  overflow-y: auto;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* 旧 Edge */
  scrollbar-gutter: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 彻底隐藏各浏览器滚动条（含 WebKit 预留槽） */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}

/* 被主站 iframe 嵌入时：内部禁止滚动，右侧拉动框消失
   （高度由父页按 embed-height 撑满，滚动在主站页面） */
html.is-embedded,
html.is-embedded body {
  overflow: hidden !important;
  height: 100%;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, .05);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.card:last-child { margin-bottom: 0; }

/* 图文交替流 */
.unit-stream {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.unit-card .card-title { font-size: 15px; color: #666; font-weight: 700; }
.unit-card.unit-pic .card-title { color: #334b99; }
/* 文字栏目的名字由栏目自己的标题行（.cat-title / .col-head）带出来，
   外层这个卡片标题只会让同一个名字连着出现两遍，藏掉 */
.unit-card.unit-txt > .card-title { display: none; }
.unit-card .p-card:last-child,
.unit-card .cat-block:last-child,
.unit-card .col-block:last-child { margin-bottom: 0; }
.unit-card .pic-list.unit { gap: 12px; }

/* —— 栏目标题行 ——
   和主站 .card-title 一个样子：蓝色竖条 + 深色粗体，右侧「共 N 期」弱化。
   以前是一条彩色渐变色块、六种颜色轮换（JS 仍会加 accent-* 类，这里不再用），
   和主站只用一种蓝的风格对不上。 */
.col-block,
.cat-block { width: 100%; }
.col-head,
.cat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  padding-left: 10px;
  margin-bottom: 12px;
  color: #333;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
.col-head::before,
.cat-title::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 4px; border-radius: 4px; background: var(--blue);
}
.col-sub {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

/* 整版栏目：多期连在一起，期与期之间一道细线 */
.col-period {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.col-period:first-child { padding-top: 0; }
.col-period:last-child { border-bottom: 0; padding-bottom: 0; }
.col-period-hd {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  padding-left: 10px;
  position: relative;
  margin-bottom: 12px;
}
.card-title::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 4px; border-radius: 4px; background: var(--blue);
}

.meta {
  font-size: 12px;
  color: var(--ink-2);
  margin: -4px 0 12px;
  line-height: 1.5;
}

/* —— 参考站风格：彩色快捷按钮 —— */
.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  display: inline-block;
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.lottery-tab.cur {
  outline: 2px solid rgba(0,0,0,.2);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(47,139,255,.25);
}
.demo-meta { padding: 0 2px 10px; }

.draw-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 700;
}
.draw-bar.accent-blue { background: linear-gradient(90deg, #2f8bff, #5aa7ff); }
.draw-bar.accent-teal { background: linear-gradient(90deg, #00897b, #26a69a); }
.draw-bar.accent-orange { background: linear-gradient(90deg, #f1680e, #ff944d); }
.draw-name {
  background: rgba(255,255,255,.22);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.draw-period { font-size: 14px; }
.draw-balls { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #c62828;
  font-size: 12px;
  font-weight: 800;
}

/* —— 期数卡片（参考彩色区块） —— */
.p-card {
  border: 1px solid #eceff3;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.p-card:last-child { margin-bottom: 0; }
.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
}
.p-no { font-size: 15px; letter-spacing: .02em; }
.p-tag {
  font-size: 11px;
  background: rgba(255,255,255,.22);
  padding: 2px 8px;
  border-radius: 999px;
}
.p-body { padding: 10px 12px 12px; }

.accent-blue .p-head { background: linear-gradient(90deg, #2f8bff, #5aa7ff); }
.accent-green .p-head { background: linear-gradient(90deg, #339966, #4caf7a); }
.accent-orange .p-head { background: linear-gradient(90deg, #f1680e, #ff944d); }
.accent-purple .p-head { background: linear-gradient(90deg, #993385, #c45aad); }
.accent-red .p-head { background: linear-gradient(90deg, #d32f2f, #ef5350); }
.accent-teal .p-head { background: linear-gradient(90deg, #00897b, #26a69a); }

.line {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px 10px;
  margin-bottom: 8px;
  line-height: 1.75;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.line:last-child { margin-bottom: 0; }
.k {
  color: var(--ink-2);
  flex: 0 0 3em;
  font-size: 14px;
  line-height: 1.75;
}
.v {
  color: #333;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.v.nums {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-size: 15px;
}
.hit {
  background: #fff3b0;
  color: #c62828;
  padding: 0 3px;
  border-radius: 3px;
}
.hit-note {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
/* 对 / 错：有数据含义的红绿，只统一尺寸 */
.mark-ok,
.mark-bad {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  padding: 0 6px;
  border-radius: 6px;
  margin-left: 2px;
}
.mark-ok { background: #e8f5e9; color: #2e7d32; }
.mark-bad { background: #fce4ec; color: #c62828; }

/* —— 分类表 ——
   只在行与行之间画细线，和主站开奖记录（.his-row）一个做法；
   以前是四边全画格线再加隔行变色，满屏都是线。 */
.cats { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.cat-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  table-layout: fixed;
}
.cat-table th,
.cat-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cat-table th {
  padding-top: 8px;
  padding-bottom: 8px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.cat-table th:first-child { border-radius: 8px 0 0 8px; }
.cat-table th:last-child { border-radius: 0 8px 8px 0; }
.cat-table td {
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.cat-table tbody tr:last-child td { border-bottom: 0; padding-bottom: 2px; }
/* 期数窄、推荐吃满中间、开奖紧凑 —— 减少右侧空列感 */
.cat-table th:nth-child(1),
.cat-table td:nth-child(1) {
  width: 22%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cat-table td:nth-child(1) {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
/* 第一行是最新一期（还没开奖），也是来看资料的人要找的那一行，期数用主色点出来 */
.cat-table tbody tr:first-child td:nth-child(1) { color: var(--blue); }
.cat-table th:nth-child(2),
.cat-table td:nth-child(2) { width: 48%; }
.cat-table td:nth-child(2) {
  font-weight: 600;
  color: var(--text);
  /* 「9尾」「1头」这类词不能从数字和汉字之间拆开（窄屏上出现过「9」留在行尾、
     「尾」掉到下一行）。keep-all 只在空格和号码串的零宽断点处换行；
     真放不下时 td 上的 overflow-wrap:anywhere 兜底，不会撑破表格 */
  word-break: keep-all;
}
.cat-table th:nth-child(3),
.cat-table td:nth-child(3) { width: 30%; }
.cat-table td:nth-child(3) { font-size: 14px; }

/* —— 图片 —— */
.pic-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}
.pic { margin: 0; width: 100%; max-width: 100%; }
.pic picture {
  display: block;
  width: 100%;
  max-width: 100%;
}
.pic img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #eceff3;
  background: #f4f6fa;
}
.pic figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

/* 触底加载：未激活块不占布局、不拉图片 */
.unit-deferred {
  display: none !important;
}
.unit-active {
  display: block;
}
.pic-deferred img {
  min-height: 120px;
  background: #f4f6fa;
}

.load-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.more-wrap {
  margin-top: 14px;
  margin-bottom: 8px;
  text-align: center;
}
/* 与主站统计页的「加载更多」（.his-more）同一个样子 */
.btn-more {
  display: block;
  width: 100%;
  padding: 11px 0;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: var(--panel);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .15s ease-out;
}
@media (hover: hover) {
  .btn-more:hover { background: #eef3fa; }
}
.btn-more:active { background: #eef3fa; }
.btn-more:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.load-tip {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.load-done {
  text-align: center;
  padding: 8px 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-more { transition: none; }
}

/* 手机：字再大一点、左右贴满、表格推荐列吃宽 */
@media (max-width: 640px) {
  html, body { font-size: 16px; }
  .card {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .card-title { font-size: 15px; margin-bottom: 10px; }
  .col-head,
  .cat-title { font-size: 15px; margin-bottom: 10px; }
  .col-period { padding: 10px 0; }
  .line {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 8px;
  }
  .k {
    flex: 0 0 2.8em;
    font-size: 13px;
    margin-bottom: 0;
  }
  .v {
    flex: 1 1 auto;
    width: auto;
    font-size: 16px;
  }
  .v.nums { font-size: 15px; }
  .p-head { padding: 9px 10px; }
  .p-body { padding: 10px; }
  .cat-table { font-size: 14px; }
  .cat-table th,
  .cat-table td { padding: 9px 6px; }
  .cat-table th { padding-top: 7px; padding-bottom: 7px; }
  /* 期数更窄，推荐更宽，减少右侧空白 */
  .cat-table th:nth-child(1),
  .cat-table td:nth-child(1) {
    width: 20%;
    padding-left: 6px;
    padding-right: 4px;
  }
  .cat-table td:nth-child(1) { font-size: 13px; }
  .cat-table th:nth-child(2),
  .cat-table td:nth-child(2) {
    width: 52%;
  }
  .cat-table th:nth-child(3),
  .cat-table td:nth-child(3) {
    width: 28%;
    padding-left: 4px;
    padding-right: 6px;
  }
  .pic figcaption { font-size: 13px; }
}


/* ===== 2026-08-26 新增文字栏目 ===== */
/* 杀系列的划除线。推荐类是"买这个"，杀类是"别买这个"，
   同一张表里必须一眼分得开，所以给一道实线 + 灰掉。 */
del.killed {
  color: #9aa0a6;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #d0342c;
  margin-left: 2px;
}
/* 波色用本色标出来，比写"红波"两个字直观 */
.w-r { color: #d0342c; }
.w-b { color: #1a56db; }
.w-g { color: #14804a; }
/* 话术：跟在推荐下面的小字，不抢主体 */
.cat-table .tip {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* 特码玄机诗：全站唯一不是表格的栏目，排成一张张诗笺打断节奏。
   底色用主站的浅面板色，不再单独起一套米黄信纸色；楷体保留，诗笺感靠它。 */
.poem-col .col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.poem-card {
  padding: 12px 14px 13px;
  background: var(--panel);
  border-radius: 10px;
}
.pm-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pm-res { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.pm-body {
  margin: 9px 0 10px;
  font-family: "STKaiti", "LXGW WenKai", "KaiTi", serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  letter-spacing: 0.08em;
  text-align: center;
}
.pm-body p { margin: 0; }
/* 悬挂缩进：「解」后面的长句换行时和第一行正文对齐，不再折回标签底下 */
.pm-ft {
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  padding-left: 4.5em;
  text-indent: -4.5em;
}
.pm-ft .k {
  display: inline-block;
  min-width: 4.5em;
  font-size: inherit;      /* 和 .pm-ft 同字号，4.5em 才和上面的缩进量对得齐 */
  line-height: inherit;
  text-indent: 0;          /* text-indent 会继承进 inline-block，不清掉标签字会被推出去 */
  color: var(--ink-2);
}
/* 同一行里后面的标签（「生肖」）只需和前文隔开，不必占满 4.5em 的对齐宽度 */
.pm-ft .k ~ .k {
  min-width: 0;
  margin: 0 6px 0 12px;
}
.pm-ft b { color: var(--blue-dark); }

/* ===== 2026-08-30 平特一肖 ===== */
/* 全站唯一一个「一格里三条推荐」的栏目：主推一行 + 两行参考。
   也是唯一按六个平码判对错的栏目，所以开奖格里贴的是平码不是特码。 */
/* 每条推荐固定两行。四段挤一行的话，360px 屏上主推换行、参考不换行，
   三条长短不一像排版坏了；拆成两行反而更矮也更整齐。 */
.pt1-row { line-height: 1.6; }
.pt1-row + .pt1-row { margin-top: 5px; }
.pt1-l1, .pt1-l2 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pt1-l2 { margin-top: -1px; }
/* 主推和参考必须一眼分得开，不然三行看着一样重。主推用主站的蓝，参考用中性灰 */
.pt1-tag {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: #f0f2f5;
  border-radius: 4px;
  padding: 0 5px;
  letter-spacing: 0.04em;
}
.pt1-main .pt1-tag {
  color: var(--blue-dark);
  background: #eef4ff;
}
.pt1-z { font-weight: 700; }
.pt1-main .pt1-z { font-size: 16px; color: var(--blue-dark); }
.pt1-n {
  font-size: 13px;
  font-weight: 600;
  color: #5f6368;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
/* 出处（冷/热/干支）：给的是理由不是主体，压到最小 */
.pt1-why {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-2);
}
.pt1-hit { display: inline-block; white-space: nowrap; }
.pt1-ping {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
