/* =========================================================
   站点二：紫色紧凑资料页
   只影响 site2；第一站和第三站不会受到这些样式影响。
   ========================================================= */

.site2-purple {
  background: #ececec;
}

.site2-purple .new-front-container {
  --site2-purple: #673ab7;
  --site2-purple-dark: #5b2fac;
  --site2-purple-light: #efe8fb;
  --site2-row-a: #fffdfd;
  --site2-row-b: #f3edfa;
  --site2-row-line: #e5a48d;

  /* 第二站统一自适应尺寸：不再按手机、电脑分别覆盖。 */
  --site2-outer-gap: clamp(5px, 1.65cqw, 7px);
  --site2-inner-gap: clamp(3px, 1cqw, 5px);
  --site2-top-gap: clamp(5px, 1.45cqw, 8px);
  --site2-lottery-gap: clamp(15px, 4.2cqw, 20px);
  --site2-radius: clamp(5px, 1.45cqw, 7px);
  --site2-small-radius: clamp(2px, .7cqw, 4px);

  /* 第二站资料字号统一从这里修改。 */
  --site2-card-title-font-size: clamp(17px, 3.55cqw, 23px);
  --site2-random-font-size: clamp(14px, 3cqw, 16px);
  --site2-dense-random-font-size: var(--site2-random-font-size);
  --site2-rule-font-size: clamp(14px, 3.5cqw, 16px);

  /* 每张资料卡使用一种固定颜色；同一张卡内所有期数保持同色。 */
  --site2-random-color-1: #d83b2d; /* 红色 */
  --site2-random-color-2: #222222; /* 黑色 */
  --site2-random-color-3: #6b43b5; /* 紫色 */
  --site2-random-color-4: #1877b8; /* 蓝色 */
  --site2-random-color-5: #16866f; /* 青绿色 */
  --site2-random-color-6: #df6b1f; /* 橙色 */
  --material-random-font-size: var(--site2-random-font-size);
  --material-random-font-weight: 500;
  --material-random-line-height: 1.28;

  container-type: inline-size;
  background: #eee9f7;
}

/* 顶部固定图片：assets/new_front/456.png */
.site2-purple .new-front-container .sticky-banner {
  background: #170817;
}

.site2-purple .new-front-container .sticky-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 1166 / 373;
  object-fit: contain;
}

/* =========================================================
   开奖框：第二站左右贴边；外壳顶部内边距是顶图与开奖框之间
   唯一的间距来源，不再叠加空标签、margin 或重复覆盖样式。
   ========================================================= */
.site2-purple .new-front-container .site2-lottery-shell {
  width: 100%;
  padding-top: var(--site2-lottery-gap);
  background: #eee9f7;
}

.site2-purple .new-front-container .site2-lottery-shell > .lottery-area {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  overflow: hidden;
  border-radius: var(--site2-radius) var(--site2-radius) 6px 6px;
}

.site2-purple .new-front-container .lottery-tabs .tab:first-child {
  border-top-left-radius: var(--site2-radius);
}

.site2-purple .new-front-container .lottery-tabs .tab:last-child {
  border-top-right-radius: var(--site2-radius);
}

.site2-purple .new-front-container .draw-box {
  border-color: #673ab7 !important;
  transition: border-color .18s ease;
}

.site2-purple .new-front-container[data-active-lottery="hongkong_era"] .lottery-tabs .tab.active {
  background: #673ab7 !important;
}

.site2-purple .new-front-container[data-active-lottery="half_time"] .lottery-tabs .tab.active {
  background: #ff5722 !important;
}

.site2-purple .new-front-container[data-active-lottery="new_macau"] .lottery-tabs .tab.active {
  background: #2196f3 !important;
}

.site2-purple .new-front-container[data-active-lottery="hongkong"] .lottery-tabs .tab.active {
  background: #4caf50 !important;
}

.site2-purple .new-front-container[data-active-lottery="hongkong_era"] .draw-box {
  border-color: #673ab7 !important;
}

.site2-purple .new-front-container[data-active-lottery="half_time"] .draw-box {
  border-color: #ff5722 !important;
}

.site2-purple .new-front-container[data-active-lottery="new_macau"] .draw-box {
  border-color: #2196f3 !important;
}

.site2-purple .new-front-container[data-active-lottery="hongkong"] .draw-box {
  border-color: #4caf50 !important;
}

.site2-purple .new-front-container[data-active-lottery="hongkong_era"] .issue-text span,
.site2-purple .new-front-container[data-active-lottery="hongkong_era"] .countdown-text,
.site2-purple .new-front-container[data-active-lottery="hongkong_era"] .history-link,
.site2-purple .new-front-container[data-active-lottery="hongkong_era"] .next-draw {
  color: #673ab7 !important;
}

.site2-purple .new-front-container[data-active-lottery="half_time"] .issue-text span,
.site2-purple .new-front-container[data-active-lottery="half_time"] .countdown-text,
.site2-purple .new-front-container[data-active-lottery="half_time"] .history-link,
.site2-purple .new-front-container[data-active-lottery="half_time"] .next-draw {
  color: #ff5722 !important;
}

.site2-purple .new-front-container[data-active-lottery="new_macau"] .issue-text span,
.site2-purple .new-front-container[data-active-lottery="new_macau"] .countdown-text,
.site2-purple .new-front-container[data-active-lottery="new_macau"] .history-link,
.site2-purple .new-front-container[data-active-lottery="new_macau"] .next-draw {
  color: #2196f3 !important;
}

.site2-purple .new-front-container[data-active-lottery="hongkong"] .issue-text span,
.site2-purple .new-front-container[data-active-lottery="hongkong"] .countdown-text,
.site2-purple .new-front-container[data-active-lottery="hongkong"] .history-link,
.site2-purple .new-front-container[data-active-lottery="hongkong"] .next-draw {
  color: #4caf50 !important;
}

/* =========================================================
   开奖框下方：公告、GIF广告、四个帖子。
   ========================================================= */
.site2-purple .site2-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: clamp(30px, 7.8cqw, 34px);
  margin: clamp(4px, 1.3cqw, 6px) 0 0;
  overflow: hidden;
  border: 1px solid #673ab7;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #673ab7;
  color: #ffffff;
  font-size: clamp(12px, 2.55cqw, 16px);
  line-height: 1;
}

.site2-purple .site2-notice-label {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(28px, 7.3cqw, 32px);
  align-items: center;
  padding: 0 clamp(5px, 1.8cqw, 9px);
  color: #fff400;
  background: #673ab7;
  white-space: nowrap;
  font-weight: 700;
}

.site2-purple .site2-notice-window {
  min-width: 0;
  overflow: hidden;
  background: #673ab7;
  white-space: nowrap;
}

.site2-purple .site2-notice-track {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  box-sizing: content-box;
  color: #ffffff;
  animation: site2-notice-scroll 16s linear infinite;
}

@keyframes site2-notice-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}


.site2-purple .site2-gif-ad {
  margin: var(--site2-top-gap) var(--site2-outer-gap) 0;
  padding: clamp(2px, .7cqw, 3px);
  overflow: hidden;
  border: 1px solid #673ab7;
  border-radius: var(--site2-radius);
  background: #ffffff;
}

.site2-purple .site2-gif-ad img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 120;
  border-radius: var(--site2-small-radius);
  object-fit: fill;
}

.site2-purple .site2-post-list {
  display: grid;
  gap: clamp(1px, .45cqw, 2px);
  margin: var(--site2-top-gap) var(--site2-outer-gap) 0;
  padding: clamp(2px, .65cqw, 3px);
  border: 1px solid #673ab7;
  border-radius: var(--site2-radius);
  background: #f4effa;
}

.site2-purple .site2-post-list a {
  display: flex;
  min-height: clamp(40px, 7.2cqw, 45px);
  align-items: center;
  justify-content: center;
  padding: clamp(2px, .75cqw, 4px) clamp(2px, .6cqw, 3px);
  border: 1px solid #0b6f27;
  border-radius: var(--site2-small-radius);
  color: #ffffff;
  background: linear-gradient(180deg, #15903a, #08772c);
  font-size: clamp(15px, 2.55cqw, 17px);
  line-height: 1.16;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.site2-purple .site2-post-list a:active {
  transform: translateY(1px);
}

/* =========================================================
   第二站资料顺序。
   ========================================================= */
.site2-purple .new-front-container .macau-material-page {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

/* 前四个普通卡只负责触发四张图片卡，本身不显示。 */
.site2-purple .new-front-container .insider-type-one_zodiac,
.site2-purple .new-front-container .insider-type-both_ends,
.site2-purple .new-front-container .insider-type-three_zodiac,
.site2-purple .new-front-container .insider-type-six_zodiac {
  display: none !important;
}

.site2-purple .new-front-container .official-shooting-card { order: 1; }
.site2-purple .new-front-container .inner-materials-card { order: 2; }
.site2-purple .new-front-container .monkey-king-card { order: 3; }
.site2-purple .new-front-container .dragon-gate-card { order: 4; }

.site2-purple .new-front-container .insider-card:not(.monkey-king-card):not(.inner-materials-card):not(.official-shooting-card):not(.dragon-gate-card) {
  order: 20;
}

/*
 * macau-material-page 使用 flex 排序。底部图片区如果没有 order，默认是0，
 * 会被排到所有资料卡前面。指定为100后，固定显示在最后一张
 * “澳门彩绝杀专区”资料卡之后。
 */
.site2-purple .new-front-container .site2-bottom-image-block {
  order: 100;
  display: flex;
  width: auto !important;
  flex-direction: column;
  gap: clamp(2px, .65cqw, 4px);
  margin: var(--site2-top-gap) var(--site2-outer-gap) 0 !important;
  padding: clamp(5px, 1.45cqw, 8px) !important;
  overflow: hidden;
  border: 1px solid var(--site2-purple) !important;
  border-radius: var(--site2-radius) !important;
  background: #f5f2f8 !important;
  box-sizing: border-box;
}

/* 第二站底部每张图片：由外框统一控制间距，图片本身不再叠加旧margin。 */
.site2-purple .new-front-container .site2-bottom-image-block .site2-bottom-img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  box-sizing: border-box;
}

.site2-purple .new-front-container .content-divider,
.site2-purple .new-front-container .home-expert-bottom-block,
.site2-purple .new-front-container .compact-tips-section {
  display: none !important;
}

/* =========================================================
   资料卡外框：细边框、小圆角，四周保留轻微间距。
   ========================================================= */
.site2-purple .new-front-container .insider-card,
.site2-purple .new-front-container .half-time-home-card,
.site2-purple .new-front-container .half-time-fortune-card {
  margin: var(--site2-top-gap) var(--site2-outer-gap) 0 !important;
  overflow: hidden;
  border: 1px solid var(--site2-purple) !important;
  border-radius: var(--site2-radius) !important;
  background: #ffffff;
  box-shadow: none !important;
}

/* 第二站新彩下半场：整个资料卡背景铺满圆角外框 */
.site2-purple .new-front-container
.half-time-material-page
.site2-half-time-card {
  background: var(--site2-purple-light) !important;
}

/* 澳门新彩：官网导航以下及卡片内边距区域统一铺满淡紫背景。 */
.site2-purple .new-front-container .macau-material-page .insider-card {
  background: var(--site2-purple-light) !important;
}

.site2-purple .new-front-container .insider-title,
.site2-purple .new-front-container .half-time-fortune-title {
  min-height: clamp(34px, 8.8cqw, 38px) !important;
  margin: var(--site2-inner-gap) var(--site2-inner-gap) 0 !important;
  padding: clamp(5px, 1.55cqw, 7px) clamp(3px, 1cqw, 4px) !important;
  border-radius: var(--site2-small-radius) var(--site2-small-radius) 0 0 !important;
  color: #fff000 !important;
  background: #673ab7 !important;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: var(--site2-card-title-font-size) !important;
  line-height: 1.08 !important;
  text-align: center;
  font-weight: 700 !important;
  letter-spacing: .1px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .22);
}

.site2-purple .new-front-container .site2-card-full-title {
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.site2-purple .new-front-container .insider-site-line {
  min-height: clamp(30px, 7.8cqw, 34px);
  margin: 0 var(--site2-inner-gap) !important;
  padding: clamp(4px, 1.2cqw, 5px) !important;
  border-bottom: 1px solid #cab8e8;
  color: #ff3e24;
  background: #d8baf8;
  font-size: clamp(15px, 3.1cqw, 20px) !important;
  line-height: 1.1;
  text-align: center;
  font-weight: 500;
}

.site2-purple .new-front-container .insider-site-rocket {
  display: inline-block;
  margin-right: clamp(1px, .4cqw, 2px);
  font-size: 1.08em;
  vertical-align: -0.05em;
}

.site2-purple .new-front-container .insider-site-label {
  margin-right: clamp(2px, .6cqw, 3px);
}

.site2-purple .new-front-container .insider-site-domain,
.site2-purple .new-front-container .insider-site-line mark {
  padding: clamp(1px, .3cqw, 2px) clamp(3px, 1.1cqw, 5px);
  border-radius: var(--site2-small-radius);
  color: #ffffff;
  background: #ff7a24;
  font-size: 1em;
  font-weight: 700;
}

/* 截图普通资料卡不显示分类说明绿条。 */
.site2-purple .new-front-container .insider-rule-line,
.site2-purple .new-front-container .insider-zodiac-rule {
  display: none !important;
}

.site2-purple .new-front-container .half-time-home-list,
.site2-purple .new-front-container .half-time-fortune-list {
  padding: 0 !important;
  background: var(--site2-purple-light);
}

.site2-purple .new-front-container .half-time-home-row,
.site2-purple .new-front-container .half-time-fortune-row {
  min-height: clamp(40px, 10.5cqw, 45px);
  margin: 0 !important;
  padding: clamp(5px, 1.45cqw, 6px) clamp(3px, 1cqw, 4px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--site2-row-line) !important;
  border-radius: 0 !important;
  background: var(--site2-row-a) !important;
  box-shadow: none !important;
}

.site2-purple .new-front-container .half-time-home-row:last-child,
.site2-purple .new-front-container .half-time-fortune-row:last-child {
  border-bottom: 0 !important;
}

.site2-purple .new-front-container .half-time-home-row:nth-child(even),
.site2-purple .new-front-container .half-time-fortune-row:nth-child(even) {
  background: var(--site2-row-b) !important;
}

.site2-purple .new-front-container .insider-item.custom-detail-item {
  padding-top: clamp(5px, 1.45cqw, 6px) !important;
  padding-bottom: clamp(5px, 1.65cqw, 7px) !important;
}

.site2-purple .new-front-container .insider-issue {
  color: #4a378b;
  font-size: clamp(11px, 2.35cqw, 15px) !important;
  font-weight: 600;
}

.site2-purple .new-front-container .insider-content,
.site2-purple .new-front-container .insider-extra-content {
  color: #df543f;
  font-size: var(--material-random-font-size) !important;
  text-align: center;
}

.site2-purple .new-front-container .insider-result {
  font-size: clamp(11px, 2.35cqw, 15px) !important;
  font-weight: 600;
}

.site2-purple .new-front-container .insider-result.result-correct,
.site2-purple .new-front-container .result-correct .result-status {
  color: #16933b !important;
}

.site2-purple .new-front-container .insider-result.result-wrong,
.site2-purple .new-front-container .result-wrong .result-status {
  color: #dc3d2c !important;
}

.site2-purple .new-front-container .insider-highlight {
  padding: 0 2px;
  border-radius: 2px;
  color: #d23a23 !important;
  background: #fff02c !important;
}

/* =========================================================
   第二站四张图片资料卡。
   ========================================================= */
.site2-purple .new-front-container .site2-image-stage,
.site2-purple .new-front-container .monkey-king-stage,
.site2-purple .new-front-container .inner-materials-stage,
.site2-purple .new-front-container .official-shooting-stage,
.site2-purple .new-front-container .dragon-gate-stage {
  position: relative;
  width: auto;
  margin: clamp(5px, 1.65cqw, 7px) !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 2px;
  background: #ffffff;
  container-type: inline-size;
  line-height: 1;
}

.site2-purple .new-front-container .site2-image-template,
.site2-purple .new-front-container .monkey-king-template,
.site2-purple .new-front-container .inner-materials-template,
.site2-purple .new-front-container .official-shooting-template,
.site2-purple .new-front-container .dragon-gate-template {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
  user-select: none;
  -webkit-user-drag: none;
}

.site2-purple .new-front-container .site2-image-overlay {
  position: absolute;
  z-index: 3;
  display: block;
  transform: translate(-50%, -50%);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* 1. 澳门彩正版挂牌：7个不重复生肖 + 01-49号码 + 当前期号。 */
.site2-purple .site2-zbgp-zodiac {
  color: #111111;
  font-size: 4cqw;
  font-weight: 600;
}

.site2-purple .site2-zbgp-zodiac-1 { left: 23%; top: 7%; }
.site2-purple .site2-zbgp-zodiac-2 { left: 10.4%; top: 12.6%; }
.site2-purple .site2-zbgp-zodiac-3 { left: 29.4%; top: 13%; }
.site2-purple .site2-zbgp-zodiac-4 { left: 7.5%; top: 19.8%; }
.site2-purple .site2-zbgp-zodiac-5 { left: 14.5%; top: 21.5%; }
.site2-purple .site2-zbgp-zodiac-6 { left: 23%; top: 17.2%; }
.site2-purple .site2-zbgp-zodiac-7 {
  left: 61.5%;
  top: 84%;
  font-size: 5cqw;
}

.site2-purple .site2-zbgp-number {
  left: 53.3%;
  top: 28%;
  color: #111111;
  font-size: 6.2cqw;
  font-weight: 600;
}

.site2-purple .site2-zbgp-issue {
  left: 86%;
  top: 93%;
  color: #111111;
  font-size: 4.5cqw;
  font-weight: 500;
}

/* 2. 澳门彩18码中特：三行，每行6个号码，左下角期号。 */
.site2-purple .site2-18mzt-row {
  left: 50%;
  width: 67%;
  color: #ffffff;
  font-size: 6cqw;
  font-weight: 500;
  letter-spacing: .05cqw;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}

.site2-purple .site2-18mzt-row-1 { top: 37.0%; }
.site2-purple .site2-18mzt-row-2 { top: 53.5%; }
.site2-purple .site2-18mzt-row-3 { top: 69.2%; }

.site2-purple .site2-18mzt-issue {
  left: 13%;
  top: 97.0%;
  color: #111111;
  font-size: 5.2cqw;
  font-weight: 500;
}

/* 3. 澳门彩澳客家娘。 */
.site2-purple .site2-akjn-issue {
  left: 45%;
  top: 17.0%;
  color: #111111;
  font-size: 5.2cqw;
  font-weight: 500;
}

.site2-purple .site2-akjn-circle-zodiac {
  left: 20.2%;
  top: 79.0%;
  color: #1717cf;
  font-size: 12cqw;
  font-weight: 600;
}

.site2-purple .site2-akjn-zodiacs {
  left: 59%;
  top: 60%;
  width: 58%;
  color: #e12a20;
  font-size: 5.15cqw;
  font-weight: 500;
  letter-spacing: .1cqw;
}

.site2-purple .site2-akjn-heads {
  left: 49%;
  top: 79.1%;
  color: #b832d0;
  font-size: 5.0cqw;
  font-weight: 500;
}

.site2-purple .site2-akjn-tails {
  left: 71%;
  top: 79.1%;
  color: #25a84f;
  font-size: 5.0cqw;
  font-weight: 500;
}

.site2-purple .site2-akjn-previous {
  left: 66.5%;
  top: 92%;
  width: 58%;
  overflow: hidden;
  color: #1717cf;
  font-size: 3.25cqw;
  font-weight: 600;
  text-align: left;
}

/* 4. 澳门彩平特一肖。 */
.site2-purple .site2-ptyx-issue {
  left: 88.7%;
  top: 16.7%;
  color: #ffffff;
  font-size: 3.8cqw;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.site2-purple .site2-ptyx-circle-zodiac {
  left: 73.8%;
  top: 66.8%;
  color: #111111;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
  font-size: 12.6cqw;
  font-weight: 600;
}

.site2-purple .site2-ptyx-heads,
.site2-purple .site2-ptyx-tails,
.site2-purple .site2-ptyx-waves,
.site2-purple .site2-ptyx-size-parity {
  left: 31.8%;
  width: 23%;
  color: #111111;
  font-size: 4cqw;
  font-weight: 600;
  text-align: left;
}

.site2-purple .site2-ptyx-heads { top: 63%; }
.site2-purple .site2-ptyx-tails { top: 71.9%; }
.site2-purple .site2-ptyx-waves { top: 80.9%; color: #d92323; }
.site2-purple .site2-ptyx-size-parity { top: 90.0%; color: #6a36b3; }

/* 新彩下半场沿用紫色资料边框，不改变资料逻辑。 */
.site2-purple .new-front-container .half-time-material-page {
  background: #eee9f7;
}

.site2-purple .new-front-container .half-time-fortune-row {
  grid-template-columns: auto auto minmax(0, 1fr);
}


/* =========================================================
   第二站新彩下半场“宝典彩”专用样式。
   仅复用第二站现有自适应变量，不按手机/电脑分别覆盖。
   ========================================================= */
.site2-purple .new-front-container .site2-half-time-rule-line {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(1px, .35cqw, 2px) !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 var(--site2-inner-gap) !important;
  padding: clamp(3px, .9cqw, 5px) clamp(4px, 1.2cqw, 6px) !important;
  border: 0 !important;
  border-bottom: 1px solid #cab8e8 !important;
  color: #60429e !important;
  background: #f4eaff !important;
  font-size: var(--site2-rule-font-size) !important;
  line-height: 1.25 !important;
  text-align: center;
  font-weight: 500 !important;
  white-space: normal !important;
}

.site2-purple .new-front-container .site2-half-time-list {
  display: grid;
  gap: 0;
  padding: 0 var(--site2-inner-gap) var(--site2-inner-gap) !important;
  overflow: hidden;
  background: var(--site2-purple-light) !important;
  border-top: 0 !important;
  box-sizing: border-box;
}

/* 新彩下半场：取消每期的彩色背景框，仅用卡片内部下划线分隔。 */
.site2-purple .new-front-container .site2-half-time-row {
  display: flex !important;
  min-height: clamp(40px, 10.5cqw, 46px) !important;
  flex-direction: column;
  justify-content: center;
  margin: 0 !important;
  padding: clamp(7px, 1.8cqw, 9px) clamp(3px, 1cqw, 5px) !important;
  border: 0 !important;
  border-bottom: 1px solid #c7b2e7 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--site2-card-random-color, var(--site2-random-color-1));
  font-size: var(--site2-random-font-size) !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.site2-purple .new-front-container .site2-half-time-row:last-child {
  border-bottom: 0 !important;
}


/*
 * 新彩下半场按“资料卡”固定配色，不再按每一期随机换色。
 * 顺序循环：红、黑、紫、蓝、青绿、橙。
 * 因此“单双四肖”为红色，“杀十码准”为黑色。
 */
.site2-purple .site2-half-time-bd_six_tail_twelve,
.site2-purple .site2-half-time-bd_thirty_six_numbers,
.site2-purple .site2-half-time-bd_single_double_four_zodiac,
.site2-purple .site2-half-time-bd_kill_three_zodiac {
  --site2-card-random-color: var(--site2-random-color-1);
}

.site2-purple .site2-half-time-bd_male_female,
.site2-purple .site2-half-time-bd_domestic_wild,
.site2-purple .site2-half-time-bd_kill_ten_numbers,
.site2-purple .site2-half-time-bd_parity_special {
  --site2-card-random-color: var(--site2-random-color-2);
}

.site2-purple .site2-half-time-bd_fat_thin,
.site2-purple .site2-half-time-bd_flat_one_tail,
.site2-purple .site2-half-time-bd_double_wave_five_numbers {
  --site2-card-random-color: var(--site2-random-color-3);
}

.site2-purple .site2-half-time-bd_four_zodiac_four_numbers,
.site2-purple .site2-half-time-bd_kill_four_zodiac,
.site2-purple .site2-half-time-bd_three_zodiac_four_tail {
  --site2-card-random-color: var(--site2-random-color-4);
}

.site2-purple .site2-half-time-bd_left_right,
.site2-purple .site2-half-time-bd_qin_qi_shu_hua,
.site2-purple .site2-half-time-bd_thirty_numbers {
  --site2-card-random-color: var(--site2-random-color-5);
}

.site2-purple .site2-half-time-bd_six_zodiac_twelve,
.site2-purple .site2-half-time-bd_three_head,
.site2-purple .site2-half-time-bd_double_wave_special {
  --site2-card-random-color: var(--site2-random-color-6);
}

/* 每一行内容与资料背景框上下居中。 */
.site2-purple .new-front-container .site2-half-time-row .half-time-home-line {
  min-height: 1.55em;
  align-items: center;
  align-content: center;
  box-sizing: border-box;
}

.site2-purple .new-front-container .site2-half-time-row .half-time-home-center-line {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site2-purple .new-front-container .site2-half-time-row .half-time-home-line > span {
  vertical-align: middle;
}

.site2-purple .new-front-container .site2-half-time-row .half-time-home-issue {
  color: #6540bf !important;
  font-weight: 500;
}

.site2-purple .new-front-container .site2-half-time-row .half-time-home-row-name,
.site2-purple .new-front-container .site2-half-time-row .half-time-home-prediction {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.site2-purple .new-front-container .site2-half-time-row .half-time-home-animal,
.site2-purple .new-front-container .site2-half-time-row .half-time-home-number,
.site2-purple .new-front-container .site2-half-time-row .half-time-home-status {
  color: #16a34a !important;
  font-size: inherit !important;
  font-weight: 600;
}

.site2-purple .new-front-container .site2-half-time-row .half-time-home-hit {
  display: inline-flex;
  min-height: 1.3em;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1px, .4cqw, 3px);
  border-radius: clamp(2px, .55cqw, 3px);
  color: #ef3e24 !important;
  background: #fff400 !important;
  font: inherit;
  line-height: 1.1 !important;
  vertical-align: middle;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.site2-purple .new-front-container .site2-half-time-dense {
  font-size: var(--site2-random-font-size) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site2-purple .new-front-container .site2-half-time-zodiac-number-row {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  align-items: center;
  gap: clamp(2px, .7cqw, 5px) clamp(8px, 2.4cqw, 14px);
  width: 100%;
}

/*
 * ㉚码中特：12项放在同一个三列网格内。
 * 三列整体居中；每列左对齐，生肖开头和号码开头纵向对齐。
 * 列顺序：鼠兔马鸡 / 牛龙羊狗 / 虎蛇猴猪。
 */
.site2-purple .new-front-container
.site2-half-time-bd_thirty_numbers
.site2-half-time-zodiac-number-row {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  align-items: start;
  width: max-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  text-align: left !important;
}

.site2-purple .new-front-container
.site2-half-time-bd_thirty_numbers
.site2-half-time-zodiac-number-cell {
  display: grid;
  grid-template-columns: 2em max-content;
  align-items: baseline;
  justify-self: start;
  width: max-content;
  text-align: left !important;
  white-space: nowrap;
}

.site2-purple .new-front-container
.site2-half-time-bd_thirty_numbers
.site2-half-time-zodiac-label,
.site2-purple .new-front-container
.site2-half-time-bd_thirty_numbers
.site2-half-time-zodiac-values {
  display: block;
  text-align: left !important;
}

/* 历史记录标题栏使用第二站紫色。 */
.site2-purple .new-front-container .fullscreen-modal .modal-header,
.site2-purple .new-front-container #eraHistoryModal .modal-header,
.site2-purple .new-front-container #halfTimeHistoryModal .modal-header,
.site2-purple .new-front-container #newMacauHistoryModal .modal-header,
.site2-purple .new-front-container #hongkongHistoryModal .modal-header {
  background: var(--site-history-title-color) !important;
}

/* =========================================================
   2026-08：第二站统一自适应细节与第5-20张文字资料卡
   本段不使用按设备宽度区分的媒体查询。
   ========================================================= */

/* 标题和官网背景都以卡片内边距为准，宽度完全一致。 */
.site2-purple .new-front-container .insider-title,
.site2-purple .new-front-container .half-time-fortune-title,
.site2-purple .new-front-container .insider-site-line {
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* 随机资料外层增加参考截图的小背景框和间距。 */
.site2-purple .new-front-container .insider-list {
  display: grid;
  gap: clamp(3px, .9cqw, 5px);
  padding: clamp(4px, 1.2cqw, 6px) !important;
  background: var(--site2-purple-light);
}

.site2-purple .new-front-container .insider-item {
  min-height: clamp(40px, 10.5cqw, 46px);
  margin: 0 !important;
  padding: clamp(6px, 1.6cqw, 8px) clamp(3px, 1cqw, 5px) !important;
  overflow: hidden;
  border: 1px solid #ff6b57 !important;
  border-left: clamp(3px, .9cqw, 5px) solid var(--site2-purple) !important;
  border-radius: clamp(5px, 1.4cqw, 7px) !important;
  background: #fffdfd !important;
  box-shadow: 0 1px 1px rgba(69, 45, 114, .06) !important;
}

/* 每隔一期切换左侧色条，不再用准/错状态改变颜色。 */
.site2-purple .new-front-container .insider-item:nth-child(odd) {
  border-left-color: var(--site2-purple) !important;
}

.site2-purple .new-front-container .insider-item:nth-child(even) {
  border-left-color: #ff5722 !important;
  background: #f7f1ff !important;
}


/*
 * 澳门新彩也按“资料卡”固定配色，同一张卡的所有期数保持同色。
 * 只改变随机资料文字；期号、开奖结果和准错仍使用原来的专用颜色。
 */
.site2-purple .insider-type-special_two,
.site2-purple .insider-type-kill_wave,
.site2-purple .insider-type-special_three {
  --site2-card-random-color: var(--site2-random-color-1);
}

.site2-purple .insider-type-kill_three_zodiac,
.site2-purple .insider-type-eight_number,
.site2-purple .insider-type-twelve_number {
  --site2-card-random-color: var(--site2-random-color-2);
}

.site2-purple .insider-type-wave_defense,
.site2-purple .insider-type-front_back,
.site2-purple .insider-type-female_male {
  --site2-card-random-color: var(--site2-random-color-3);
}

.site2-purple .insider-type-single_zodiac,
.site2-purple .insider-type-kill_one_element,
.site2-purple .insider-type-five_not_hit {
  --site2-card-random-color: var(--site2-random-color-4);
}

.site2-purple .insider-type-four_tail_eight,
.site2-purple .insider-type-two_continues {
  --site2-card-random-color: var(--site2-random-color-5);
}

.site2-purple .insider-type-three_head,
.site2-purple .insider-type-single_double_ten {
  --site2-card-random-color: var(--site2-random-color-6);
}

.site2-purple .new-front-container .insider-item {
  color: var(--site2-card-random-color, var(--site2-random-color-1));
}

/* 第5至第20张卡采用多行自适应排版。 */
.site2-purple .new-front-container .site2-text-item {
  display: block !important;
  min-height: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: var(--site2-random-font-size);
  line-height: 1.35;
  text-align: center;
  white-space: normal !important;
}

.site2-purple .new-front-container .site2-tip-line {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(1px, .35cqw, 2px);
  color: inherit;
  overflow-wrap: anywhere;
}

.site2-purple .new-front-container .site2-tip-line + .site2-tip-line {
  margin-top: clamp(2px, .65cqw, 4px);
}

.site2-purple .new-front-container .site2-tip-main-line {
  white-space: nowrap;
}

.site2-purple .new-front-container .site2-tip-issue {
  color: #6540bf;
  font-weight: 500;
}

.site2-purple .new-front-container .site2-tip-label,
.site2-purple .new-front-container .site2-tip-detail-line {
  color: inherit;
  font-weight: 500;
}

.site2-purple .new-front-container .site2-tip-result {
  white-space: nowrap;
}

.site2-purple .new-front-container .site2-tip-open,
.site2-purple .new-front-container .site2-tip-actual {
  color: #16a34a;
  font-weight: 600;
}

.site2-purple .new-front-container .site2-tip-status,
.site2-purple .new-front-container .site2-tip-pending {
  color: #ff4e34;
  font-weight: 600;
}

.site2-purple .new-front-container .site2-hit-highlight {
  display: inline-block;
  padding: 0 clamp(1px, .4cqw, 3px);
  border-radius: clamp(2px, .55cqw, 3px);
  color: #ef3e24 !important;
  background: #fff400 !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.site2-purple .new-front-container .site2-number-line,
.site2-purple .new-front-container .site2-zodiac-number-line {
  font-size: var(--site2-dense-random-font-size);
  letter-spacing: .02em;
}

.site2-purple .new-front-container .site2-wave-red { color: #ef3e24; }
.site2-purple .new-front-container .site2-wave-blue { color: #1976d2; }
.site2-purple .new-front-container .site2-wave-green { color: #16a34a; }

/* 指定卡片在官网栏下显示两行分类说明。 */
.site2-purple .new-front-container .insider-rule-line.site2-custom-rule-line {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: clamp(1px, .35cqw, 2px);
  width: auto !important;
  min-height: 0 !important;
  margin: 0 var(--site2-inner-gap) !important;
  padding: clamp(3px, .9cqw, 5px) clamp(4px, 1.2cqw, 6px) !important;
  border: 0 !important;
  border-bottom: 1px solid #cab8e8 !important;
  border-radius: 0 !important;
  color: #60429e;
  background: #f4eaff;
  font-size: var(--site2-rule-font-size) !important;
  line-height: 1.25;
  text-align: center;
  font-weight: 500;
}

.site2-purple .new-front-container .insider-item:last-child {
  border-bottom: 1px solid #ff6b57 !important;
}

