﻿/* ============================================================
   49 涓婚 路 寮€濂栧崱锛?kj锛宨frame 鍐呭祵锛? 鍘嗗彶寮€濂栵紙/fenxi/锛?   浠呬娇鐢?tokens.css 鍙橀噺锛涢棿璺濈粺涓€涓?5 鐨勫€嶆暟锛涙棤绗笁鏂逛緷璧?   ============================================================ */

/* ============================================================
   涓€銆佸紑濂栧崱 /kj锛坕frame 鍐呭祵锛屾棤 NavBar / TabBar锛?   ============================================================ */
body.t49-body-kj {
  margin: 0;
  padding: 0;
  background: var(--color-bg-card);
  overflow-x: hidden;
}
.t49-body-kj .t49-app {
  max-width: none;
  min-height: 0;
  background: var(--color-bg-card);
}
.t49-page--nonav.t49-kj-page {
  padding-bottom: 0;
  min-height: 100vh;
}

/* 鎾戞弧 iframe 楂樺害锛氫笁鍧楃旱鍚?space-between锛屼换浣?220鈥?60 楂樺害閮戒笉鐣欑┖銆佷笉婧㈠嚭 */
.t49-kj {
  --kj-ball: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-10);
  width: 100%;
  min-height: 100vh;
  padding: var(--space-10);
  box-sizing: border-box;
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font-size: var(--font-size-14);
  overflow-x: hidden;
}

/* ---- 椤堕儴锛氭湡鍙?+ 鐘舵€?+ 涓嬫湡鏃堕棿 ---- */
.t49-kj__hd {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  min-width: 0;
}
.t49-kj__issue {
  font-size: var(--font-size-13);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.t49-kj__issue b {
  font-size: var(--font-size-15);
  font-weight: 600;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.t49-kj__tag {
  flex: 0 0 auto;
}
.t49-kj__next {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-5);
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.t49-kj__next b {
  font-size: var(--font-size-13);
  font-weight: 600;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ---- 涓儴锛? 鐞冩í鎺?---- */
.t49-kj__balls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
}
.t49-kj__item {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.t49-kj__ballwrap {
  position: relative;
  display: inline-flex;
}
.t49-kj .t49-ball--lg {
  width: var(--kj-ball);
  height: var(--kj-ball);
  font-size: calc(var(--kj-ball) * 0.45);
  font-variant-numeric: tabular-nums;
}
.t49-kj__item--special .t49-ball {
  box-shadow: 0 0 0 2px var(--color-warning);
}
.t49-kj__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-warning);
  color: var(--color-text-primary);
  font-size: var(--font-size-12);
  line-height: 1;
  transform: scale(0.8);
}
.t49-kj__label {
  max-width: 100%;
  font-size: var(--font-size-12);
  line-height: 1;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t49-kj__label.is-pending { color: var(--color-text-placeholder); }

/* ---- 搴曢儴鎻愮ず ---- */
.t49-kj__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin: 0;
  padding-top: var(--space-10);
  border-top: 0.5px solid var(--color-divider);
  font-size: var(--font-size-12);
  line-height: 1.4;
  color: var(--color-text-tertiary);
  text-align: center;
}
.t49-kj__foot b {
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.t49-kj__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-danger);
  animation: t49-kj-pulse 1s var(--ease-standard) infinite;
}
@keyframes t49-kj-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .t49-kj__dot { animation: none; }
}

/* iframe 绐勫闄嶇骇锛氬畞灏忕悆锛屼笉妯悜婊氬姩 */
@media (max-width: 359px) {
  .t49-kj { --kj-ball: 32px; }
}
@media (max-width: 319px) {
  .t49-kj { --kj-ball: 28px; }
}

/* ============================================================
   浜屻€佸巻鍙插紑濂?/fenxi/
   ============================================================ */
.t49-his-page {
  background: var(--color-bg-page);
}
.t49-his-page .t49-nav__side--right {
  width: auto;
  min-width: 44px;
}
.t49-his__navlink {
  font-size: var(--font-size-13);
  color: var(--color-primary);
  white-space: nowrap;
}

/* ---- 绛涢€夋潯 ---- */
.t49-his__filter {
  margin: var(--space-10) var(--space-10) 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.t49-his__filter .t49-seg {
  gap: var(--space-5);
  padding: var(--space-10) var(--space-10) var(--space-5);
  overflow: visible;
}
/* 三个彩种等分铺满整行宽度 */
.t49-his__filter .t49-seg__item {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 var(--space-5);
  font-size: var(--font-size-12);
  background: var(--color-bg-input);
}
.t49-his__filter .t49-seg__item.is-active {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
}
.t49-his__years {
  display: flex;
  gap: var(--space-10);
  padding: 0 var(--space-10) var(--space-10);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.t49-his__year {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--space-10);
  border-radius: var(--radius-16);
  background: var(--color-bg-input);
  color: var(--color-text-secondary);
  font-size: var(--font-size-13);
  font-variant-numeric: tabular-nums;
}
.t49-his__year.is-active {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  font-weight: 500;
}

/* ---- 椤堕儴缁熻 ---- */
.t49-his__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  padding: var(--space-10) var(--space-10) 0;
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
}
.t49-his__stats b {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ---- 鍒楄〃鍗＄墖 ---- */
.t49-his__list {
  margin: var(--space-10);
  padding: 0;
  list-style: none;
  background: var(--color-bg-card);
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.t49-his__item {
  padding: var(--space-10);
  border-bottom: 0.5px solid var(--color-divider);
}
.t49-his__item:last-child { border-bottom: 0; }

.t49-his__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
  min-width: 0;
}
.t49-his__meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: var(--space-10);
  min-width: 0;
}
.t49-his__issue {
  font-size: var(--font-size-13);
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t49-his__issue b {
  font-size: var(--font-size-15);
  font-weight: 600;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.t49-his__date {
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 7 鐞?+ 鐢熻倴鍒楀涓ユ牸瀵归綈锛?4px 鍒?+ 4px 闂磋窛锛?*/
/* 7 球等分铺满整行，与下方生肖列严格对齐 */
.t49-his__ballrow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 0;
}
.t49-his__ballcell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.t49-his__ballcell .t49-ball { --ball: 42px; }
.t49-his__ballcell--special .t49-ball {
  box-shadow: 0 0 0 2px var(--color-warning);
}
.t49-his__animals {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-top: var(--space-5);
}
.t49-his__animal {
  font-size: var(--font-size-12);
  line-height: 1;
  color: var(--color-text-tertiary);
  text-align: center;
  white-space: nowrap;
}

/* ---- 鍒嗛〉 ---- */
.t49-his__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  padding: 0 var(--space-10) var(--space-20);
}
.t49-his__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 var(--space-10);
  border-radius: var(--radius-8);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
  color: var(--color-text-primary);
  font-size: var(--font-size-13);
  white-space: nowrap;
}
.t49-his__page-btn.is-disabled {
  color: var(--color-text-placeholder);
  opacity: var(--disabled-opacity);
  box-shadow: none;
  background: var(--color-bg-subtle);
}
.t49-his__page-nums {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.t49-his__page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-8);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  font-size: var(--font-size-12);
  font-variant-numeric: tabular-nums;
}
.t49-his__page-num.is-active {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  font-weight: 600;
}

/* 鍒楄〃鍐呯┖鎬侊細鎾戦珮鍗＄墖锛岄伩鍏嶅闄?*/
.t49-his__list .t49-empty {
  padding: var(--space-30) var(--space-10);
}

@media (max-width: 359px) {
  .t49-his__item { padding: var(--space-10) var(--space-5); }
  .t49-his__ballcell .t49-ball { --ball: 36px; }
}

