*,
*::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: #00bcd4;
  --blue-dark: #0097a7;
  --cyan-light: #29b6f6;
  --cyan: #00bcd4;
  --cyan-gradient: linear-gradient(to right, #29b6f6, #00bcd4);
  --cyan-gradient-v: linear-gradient(180deg, #29b6f6 0%, #00bcd4 100%);
  --cyan-dark: #0097a7;
  --cyan-bg-light: #e0f7fa;
  --cyan-bg-stripe: #b3e5fc;
  --cyan-highlight: #80deea;
  --keyword-blue: #00bcd4;
  --keyword-blue-dark: #0097a7;
  --gold: #ffcc00;
  --gold-dark: #e6b800;
  --purple: #660099;
  --bg: #e0f7fa;
  --white: #fff;
  --text: #333;
  --text-light: #666;
  --border: #ccc;
  --ball-red: #cc0000;
  --ball-blue: #0066cc;
  --ball-green: #008800;
  --radius: 6px;
  --radius-sm: 4px;
}

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

body {
  font-family: SimSun, "宋体", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background: #b3e5fc;
  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: var(--cyan-gradient-v);
  border-bottom: 1px solid var(--blue-dark);
  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%, #4fc3f7 0%, #0288d1 45%, #01579b 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: #ffff00;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  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: #ffff00;
}

.site-domain-blue {
  color: #fff;
}

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

.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: var(--cyan-dark);
  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;
}

/* ===== header 下方品牌推荐条 / 紧急通知（仿参考站双框） ===== */
.site-brand-promo,
.site-urgent-notice {
  margin: 4px 6px;
  padding: 12px 10px 14px;
  border-style: solid;
  border-width: 5px;
  border-radius: 0;
  text-align: center;
}

/* 上框：绿边 + 白底（参考图） */
.site-brand-promo {
  background: #fff;
  border-color: #008800;
}

/* 下框：深红边 + 浅灰底（参考图） */
.site-urgent-notice {
  background: #f3f3f3;
  border-color: #8b0000;
}

/* 上框标题：红色加粗 */
.site-brand-promo-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  color: #cc0000;
}

.site-brand-promo .promo-star {
  color: #cc0000;
  font-weight: 900;
}

/* 上框正文：黑色，关键字分色 */
.site-brand-promo-body {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  color: #111;
}

.site-brand-promo-body p {
  margin: 0 0 2px;
  color: #111;
}

.site-brand-promo-body p:last-child {
  margin-bottom: 0;
}

.site-brand-promo .promo-domain,
.site-brand-promo .promo-kw {
  color: #cc0000;
  font-weight: 900;
}

.site-brand-promo .promo-kw-alt {
  color: #6b8e23;
  font-weight: 900;
}

.site-brand-promo .promo-kw-accent {
  color: #cc0066;
  font-weight: 900;
}

.site-brand-promo-btn {
  display: block;
  width: 88%;
  max-width: 340px;
  margin: 6px auto 0;
  padding: 10px 14px;
  background: #008800;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 0;
  line-height: 1.35;
  border: none;
  box-shadow: none;
}

.site-brand-promo-btn:active {
  background: #006600;
}

/* 下框标题：红色加粗 */
.site-urgent-notice-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  color: #cc0000;
}

.site-urgent-notice .promo-star {
  color: #cc0000;
  font-weight: 900;
}

.site-urgent-notice-line {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.45;
  color: #111;
}

.site-urgent-notice-domain {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  color: #cc0000;
  letter-spacing: 0.5px;
}

.site-urgent-notice-label {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.45;
  color: #111;
}

.site-urgent-notice-footer {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.45;
  color: #111;
}

.site-urgent-notice-btn {
  display: block;
  width: 88%;
  max-width: 340px;
  margin: 6px auto 0;
  padding: 10px 14px;
  background: #8b0000;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 0;
  line-height: 1.35;
  border: none;
  box-shadow: none;
}

.site-urgent-notice-btn:active {
  background: #660000;
}

/* ===== 顶部 Logo 横幅 ===== */
.site-logo-banner {
  margin: 4px 6px 0;
  line-height: 0;
}

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

/* ===== 顶部开奖条（仿参考站三行布局） ===== */
.draw-header {
  margin: 6px;
  padding: 8px 10px 10px;
  background: #fff;
  border: 1px solid #ddd;
  font-family: "Microsoft YaHei", "微软雅黑", SimSun, "宋体", sans-serif;
  font-weight: 900;
}

.draw-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 900;
  color: #111;
}

.draw-header-title {
  font-weight: 900;
}

.draw-header-title b,
.draw-header-next-issue {
  color: #db2828;
  font-weight: 900;
  font-size: 18px;
}

.draw-header-countdown {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.draw-header-record {
  flex-shrink: 0;
  color: #db2828;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  background: none;
  border-radius: 0;
}

.draw-header-balls {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 6px 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.header-ball-wrap {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-ball-wrap.special {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.header-ball-wrap.special .header-ball,
.header-ball-wrap.special .header-ball.blue,
.header-ball-wrap.special .header-ball.green {
  background: #db2828;
}

.draw-header-plus {
  flex: 0.55 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: #111;
}

.header-ball {
  width: 100%;
  max-width: 66px;
  min-height: 76px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 7px 4px 5px;
  box-sizing: border-box;
  background-image: none;
}

.header-ball.red { background: #db2828; }
.header-ball.blue { background: #2185d0; }
.header-ball.green { background: #21ba45; }

.header-ball-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.08);
}

.header-ball-tag {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 2px 0;
  line-height: 1.15;
  white-space: nowrap;
}

.draw-header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #eee;
}

.draw-header-next {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 900;
  color: #111;
  line-height: 1.35;
}

.draw-header-refresh {
  flex-shrink: 0;
  margin: 0;
  padding: 5px 16px;
  border: none;
  border-radius: 4px;
  background: #f2711c;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
  transition: opacity 0.2s;
}

.draw-header-refresh:active {
  background: #e55a00;
}

.draw-header-refresh:disabled,
.draw-header-refresh.is-refreshing {
  opacity: 0.75;
  cursor: wait;
}

.draw-header.is-refreshing {
  opacity: 0.92;
}

.draw-header-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 76px;
  font-size: 18px;
  font-weight: 900;
  color: #f2711c;
}

.draw-header-loading-spin {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(242, 113, 28, 0.25);
  border-top-color: #f2711c;
  border-radius: 50%;
  animation: refresh-spin 0.7s linear infinite;
}

.draw-header-balls.refresh-done {
  animation: header-balls-in 0.45s ease;
}

@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

@keyframes header-balls-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.page.is-refreshing {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s;
}

.page.refresh-done {
  animation: page-refresh-in 0.45s ease;
}

.page-refresh-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  pointer-events: none;
}

.page-refresh-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-refresh-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.page-refresh-spin {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(242, 113, 28, 0.2);
  border-top-color: #f2711c;
  border-radius: 50%;
  animation: refresh-spin 0.7s linear infinite;
}

.page-refresh-text {
  font-size: 17px;
  font-weight: 900;
  color: #111;
}

@keyframes page-refresh-in {
  from { opacity: 0.85; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.draw-header-pending {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #f2711c;
  font-weight: 900;
  padding: 8px 0;
}

.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;
}

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

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

.top-date-bar {
  margin: 0 0 4px;
  padding: 8px 8px;
  background: var(--cyan-gradient);
  border-radius: var(--radius-sm);
  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: var(--cyan-gradient);
  border-radius: var(--radius-sm);
  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(--cyan-gradient);
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--blue-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(--blue-dark);
}

/* ===== 滚动公告（最新消息等） ===== */
.notice-tag {
  flex-shrink: 0;
  background: var(--cyan-gradient);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  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: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--cyan-bg-light);
  border: 1px solid var(--cyan);
}

.icon-item:nth-child(even) .icon-circle {
  background: var(--cyan-bg-stripe);
  border-color: var(--cyan);
}

.icon-item:nth-child(3n) .icon-circle {
  background: var(--cyan-bg-light);
  border-color: var(--cyan);
}

.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: var(--cyan-bg-light);
  border-bottom: 1px solid var(--cyan);
}

.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(--cyan-gradient);
  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(--cyan);
  overflow: hidden;
  background: var(--white);
}

.domain-notice-bar {
  background: var(--cyan-gradient);
  color: #fff;
  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: var(--cyan-dark);
  color: #fff;
}

.domain-badge-blue {
  background: var(--cyan-gradient);
  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(--cyan-gradient);
  color: #fff;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  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,
.banner.green,
.banner.gold,
.banner.blue {
  background: var(--cyan-gradient);
  color: #fff;
  border-color: var(--blue-dark);
  border-radius: var(--radius-sm);
}

.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: 8px 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  background: var(--cyan-gradient);
  border-radius: var(--radius-sm);
}

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

.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: var(--radius-sm);
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: var(--cyan-gradient);
}

.item-tag.hot,
.item-tag.热,
.item-tag.准,
.item-tag.荐,
.item-tag.新,
.item-tag.VIP,
.item-tag.顶,
.item-tag.中,
.item-tag.稳 {
  background: var(--cyan-gradient);
}

.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(--blue-dark);
  background: var(--cyan-bg-light);
  border: 1px solid var(--cyan);
}

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

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

.group-title {
  margin: 8px 6px 4px;
  padding: 8px 10px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  background: var(--cyan-gradient);
  border-radius: var(--radius-sm);
  border-left: none;
}

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

.plan-module-header {
  padding: 8px 10px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  background: var(--cyan-gradient);
  border-bottom: none;
  border-radius: var(--radius-sm);
}

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

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

.plan-module-title {
  color: #fff;
  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;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.plan-module-table tr:nth-child(even) td {
  background: var(--cyan-bg-light);
}

.plan-module-table tr.pending td {
  background: var(--cyan-bg-stripe);
}

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

.plan-col-pred {
  color: var(--keyword-blue);
  font-weight: bold;
  font-size: 20px;
}

.plan-pred-main {
  color: var(--keyword-blue);
  font-weight: 900;
}

.plan-pred-slogan {
  color: var(--keyword-blue);
  font-weight: normal;
  font-size: 20px;
}

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

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

.feature-module-header {
  padding: 8px 10px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  background: var(--cyan-gradient);
  border-bottom: none;
  border-radius: var(--radius-sm);
}

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

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

.feature-module-title {
  color: #fff;
  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;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

#nav-odd_even_special .feature-row {
  font-size: 19px;
}

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

.feature-row.pending {
  background: var(--cyan-bg-stripe);
}

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

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

.feature-bracket {
  color: var(--keyword-blue);
  font-weight: bold;
}

.feature-prefix {
  color: var(--keyword-blue);
  font-weight: bold;
}

.feature-part {
  color: var(--keyword-blue);
  font-weight: bold;
}

.feature-part-hit {
  background: var(--cyan-highlight);
  color: var(--keyword-blue-dark);
}

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

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

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

.bs-module-header {
  padding: 8px 10px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  background: var(--cyan-gradient);
  border-bottom: none;
  border-radius: var(--radius-sm);
}

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

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

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

.bs-module-table-wrap {
  border-left: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.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;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bs-module-table tr:nth-child(even) td {
  background: var(--cyan-bg-light);
}

.bs-module-table tr.pending td {
  background: var(--cyan-bg-stripe);
}

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

.bs-col-pred {
  color: var(--keyword-blue);
  font-weight: bold;
  font-size: 20px;
}

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

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

.th-module-header {
  padding: 8px 10px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  background: var(--cyan-gradient);
  border-bottom: none;
  border-radius: var(--radius-sm);
}

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

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

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

.th-module-table-wrap {
  border-left: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.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;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.th-module-table tr:nth-child(even) td {
  background: var(--cyan-bg-light);
}

.th-module-table tr.pending td {
  background: var(--cyan-bg-stripe);
}

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

.th-col-pred {
  color: var(--keyword-blue);
  font-size: 20px;
}

.th-part {
  color: var(--keyword-blue);
  font-weight: bold;
}

.th-part-hit {
  background: var(--cyan-highlight);
  color: var(--keyword-blue-dark);
}

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

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

.kz-module-header {
  padding: 8px 10px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  background: var(--cyan-gradient);
  border-bottom: none;
  border-radius: var(--radius-sm);
}

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

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

.kz-module-title {
  color: #fff;
  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: #fff;
  background: var(--cyan-gradient);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.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;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.kz-module-table tr.pending td {
  background: var(--cyan-bg-stripe);
}

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

#nav-lose_all_zodiac .kz-module-table th:first-child,
#nav-lose_all_zodiac .kz-col-period,
#nav-best_eight_zodiac .kz-module-table th:first-child,
#nav-best_eight_zodiac .kz-col-period,
#nav-insider_3x .kz-module-table th:first-child,
#nav-insider_3x .kz-col-period,
#nav-insider_5x .kz-module-table th:first-child,
#nav-insider_5x .kz-col-period,
#nav-insider_domestic .kz-module-table th:first-child,
#nav-insider_domestic .kz-col-period,
#nav-triple_must .kz-module-table th:first-child,
#nav-triple_must .kz-col-period {
  width: 46%;
}

#nav-insider_odd_even .kz-module-table th:first-child,
#nav-insider_odd_even .kz-col-period {
  width: 50%;
}

.kz-col-pred {
  color: var(--keyword-blue);
  word-break: break-word;
}

.kz-col-te {
  color: #cc0000;
  font-weight: 900;
}

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

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

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

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

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

.kz-part {
  color: var(--keyword-blue);
}

.kz-part-hit {
  background: var(--cyan-highlight);
  color: var(--keyword-blue-dark);
}

.kz-prefix {
  color: var(--keyword-blue);
}

.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: var(--cyan-gradient);
  color: #fff;
  padding: 7px 5px;
  border: 1px solid var(--border);
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.pred-table td {
  padding: 7px 5px;
  border: 1px solid var(--border);
  vertical-align: middle;
  font-size: 19px;
  font-weight: bold;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.pred-table tr:nth-child(even) td { background: var(--cyan-bg-light); }
.pred-table tr.pending td { background: var(--cyan-bg-stripe); }

.pred-period {
  text-align: center;
  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;
  color: var(--keyword-blue);
}

.pred-line {
  margin-bottom: 4px;
  color: var(--keyword-blue);
}

.pred-num-cell {
  padding: 3px 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--keyword-blue);
}

.pred-result {
  text-align: center;
  font-weight: 900;
  font-size: 19px;
  width: 22%;
  color: #cc0000;
}

.pred-highlight {
  background: var(--cyan-highlight);
  color: var(--keyword-blue-dark);
  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(--cyan);
  background: var(--cyan-bg-light);
  color: var(--keyword-blue);
}

.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(--cyan-gradient);
  border-radius: var(--radius-sm);
}

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

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

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

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

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

.kill-tag.kill-empty {
  color: #999;
  background: var(--cyan-bg-light);
}

.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: var(--cyan-gradient);
  color: #fff;
  padding: 8px 6px;
  border: 1px solid var(--border);
  font-weight: bold;
  font-size: 17px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.data-table td {
  padding: 8px 6px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.data-table tr:nth-child(even) td { background: var(--cyan-bg-light); }

.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: var(--cyan-gradient-v);
  color: #fff;
  margin-top: 6px;
}

.footer p:first-child {
  color: #ffff00;
  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: var(--cyan-gradient);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(0, 188, 212, 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(0, 188, 212, 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);
  }
}
