/* 六合彩资料页 · 参考移动端门户版式 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #dcecf7;
  color: #111;
  font: 400 14px/1.5 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.m6-page {
  position: relative;
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  background: #eef8fe;
  box-shadow: 0 0 0 1px rgba(26, 101, 148, 0.08), 0 0 28px rgba(20, 80, 120, 0.16);
  overflow: hidden;
}

@media (min-width: 760px) {
  body {
    padding: 18px 0;
  }

  .m6-page {
    min-height: calc(100vh - 36px);
    border-radius: 6px;
  }
}

/* ---------- 顶栏 ---------- */
.m6-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 54px;
  padding: 0 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 46%),
    linear-gradient(180deg, #68c6f4 0%, #2b95d6 52%, #1576b8 100%);
  border-bottom: 2px solid #0b5f95;
}

.m6-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.16) 0 2px,
    transparent 2px 18px
  );
  opacity: 0.7;
  pointer-events: none;
}

.m6-header::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -30px;
  width: 210px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.38), transparent 65%);
  pointer-events: none;
}

.m6-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.m6-emblem {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffe084;
  background:
    radial-gradient(circle at 34% 28%, #59d183, #119348 55%, #076a30 100%);
  box-shadow:
    inset 0 -4px 6px rgba(0, 0, 0, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 4px rgba(255, 255, 255, 0.75),
    0 1px 2px rgba(0, 0, 0, 0.55);
  animation: emblemRainbow 7s linear infinite;
}

@keyframes emblemRainbow {
  0%,
  100% {
    color: #ff3b3b;
  }
  14% {
    color: #ff9a00;
  }
  28% {
    color: #ffe600;
  }
  42% {
    color: #d4ff3b;
  }
  57% {
    color: #00d4ff;
  }
  71% {
    color: #3b6bff;
  }
  85% {
    color: #c44dff;
  }
}

.m6-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.m6-brand-text strong {
  color: #0a8a3e;
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow:
    1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    0 2px 2px rgba(0, 0, 0, 0.14);
}

.m6-brand-text small {
  margin-top: 1px;
  color: #111;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow:
    1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff;
}

.m6-nav-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff5a5a 0%, #e0000c 55%, #b9000a 100%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
}

.m6-nav-badge:active {
  transform: translateY(1px);
}

.m6-header-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.lottery-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #e5d8c9;
  background: #f7f1e8;
}

.lottery-tab {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b8175;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.lottery-tab.is-on {
  color: #b03a2e;
}

.lottery-tab.is-on::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #b03a2e;
}

.lottery-refresh {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid #d9c8b6;
  border-radius: 3px;
  background: #fff;
  color: #8b5e3c;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.lottery-refresh:active {
  background: #f3e9dd;
}

.lottery-refresh:disabled {
  opacity: 0.6;
  cursor: wait;
}

.m6-page [hidden] {
  display: none !important;
}

.lottery-draw-card .result-foot {
  justify-content: center;
}

.lottery-draw-card .result-foot > span {
  text-align: center;
}

.m6-menu {
  position: absolute;
  top: 56px;
  right: 8px;
  z-index: 60;
  width: 206px;
  padding: 6px;
  border: 1px solid #8ec9ea;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 60, 90, 0.28);
}

.m6-menu[hidden] {
  display: none;
}

.m6-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #8ec9ea;
  border-left: 1px solid #8ec9ea;
  background: #fff;
  transform: rotate(45deg);
}

.m6-menu-title {
  margin: 2px 8px 5px;
  color: #7c9ab0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.m6-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 4px;
  color: #123;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.m6-menu-item:hover {
  background: #eaf7ff;
  color: #0b6da8;
}

.m6-menu-item--external {
  margin-bottom: 4px;
  border-bottom: 1px dashed #cfe6f3;
  border-radius: 4px 4px 0 0;
  background: #fff8ec;
  color: #9a5a00;
}

.m6-menu-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.m6-menu-text strong {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.m6-menu-text small {
  color: #a9824f;
  font-size: 9.5px;
  font-weight: 500;
}

.m6-menu-arrow {
  font-size: 14px;
}

#result,
#picks,
#tails,
#idiom,
#six,
#gallery,
#kill,
#pingte,
#killz,
#parity,
#special36,
#kill2,
#killhead {
  scroll-margin-top: 10px;
}

/* ---------- 广告位 ---------- */
.ad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px dashed #a9cfe5;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(31, 127, 196, 0.045) 0 10px,
      transparent 10px 20px
    ),
    linear-gradient(180deg, #f9fdff, #e8f4fc);
  color: #7fa6bd;
  text-align: center;
}

.ad-slot--top {
  height: 60px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
}

.ad-slot--image {
  display: block;
  height: auto;
  padding: 0;
  border: 0;
  background: #eaf7ff;
  overflow: hidden;
}

.ad-slot--image img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

.ad-slot--banner {
  height: 82px;
  margin: 6px 6px 0;
  border-color: #ead483;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(214, 176, 44, 0.07) 0 10px,
      transparent 10px 20px
    ),
    linear-gradient(180deg, #fffdf2, #fff6cf);
  color: #ab9142;
}

.ad-slot--banner.ad-slot--image {
  height: auto;
  padding: 0;
  border: 0;
  background: #c9040d;
  overflow: hidden;
}

.ad-slot--strip {
  height: 50px;
  margin: 6px 6px 0;
}

.ad-mark {
  position: absolute;
  top: 3px;
  left: 5px;
  padding: 0 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.ad-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ad-size {
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.02em;
  opacity: 0.62;
}

/* ---------- 顶栏下方的天空装饰带 ---------- */
.m6-sky {
  height: 18px;
  border-bottom: 1px solid #5fb6e5;
  background:
    radial-gradient(ellipse 90px 18px at 18% 100%, rgba(255, 255, 255, 0.9), transparent 72%),
    radial-gradient(ellipse 130px 22px at 72% 112%, rgba(255, 255, 255, 0.72), transparent 72%),
    linear-gradient(180deg, #c8edff, #7ecbf2);
}

/* ---------- 标语 ---------- */
.m6-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-top: 6px;
  padding: 0 8px;
  border-top: 1px solid #8bd3f7;
  border-bottom: 1px solid #0a5f96;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(180deg, #47b2ed 0%, #1f8fd2 50%, #0d74b8 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
  white-space: nowrap;
}

/* ---------- 收藏 / 倒计时条 ---------- */
.m6-collect {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 54px;
  padding: 6px 8px 6px 6px;
  border-bottom: 1px solid #9fd2ee;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, #eaf8ff, #cfeafd);
}

.collect-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #75bfe5;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(21, 95, 140, 0.22);
  color: #1979b8;
}

.collect-icon svg {
  width: 21px;
  height: 21px;
}

.collect-text {
  flex: 1 1 auto;
  min-width: 0;
  color: #0b3b5a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.collect-text strong {
  color: #e60012;
  font-weight: 800;
}

.collect-text .arrow {
  padding: 0 2px;
  color: #e60012;
  font-weight: 800;
}

.m6-countdown {
  flex: none;
  padding: 2px 5px;
  border: 1px solid #f0b2b2;
  border-radius: 2px;
  background: #fff;
  color: #e60012;
  font-family: "Arial Black", Consolas, monospace;
  font-size: clamp(13px, 4.1vw, 17px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 0 #fff;
}

/* ---------- 开奖结果 ---------- */
.m6-result {
  margin: 6px 6px 0;
  border: 1px solid #8cc9ea;
  border-top: 2px solid #3fa8e0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 80, 120, 0.1);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px 4px;
  background: #fff;
}

.result-issue {
  margin: 0;
  color: #111;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.result-issue span {
  color: #e60012;
}

.result-countdown {
  flex: none;
  color: #e60012;
  font-family: "Arial Black", Consolas, monospace;
  font-size: clamp(14px, 4.4vw, 17px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.result-history {
  flex: none;
  color: #e60012;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.result-history:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.balls {
  --ball: clamp(38px, 11vw, 70px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 1.7vw, 12px);
  padding: 8px 5px 7px;
  border-top: 1px solid #e8e2d9;
  border-bottom: 1px solid #e8e2d9;
  background: #fefcf8;
  overflow: hidden;
}

.ball-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  gap: 5px;
}

.ball {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--ball);
  height: var(--ball);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.05),
    0 3px 6px rgba(80, 70, 60, 0.16);
  line-height: 1;
  animation: ballIn 0.35s ease both;
}

.ball::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(
    circle closest-side,
    transparent 70%,
    var(--ring-soft) 76%,
    var(--ring-main) 86%,
    var(--ring-dark) 96%,
    transparent 100%
  );
  filter: blur(1px);
}

.ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--ring-dark);
  border-radius: 50%;
  opacity: 0.18;
}

.ball--red {
  --ring-soft: #ffc4c8;
  --ring-main: #f02a38;
  --ring-dark: #b00012;
  --ring-glow: rgba(220, 30, 45, 0.3);
}

.ball--blue {
  --ring-soft: #c6ddff;
  --ring-main: #2a86f0;
  --ring-dark: #0a4ca4;
  --ring-glow: rgba(30, 120, 230, 0.3);
}

.ball--green {
  --ring-soft: #c9f7d2;
  --ring-main: #2bd052;
  --ring-dark: #0a8a30;
  --ring-glow: rgba(20, 170, 60, 0.3);
}

.ball-num {
  position: relative;
  z-index: 2;
  color: #0d0d0d;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: calc(var(--ball) * 0.48);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 1px #fff,
    0 0 3px rgba(255, 255, 255, 0.9);
}

.ball-zodiac {
  margin-top: 0;
  color: #b08a6a;
  font-size: calc(var(--ball) * 0.17);
  font-weight: 500;
  line-height: 1.1;
  text-shadow: none;
}

.ball-plus {
  flex: none;
  margin-top: calc(var(--ball) * 0.35);
  color: #666;
  font-family: Arial, sans-serif;
  font-size: clamp(13px, 3vw, 17px);
  font-weight: 400;
  line-height: 1;
}

.result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px 6px;
  background: #f7fcff;
}

.result-foot > span {
  min-width: 0;
  color: #333;
  font-size: 11px;
  line-height: 1.35;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #e39a2c;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffd36b, #f39a12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #6b3400;
  font-size: 11px;
  font-weight: 700;
}

.refresh-btn svg {
  width: 12px;
  height: 12px;
}

.refresh-btn.is-spinning svg {
  animation: spin 0.55s linear;
}

.history-back {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  color: #eaf7ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.history-main {
  padding: 10px 8px 0;
}

.history-head {
  padding: 12px 10px;
  border: 1px solid #8cc9ea;
  border-top: 2px solid #3fa8e0;
  background: linear-gradient(180deg, #e7f7ff, #c9edff);
  text-align: center;
}

.history-head h1 {
  margin: 0;
  color: #0c74b7;
  font-size: clamp(20px, 5.2vw, 27px);
  font-weight: 900;
  line-height: 1.1;
}

.history-head p {
  margin: 4px 0 0;
  color: #4f7f97;
  font-size: 10px;
  font-weight: 600;
}

.history-list {
  margin-top: 8px;
  border: 1px solid #9fd0e8;
  background: #fff;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 8px;
  border-bottom: 1px solid #edf5fa;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-meta {
  display: flex;
  flex-direction: column;
  flex: 0 0 70px;
  line-height: 1.2;
}

.history-meta strong {
  color: #0a8a3a;
  font-size: 13px;
  font-weight: 800;
}

.history-meta span {
  margin-top: 2px;
  color: #7a96a8;
  font-size: 9px;
  white-space: nowrap;
}

.history-balls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.history-ball-cell {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 30px;
}

.history-zodiac {
  color: #6d8fa5;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.history-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.history-ball--red {
  background: radial-gradient(circle at 35% 28%, #ff7a6e, #df2a2a 62%, #a80d0d);
}

.history-ball--blue {
  background: radial-gradient(circle at 35% 28%, #70b9ef, #1c74c9 62%, #0b4f91);
}

.history-ball--green {
  background: radial-gradient(circle at 35% 28%, #71d68e, #14964b 62%, #076a30);
}

.history-ball--special {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e0a928;
}

.history-plus {
  flex: none;
  color: #8b8175;
  font-size: 12px;
  font-weight: 700;
}

.history-empty {
  margin: 0;
  padding: 28px 10px;
  color: #7a96a8;
  font-size: 12px;
  text-align: center;
}

.history-note {
  text-align: center;
}

@media (max-width: 380px) {
  .history-ball {
    width: 27px;
    height: 27px;
    font-size: 13px;
  }

  .history-ball-cell {
    width: 27px;
  }

  .history-meta {
    flex-basis: 62px;
  }

  .history-balls {
    gap: 3px;
  }
}

/* ---------- 页脚 ---------- */
.m6-zodiac-chart {
  margin: 8px 6px 0;
  border: 1px solid #9fd0e8;
  background: #fff;
  overflow: hidden;
}

.zodiac-chart-head {
  padding: 9px 8px 7px;
  border-bottom: 1px solid #a9d8ef;
  background: linear-gradient(180deg, #e7f7ff, #c9edff);
  text-align: center;
}

.zodiac-chart-head h2 {
  margin: 0;
  color: #0c74b7;
  font-size: clamp(20px, 5.2vw, 27px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.zodiac-chart-green {
  color: #0a9a4a;
}

.zodiac-chart-down {
  margin-left: 2px;
  color: #0a9a4a;
  font-size: 0.8em;
}

.zodiac-chart-sub {
  margin: 3px 0 0;
  color: #4f7f97;
  font-size: 10px;
  font-weight: 600;
}

.zodiac-chart-link {
  display: block;
  padding: 8px;
  background: #fff;
}

.zodiac-chart-link img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d5e5ee;
}

.zodiac-chart-note {
  margin: 0;
  padding: 0 8px 8px;
  color: #7a96a8;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.m6-footer {
  padding: 16px 12px 24px;
  color: #6d8fa5;
  font-size: 11px;
  line-height: 1.75;
  text-align: center;
}

.m6-footer p {
  margin: 0;
}

.m6-footer p + p {
  margin-top: 6px;
}

.m6-footer p:not(.m6-footer-brand):not(.m6-footer-slogan) {
  text-align: left;
}

.m6-footer-brand {
  margin-top: 8px !important;
  color: #4f7f97;
  font-weight: 700;
}

.m6-footer-brand a {
  color: #0b6da8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.m6-footer-slogan {
  margin-top: 4px !important;
  color: #7a96a8;
}

/* ---------- 新澳开奖页 ---------- */
.xinao-main {
  padding: 10px 0 0;
}

.xinao-main .m6-result {
  margin-top: 0;
}

.xinao-tag {
  flex: none;
  padding: 2px 6px;
  border: 1px solid #9fd3ee;
  border-radius: 3px;
  background: #eef9ff;
  color: #1f6fb2;
  font-size: 10px;
  font-weight: 700;
}

.xinao-time {
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
}

.xinao-result .result-foot {
  justify-content: center;
}

.xinao-result .result-foot > span {
  color: #4f7f97;
  text-align: center;
}

.xinao-footer {
  padding-top: 12px;
  color: #7a96a8;
  font-size: 11px;
  text-align: center;
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 40px);
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 九肖回测 ---------- */
.m6-picks {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.picks-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.picks-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.picks-head h2 .picks-green,
.picks-head h2 .picks-down {
  color: #0a9b3e;
}

.picks-head h2 .picks-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.picks-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.picks-list {
  padding: 2px 0 4px;
  background: #fff;
}

.pick-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 3px 10px;
  border-bottom: 1px solid #f0f6fa;
}

.pick-row:last-child {
  border-bottom: 0;
}

.pick-issue {
  flex: none;
  width: 72px;
  color: #0b8f7a;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pick-set {
  flex: 1 1 auto;
  min-width: 0;
  color: #e60012;
  font-size: clamp(17px, 4.6vw, 23px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

.pick-bracket {
  color: #e60012;
}

.pick-z {
  color: #0a9b3e;
}

.pick-z.is-hit {
  padding: 0 1px;
  border-radius: 2px;
  background: #ffef4d;
  color: #087a33;
}

.pick-result {
  flex: none;
  width: 82px;
  color: #e60012;
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.pick-result.is-pending {
  color: #0b8f9b;
}

.picks-note {
  margin: 0;
  padding: 8px 10px 12px;
  background: #fff;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 七尾回测 ---------- */
.m6-tails {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.tails-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.tails-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.tails-head h2 .tails-green,
.tails-head h2 .tails-down {
  color: #0a9b3e;
}

.tails-head h2 .tails-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.tails-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tails-list {
  padding: 2px 0 4px;
  background: #fff;
}

.tail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 3px 10px;
  border-bottom: 1px solid #f0f6fa;
}

.tail-row:last-child {
  border-bottom: 0;
}

.tail-issue {
  flex: none;
  color: #0b8f7a;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tail-set {
  flex: 1 1 auto;
  min-width: 0;
  color: #e60012;
  font-size: clamp(18px, 4.4vw, 24px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.tail-bracket {
  color: #e60012;
}

.tail-digit {
  color: #e60012;
}

.tail-digit.is-hit {
  padding: 0 1px;
  border-radius: 2px;
  background: #ffef4d;
  color: #b8000e;
}

.tail-result {
  flex: none;
  width: 78px;
  color: #e60012;
  font-size: clamp(14px, 3.7vw, 18px);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.tail-result.is-pending {
  color: #0b8f9b;
}

.tails-note {
  margin: 0;
  padding: 8px 10px 12px;
  background: #fff;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 560px) {
  .tail-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "issue result"
      "set set";
    gap: 1px 6px;
    padding: 5px 8px;
  }

  .tail-issue {
    grid-area: issue;
    font-size: 12.5px;
  }

  .tail-set {
    grid-area: set;
    font-size: clamp(17px, 4.8vw, 21px);
  }

  .tail-result {
    grid-area: result;
    width: auto;
    font-size: 13px;
  }
}

/* ---------- 成语中平特 ---------- */
.m6-idiom {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.idiom-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.idiom-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.idiom-head h2 .idiom-green,
.idiom-head h2 .idiom-down {
  color: #0a9b3e;
}

.idiom-head h2 .idiom-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.idiom-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.idiom-list {
  padding: 0;
  background: #fff;
}

.idiom-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 8px;
  border-bottom: 1px solid #eaf4fb;
  background: #fff;
  white-space: nowrap;
}

.idiom-row:nth-child(even) {
  background: #f8fcff;
}

.idiom-row:last-child {
  border-bottom: 0;
}

.idiom-issue {
  flex: none;
  color: #1f6fb2;
  font-size: clamp(9px, 2.6vw, 11px);
}

.idiom-label {
  flex: none;
  color: #333;
  font-size: clamp(12px, 3.5vw, 15px);
  font-weight: 600;
}

.idiom-set {
  flex: none;
  color: #e60012;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.idiom-char.is-hit {
  padding: 0 1px;
  background: #fff200;
}

.idiom-result {
  flex: none;
  margin-left: auto;
  color: #1f6fb2;
  font-size: clamp(9px, 2.8vw, 12px);
}

.idiom-status {
  flex: none;
  color: #e60012;
  font-size: clamp(10px, 2.9vw, 12px);
  font-weight: 800;
}

.idiom-status.is-miss {
  color: #0a9b3e;
}

.idiom-note {
  margin: 0;
  padding: 7px 10px 12px;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

/* 下期预测行 */
.kill-status.is-pending,
.parity-status.is-pending,
.idiom-status.is-pending,
.special36-status.is-pending {
  color: #7a96a8;
}

.six-tag.is-pending {
  color: #7a96a8;
}

.pingte-pending {
  color: #7a96a8;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}

/* ---------- 六肖 3 期 ---------- */
.m6-six {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.six-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.six-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.six-head h2 .six-green,
.six-head h2 .six-down {
  color: #0a9b3e;
}

.six-head h2 .six-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.six-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.six-list {
  padding: 2px 0 4px;
  background: #fff;
}

.six-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 3px 9px;
  border-bottom: 1px solid #f0f6fa;
  white-space: nowrap;
}

.six-row:last-child {
  border-bottom: 0;
}

.six-range {
  flex: 0 0 10.2em;
  color: #0b8f7a;
  font-size: clamp(11px, 3.4vw, 15px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.six-set {
  flex: none;
  color: #e60012;
  font-size: clamp(15px, 4.4vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.six-bracket {
  color: #e60012;
}

.six-z {
  color: #0a9b3e;
}

.six-z.is-hit {
  color: #e60012;
}

.six-tag {
  flex: none;
  margin-left: auto;
  color: #c0392b;
  font-size: clamp(8px, 2.2vw, 10.5px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.six-note {
  margin: 0;
  padding: 8px 10px 12px;
  background: #fff;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 每期图库 ---------- */
.m6-gallery {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.gallery-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.gallery-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.gallery-head h2 .gallery-green,
.gallery-head h2 .gallery-down {
  color: #0a9b3e;
}

.gallery-head h2 .gallery-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.gallery-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gallery-list {
  padding: 8px;
}

.gallery-issue + .gallery-issue {
  margin-top: 12px;
}

.gallery-issue-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 2px 6px;
  color: #6c8798;
  font-size: 11px;
}

.gallery-no {
  color: #0a9b3e;
  font-size: 13px;
  font-weight: 800;
}

.gallery-date {
  color: #7e9aac;
}

.gallery-pending {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid #e8aa64;
  border-radius: 3px;
  background: #fff7e8;
  color: #a35b00;
  font-size: 10px;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #d9e5ed;
  border-radius: 4px;
  background: #f8f4ed;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #efe9e0;
}

.gallery-label {
  display: block;
  padding: 5px 7px;
  border-top: 1px solid #eadfce;
  background: #fff8ea;
  color: #8a5a2b;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 700;
  line-height: 1.3;
}

.gallery-note {
  margin: 0;
  padding: 7px 10px 12px;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.gallery-empty {
  margin: 0;
  padding: 20px 10px;
  color: #8aa4b4;
  font-size: 12px;
  text-align: center;
}

.gallery-box {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px 10px 40px;
  background: rgba(6, 8, 12, 0.94);
}

.gallery-box[hidden] {
  display: none;
}

.gallery-box img {
  max-width: 94vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 2px;
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

#gallery-cap {
  position: absolute;
  right: 10px;
  bottom: 12px;
  left: 10px;
  margin: 0;
  color: #e8eef4;
  font-size: 12px;
  text-align: center;
}

body.gallery-open {
  overflow: hidden;
}

/* ---------- 追杀一尾 ---------- */
.m6-kill {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.kill-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.kill-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.kill-head h2 .kill-green,
.kill-head h2 .kill-down {
  color: #0a9b3e;
}

.kill-head h2 .kill-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.kill-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kill-list {
  padding: 0;
  background: #fff;
}

.kill-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 4px 8px;
  border-bottom: 1px solid #eaf4fb;
  background: #f8fcff;
  white-space: nowrap;
  font-size: clamp(11px, 3.3vw, 14px);
}

.kill-row:nth-child(even) {
  background: #f1f9ff;
}

.kill-row:last-child {
  border-bottom: 0;
}

.kill-issue {
  flex: none;
  color: #1f6fb2;
  font-weight: 700;
}

.kill-label {
  flex: none;
  color: #222;
  font-weight: 600;
}

.kill-code {
  flex: none;
  color: #e60012;
  font-size: clamp(16px, 4.4vw, 20px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.kill-result {
  flex: none;
  margin-left: auto;
  color: #1f6fb2;
  font-size: clamp(10px, 3vw, 13px);
}

.kill-status {
  flex: none;
  color: #e60012;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 800;
}

.kill-status.is-miss {
  color: #0a9b3e;
}

.kill-note {
  margin: 0;
  padding: 7px 10px 12px;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 平特尾 ---------- */
.m6-pingte {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.pingte-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.pingte-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pingte-head h2 .pingte-green,
.pingte-head h2 .pingte-down {
  color: #0a9b3e;
}

.pingte-head h2 .pingte-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.pingte-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pingte-list {
  padding: 2px 0 4px;
  background: #fff;
}

.pingte-row {
  display: grid;
  grid-template-columns: max-content max-content 3em;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  padding: 3px 8px;
  border-bottom: 1px solid #f0f6fa;
  white-space: nowrap;
}

.pingte-row:last-child {
  border-bottom: 0;
}

.pingte-label {
  color: #0a8a3a;
  font-size: clamp(15px, 4.2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: right;
}

.pingte-code {
  padding: 0 2px;
  color: #e60012;
  font-size: clamp(17px, 4.6vw, 22px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
}

.pingte-code.is-hit {
  padding: 1px 3px;
  background: #fff200;
  box-shadow: none;
}

.pingte-note {
  margin: 0;
  padding: 7px 10px 12px;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 单双 + 二肖 ---------- */
.m6-parity {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.parity-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.parity-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.parity-head h2 .parity-green,
.parity-head h2 .parity-down {
  color: #0a9b3e;
}

.parity-head h2 .parity-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.parity-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.parity-list {
  padding: 0;
  background: #fff;
}

.parity-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 8px;
  border-bottom: 1px solid #eaf4fb;
  background: #fff;
  white-space: nowrap;
}

.parity-row:nth-child(even) {
  background: #f8fcff;
}

.parity-row:last-child {
  border-bottom: 0;
}

.parity-label {
  flex: none;
  color: #0a8a3a;
  font-size: clamp(13px, 3.7vw, 16px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.parity-issue {
  flex: none;
  color: #1f6fb2;
  font-size: clamp(9px, 2.6vw, 11px);
}

.parity-set {
  flex: none;
  color: #e60012;
  font-size: clamp(13px, 3.9vw, 17px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.parity-parity,
.parity-z {
  display: inline-block;
  padding: 0 1px;
  line-height: 1.2;
}

.parity-parity.is-hit,
.parity-z.is-hit {
  background: #fff200;
}

.parity-result {
  flex: none;
  margin-left: auto;
  color: #1f6fb2;
  font-size: clamp(9px, 2.8vw, 12px);
}

.parity-status {
  flex: none;
  color: #e60012;
  font-size: clamp(10px, 2.9vw, 12px);
  font-weight: 800;
}

.parity-status.is-miss {
  color: #0a9b3e;
}

.parity-note {
  margin: 0;
  padding: 7px 10px 12px;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 480px) {
  .parity-issue {
    display: none;
  }

  .parity-row {
    gap: 3px;
    padding: 4px 6px;
  }

  .parity-label {
    font-size: 12px;
  }

  .parity-set {
    font-size: 12.5px;
  }

  .parity-result {
    font-size: 9.5px;
  }

  .parity-status {
    font-size: 10px;
  }
}

/* ---------- 特围36码 ---------- */
.m6-special36 {
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid #a9d7ef;
}

.special36-head {
  padding: 8px 10px 5px;
  border-bottom: 1px solid #c6e6f6;
  background: linear-gradient(180deg, #ecfaff, #dcf2fc);
  text-align: center;
}

.special36-head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 5.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.special36-head h2 .special36-green,
.special36-head h2 .special36-down {
  color: #0a9b3e;
}

.special36-head h2 .special36-down {
  margin-left: 2px;
  font-family: Arial, sans-serif;
}

.special36-sub {
  margin: 2px 0 0;
  color: #4f7f97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.special36-list {
  padding: 0;
}

.special36-row {
  border-bottom: 1px solid #dcecf6;
  background: #fff;
}

.special36-row:nth-child(even) {
  background: #f8fcff;
}

.special36-row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 4px;
}

.special36-issue {
  color: #0a8a3a;
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 800;
}

.special36-count {
  color: #7e9aac;
  font-size: 10px;
}

.special36-result {
  margin-left: auto;
  color: #1f6fb2;
  font-size: clamp(10px, 3vw, 12px);
}

.special36-status {
  color: #e60012;
  font-size: clamp(11px, 3.1vw, 13px);
  font-weight: 800;
}

.special36-status.is-miss {
  color: #0a9b3e;
}

.special36-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  padding: 0 6px 6px;
}

.special36-chip {
  display: grid;
  place-items: center;
  height: clamp(22px, 6vw, 26px);
  border: 1px solid #d8e5ee;
  border-radius: 3px;
  background: #f8fbff;
  color: #244;
  font-size: clamp(9px, 2.7vw, 11px);
  font-weight: 700;
  line-height: 1;
}

.special36-chip.is-red {
  border-color: #f0c9c9;
  background: #fff2f2;
  color: #c0392b;
}

.special36-chip.is-blue {
  border-color: #c6dbf5;
  background: #eef5ff;
  color: #1f5fa8;
}

.special36-chip.is-green {
  border-color: #c5eccf;
  background: #effaf2;
  color: #0a8a3e;
}

.special36-chip.is-special {
  border-color: #e0c400;
  background: #fff200;
  color: #111;
  font-weight: 900;
}

.special36-note {
  margin: 0;
  padding: 7px 10px 12px;
  color: #7a96a8;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 动效 ---------- */
@keyframes ballIn {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .ball {
    animation: none;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 380px) {
  .m6-brand-text strong {
    font-size: 15.5px;
  }

  .m6-brand-text small {
    font-size: 9.5px;
  }

  .m6-emblem {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .m6-nav-badge {
    width: 36px;
    height: 34px;
  }

  .m6-slogan {
    font-size: 14px;
  }

  .collect-text {
    font-size: 11px;
  }

  .m6-countdown {
    font-size: 12px;
    padding: 2px 4px;
  }

  .result-issue {
    font-size: 12.5px;
  }

  .result-history {
    font-size: 11px;
  }

  .result-countdown {
    font-size: 13px;
  }

  .result-foot > span {
    font-size: 10px;
  }

  .pick-row {
    gap: 4px;
    padding: 3px 6px;
  }

  .pick-issue {
    width: 56px;
    font-size: 12px;
  }

  .pick-set {
    font-size: 16px;
  }

  .pick-result {
    width: 66px;
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .m6-brand-text small {
    display: none;
  }

  .collect-text .optional {
    display: none;
  }
}

/* ---------- 键盘焦点 ---------- */
:focus-visible {
  outline: 2px solid #0b6da8;
  outline-offset: 2px;
}
