/* 经典开奖站走势图样式（对齐第一张参考图） */

.trend-page {
  padding-top: 10px;
  padding-bottom: 28px;
}

.trend-hero.classic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.trend-hero-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trend-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.mini-balls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mini-balls .ball {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.trend-hero-meta {
  text-align: right;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.trend-hero-meta .muted { color: #999; font-size: 12px; }
.trend-hero-meta b { color: #222; }

.classic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 0 2px;
}
.limit-links,
.pos-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  font-size: 14px;
}
.limit-links a,
.pos-links a {
  color: #333;
  text-decoration: none;
}
.limit-links a.on,
.pos-links a.on {
  color: #e11d2e;
  font-weight: 700;
}

.classic-box {
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  overflow: auto;
}
.classic-caption {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.trend-main-box {
  position: relative;
}

.classic-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
  color: #333;
  font-variant-numeric: tabular-nums;
}
.classic-table th,
.classic-table td {
  border: 1px solid #e0e0e0;
  text-align: center;
  padding: 0 2px;
  height: 28px;
  min-width: 28px;
  white-space: nowrap;
  box-sizing: border-box;
  background: #fff;
}
.classic-table thead th {
  background: #f7f7f7;
  color: #555;
  font-weight: 600;
}
.classic-table .col-type {
  min-width: 72px;
  background: #fafafa;
  font-weight: 600;
  color: #666;
}
.classic-table .col-expect {
  min-width: 108px;
  padding: 0 8px;
  text-align: left;
  font-weight: 600;
  color: #444;
}
.classic-table .col-num { width: 28px; }
.classic-table .col-attr { min-width: 34px; width: 34px; }

.stats-table { font-size: 12px; }
.stats-table td { color: #666; }

.trend-scroll {
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(70vh, 820px);
}
.trend-table {
  position: relative;
  z-index: 1;
}
.trend-table.is-lhc .col-num {
  min-width: 24px;
  width: 24px;
}

.sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  border-right: 1px solid #ccc !important;
}
.trend-table thead .sticky-col {
  z-index: 3;
  background: #f7f7f7;
}

.miss {
  color: #c8c8c8;
  font-size: 11px;
}
.hit-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2d8cf0;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  position: relative;
  z-index: 2;
}
.hit-cell { background: #fff; }

/* 属性整格着色 —— 对齐第一张图 */
.bg-swing {
  background: #2d8cf0 !important;
  color: #fff !important;
  font-weight: 700;
}
.bg-odd,
.bg-even {
  background: #ff9900 !important;
  color: #fff !important;
  font-weight: 700;
}
.bg-big,
.bg-small {
  background: #19be6b !important;
  color: #fff !important;
  font-weight: 700;
}

.trend-line-layer {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.trend-table tbody tr:nth-child(even) td { background: #fcfcfc; }
.trend-table tbody tr:nth-child(even) td.sticky-col { background: #fcfcfc; }
.trend-table tbody tr:hover td { background: #f5f9ff; }
.trend-table tbody tr:hover td.sticky-col { background: #f5f9ff; }
.trend-table tbody tr:hover td.bg-swing { background: #2d8cf0 !important; }
.trend-table tbody tr:hover td.bg-odd,
.trend-table tbody tr:hover td.bg-even { background: #ff9900 !important; }
.trend-table tbody tr:hover td.bg-big,
.trend-table tbody tr:hover td.bg-small { background: #19be6b !important; }

.empty {
  padding: 36px !important;
  color: #999;
  text-align: center !important;
}

@media (max-width: 768px) {
  .classic-toolbar { flex-direction: column; align-items: flex-start; }
  .pos-links { gap: 10px 12px; font-size: 13px; }
  .classic-table { font-size: 11px; }
  .classic-table .col-expect { min-width: 90px; }
  .hit-ball { width: 18px; height: 18px; font-size: 10px; }
  .classic-table .col-num { min-width: 24px; width: 24px; }
  .trend-table.is-lhc .col-num { min-width: 22px; width: 22px; }
}
