/* Stage 8 trend density contract: keep the Caixianzhi skin, but use the 3Dyjs trend table dimensions. */

:root {
  --trend-card: #ffffff;
  --trend-border: #d9e7ef;
  --trend-grid: #cfe0ea;
  --trend-soft: #f7fbfd;
  --trend-header: #edf7fc;
  --trend-header-strong: #dceff8;
  --trend-red-soft: #fff3f6;
  --trend-red-soft-strong: #ffe5eb;
  --trend-blue-soft: #eef7ff;
  --trend-blue-soft-strong: #dcecff;
  --trend-ink: var(--cy-text, #17324a);
  --trend-muted: #6d8292;
  --trend-faint: #a5b2bd;
  --trend-red: #e93c58;
  --trend-red-dark: #c82643;
  --trend-blue: var(--cy-blue, #2d6fbd);
  --trend-blue-dark: var(--cy-navy, #244589);
  --trend-cyan: var(--cy-cyan, #10a5c9);
  --trend-gold: var(--cy-gold, #f5b531);
}

.cy-trend-reference-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--trend-border);
  border-radius: 8px;
  background: var(--trend-card);
  box-shadow: 0 8px 18px rgba(24, 50, 74, 0.05);
}

.cy-trend-reference-body {
  min-width: 0;
  padding: 0;
  background: var(--trend-card);
}

body[data-lottery] .cy-page-title h1 {
  position: relative;
  padding-left: 14px;
  letter-spacing: 0;
}

body[data-lottery] .cy-page-title h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--trend-gold), var(--trend-cyan));
  transform: translateY(-50%);
}

body[data-lottery] .cy-main > .cy-sidebar {
  display: none;
}

body[data-lottery] .cy-main {
  width: 1402px;
}

.cy-trend-reference-body .public_Title_BigBox {
  min-height: 48px;
  padding: 10px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-bottom: 1px solid #dce9f1;
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}

.cy-trend-reference-body .public_Title_Text,
.cy-trend-reference-body .public_Title_Text::before {
  display: none;
}

.cy-trend-reference-body .qishu {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cy-trend-reference-body .qishu a {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.cy-trend-reference-body .qishuBut {
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5e1eb;
  border-radius: 6px;
  background: #ffffff;
  color: var(--trend-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(24, 50, 74, 0.04);
  transition: background-color 0.16s, border-color 0.16s, color 0.16s;
}

.cy-trend-reference-body .qishuBut:hover {
  border-color: rgba(45, 111, 189, 0.46);
  background: #f1f9fe;
  color: var(--trend-blue-dark);
}

.cy-trend-reference-body .qishuBut.top:not(.active) {
  border-color: #d5e1eb;
  background: #ffffff;
  color: var(--trend-ink);
}

.cy-trend-reference-body .qishu a:nth-child(3) .qishuBut.top:not(.active),
.cy-trend-reference-body .qishuBut.active {
  border-color: var(--trend-blue-dark);
  background: var(--trend-blue-dark);
  color: #ffffff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.cy-trend-reference-body [class$="_bigTable"],
.cy-trend-reference-body .trend-table-scroll {
  margin: 0;
  padding: 0 0 12px;
  max-width: 100%;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(180deg, #ffffff 0, #fbfdff 100%);
  scrollbar-color: #9dc5d9 #eef6fb;
  scrollbar-width: thin;
}

.cy-trend-reference-body .trend-table-scroll.is-scroll-fit {
  padding-bottom: 0;
  overflow-x: hidden;
  scrollbar-width: none;
}

.cy-trend-reference-body .trend-table-scroll.is-scroll-fit::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cy-trend-reference-body .trend-table-scroll.is-scroll-needed {
  overflow-x: auto;
  scrollbar-width: thin;
}

.cy-trend-reference-body table,
.cy-trend-reference-body .trend-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #c9dce8;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  color: var(--trend-ink);
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(24, 50, 74, 0.04);
}

.cy-trend-reference-body table td,
.cy-trend-reference-body table th {
  height: 25px;
  min-width: 0;
  padding: 0;
  border-width: 0 1px 1px 0 !important;
  border-style: solid !important;
  border-color: var(--trend-grid) !important;
  background-clip: padding-box;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.cy-trend-reference-body table tr td:last-child,
.cy-trend-reference-body table tr th:last-child {
  border-right-width: 0 !important;
}

.cy-trend-reference-body .trend-issue-head,
.cy-trend-reference-body .trend-issue-cell,
.cy-trend-reference-body .trend-code-head,
.cy-trend-reference-body .trend-code-cell {
  min-width: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.cy-trend-reference-body thead td,
.cy-trend-reference-body thead th {
  height: 25px;
  background: linear-gradient(180deg, #f7fcff, var(--trend-header-strong)) !important;
  color: var(--trend-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.cy-trend-reference-body thead tr:nth-child(2) td,
.cy-trend-reference-body thead tr:nth-child(2) th {
  height: 25px;
  background: #f3f9fd !important;
  color: #315b8a;
  font-size: 12px;
}

.cy-trend-reference-body thead [class$="_Table_four"] {
  color: #123f78;
}

.cy-trend-reference-body thead .trend-zone-red {
  background: linear-gradient(180deg, #fffafc, var(--trend-red-soft-strong)) !important;
  color: #a9273e;
  box-shadow: inset 0 -2px 0 rgba(233, 60, 88, 0.28);
}

.cy-trend-reference-body thead .trend-zone-blue {
  background: linear-gradient(180deg, #f7fbff, var(--trend-blue-soft-strong)) !important;
  color: #205aa8;
  box-shadow: inset 0 -2px 0 rgba(45, 111, 189, 0.28);
}

.cy-trend-reference-body tbody tr:nth-child(even):not(.tyred):not(.tybule) td {
  background-color: #fbfdff;
}

.cy-trend-reference-body tbody tr:hover:not(.tyred):not(.tybule) td {
  background-color: #fffaf0;
}

.cy-trend-reference-body .issueNumber,
.cy-trend-reference-body .WinningNumbers,
.cy-trend-reference-body .tableText {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  white-space: nowrap;
}

.cy-trend-reference-body .issueNumber {
  overflow: hidden;
  color: var(--trend-blue-dark);
  font-weight: 800;
  line-height: 1;
  background: #eaf7fc;
  box-shadow: inset 3px 0 0 rgba(16, 165, 201, 0.42);
}

.cy-trend-reference-body .WinningNumbers {
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  color: #596f80;
  font-weight: 700;
  letter-spacing: 0;
}

.cy-trend-reference-body .trend-open-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10px;
  height: auto;
  margin: 0 1px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cy-trend-reference-body .trend-open-code-red,
.cy-trend-reference-body .trend-open-red {
  border: 0;
  background: transparent;
  color: var(--trend-red);
}

.cy-trend-reference-body .trend-open-code-blue,
.cy-trend-reference-body .trend-open-blue {
  min-width: 16px;
  border: 0;
  background: transparent;
  color: var(--trend-blue);
}

.cy-trend-reference-body .trend-open-separator {
  display: inline;
  height: auto;
  margin: 0 3px;
  padding: 0;
  color: #7b91a3;
  font-size: 12px;
  font-weight: 600;
}

.cy-trend-reference-body .tableText {
  color: #40586a;
  font-weight: 800;
}

.cy-trend-reference-body .typeBox,
.cy-trend-reference-body .typeText,
.cy-trend-reference-body .NumberTextBox,
.cy-trend-reference-body .NumberS {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cy-trend-reference-body .typeBox {
  width: 38px;
  height: 25px;
}

.cy-trend-reference-body .typeText {
  width: 30px;
  min-width: 30px;
  height: 20px;
  padding: 0;
  border-radius: 4px;
  color: #8c9aa6;
  font-size: 12px;
  font-weight: 700;
}

.cy-trend-reference-body .d1.ok .typeText,
.cy-trend-reference-body .d2.ok .typeText,
.cy-trend-reference-body .d3.ok .typeText,
.cy-trend-reference-body .typeText.redok,
.cy-trend-reference-body .typeText.blueok {
  color: #ffffff;
  background: var(--trend-blue);
}

.cy-trend-reference-body .NumberTextBox,
.cy-trend-reference-body .NumberS {
  width: 23.11px;
  height: 25px;
  margin: 0 auto;
}

.cy-trend-reference-body .NumberText {
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--trend-faint);
  font-size: 12px;
  font-weight: 700;
}

body[data-lottery="ssq"] .cy-trend-reference-body .issueNumber {
  width: 76.8px;
  min-width: 76.8px;
  max-width: 76.8px;
}

body[data-lottery="ssq"] .cy-trend-reference-body .WinningNumbers {
  width: 139.11px;
}

body[data-lottery="ssq"] .cy-trend-reference-body .tableText {
  width: 216.91px;
}

body[data-lottery="ssq"] .cy-trend-reference-body .NumberTextBox {
  width: 23.11px;
}

body[data-lottery="ssq"] .cy-trend-reference-body .NumberS {
  width: 23.11px;
}

body[data-lottery="cjdlt"] .cy-trend-reference-body .issueNumber {
  width: 79.11px;
  min-width: 79.11px;
  max-width: 79.11px;
}

body[data-lottery="cjdlt"] .cy-trend-reference-body .WinningNumbers {
  width: 184.41px;
}

body[data-lottery="cjdlt"] .cy-trend-reference-body .tableText {
  width: 264.52px;
}

body[data-lottery="cjdlt"] .cy-trend-reference-body .NumberTextBox {
  width: 23.11px;
}

body[data-lottery="cjdlt"] .cy-trend-reference-body .NumberS {
  width: 23.11px;
}

body[data-lottery="qlc"] .cy-trend-reference-body .issueNumber {
  width: 126.8px;
  min-width: 126.8px;
  max-width: 126.8px;
}

body[data-lottery="qlc"] .cy-trend-reference-body .WinningNumbers {
  width: 256.11px;
}

body[data-lottery="qlc"] .cy-trend-reference-body .tableText {
  width: 383.91px;
}

body[data-lottery="qlc"] .cy-trend-reference-body .NumberTextBox {
  width: 32.8px;
}

body[data-lottery="qlc"] .cy-trend-reference-body .NumberS {
  width: 32.8px;
}

body[data-lottery="qxc"] .cy-trend-reference-body .issueNumber {
  width: 76.8px;
  min-width: 76.8px;
  max-width: 76.8px;
}

body[data-lottery="qxc"] .cy-trend-reference-body .WinningNumbers {
  width: 189.11px;
}

body[data-lottery="qxc"] .cy-trend-reference-body .tableText {
  width: 265.91px;
}

body[data-lottery="qxc"] .cy-trend-reference-body .NumberTextBox {
  width: 23.11px;
}

body[data-lottery="qxc"] .cy-trend-reference-body .NumberS {
  width: 23.11px;
}

body[data-lottery="qxc"] .cy-trend-reference-body .trend-open-separator {
  margin: 0 4px;
}

body[data-lottery="pl5"] .cy-trend-reference-body .issueNumber {
  width: 76.8px;
  min-width: 76.8px;
  max-width: 76.8px;
}

body[data-lottery="pl5"] .cy-trend-reference-body .WinningNumbers {
  width: 114.11px;
}

body[data-lottery="pl5"] .cy-trend-reference-body .tableText {
  width: 192.91px;
}

body[data-lottery="pl5"] .cy-trend-reference-body .NumberTextBox {
  width: 23.11px;
}

body[data-lottery="pl5"] .cy-trend-reference-body .NumberS {
  width: 23.11px;
}

body[data-lottery="pl3"] .cy-trend-reference-body .issueNumber {
  width: 76.8px;
  min-width: 76.8px;
  max-width: 76.8px;
}

body[data-lottery="pl3"] .cy-trend-reference-body .WinningNumbers {
  width: 84.11px;
}

body[data-lottery="pl3"] .cy-trend-reference-body .tableText {
  width: 161.91px;
}

body[data-lottery="pl3"] .cy-trend-reference-body .NumberTextBox {
  width: 36.303px;
}

body[data-lottery="pl3"] .cy-trend-reference-body .NumberS {
  width: 36.303px;
}

body[data-lottery="pl3"] .cy-trend-reference-body .typeBox {
  width: 38px;
}

body[data-lottery="fc3d"] .cy-trend-reference-body .issueNumber {
  width: 76.8px;
  min-width: 76.8px;
  max-width: 76.8px;
}

body[data-lottery="fc3d"] .cy-trend-reference-body .WinningNumbers {
  width: 84.11px;
}

body[data-lottery="fc3d"] .cy-trend-reference-body .tableText {
  width: 161.91px;
}

body[data-lottery="fc3d"] .cy-trend-reference-body .NumberTextBox {
  width: 36.303px;
}

body[data-lottery="fc3d"] .cy-trend-reference-body .NumberS {
  width: 36.303px;
}

body[data-lottery="fc3d"] .cy-trend-reference-body .typeBox {
  width: 38px;
}

body[data-lottery="kl8"] .cy-trend-reference-body .issueNumber {
  width: 82.72px;
  min-width: 82.72px;
  max-width: 82.72px;
}

body[data-lottery="kl8"] .cy-trend-reference-body .tableText {
  width: 82.72px;
}

body[data-lottery="kl8"] .cy-trend-reference-body .NumberTextBox {
  width: 23.11px;
}

body[data-lottery="kl8"] .cy-trend-reference-body .NumberS {
  width: 23.11px;
}

.cy-trend-reference-body .redok,
.cy-trend-reference-body .blueok {
  color: #ffffff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cy-trend-reference-body .redok {
  background: var(--trend-red);
  border: 1px solid var(--trend-red-dark);
}

.cy-trend-reference-body .blueok {
  background: var(--trend-blue);
  border: 1px solid #1f5da3;
}

.cy-trend-reference-body .bgred {
  background-color: #fff7f8;
}

.cy-trend-reference-body .bgcheng {
  background-color: #fffaf0;
}

.cy-trend-reference-body .bgbule {
  background-color: #f2f9fd;
}

.cy-trend-reference-body .tyred td,
.cy-trend-reference-body .tybule td {
  background: #f5f9fc !important;
  color: var(--trend-ink);
  font-weight: 700;
}

.cy-trend-reference-body .tyred td:first-child,
.cy-trend-reference-body .tybule td:first-child {
  background: #eaf3f8 !important;
}

.cy-trend-reference-body .tyred .NumberText,
.cy-trend-reference-body .tybule .NumberText,
.cy-trend-reference-body .NumberS {
  color: #536b7d;
}

@media (max-width: 1500px) {
  .cy-trend-reference-body [class$="_bigTable"] {
    padding: 0 0 12px;
  }

  .cy-trend-reference-body table td,
  .cy-trend-reference-body table th {
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 901px) {
  body[data-lottery] .cy-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
