/* 28pc.men result-first homepage layout, 2026-10-29 */
html[data-site='guanlan'] body[data-page='home'] {
  --result-accent: #e7193f;
  --result-accent-deep: #c9082d;
  --result-accent-soft: #fff0f3;
  --result-line: #eadfe2;
  --result-card: #ffffff;
  --result-ink: #1d2027;
  --result-muted: #727783;
  --result-shadow: 0 12px 30px rgba(65, 28, 40, 0.07), 0 2px 7px rgba(65, 28, 40, 0.04);
  background: #f8f8fa !important;
}

html[data-site='guanlan'][data-theme='dark'] body[data-page='home'] .site-header .nav a {
  color: #d9e1e8 !important;
}

html[data-site='guanlan'][data-theme='dark'] body[data-page='home'] .site-header .nav a[aria-current='page'] {
  color: #ff3155 !important;
}

@media (min-width: 901px) {
  html[data-site='guanlan'] body[data-page='home'] .lottery-brand-mark {
    background: linear-gradient(145deg, #f1284b, #d90b31) !important;
    box-shadow: 0 8px 18px rgba(231, 25, 63, 0.18);
  }

  html[data-site='guanlan'] body[data-page='home'] .brand {
    color: var(--result-ink) !important;
  }

  html[data-site='guanlan'] body[data-page='home'] .nav a[aria-current='page'] {
    color: var(--result-accent) !important;
  }

  html[data-site='guanlan'] body[data-page='home'] .nav a[aria-current='page']::after {
    background: var(--result-accent) !important;
  }
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .result {
  grid-template-columns: minmax(0, 1.95fr) minmax(310px, 0.9fr) !important;
  grid-template-rows: auto minmax(132px, auto) auto auto !important;
  column-gap: 20px !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview,
html[data-site='guanlan'] body[data-page='home'] .blue-overview .market-live {
  min-height: 300px !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-top {
  border-color: var(--result-line) !important;
  border-radius: 16px 16px 0 0 !important;
  background: var(--result-card) !important;
  box-shadow: 0 -3px 18px rgba(65, 28, 40, 0.025) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .live-status {
  color: var(--result-accent) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls {
  border-color: var(--result-line) !important;
  background: var(--result-card) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span,
html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong {
  width: 86px !important;
  height: 86px !important;
  background: linear-gradient(145deg, #ff4968, #ec1741) !important;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.36), 0 10px 22px rgba(231, 25, 63, 0.16) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span:nth-of-type(2) {
  background: linear-gradient(145deg, #ff8293, #f25370) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview.market-live .result .balls > span:nth-of-type(1),
html[data-site='guanlan'] body[data-page='home'][data-draw-state] .blue-overview.market-live .result .balls > span:nth-of-type(1) {
  background: linear-gradient(145deg, #ff4968, #ec1741) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview.market-live .result .balls > span:nth-of-type(2),
html[data-site='guanlan'] body[data-page='home'][data-draw-state] .blue-overview.market-live .result .balls > span:nth-of-type(2) {
  background: linear-gradient(145deg, #ff8293, #f25370) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview.market-live .result .balls > span:nth-of-type(3),
html[data-site='guanlan'] body[data-page='home'][data-draw-state] .blue-overview.market-live .result .balls > span:nth-of-type(3) {
  background: linear-gradient(145deg, #f45d78, #df264d) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span:nth-of-type(3) {
  background: linear-gradient(145deg, #f45d78, #df264d) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong {
  width: 96px !important;
  height: 96px !important;
  color: #fff !important;
  background: linear-gradient(145deg, #ee173b, #ce0028) !important;
  font-size: 54px !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls i {
  color: #252832 !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom {
  display: contents !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .result-bottom::before {
  display: none !important;
  content: none !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview [data-labels] {
  grid-column: 1 !important;
  grid-row: 3 !important;
  min-height: 50px;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 9px;
  padding: 5px 18px 12px;
  border-right: 1px solid var(--result-line);
  border-left: 1px solid var(--result-line);
  background: var(--result-card);
}

html[data-site='guanlan'] body[data-page='home'] .market-live [data-labels] > .tag {
  min-width: 52px;
  border: 0 !important;
  color: var(--result-accent-deep) !important;
  background: var(--result-accent-soft) !important;
}

html[data-site='guanlan'] body[data-page='home'] .market-live [data-labels] > .tag:nth-child(2) {
  color: #a53b75 !important;
  background: #f9eef8 !important;
}

html[data-site='guanlan'] body[data-page='home'] .market-live [data-labels] > .tag:nth-child(3) {
  color: #a24c24 !important;
  background: #fff3e8 !important;
}

html[data-site='guanlan'] body[data-page='home'] .market-live [data-labels] > .tag:nth-child(4) {
  color: #8c2840 !important;
  background: #fdecef !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .draw-time {
  grid-column: 1 !important;
  grid-row: 4 !important;
  border-color: var(--result-line) !important;
  border-radius: 0 0 16px 16px !important;
  background: var(--result-card) !important;
  box-shadow: 0 9px 22px rgba(65, 28, 40, 0.05) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown {
  grid-column: 2 !important;
  grid-row: 1 / 5 !important;
  min-height: 282px;
  display: grid !important;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px 24px !important;
  border: 1px solid var(--result-line) !important;
  border-radius: 16px !important;
  color: var(--result-muted) !important;
  background: var(--result-card) !important;
  box-shadow: var(--result-shadow) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown::before {
  content: '下一期开奖';
  color: var(--result-ink);
  font-size: 16px;
  font-weight: 760;
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown::after {
  content: '';
  width: 46px;
  height: 46px;
  grid-row: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 24%, transparent 26%), conic-gradient(var(--result-accent) 0 74%, #ffdce4 74% 100%);
  box-shadow: 0 0 0 8px var(--result-accent-soft);
}

html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown b {
  color: var(--result-accent) !important;
  font-size: clamp(48px, 5vw, 64px) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history {
  border-color: var(--result-line) !important;
  border-radius: 16px !important;
  background: var(--result-card) !important;
  box-shadow: var(--result-shadow) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading h2 svg,
html[data-site='guanlan'] body[data-page='home'] .blue-history .market-heading a,
html[data-site='guanlan'] body[data-page='home'] .blue-history .sum-number {
  color: var(--result-accent) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history .table-wrap {
  border-color: var(--result-line) !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table th {
  color: #5d4e54 !important;
  background: #fcf7f8 !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table tbody tr:first-child {
  background: #fff1f4 !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history .history-table tbody tr:nth-child(even) {
  background: #fffbfc !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history .mini-balls b {
  background: #ef2448 !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history .mini-balls b:nth-child(2) {
  background: #f46a80 !important;
}

html[data-site='guanlan'] body[data-page='home'] .blue-history .mini-balls b:nth-child(3) {
  background: #d83e5d !important;
}

html[data-site='guanlan'][data-theme='dark'] body[data-page='home'] {
  --result-line: #3d3036;
  --result-card: #1b171a;
  --result-ink: #f7f1f3;
  --result-muted: #b9aeb2;
  --result-accent-soft: #391921;
  background: #121012 !important;
}

html[data-site='guanlan'][data-theme='dark'] body[data-page='home'] .blue-history .history-table th {
  color: #d9cdd1 !important;
  background: #211a1d !important;
}

html[data-site='guanlan'][data-theme='dark'] body[data-page='home'] .blue-history .history-table tbody tr:first-child,
html[data-site='guanlan'][data-theme='dark'] body[data-page='home'] .blue-history .history-table tbody tr:nth-child(even) {
  background: #25191e !important;
}

@media (max-width: 900px) {
  html[data-site='guanlan'] body[data-page='home'] .blue-overview,
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .market-live {
    min-height: 0 !important;
  }
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .result {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    row-gap: 0 !important;
  }

  html[data-site='guanlan'] body[data-page='home'] .blue-overview [data-labels] {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  html[data-site='guanlan'] body[data-page='home'] .blue-overview .draw-time {
    grid-column: 1 !important;
    grid-row: 4 !important;
  }

  html[data-site='guanlan'] body[data-page='home'] .blue-overview .countdown {
    grid-column: 1 !important;
    grid-row: 5 !important;
    min-height: 220px;
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls {
    gap: 6px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls span,
  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong {
    width: 52px !important;
    height: 52px !important;
    font-size: 29px !important;
  }

  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls strong {
    width: 62px !important;
    font-size: 34px !important;
  }

  html[data-site='guanlan'] body[data-page='home'] .blue-overview .balls i {
    font-size: 21px !important;
  }
}

