/** 模板2 布局与资料区（开奖区见 template2-kj.css） */
body.template2-page {
  display: flex;
  justify-content: center;
  margin: 0;
  background: #ececec;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.template2-page .main {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
}

.template2-page .conten {
  width: 100%;
}

/* 顶图与模板1一致：1280×492 比例，同源 /api/site/config 顶图 */
.template2-page .hero-carousel {
  aspect-ratio: 1280 / 492;
  width: 100%;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.template2-page .hero-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.template2-page .hero-banner {
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  transition: opacity 0.35s;
  position: absolute;
  inset: 0;
  background: #fff;
}

.template2-page .hero-banner.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.template2-page .hero-banner[hidden] {
  visibility: hidden;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 开奖区容器 */
.template2-page .iframe-conten {
  background: #fff;
}

/* 资料大类 Tab 区 */
.template2-page .bigBox {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  margin-top: -0.1rem;
  padding-top: 0.2rem;
  font-size: 18px !important;
}

.template2-page .bigBox ul {
  text-align: left;
  list-style: none;
  margin: 0;
  padding: 0;
}

.template2-page .bigBox .t2-group-switch {
  display: flex;
  width: 100%;
  border: 1px solid #0e9f0c;
  font-size: 16px;
  line-height: 32px;
  margin: 14px 0;
}

.template2-page .bigBox .t2-group-switch > div {
  flex: 1;
  text-align: center;
  cursor: pointer;
  user-select: none;
  background: #fff;
  color: #333;
}

.template2-page .bigBox .t2-group-switch > div.act {
  color: #fff;
  background-color: #0e9f0c;
}

.template2-page .box11 {
  width: 100%;
  margin: 0.1rem auto;
  overflow: hidden;
  border-radius: 5px;
}

.template2-page .box.kaka {
  margin-bottom: 10px;
}

.template2-page .t2-material-empty {
  margin: 16px 8px;
  padding: 12px;
  text-align: center;
  color: #888;
  font-size: 16px;
}

/* 参考站底部对照图（五行 / 波色 / 生肖） */
.template2-page .template2-reference-charts {
  width: 100%;
  padding: 8px 6px 12px;
  box-sizing: border-box;
  background: #f5f5f5;
}

.template2-page .template2-reference-charts .conten-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template2-page .template2-reference-charts img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  border: 0;
}

.template2-page .kaka .data-ul li {
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 5px 0 1px 6px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  list-style: none;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.template2-page .kaka .data-ul li p {
  width: 100%;
  font-size: 18px !important;
  font-weight: bold !important;
  line-height: 35px;
  margin: 0;
  text-align: left;
  color: #262626;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: 0.02em;
}

.template2-page .kaka .data-ul > li > p font[color="red"],
.template2-page .kaka .data-ul > li > p .t2-red {
  color: #f00 !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* 期号、开奖号等：等宽数字，单行布局不变 */
.template2-page .kaka .data-ul .t2-tabnum {
  display: inline;
  font-family: Menlo, 'SF Mono', 'Roboto Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  -webkit-font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.template2-page .kaka .data-ul > li > p font[color="red"] .t2-tabnum {
  color: #f00 !important;
}

.template2-page .kaka.kaka-shima .data-list .t2-tabnum {
  font-family: Menlo, 'SF Mono', 'Roboto Mono', 'Courier New', monospace;
  font-weight: 700;
}

/* 关掉 Vue 扒下来的行首小图标，与整站左排资料行一致 */
.template2-page .kaka .data-list > p::after,
.template2-page .kaka li.data-list > p::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.template2-page .kaka .data-ul {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  text-align: left;
}

/* 精准十码 — 参考站双栏：左码右「开」 */
.template2-page .kaka.kaka-shima .data-ul {
  margin-bottom: 0;
  padding-bottom: 0;
}

.template2-page .kaka.kaka-shima .data-ul > li.data-list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 2px solid #ccc;
  border-top: none;
  list-style: none;
  text-align: center;
  box-sizing: border-box;
}

.template2-page .kaka.kaka-shima .data-list > p {
  margin: 0;
  height: auto;
  min-height: 0;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  text-align: center !important;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* 十码左栏：期号+玩法单独一行，号码单独一行 */
.template2-page .kaka.kaka-shima .data-list > p:nth-child(1) {
  position: static;
  flex: 1 1 0;
  min-width: 0;
  color: #262626;
  padding: 5px 6px !important;
  border: none;
  border-right: 2px solid #ccc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.template2-page .kaka.kaka-shima .t2-shima-head {
  display: block;
  width: 100%;
  color: #262626;
  line-height: 1.35;
  text-align: center;
}

.template2-page .kaka.kaka-shima .t2-shima-codes {
  display: block;
  width: 100%;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

/* 取消 template2-ref 对 span span 的黑底（十码号码行） */
.template2-page .kaka .data-list > p span .t2-tabnum,
.template2-page .kaka .data-list > p span span.t2-tabnum {
  background: none !important;
  background-color: transparent !important;
}

.template2-page .kaka.kaka-shima .t2-shima-head,
.template2-page .kaka.kaka-shima .t2-shima-head .t2-tabnum {
  background: none !important;
  background-color: transparent !important;
  color: #262626 !important;
}

.template2-page .kaka.kaka-shima .t2-shima-codes,
.template2-page .kaka.kaka-shima .t2-shima-codes .t2-tabnum,
.template2-page .kaka.kaka-shima .t2-shima-codes font[color='red'] {
  background: none !important;
  background-color: transparent !important;
  color: #f00 !important;
}

.template2-page .kaka.kaka-shima .data-list > p:nth-child(1)::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.template2-page .kaka.kaka-shima .data-list > p:nth-child(2) {
  flex: 0 0 26%;
  max-width: 110px;
  color: #f0f;
  padding: 5px 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template2-page .kaka.kaka-shima .conten-wrap {
  padding-bottom: 0;
  margin-bottom: 0;
}

.template2-page .t2-panel[hidden] {
  display: none !important;
}

.template2-page .public-footer {
  padding: 14px 10px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #fff;
  text-align: center;
  background: #000;
}

.template2-page .public-footer p {
  margin: 0 0 8px;
}

.template2-page .public-footer p:last-child {
  margin-bottom: 0;
}

