/* 49 主题 · 开奖大厅（/lottery）
   375 基准，间距 5 的倍数；颜色 / 字号 / 圆角 / 阴影全部取 tokens.css 变量 */

/* ---------- NavBar 右侧文字入口 ---------- */
.t49-lot__navlink {
  font-size: var(--font-size-13);
  color: var(--color-primary);
  padding: var(--space-5) 0;
}

/* ---------- 彩种切换：吸顶横滑 ---------- */
.t49-lot__seg {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-10) var(--space-10);
  background: var(--color-bg-card);
  border-bottom: 0.5px solid var(--color-divider);
}
/* 三个彩种等分铺满整行（外壳 480，均分后每格约 150） */
.t49-lot__seg { overflow: visible; gap: var(--space-5); }
.t49-lot__seg .t49-seg__item {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 32px;
  padding: 0 var(--space-5);
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
  font-size: var(--font-size-12);
}
.t49-lot__seg .t49-seg__item.is-active {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  font-weight: 600;
}

/* ---------- 本期开奖卡 ---------- */
.t49-lot__hero {
  position: relative;
  margin: var(--space-10);
  padding: var(--space-15);
  border-radius: var(--radius-12);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: t49-fade var(--dur-base) var(--ease-standard);
}
.t49-lot__hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100px;
  background: linear-gradient(180deg, var(--color-ball-green-soft) 0%, var(--color-bg-card) 100%);
  pointer-events: none;
}
.t49-lot__hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.t49-lot__game {
  margin: 0;
  font-size: var(--font-size-15);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t49-lot__issue {
  font-size: var(--font-size-13);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.t49-lot__status {
  margin-left: auto;
  flex: none;
}

/* 逐球揭示提示 */
.t49-lot__livehint {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-10);
  border-radius: var(--radius-4);
  background: var(--color-ball-red-soft);
  color: var(--color-danger);
  font-size: var(--font-size-12);
}
.t49-lot__livehint-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-danger);
  animation: t49-lot-pulse 1s var(--ease-standard) infinite;
}
.t49-lot__livehint-text { flex: 1; min-width: 0; }
.t49-lot__livehint-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
@keyframes t49-lot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* 七个号码球 */
.t49-lot__balls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: var(--space-15) 0 var(--space-10);
}
.t49-lot__ball {
  position: relative;
  flex: 0 0 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.t49-lot__ball--special .t49-ball {
  box-shadow: 0 0 0 2px var(--color-warning);
}
.t49-lot__ball-label {
  font-size: var(--font-size-12);
  line-height: 1;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transform: scale(0.92);
}
.t49-lot__ball-label--pending { color: var(--color-text-placeholder); }
.t49-lot__ball-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-lot__hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 0.5px solid var(--color-divider);
}
.t49-lot__next {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
.t49-lot__next-issue {
  font-size: var(--font-size-13);
  font-weight: 600;
  color: var(--color-text-primary);
}
.t49-lot__next-time {
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
}
.t49-lot__countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-5);
  flex: none;
}
.t49-lot__countdown-label {
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
}
.t49-lot__countdown-num {
  font-size: var(--font-size-16);
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* ---------- 逐球揭示 iframe ---------- */
.t49-lot__panel { margin-top: var(--space-10); }
.t49-lot__panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  padding: var(--space-10) var(--space-15) 0;
}
.t49-lot__panel-title {
  margin: 0;
  font-size: var(--font-size-14);
  font-weight: 600;
  color: var(--color-text-primary);
}
.t49-lot__panel-sub {
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
}
.t49-lot__frame-wrap {
  padding: var(--space-10) var(--space-5);
}
.t49-lot__frame {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  background: var(--color-bg-page);
}

/* ---------- 快捷入口（4 列） ---------- */
.t49-lot__quick {
  margin: var(--space-10);
  padding: var(--space-10) var(--space-10) var(--space-5);
  border-radius: var(--radius-8);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}
.t49-lot__quick-title {
  margin: 0;
  font-size: var(--font-size-14);
  font-weight: 600;
  color: var(--color-text-primary);
}
.t49-lot__quick-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-10) 0;
  padding: var(--space-10) 0 var(--space-5);
}
.t49-lot__quick-grid .t49-grid__item {
  gap: var(--space-5);
  font-size: var(--font-size-12);
}
/* 彩色圆底 + 白色图形：有位图的复用 module PNG，其余用主色/紫色渐变圆底 */
.t49-lot__quick-grid .t49-grid__ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  overflow: visible;
  color: var(--color-text-inverse);
}
.t49-lot__quick-grid .t49-grid__ico img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
/* 挑码=紫（渐变色取自 module PNG 同批紫蓝档） */
.t49-lot__quick-grid .t49-grid__ico--purple {
  background: linear-gradient(135deg, #6D65ED 0%, #5A3FD8 100%);
  color: var(--color-text-inverse);
}
.t49-lot__quick-grid .t49-grid__ico--green {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
}
.t49-lot__quick-grid .t49-grid__ico--purple svg,
.t49-lot__quick-grid .t49-grid__ico--green svg { width: 20px; height: 20px; }
.t49-lot__quick-grid .t49-grid__item:active .t49-grid__ico img { opacity: 0.86; }
.t49-lot__quick-grid .t49-grid__item:active .t49-grid__ico--purple,
.t49-lot__quick-grid .t49-grid__item:active .t49-grid__ico--green { filter: brightness(0.94); }

/* ---------- 近期开奖 ---------- */
.t49-lot__recent {
  margin: var(--space-15) var(--space-10) 0;
}
.t49-lot__recent-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5) var(--space-10);
}
.t49-lot__recent-title {
  margin: 0;
  font-size: var(--font-size-14);
  font-weight: 600;
  color: var(--color-text-primary);
}
.t49-lot__recent-more {
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
}
.t49-lot__list {
  padding: 0 var(--space-15);
  border-radius: var(--radius-8);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.t49-lot__row {
  display: block;
  padding: var(--space-10) 0;
  border-bottom: 0.5px solid var(--color-divider);
}
.t49-lot__row:last-child { border-bottom: 0; }
.t49-lot__row-head {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.t49-lot__row-name {
  font-size: var(--font-size-13);
  font-weight: 600;
  color: var(--color-text-primary);
}
.t49-lot__row-issue {
  font-size: var(--font-size-12);
  color: var(--color-text-tertiary);
}
.t49-lot__row-date {
  margin-left: auto;
  font-size: var(--font-size-12);
  color: var(--color-text-placeholder);
}
.t49-lot__row-balls {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.t49-lot__row-balls .t49-ball { flex: none; }
.t49-lot__plus {
  font-size: var(--font-size-12);
  color: var(--color-text-placeholder);
}
.t49-lot__emptycard { margin: 0; box-shadow: none; background: var(--color-bg-card); }
.t49-lot__note {
  margin: var(--space-10) 0 0;
  font-size: var(--font-size-12);
  color: var(--color-text-placeholder);
  text-align: center;
}
.t49-lot__link { color: var(--color-primary); }
/* 近期开奖：当前彩种标签用主色标出 */
.t49-lot__row-name.is-current { color: var(--color-primary); }
.t49-lot__row-name.is-current::after {
  content: '当前';
  margin-left: 4px;
  padding: 0 4px;
  border-radius: var(--radius-2);
  background: rgba(7, 193, 96, 0.12);
  font-size: 10px;
  font-weight: 500;
}
