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

:root {
  --red: #cc0000;
  --red-dark: #990000;
  --orange: #ff6600;
  --orange-dark: #e55a00;
  --green: #008800;
  --green-dark: #006600;
  --blue: #0066cc;
  --blue-dark: #004499;
  --gold: #ffcc00;
  --gold-dark: #e6b800;
  --purple: #660099;
  --bg: #eef2f6;
  --white: #fff;
  --text: #333;
  --text-light: #666;
  --border: #ccc;
  --ball-red: #cc0000;
  --ball-blue: #0066cc;
  --ball-green: #008800;
  --radius: 0;
  --radius-sm: 0;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: SimSun, "宋体", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background: #dce4ec;
  color: var(--text);
  line-height: 1.6;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
}

/* ===== 顶部品牌条 ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #ffc04d 0%, #f5a623 55%, #f09820 100%);
  border-bottom: 1px solid #e08a00;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.site-header-emblem {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #2ecc71 0%, #0d6b3a 45%, #064625 100%);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  position: relative;
}

.site-header-emblem::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 18px;
  height: 12px;
  margin-left: -9px;
  background: #fff;
  border-radius: 50% 50% 45% 45%;
  box-shadow:
    -8px 2px 0 -2px #fff,
    8px 2px 0 -2px #fff,
    0 6px 0 -1px #fff;
}

.site-header-emblem::after {
  content: "★★★★★";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 34px;
  margin-left: -17px;
  font-size: 5px;
  line-height: 1;
  letter-spacing: 1px;
  color: #ffd700;
  text-align: center;
}

.site-header-logo {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-header-text {
  min-width: 0;
}

.site-header-title {
  font-family: "Microsoft YaHei", "微软雅黑", SimSun, "宋体", serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  color: #1a7a3a;
  text-shadow:
    1px 0 0 #ffe566,
    -1px 0 0 #ffe566,
    0 1px 0 #ffe566,
    0 -1px 0 #ffe566;
  white-space: nowrap;
}

.site-header-domain {
  margin-top: 2px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.site-domain-red {
  color: #cc0000;
}

.site-domain-blue {
  color: #0066cc;
}

.site-domain-black {
  color: #111;
}

.site-header-seal {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: #cc0000;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.site-header-seal span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
}

/* ===== 顶部开奖条 ===== */
.draw-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--white);
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.draw-header-left {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
}

.draw-header-issue {
  font-size: 18px;
  font-weight: bold;
  color: var(--text);
  line-height: 1.15;
}

.draw-header-issue b {
  font-size: 24px;
  color: var(--text);
}

.draw-header-refresh {
  display: block;
  width: 100%;
  margin: 3px 0 0;
  padding: 2px 0;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.draw-header-record {
  display: block;
  margin-top: 3px;
  padding: 1px 0;
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  background: #ffff00;
  border-radius: 2px;
  line-height: 1.2;
}

.draw-header-balls {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  min-height: 0;
  padding: 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.header-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: 1;
  min-width: 0;
  max-width: 50px;
}

.header-ball-wrap.special {
  flex: 1;
  margin-left: 0;
  padding-left: 6px;
  border-left: 1px dashed #999;
}

.header-ball,
.ball {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  color: #111;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
}

.header-ball {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.header-ball-label,
.ball-label {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
  line-height: 1.1;
  text-align: center;
}

.header-ball-label {
  font-size: 13px;
}

.draw-header-pending {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--orange);
}

/* ===== 日期 / 最新消息橙条（仿参考站） ===== */
.top-info-strip {
  padding: 1px 2px 2px;
  background: var(--bg);
}

.top-date-bar {
  margin: 0 0 4px;
  padding: 8px 8px;
  background: linear-gradient(180deg, #ffb84d 0%, #f5a623 100%);
  border-radius: 2px;
  color: #fff;
  font-family: "Microsoft YaHei", "微软雅黑", SimSun, "宋体", sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.4px;
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.35);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0.6px 0 0 #fff,
    -0.6px 0 0 #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-news-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px;
  background: linear-gradient(180deg, #ffb84d 0%, #f5a623 100%);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.top-news-label {
  flex-shrink: 0;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.top-news-scroll {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.top-news-scroll span {
  display: inline-block;
  padding-left: 100%;
  color: #ffff00;
  font-size: 14px;
  font-weight: bold;
  animation: marquee 20s linear infinite;
}

/* ===== 配置图位（独立模块） ===== */
.site-image-strip {
  margin-top: 8px;
  padding: 0;
  background: transparent;
}

.site-image-item {
  display: block;
  margin: 0 0 6px;
  line-height: 0;
}

.site-image-item:last-child {
  margin-bottom: 0;
}

.site-image-item img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

/* ===== 主导航 ===== */
.main-nav {
  display: flex;
  overflow-x: auto;
  background: var(--orange);
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--orange-dark);
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  flex-shrink: 0;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  white-space: nowrap;
}

.main-nav a.active,
.main-nav a:first-child {
  background: var(--orange-dark);
}

/* ===== 滚动公告（最新消息等） ===== */
.notice-tag {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 0;
  font-size: 12px;
  font-weight: bold;
}

.notice-scroll {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  color: #333;
}

.notice-scroll span {
  display: inline-block;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== 图标网格 ===== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 2px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  text-decoration: none;
  color: var(--text);
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #f5f5f5;
  border: 1px solid var(--border);
}

.icon-item:nth-child(even) .icon-circle {
  background: #f0f0f0;
  border-color: var(--border);
}

.icon-item:nth-child(3n) .icon-circle {
  background: #f5f5f5;
  border-color: var(--border);
}

.icon-label {
  font-size: 12px;
  font-weight: normal;
  text-align: center;
  line-height: 1.3;
  color: var(--text);
}

.bottom-icons {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  margin-left: 6px;
  margin-right: 6px;
  overflow: hidden;
}

/* ===== 开奖区 ===== */
.lottery-block {
  margin: 6px;
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--border);
}

.lottery-tabs {
  display: flex;
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
}

.lottery-tabs .tab {
  flex: 1;
  padding: 8px 4px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-light);
  cursor: pointer;
  font-weight: normal;
  border-right: 1px solid var(--border);
}

.lottery-tabs .tab:last-child {
  border-right: none;
}

.lottery-tabs .tab.active {
  background: var(--red);
  color: #fff;
  font-weight: bold;
}

.draw-panel {
  padding: 10px;
  background: var(--white);
}

.draw-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.draw-top b {
  color: var(--red);
  font-size: 18px;
  font-weight: bold;
}

.countdown {
  font-size: 13px;
  color: var(--text-light);
}

.countdown b {
  color: var(--orange);
  font-size: 15px;
}

.balls-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ball-wrap.special {
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px dashed #999;
}

.ball-wrap.special .ball {
  border: none;
}

.draw-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.status-ok {
  color: var(--green);
  font-weight: bold;
  font-size: 13px;
}

/* ===== 官网域名提示 ===== */
.domain-notice {
  margin-top: 10px;
  border: 2px solid var(--orange);
  overflow: hidden;
  background: var(--white);
}

.domain-notice-bar {
  background: var(--orange);
  color: var(--gold);
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 4px;
  padding: 4px 0;
  line-height: 1;
}

.domain-notice-body {
  padding: 8px 6px 4px;
  text-align: center;
}

.domain-line {
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0;
  padding: 4px 4px 5px;
  border-bottom: 1px solid #aaa;
}

.domain-line-main {
  font-weight: bold;
  font-size: 19px;
}

.domain-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 0;
  font-weight: bold;
  font-size: inherit;
  margin: 0 2px;
}

.domain-badge-dark {
  background: #333;
  color: var(--gold);
}

.domain-badge-blue {
  background: var(--blue);
  color: #fff;
}

.domain-purple { color: var(--purple); font-weight: bold; }
.domain-orange { color: var(--orange); font-weight: bold; }
.domain-red { color: var(--red); font-weight: bold; }
.domain-pink { color: #cc0066; font-weight: normal; font-size: 18px; }

.domain-flash-row {
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
  margin-top: 0;
  min-height: auto;
  padding: 12px 4px;
  border-bottom: none;
}

.domain-flash-row .prefix {
  color: var(--red);
  font-weight: bold;
  font-size: 19px;
}

.domain-flash-row .suffix {
  display: inline-block;
  background: var(--red);
  color: var(--gold);
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 0;
  font-size: 18px;
}

.domain-flash-row.flash-blink {
  animation: url-flash 0.5s ease;
}

@keyframes url-flash {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ===== 链接网格 ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--border);
  margin: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.link-grid a {
  display: block;
  padding: 10px 4px;
  text-align: center;
  background: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  border: 1px solid var(--border);
}

.link-grid a.red { color: var(--red); }
.link-grid a.blue { color: var(--blue); }
.link-grid a.green { color: var(--green); }
.link-grid a.purple { color: var(--purple); }

.link-grid-2 { margin-top: 0; }

/* ===== 横幅 ===== */
.banner {
  margin: 6px;
  padding: 12px 14px;
  border-radius: 0;
  text-decoration: none;
  display: block;
  border: 1px solid var(--border);
}

.banner.red { background: var(--red); color: #fff; border-color: var(--red-dark); }
.banner.green { background: var(--green); color: #fff; border-color: var(--green-dark); }
.banner.gold { background: var(--gold); color: #333; border-color: var(--gold-dark); }
.banner.blue { background: var(--blue); color: #fff; border-color: var(--blue-dark); }

.banner-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 4px;
}

.banner-sub {
  font-size: 12px;
}

/* ===== 双列链接 ===== */
.two-col-block {
  margin: 6px;
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--border);
}

.two-col-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.two-col-row:last-child { border-bottom: none; }

.two-col-row a {
  flex: 1;
  padding: 10px 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  color: var(--blue);
  text-align: center;
  border-right: 1px solid var(--border);
}

.two-col-row a:last-child { border-right: none; }

/* ===== 内容区块 ===== */
.block {
  margin: 6px;
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--border);
}

.block-header {
  padding: 7px 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.block-header.green { background: var(--green); }
.block-header.orange { background: var(--orange); }
.block-header.blue { background: var(--blue); }
.block-header.red { background: var(--red); }

.block-list a {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  gap: 6px;
}

.block-list a:last-child { border-bottom: none; }

.item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.item-tag {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 0;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: #999;
}

.item-tag.hot,
.item-tag.热 { background: var(--red); }
.item-tag.准 { background: var(--green); }
.item-tag.荐 { background: var(--orange); }
.item-tag.新 { background: var(--blue); }
.item-tag.VIP { background: var(--purple); }
.item-tag.顶 { background: var(--red-dark); }
.item-tag.中 { background: var(--green); }
.item-tag.稳 { background: var(--green-dark); }

.block-list a.hot-item .item-text {
  color: var(--red);
  font-weight: bold;
}

/* ===== API 预测数据 ===== */
.api-loading {
  margin: 10px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
}

.api-error {
  margin: 10px;
  padding: 12px;
  font-size: 13px;
  color: var(--red);
  background: #fff5f5;
  border: 1px solid #cc0000;
}

.api-meta-bar {
  margin: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-light);
  background: #fffde7;
  border: 1px solid #ddd;
}

.api-meta-bar b { color: var(--red); }

.group-title {
  margin: 8px 6px 4px;
  padding: 6px 8px;
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
  border-left: 4px solid var(--orange);
}

/* ===== 计划模块（平特一尾等） ===== */
.plan-module {
  margin: 6px;
  background: var(--white);
  border: 3px solid #ff6600;
  border-radius: 4px;
  overflow: hidden;
}

.plan-module-header {
  padding: 7px 8px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(90deg, #ffb84d 0%, #ffe8a3 50%, #ffb84d 100%);
  border-bottom: 1px solid #ff6600;
}

.plan-domain-num {
  color: #cc0000;
  font-weight: 900;
}

.plan-domain-suf {
  color: #111;
  font-weight: 900;
}

.plan-module-title {
  color: #111;
  font-weight: 900;
}

.plan-module-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.plan-module-table td {
  padding: 7px 5px;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  font-size: 20px;
  line-height: 1.3;
  font-weight: bold;
}

.plan-module-table tr:nth-child(even) td {
  background: #fafafa;
}

.plan-module-table tr.pending td {
  background: #fffde7;
}

.plan-col-period {
  width: 18%;
  color: #990000;
  font-weight: 900;
  font-size: 21px;
}

.plan-col-pred {
  color: #cc0000;
  font-weight: bold;
  font-size: 20px;
}

.plan-pred-main {
  color: #cc0000;
  font-weight: 900;
}

.plan-pred-slogan {
  color: #cc0000;
  font-weight: normal;
  font-size: 20px;
}

.plan-col-result {
  width: 22%;
  color: #990000;
  font-weight: 900;
  font-size: 20px;
}

/* ===== 单行列表模块（单双中特等） ===== */
.feature-module {
  margin: 6px;
  background: var(--white);
  border: 3px solid #ff6600;
  border-radius: 4px;
  overflow: hidden;
}

.feature-module-header {
  padding: 7px 8px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffb84d 0%, #ffe8a3 55%, #fff 100%);
  border-bottom: 1px solid #ff6600;
}

.feature-domain-num {
  color: #cc0000;
  font-weight: 900;
}

.feature-domain-suf {
  color: #111;
  font-weight: 900;
}

.feature-module-title {
  color: #111;
  font-weight: 900;
}

.feature-list {
  background: var(--white);
}

.feature-row {
  padding: 7px 8px;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
  border-bottom: 1px solid #ddd;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.pending {
  background: #fffde7;
}

.feature-period {
  color: #008080;
  font-weight: bold;
}

.feature-pred {
  margin: 0 2px;
}

.feature-bracket {
  color: #660099;
  font-weight: bold;
}

.feature-prefix {
  color: #cc0000;
  font-weight: bold;
}

.feature-part {
  color: #660099;
  font-weight: bold;
}

.feature-part-hit {
  background: #ffff00;
  color: #cc0000;
}

.feature-kai {
  color: #660099;
  font-weight: bold;
}

.feature-hit {
  color: #cc0066;
  font-weight: bold;
}

/* ===== 大小中特表格模块 ===== */
.bs-module {
  margin: 6px;
  background: var(--white);
  border: 4px solid #e6b800;
  border-radius: 2px;
  overflow: hidden;
}

.bs-module-header {
  padding: 7px 8px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffe082 0%, #ffb84d 55%, #ff9800 100%);
  border-bottom: 1px solid #e6b800;
}

.bs-domain-num {
  color: #cc0000;
  font-weight: 900;
}

.bs-domain-suf {
  color: #111;
  font-weight: 900;
}

.bs-module-title {
  color: #111;
  font-weight: 900;
}

.bs-module-table-wrap {
  border-left: 4px solid #ff6600;
  border-right: 4px solid #ff6600;
}

.bs-module-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bs-module-table td {
  padding: 7px 5px;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.bs-module-table tr:nth-child(even) td {
  background: #f2f8ff;
}

.bs-module-table tr.pending td {
  background: #fffde7;
}

.bs-col-issue {
  width: 28%;
  color: #111;
  font-weight: 900;
  font-size: 21px;
}

.bs-col-pred {
  color: #0066cc;
  font-weight: bold;
  font-size: 20px;
}

.bs-col-result {
  width: 25%;
  color: #111;
  font-weight: 900;
  font-size: 20px;
}

/* ===== 三头中特表格模块 ===== */
.th-module {
  margin: 6px;
  background: var(--white);
  border: 3px solid #ff6600;
  border-radius: 2px;
  overflow: hidden;
}

.th-module-header {
  padding: 7px 8px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffb84d 0%, #ff9800 100%);
  border-bottom: 1px solid #ff6600;
}

.th-domain-num {
  color: #0066cc;
  font-weight: 900;
}

.th-domain-suf {
  color: #111;
  font-weight: 900;
}

.th-module-title {
  color: #111;
  font-weight: 900;
}

.th-module-table-wrap {
  border-left: 3px solid #ff6600;
  border-right: 3px solid #ff6600;
}

.th-module-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.th-module-table td {
  padding: 7px 5px;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.th-module-table tr:nth-child(even) td {
  background: #fafafa;
}

.th-module-table tr.pending td {
  background: #fffde7;
}

.th-col-issue {
  width: 28%;
  color: #111;
  font-weight: 900;
  font-size: 21px;
}

.th-col-pred {
  color: #0066cc;
  font-size: 20px;
}

.th-part {
  color: #0066cc;
  font-weight: bold;
}

.th-part-hit {
  background: #ffff00;
  color: #0066cc;
}

.th-col-result {
  width: 25%;
  color: #111;
  font-weight: 900;
  font-size: 20px;
}

/* ===== 绝杀专区表格模块 ===== */
.kz-module {
  margin: 6px;
  background: var(--white);
  border: 4px solid #e6b800;
  border-radius: 2px;
  overflow: hidden;
}

.kz-module-header {
  padding: 7px 8px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffb84d 0%, #ffe082 100%);
  border-bottom: 2px solid #e6b800;
}

.kz-domain-num {
  color: #cc0000;
  font-weight: 900;
}

.kz-domain-suf {
  color: #111;
  font-weight: 900;
}

.kz-module-title {
  color: #111;
  font-weight: 900;
}

.kz-module-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 19px;
}

.kz-module-table thead th {
  padding: 7px 4px;
  border: 1px solid #ddd;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: #111;
  background: #ffe082;
}

.kz-module-table tbody td {
  padding: 7px 4px;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  font-size: 19px;
  line-height: 1.35;
  background: #fff;
}

.kz-module-table tr.pending td {
  background: #fffde7;
}

.kz-col-period {
  color: #111;
  white-space: nowrap;
}

.kz-col-pred {
  color: #cc0000;
  word-break: break-all;
}

.kz-col-te {
  white-space: nowrap;
}

.kz-col-nums {
  font-size: 16px;
  font-weight: bold;
  word-break: break-all;
}

.kz-val-red {
  color: #cc0000;
}

.kz-wave-red {
  color: #cc0000;
}

.kz-wave-green {
  color: #008800;
}

.kz-wave-blue {
  color: #0066cc;
}

.kz-part {
  color: #cc0000;
}

.kz-part-hit {
  background: #ffff00;
  color: #cc0000;
}

.kz-prefix {
  color: #cc0000;
}

.kz-empty {
  color: #999;
  font-weight: normal;
}

.kz-module-history {
  margin: 6px;
}

.pred-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 19px;
}

.pred-table th {
  background: #e8e8e8;
  padding: 7px 5px;
  border: 1px solid var(--border);
  font-weight: bold;
  font-size: 18px;
  text-align: center;
}

.pred-table td {
  padding: 7px 5px;
  border: 1px solid var(--border);
  vertical-align: middle;
  font-size: 19px;
  font-weight: bold;
}

.pred-table tr:nth-child(even) td { background: #fafafa; }
.pred-table tr.pending td { background: #fffde7; }

.pred-period {
  text-align: center;
  white-space: nowrap;
  color: var(--text);
  font-weight: 900;
  font-size: 20px;
  width: 28%;
}

.pred-content {
  text-align: center;
  line-height: 1.45;
  font-size: 19px;
  font-weight: bold;
}

.pred-result {
  text-align: center;
  white-space: nowrap;
  font-weight: 900;
  font-size: 19px;
  width: 22%;
}

.pred-highlight {
  background: #ffff00;
  color: #333;
  padding: 0 2px;
}

.result-hit { color: var(--red); }
.result-miss { color: var(--green); }
.result-pending { color: #999; font-weight: normal; }

.kill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.kill-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 17px;
  font-weight: bold;
  border: 1px solid var(--border);
  background: #f5f5f5;
}

.triple-results {
  font-size: 17px;
  font-weight: bold;
  line-height: 1.8;
}

.triple-hit-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  font-size: 14px;
  color: #fff;
  background: var(--red);
}

.triple-miss-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  font-size: 14px;
  color: #fff;
  background: var(--green);
}

.pred-subtitle {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 4px;
}

.pred-line {
  margin-bottom: 4px;
}

.pred-main-nums {
  font-size: 17px;
  font-weight: bold;
  line-height: 1.8;
  margin-top: 4px;
}

.pred-main-label {
  color: var(--red);
  font-weight: bold;
}

.pred-num-grid {
  display: grid;
  gap: 2px;
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
}

.pred-num-cell {
  padding: 3px 0;
  font-size: 16px;
  font-weight: bold;
}

.kill-tag.kill-empty {
  color: #999;
  background: #fafafa;
}

.draw-status-pending {
  color: var(--orange);
  font-weight: bold;
}

/* ===== 表格 ===== */
.table-block {
  margin: 6px;
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--border);
}

.table-block .block-header { position: sticky; left: 0; top: 0; z-index: 1; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.data-table th {
  background: #e0e0e0;
  padding: 8px 6px;
  border: 1px solid var(--border);
  font-weight: bold;
  font-size: 17px;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
}

.data-table td {
  padding: 8px 6px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 17px;
  font-weight: bold;
}

.data-table tr:nth-child(even) td { background: #f5f5f5; }

.td-hot { color: var(--red); font-weight: bold; }
.td-cold { color: var(--blue); font-weight: bold; }
.td-up { color: var(--red); font-weight: bold; }
.td-down { color: var(--green); font-weight: bold; }

.wave-red { color: var(--ball-red); font-weight: bold; }
.wave-blue { color: var(--ball-blue); font-weight: bold; }
.wave-green { color: var(--ball-green); font-weight: bold; }

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 16px 12px 20px;
  font-size: 16px;
  line-height: 1.5;
  background: #333;
  color: #999;
  margin-top: 6px;
}

.footer p:first-child {
  color: var(--gold);
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-sub {
  margin-top: 6px;
  font-size: 14px;
}

/* ===== 悬浮回到顶部 ===== */
.scroll-top-btn {
  position: fixed;
  right: max(12px, calc(50% - 320px + 12px));
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffc04d 0%, #f5a623 45%, #e88a00 100%);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(232, 138, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(16px) scale(0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:active {
  transform: translateY(0) scale(0.94);
  box-shadow:
    0 2px 8px rgba(232, 138, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.scroll-top-icon {
  display: block;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.scroll-top-text {
  display: block;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

@media (min-width: 481px) {
  .page {
    min-height: 100vh;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}
