/* 六合彩预测学习站 */

:root {
  --bg: #eef2f7;
  --card: #fff;
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --yes: #2e7d32;
  --no: #c62828;
  --gold: #f9a825;
  --text: #263238;
  --muted: #78909c;
  --border: #cfd8dc;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-upgrade-bar {
  position: sticky;
  top: 0;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #fff7e6, #fff1f0);
  border-bottom: 1px solid #ffd591;
  color: #ad6800;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
}
.site-upgrade-bar strong { color: #d46b08; font-weight: 800; }
.site-upgrade-bar span { color: #876800; }
html.trend-embed .site-upgrade-bar { display: none; }

.site-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 14px 20px; }
.site-header .inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.site-title { font-size: 1.3rem; font-weight: 700; }
.site-nav { display: flex; gap: 14px; }
.site-nav a { color: #fff; font-size: 0.88rem; padding: 4px 8px; border-radius: 4px; }
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,0.2); text-decoration: none; }

.lot-bar {
  background: #0a3d91;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.lot-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 16px;
}
.lot-tab {
  display: inline-block;
  padding: 10px 22px;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  transition: 0.15s;
}
.lot-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}
.lot-tab.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-bottom-color: var(--gold);
}
.lot-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: #e3f2fd;
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.section { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.section-title { font-size: 1.05rem; color: var(--primary-dark); border-left: 4px solid var(--gold); padding-left: 10px; margin-bottom: 12px; }
.notice { background: #e3f2fd; border: 1px solid #90caf9; border-radius: 6px; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 16px; }
.badge { font-size: 0.75rem; background: #eceff1; color: var(--muted); padding: 2px 8px; border-radius: 4px; font-weight: 400; }

.main-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.main-card { display: block; padding: 20px 16px; background: linear-gradient(180deg, #fff, #f5f9fc); border: 1px solid var(--border); border-radius: 10px; text-align: center; transition: 0.15s; color: var(--text); }
.main-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.main-card-name { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.main-card-meta { font-size: 0.78rem; color: var(--muted); }

.section-tag { font-size: 0.72rem; font-weight: 600; color: #fff; background: #27ae60; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.featured-card { position: relative; display: block; padding: 16px 14px; background: linear-gradient(135deg, #fff 0%, #eef8f0 100%); border: 1px solid #b8dfc4; border-radius: 10px; text-align: center; transition: 0.15s; color: var(--text); }
.featured-card:hover { border-color: #27ae60; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(39,174,96,0.15); text-decoration: none; }
.featured-tag { position: absolute; top: 8px; right: 8px; font-size: 0.65rem; font-weight: 700; color: #fff; background: #e67e22; padding: 1px 6px; border-radius: 3px; }
.featured-name { font-size: 1.05rem; font-weight: 700; color: #1e8449; margin-bottom: 4px; }
.featured-meta { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }

.section-tag-kill { background: #c0392b; }
.kill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.kill-card { position: relative; display: block; padding: 16px 14px; background: linear-gradient(135deg, #fff 0%, #fdf2f1 100%); border: 1px solid #e8b4b0; border-radius: 10px; text-align: center; transition: 0.15s; color: var(--text); }
.kill-card:hover { border-color: #c0392b; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(192,57,43,0.15); text-decoration: none; }
.kill-tag { position: absolute; top: 8px; right: 8px; font-size: 0.65rem; font-weight: 700; color: #fff; background: #c0392b; padding: 1px 6px; border-radius: 3px; }
.kill-name { font-size: 1.05rem; font-weight: 700; color: #922b21; margin-bottom: 4px; }
.kill-meta { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }

.scope-block { border-top: 3px solid var(--primary); }
.scope-title { color: var(--primary); }

.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sub-grid.zodiac-grid { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.sub-card { display: block; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fafafa; color: var(--text); transition: 0.15s; }
.sub-card:hover { border-color: var(--primary); background: #fff; text-decoration: none; }
.sub-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.sub-stats { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.sub-more { font-size: 0.72rem; color: var(--primary); margin-top: 6px; }

.check-grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; max-width: 100%; }
.check-grid .check { display: flex; align-items: center; justify-content: center; height: 28px; border-radius: 4px; font-size: 0.85rem; font-weight: 700; }
.check.yes { background: #e8f5e9; color: var(--yes); }
.check.no { background: #ffebee; color: var(--no); }
.check.pending { background: #f5f5f5; color: #bbb; }

.sub-card .check-grid { grid-template-columns: repeat(10, 1fr); }
.sub-card .check { height: 20px; font-size: 0.7rem; }

.draw-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ball { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; color: #fff; }
.ball.red { background: #e53935; }
.ball.blue { background: #1e88e5; }
.ball.green { background: #43a047; }
.ball.special { outline: 2px solid var(--gold); }
.draw-row.mini .ball { width: 22px; height: 22px; font-size: 0.65rem; }
.plus { color: var(--muted); }
.draw-meta { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.stat-item { text-align: center; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.stat-item .num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-item .yes-text { color: var(--yes); }
.stat-item .no-text { color: var(--no); }
.stat-item .label { font-size: 0.75rem; color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th, .data-table td { border-bottom: 1px solid var(--border); padding: 8px 6px; text-align: left; }
.data-table th { background: #eceff1; color: var(--primary-dark); position: sticky; top: 0; }
.record-table .result-cell { text-align: center; width: 50px; }
.mark { font-size: 1.1rem; font-weight: 700; }
.mark.yes { color: var(--yes); }
.mark.no { color: var(--no); }
.row-hit { background: #fafffa; }
.row-miss { background: #fffafa; }

.empty { text-align: center; padding: 24px; color: var(--muted); }
.hint { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.site-footer { text-align: center; padding: 16px; font-size: 0.75rem; color: var(--muted); }

.sub-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.sub-dots .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sub-dots .dot.yes { background: var(--yes); }
.sub-dots .dot.no { background: var(--no); }
.sub-dots .dot.pending {
  background: transparent;
  border: 1.5px solid #90a4ae;
  box-sizing: border-box;
}
.legend-dot { width: 10px; height: 10px; flex-shrink: 0; }

/* ===== column 页 · 仿 pcpc8.com 表格风 ===== */
.page-column { background: #f5f5f5; }
.container-narrow { max-width: 720px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }

.pc-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #1a237e, #283593);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  font-size: 0.88rem;
}
.pc-topbar strong { font-size: 1rem; }
.pc-sub { display: block; font-size: 0.75rem; opacity: 0.85; margin-top: 2px; }
.pc-topbar-right { font-size: 0.82rem; }

.pc-summary {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 10px 16px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.pc-summary .s-yes { color: var(--yes); }
.pc-summary .s-no { color: var(--no); }
.pc-summary b { font-size: 1rem; }

.pc-tabs {
  display: flex;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
}
.pc-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: #fafafa;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.pc-tab.active {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.pc-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.pc-panel.hidden { display: none; }

.pc-table-wrap { overflow-x: auto; max-height: 70vh; overflow-y: auto; }
.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.pc-table thead { position: sticky; top: 0; z-index: 1; }
.pc-table th {
  background: #37474f;
  color: #fff;
  padding: 10px 8px;
  font-weight: 600;
  text-align: center;
}
.pc-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
}
.pc-table tbody tr:nth-child(even) { background: #fafafa; }
.pc-table tbody tr:hover { background: #f0f7ff; }
.pc-table .row-yes { }
.pc-table .row-no { }

.col-issue { width: 22%; font-weight: 600; color: #455a64; }
.col-predict { text-align: left !important; }
.col-open { width: 22%; }
.col-result { width: 16%; }

.predict-text {
  display: block;
  font-weight: 600;
  color: #1565c0;
}
.predict-nums {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.predict-num-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 4px;
  max-width: 210px;
}
.predict-num-chip {
  display: block;
  font-size: 0.65rem;
  line-height: 1.35;
  text-align: center;
  background: #eef2f6;
  border-radius: 2px;
  color: #546e7a;
  padding: 0 1px;
}
.predict-num-grid.cols-10 {
  grid-template-columns: repeat(10, 1fr);
  max-width: 280px;
}
.open-num {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #e65100;
}
.open-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pc-table .open-cell .ball {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}
.ball-pending {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed #90a4ae;
  background: #fafafa;
  display: inline-block;
  box-sizing: border-box;
}
.open-attr.pending-label {
  color: #78909c;
}
.open-attr {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.result-tag {
  display: inline-block;
  min-width: 36px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}
.result-tag.yes { background: #e8f5e9; color: var(--yes); }
.result-tag.no { background: #ffebee; color: var(--no); }
.result-tag.wait {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px dashed #90caf9;
}

.stats-panel { padding: 16px; }
.stats-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}
.stats-row strong { font-size: 1.1rem; }
.stats-row.yes strong { color: var(--yes); }
.stats-row.no strong { color: var(--no); }
.stats-row.muted { font-size: 0.85rem; color: #90a4ae; }
.stats-row.muted strong { font-size: 0.85rem; font-weight: 500; color: #78909c; }

/* ===== 生肖预测 ===== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.type-card {
  display: block;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fff8e1);
  color: var(--text);
  text-align: center;
  transition: 0.15s;
}
.type-card:hover { border-color: #f9a825; box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.type-name { font-size: 1.15rem; font-weight: 700; color: #e65100; margin-bottom: 6px; }
.type-desc { font-size: 0.82rem; color: var(--muted); }
.type-rule { font-size: 0.75rem; color: #1565c0; margin-top: 6px; }
.sub-heading { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; }

.zx-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }

.zx-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  font-style: normal;
}

/* 命中：绿圈 */
.zx-tag.hit {
  color: var(--yes);
  background: #e8f5e9;
  border-color: var(--yes);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.25);
}
/* 未出：红圈 */
.zx-tag.miss {
  color: var(--no);
  background: #ffebee;
  border-color: var(--no);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2);
  text-decoration: line-through;
  opacity: 0.85;
}
/* 待开奖 */
.zx-tag.wait {
  color: #1565c0;
  background: #e3f2fd;
  border: 2px dashed #1565c0;
}
/* 开奖肖（预测内命中） */
.zx-tag.hit-open {
  color: #fff;
  background: var(--yes);
  border-color: #1b5e20;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.35);
}
/* 开奖肖（非预测） */
.zx-tag.open {
  color: #546e7a;
  background: #eceff1;
  border-color: #b0bec5;
}

.zx-tag.sample { pointer-events: none; }

.current-predict {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 14px 16px;
  text-align: center;
}
.cp-label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.cp-hint { display: block; font-size: 0.78rem; color: #1565c0; margin-top: 8px; }

.legend-bar {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legend-bar span { display: flex; align-items: center; gap: 6px; }

.predict-sub { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

.line-card { text-align: center; position: relative; }

/* 连中2期高亮 */
.sub-card.card-streak {
  border: 2px solid #ff9800 !important;
  background: linear-gradient(180deg, #fff8e1, #fff) !important;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.25), var(--shadow);
}
.badge-streak {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  z-index: 1;
}

/* 连错高亮 */
.sub-card.card-miss-streak {
  border: 2px solid #5c6bc0 !important;
  background: linear-gradient(180deg, #e8eaf6, #fff) !important;
  box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.22), var(--shadow);
}
.badge-miss-streak {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  z-index: 1;
}

/* 偏高准确率 */
.rate-high {
  color: #d84315 !important;
  font-weight: 800;
  font-size: 0.95em;
  background: linear-gradient(180deg, #ffe0b2, #ffcc80);
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid #ffb74d;
}
.rate-high.sample { font-size: 0.78rem; }
.rate-val { color: #546e7a; font-weight: 600; }
.acc-detail { font-size: 0.72rem; color: #90a4ae; margin-left: 2px; }
.sub-stats { font-size: 0.78rem; line-height: 1.5; }

.legend-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 6px;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid #ccc;
}
.legend-box.streak {
  border-color: #ff9800;
  background: #fff8e1;
  box-shadow: 0 0 0 1px rgba(255, 152, 0, 0.4);
}
.legend-box.miss-streak {
  border-color: #5c6bc0;
  background: #e8eaf6;
  box-shadow: 0 0 0 1px rgba(92, 107, 192, 0.4);
}

.sub-card { position: relative; }

.zx-row.table-zx {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
}
.zx-row.table-zx .zx-tag {
  min-width: 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.zx-row.mini {
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: space-between;
  width: 100%;
  overflow: visible;
}
.zx-row.mini .zx-tag {
  min-width: 0;
  width: auto;
  flex: 1 1 0;
  max-width: 26px;
  height: 22px;
  font-size: 0.62rem;
  padding: 0;
  flex-shrink: 1;
  box-shadow: none;
}
.pc-table .col-predict { min-width: 220px; white-space: normal; vertical-align: top; }
.pc-table tr.row-pending { background: #f3f8ff; }

@media (max-width: 600px) {
  .check-grid { grid-template-columns: repeat(10, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-topbar { flex-direction: column; align-items: flex-start; }
  .col-predict .predict-nums { font-size: 0.7rem; }
}

/* ===== 走势分布图（9800 乐透堂风格） ===== */
.page-trend { background: #d6ebf7; }
html.trend-embed,
html.trend-embed body.page-trend { background: #d6ebf7; }
html.trend-embed .site-header,
html.trend-embed .lot-bar,
html.trend-embed .site-footer { display: none !important; }
html.trend-embed .container-wide { padding: 4px 2px; }
.container-wide { max-width: 100%; padding: 6px 4px; }
.page-trend .section { padding: 6px 8px; margin-bottom: 6px; background: #eef6fc; border-color: #9ec5e8; }
.page-trend .trend-panel { background: #eef6fc; padding: 4px; }
.page-trend .section-title { font-size: 0.9rem; margin-bottom: 4px; color: #003366; }
.page-trend .hint { font-size: 0.72rem; margin-bottom: 2px; }

.trend-query-hint {
  font-size: 0.72rem;
  color: #336699;
  margin-bottom: 6px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #9ec5e8;
}

.trend-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.trend-toolbar-row:last-child { margin-bottom: 0; }
.trend-toolbar-label { font-size: 0.72rem; font-weight: 700; color: #003366; white-space: nowrap; }

.trend-quick, .trend-btn {
  padding: 2px 7px;
  font-size: 0.7rem;
  border: 1px solid #7eb8e8;
  border-radius: 2px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-family: inherit;
}
.trend-quick:hover, .trend-btn:hover { background: #e3f2fd; }
.trend-quick.active { background: #336699; border-color: #336699; color: #fff; }
.trend-btn { background: #336699; border-color: #336699; color: #fff; font-weight: 600; }
.trend-btn.secondary { background: #fff; color: #666; }
.trend-check { font-size: 0.7rem; display: flex; align-items: center; gap: 3px; cursor: pointer; }
.trend-input { width: 76px; padding: 2px 5px; border: 1px solid #9ec5e8; font-size: 0.7rem; }

.trend-scroll {
  overflow-x: auto;
  overflow-y: visible;
  background: #fff;
  border: 1px solid #7eb8e8;
}
.trend-main-scroll {
  max-height: none;
  overflow-y: visible;
}
.trend-sort-scroll { margin-top: 0; max-height: none; overflow-y: visible; }

.trend-table-9800,
.trend-sort-table {
  width: 875px;
  min-width: 875px;
}

.trend-table {
  border-collapse: collapse;
  font-size: 0.62rem;
  min-width: 100%;
  white-space: nowrap;
  table-layout: fixed;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
.trend-table th,
.trend-table td {
  border: 1px solid #9ec5e8;
  text-align: center;
  padding: 0;
  width: 17px;
  min-width: 17px;
  max-width: 17px;
  height: 17px;
  line-height: 17px;
  vertical-align: middle;
  overflow: hidden;
}

/* 左列标签 */
.lbl-issue, .trend-issue-head, .trend-issue {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f5f5f5 !important;
  font-weight: 700;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  font-size: 0.58rem;
  color: #333 !important;
  border-color: #9ec5e8 !important;
}
.lbl-num, .trend-num-head {
  background: #336699 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.56rem;
  border-color: #254e77 !important;
}
.lbl-pick, .trend-label.pick-label {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #ffccff !important;
  color: #660066 !important;
  font-weight: 700;
  font-size: 0.58rem;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 2px 0 !important;
}
.lbl-freq, .lbl-freq-h {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #ffff00 !important;
  color: #cc0000 !important;
  font-weight: 700;
  font-size: 0.58rem;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  text-align: center;
  vertical-align: middle !important;
  line-height: 1 !important;
  padding: 2px 0 !important;
}
.lbl-freq-v {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #ffff00 !important;
  color: #cc0000 !important;
  font-weight: 700;
  font-size: 0.58rem;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  text-align: center;
  vertical-align: middle !important;
  line-height: 1 !important;
  padding: 2px 0 !important;
}
.lbl-janghao {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #cc0000 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.58rem;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 17px !important;
  line-height: 17px !important;
  padding: 0 !important;
}
.trend-label {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #ffff99 !important;
  font-weight: 700;
  font-size: 0.58rem;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
}

.trend-cell.empty { background: #fff; }
.trend-cell.hit {
  font-weight: 700;
  color: #fff;
  font-size: 0.56rem;
  padding: 0 !important;
}
.trend-cell.hit.ping { background: #cc0000; }
.trend-cell.hit.te { background: #0033cc; }
.trend-cell.hit.red { background: #cc0000; }
.trend-cell.hit.blue { background: #0033cc; }
.trend-cell.hit.green { background: #388e3c; }

.pick-label-row td { background: #fff; }
.pick-num-row td { background: #fff; }
.pick-num-row .trend-pick {
  background: #336699 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.56rem;
  border-color: #254e77 !important;
}
.pick-num-row .trend-pick:hover { background: #254e77 !important; color: #fff !important; }
.pick-num-row .trend-pick.on { background: #cc0000 !important; border-color: #990000 !important; color: #fff !important; }
.pick-gap { background: #fff !important; }

.trend-pick-empty { background: #fff; cursor: pointer; }
.trend-pick {
  font-size: 0.54rem;
  color: #666;
  cursor: pointer;
  user-select: none;
  background: #fff;
}
.trend-pick:hover { background: #e3f2fd !important; color: #003366; }
.trend-pick.on { background: #336699 !important; color: #fff !important; font-weight: 700; }

.trend-freq-count-row td,
.sort-count-row td.freq-count-cell,
.freq-count-cell {
  height: 17px !important;
  line-height: 17px !important;
  vertical-align: middle !important;
  padding: 0 !important;
  font-weight: 700;
  font-size: 0.56rem;
  background: #fff !important;
}
.freq-count-cell.zero { color: #bbb; }

.trend-freq-bar-row .stat-bar-cell,
.sort-bar-row .stat-bar-cell {
  height: 28px !important;
  vertical-align: bottom !important;
  padding: 0 1px 1px !important;
}

.trend-stats-table tbody tr td,
.sort-count-row td:not(.lbl-freq-h) {
  padding: 0 !important;
}

.stat-bar-cell {
  vertical-align: bottom !important;
  padding: 0 1px 1px !important;
  width: 17px !important;
  min-width: 17px !important;
  background: #fff !important;
}
.stat-bar-cell.bar-only {
  height: 28px !important;
}
.stat-bar-cell.zero .stat-num { color: #bbb; }
.stat-cell-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-height: 38px;
}
.stat-num {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.1;
  color: #000;
}
.stat-vbar {
  display: block;
  width: 11px;
  height: 20px;
  background: #eee;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.stat-bar-cell.bar-only .stat-vbar {
  height: 22px;
}
.stat-vbar i {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 1px;
}
.stat-bar-cell.bar-red .stat-vbar i { background: #cc0000; }
.stat-bar-cell.bar-green .stat-vbar i { background: #009900; }

.trend-sort-block {
  margin-top: 0;
  background: transparent;
  border: none;
}
.trend-sort-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #009900;
  text-align: center;
  margin: 0;
  padding: 8px 4px 4px;
  background: transparent;
  border: none;
}
.trend-sort-scroll {
  border-top: none;
}
.trend-sort-table .sort-num-cell {
  font-weight: 700;
  font-size: 0.56rem;
  height: 17px !important;
  vertical-align: middle !important;
  background: #fff !important;
  padding: 0 !important;
}
.sort-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: #cc0000;
  color: #fff;
  font-weight: 700;
  font-size: 0.52rem;
  line-height: 1;
}
.sort-num-row td { background: #fff !important; height: 17px !important; }

/* 期数多时自动压缩行高，尽量一页显示 */
.trend-table-9800.trend-compact-1 th,
.trend-table-9800.trend-compact-1 td {
  height: 14px !important;
  line-height: 14px !important;
  font-size: 0.54rem;
}
.trend-table-9800.trend-compact-1 .trend-cell.hit { font-size: 0.52rem; }
.trend-table-9800.trend-compact-2 th,
.trend-table-9800.trend-compact-2 td {
  height: 12px !important;
  line-height: 12px !important;
  font-size: 0.5rem;
}
.trend-table-9800.trend-compact-2 .trend-cell.hit { font-size: 0.48rem; }
.trend-table-9800.trend-compact-3 th,
.trend-table-9800.trend-compact-3 td {
  height: 10px !important;
  line-height: 10px !important;
  font-size: 0.46rem;
}
.trend-table-9800.trend-compact-3 .trend-cell.hit { font-size: 0.44rem; }
.trend-table-9800.trend-compact-1 .freq-count-cell,
.trend-table-9800.trend-compact-2 .freq-count-cell,
.trend-table-9800.trend-compact-3 .freq-count-cell {
  font-size: 0.52rem;
}
.trend-table-9800.trend-compact-2 .stat-bar-cell.bar-only,
.trend-table-9800.trend-compact-3 .stat-bar-cell.bar-only {
  height: 22px !important;
}
.trend-table-9800.trend-compact-3 .stat-bar-cell.bar-only {
  height: 18px !important;
}
.trend-table-9800.trend-compact-3 .stat-vbar { height: 16px; }

.trend-explain-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  border: 1px solid #cc0000;
  font-size: 0.72rem;
}
.lbl-explain {
  width: 36px;
  background: #990000 !important;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  padding: 8px 4px;
  border-color: #990000 !important;
}
.explain-body {
  background: #ffff99 !important;
  color: #333;
  text-align: left;
  padding: 8px 10px;
  line-height: 1.6;
  font-size: 0.72rem;
  border-left: 1px solid #cc0000;
}
.explain-body strong { color: #000; font-weight: 700; }
.explain-body .hl-pick { color: #cc0000; font-weight: 700; }

.trend-sort-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.55rem;
}
.trend-sort-ball.red { background: #d32f2f; }
.trend-sort-ball.blue { background: #1976d2; }
.trend-sort-ball.green { background: #388e3c; }

.trend-tip {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

.trend-mode-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: #fff8f0;
  border: 1px solid #ffcc99;
}
.trend-mode-sep {
  color: #ff6600;
  font-size: 0.72rem;
  padding: 0 4px;
  user-select: none;
}
.trend-mode-tab {
  padding: 2px 4px;
  font-size: 0.72rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #cc5500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.trend-mode-tab:hover { color: #ff3300; text-decoration: underline; }
.trend-mode-tab.active {
  background: transparent;
  color: #cc0000;
  font-weight: 700;
  text-decoration: underline;
}

.trend-page-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  margin: 8px 0 6px;
}

.gann-grid-layout {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
  margin: 8px 0;
}
.gann-card-cell {
  vertical-align: top;
  width: 25%;
  padding: 4px;
}
.gann-card-cell.gann-empty { background: transparent; }
.gann-card {
  border: 1px solid #9ec5e8;
  background: #fff;
  padding: 4px 6px 8px;
}
.gann-card-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid #d6ebf7;
}
.gann-spiral-table {
  border-collapse: collapse;
  margin: 0 auto;
  width: 100%;
}
.gann-spiral-table td {
  border: 1px solid #b0c4de;
  text-align: center;
  vertical-align: middle;
  width: 14.28%;
  height: 22px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #333;
  padding: 0;
  background: #fff;
}
.gann-cell.outer {
  background: #cce5ff;
  color: #003366;
}
.gann-cell.hit {
  color: #cc0000;
  font-weight: 800;
  background: #fff;
}
.trend-cell.hit.grey { background: #999; color: #fff; font-size: 0.56rem; }
.trend-cell.hit.lianhao { background: #cc0000; color: #fff; }
.trend-cell.hit.lianzhuang { background: #cc0000; color: #fff; }

.t9800-data-table {
  border-collapse: collapse;
  font-size: 0.72rem;
  width: 100%;
  min-width: 480px;
}
.t9800-data-table th {
  background: #336699;
  color: #fff;
  font-weight: 700;
  border: 1px solid #254e77;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
}
.t9800-data-table td {
  border: 1px solid #9ec5e8;
  padding: 3px 5px;
  text-align: center;
  background: #fff;
}
.t9800-data-table tbody tr:nth-child(even) td { background: #f5faff; }
.t9800-issue-red { color: #cc0000; font-weight: 700; }
.t9800-week { color: #0033cc; font-weight: 700; }
.order-red { color: #cc0000; }
.order-blue { color: #0033cc; }
.order-green { color: #009900; }
.order-gold { color: #cc6600; }
.order-plus { color: #0033cc; }
.order-plus-gold { color: #cc6600; }

.zone-bg-0 { background: #cce5ff !important; }
.zone-bg-1 { background: #ffffcc !important; }
.zone-bg-2 { background: #cce5ff !important; }
.zone-bg-3 { background: #ffffcc !important; }
.zone-bg-4 { background: #cce5ff !important; }
.zone-bg-5 { background: #ffffcc !important; }
.zone-bg-6 { background: #cce5ff !important; }

.zone7-table .zone-hdr {
  font-weight: 700;
  font-size: 0.56rem;
  border-color: #7eb8e8 !important;
  color: #000 !important;
}
.zone7-table .zone-hdr-0 { background: #cce5ff !important; }
.zone7-table .zone-hdr-1 { background: #ffffcc !important; }
.zone7-table .zone-hdr-2 { background: #cce5ff !important; }
.zone7-table .zone-hdr-3 { background: #ffffcc !important; }
.zone7-table .zone-hdr-4 { background: #cce5ff !important; }
.zone7-table .zone-hdr-5 { background: #ffffcc !important; }
.zone7-table .zone-hdr-6 { background: #cce5ff !important; }
.zone7-table th:nth-child(7n+8),
.zone7-table td:nth-child(7n+8) { border-right: 2px solid #6699cc !important; }
.zone7-table .zone7-pick-row .zone7-pick,
.zone7-table .zone7-pick-row .trend-pick {
  background: #cc0000 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.56rem;
  border-color: #990000 !important;
}
.zone7-table .zone7-pick-row .zone7-pick.on,
.zone7-table .zone7-pick-row .trend-pick.on {
  background: #003366 !important;
  border-color: #002244 !important;
  color: #fff !important;
}

/* 七分区：命中号码红/蓝底白字 */
.zone7-table .trend-cell.hit.ping {
  background: #cc0000 !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.58rem !important;
  line-height: 17px !important;
}
.zone7-table .trend-cell.hit.te {
  background: #0033cc !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.58rem !important;
  line-height: 17px !important;
}
.zone7-table .trend-cell.empty { background: inherit !important; }
.zone7-table.trend-compact-1 .trend-cell.hit { font-size: 0.54rem !important; }
.zone7-table.trend-compact-2 .trend-cell.hit { font-size: 0.5rem !important; }
.zone7-table.trend-compact-3 .trend-cell.hit { font-size: 0.48rem !important; }
.zone-stat-count {
  text-align: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #000;
  height: 20px !important;
  line-height: 20px !important;
  background: #ffffcc !important;
  vertical-align: middle !important;
}
.zone-stat-bar {
  text-align: center;
  vertical-align: bottom !important;
  height: 36px !important;
  background: #ffffcc !important;
  padding: 0 0 2px !important;
}
.zone-vbar {
  display: inline-block;
  width: 22px;
  height: 30px;
  background: #ddd;
  position: relative;
  overflow: hidden;
}
.zone-vbar i {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #009900;
  min-height: 2px;
}
.zone7-table .zone-stat-count-row td,
.zone7-table .zone-stat-bar-row td { border-color: #9ec5e8 !important; }
.zone7-table .lbl-freq-v { background: #ffff00 !important; color: #cc0000 !important; }

.parity-balls { color: #9933cc; font-size: 0.68rem; }
.parity-ball { margin: 0 1px; }
.parity-base { background: #ffffcc !important; }
.parity-base.odd { color: #cc0000; font-weight: 700; }
.parity-ratio { background: #e8e8ff !important; font-weight: 700; }
.parity-dist.on { background: #90c060 !important; color: #000; font-weight: 700; }
.parity-stat-row td { background: #ffff99 !important; font-weight: 700; }
.parity-stat .p-odd { color: #009900; }
.parity-stat .p-even { color: #000; }

.tail-cell { min-width: 28px; }
.tail-hot-1 { background: #ffccff !important; }
.tail-hot-2 { background: #ff99cc !important; font-weight: 700; }
.tail-hot-3 { background: #cc0000 !important; color: #fff; font-weight: 700; }
.tail-repeat { font-size: 0.65rem; text-align: left; }

.head-cell { min-width: 32px; }
.head-hot-1 { background: #ffccff !important; }
.head-hot-2 { background: #cc6699 !important; color: #fff; font-weight: 700; }
.head-hot-3 { background: #660066 !important; color: #fff; font-weight: 700; }
.head-dots { letter-spacing: 2px; font-weight: 700; }
.head-bar-cell { vertical-align: bottom; }
.head-bar-val { display: block; font-size: 0.62rem; font-weight: 700; }

.sum-amp { text-align: left; font-size: 0.65rem; white-space: nowrap; }
.sum-bar { display: inline-block; height: 10px; margin-right: 3px; vertical-align: middle; }
.sum-bar.dec { background: #ffcc66; }
.sum-bar.inc { background: #66cc66; }
.sum-stat-row td { background: #ffffcc !important; font-weight: 700; }

.tuopai-section { margin: 12px 0; border: 1px solid #9ec5e8; background: #fff; padding: 8px; }
.tuopai-head { font-size: 0.75rem; margin-bottom: 8px; }
.tuopai-chart { display: flex; gap: 4px; overflow-x: auto; }
.tuopai-labels { flex-shrink: 0; width: 52px; font-size: 0.62rem; font-weight: 700; color: #336699; }
.tuopai-labels div { padding: 4px 2px; background: #eef6fc; border: 1px solid #9ec5e8; margin-bottom: 2px; text-align: center; }
.tuopai-label-v { writing-mode: vertical-rl; height: 60px; line-height: 52px; }
.tuopai-data { flex: 1; min-width: 0; }
.tuopai-num-row, .tuopai-bar-row { display: flex; gap: 2px; flex-wrap: nowrap; }
.tuopai-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: #fff; font-weight: 700; font-size: 0.58rem; flex-shrink: 0; }
.tuopai-bar-wrap { display: inline-flex; flex-direction: column; align-items: center; width: 22px; flex-shrink: 0; }
.tuopai-bar-val { font-size: 0.56rem; font-weight: 700; }
.tuopai-bar { display: block; width: 14px; height: 40px; background: #eee; position: relative; }
.tuopai-bar i { display: block; position: absolute; bottom: 0; left: 0; right: 0; min-height: 2px; }
.theme-purple, .tuopai-num.theme-purple, .tuopai-bar.theme-purple i { background: #7b1fa2; }
.theme-red, .tuopai-num.theme-red, .tuopai-bar.theme-red i { background: #cc0000; }
.theme-blue, .tuopai-num.theme-blue, .tuopai-bar.theme-blue i { background: #1565c0; }
.theme-green, .tuopai-num.theme-green, .tuopai-bar.theme-green i { background: #2e7d32; }
.theme-orange, .tuopai-num.theme-orange, .tuopai-bar.theme-orange i { background: #ef6c00; }
.theme-teal, .tuopai-num.theme-teal, .tuopai-bar.theme-teal i { background: #00838f; }
.theme-brown, .tuopai-num.theme-brown, .tuopai-bar.theme-brown i { background: #795548; }
.tuopai-head .theme-purple { color: #7b1fa2; }
.tuopai-head .theme-red { color: #cc0000; }
.tuopai-head .theme-blue { color: #1565c0; }
.tuopai-head .theme-green { color: #2e7d32; }
.tuopai-head .theme-orange { color: #ef6c00; }
.tuopai-head .theme-teal { color: #00838f; }
.tuopai-head .theme-brown { color: #795548; }

.gann-cell.hit-line {
  background: #009900;
  color: #fff;
  font-weight: 800;
}

.trend-data-table {
  border-collapse: collapse;
  font-size: 0.72rem;
  width: 100%;
  min-width: 360px;
}
.trend-data-table th,
.trend-data-table td {
  border: 1px solid #ddd;
  padding: 3px 5px;
  text-align: center;
}
.trend-data-table thead th {
  background: #eceff1;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}
.trend-data-table .trend-detail {
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 280px;
}
.trend-cell.miss-val {
  background: #fafafa;
  color: #78909c;
  font-size: 0.55rem;
  font-weight: 600;
}
.trend-cell.miss-warm { background: #fff3e0; color: #e65100; }
.trend-cell.miss-hot { background: #ffebee; color: #c62828; font-weight: 800; }
.hot-miss { color: #c62828; font-weight: 700; }

.trend-mini-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  margin: 0 1px;
}
.trend-mini-ball.red { background: #e53935; }
.trend-mini-ball.blue { background: #1e88e5; }
.trend-mini-ball.green { background: #43a047; }

.streak-yes { background: #fff8e1 !important; color: #e65100; font-weight: 700; }
.zone-hot { background: #e8f5e9 !important; }

.parity-odd { color: var(--primary); font-weight: 700; }
.parity-even { color: #c62828; font-weight: 700; }
.parity-bar {
  display: flex;
  width: 100px;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #eee;
  margin: 0 auto;
}
.parity-bar .odd { display: block; background: var(--primary); height: 100%; }
.parity-bar .even { display: block; background: #ef5350; height: 100%; }

.sum-high { color: #c62828; }
.sum-low { color: var(--primary); }
