/* =========================================================
   111.zip 新前端接入样式
   原后台、数据库和接口保持不变，只替换首页视觉与开奖区域。
   ========================================================= */

:root {
  --nf-purple: #a523b4;
  --nf-purple-line: #ae32ae;
  --nf-mint: #f0ffe2;
  --nf-page-width: 691px;

  /* 彩种框和内幕标题框统一使用的小圆角 */
  --nf-section-radius: 6px;
}

body {
  min-width: 320px;
  margin: 0;
  background: #eeeeee;
  font-family:
    Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.container.new-front-container {
  width: min(100%, var(--nf-page-width));
  max-width: var(--nf-page-width);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  background: #eeeeee;
}

/* 顶图固定：页面下滑时保留在视口顶部 */
.new-front-container .sticky-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #eaf2ff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.new-front-container .sticky-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 656 / 239;
  object-fit: cover;
}

/* ==================== 新开奖框 ==================== */
.new-front-container .lottery-area {
  margin: 8px 14px 0;
  overflow: hidden;
  border-radius: var(--nf-section-radius) var(--nf-section-radius) 6px 6px;
  background: var(--nf-mint);
}

.new-front-container .lottery-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 2px;
  background: linear-gradient(90deg, #f0ffe3, #f4ffe9);
}

.new-front-container .lottery-tabs .tab {
  min-width: 0;
  min-height: 105px;
  padding: 14px 3px 10px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #111111;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
}

.new-front-container .lottery-tabs .tab-name {
  display: block;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 400;
}

.new-front-container .lottery-tabs .tab-date {
  display: block;
  margin-top: 13px;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 400;
}

.new-front-container .lottery-tabs .tab.active {
  color: #ffffff;
  background: #a624b5;
}

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

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

.new-front-container .draw-box {
  padding: 15px 18px 18px;
  border: 1.5px solid var(--nf-purple-line);
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #f4ffe9 0%, #efffe0 100%);
}

.new-front-container .draw-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.new-front-container .issue-text {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 400;
}

.new-front-container .issue-text span {
  color: #aa31ad;
}

.new-front-container .countdown-text {
  color: #619a4d;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
  font-weight: 400;
}

.new-front-container #lotteryCountdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.new-front-container .history-link {
  border: 0;
  padding: 0;
  color: #a529aa;
  background: transparent;
  font-size: 22px;
  line-height: 1.2;
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
}

.new-front-container .number-row {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  gap: 7px;
  width: 100%;
  margin-top: 24px;
}

.new-front-container .number-row .loading {
  grid-column: 1 / -1;
  padding: 28px 0;
  text-align: center;
}

.new-front-container .number-card {
  display: flex;
  min-width: 0;
  height: 119px;
  padding: 8px 2px 7px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #d9d9d9;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 64%, #eeeeee 100%);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.new-front-container .number-card.special-card {
  border: 2px solid #1768d8;
  padding-top: 7px;
  box-shadow:
    0 0 0 1px rgba(23, 104, 216, 0.14),
    0 0 8px 2px rgba(23, 104, 216, 0.38);
}

/*
  球由三层组成：
  1. .lottery-ball 外圈
  2. .ball-gloss 左上透明圆（在白圆后面）
  3. .ball-core 中间白圆
*/
.new-front-container .lottery-ball {
  position: relative;
  --inner-circle-size: 43px;
  --inner-circle-offset: 8px;
  --gloss-shift-x: -3px;
  --gloss-shift-y: -4px;

  width: 59px;
  height: 59px;
  flex: 0 0 59px;
  border-radius: 50%;
  background: var(--ball-color);
  box-shadow:
    inset 0 0 2px rgba(255, 255, 255, 0.95),
    inset 0 -3px 4px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.16);
}

.new-front-container .ball-blue {
  --ball-color: #00a0e9;
}

.new-front-container .ball-green {
  --ball-color: #19b000;
}

.new-front-container .ball-red {
  --ball-color: #ff0202;
}
.new-front-container .ball-core {
  position: absolute;
  z-index: 2;
  width: var(--inner-circle-size);
  height: var(--inner-circle-size);
  left: var(--inner-circle-offset);
  top: var(--inner-circle-offset);
  border-radius: 50%;
  background: radial-gradient(
    circle at 45% 35%,
    #ffffff 0%,
    #ffffff 62%,
    #f5f5f5 100%
  );
  box-shadow:
    inset 0 0 2px rgba(0, 0, 0, 0.13),
    0 0 1px rgba(255, 255, 255, 0.9);
}

.new-front-container .ball-gloss {
  position: absolute;
  z-index: 1;

  /* 透明圆比白圆大8px */
  width: calc(var(--inner-circle-size) + 8px);
  height: calc(var(--inner-circle-size) + 8px);

  /* 放大后再向左上错开 */
  left: calc(var(--inner-circle-offset) + var(--gloss-shift-x) - 1px);
  top: calc(var(--inner-circle-offset) + var(--gloss-shift-y) - 2px);

  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.66) 28%,
    rgba(255, 255, 255, 0.3) 52%,
    rgba(255, 255, 255, 0.1) 76%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* 开奖球号码加粗 */
.new-front-container .ball-number {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  color: #080808;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* 生肖/属性比原来更清晰：字号稍大并适度加粗 */
.new-front-container .number-property {
  display: block;
  margin-top: 7px;
  color: #111111;
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.new-front-container .lottery-ball-waiting {
  /* 逐个开奖时白色号码框一直保留，只隐藏球和生肖属性。 */
  visibility: visible;
}

.new-front-container .lottery-ball-waiting .lottery-ball,
.new-front-container .lottery-ball-waiting .number-property {
  visibility: hidden;
}

.new-front-container .next-draw {
  margin-top: 22px;
  color: #ad2aac;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  font-weight: 400;
}

/* 广告图 */
.new-front-container .ad-area {
  margin: 10px 14px 0;
  overflow: hidden;
  border-radius: 0 0 9px 9px;
  background: #ffffff;
}

.new-front-container .ad-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
}

.new-front-container .ad-blue {
  aspect-ratio: 800 / 120;
}

.new-front-container .ad-yellow {
  aspect-ratio: 960 / 60;
}

/* ==================== 内幕资料卡片 ==================== */
.new-front-container .insider-card {
  margin: 18px 17px 0;
  padding: 0;
  overflow: visible;
  color: #252525;
  background: #efffe5;
  border-radius: var(--nf-section-radius) var(--nf-section-radius) 0 0;
}

.new-front-container .insider-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  /* 覆盖 home.css 中带 !important 的旧标题尺寸 */
  width: 100% !important;
  height: auto !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 8px 6px !important;

  color: #fff52b !important;
  background: #982eb0;
  border-radius: var(--nf-section-radius) var(--nf-section-radius) 0 0;

  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.08 !important;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.new-front-container .insider-title .insider-lottery-name,
.new-front-container .insider-title .insider-tip-name {
  color: inherit;
  font-size: 1em;
  line-height: inherit;
  font-weight: inherit;
}

.new-front-container .insider-title .insider-title-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: inherit;
  line-height: inherit;
}

.new-front-container .insider-title .insider-bracket {
  display: inline-block;
  color: inherit;
  font-size: 0.68em;
  line-height: 1;
  font-weight: 600;
  transform: translateY(-0.02em);
}

.new-front-container .insider-site-line {
  padding: 16px 6px;
  border-bottom: 1px solid #dbe6d4;
  color: #a629ab;
  background: #efffe5;
  font-size: 27px;
  line-height: 1.2;
  text-align: center;
  font-weight: 500;
}

.new-front-container .insider-site-line mark {
  padding: 0 4px;
  color: #fff72f;
  background: #a51eae;
}

/* 合数大小：官网下方的合数范围说明 */
.new-front-container .insider-rule-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 46px;
  padding: 7px 7px;
  border: 1px solid #111111;
  color: #252525;
  background: #f3ffe8;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 500;
  text-align: center;
}

.new-front-container .insider-rule-line .rule-small {
  color: var(--rule-small-color);
}

.new-front-container .insider-rule-line .rule-big {
  color: var(--rule-big-color);
}

.new-front-container .insider-list {
  padding: 1px 0 0;
  background: #efffe5;
}

.new-front-container .insider-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 4px;
  padding: 9px 8px;
  border: 1.5px solid #111111;
  border-radius: 8px;
  background: #f7f8f9;
  box-sizing: border-box;
  text-align: center;
}

.new-front-container .insider-item:nth-child(even) {
  background: #e9f9e9;
}

.new-front-container .insider-issue {
  width: 27%;
  color: #198745;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
}

.new-front-container .insider-content {
  width: 46%;
  color: #252525;
  text-align: center;
}

.new-front-container .insider-result {
  width: 27%;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
  text-align: center;
}

.new-front-container .insider-result.result-correct {
  color: #ff7354 !important;
}

.new-front-container .insider-result.result-wrong {
  color: #ff7354 !important;
}

.new-front-container .insider-result.result-unknown {
  color: #999999 !important;
}

.new-front-container .insider-result .result-number {
  color: #a42aaa;
}

.new-front-container .insider-result .result-question,
.new-front-container .insider-result .result-status {
  color: #ff7354;
}

/* 只有“准”的记录才由PHP输出此命中背景 */
.new-front-container .insider-highlight {
  display: inline-block;
  margin: 0 1px;
  padding: 0 3px;
  color: #252525 !important;
  background: transparent;
  border-radius: 3px;
  box-shadow: none;
  font: inherit;
  line-height: inherit;
}

/* 只有资料判断为正确时，命中的资料内容才加黄色背景 */
.new-front-container .insider-item.result-correct .insider-highlight {
  background: #ffff54 !important;
}

.new-front-container .insider-number-lines,
.new-front-container .insider-number-row {
  width: 100%;
  text-align: center;
}

/* 旧内容区继续使用原功能，但宽度与新页面一致 */
.new-front-container .mixed-section,
.new-front-container .gallery-section,
.new-front-container .trend-section,
.new-front-container .pyramid-section,
.new-front-container .bottom-card,
.new-front-container .content-divider {
  margin-right: 17px;
  margin-left: 17px;
}

/* ==================== 手机端 ==================== */
@media (max-width: 560px) {
  .new-front-container .lottery-area {
    margin-right: 7px;
    margin-left: 7px;
  }

  .new-front-container .lottery-tabs .tab {
    min-height: 50px;
    padding: 9px 1px 10px;
    overflow: hidden;
  }

  .new-front-container .lottery-tabs .tab-name {
    overflow: hidden;
    font-size: 15.5px;
    line-height: 1.18;
    letter-spacing: -0.15px;
    text-overflow: clip;
  }

  .new-front-container .lottery-tabs .tab[data-type="half_time"] .tab-name {
    font-size: 14.5px;
    letter-spacing: -0.45px;
  }

  .new-front-container .lottery-tabs .tab-date {
    overflow: hidden;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.15;
    letter-spacing: -0.35px;
    text-overflow: clip;
  }

  .new-front-container .draw-box {
    padding: 10px 7px 12px;
  }

  .new-front-container .draw-head {
    grid-template-columns: 30% 44% 26%;
    gap: 0;
  }

  .new-front-container .draw-head > * {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .new-front-container .issue-text {
    font-size: 15px;
    letter-spacing: -0.5px;
  }

  .new-front-container .countdown-text {
    min-width: 0;
    overflow: hidden;
    font-size: 13.5px;
    letter-spacing: -0.5px;
    text-overflow: clip;
  }

  .new-front-container .history-link {
    justify-self: end;
    padding-right: 6px;
    font-size: 14px;
    letter-spacing: -0.35px;
    text-align: right;
  }

  .new-front-container .number-row {
    gap: 3px;
    margin-top: 16px;
  }

  .new-front-container .number-card {
    height: 75px;
    padding: 4px 1px 3px;
  }

  .new-front-container .number-card.special-card {
    padding-top: 3px;
  }

  .new-front-container .lottery-ball {
    /*
     * 400px及更窄手机上，球宽度始终小于单个号码框，
     * 避免外圈压到相邻号码框。
     */
    --mobile-ball-size: clamp(38px, 10.5vw, 44px);
    --inner-circle-size: calc(var(--mobile-ball-size) - 12px);
    --inner-circle-offset: 7px;
    --gloss-shift-x: -3px;
    --gloss-shift-y: -3px;

    width: var(--mobile-ball-size);
    height: var(--mobile-ball-size);
    max-width: 100%;
    flex: 0 0 var(--mobile-ball-size);
  }

  .new-front-container .ball-number {
    font-size: 18px;
    font-weight: 500;
    -webkit-text-stroke: 0.3px currentColor;
  }

  .new-front-container .number-property {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
  }

  .new-front-container .next-draw {
    margin-top: 15px;
    font-size: 14px;
    letter-spacing: -0.25px;
  }

  .new-front-container .ad-area {
    margin-right: 7px;
    margin-left: 7px;
  }

  .new-front-container .insider-card {
    margin-right: 9px;
    margin-left: 9px;
  }

  .new-front-container .insider-title {
    height: auto !important;
    min-height: 44px !important;
    gap: 6px;
    padding: 6px 4px !important;

    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;

    -webkit-text-stroke: 0;
    text-shadow: none;
  }

  .new-front-container .insider-title .insider-bracket {
    font-size: 0.66em;
  }

  .new-front-container .insider-site-line {
    padding: 13px 5px;
    font-size: 22px;
  }

  .new-front-container .insider-rule-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 46px;
    padding: 7px 7px;
    border: 1px solid #111111;
    font-size: 15px;
    line-height: 1.15;

    font-weight: 600;

    text-align: center;
  }

  .new-front-container .insider-list {
    padding-top: 0;
  }

  .new-front-container .insider-item {
    min-height: 49px;
    margin-top: 3px;
    padding: 5px 4px;
    border-width: 1px;
    border-radius: 7px;
  }

  .new-front-container .insider-issue {
    width: 32%;
    font-size: 13.5px;
    line-height: 1.15;
    font-weight: 400;
    white-space: nowrap;
  }

  .new-front-container .insider-content {
    width: 30%;
    white-space: nowrap;
  }

  .new-front-container .insider-result {
    width: 38%;
    font-size: 13.5px;
    line-height: 1.15;
    font-weight: 400;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .new-front-container .draw-box {
    padding-right: 6px;
    padding-left: 6px;
  }

  .new-front-container .number-row {
    gap: 2px;
  }

  .new-front-container .lottery-ball {
    --mobile-ball-size: clamp(37px, 10.4vw, 42px);
    --inner-circle-size: calc(var(--mobile-ball-size) - 12px);
    --inner-circle-offset: 6px;
  }

  .new-front-container .number-card {
    height: 73px;
  }

  .new-front-container .ball-number {
    font-size: 18px;
    font-weight: 500;
    -webkit-text-stroke: 0.3px currentColor;
  }

  .new-front-container .number-property {
    font-size: 14px;
    font-weight: 600;
  }

  .new-front-container .draw-head {
    gap: 3px;
  }

  .new-front-container .issue-text {
    font-size: 14.5px;
  }

  .new-front-container .countdown-text {
    font-size: 13.5px;
  }

  .new-front-container .history-link {
    padding-right: 6px;
    font-size: 13.5px;
  }
}

@media (max-width: 360px) {
  .new-front-container .lottery-tabs .tab-name {
    font-size: 14.5px;
  }

  .new-front-container .lottery-tabs .tab[data-type="half_time"] .tab-name {
    font-size: 13.5px;
  }

  .new-front-container .lottery-tabs .tab-date {
    font-size: 11px;
    letter-spacing: -0.45px;
  }

  .new-front-container .number-row {
    gap: 2px;
  }

  .new-front-container .lottery-ball {
    --mobile-ball-size: clamp(37px, 10.8vw, 40px);
    --inner-circle-size: calc(var(--mobile-ball-size) - 12px);
  }

  .new-front-container .insider-title {
    gap: 5px;
    font-size: 19px;
    font-weight: 600;
    -webkit-text-stroke: 0;
    text-shadow: none;
  }
}

/* =========================================================
   合数大小每期资料整句连续显示：
   2026206期：【合数小】 开(06) 准
   ========================================================= */
.new-front-container .insider-item.sum-size-item {
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.new-front-container .insider-item.sum-size-item .insider-issue,
.new-front-container .insider-item.sum-size-item .insider-result {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  font-size: 16px;
}

.new-front-container .insider-item.sum-size-item .insider-content {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

.new-front-container .insider-item.sum-size-item .insider-issue,
.new-front-container .insider-item.sum-size-item .insider-result {
  font-weight: 400;
}

@media (max-width: 560px) {
  .new-front-container .insider-item.sum-size-item {
    min-height: 46px;
    gap: 4px;
    padding: 4px 3px;
  }

  .new-front-container .insider-item.sum-size-item .insider-issue,
  .new-front-container .insider-item.sum-size-item .insider-result {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .new-front-container .insider-item.sum-size-item {
    gap: 2px;
  }

  .new-front-container .insider-item.sum-size-item .insider-issue,
  .new-front-container .insider-item.sum-size-item .insider-result {
    font-size: 13px;
  }
}

/* =========================================================
   第五至第十四张内幕资料卡片：
   标题、官网栏、主行字体和颜色沿用“合数大小”。
   ========================================================= */
.new-front-container .custom-detail-item {
  display: block;
  min-height: 0;
  white-space: normal;
  padding: 8px 6px;
}

.new-front-container .custom-detail-item .insider-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  white-space: nowrap;
}

.new-front-container .custom-detail-item .insider-main-row .insider-issue,
.new-front-container .custom-detail-item .insider-main-row .insider-result {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  font-size: 16px;
}

.new-front-container .custom-detail-item .insider-main-row .insider-content {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

.new-front-container .custom-detail-item .insider-main-row .insider-issue,
.new-front-container .custom-detail-item .insider-main-row .insider-result {
  font-weight: 400;
}

.new-front-container .insider-extra-content {
  width: 100%;
  margin-top: 7px;
  color: #252525;
  text-align: center;
  overflow-wrap: anywhere;
}

.new-front-container .advanced-zodiac-line,
.new-front-container .advanced-number-line,
.new-front-container .advanced-money-row {
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.new-front-container .advanced-number-line + .advanced-number-line,
.new-front-container .advanced-money-row + .advanced-money-row {
  margin-top: 3px;
}

@media (max-width: 560px) {
  .new-front-container .custom-detail-item {
    padding: 5px 3px;
  }

  .new-front-container .custom-detail-item .insider-main-row {
    gap: 4px;
  }

  .new-front-container .custom-detail-item .insider-main-row .insider-issue,
  .new-front-container .custom-detail-item .insider-main-row .insider-result {
    font-size: 14px;
  }

  .new-front-container .insider-extra-content {
    margin-top: 5px;
  }

  .new-front-container .advanced-number-line,
  .new-front-container .advanced-money-row {
    letter-spacing: -0.15px;
  }
}

@media (max-width: 380px) {
  .new-front-container .custom-detail-item .insider-main-row {
    gap: 2px;
  }

  .new-front-container .custom-detail-item .insider-main-row .insider-issue,
  .new-front-container .custom-detail-item .insider-main-row .insider-result {
    font-size: 13px;
  }
}

/* =========================================================
   本轮内幕资料细节调整
   ========================================================= */

/* 开奖生肖与号码使用相同紫色。 */
.new-front-container .insider-result .result-animal {
  color: #a42aaa;
}

/* 天地中特、前后中特、家野两肖的说明框。 */
.new-front-container .insider-zodiac-rule {
  gap: 22px;
  min-height: 42px;
  padding: 6px 8px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

/* 根据实际内容自动撑高，不再使用固定高度挤压多行资料。 */
.new-front-container .insider-item,
.new-front-container .custom-detail-item {
  height: auto !important;
}

.new-front-container .custom-detail-item {
  min-height: 62px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.new-front-container .custom-detail-item .insider-main-row {
  flex-wrap: nowrap;
}

.new-front-container .insider-extra-content {
  height: auto;
  min-height: 0;
  margin-top: 8px;
  padding: 0 3px 2px;
}

/*
 * 综合绝中五项之间的间距。
 * 需要继续调大或调小，只修改这里的 margin 左右数值。
 */
.new-front-container .advanced-composite-separator {
  display: inline-block;
  margin: 0 5px;
}

/* 玄机18码：标签单独占一列，让两行号码从同一位置开始。 */
.new-front-container .advanced-aligned-line {
  display: grid;
  grid-template-columns: 50px auto;
  justify-content: center;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
  white-space: nowrap;
}

.new-front-container .advanced-line-label {
  text-align: right;
}

.new-front-container .advanced-line-values {
  text-align: left;
}

.new-front-container .advanced-nine-row {
  margin-bottom: 3px;
}

/* 特码输尽光按要求保持同一行。 */
.new-front-container .advanced-exclusion-line {
  white-space: nowrap;
}

/*
 * 特码输尽光是排除资料。
 * 即使整期判断为错，PHP也只给“未命中的随机值”输出 insider-highlight。
 * 此规则允许这些内容在错的记录中仍显示黄色背景。
 */
.new-front-container .insider-type-four_tail_eight .insider-highlight {
  background: #fff600 !important;
}

@media (max-width: 560px) {
  .new-front-container .insider-zodiac-rule {
    gap: 10px;
    min-height: 36px;
    padding: 5px 3px;
    font-size: 12.5px;
    font-weight: 500;
  }

  .new-front-container .custom-detail-item {
    min-height: 58px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .new-front-container .insider-extra-content {
    margin-top: 6px;
    padding-bottom: 1px;
  }

  .new-front-container .advanced-composite-separator {
    margin: 0 3px;
  }

  .new-front-container .advanced-aligned-line {
    grid-template-columns: 44px auto;
  }

  .new-front-container .advanced-nine-row,
  .new-front-container .advanced-number-line {
    letter-spacing: 0;
  }

  .new-front-container .advanced-exclusion-line {
    letter-spacing: -0.1px;
  }
}

@media (max-width: 380px) {
  .new-front-container .insider-zodiac-rule {
    gap: 6px;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 11.5px;
  }

  .new-front-container .advanced-composite-separator {
    margin: 0 2px;
  }

  .new-front-container .advanced-aligned-line {
    grid-template-columns: 41px auto;
  }
}

/* =========================================================
   本轮开奖结果颜色统一
   所有内幕卡片的开奖生肖和号码统一使用合数大小的紫色。
   ========================================================= */
.new-front-container .insider-result .result-animal,
.new-front-container .insider-result .result-number {
  color: #a42aaa !important;
}

/* =========================================================
   内幕卡片官网地址
   修改域名文字：includes/homepage_helpers.php
   修改整行字号：.insider-site-line
   修改火箭大小：.insider-site-rocket
   修改域名字号：.insider-site-domain
   ========================================================= */
.new-front-container .insider-site-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.new-front-container .insider-site-rocket {
  display: inline-block;
  font-size: 0.82em;
  line-height: 1;
}

.new-front-container .insider-site-label {
  display: inline-block;
  white-space: nowrap;
}

.new-front-container .insider-site-domain {
  display: inline-block;
  max-width: calc(100% - 76px);
  padding: 0 3px;
  font-size: 0.78em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

/* =========================================================
   单双各十码
   期号和开奖结果放在第一行，单双号码内容占满下面宽度。
   ========================================================= */
.new-front-container .insider-type-single_double_ten .insider-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "issue result"
    "content content";
  column-gap: 8px;
  row-gap: 7px;
  min-height: 0;
  padding-top: 9px;
  padding-bottom: 10px;
}

.new-front-container .insider-type-single_double_ten .insider-issue {
  grid-area: issue;
  width: auto;
  text-align: right;
}

.new-front-container .insider-type-single_double_ten .insider-result {
  grid-area: result;
  width: auto;
  text-align: left;
}

.new-front-container .insider-type-single_double_ten .insider-content {
  grid-area: content;
  width: 100%;
}

.new-front-container .single-double-ten-content {
  width: min(100%, 360px);
  margin: 0 auto;
  color: #252525;
  text-align: left;
}

.new-front-container .single-double-label {
  margin: 0 0 3px;
}

.new-front-container .single-double-label-even {
  margin-top: 7px;
}

.new-front-container .single-double-number-row {
  width: 100%;
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
}

.new-front-container .single-double-separator {
  display: inline-block;
  margin: 0 3px;
}

@media (max-width: 560px) {
  .new-front-container .insider-site-line {
    gap: 4px;
    padding: 11px 4px;
    font-size: 20px;
  }

  .new-front-container .insider-site-rocket {
    font-size: 0.78em;
  }

  .new-front-container .insider-site-domain {
    max-width: calc(100% - 67px);
    padding: 0 2px;
    font-size: 0.72em;
  }

  .new-front-container .insider-type-single_double_ten .insider-item {
    column-gap: 5px;
    row-gap: 6px;
    padding: 7px 5px 9px;
  }

  .new-front-container .insider-type-single_double_ten .insider-issue,
  .new-front-container .insider-type-single_double_ten .insider-result {
    font-size: 13.5px;
  }

  .new-front-container .single-double-ten-content {
    width: min(100%, 285px);
  }

  .new-front-container .single-double-label {
    margin-left: 2px;
  }

  .new-front-container .single-double-separator {
    margin-right: 2px;
    margin-left: 2px;
  }
}

@media (max-width: 380px) {
  .new-front-container .insider-site-line {
    font-size: 19px;
  }

  .new-front-container .insider-site-domain {
    font-size: 0.7em;
  }

  .new-front-container .insider-type-single_double_ten .insider-issue,
  .new-front-container .insider-type-single_double_ten .insider-result {
    font-size: 12.5px;
  }
}

/* =========================================================
   单双各十码最终排列
   显示：
   单： 5个号码
       5个号码
   双： 5个号码
       5个号码
   两行号码严格按固定列对齐。
   ========================================================= */
.new-front-container
  .insider-type-single_double_ten
  .single-double-ten-content {
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  color: #252525;
  text-align: left !important;
}

/* 每一组分成“单/双标签列”和“号码列” */
.new-front-container .insider-type-single_double_ten .single-double-group {
  display: grid !important;
  grid-template-columns: 34px 170px;
  align-items: start;
  width: max-content;
  max-width: 100%;
}

/* 单组和双组之间的距离 */
.new-front-container .insider-type-single_double_ten .single-double-group-even {
  margin-top: 7px;
}

/* 单：、双：与第一行号码同一行 */
.new-front-container .insider-type-single_double_ten .single-double-label {
  margin: 0 !important;
  padding: 0 4px 0 0 !important;
  text-align: right !important;
  white-space: nowrap;
}

/* 两行号码共同使用同一宽度 */
.new-front-container .insider-type-single_double_ten .single-double-rows {
  width: 170px;
  min-width: 0;
}

/* 每行固定为5个号码和4个连接符 */
.new-front-container .insider-type-single_double_ten .single-double-number-row {
  display: grid !important;
  grid-template-columns:
    26px 10px
    26px 10px
    26px 10px
    26px 10px
    26px;
  width: 170px !important;
  margin: 0 !important;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  white-space: nowrap;
}

/* 同一组第二行与第一行的距离 */
.new-front-container
  .insider-type-single_double_ten
  .single-double-number-row
  + .single-double-number-row {
  margin-top: 3px !important;
}

/* 清除旧样式给连接符加的左右margin */
.new-front-container .insider-type-single_double_ten .single-double-separator {
  display: block !important;
  margin: 0 !important;
  text-align: center;
}

@media (max-width: 560px) {
  .new-front-container .insider-type-single_double_ten .single-double-group {
    grid-template-columns: 32px 160px;
  }

  .new-front-container .insider-type-single_double_ten .single-double-rows {
    width: 160px;
  }

  .new-front-container
    .insider-type-single_double_ten
    .single-double-number-row {
    grid-template-columns:
      24px 10px
      24px 10px
      24px 10px
      24px 10px
      24px;
    width: 160px !important;
  }
}

@media (max-width: 380px) {
  .new-front-container .insider-type-single_double_ten .single-double-group {
    grid-template-columns: 30px 150px;
  }

  .new-front-container .insider-type-single_double_ten .single-double-rows {
    width: 150px;
  }

  .new-front-container
    .insider-type-single_double_ten
    .single-double-number-row {
    grid-template-columns:
      23px 8.75px
      23px 8.75px
      23px 8.75px
      23px 8.75px
      23px;
    width: 150px !important;
  }

  .new-front-container .insider-type-single_double_ten .single-double-label {
    padding-right: 3px !important;
  }
}

/* =========================================================
   猴王一肖图片资料板块
   背景图：assets/new_front/monkey-king-template.jpg
   所有文字使用百分比定位，会随图片宽度等比例缩放。
   ========================================================= */
.new-front-container .monkey-king-card {
  width: auto;
  margin: 18px 17px 0;
  padding: 0;
  overflow: hidden;
  color: #252525;
  background: #efffe5;
  border-radius: var(--nf-section-radius) var(--nf-section-radius) 0 0;
}

.new-front-container .monkey-king-stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  line-height: 1;
}

.new-front-container .monkey-king-template {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.new-front-container .monkey-king-overlay {
  position: absolute;
  z-index: 2;
  display: block;
  transform: translate(-50%, -50%);
  color: #111111;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* 期号卷轴 */
.new-front-container .monkey-king-issue {
  left: 51%;
  top: 21.9%;
  font-size: 5cqw;
}

/* 五行圆框 */
.new-front-container .monkey-king-element {
  left: 82.5%;
  top: 24.5%;
  font-size: 6cqw;
  font-weight: 600;
}

/* 平特肖紫色圆 */
.new-front-container .monkey-king-zodiac {
  left: 16.6%;
  top: 33.2%;
  color: #ffffff;
  font-size: 9cqw;
  font-weight: 500;
}

/* 随机号码橙色球 */
.new-front-container .monkey-king-number {
  left: 38%;
  top: 34.5%;
  font-size: 5.7cqw;
  font-weight: 600;
}

/* 必中四肖 */
.new-front-container .monkey-king-four-zodiacs {
  left: 70.5%;
  top: 40.6%;
  font-size: 6cqw;
  font-weight: 600;
  letter-spacing: 0.15cqw;
}

/* 幸运半波 */
.new-front-container .monkey-king-wave {
  left: 20%;
  top: 49.8%;
  font-size: 5cqw;
  font-weight: 600;
}

.new-front-container .monkey-king-parity {
  left: 29.3%;
  top: 49.8%;
  font-size: 5cqw;
  font-weight: 600;
}

/* 3个头数和4个尾数；图片中“头”“尾”文字已经存在 */
.new-front-container .monkey-king-heads {
  left: 57%;
  top: 52.5%;
  font-size: 4.4cqw;
  font-weight: 600;
}

.new-front-container .monkey-king-tails {
  left: 76%;
  top: 52.5%;
  font-size: 4.4cqw;
  font-weight: 600;
}

/* 幸运6码 */
.new-front-container .monkey-king-lucky {
  font-size: 5.2cqw;
  font-weight: 600;
}

.new-front-container .monkey-king-lucky-1 {
  left: 52.5%;
  top: 68.5%;
}

.new-front-container .monkey-king-lucky-2 {
  left: 69.5%;
  top: 68.5%;
}

.new-front-container .monkey-king-lucky-3 {
  left: 87.5%;
  top: 68.5%;
}

.new-front-container .monkey-king-lucky-4 {
  left: 52.5%;
  top: 79%;
}

.new-front-container .monkey-king-lucky-5 {
  left: 69.5%;
  top: 79%;
}

.new-front-container .monkey-king-lucky-6 {
  left: 87.5%;
  top: 79%;
}

/* 上期开奖结果，只覆盖图片中红色固定标题后面的空白区域 */
.new-front-container .monkey-king-previous {
  left: 68%;
  top: 90.7%;
  width: 57%;
  overflow: hidden;
  font-size: 4.5cqw;
  font-weight: 600;
  text-align: left;
  text-overflow: clip;
}

/* =========================================================
   澳门新彩『内幕资料』图片资料板块
   模板：assets/new_front/inner-materials-template.jpg
   所有动态文字按图片宽度等比例缩放。
   ========================================================= */
.new-front-container .inner-materials-card {
  width: auto;
  margin: 18px 17px 0;
  padding: 0;
  overflow: hidden;
  color: #252525;
  background: #efffe5;
  border-radius: var(--nf-section-radius) var(--nf-section-radius) 0 0;
}

.new-front-container .inner-materials-stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  line-height: 1;
  background: #f7f5ee;
}

.new-front-container .inner-materials-template {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.new-front-container .inner-materials-overlay {
  position: absolute;
  z-index: 2;
  display: block;
  transform: translate(-50%, -50%);
  color: #161616;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* 顶部期数 */
.new-front-container .inner-materials-issue {
  left: 50%;
  top: 24.3%;
  font-size: 5.1cqw;
  font-weight: 500;
}

/* 波色、家野、单双、特尾四格 */
.new-front-container .inner-materials-wave-pair {
  left: 15.9%;
  top: 35.5%;
  font-size: 3.45cqw;
  font-weight: 600;
  color: #996b33;
}

.new-front-container .inner-materials-family {
  left: 39.3%;
  top: 35.5%;
  font-size: 3.45cqw;
  font-weight: 600;
  color: #996b33;
}

.new-front-container .inner-materials-parity-zodiac {
  left: 62.6%;
  top: 35.5%;
  font-size: 3.45cqw;
  font-weight: 600;
  color: #996b33;
}

.new-front-container .inner-materials-special-tails {
  left: 85.2%;
  top: 35.5%;
  font-size: 4.05cqw;
  font-weight: 600;
  color: #996b33;
}

/* 推荐九肖、六肖、四肖 */
.new-front-container .inner-materials-nine,
.new-front-container .inner-materials-six,
.new-front-container .inner-materials-four {
  left: 29%;
  width: 64%;
  transform: translate(0, -50%);
  font-size: 3.9cqw;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.08cqw;
}

.new-front-container .inner-materials-nine {
  top: 46.4%;
}

.new-front-container .inner-materials-six {
  top: 50.4%;
}

.new-front-container .inner-materials-four {
  top: 54.4%;
}

/*
 * 30码区域：
 * 模板本身已有12个生肖名称和冒号，
 * 这里只在每个生肖后面叠加对应号码。
 */
.new-front-container .inner-materials-number-grid {
  position: absolute;
  z-index: 2;
  left: 13.6%;
  top: 67.3%;
  display: grid;
  grid-template-columns: 33% 33% 33%;
  grid-template-rows: repeat(4, 1fr);
  column-gap: 4.5%;
  row-gap: 0;
  width: 80.5%;
  height: 13.5%;
  color: #252525;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  pointer-events: none;
}

.new-front-container .inner-materials-number-group {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: visible;
  font-size: 2.85cqw;
  line-height: 1;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 底部六项资料 */
.new-front-container .inner-materials-kill-tail,
.new-front-container .inner-materials-segment,
.new-front-container .inner-materials-half-heads {
  /*
   * 左侧三项统一以同一个左边缘开始：
   * 杀一肖二尾、杀一段、杀二半头。
   */
  left: 30.5%;
  width: 31%;
  transform: translate(0, -50%);
  text-align: left;
}

.new-front-container .inner-materials-half-wave,
.new-front-container .inner-materials-sums,
.new-front-container .inner-materials-kill-zodiacs {
  /*
   * 右侧三项统一以同一个左边缘开始：
   * 杀半波、杀二合、综合杀肖。
   */
  left: 80%;
  width: 20%;
  transform: translate(0, -50%);
  text-align: left;
}

.new-front-container .inner-materials-kill-tail,
.new-front-container .inner-materials-half-wave {
  top: 86.8%;
  font-size: 3.75cqw;
  font-weight: 500;
}

.new-front-container .inner-materials-segment,
.new-front-container .inner-materials-sums {
  top: 91.5%;
  font-size: 3.75cqw;
  font-weight: 500;
}

.new-front-container .inner-materials-half-heads,
.new-front-container .inner-materials-kill-zodiacs {
  top: 96.1%;
  font-size: 3.55cqw;
  font-weight: 500;
}

@media (max-width: 560px) {
  .new-front-container .inner-materials-card {
    margin: 10px 8px 0;
  }

  .new-front-container .inner-materials-number-group {
    font-size: 2.8cqw;
  }
}

/* =========================================================
   澳门新彩『正版射牌』图片板块
   ========================================================= */
.new-front-container .official-shooting-card {
  width: auto;
  margin: 10px 8px 0;
  padding: 0;
  overflow: hidden;
  color: #252525;
  background: #efffe5;
  border-radius: var(--nf-section-radius) var(--nf-section-radius) 0 0;
}

.new-front-container .official-shooting-stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  line-height: 1;
  background: #fbf8f0;
}

.new-front-container .official-shooting-template {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.new-front-container .official-shooting-overlay,
.new-front-container .official-shooting-zodiac {
  position: absolute;
  z-index: 2;
  display: block;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.new-front-container .official-shooting-issue {
  left: 47%;
  top: 35%;
  color: #111;
  font-size: 6.4cqw;
  font-weight: 500;
}

.new-front-container .official-shooting-number {
  left: 29%;
  top: 63%;
  color: #ffffff;
  font-size: 7.8cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.new-front-container .official-shooting-zodiac {
  color: #ffffff;
  font-size: 4cqw;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.new-front-container .official-shooting-top-left {
  left: 20.5%;
  top: 52%;
}
.new-front-container .official-shooting-top-mid {
  left: 39%;
  top: 54%;
}
.new-front-container .official-shooting-left-mid {
  left: 10.3%;
  top: 64%;
}
.new-front-container .official-shooting-right-mid {
  left: 37.8%;
  top: 72.5%;
}
.new-front-container .official-shooting-left-bottom {
  left: 10.3%;
  top: 85%;
}
.new-front-container .official-shooting-bottom-mid {
  left: 34.2%;
  top: 88.8%;
}
.new-front-container .official-shooting-grey-left {
  left: 52.6%;
  top: 90%;
}
.new-front-container .official-shooting-grey-right-top {
  left: 91%;
  top: 70%;
}
.new-front-container .official-shooting-grey-right-bottom {
  left: 91.8%;
  top: 84%;
}

/* =========================================================
   澳门新彩『龙门鱼跃』图片板块
   模板：assets/new_front/dragon-gate-template.jpg
   ========================================================= */
.new-front-container .dragon-gate-card {
  width: auto;
  margin: 10px 8px 0;
  padding: 0;
  overflow: hidden;
  color: #252525;
  background: #efffe5;
  border-radius: var(--nf-section-radius) var(--nf-section-radius) 0 0;
}

.new-front-container .dragon-gate-stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  line-height: 1;
  background: #f8e9d9;
}

.new-front-container .dragon-gate-template {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.new-front-container .dragon-gate-overlay {
  position: absolute;
  z-index: 2;
  display: block;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.new-front-container .dragon-gate-issue {
  left: 57.5%;
  top: 23.5%;
  color: #d81818;
  font-size: 5.2cqw;
  font-weight: 500;
}

.new-front-container .dragon-gate-details {
  position: absolute;
  z-index: 2;
  left: 44.8%;
  top: 32.5%;
  width: 53%;
  color: #161616;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 4.15cqw;
  font-weight: 500;
  line-height: 1.42;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
}

.new-front-container .dragon-gate-label {
  display: inline-block;
  font-weight: 500;
}

.new-front-container .dragon-gate-number-line {
  font-size: 3.75cqw;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05cqw;
}

/* =========================================================
   首页底部五个子页面入口：
   ========================================================= */
.new-front-container .home-expert-link-list {
  width: calc(100% - 16px);
  margin: 10px 8px;
  border-top: 1px solid #168b22;
  border-left: 1px solid #168b22;
  background: #efffe5;
}

.new-front-container .home-expert-link {
  display: block;
  padding: 11px 6px;
  color: #08781b;
  border-right: 1px solid #168b22;
  border-bottom: 1px solid #168b22;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.new-front-container .home-expert-link:hover,
.new-front-container .home-expert-link:active {
  background: #e3f9d8;
}

@media (max-width: 390px) {
  .new-front-container .dragon-gate-details {
    font-size: 4cqw;
  }

  .new-front-container .dragon-gate-number-line {
    font-size: 3.55cqw;
  }

  .new-front-container .home-expert-link {
    padding: 10px 4px;
    font-size: 17px;
  }
}

/* 子页面复用首页开奖框样式 */
.page.new-front-container {
  background: #eeeeee;
}
.page.new-front-container .lottery-area {
  margin-top: 7px;
  margin-bottom: 8px;
}
.page.new-front-container .crumb,
.page.new-front-container .notice,
.page.new-front-container .article,
.page.new-front-container .disclaimer {
  background: #ffffff;
}

/* =========================================================
   首页底部子页面入口和图片：宽度与内幕资料卡片一致
   ========================================================= */
.new-front-container .bottom-card {
  width: auto !important;
  margin: 18px 17px 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: transparent;
  box-sizing: border-box;
}

.new-front-container .home-expert-link-list {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.new-front-container .bottom-img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 10px 0 0 !important;
  box-sizing: border-box;
}

/* =========================================================
   彩种切换主题
   只改变选中彩种、期号数字和查看历史记录颜色。
   ========================================================= */
.new-front-container[data-active-lottery="hongkong_era"]
  .lottery-tabs
  .tab.active {
  background: #a624b5;
}

.new-front-container[data-active-lottery="half_time"]
  .lottery-tabs
  .tab.active {
  background: #147c1f;
}

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

.new-front-container[data-active-lottery="hongkong"] .lottery-tabs .tab.active {
  background: #ff9800;
}

.new-front-container[data-active-lottery="hongkong_era"] .issue-text span,
.new-front-container[data-active-lottery="hongkong_era"] .history-link {
  color: #a529aa;
}

.new-front-container[data-active-lottery="half_time"] .issue-text span,
.new-front-container[data-active-lottery="half_time"] .history-link {
  color: #147c1f;
}

.new-front-container[data-active-lottery="new_macau"] .issue-text span,
.new-front-container[data-active-lottery="new_macau"] .history-link {
  color: #2196f3;
}

.new-front-container[data-active-lottery="hongkong"] .issue-text span,
.new-front-container[data-active-lottery="hongkong"] .history-link {
  color: #ff9800;
}

/* =========================================================
   新彩下半场独立资料页面
   ========================================================= */
.new-front-container .lottery-material-page[hidden] {
  display: none !important;
}

.new-front-container .half-time-material-page {
  padding-bottom: 12px;
}

.new-front-container .half-time-fortune-card {
  margin: 18px 17px 0;
  overflow: hidden;
  background: #efffe5;
  border-radius: var(--nf-section-radius) var(--nf-section-radius) 0 0;
}

.new-front-container .half-time-fortune-title {
  background: #147c1f !important;
}

.new-front-container .half-time-fortune-list {
  padding: 8px 10px 10px;
  background: #efffe5;
}

.new-front-container .half-time-fortune-row {
  display: grid;
  grid-template-columns: 76px 92px minmax(95px, 1fr) 78px 90px;
  align-items: center;
  min-height: 36px;
  column-gap: 5px;
  color: #252525;
  font-size: 15px;
  line-height: 1.15;
  white-space: nowrap;
}

.new-front-container .half-time-fortune-badge {
  padding: 7px 4px;
  color: #eaff12;
  background: #0c8e16;
  font-weight: 700;
  text-align: center;
}

.new-front-container .half-time-fortune-issue {
  text-align: center;
}

.new-front-container .half-time-fortune-name {
  text-align: center;
}

.new-front-container .half-time-fortune-description,
.new-front-container .half-time-fortune-author {
  text-align: center;
}

.new-front-container .half-time-flat-card .insider-title {
  background: #147c1f;
}

.new-front-container .half-time-flat-list {
  border-top: 1px solid #111;
}

.new-front-container .half-time-flat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 7px 5px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  border-left: 1px solid #111;
  background: #efffe5;
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
}

.new-front-container .half-time-flat-issue {
  color: #111;
  font-weight: 600;
}

.new-front-container .half-time-flat-label,
.new-front-container .half-time-flat-content,
.new-front-container .half-time-flat-status {
  color: #b92bc6;
  font-weight: 600;
}

.new-front-container .half-time-flat-hit {
  padding: 0 2px;
  color: #d62b2b;
  background: #ffff16;
  border-radius: 2px;
  font: inherit;
}

.new-front-container .half-time-flat-row.result-wrong .half-time-flat-status {
  color: #e24a37;
}

/* =========================================================
   历史开奖记录：参考截图，开奖球完全复用首页结构
   ========================================================= */
.new-front-container .fullscreen-modal {
  position: fixed;
  z-index: 99998;
  top: 0;
  bottom: 0;
  left: 50%;
  display: none;
  flex-direction: column;
  width: min(100%, 480px);
  height: 100dvh;
  overflow: hidden;
  background: #ffffff;
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.16);
}

.new-front-container .fullscreen-modal .modal-header {
  position: relative;
  display: flex;
  min-height: 48px;
  padding: 0 48px;
  align-items: center;
  justify-content: center;
  background: #8bc544;
  box-shadow: none;
}

.new-front-container #eraHistoryModal .modal-header {
  background: #a624b5;
}

.new-front-container #halfTimeHistoryModal .modal-header {
  background: #8bc544;
}

.new-front-container #newMacauHistoryModal .modal-header {
  background: #2196f3;
}

.new-front-container #hongkongHistoryModal .modal-header {
  background: #ff9800;
}

.new-front-container .fullscreen-modal .modal-header h3 {
  margin: 0;
  color: #fff323;
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 3px;
}

.new-front-container .fullscreen-modal .close-modal {
  position: absolute;
  top: 50%;
  right: auto;
  left: 5px;
  width: 38px;
  height: 42px;
  padding: 0;
  border: 0;
  color: #ff6666;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 42px;
  line-height: 36px;
  font-weight: 300;
  transform: translateY(-50%);
  cursor: pointer;
}

.new-front-container .fullscreen-modal .history-list {
  flex: 1;
  padding: 27px 10px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.new-front-container .history-item {
  margin: 0 0 11px;
  padding: 11px 10px 9px;
  border: 1px solid #63a72f;
  border-radius: 6px;
  background: #efffe5;
  box-shadow: none;
}

.new-front-container .history-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.new-front-container .history-issue {
  color: #7c8c70;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
}

.new-front-container .history-draw-time {
  color: #71a83b;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
}

.new-front-container .history-numbers {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  gap: 4px;
  width: 100%;
  margin: 0;
}

.new-front-container .history-numbers .number-card {
  height: 70px;
  padding: 4px 1px 4px;
  border-radius: 5px;
}

.new-front-container .history-numbers .number-card.special-card {
  padding-top: 3px;
}

.new-front-container .history-numbers .lottery-ball {
  --inner-circle-size: 29px;
  --inner-circle-offset: 5px;
  --gloss-shift-x: -2px;
  --gloss-shift-y: -2px;
  width: 39px;
  height: 39px;
  flex-basis: 39px;
}

.new-front-container .history-numbers .ball-gloss {
  width: calc(var(--inner-circle-size) + 6px);
  height: calc(var(--inner-circle-size) + 6px);
}

.new-front-container .history-numbers .ball-number {
  font-size: 18px;
  font-weight: 600;
}

.new-front-container .history-numbers .number-property {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .new-front-container .bottom-card {
    margin-right: 9px !important;
    margin-left: 9px !important;
  }

  .new-front-container .half-time-fortune-card {
    margin-right: 9px;
    margin-left: 9px;
  }

  .new-front-container .half-time-fortune-title {
    padding: 10px 4px;
    font-size: 25px;
  }

  .new-front-container .half-time-fortune-list {
    padding: 8px 10px 10px;
  }

  .new-front-container .half-time-fortune-row {
    grid-template-columns: 72px 78px minmax(88px, 1fr) 62px 74px;
    min-height: 36px;
    column-gap: 3px;
    font-size: 13px;
  }

  .new-front-container .half-time-flat-row {
    min-height: 41px;
    padding: 7px 3px;
    font-size: 16px;
  }

  .new-front-container .fullscreen-modal {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .new-front-container .half-time-fortune-row {
    grid-template-columns: 68px 72px minmax(80px, 1fr) 58px 68px;
    font-size: 12px;
  }

  .new-front-container .half-time-flat-row {
    font-size: 15px;
  }

  .new-front-container .fullscreen-modal .history-list {
    padding: 27px 9px 10px;
  }

  .new-front-container .history-item {
    padding-right: 8px;
    padding-left: 8px;
  }

  .new-front-container .history-numbers {
    gap: 3px;
  }
}

/* =========================================================
   本轮统一调整
   ========================================================= */
/* 首页和子页面所有历史记录标题栏统一为#8bc34a */
.new-front-container .fullscreen-modal .modal-header,
.new-front-container #eraHistoryModal .modal-header,
.new-front-container #halfTimeHistoryModal .modal-header,
.new-front-container #newMacauHistoryModal .modal-header,
.new-front-container #hongkongHistoryModal .modal-header {
  background: #8bc34a !important;
}

/* 神算子行改成可点击的子页面入口 */
.new-front-container a.half-time-fortune-row {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.new-front-container a.half-time-fortune-row:hover,
.new-front-container a.half-time-fortune-row:active {
  background: rgba(20, 124, 31, 0.08);
}

/* 神算子标题在各屏幕宽度下都复用内幕资料标题字号 */
@media (max-width: 560px) {
  .new-front-container .half-time-fortune-title {
    min-height: 44px !important;
    padding: 6px 4px !important;
    font-size: 20px !important;
  }
}

@media (max-width: 390px) {
  .new-front-container .half-time-fortune-title {
    font-size: 19px !important;
  }
}

/* =========================================================
   子页面底部说明框：根据内容自动增高并恢复文字可见
   ========================================================= */
.page.new-front-container .footer {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto !important;
  min-height: 0 !important;
  margin: 10px 8px !important;
  padding: 14px 12px !important;
  overflow: visible !important;
  color: #ffffff !important;
  background: #5662c9 !important;
  border: 1px solid #f1d38a !important;
  border-radius: 8px !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  text-align: left;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   本轮：神算子手机端防溢出、子页面行距和平特一肖标题
   ========================================================= */
.new-front-container .half-time-fortune-list {
  padding-right: 6px;
  padding-left: 6px;
  overflow: hidden;
}

.new-front-container .half-time-fortune-row {
  grid-template-columns:
    64px
    72px
    minmax(88px, 1fr)
    50px
    62px;
  column-gap: 1px;
  min-width: 0;
  min-height: 38px;
  padding: 1px 0;
  overflow: hidden;
}

/* 神算子上下两个子页面入口之间的距离 */
.new-front-container .half-time-fortune-row + .half-time-fortune-row {
  margin-top: 6px;
}

.new-front-container .half-time-fortune-row > * {
  min-width: 0;
  letter-spacing: 0;
}

.new-front-container .half-time-fortune-badge {
  padding-right: 2px;
  padding-left: 2px;
}

/* 新彩下半场『平特一肖』标题固定为绿色 */
.new-front-container .half-time-flat-card > .insider-title {
  background: #147c1f !important;
}

/* 子页面正确内容的黄色背景 */
.page.new-front-container .prediction-box.hit {
  display: inline;
  padding: 1px 3px;
  color: #d00000;
  background: #fff51c;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (max-width: 560px) {
  .new-front-container .half-time-fortune-list {
    padding-right: 4px;
    padding-left: 4px;
  }

  .new-front-container .half-time-fortune-row {
    grid-template-columns:
      62px
      68px
      minmax(84px, 1fr)
      46px
      58px;
    column-gap: 1px;
    min-height: 38px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .new-front-container .half-time-fortune-row {
    grid-template-columns:
      58px
      64px
      minmax(80px, 1fr)
      43px
      53px;
    column-gap: 0;
    font-size: 11px;
  }

  .new-front-container .half-time-fortune-badge {
    padding: 6px 1px;
  }
}

/* =========================================================
   本轮：玄机18码九肖间距与神算子单标题
   ========================================================= */
/*
 * 玄机18码九肖之间“-”符号的左右间距。
 * 需要继续加大，只修改这里的margin数值。
 */
.new-front-container .advanced-zodiac-separator {
  display: inline-block;
  margin: 0 4px;
  line-height: 1;
}

/* 标题现在只显示“神算子”，保持居中。 */
.new-front-container .half-time-fortune-title {
  justify-content: center;
  text-align: center;
}

@media (max-width: 560px) {
  .new-front-container .advanced-zodiac-separator {
    margin-right: 3px;
    margin-left: 3px;
  }
}

@media (max-width: 380px) {
  .new-front-container .advanced-zodiac-separator {
    margin-right: 2px;
    margin-left: 2px;
  }
}

/* =========================================================
   新彩下半场全部首页资料卡片
   ========================================================= */
.new-front-container .half-time-home-card {
  margin-top: 10px;
  margin-bottom: 0;
}

.new-front-container .half-time-home-card > .insider-title {
  background: #147c1f !important;
}

.new-front-container .half-time-home-rule-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px 8px;
  min-height: 0;
  padding: 8px 5px;
  font-size: var(--half-time-rule-font-size);
  font-weight: var(--half-time-rule-font-weight);
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.new-front-container .half-time-home-rule-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.new-front-container .half-time-home-rule-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-front-container .half-time-home-list {
  border-top: 1px solid #111;
}

.new-front-container .half-time-home-row {
  min-height: 45px;
  padding: 8px 5px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  border-left: 1px solid #111;
  background: #efffe5;
  color: #222;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.new-front-container .half-time-home-row:nth-child(odd) {
  background: #f7f8fa;
}

.new-front-container .half-time-home-line {
  width: 100%;
}

.new-front-container .half-time-home-center-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 7px;
  text-align: center;
}

.new-front-container .half-time-home-line + .half-time-home-line {
  margin-top: 5px;
}

.new-front-container .half-time-home-group-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  text-align: center;
}

.new-front-container .half-time-home-issue {
  color: #158c31;
  font-weight: 600;
}

.new-front-container .half-time-home-row-name {
  color: #be2a2a;
  font-weight: 600;
}

.new-front-container .half-time-home-danger-label {
  color: #ff4a47;
  font-weight: 500;
}

.new-front-container .half-time-home-animal,
.new-front-container .half-time-home-number {
  color: #a42aaa;
}

.new-front-container .half-time-home-status,
.new-front-container .half-time-home-question {
  margin-left: 2px;
  color: #ff573d;
  font-weight: 600;
}

.new-front-container .half-time-home-hit {
  padding: 0 2px;
  color: #d00000;
  background: #fff51c;
  border-radius: 2px;
  font: inherit;
}

.new-front-container .half-time-home-numbers {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.new-front-container .half-time-home-row.result-wrong {
  font-weight: 500;
}

@media (max-width: 560px) {
  .new-front-container .half-time-home-card {
    margin: 10px 8px 0;
  }

  .new-front-container .half-time-home-rule-line {
    gap: 2px 4px;
    padding: 7px 3px;
    font-size: var(--half-time-rule-font-size);
  }

  .new-front-container .half-time-home-row {
    min-height: 41px;
    padding: 7px 3px;
    font-size: 14px;
  }

  .new-front-container .half-time-home-center-line {
    gap: 2px 4px;
  }
}

@media (max-width: 390px) {
  .new-front-container .half-time-home-rule-line {
    font-size: var(--half-time-rule-font-size);
  }

  .new-front-container .half-time-home-row {
    font-size: 13px;
  }

  .new-front-container .half-time-home-numbers {
    font-size: 12px;
  }
}

/* =========================================================
   内幕资料说明框与官网字号统一调整入口

   合数大小说明：--macau-sum-rule-font-size
   文武生肖/天地中特/前后中特/家野两肖说明：
       --macau-zodiac-rule-font-size
   官网整行：--insider-site-row-font-size
   火箭：--insider-site-rocket-scale
   “官网”：--insider-site-label-scale
   域名：--insider-site-domain-scale
   ========================================================= */
.new-front-container {
  --macau-sum-rule-font-size: 18px;
  --macau-zodiac-rule-font-size: 16px;
  --macau-rule-font-weight: 600;
  --rule-small-color: #7040b2;
  --rule-big-color: #c5d945;
  --half-time-rule-font-size: 16px;
  --half-time-rule-font-weight: 600;
  --half-time-prediction-color: #b323c8;
  --insider-site-row-font-size: 27px;
  --insider-site-rocket-scale: 0.82em;
  --insider-site-label-scale: 1em;
  --insider-site-domain-scale: 0.78em;
}

/* 澳门新彩『合数大小』官网下面的合数范围 */
.new-front-container .insider-type-one_zodiac > .insider-rule-line {
  font-size: var(--macau-sum-rule-font-size);
  font-weight: var(--macau-rule-font-weight);
}

/* 文武生肖、天地中特、前后中特、家野两肖的分组说明 */
.new-front-container .insider-type-three_zodiac > .insider-zodiac-rule,
.new-front-container .insider-type-eight_zodiac > .insider-zodiac-rule,
.new-front-container .insider-type-kill_one_tail > .insider-zodiac-rule,
.new-front-container .insider-type-five_element > .insider-zodiac-rule {
  font-size: var(--macau-zodiac-rule-font-size);
  font-weight: var(--macau-rule-font-weight);
}

/* 所有内幕资料卡片的官网行 */
.new-front-container .insider-site-line {
  font-size: var(--insider-site-row-font-size);
}

.new-front-container .insider-site-rocket {
  font-size: var(--insider-site-rocket-scale);
}

.new-front-container .insider-site-label {
  font-size: var(--insider-site-label-scale);
}

.new-front-container .insider-site-domain {
  font-size: var(--insider-site-domain-scale);
}

@media (max-width: 560px) {
  .new-front-container {
    --macau-sum-rule-font-size: 18px;
    --macau-zodiac-rule-font-size: 16px;
    --insider-site-row-font-size: 27px;
    --insider-site-rocket-scale: 0.82em;
    --insider-site-label-scale: 1em;
    --insider-site-domain-scale: 0.78em;
  }
}

@media (max-width: 380px) {
  .new-front-container {
    --macau-zodiac-rule-font-size: 14px;
    --insider-site-row-font-size: 20px;
    --insider-site-domain-scale: 0.7em;
  }
}

/* =========================================================
   本轮统一字体、说明颜色与下半场随机内容颜色
   ========================================================= */
/* 澳门新彩说明框：字重、两组颜色统一由变量控制。 */
.new-front-container .insider-rule-line .rule-small {
  color: var(--rule-small-color);
}

.new-front-container .insider-rule-line .rule-big {
  color: var(--rule-big-color);
}

/* 新彩下半场官网下面的分类说明，复用澳门新彩说明框的粗细和双色。 */
.new-front-container .half-time-home-rule-line {
  font-size: var(--half-time-rule-font-size) !important;
  font-weight: var(--half-time-rule-font-weight) !important;
}

.new-front-container .half-time-home-rule-item {
  min-width: 0;
  white-space: nowrap;
}

/* 新彩下半场各卡片中随机资料内容的统一颜色。 */
.new-front-container .half-time-home-prediction {
  color: var(--half-time-prediction-color);
}

/* 平特三肖只显示准/错，不显示开奖生肖和号码。 */
.new-front-container .half-time-home-status-only {
  margin-left: 2px;
  color: #ff573d;
  font-weight: 600;
}

.new-front-container .half-time-home-status-only.pending {
  color: #ff573d;
}

@media (max-width: 560px) {
  .new-front-container {
    --half-time-rule-font-size: 12px;
  }
}

@media (max-width: 390px) {
  .new-front-container {
    --half-time-rule-font-size: 11px;
  }
}

/* =========================================================
   本轮：新彩下半场说明四色、随机内容颜色与底部精选区块
   ========================================================= */
.new-front-container {
  /* 官网下方第1～4项说明颜色，直接修改这四个变量即可。 */
  --half-time-rule-color-1: #7040b2;
  --half-time-rule-color-2: #c5d945;
  --half-time-rule-color-3: #58b2ef;
  --half-time-rule-color-4: #5364ba;

  /* 新彩下半场随机内容、开奖生肖与号码的紫色。 */
  --half-time-prediction-color: #7040b2;
}

/* 不再沿用rule-small/rule-big交替颜色，按第1～4项分别设置。 */
.new-front-container .half-time-home-rule-line .half-time-home-rule-item-1 {
  color: var(--half-time-rule-color-1) !important;
}

.new-front-container .half-time-home-rule-line .half-time-home-rule-item-2 {
  color: var(--half-time-rule-color-2) !important;
}

.new-front-container .half-time-home-rule-line .half-time-home-rule-item-3 {
  color: var(--half-time-rule-color-3) !important;
}

.new-front-container .half-time-home-rule-line .half-time-home-rule-item-4 {
  color: var(--half-time-rule-color-4) !important;
}

/* 梅兰竹菊四项之间的距离，继续调小只需减小column-gap。 */
.new-front-container
  .half-time-home-plum_orchid_bamboo_chrysanthemum
  .half-time-home-rule-line {
  column-gap: 1px !important;
  padding-right: 2px !important;
  padding-left: 2px !important;
}

/* 期数、特开文字、准错均为黑色。 */
.new-front-container .half-time-home-issue,
.new-front-container .half-time-home-status,
.new-front-container .half-time-home-question,
.new-front-container .half-time-home-status-only {
  color: #222222 !important;
}

/* 随机资料和开奖生肖、号码统一为#7040b2。 */
.new-front-container .half-time-home-prediction,
.new-front-container .half-time-home-animal,
.new-front-container .half-time-home-number {
  color: var(--half-time-prediction-color) !important;
}

/* 新彩下半场七尾中特下面复制的精选入口和图片，与资料卡片左右对齐。 */
.new-front-container .half-time-material-page .home-expert-bottom-block {
  box-sizing: border-box;
  max-width: calc(100% - 34px);
}

@media (max-width: 560px) {
  .new-front-container .half-time-material-page .home-expert-bottom-block {
    width: auto !important;
    max-width: none !important;
    margin: 10px 8px 0 !important;
  }

  .new-front-container
    .half-time-home-plum_orchid_bamboo_chrysanthemum
    .half-time-home-rule-line {
    column-gap: 0 !important;
  }
}

/* =========================================================
   本轮：四肖八码间距及暴杀/双波字体颜色统一调整入口
   ========================================================= */
.new-front-container {
  /* 暴杀一波、双波中特左侧名称样式 */
  --half-time-wave-label-color: #ff4a47;
  --half-time-wave-label-font-size: 1em;
  --half-time-wave-label-font-weight: 600;

  /* 暴杀一波、双波中特随机波色内容颜色 */
  --half-time-wave-content-color: #7040b2;
}

/* 四肖八码两排之间的距离。数值越小，两排越靠近。 */
.new-front-container
  .half-time-home-four_zodiac_eight
  .half-time-home-line
  + .half-time-home-line {
  margin-top: 2px;
}

/* 四肖八码每排内部的上下、左右距离。 */
.new-front-container
  .half-time-home-four_zodiac_eight
  .half-time-home-group-line {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  column-gap: 12px;
  row-gap: 1px;
  line-height: 1.2;
  text-align: center;
}

.new-front-container .half-time-home-kill_one_wave .half-time-home-danger-label,
.new-front-container
  .half-time-home-kill_two_waves
  .half-time-home-danger-label {
  color: var(--half-time-wave-label-color) !important;
  font-size: var(--half-time-wave-label-font-size);
  font-weight: var(--half-time-wave-label-font-weight);
}

.new-front-container .half-time-home-kill_one_wave .half-time-home-prediction,
.new-front-container .half-time-home-kill_two_waves .half-time-home-prediction {
  color: var(--half-time-wave-content-color) !important;
}

.new-front-container .half-time-empty-message {
  padding: 12px 8px;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* =========================================================
   双彩种官网公告弹窗
   ========================================================= */
.site-modal {
  padding: 18px !important;
  background: rgba(0, 0, 0, 0.56) !important;
}

.site-modal .site-modal-content {
  position: relative;
  width: min(100%, 348px) !important;
  max-width: 348px !important;
  max-height: calc(100vh - 36px) !important;
  overflow: hidden !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
}

.site-modal .site-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 44px;
  color: #ffffff;
  background: #ff5b57;
  box-sizing: border-box;
}

.site-modal .site-modal-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  text-align: center;
}

.site-modal .site-modal-close {
  position: absolute !important;
  z-index: 3;
  top: 50% !important;
  right: 10px !important;
  left: auto !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: translateY(-50%);
  color: #a6a6a6 !important;
  background: transparent !important;
  font-family: Arial, sans-serif;
  font-size: 31px !important;
  line-height: 30px !important;
  font-weight: 200 !important;
  text-align: center;
  cursor: pointer;
}

.site-modal .site-modal-lottery-list {
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  background: #f1f3f6;
}

.site-modal .site-modal-lottery-section {
  min-height: 158px;
  padding: 12px 10px 14px;
  color: #ff2424;
  background: #ffffff;
  box-sizing: border-box;
  text-align: center;
}

.site-modal .site-modal-lottery-section + .site-modal-lottery-section {
  margin-top: 10px;
}

.site-modal .site-modal-lottery-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  color: #ff2424;
  white-space: nowrap;
}

.site-modal .site-modal-lottery-heading span {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 400;
}

.site-modal .site-modal-lottery-heading small {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

.site-modal .site-modal-lottery-animals {
  margin-top: 19px;
  color: #ff2424;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 1px;
  white-space: nowrap;
}

.site-modal .site-modal-lottery-numbers {
  margin-top: 13px;
  color: #ff2424;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-modal .site-modal-btn {
  display: block !important;
  width: 100% !important;
  min-height: 45px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-top: 1px solid #eeeeee !important;
  border-radius: 0 !important;
  color: #222222 !important;
  background: #ffffff !important;
  box-sizing: border-box;
  font-size: 16px !important;
  line-height: 45px !important;
  font-weight: 400 !important;
  text-align: left !important;
  cursor: pointer;
}

@media (max-width: 380px) {
  .site-modal {
    padding: 12px !important;
  }

  .site-modal .site-modal-content {
    width: min(100%, 348px) !important;
    max-height: calc(100vh - 24px) !important;
  }

  .site-modal .site-modal-lottery-heading {
    gap: 5px;
  }

  .site-modal .site-modal-lottery-heading span {
    font-size: 16px;
  }

  .site-modal .site-modal-lottery-heading small {
    font-size: 12px;
  }

  .site-modal .site-modal-lottery-animals {
    font-size: 19px;
  }

  .site-modal .site-modal-lottery-numbers {
    font-size: 17px;
  }
}

/* =========================================================
   全站容器自适应 + 开奖框智能缩放（最终覆盖）

   重点：以前子页面最大宽度只有480px，但笔记本视口大于560px时，
   CSS会套用59px桌面开奖球，导致7个球挤出开奖框。
   现在尺寸按照“内容容器宽度”计算，而不是只按照屏幕宽度判断。
   ========================================================= */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.container.new-front-container,
.page.new-front-container {
  width: min(100%, var(--nf-page-width)) !important;
  max-width: var(--nf-page-width) !important;
  min-width: 0 !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.new-front-container,
.new-front-container * {
  box-sizing: border-box;
}

.new-front-container img,
.new-front-container video,
.new-front-container iframe {
  max-width: 100%;
}

.new-front-container .lottery-area {
  width: auto;
  max-width: 100%;
  margin-right: clamp(6px, 2cqw, 14px) !important;
  margin-left: clamp(6px, 2cqw, 14px) !important;
  container-name: nf-lottery;
  container-type: inline-size;
}

.new-front-container .lottery-tabs {
  width: 100%;
  min-width: 0;
}

.new-front-container .lottery-tabs .tab {
  min-width: 0 !important;
  min-height: clamp(50px, 14cqw, 105px) !important;
  padding: clamp(7px, 1.9cqw, 14px) clamp(1px, 0.45cqw, 3px)
    clamp(7px, 1.5cqw, 10px) !important;
  overflow: hidden;
}

.new-front-container .lottery-tabs .tab-name {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(14px, 3.5cqw, 24px) !important;
  line-height: 1.18;
  letter-spacing: clamp(-0.45px, -0.04cqw, 0px);
  text-overflow: clip;
  white-space: nowrap;
}

.new-front-container .lottery-tabs .tab[data-type="half_time"] .tab-name {
  font-size: clamp(13.5px, 3.3cqw, 23px) !important;
}

.new-front-container .lottery-tabs .tab-date {
  max-width: 100%;
  margin-top: clamp(5px, 1.3cqw, 13px) !important;
  overflow: hidden;
  font-size: clamp(10.5px, 2.65cqw, 19px) !important;
  line-height: 1.15;
  letter-spacing: clamp(-0.45px, -0.04cqw, 0px);
  text-overflow: clip;
  white-space: nowrap;
}

.new-front-container .draw-box {
  width: 100%;
  min-width: 0;
  padding: clamp(8px, 2.2cqw, 15px) clamp(5px, 2.5cqw, 18px)
    clamp(10px, 2.6cqw, 18px) !important;
  overflow: hidden;
}

.new-front-container .draw-head {
  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(0, 1.28fr)
    minmax(0, 0.92fr) !important;
  gap: clamp(0px, 0.8cqw, 12px) !important;
  width: 100%;
  min-width: 0;
}

.new-front-container .draw-head > * {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.new-front-container .issue-text {
  font-size: clamp(13px, 3.55cqw, 25px) !important;
  letter-spacing: clamp(-0.5px, -0.03cqw, 0px);
}

.new-front-container .countdown-text {
  font-size: clamp(12px, 3.05cqw, 21px) !important;
  letter-spacing: clamp(-0.55px, -0.035cqw, 0px);
}

.new-front-container .history-link {
  justify-self: end;
  padding-right: clamp(1px, 0.8cqw, 6px) !important;
  font-size: clamp(12px, 3.1cqw, 22px) !important;
  letter-spacing: clamp(-0.4px, -0.03cqw, 0px);
  text-align: right;
}

.new-front-container .number-row {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: clamp(2px, 0.95cqw, 7px) !important;
  width: 100%;
  min-width: 0;
  margin-top: clamp(13px, 3.5cqw, 24px) !important;
  overflow: visible;
}

.new-front-container .number-card,
.new-front-container .history-numbers .number-card {
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: clamp(68px, 17cqw, 119px) !important;
  padding: clamp(3px, 1.15cqw, 8px) clamp(0px, 0.3cqw, 2px)
    clamp(3px, 1cqw, 7px) !important;
  overflow: visible;
}

.new-front-container .number-card.special-card,
.new-front-container .history-numbers .number-card.special-card {
  padding-top: clamp(2px, 1cqw, 7px) !important;
}

.new-front-container .lottery-ball,
.new-front-container .history-numbers .lottery-ball {
  --adaptive-ball-size: clamp(35px, 10.45cqw, 59px);
  --inner-circle-offset: clamp(5px, 1.25cqw, 8px);
  --inner-circle-size: calc(
    var(--adaptive-ball-size) - var(--inner-circle-offset) -
      var(--inner-circle-offset)
  );
  --gloss-shift-x: clamp(-3px, -0.55cqw, -2px);
  --gloss-shift-y: clamp(-4px, -0.7cqw, -2px);

  width: var(--adaptive-ball-size) !important;
  height: var(--adaptive-ball-size) !important;
  max-width: 100%;
  flex: 0 0 var(--adaptive-ball-size) !important;
}

.new-front-container .ball-gloss {
  width: calc(var(--inner-circle-size) + 7px) !important;
  height: calc(var(--inner-circle-size) + 7px) !important;
}

.new-front-container .ball-number {
  font-size: clamp(16px, 4.35cqw, 25px) !important;
  font-weight: 550;
  letter-spacing: clamp(0px, 0.05cqw, 0.3px);
  -webkit-text-stroke: 0 !important;
}

.new-front-container .number-property {
  margin-top: clamp(3px, 1cqw, 7px) !important;
  font-size: clamp(11px, 3.05cqw, 19px) !important;
  line-height: 1;
  font-weight: 550;
}

.new-front-container .next-draw {
  margin-top: clamp(12px, 3.2cqw, 22px) !important;
  font-size: clamp(12px, 3.05cqw, 21px) !important;
  letter-spacing: clamp(-0.3px, -0.02cqw, 0px);
}

/* 首页和子页面资料卡片都按自身宽度缩放。 */
.new-front-container .insider-card,
.new-front-container .half-time-home-card,
.new-front-container .half-time-fortune-card {
  container-type: inline-size;
}

.new-front-container {
  --nf-fluid-card-title: clamp(18px, 3.55cqw, 24px);
  --nf-fluid-site: clamp(18px, 3.9cqw, 27px);
  --nf-fluid-rule: clamp(12px, 2.65cqw, 18px);
  --nf-fluid-body: clamp(12.5px, 2.48cqw, 17px);
  --nf-fluid-detail: clamp(12px, 2.35cqw, 16px);

  /*
   * 所有资料卡片随机内容的唯一修改入口。
   * clamp(最小字号, 随卡片宽度变化的字号, 最大字号)
   */
  --material-random-font-size: clamp(13px, 3.4cqw, 16px);
  --material-random-font-weight: 500;
  --material-random-line-height: 1.35;
  --material-random-font-family:
    Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

.new-front-container .insider-card,
.new-front-container .monkey-king-card,
.new-front-container .inner-materials-card,
.new-front-container .official-shooting-card,
.new-front-container .dragon-gate-card,
.new-front-container .home-expert-bottom-block,
.new-front-container .mixed-section,
.new-front-container .gallery-section,
.new-front-container .trend-section,
.new-front-container .pyramid-section,
.new-front-container .bottom-card,
.new-front-container .content-divider {
  max-width: 100%;
  margin-right: clamp(7px, 2.45cqw, 17px) !important;
  margin-left: clamp(7px, 2.45cqw, 17px) !important;
}

.new-front-container .insider-title {
  min-height: clamp(42px, 7.25cqw, 50px) !important;
  padding: clamp(5px, 1.15cqw, 8px) clamp(3px, 0.9cqw, 6px) !important;
  gap: clamp(5px, 1.7cqw, 14px) !important;
  font-size: var(--nf-fluid-card-title) !important;
}

.new-front-container .insider-site-line {
  gap: clamp(3px, 0.75cqw, 5px) !important;
  padding: clamp(9px, 2.1cqw, 16px) clamp(3px, 0.9cqw, 6px) !important;
  font-size: var(--nf-fluid-site) !important;
}

.new-front-container .insider-rule-line,
.new-front-container .insider-zodiac-rule,
.new-front-container .half-time-home-rule-line {
  min-width: 0;
  max-width: 100%;
  gap: clamp(4px, 2.2cqw, 28px) !important;
  padding: clamp(4px, 1cqw, 7px) clamp(2px, 1cqw, 8px) !important;
  font-size: var(--nf-fluid-rule) !important;
}

.new-front-container .insider-item,
.new-front-container .sum-size-item,
.new-front-container .custom-detail-item,
.new-front-container .half-time-home-row,
.new-front-container .home-expert-link {
  max-width: 100%;
  font-size: var(--nf-fluid-body);
}

.new-front-container .insider-issue,
.new-front-container .insider-content,
.new-front-container .insider-result,
.new-front-container .insider-extra-content,
.new-front-container .half-time-home-row *,
.new-front-container .prediction-row,
.new-front-container .record-head {
  min-width: 0;
  max-width: 100%;
}

.new-front-container .prediction-row,
.new-front-container .record-head {
  font-size: var(--nf-fluid-detail) !important;
}

/* =========================================================
   所有资料卡片随机内容：唯一字体与自适应字号入口
   不再按电脑、手机或窄屏分别设置。
   ========================================================= */
.new-front-container .insider-content,
.new-front-container .insider-extra-content,
.new-front-container .advanced-zodiac-line,
.new-front-container .advanced-nine-row,
.new-front-container .advanced-number-line,
.new-front-container .advanced-money-row,
.new-front-container .advanced-exclusion-line,
.new-front-container .single-double-ten-content,
.new-front-container .single-double-label,
.new-front-container .single-double-number-row,
.new-front-container .half-time-home-prediction,
.new-front-container .half-time-fortune-name,
.new-front-container .half-time-fortune-description,
.new-front-container .half-time-fortune-author {
  font-family: var(--material-random-font-family);
  font-size: var(--material-random-font-size);
  font-weight: var(--material-random-font-weight);
  line-height: var(--material-random-line-height);
}

/* 命中高亮、号码和生肖等内部元素全部继承同一套字体。 */
.new-front-container .insider-content *,
.new-front-container .insider-extra-content *,
.new-front-container .single-double-ten-content *,
.new-front-container .half-time-home-prediction *,
.new-front-container .half-time-fortune-name *,
.new-front-container .half-time-fortune-description *,
.new-front-container .half-time-fortune-author * {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.new-front-container .article,
.new-front-container .footer,
.new-front-container .disclaimer {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* 容器非常窄时，不再依赖浏览器视口媒体查询。 */
@container nf-lottery (max-width: 430px) {
  .new-front-container .draw-head {
    grid-template-columns: 30% 44% 26% !important;
  }

  .new-front-container .lottery-tabs .tab-name {
    font-size: clamp(13px, 3.7cqw, 16px) !important;
  }

  .new-front-container .lottery-tabs .tab[data-type="half_time"] .tab-name {
    font-size: clamp(12.5px, 3.45cqw, 15px) !important;
  }

  .new-front-container .lottery-tabs .tab-date {
    font-size: clamp(10px, 2.85cqw, 12px) !important;
  }
}

/* =========================================================
   历史开奖记录最终几何修正
   历史弹窗不能继续继承首页开奖框的全站自适应高度；否则在桌面端
   球宽度会被号码格max-width压缩、球高度仍保持原值，形成椭圆，
   同时号码框也会被拉高。这里把历史记录单独建立容器并固定比例。
   ========================================================= */
.new-front-container .fullscreen-modal .history-item,
.new-front-container .detail-history-modal .history-item {
  container-type: inline-size;
}

.new-front-container .fullscreen-modal .history-numbers,
.new-front-container .detail-history-modal .history-numbers {
  --history-ball-size: clamp(31px, 9vw, 39px);
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: clamp(2px, 0.9vw, 4px) !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.new-front-container .fullscreen-modal .history-numbers .number-card,
.new-front-container .detail-history-modal .history-numbers .number-card {
  width: 100% !important;
  min-width: 0 !important;
  height: calc(var(--history-ball-size) + 31px) !important;
  min-height: calc(var(--history-ball-size) + 31px) !important;
  padding: 4px 1px 3px !important;
  flex: none !important;
  overflow: visible !important;
}

.new-front-container
  .fullscreen-modal
  .history-numbers
  .number-card.special-card,
.new-front-container
  .detail-history-modal
  .history-numbers
  .number-card.special-card {
  padding-top: 3px !important;
}

.new-front-container .fullscreen-modal .history-numbers .lottery-ball,
.new-front-container .detail-history-modal .history-numbers .lottery-ball {
  --inner-circle-offset: calc(var(--history-ball-size) * 0.1282);
  --inner-circle-size: calc(
    var(--history-ball-size) - var(--inner-circle-offset) -
      var(--inner-circle-offset)
  );
  --gloss-shift-x: -2px;
  --gloss-shift-y: -2px;

  width: var(--history-ball-size) !important;
  min-width: var(--history-ball-size) !important;
  max-width: var(--history-ball-size) !important;
  height: var(--history-ball-size) !important;
  min-height: var(--history-ball-size) !important;
  max-height: var(--history-ball-size) !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 var(--history-ball-size) !important;
  border-radius: 50% !important;
}

.new-front-container .fullscreen-modal .history-numbers .ball-gloss,
.new-front-container .detail-history-modal .history-numbers .ball-gloss {
  width: calc(var(--inner-circle-size) + 6px) !important;
  height: calc(var(--inner-circle-size) + 6px) !important;
  aspect-ratio: 1 / 1 !important;
}

.new-front-container .fullscreen-modal .history-numbers .ball-number,
.new-front-container .detail-history-modal .history-numbers .ball-number {
  font-size: clamp(14px, 4.1vw, 18px) !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

.new-front-container .fullscreen-modal .history-numbers .number-property,
.new-front-container .detail-history-modal .history-numbers .number-property {
  margin-top: 3px !important;
  font-size: clamp(10px, 2.8vw, 12px) !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

/* =========================================================
   百度 App / 旧版 Android WebView 兼容
   部分内置浏览器不支持 cqw 容器查询单位。原自适应变量失效时，
   开奖球高度会计算为 auto/0，号码便会与生肖属性叠在一起。
   这里仅在不支持 cqw 时改用 vw 回退，不影响现代浏览器。
   ========================================================= */
@supports not (width: 1cqw) {
  @media (max-width: 768px) {
    .new-front-container .lottery-ball,
    .new-front-container .history-numbers .lottery-ball {
      --adaptive-ball-size: clamp(37px, 10.45vw, 44px);
      --inner-circle-offset: 6px;
      --inner-circle-size: calc(
        var(--adaptive-ball-size) - var(--inner-circle-offset) -
          var(--inner-circle-offset)
      );
      --gloss-shift-x: -2px;
      --gloss-shift-y: -3px;

      width: var(--adaptive-ball-size) !important;
      min-width: var(--adaptive-ball-size) !important;
      max-width: var(--adaptive-ball-size) !important;
      height: var(--adaptive-ball-size) !important;
      min-height: var(--adaptive-ball-size) !important;
      max-height: var(--adaptive-ball-size) !important;
      aspect-ratio: 1 / 1;
      flex: 0 0 var(--adaptive-ball-size) !important;
    }

    .new-front-container .ball-gloss {
      width: calc(var(--inner-circle-size) + 7px) !important;
      height: calc(var(--inner-circle-size) + 7px) !important;
    }

    .new-front-container .ball-number {
      font-size: clamp(16px, 4.35vw, 19px) !important;
      line-height: 1 !important;
      font-weight: 600 !important;
    }

    .new-front-container .number-property {
      margin-top: 4px !important;
      font-size: clamp(11px, 3.05vw, 14px) !important;
      line-height: 1 !important;
      font-weight: 600 !important;
    }
  }
}

/* =========================================================
   网站1、网站2公告新样式
   ========================================================= */
.site-key-site1 .site-modal .site-modal-content,
.site-key-site2 .site-modal .site-modal-content {
  width: min(92vw, 380px) !important;
  max-width: 380px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34) !important;
}

.site-key-site1 .site-modal .site-modal-header,
.site-key-site2 .site-modal .site-modal-header {
  min-height: 58px;
  padding: 0 52px;
}

.site-key-site1 .site-modal .site-modal-header {
  background: linear-gradient(135deg, #9f1d24, #e34d36) !important;
}

.site-key-site2 .site-modal .site-modal-header {
  background: linear-gradient(135deg, #5633a8, #8c55d6) !important;
}

.site-key-site1 .site-modal .site-modal-title,
.site-key-site2 .site-modal .site-modal-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.site-key-site1 .site-modal .site-modal-close,
.site-key-site2 .site-modal .site-modal-close {
  top: 50% !important;
  right: 14px !important;
  width: 31px !important;
  height: 31px !important;
  border-radius: 50% !important;
  transform: translateY(-50%);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  font-size: 25px !important;
  line-height: 31px !important;
}

.site-key-site1 .site-modal .site-modal-lottery-list,
.site-key-site2 .site-modal .site-modal-lottery-list {
  padding: 12px;
  background: #f5f3f0;
}

.site-key-site2 .site-modal .site-modal-lottery-list {
  background: #f4f0fb;
}

.site-key-site1 .site-modal .site-modal-lottery-section,
.site-key-site2 .site-modal .site-modal-lottery-section {
  min-height: 0;
  padding: 14px 12px 16px;
  border: 1px solid #eadfd7;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(80, 45, 35, 0.07);
}

.site-key-site2 .site-modal .site-modal-lottery-section {
  border-color: #dfd4f2;
  box-shadow: 0 4px 12px rgba(86, 51, 168, 0.08);
}

.site-key-site1
  .site-modal
  .site-modal-lottery-section
  + .site-modal-lottery-section,
.site-key-site2
  .site-modal
  .site-modal-lottery-section
  + .site-modal-lottery-section {
  margin-top: 10px;
}

.site-key-site1 .site-modal .site-modal-lottery-heading,
.site-key-site2 .site-modal .site-modal-lottery-heading {
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px dashed #ead5c8;
  color: #9f1d24;
}

.site-key-site2 .site-modal .site-modal-lottery-heading {
  border-bottom-color: #d9cdf0;
  color: #6538b2;
}

.site-key-site1 .site-modal .site-modal-lottery-heading span,
.site-key-site2 .site-modal .site-modal-lottery-heading span {
  font-weight: 700;
}

.site-key-site1 .site-modal .site-modal-lottery-animals,
.site-key-site1 .site-modal .site-modal-lottery-numbers,
.site-key-site2 .site-modal .site-modal-lottery-animals,
.site-key-site2 .site-modal .site-modal-lottery-numbers {
  margin-top: 13px;
  color: #222 !important;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-key-site1 .site-modal .site-modal-btn,
.site-key-site2 .site-modal .site-modal-btn {
  display: block !important;
  width: fit-content !important;
  min-width: 112px;
  min-height: 0;
  margin: 14px auto 16px !important;
  padding: 10px 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #b72b2e !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: 0 5px 13px rgba(183, 43, 46, 0.22);
}

.site-key-site2 .site-modal .site-modal-btn {
  background: #6840b7 !important;
  box-shadow: 0 5px 13px rgba(104, 64, 183, 0.22);
}

/* =========================================================
   网站1：三肖四尾之后的普通单行资料沿用自然宽度的一行布局。
   期号、随机内容、开奖结果不再按32%/30%/38%固定比例拆开。
   ========================================================= */
.site1-default .new-front-container .insider-item.sum-size-item {
  flex-wrap: nowrap;
}

/* 网站1单双各十码：第一行“期号【单双各十码】 + 开奖结果”作为一个整体居中。 */
.site1-default
  .new-front-container
  .insider-type-single_double_ten
  .insider-item {
  grid-template-columns: max-content max-content;
  justify-content: center;
}

/* 网站1绝杀五码：只有第7个号码真正出现在随机五码中时，PHP才输出高亮。 */
.site1-default
  .new-front-container
  .insider-type-five_not_hit
  .insider-highlight {
  background: #ffff54 !important;
}

/* 网站1绝杀五码 + 5项绝杀资料高亮 */
.site1-default
  .new-front-container
  .insider-type-five_not_hit
  .insider-highlight,
.site1-default
  .new-front-container
  .insider-type-kill_two_zodiac
  .insider-item.result-wrong
  .insider-highlight,
.site1-default
  .new-front-container
  .insider-type-kill_three_zodiac
  .insider-item.result-wrong
  .insider-highlight,
.site1-default
  .new-front-container
  .insider-type-kill_one_element
  .insider-item.result-wrong
  .insider-highlight,
.site1-default
  .new-front-container
  .insider-type-special_two
  .insider-item.result-wrong
  .insider-highlight,
.site1-default
  .new-front-container
  .insider-type-six_not_hit
  .insider-item.result-wrong
  .insider-highlight {
  background: #ffff54 !important;
}

/* 稳中三十六码：第一行=期号+标题+开奖结果；下面固定3行，每行12码。 */
.site1-default
  .new-front-container
  .insider-type-stable_thirty_six
  .stable-thirty-six-item {
  display: block;
  min-height: 0;
  padding: 8px 5px 10px;
  white-space: normal;
}

.site1-default
  .new-front-container
  .insider-type-stable_thirty_six
  .stable-thirty-six-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  gap: 0;
  white-space: nowrap;
}

.site1-default
  .new-front-container
  .insider-type-stable_thirty_six
  .stable-thirty-six-head
  .insider-issue,
.site1-default
  .new-front-container
  .insider-type-stable_thirty_six
  .stable-thirty-six-head
  .insider-result {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

.site1-default
  .new-front-container
  .insider-type-stable_thirty_six
  .stable-thirty-six-label {
  flex: 0 0 auto;
  color: #252525;
  font: inherit;
  line-height: inherit;
}

.site1-default
  .new-front-container
  .insider-type-stable_thirty_six
  .stable-thirty-six-content {
  width: 100%;
  margin-top: 6px;
  text-align: center;
}

.site1-default
  .new-front-container
  .insider-type-stable_thirty_six
  .insider-number-lines {
  width: 100%;
}

.site1-default
  .new-front-container
  .insider-type-stable_thirty_six
  .insider-number-row {
  width: 100%;
  margin: 2px 0 0;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .site1-default
    .new-front-container
    .insider-type-stable_thirty_six
    .stable-thirty-six-item {
    padding-right: 2px;
    padding-left: 2px;
  }

  .site1-default
    .new-front-container
    .insider-type-stable_thirty_six
    .stable-thirty-six-head
    .insider-issue,
  .site1-default
    .new-front-container
    .insider-type-stable_thirty_six
    .stable-thirty-six-head
    .insider-result,
  .site1-default
    .new-front-container
    .insider-type-stable_thirty_six
    .stable-thirty-six-label {
    font-size: 13.5px;
  }
}

/* =========================================================
   网站1：新彩下半场神算子最终排版
   单一流式自适应，不按手机/平板/电脑分档；旧浏览器保留固定字号兜底。
   ========================================================= */
.site-key-site1 .new-front-container .half-time-fortune-card {
  overflow: hidden;
  background: #fbfaf7 !important;
  border: 1px solid #d9dee7;
  border-radius: 7px 7px 0 0;
}

.site-key-site1 .new-front-container .half-time-fortune-title {
  min-height: 40px !important;
  padding: 5px 4px !important;
  color: #fff52b !important;
  background: #147c1f !important;
  font-size: 20px !important;
}

.site-key-site1 .new-front-container .half-time-fortune-list {
  padding: 5px 5px 7px !important;
  overflow: hidden;
  background: #fbfaf7 !important;
}

.site-key-site1 .new-front-container .half-time-fortune-row {
  display: grid !important;
  grid-template-columns: minmax(50px, 15%) minmax(46px, 14%) minmax(
      0,
      1fr
    ) minmax(54px, 20%) !important;
  align-items: center !important;
  column-gap: 3px !important;
  width: 100%;
  min-width: 0;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 1px 2px !important;
  overflow: hidden !important;
  color: #263442 !important;
  background: transparent;
  font-family:
    "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  white-space: nowrap !important;
}

.site-key-site1
  .new-front-container
  .half-time-fortune-row
  + .half-time-fortune-row {
  margin-top: 2px !important;
  border-top: 1px solid #ece8df;
}

.site-key-site1 .new-front-container .half-time-fortune-row:hover,
.site-key-site1 .new-front-container .half-time-fortune-row:active {
  background: #f3f6f8 !important;
}

.site-key-site1 .new-front-container .half-time-fortune-row > * {
  min-width: 0;
  max-width: 100%;
  font-family: inherit !important;
  line-height: inherit !important;
}

.site-key-site1 .new-front-container .half-time-fortune-badge {
  padding: 3px !important;
  overflow: hidden;
  color: #fff !important;
  background: #147c1f !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

.site-key-site1 .new-front-container .half-time-fortune-issue {
  overflow: hidden;
  color: #333 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: left !important;
}

.site-key-site1 .new-front-container .half-time-fortune-topic {
  display: flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.site-key-site1 .new-front-container .half-time-fortune-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #c54b2c !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: inherit !important;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-key-site1 .new-front-container .half-time-fortune-description {
  flex: 0 0 auto;
  margin-left: 2px;
  color: #7a5b16 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  text-align: left !important;
  white-space: nowrap;
}

.site-key-site1 .new-front-container .half-time-fortune-author {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #66727e !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 现代浏览器连续缩放；旧浏览器忽略这一段，继续使用上面的兜底值。 */
@supports (font-size: clamp(12px, 3.4vw, 14px)) {
  .site-key-site1 .new-front-container .half-time-fortune-title {
    font-size: clamp(18px, 4.8vw, 22px) !important;
  }

  .site-key-site1 .new-front-container .half-time-fortune-row,
  .site-key-site1 .new-front-container .half-time-fortune-issue,
  .site-key-site1 .new-front-container .half-time-fortune-name,
  .site-key-site1 .new-front-container .half-time-fortune-description,
  .site-key-site1 .new-front-container .half-time-fortune-author {
    font-size: clamp(12px, 3.4vw, 14px) !important;
  }

  .site-key-site1 .new-front-container .half-time-fortune-badge {
    font-size: clamp(13px, 3.6vw, 15px) !important;
  }
}


/* 官网公告随机资料字体：旧浏览器固定px回退 + 正常浏览器clamp自适应。
   常用数量保持单行；后台设置较大数量时允许换行，避免内容被裁掉。 */
.site-modal .site-modal-lottery-animals {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}
.site-modal .site-modal-lottery-numbers {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}
.site-modal .popup-count-wrap {
  white-space: normal !important;
  word-break: break-all;
}
@supports (font-size: clamp(10px, 2vw, 20px)) {
  .site-modal .site-modal-lottery-animals {
    font-size: clamp(13px, 3.7vw, 18px) !important;
  }
  .site-modal .site-modal-lottery-numbers {
    font-size: clamp(12px, 3.25vw, 16px) !important;
  }
}
