:root {
  --primary: #3493ff;
  --primary-deep: #1d6fe8;
  --text: #222;
  --muted: #838fa0;
  --line: #eaecf0;
  --bg: #f3f6fb;
  --card: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.layout-pc {
  font-family: "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.layout-pc { min-height: 100vh; }
.pc-header { background: #fff; border-bottom: 1px solid #e8eef6; box-shadow: 0 1px #eef2f7; }
.pc-util {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 24px 0;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 12px;
}
.pc-util a, .pc-util button {
  border: 0;
  background: transparent;
  color: #667;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.pc-util a:hover, .pc-util button:hover { color: var(--primary-deep); }
.pc-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.pc-logo { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.pc-logo img { height: 48px; width: 48px; display: block; object-fit: cover; border-radius: 10px; }
.pc-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.pc-logo-text strong { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.pc-logo-text small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.pc-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; flex-wrap: wrap; position: relative; }
.pc-nav-item { position: relative; display: flex; align-items: stretch; height: 100%; }
.pc-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  font-size: 15px;
  color: #2c3a4d;
}
.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid;
  opacity: .55;
}
.pc-mega {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  z-index: 40;
  min-width: 720px;
  max-width: min(1120px, 90vw);
  padding: 20px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(43, 74, 111, .16);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 28px;
}
.pc-nav-item.mega:hover .pc-mega { display: grid; }
.pc-mega-col { min-width: 0; }
.pc-mega-head { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: #2b4a6f; }
.pc-mega-link { display: block; padding: 5px 0; font-size: 13px; color: #52637a; line-height: 1.4; }
.pc-mega-link:hover, .pc-mega-head:hover { color: var(--primary); }
.pc-nav-link.on {
  color: var(--primary-deep);
  font-weight: 700;
}
.pc-nav-link:hover { color: var(--primary-deep); }

.pc-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}
.pc-body-wide { grid-template-columns: 1fr; }
.pc-main, .pc-home { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pc-side-card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.pc-side-card h3 { margin: 0 0 12px; font-size: 15px; }
.side-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.side-item:last-of-type { border-bottom: none; }
.side-item strong { font-weight: 600; color: var(--text); }
.side-item span, .side-item .muted { color: var(--muted); font-size: 12px; }
.side-more { display: inline-block; margin-top: 8px; color: var(--primary); font-size: 13px; }
.side-empty { color: var(--muted); font-size: 13px; }

.banner-swipe { position: relative; overflow: hidden; border-radius: 12px; width: 100%; }
.banner-track { display: flex; width: 100%; transition: transform .35s ease; }
.banner-slide { flex: 0 0 100%; width: 100%; min-width: 0; max-width: 100%; }
.banner-frame { display: block; width: 100%; color: inherit; }
.banner-img {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 750 / 360;
  display: block;
  object-fit: cover;
  background: #d7e6f8;
}
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.banner-auto {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ffffff80;
  padding: 0;
  cursor: pointer;
}
.dot.on { background: #fff; width: 16px; border-radius: 4px; }

.hot-strip { background: #fff; padding: 24px 20px 12px; border-radius: 10px; }
.hot-head { margin: 0; font-size: 18px; }
.hot-row { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 24px 0 12px; }
.hot-item { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hot-item img, .hot-ico {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
}
.hot-ico { display: grid; place-items: center; color: #fff; font-weight: 800; background: #c5d4e8; }
.hot-name {
  width: 100%;
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.pc-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pc-block-head h1, .pc-block-head h2 { margin: 0; font-size: 1.15rem; }
.linkish { color: var(--primary); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pref-actions { display: flex; gap: 12px; }
.pc-pref-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pc-pref-editor[hidden] { display: none; }
.pc-pref-editor label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #44566e; }
.pc-pref-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pc-pref-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.pc-pref-table .col-name { width: 16%; }
.pc-pref-table .col-next { width: 140px; }
.pc-pref-table .col-count, .pc-pref-table .col-act { width: 110px; }
.pc-pref-table th, .pc-pref-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.pc-pref-table th { background: #f7fafc; color: var(--muted); font-weight: 600; }
.pc-pref-table tbody tr:last-child td { border-bottom: 0; }
.pref-empty { text-align: center; color: var(--muted); padding: 24px; font-size: 14px; }
.pc-group-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.pill.on, .pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.pc-home #lotteryGrid, .pc-latest {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pc-home .lottery-card, .pc-card {
  height: auto;
  min-height: 0;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 14px 16px 10px;
  box-shadow: none;
}
.pc-home .lottery-card:hover { transform: none; border-color: var(--primary); }
.pc-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid #f0f3f8;
  font-size: 13px;
  color: var(--primary-deep);
}
.pc-card-tools a:hover { text-decoration: underline; }

.pc-dock {
  position: fixed;
  right: 12px;
  top: 50%;
  z-index: 50;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: 44px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  box-shadow: 0 6px 20px #1b2a4a1a;
  overflow: hidden;
}
.pc-dock-btn,
.pc-dock a, .pc-dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 52px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  color: #2c3a4d;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  line-height: 1.25;
}
.pc-dock a:last-child, .pc-dock button:last-child { border-bottom: 0; }
.pc-dock a:hover, .pc-dock button:hover { color: var(--primary-deep); background: #f5f9ff; }

.pc-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.pc-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
.pc-footer a { color: var(--primary); }

.h5-topbar, .bottom-nav, .drawer-mask { display: none; }
.chev { display: none; }
.next-lab, .term-line { display: none; }
@media (min-width: 768px) {
  .next-row { display: contents; }
}

@media (max-width: 767px) {
  .pc-header, .pc-util, .pc-dock, .pc-side, .pc-footer, .pref-section { display: none !important; }
  .h5-topbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .h5-topbar-inner {
    display: grid;
    grid-template-columns: 1.17333rem 1fr 1.17333rem;
    align-items: center;
    min-height: 1.17333rem;
    padding: 0 0.213333rem;
  }
  .h5-topbar-btn {
    width: 1.06667rem;
    height: 1.06667rem;
    display: grid;
    place-items: center;
    color: #5a6a7a;
    font-size: 0.586667rem;
    line-height: 1;
    background: none;
    border: 0;
    padding: 0;
  }
  .hamburger {
    width: 0.48rem;
    height: 0.0533333rem;
    background: #5a6a7a;
    box-shadow: 0 -0.16rem #5a6a7a, 0 0.16rem #5a6a7a;
    display: block;
  }
  .h5-topbar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.213333rem;
  }
  .h5-topbar-logo img { height: 0.853333rem; width: 0.853333rem; display: block; object-fit: cover; border-radius: 0.213333rem; }
  .h5-topbar-logo .pc-logo-text strong { font-size: 0.426667rem; }
  .h5-topbar-logo .pc-logo-text small { font-size: 0.266667rem; }
  .h5-topbar-info { color: var(--primary); font-size: 0.533333rem; justify-self: end; }
  .h5-topbar-title {
    margin: 0;
    text-align: center;
    font-size: 0.453333rem;
    font-weight: 700;
    color: #222;
  }
  .topbar-game { background: #e8f4ff; border-bottom-color: #d5e8f8; }
  .back-ico {
    width: 0.293333rem;
    height: 0.293333rem;
    border-left: 0.0533333rem solid #222;
    border-bottom: 0.0533333rem solid #222;
    transform: rotate(45deg);
    margin-left: 0.106667rem;
  }
  .drawer-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: #00000059;
  }
  .drawer-mask[hidden] { display: none !important; }
  .drawer {
    width: 68%;
    max-width: 7.46667rem;
    height: 100%;
    background: #fff;
    padding: 0.48rem 0.373333rem;
    box-shadow: 0.106667rem 0 0.426667rem #0001;
  }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.32rem; }
  .drawer-close { border: 0; background: none; font-size: 0.586667rem; color: var(--muted); }
  .drawer-nav { display: flex; flex-direction: column; }
  .drawer-link { padding: 0.32rem 0; border-bottom: 1px solid var(--line); font-size: 0.426667rem; }

  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 0.106667rem 0 env(safe-area-inset-bottom, 0);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.0533333rem;
    padding: 0.106667rem 0 0.16rem;
    font-size: 0.293333rem;
    color: var(--muted);
  }
  .bottom-nav-item.on { color: var(--primary); }
  .bottom-nav-icon { width: 0.586667rem; height: 0.586667rem; display: grid; place-items: center; }
  .bottom-nav-icon svg { width: 0.533333rem; height: 0.533333rem; display: block; }
  .bottom-nav-item.fab .bottom-nav-icon {
    width: 0.96rem;
    height: 0.96rem;
    margin-top: -0.266667rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
  }

  body.layout-pc { background: #f5f8fc; padding-bottom: calc(1.49333rem + env(safe-area-inset-bottom, 0px)); }
  .pc-body { display: block; max-width: none; padding: 0; gap: 0; }
  .pc-main, .pc-home { gap: 0; }
  .pc-home .banner-swipe {
    border-radius: 0;
    margin: 0;
  }
  .banner-frame { padding: 0 !important; }
  .hot-strip {
    border-radius: 0;
    padding: 0;
    margin: 0;
  }
  .hot-head { font-size: 0.426667rem; padding: 0.32rem 0.32rem 0; }
  .hot-row {
    flex-wrap: nowrap;
    gap: 0.48rem;
    overflow-x: auto;
    padding: 0.32rem 0.32rem 0.373333rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .hot-item { flex: 0 0 2.02667rem; width: 2.02667rem; gap: 0.133333rem; }
  .hot-item img, .hot-ico { width: 1.65333rem; height: 1.65333rem; border-radius: 50%; }
  .hot-name { font-size: 0.293333rem; font-weight: 400; line-height: 1.3; }

  .pc-block-head { margin: 0; }
  .pc-block-head h1, .pc-block-head h2 { display: none; }
  .group-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
  }
  .group-tab, .pill {
    flex: 1 0 auto;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0.266667rem 0.266667rem 0.213333rem !important;
    font-size: 0.373333rem;
    color: var(--text) !important;
    position: relative;
    white-space: nowrap;
  }
  .group-tab .chev { display: inline; font-size: 0.293333rem; color: var(--muted); margin-left: 0.0533333rem; }
  .group-tab.on, .pill.on, .pill.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: transparent !important;
  }
  .group-tab.on::after, .pill.on::after, .pill.active::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 0.08rem;
    border-radius: 0.0533333rem;
    background: var(--primary);
  }

  .pc-home #lotteryGrid, .pc-cards, .lottery-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    background: #fff;
  }
  .layout-pc .pc-card, .layout-pc .lottery-card, .game-card {
    display: block;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0.266667rem 0.32rem 0.213333rem;
    box-shadow: none;
    height: auto;
  }
  .layout-pc .pc-card.is-hidden,
  .layout-pc .lottery-card.is-hidden,
  .game-card.is-hidden {
    display: none !important;
  }
  .next-lab, .term-line { display: block; }
  .next-row { display: flex; align-items: center; justify-content: flex-end; gap: 0.08rem; }
  .next-lab { font-size: 0.24rem; color: var(--muted); }
  .opens { display: block; font-size: 0.24rem; color: var(--muted); line-height: 1.2; white-space: nowrap; }
  .issue-pc { display: none; }
  .pc-card-title strong.title {
    font-size: 0.346667rem;
    max-width: 2.93333rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pc-card-head { gap: 0.213333rem; align-items: flex-start; }
  .pc-card-title { gap: 0.213333rem; flex: 1; min-width: 0; }
  .info { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
  .pc-card .game-icon.sm { width: 0.986667rem; height: 0.986667rem; }
  .lottery-info, .pc-card-body { padding: 0.16rem 0 0.106667rem 1.2rem; }
  .term-line { margin: 0 0 0.106667rem; font-size: 0.266667rem; color: var(--muted); }
  .pc-card-tools { display: none; }
  .pc-card-body .balls { gap: 0.08rem; }
  .pc-card-body .ball { width: 0.586667rem; height: 0.586667rem; min-width: 0.586667rem; font-size: 0.266667rem; }
  .attr-row { margin-top: 0.106667rem; gap: 0.16rem; }
  .attr { background: none; padding: 0; font-size: 0.293333rem; }
  .count-boxes { gap: 0.0533333rem; }
  .count-box { min-width: 0.533333rem; height: 0.426667rem; font-size: 0.266667rem; padding: 0 0.08rem; }
  .count-wait { font-size: 0.266667rem; font-weight: 600; }
  .more-links { display: flex; flex-direction: column; }
  .more-links a { padding: 0.32rem 0; border-bottom: 1px solid var(--line); font-size: 0.426667rem; }

  .pc-hero { margin: 0.213333rem; padding: 0.373333rem; }
  .pc-game-panel { margin: 0.213333rem; border-radius: 0.266667rem; }
}
.pc-pref-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pc-pref-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-pref-table th, .pc-pref-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.pc-pref-table th { background: #f7fafc; color: var(--muted); font-weight: 600; }
.pc-empty { margin: 0; padding: 28px 14px; text-align: center; color: var(--muted); }

.hall-tabs { margin-bottom: 12px; }
.layout-pc .category-tabs,
.pc-group-pills.category-tabs {
  display: flex;
  flex-wrap: wrap;
  background: transparent;
  gap: 8px;
  grid-template-columns: none;
}
.layout-pc .category-tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 6px 14px;
  font-size: 13px;
  width: auto;
}
.layout-pc .category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: none;
}

.layout-pc .lottery-card {
  position: relative;
  height: auto;
  min-height: 0;
}
.layout-pc .countdown-box {
  position: static;
  max-width: none;
}

.page-loader { background: var(--bg); }
.fb-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0f141966;
  display: none;
  place-items: center;
  padding: 24px;
}
.fb-mask.on { display: grid; }
.fb-box {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px 22px;
}
.fb-box header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fb-box h2 { margin: 0; font-size: 18px; }
.fb-x { border: 0; background: transparent; cursor: pointer; }
.fb-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 120px;
  font: inherit;
}
.fb-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.fb-actions button {
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
}
.fb-actions .pri { background: var(--primary-deep); color: #fff; }
.fb-actions .ghost { background: #f3f5f8; }

.detail-wrap { background: #fff; border: 1px solid #e6edf5; border-radius: 12px; padding: 20px; }
.detail-back { color: var(--primary-deep); font-size: 14px; font-weight: 600; }

@media (max-width: 960px) {
  .pc-body { grid-template-columns: 1fr; padding: 12px; }
  .pc-side, .pc-dock, .pc-util { display: none; }
  .pc-header-inner { height: auto; padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .pc-nav { width: 100%; gap: 0; }
  .pc-nav-link { padding: 10px 10px; font-size: 13px; height: auto; }
  .banner-frame { padding: 24px 18px; }
  .banner-frame h2 { font-size: 24px; }
  .pc-hero { flex-wrap: wrap; padding: 16px; }
  .pc-hero-count { margin-left: 0; align-items: flex-start; width: 100%; }
  .pc-live-wrap { max-height: none; }
}

.game-icon {
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
}
.game-icon.sm { width: 36px; height: 36px; font-size: 14px; }
.game-icon.lg { width: 80px; height: 80px; font-size: 28px; }
.game-icon.round { border-radius: 50%; }
.game-icon-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.game-icon-letter { line-height: 1.05; text-align: center; font-size: 11px; font-weight: 800; white-space: pre-line; }

.count-boxes { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.count-unit { display: contents; }
.count-box {
  min-width: 26px;
  height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font: 700 13px ui-monospace, D-DIN, monospace;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.count-colon { color: var(--primary); font-weight: 700; font-size: 13px; line-height: 1; margin: 0 2px; }
.count-wait { color: var(--primary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.count-boxes.soft .count-box {
  background: #d7ebff;
  color: #3493ff;
  font: 700 14px "PingFang SC", ui-sans-serif, system-ui, sans-serif;
  min-width: 26px;
  height: 24px;
  border-radius: 6px;
}
.count-boxes.soft .count-colon { color: #3493ff; font-weight: 400; }
.count-boxes.labeled { gap: 10px; }
.count-boxes.labeled .count-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.count-boxes.labeled .count-box { min-width: 40px; height: 36px; font-size: 20px; border-radius: 6px; }
.count-boxes.labeled.soft .count-box { min-width: 40px; height: 36px; font-size: 20px; }
.count-boxes.labeled small { font-size: 12px; color: #8590a2; line-height: 1; }

.ball {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #252b34;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: inset -2px -3px 5px rgba(0,0,0,.16), inset 2px 2px 4px rgba(255,255,255,.45);
}
.face-orb {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.92) 0 14%, rgba(255,255,255,.18) 34%, transparent 52%),
    radial-gradient(circle at 50% 118%, rgba(0,0,0,.2), transparent 46%),
    linear-gradient(180deg, #fff4b0, #e8b423);
}
.face-orb.ball-red, .face-orb.ball-pc {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.75) 0 14%, transparent 48%),
    linear-gradient(180deg, #ff8282, #e10600);
}
.face-orb.ball-blue {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8) 0 14%, transparent 48%),
    linear-gradient(180deg, #a3d3ff, #003caf);
}
.face-orb.ball-green, .face-orb.ball-pc-sum {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8) 0 14%, transparent 48%),
    linear-gradient(180deg, #a3ffac, #007929);
}
.face-orb.ball-yellow {
  color: #252b34;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.92) 0 14%, transparent 48%),
    linear-gradient(180deg, #fff9a3, #f7d021);
}
.face-orb.ball-orange {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.75) 0 14%, transparent 48%),
    linear-gradient(180deg, #ffdabd, #f47513);
}
.face-orb.ball-violet, .face-orb.ball-indigo {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.75) 0 14%, transparent 48%),
    linear-gradient(180deg, #bd89ff, #4f00b3);
}
.face-orb.ball-cyan {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8) 0 14%, transparent 48%),
    linear-gradient(180deg, #88e8ff, #0891b2);
}
.face-orb.ball-gray {
  color: #252b34;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0 14%, transparent 48%),
    linear-gradient(180deg, #f1f0e9, #6a6a63);
}
.face-orb.ball-brown {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.7) 0 14%, transparent 48%),
    linear-gradient(180deg, #dac5c5, #873333);
}
.face-orb.ball-keno {
  color: #252b34;
}
.face-orb.ball-keno-super {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8) 0 14%, transparent 48%),
    linear-gradient(180deg, #fb6faa, #c2185b);
}
.face-sym {
  font: 700 16px "Microsoft YaHei", sans-serif;
  color: #666;
  line-height: 1;
  flex-shrink: 0;
  font-style: normal;
}
.face-pk {
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.face-pk[data-dz="1"] { background: linear-gradient(135deg,#fff9a3,#f7d021); color: #252b34; }
.face-pk[data-dz="2"] { background: linear-gradient(135deg,#a3d3ff,#003caf); }
.face-pk[data-dz="3"] { background: linear-gradient(135deg,#6b6b6b,#2a2a2a); }
.face-pk[data-dz="4"] { background: linear-gradient(135deg,#ffdabd,#f47513); }
.face-pk[data-dz="5"] { background: linear-gradient(135deg,#88e8ff,#17b8c4); color: #252b34; }
.face-pk[data-dz="6"] { background: linear-gradient(135deg,#bd89ff,#4f00b3); }
.face-pk[data-dz="7"] { background: linear-gradient(135deg,#d8d8d8,#6a6a63); color: #252b34; }
.face-pk[data-dz="8"] { background: linear-gradient(135deg,#ff8282,#c40000); }
.face-pk[data-dz="9"] { background: linear-gradient(135deg,#c9a07a,#780b00); }
.face-pk[data-dz="10"] { background: linear-gradient(135deg,#a3ffac,#07bf00); }
.face-pk[data-dz="--"], .face-pk:not([data-dz]) { background: linear-gradient(135deg,#f1f0e9,#94a3b8); color: #252b34; }
.ball.face-img {
  border-radius: 6px;
  box-shadow: none;
  color: transparent !important;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  text-shadow: none;
}
.ball.face-img[data-dz="1"] { background-image: url(/static/img/pk/1.webp?v=pk1); }
.ball.face-img[data-dz="2"] { background-image: url(/static/img/pk/2.webp?v=pk1); }
.ball.face-img[data-dz="3"] { background-image: url(/static/img/pk/3.webp?v=pk1); }
.ball.face-img[data-dz="4"] { background-image: url(/static/img/pk/4.webp?v=pk1); }
.ball.face-img[data-dz="5"] { background-image: url(/static/img/pk/5.webp?v=pk1); }
.ball.face-img[data-dz="6"] { background-image: url(/static/img/pk/6.webp?v=pk1); }
.ball.face-img[data-dz="7"] { background-image: url(/static/img/pk/7.webp?v=pk1); }
.ball.face-img[data-dz="8"] { background-image: url(/static/img/pk/8.webp?v=pk1); }
.ball.face-img[data-dz="9"] { background-image: url(/static/img/pk/9.webp?v=pk1); }
.ball.face-img[data-dz="10"] { background-image: url(/static/img/pk/10.webp?v=pk1); }

.balls { --ball-gap: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--ball-gap); }
.ball-stack { display: contents; }
.balls.has-wave .ball-stack { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.wave { font-size: 11px; line-height: 1; font-weight: 600; font-style: normal; }
.wave.zodiac { display: flex; flex-direction: column; align-items: center; gap: 1px; font-weight: 500; color: #626f86; }
.wave[data-tone=red] { color: #fc5a61; }
.wave[data-tone=blue] { color: #4a8de8; }
.wave[data-tone=green] { color: #3db86a; }
.balls.wrap { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 6px; }
.ball-row { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--ball-gap); }

.pc-cards { display: flex; flex-direction: column; gap: 12px; }
.layout-pc .pc-card,
.layout-pc .lottery-card {
  display: block;
  height: auto;
  min-height: 0;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 14px 16px 10px;
  box-shadow: none;
  text-decoration: none;
  cursor: default;
  transform: none;
}
.layout-pc .pc-card.is-hidden,
.layout-pc .lottery-card.is-hidden,
.game-card.is-hidden {
  display: none !important;
}
.layout-pc .pc-card:hover,
.layout-pc .lottery-card:hover {
  transform: none;
  border-color: var(--primary);
  box-shadow: none;
}
.pc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-card-title { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.pc-card-title strong { display: block; font-size: 16px; }
.pc-card-title p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.pc-card-body { display: block; padding: 12px 0 8px; color: inherit; }
.attr-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.attr { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: #f4f8fd; color: #3a4d66; }
.attr[data-tone=red], .attr[data-tone=hot] { color: #fc5a61; }
.attr[data-tone=blue], .attr[data-tone=cold] { color: #3493ff; }
.pc-card-tools { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; border-top: 1px solid #f0f3f8; }
.pc-card-tools a { font-size: 13px; color: #1d6fe8; }
.pc-card-tools a:hover { text-decoration: underline; }
.layout-pc .lottery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .layout-pc .lottery-grid { grid-template-columns: 1fr; }
}

.pc-ft-jg-row { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.pc-ft-hero-jg { display: flex; align-items: center; gap: 6px; color: #626f86; font-size: 13px; }
.pc-ft-hero-jg .yuan { width: 8px; height: 8px; border-radius: 50%; background: #ff8411; }
.pc-ft-hero-jg .ft-tie { font-style: normal; color: #ff8411; font-weight: 700; }
.bingo-ft-super { display: none; }
.bingo-h5-tools { display: none; }
.bingo-super-cell { text-align: center; }
.bingo-super-cell .ball-stack { display: inline-flex; }
.h5-draw [hidden] { display: none !important; }

.pc-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px #a4b3cd1f;
}
.pc-hero-main { flex: 1 1 0%; min-width: 0; }
.pc-hero-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.pc-hero-title h1 { margin: 0; font-size: 20px; font-weight: 700; color: #222; line-height: 1.2; }
.pc-hero-meta { margin: 0; font-size: 14px; color: #626f86; }
.pc-hero-meta em { font-style: normal; color: #3493ff; padding: 0 2px; }
.pc-hero-balls { margin-top: 12px; }
.pc-hero-balls .ball { min-width: 36px; width: 36px; height: 36px; font-size: 15px; }
.pc-hero-balls.wrap20 .balls.wrap, .pc-hero-balls.wrap20 .ball-row { gap: 6px; }
.pc-hero-balls.wrap20 .ball { min-width: 32px; width: 32px; height: 32px; font-size: 13px; }
.pc-hero-balls .face-sym { font-size: 18px; color: #666; }
.pc-hero-count { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.pc-hero-hint { margin: 0; font-size: 13px; color: #8590a2; }
.pc-hero-actions { display: flex; align-items: center; gap: 8px; }
.pref-btn {
  appearance: none;
  border: 1px solid #3493ff;
  background: #fff;
  color: #3493ff;
  border-radius: 6px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}
.pref-btn.on { background: #3493ff; color: #fff; }

.pc-game-panel {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  overflow: hidden;
}
.pc-tools { display: flex; flex-wrap: wrap; gap: 0; padding: 0 8px; border-bottom: 1px solid #eef2f7; }
.pc-tool {
  appearance: none;
  border: 0;
  background: none;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  color: #626f86;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.pc-tool.on { color: #222; font-weight: 600; }
.pc-tool.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: #3493ff;
  transform: translate(-50%);
}
.toolbar.desktop {
  margin: 0;
  padding: 12px 16px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pc-toolbar-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; min-width: 0; }
.pc-toolbar-left strong { font-size: 18px; font-weight: 700; color: #222; }
.pc-toolbar-tool { color: #222; font-size: 16px; font-weight: 400; }
.pc-extra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 20px;
  border: 1px solid #dcdfe4;
  border-radius: 4px;
  background: #fff;
  color: #626f86;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.pc-extra:hover { color: #3493ff; border-color: #3493ff; }
.pc-date-ph, .pc-date-dash { display: none; }
.day-pick { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.day-pick a, .day-pick > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 72px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #606266;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  line-height: 1;
  box-sizing: border-box;
}
.day-pick a.on, .day-pick > button.on { color: #fff; background: #3493ff; border-color: #3493ff; }
.pc-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
}
.pc-date-range input[type=date] {
  border: 0;
  background: transparent;
  color: #606266;
  font: inherit;
  font-size: 13px;
}
.pc-date-range button {
  border: 0;
  background: transparent;
  color: #3493ff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.pc-ft-dist {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  font-size: 14px;
  color: #626f86;
}
.pc-ft-dist button {
  appearance: none;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 13px;
  line-height: 26px;
  cursor: pointer;
}
.pc-ft-dist button.on { color: #fff; background: #3493ff; border-color: #3493ff; }
.pc-ft-dist .pc-ft-reset { margin-left: 4px; }

.pc-live { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
.pc-live-wrap { max-height: 70vh; overflow: auto; scrollbar-gutter: stable; }
.pc-live-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pc-live-table th, .pc-live-table td {
  border: 1px solid #d6def2;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}
.pc-live-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 50px;
  background: #f5f9ff;
  color: #626f86;
  font-size: 16px;
  font-weight: 700;
}
.pc-live-table td {
  height: 50px;
  font-size: 14px;
  font-weight: 400;
  color: #626f86;
  background: #fff;
}
.pc-live-table tbody tr:nth-child(even) td { background: #f5faff; }
.pc-live-table .pc-nums .ball { min-width: 30px; width: 30px; max-width: 30px; height: 30px; font-size: 14px; }
.pc-live.kind-race .col-time { width: 200px; }
.pc-live.kind-race .col-per { width: 110px; }
.pc-live.kind-race .col-sum { width: 50px; }
.pc-live.kind-race .col-lh { width: 28px; }
.pc-live.kind-race .pc-nums .balls {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto;
}
.pc-live.kind-race .pc-nums .ball { min-width: 32px; width: 32px; max-width: 32px; height: 32px; }
.pc-live.kind-race td.stat-split { font-size: 14px; font-weight: 400; }
.pc-live-table td.stat-split[data-tone=red] { color: #fc5a61; }
.pc-live-table td.stat-split[data-tone=blue] { color: #3493ff; }
.pc-head-btns { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pc-head-btn {
  appearance: none;
  height: 30px;
  padding: 0 20px;
  border: 1px solid #dcdfe4;
  background: #fff;
  color: #838fa0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  line-height: 28px;
}
.pc-head-btn.on { color: #3493ff; border-color: #3493ff; }
.pc-live.kind-bingo .pc-nums .balls.wrap { flex-flow: column; align-items: center; width: max-content; margin-inline: auto; gap: 4px; }
/* 只改台湾宾果：两行左对齐，第二行 11 颗（含超级号）比第一行多探出一颗。 */
.pc-live.kind-bingo.is-twbingo .pc-nums .balls.wrap { align-items: flex-start; }
.pc-live.kind-bingo.is-twbingo .pc-nums .ball-row { justify-content: flex-start; gap: 5px; }
.pc-live.kind-bingo.is-twbingo .pc-nums .ball { min-width: 32px; width: 32px; max-width: 32px; height: 32px; font-size: 14px; }
.pc-live.kind-bingo .col-bingo-time { width: 15.4%; }
.pc-live.kind-bingo .col-bingo-per { width: 6.4%; }
.pc-live.kind-bingo .col-bingo-nums { width: 46.1%; }
.pc-live.kind-bingo .col-bingo-stat { width: 4.2%; }
.pc-live.kind-bingo .col-bingo-more { width: 3.9%; }
.pc-live.kind-bingo .col-bingo-combo { width: 7.7%; }
/* 台湾宾果期数列固定 77px，多出来的宽度只给号码列，避免宽屏把期数撑空。 */
.pc-live.kind-bingo.is-twbingo .col-bingo-time { width: 185px; }
.pc-live.kind-bingo.is-twbingo .col-bingo-per { width: 77px; }
.pc-live.kind-bingo.is-twbingo .col-bingo-nums { width: 100%; }
.pc-live.kind-bingo.is-twbingo .col-bingo-stat { width: 50px; }
.pc-live.kind-bingo.is-twbingo .col-bingo-more { width: 47px; }
.pc-live.kind-bingo.is-twbingo .col-bingo-combo { width: 93px; }
.pc-live.kind-bingo .pc-nums { overflow: hidden; }
.pc-live.kind-bingo td { height: 82px; }
.pc-live.kind-fantan.is-ft-combo td { height: 56px; }
.pc-live.kind-fantan.is-ft-combo .col-time { width: 168px; }
.pc-live.kind-fantan.is-ft-combo .pc-nums .balls { justify-content: center; gap: 6px; }
.pc-live.kind-fantan.is-ft-combo .pc-nums .ball { min-width: 32px; width: 32px; max-width: 32px; height: 32px; font-size: 14px; }
.pc-live.kind-fantan.is-ft-all td { height: 72px; }
.pc-live.kind-fantan .pc-nums { overflow: hidden; }
.pc-live.kind-fantan .pc-nums .balls:not(.wrap) {
  flex-wrap: wrap;
  justify-content: center;
  width: 132px;
  max-width: 100%;
  margin: 0 auto;
  gap: 3px;
}
.pc-live.kind-fantan.is-ft-combo .pc-nums .balls:not(.wrap) { width: auto; flex-wrap: nowrap; }
.pc-live.kind-fantan.is-ft-all .pc-nums .balls:not(.wrap) .ball,
.pc-live.kind-fantan.is-ft-all .pc-nums .ball {
  min-width: 22px;
  width: 22px;
  max-width: 22px;
  height: 22px;
  font-size: 11px;
}
.pc-live.kind-fantan.is-ft-combo .pc-ft-pair,
.pc-live.kind-fantan.is-ft-all .pc-ft-pair {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 4px;
}
.pc-live.kind-fantan .pc-ft-car { display: flex; align-items: center; justify-content: center; }
.pc-live.kind-fantan .pc-ft-car .ball { min-width: 26px; width: 26px; max-width: 26px; height: 26px; border-radius: 4px; }
.pc-live.kind-fantan .pc-ft-pair i {
  flex: 1 1 0%;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.pc-live.kind-fantan .pc-ft-pair i[data-tone=red] { color: #fc5a61; }
.pc-live.kind-fantan .pc-ft-pair i[data-tone=blue] { color: #3493ff; }
.pc-live-table tr.is-dim { opacity: .22; }
.pc-live.has-wave td { height: 64px; }
.pc-live-table .stat-cell[data-tone=red], .pc-live-table .stat-cell.stat-hot { color: #fc5a61; }
.pc-live-table .stat-cell[data-tone=blue], .pc-live-table .stat-cell.stat-cold { color: #3493ff; }

.layout-pc .countdown-box { display: none; }
.layout-pc .lottery-card .balls-row { display: none; }
.ball-order-tabs { display: flex; gap: 8px; margin: 10px 0 0; }
.ball-order-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.ball-order-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.history-tags { display: none; }

.layout-pc .pc-home .lottery-icon { display: none; }
.pc-home #lotteryGrid { display: flex; flex-direction: column; gap: 12px; }

.pc-tools { flex-wrap: wrap; }
.analyze-pc { padding-bottom: 16px; background: #fff; }
.analyze-pc .pills { display: flex; gap: 8px; padding: 12px 16px 0; }
.analyze-pc .pills button {
  appearance: none;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  border-radius: 4px;
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  cursor: pointer;
}
.analyze-pc .pills button.on { background: #3493ff; border-color: #3493ff; color: #fff; }
.chk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px 0; font-size: 14px; color: #626f86; }
.chk {
  appearance: none;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  border-radius: 4px;
  height: 28px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
}
.chk.on { background: #3493ff; border-color: #3493ff; color: #fff; }
.luzhu-card { margin: 12px 16px 16px; border: 1px solid #d6def2; border-radius: 4px; overflow: hidden; background: #fff; }
.luzhu-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px 0 16px;
  font-size: 14px;
  color: #626f86;
  background: #f5f9ff;
  border-bottom: 1px solid #d6def2;
}
.luzhu-card em { margin-left: 4px; font-style: normal; font-weight: 400; color: #3493ff; }
.luzhu { display: flex; height: 192px; overflow-x: auto; background: #fff; scrollbar-width: none; }
.luzhu::-webkit-scrollbar { display: none; }
.luzhu-col {
  flex: 0 0 24px;
  width: 24px;
  height: 100%;
  border-left: 1px solid #d6def2;
  color: #fc5a61;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  word-break: break-all;
}
.luzhu-col:first-child { border-left: 0; }
.luzhu-col[data-tone=blue] { background: #f5f9ff; color: #3493ff; }
.analyze-empty { padding: 24px 16px; color: #8590a2; }
.table-wrap { overflow: auto; margin: 12px; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #626f86; }
.grid-table th, .grid-table td { border: 1px solid #d6def2; padding: 8px 6px; text-align: center; white-space: nowrap; }
.grid-table th { background: #f5f9ff; }
.grid-table td[data-tone=red] { color: #fc5a61; }
.grid-table td[data-tone=blue] { color: #3493ff; }
.grid-table tr.is-long td { font-weight: 700; }

@media (max-width: 767px) {
  .bingo-h5-tools { display: block; background: #fff; padding: 0.213333rem 0.213333rem 0; }
  .bingo-h5-tools .filter-tabs { display: flex !important; gap: 0.213333rem; padding: 0 0 0.213333rem; }
  .bingo-h5-picks { display: flex; gap: 0.16rem; padding: 0 0 0.213333rem; }
  .bingo-h5-picks button {
    flex: 1;
    height: 0.746667rem;
    border: 1px solid #d6def2;
    border-radius: 0.106667rem;
    background: #fff;
    color: #626f86;
    font-size: 0.346667rem;
  }
  .bingo-h5-picks button.on { background: #3493ff; border-color: #3493ff; color: #fff; }
  .bingo-ft-hero { display: flex; align-items: center; gap: 0.213333rem; }
  .bingo-ft-super {
    display: flex;
    align-items: center;
    gap: 0.106667rem;
    flex: 0 0 auto;
  }
  .bingo-ft-super-lab {
    font-size: 0.24rem;
    line-height: 1;
    letter-spacing: 0;
    color: #9aa6b8;
  }
  .pc-hero-balls.is-bingo-ft .balls.wrap { flex-wrap: wrap !important; overflow: visible !important; }
  .pc-hero-balls.is-bingo-ft .ball-row { display: flex; gap: 0.08rem; }
  .h5-draw.is-bingo-ft .draw-head,
  .h5-draw.is-bingo-ft .draw-tr {
    grid-template-columns: 1.12rem 1.22667rem minmax(0, 1fr) 0.96rem;
  }
  .h5-draw.is-bingo-ft.is-road .draw-head,
  .h5-draw.is-bingo-ft.is-road .draw-tr {
    grid-template-columns: 1.12rem 1.38667rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .h5-draw.is-bingo-ft.is-single-road.is-road .draw-head,
  .h5-draw.is-bingo-ft.is-single-road.is-road .draw-tr {
    grid-template-columns: 1.12rem 1.38667rem minmax(0, 1fr) minmax(0, 1fr);
  }
  .h5-draw.is-bingo-ft .draw-head {
    background: #f5f9ff;
    border-top: 1px solid #d6def2;
    font-size: 0.32rem;
    font-weight: 400;
    color: #626f86;
  }
  .h5-draw.is-bingo-ft .draw-head > span,
  .h5-draw.is-bingo-ft .draw-tr > time,
  .h5-draw.is-bingo-ft .draw-tr > .per,
  .h5-draw.is-bingo-ft .draw-tr > .h5-draw-nums,
  .h5-draw.is-bingo-ft .draw-tr > .h5-super,
  .h5-draw.is-bingo-ft .draw-tr > .ft-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.38667rem;
    padding: 0;
    border-right: 1px solid #d6def2;
    border-bottom: 1px solid #d6def2;
    border-left: 0;
    overflow: hidden;
    box-sizing: border-box;
  }
  .h5-draw.is-bingo-ft.is-road .draw-head > span,
  .h5-draw.is-bingo-ft.is-road .draw-tr > time,
  .h5-draw.is-bingo-ft.is-road .draw-tr > .per,
  .h5-draw.is-bingo-ft.is-road .draw-tr > .ft-cell {
    min-height: 1.2rem;
  }
  .h5-draw.is-bingo-ft .draw-head > span:first-child,
  .h5-draw.is-bingo-ft .draw-tr > time {
    border-left: 1px solid #d6def2;
  }
  .h5-draw.is-bingo-ft .draw-head > span[data-bingo-head="super"] {
    font-size: 0.32rem;
    line-height: 1.15;
    white-space: normal;
  }
  .h5-draw.is-bingo-ft .h5-draw-nums .balls.wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.0533333rem !important;
    width: 100%;
  }
  .h5-draw.is-bingo-ft .ball-row { display: flex; justify-content: center; gap: 0.0533333rem; }
  .h5-draw.is-bingo-ft .h5-draw-nums .ball {
    flex: 0 0 0.533333rem !important;
    width: 0.533333rem !important;
    max-width: 0.533333rem !important;
    height: 0.533333rem !important;
    font-size: 0.24rem !important;
    font-weight: 700;
  }
  .h5-draw.is-bingo-ft .h5-super .ball {
    flex: 0 0 0.48rem !important;
    width: 0.48rem !important;
    min-width: 0.48rem !important;
    max-width: 0.48rem !important;
    height: 0.48rem !important;
    font-size: 0.213333rem !important;
    font-weight: 700;
  }
  .h5-draw.is-bingo-ft .ft-jg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    color: #8590a2;
    font-size: 0.293333rem;
    font-weight: 400;
    line-height: 1;
  }
  .h5-draw.is-bingo-ft .ft-jg b {
    color: #3493ff;
    font-size: 0.373333rem;
    font-weight: 700;
  }
  .h5-draw.is-bingo-ft .ft-jg i {
    font-style: normal;
    font-size: 0.293333rem;
    font-weight: 700;
  }
  .h5-draw.is-bingo-ft .ft-jg i[data-tone="red"] { color: #fc5a61; }
  .h5-draw.is-bingo-ft .ft-jg i[data-tone="blue"] { color: #3493ff; }
  .h5-draw.is-bingo-ft .draw-tr.is-dim { opacity: .22; }
}
.hot-bars { padding: 16px 20px 24px; }
.hot-bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; }
.hot-bar-row b { width: 32px; text-align: center; }
.hot-bar-row .bar { height: 10px; background: #3493ff; border-radius: 4px; min-width: 8px; }
.hot-bar-row i { font-style: normal; color: #626f86; width: 36px; }

@media (max-width: 767px) {
  .pc-body { padding: 0 !important; display: block !important; }
  .pc-home .banner-swipe { width: 100%; border-radius: 0 !important; margin: 0 !important; }
  .pc-card-tools { display: none !important; }
  .layout-pc .pc-card,
  .layout-pc .lottery-card,
  .game-card {
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    padding: 0.266667rem 0.32rem 0.213333rem !important;
  }
  .layout-pc .pc-card.is-hidden,
  .layout-pc .lottery-card.is-hidden,
  .game-card.is-hidden {
    display: none !important;
  }
  .pc-home #lotteryGrid,
  .pc-cards,
  .layout-pc .lottery-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    background: #fff;
  }
  .group-tabs,
  .pc-group-pills {
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow-x: auto;
    background: #fff;
  }
  .pc-card-body { padding: 0.213333rem 0 0.106667rem 1.28rem !important; }
  .attr { background: none !important; padding: 0 !important; }

  .game-page { padding: 0.213333rem 0.213333rem 0; }
  .pc-hero {
    display: block !important;
    margin: 0 0 0.213333rem !important;
    padding: 0.32rem 0.32rem 0.266667rem !important;
    border-radius: 0.213333rem !important;
    box-shadow: 0 0.106667rem 0.32rem #a4b3cd26 !important;
  }
  .game-title-row { display: flex; align-items: flex-start; gap: 0.213333rem; }
  .pc-hero .game-icon.lg { width: 1.01333rem !important; height: 1.01333rem !important; font-size: 0.373333rem; }
  .pc-hero-main { flex: 1; min-width: 0; }
  .pc-hero-title h1 { font-size: 0.4rem !important; }
  .pc-hero-meta { display: none !important; }
  .pc-hero-count { display: none !important; }
  .h5-next-row { display: flex; align-items: center; justify-content: space-between; gap: 0.213333rem; margin-top: 0.0533333rem; }
  .next-line { font-size: 0.32rem; color: #8590a2; }
  .h5-next-row .count-boxes { gap: 0.0533333rem; }
  .h5-next-row .count-unit { display: contents; }
  .h5-next-row .count-colon { color: #3493ff; font-weight: 700; margin: 0 0.0533333rem; font-size: 0.373333rem; }
  .h5-next-row .count-box {
    background: #d7ebff !important;
    color: #3493ff !important;
    min-width: 0.64rem !important;
    height: 0.48rem !important;
    padding: 0 0.08rem !important;
    font-size: 0.4rem !important;
    font-weight: 700;
    border-radius: 0.106667rem !important;
  }
  .h5-next-row .count-wait { color: #3493ff; font-size: 0.346667rem; font-weight: 600; }
  .period-line { display: block; margin: 0.16rem 0 0.16rem; font-size: 0.32rem; color: #626f86; }
  .period-line em { font-style: normal; color: #3493ff; padding: 0 0.0533333rem; }
  .pc-hero-balls { margin-top: 0.106667rem !important; }
  .pc-hero-balls .balls { flex-wrap: nowrap; overflow-x: auto; gap: 0.08rem !important; }
  .pc-hero-balls .ball { min-width: 0.586667rem !important; width: 0.586667rem !important; height: 0.586667rem !important; font-size: 0.266667rem !important; }
  .face-row { display: flex; flex-wrap: nowrap; gap: 0.08rem !important; margin-top: 0.16rem; overflow-x: auto; }
  .face-box {
    min-width: 0.64rem;
    height: 0.64rem;
    padding: 0 0.106667rem !important;
    border: 1px solid #eff2f7;
    border-radius: 0.106667rem;
    color: #3493ff;
    font-size: 0.32rem;
    font-weight: 600;
    display: grid;
    place-items: center;
  }
  .pc-game-panel { margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent; overflow: visible; }
  .pc-tools, .tool-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    background: #fff;
    height: 0.96rem !important;
    margin: 0 -0.213333rem;
    padding: 0 !important;
    border-bottom: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pc-tools::-webkit-scrollbar, .tool-tabs::-webkit-scrollbar { display: none; }
  .pc-tool {
    flex: 0 0 auto !important;
    height: 0.96rem !important;
    padding: 0 0.266667rem !important;
    font-size: 0.32rem !important;
    font-weight: 400 !important;
    color: #838fa0 !important;
    white-space: nowrap;
  }
  .pc-tool:first-child { padding-left: 0.32rem !important; }
  .pc-tool.on { color: #222 !important; font-weight: 600 !important; }
  .pc-tool.on::after { width: 0.533333rem; height: 0.08rem; }
  .toolbar.desktop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.16rem 0.213333rem 0.16rem;
    background: #fff;
  }
  .pc-toolbar-left { display: none !important; }
  .day-pick {
    justify-content: flex-end;
    gap: 0.32rem;
    margin: 0;
  }
  .day-pick a, .day-pick > button {
    height: auto !important;
    min-width: 0 !important;
    padding: 0.106667rem 0.16rem !important;
    border: 0 !important;
    background: none !important;
    color: #626f86 !important;
    font-size: 0.346667rem !important;
  }
  .day-pick a.on, .day-pick > button.on { color: #3493ff !important; background: none !important; }
  .pc-date-range {
    height: auto;
    border: 0;
    padding: 0;
    background: none;
    gap: 0.106667rem;
  }
  .pc-date-range input { width: 0; opacity: 0; position: absolute; pointer-events: none; }
  .pc-date-range button { display: none; }
  .custom-lab { display: inline; font-size: 0.346667rem; color: inherit; }
  .custom-day {
    color: #626f86;
    cursor: pointer;
  }
  .custom-day.on,
  .custom-day.is-open {
    color: #3493ff;
  }
  .arrd {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.0533333rem;
    border-left: 0.106667rem solid transparent;
    border-right: 0.106667rem solid transparent;
    border-top: 0.133333rem solid currentColor;
  }
  .cal-ico {
    width: 0.56rem;
    height: 0.56rem;
    border: 1px solid currentColor;
    border-radius: 0.0533333rem;
    position: relative;
    display: inline-block;
    color: inherit;
    box-sizing: border-box;
    flex: 0 0 auto;
  }
  .cal-ico::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    height: 0.133333rem;
    background: #e24b4b;
    border-radius: 0.0533333rem 0.0533333rem 0 0;
  }
  .cal-ico::after {
    content: "";
    position: absolute;
    left: 0.08rem;
    right: 0.08rem;
    top: 0.186667rem;
    bottom: 0.08rem;
    background: linear-gradient(currentColor, currentColor) 0 33%/100% 1px no-repeat,
      linear-gradient(currentColor, currentColor) 0 66%/100% 1px no-repeat;
    opacity: .45;
  }
  .filter-tabs {
    display: flex;
    gap: 0.213333rem;
    padding: 0.213333rem 0 0.213333rem;
  }
  .filter-tabs button {
    flex: 1 1 0;
    min-width: 0;
    height: 0.8rem !important;
    border: 1px solid #dcdfe4;
    background: #fff;
    color: #838fa0;
    border-radius: 0.106667rem;
    font-size: 0.346667rem !important;
    padding: 0 0.106667rem !important;
    white-space: nowrap;
  }
  .filter-tabs button.on { background: #3493ff; border-color: #3493ff; color: #fff; }
  .pc-live-wrap { display: none !important; }
  .h5-draw { display: block; background: #fff; overflow: hidden; }
  .draw-head, .draw-tr {
    display: grid;
    grid-template-columns: 1.17333rem 1.92rem minmax(0, 1fr);
    align-items: stretch;
    min-height: 1.12rem;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .draw-head {
    background: #f5f9ff;
    color: #626f86;
    font-size: 0.346667rem;
    font-weight: 600;
    border-top: 1px solid #d6def2;
  }
  .draw-head span,
  .draw-tr time,
  .draw-tr .per,
  .h5-draw-nums {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #d6def2;
    border-bottom: 1px solid #d6def2;
    min-height: 1.12rem;
    box-sizing: border-box;
  }
  .draw-head span:first-child,
  .draw-tr time { border-left: 1px solid #d6def2; }
  .h5-draw-nums,
  .draw-head span:last-child {
    border-right: 0;
    justify-content: flex-start;
    padding: 0 0.0533333rem;
    overflow: hidden;
  }
  .draw-tr { font-size: 0.32rem; color: #626f86; }
  .draw-tr .per { color: #3493ff; }
  .draw-tr time { font-variant-numeric: tabular-nums; }
  .h5-draw-nums .balls {
    flex-wrap: nowrap !important;
    gap: 1px !important;
    justify-content: space-evenly;
    width: 100%;
  }
  .h5-draw-nums .ball {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 0.506667rem !important;
    height: 0.453333rem !important;
    font-size: 0.24rem !important;
  }
  .h5-draw-nums .ball.face-img { border-radius: 0.08rem; }
  .pc-hero-balls .ball.face-img { border-radius: 0.106667rem; }
  .pc-live-table.history-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    font-size: 0.32rem !important;
  }
  .pc-live-table.history-table thead { display: table-header-group !important; }
  .pc-live-table.history-table tbody { display: table-row-group !important; }
  .pc-live-table.history-table tr {
    display: table-row !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .pc-live-table.history-table th,
  .pc-live-table.history-table td {
    display: table-cell !important;
    height: 1.12rem !important;
    font-size: 0.32rem !important;
    padding: 0.106667rem 0.0533333rem !important;
    border: 1px solid #d6def2 !important;
    vertical-align: middle !important;
    width: auto !important;
  }
  .pc-live-table.history-table td::before { content: none !important; display: none !important; flex: none !important; }
  .pc-live-table th:nth-child(n+4),
  .pc-live-table td:nth-child(n+4) { display: none !important; }
  .full-time, .full-issue { display: none !important; }
  .short-time, .short-issue { display: inline !important; }
  .pc-live-table .col-time { width: 1.17333rem !important; }
  .pc-live-table .col-per { width: 1.49333rem !important; }
  .pc-live-table thead th:nth-child(1) { font-size: 0 !important; }
  .pc-live-table thead th:nth-child(1)::after { content: "时间"; font-size: 0.32rem; }
  .pc-live-table thead th:nth-child(2) { font-size: 0 !important; }
  .pc-live-table thead th:nth-child(2)::after { content: "期数"; font-size: 0.32rem; }
  .pc-live-table thead th:nth-child(3) { font-size: 0 !important; }
  .pc-live-table .pc-nums .balls { flex-wrap: nowrap !important; gap: 1px !important; justify-content: flex-start; width: max-content; }
  .pc-live-table .pc-nums { overflow: hidden; }
  .pc-live-table .pc-nums .ball { min-width: 0.426667rem !important; width: 0.426667rem !important; max-width: 0.426667rem !important; height: 0.426667rem !important; font-size: 0.24rem !important; border-radius: 0.08rem !important; }
  .pc-live.kind-fantan .pc-nums .balls:not(.wrap) { width: auto; flex-wrap: nowrap; }
  .pc-ft-dist { display: none; }
  .filter-tabs button { white-space: nowrap; font-size: 0.346667rem !important; }

  body.is-detail { padding-bottom: 0; }
  body.is-detail .bottom-nav { display: none !important; }

  .hall-board { display: block; background: #fff; padding: 0.213333rem 0.32rem 0.533333rem; }
  .hall-pc-head,
  .layout-pc .hall-pc-cards,
  .pc-cards.hall-pc-cards,
  #lotteryGrid.hall-pc-cards { display: none !important; }
  .hall-group { margin: 0.213333rem 0 0.426667rem; }
  .hall-group-title {
    display: flex;
    align-items: center;
    gap: 0.16rem;
    margin: 0 0 0.32rem;
    font-size: 0.373333rem;
    font-weight: 700;
    color: #2b4a6f;
  }
  .hall-group-title i {
    width: 0.186667rem;
    height: 0.186667rem;
    border-radius: 50%;
    background: #f5c451;
    display: inline-block;
  }
  .hall-icos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.426667rem 0.213333rem;
  }
  .hall-ico {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.16rem;
    text-align: center;
    font-size: 0.32rem;
    color: #333;
  }
  .hall-ico img, .hall-ico .game-icon {
    width: 1.49333rem;
    height: 1.49333rem;
    border-radius: 50%;
    object-fit: cover;
  }

  .wait-card {
    margin: 0.426667rem 0.32rem;
    background: #fff;
    border-radius: 0.32rem;
    min-height: 3.2rem;
    display: grid;
    place-items: center;
    color: var(--muted);
    box-shadow: 0 0.0533333rem 0.266667rem #a4b3cd1a;
  }
  .more-page { padding: 0.32rem 0.32rem 0.64rem; }
  .more-card {
    background: #fff;
    border-radius: 0.32rem;
    margin-bottom: 0.32rem;
    overflow: hidden;
  }
  .more-card h3 {
    margin: 0;
    padding: 0.32rem 0.373333rem 0.16rem;
    font-size: 0.346667rem;
    color: var(--muted);
    font-weight: 600;
  }
  .more-card a, .more-mail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.346667rem 0.373333rem;
    border-top: 1px solid #f0f3f8;
    font-size: 0.4rem;
    color: #222;
  }
  .more-card a span { color: #c5ced8; font-size: 0.426667rem; }
  .more-mail button { border: 0; background: none; color: var(--primary); font: inherit; }
  .more-hint { margin: 0; padding: 0 0.373333rem 0.32rem; font-size: 0.32rem; color: var(--muted); }

  .hk6-book { background: #fff; min-height: 50vh; }
  .hk6-tabs, .hk6-sub {
    display: flex;
    border-bottom: 1px solid var(--line);
  }
  .hk6-tabs a, .hk6-tabs button, .hk6-sub a {
    flex: 1;
    text-align: center;
    padding: 0.32rem 0;
    border: 0;
    background: none;
    font: inherit;
    color: #626f86;
    position: relative;
  }
  .hk6-tabs .on, .hk6-sub .on { color: var(--primary); font-weight: 600; }
  .hk6-tabs .on::after, .hk6-sub .on::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 0;
    height: 0.0533333rem;
    background: var(--primary);
  }
  .hk6-news {
    display: flex;
    justify-content: space-between;
    gap: 0.32rem;
    padding: 0.373333rem;
    border-bottom: 1px solid var(--line);
  }
  .hk6-news strong { color: var(--primary); font-weight: 500; }
  .hk6-news span { color: var(--muted); font-size: 0.32rem; white-space: nowrap; }

  .h5-subpage { padding: 0.32rem; background: #fff; min-height: 40vh; }
  .sub-title { margin: 0 0 0.32rem; font-size: 0.48rem; }
  .long-tabs { display: flex; gap: 0.213333rem; margin-bottom: 0.32rem; }
  .long-tabs button {
    border: 0;
    background: #eef3f9;
    color: #626f86;
    border-radius: 0.426667rem;
    padding: 0.16rem 0.32rem;
    font: inherit;
  }
  .long-tabs button.on { background: var(--primary); color: #fff; }
  .long-hint { color: var(--muted); font-size: 0.346667rem; }
  .opens-inline { color: #626f86; font-weight: 400; padding-left: 0.16rem; }

  .layout-pc .lottery-card,
  .layout-pc .game-card {
    padding: 0.24rem 0.32rem 0.186667rem !important;
  }
  .layout-pc .lottery-card .opens {
    font-size: 0.226667rem !important;
    color: #838fa0 !important;
    line-height: 1.15 !important;
  }
  .layout-pc .lottery-card .next-lab {
    font-size: 0.226667rem !important;
    color: #838fa0 !important;
  }
  .layout-pc .lottery-card .count-box {
    min-width: 0.48rem !important;
    height: 0.426667rem !important;
    padding: 0 0.08rem !important;
    font-size: 0.266667rem !important;
    border-radius: 0.08rem !important;
  }
  .layout-pc .lottery-card .count-colon {
    font-size: 0.266667rem !important;
    margin: 0 1px !important;
  }
  .layout-pc .lottery-card .count-wait {
    font-size: 0.266667rem !important;
    font-weight: 600;
  }
  .layout-pc .lottery-card .term-line {
    font-size: 0.253333rem !important;
    margin-bottom: 0.08rem !important;
  }
  .layout-pc .lottery-card .pc-card-title strong.title {
    font-size: 0.36rem !important;
  }
  .layout-pc .lottery-card .attr {
    background: none !important;
    padding: 0 !important;
    font-size: 0.266667rem !important;
    border-radius: 0 !important;
  }
  .layout-pc .lottery-card .attr[data-tone="blue"],
  .layout-pc .lottery-card .attr[data-tone="cold"] { color: #3493ff !important; }
  .layout-pc .lottery-card .attr[data-tone="red"],
  .layout-pc .lottery-card .attr[data-tone="hot"] { color: #fc5a61 !important; }
  .layout-pc .lottery-card .attr-row { gap: 0.133333rem !important; margin-top: 0.08rem !important; }

  .hot-row {
    gap: 0.48rem !important;
    padding: 0.32rem 0.32rem 0.373333rem !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: thin;
  }
  .hot-row::-webkit-scrollbar { height: 0.08rem; }
  .hot-row::-webkit-scrollbar-thumb { background: #d0d7e2; border-radius: 0.0533333rem; }
  .hot-item {
    flex: 0 0 2.02667rem !important;
    width: 2.02667rem !important;
    max-width: 2.02667rem !important;
    gap: 0.133333rem !important;
  }
  .hot-item img,
  .hot-ico {
    width: 1.65333rem !important;
    height: 1.65333rem !important;
  }
  .hot-name {
    font-size: 0.293333rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #222 !important;
  }

  .group-tabs,
  .pc-group-pills.category-tabs,
  .layout-pc .category-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
    background: #fff !important;
    border-bottom: 1px solid var(--line);
    grid-template-columns: none !important;
  }
  .group-tab,
  .pill,
  .category-tab,
  .layout-pc .category-tab {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0.24rem 0.106667rem 0.213333rem !important;
    font-size: 0.32rem !important;
    font-weight: 400 !important;
    color: #222 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
    text-align: center;
  }
  .group-tab.on,
  .pill.on,
  .pill.active,
  .category-tab.active,
  .layout-pc .category-tab.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .group-tab .chev {
    display: inline !important;
    font-size: 0.24rem !important;
    color: #838fa0 !important;
    margin-left: 1px;
    font-weight: 400;
  }
  .group-tab.on::after,
  .pill.on::after,
  .pill.active::after {
    left: 18%;
    right: 18%;
    height: 0.0533333rem;
    border-radius: 1px;
    background: var(--primary);
  }
}

@media (min-width: 768px) {
  .hall-board, .opens { display: none !important; }
  .h5-next-row, .period-line, .face-row, .filter-tabs, .short-time, .short-issue, .custom-lab, .cal-ico, .arrd, .h5-draw { display: none !important; }
  .full-time, .full-issue { display: inline; }
  .game-title-row { display: contents; }
  .pc-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
  }
  .pc-hero .game-icon { grid-column: 1; grid-row: 1 / span 2; }
  .pc-hero-main { grid-column: 2; grid-row: 1; }
  .pc-hero-balls { grid-column: 2; grid-row: 2; margin-top: 0 !important; }
  .pc-hero-balls .balls { flex-wrap: nowrap; }
  .pc-hero-count { grid-column: 3; grid-row: 1 / span 2; }
  .pc-date-ph {
    display: inline;
    min-width: 108px;
    text-align: center;
    color: #c0c4cc;
    font-size: 14px;
  }
  .pc-date-range.has-start .pc-date-ph-start,
  .pc-date-range.has-end .pc-date-ph-end { color: #606266; }
  .pc-date-dash { display: inline; color: #909399; font-style: normal; padding: 0 6px; }
  .pc-date-range {
    min-width: 250px;
    justify-content: center;
    cursor: pointer;
  }
  .pc-date-range input,
  .pc-date-range > button { display: none; }
}

.sheet-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
}
.sheet-root.on { display: block; }
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
}
.sheet-root .sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.sheet-root .tbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-root .tbar button {
  appearance: none;
  border: 0;
  background: none;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.sheet-root .tbar .back { color: #8590a2; }
.sheet-root .tbar .confirm { color: #1d6bf5; }
.sheet-root .ipts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px 0;
}
.sheet-root .ipts p {
  flex: 1;
  height: 36px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcdfe4;
  border-radius: 5px;
  color: #1d6bf5;
  font-size: 12px;
  cursor: pointer;
}
.sheet-root .ipts p.act { border-color: #1d6bf5; }
.sheet-root .ipts .arrow { color: #8eb6ff; font-size: 15px; }
.sheet-root .month-nav {
  display: flex;
  align-items: center;
  height: 44px;
}
.sheet-root .month-nav .nav {
  appearance: none;
  border: 0;
  background: none;
  width: 28px;
  height: 44px;
  color: #323233;
  font-size: 20px;
  cursor: pointer;
}
.sheet-root .month-nav .nav:disabled { color: #c8c9cc; cursor: default; }
.sheet-root .month-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #323233;
}
.sheet-root .weeks,
.sheet-root .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.sheet-root .weeks span {
  display: grid;
  place-items: center;
  height: 30px;
  font-size: 12px;
  color: #626f86;
}
.sheet-root .days { position: relative; }
.sheet-root .days .mark {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  font-size: 160px;
  line-height: 1;
  color: rgba(242, 243, 245, .8);
  pointer-events: none;
  font-weight: 400;
}
.sheet-root .day {
  appearance: none;
  border: 0;
  background: none;
  height: 52px;
  font-size: 16px;
  color: #626f86;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.sheet-root .day.empty { cursor: default; }
.sheet-root .day.today { color: #1d6bf5; }
.sheet-root .day.disabled { color: #c8c9cc; cursor: default; }
.sheet-root .day.on {
  color: #fff;
  background: #1d6bf5;
  border-radius: 4px;
}
.sheet-root .day.in-range {
  color: #1d6bf5;
  background: #eaf3ff;
}

/* Keep desktop positioning after the shared bottom-sheet rules. */
@media (min-width: 768px) {
  .sheet-root .sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    border-radius: 12px;
    overflow-y: auto;
  }
}

/* 1189kai parity layer --------------------------------------------------
   Keep the existing page-specific rules above intact, then normalize the
   shared shell/components against the reference site's final CSS. */
:root {
  --bg: #f5f8fc;
  --color-bg: var(--bg);
  --color-card: var(--card);
  --color-card-hover: #f8fbff;
  --color-text: var(--text);
  --color-text-secondary: #626f86;
  --color-text-muted: var(--muted);
  --color-border: var(--line);
  --color-border-light: #f0f3f8;
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-deep);
  --color-shadow: rgba(36, 98, 180, .10);
  --color-strip: #f7fafc;
  --color-tab-active: var(--primary);
  --color-tab-bg: #fff;
  --color-table-head: #f5f9ff;
  --color-table-border: #d6def2;
  --color-countdown-track: #d7ebff;
  --color-countdown-bar: var(--primary);
  --color-loader-mark: var(--primary);
  --color-loader-track: #dcecff;
  --color-loader-bar: var(--primary);
  --color-footer-bg: #fff;
  --color-footer-text: var(--muted);
  --color-header-text: var(--text);
}

/* The reference leaves the desktop page scrollbar available. */
@media (min-width: 768px) {
  html, body { scrollbar-width: auto; scrollbar-gutter: auto; }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar { display: block; width: 15px; height: 15px; }
}

.game-icon-img { object-fit: cover; }
.pc-dock { overflow: visible; }
html, body { scrollbar-gutter: auto; }
.hall-group.is-hidden { display: none !important; }

/* Reference uses the same glossy orb files for ordinary numbered balls. */
.ball.face-orb {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  box-shadow: none;
}
.face-orb.ball-red,
.face-orb.ball-pc {
  color: #252b34;
  background-image: url(/static/img/balls/orb/red.webp?v=20260927);
}
.face-orb.ball-blue {
  color: #252b34;
  background-image: url(/static/img/balls/orb/blue.webp?v=20260927);
}
.face-orb.ball-green,
.face-orb.ball-pc-sum {
  color: #252b34;
  background-image: url(/static/img/balls/orb/green.webp?v=20260927);
}
.face-orb.ball-yellow {
  color: #252b34;
  background-image: url(/static/img/balls/orb/yellow.webp?v=20260927);
}
.face-orb.ball-cyan {
  color: #252b34;
  background-image: url(/static/img/balls/orb/cyan.webp?v=20260927);
}
.face-orb.ball-violet,
.face-orb.ball-indigo {
  color: #252b34;
  background-image: url(/static/img/balls/orb/purple.webp?v=20260927);
}
.face-orb.ball-keno {
  color: #252b34;
  background-image: url(/static/img/balls/orb/blue.webp?v=20260927);
}
.face-orb.ball-orange,
.face-orb.ball-gray,
.face-orb.ball-brown { color: #252b34; }
.face-orb.ball-tw-orange {
  color: #252b34;
  background-image: url(/static/img/balls/navi/tw-orange.webp?v=20260927-parity-final11);
}
.face-orb.ball-tw-red {
  color: #fff;
  background-image: url(/static/img/balls/navi/tw-red.webp?v=20260927-parity-final11);
}
.face-orb.ball-pc28-0,
.face-orb.ball-pc28-147,
.face-orb.ball-pc28-258,
.face-orb.ball-pc28-369,
.face-orb.ball-pc28-sum-0,
.face-orb.ball-pc28-sum-147,
.face-orb.ball-pc28-sum-258,
.face-orb.ball-pc28-sum-369 {
  color: #252b34;
}
.face-orb.ball-pc28-0 { background-image: url(/static/img/balls/pc28/digit-0.webp?v=20260927); }
.face-orb.ball-pc28-147 { background-image: url(/static/img/balls/pc28/digit-147.webp?v=20260927); }
.face-orb.ball-pc28-258 { background-image: url(/static/img/balls/pc28/digit-258.webp?v=20260927); }
.face-orb.ball-pc28-369 { background-image: url(/static/img/balls/pc28/digit-369.webp?v=20260927); }
.face-orb.ball-pc28-sum-0 { background-image: url(/static/img/balls/pc28/sum-0131427.webp?v=20260927); }
.face-orb.ball-pc28-sum-147 { background-image: url(/static/img/balls/pc28/sum-147.webp?v=20260927); }
.face-orb.ball-pc28-sum-258 { background-image: url(/static/img/balls/pc28/sum-258.webp?v=20260927); }
.face-orb.ball-pc28-sum-369 { background-image: url(/static/img/balls/pc28/sum-369.webp?v=20260927); }

@media (min-width: 768px) {
  body.layout-pc { font-size: 15px; }
  /* Reference Home cards pass NumberBalls in compact mode. */
  .pc-card-body .ball {
    width: 24px;
    min-width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .pc-hero { min-height: 152px; }
  .pc-live-table.history-table th,
  .pc-live-table.history-table td {
    height: 50px !important;
    padding: 8px 12px !important;
  }
  /* 台湾宾果号码格：32px 球、行距 5px、行高 82，避免上面的 8px 12px 把两行挤偏。 */
  .pc-live.kind-bingo.is-twbingo .pc-live-table.history-table td {
    height: 82px !important;
    vertical-align: middle !important;
  }
  .pc-live.kind-bingo.is-twbingo .pc-live-table.history-table th,
  .pc-live.kind-bingo.is-twbingo .pc-live-table.history-table td {
    padding: 1px !important;
  }
  .pc-live.kind-bingo.is-twbingo .pc-live-table.history-table td.pc-nums {
    overflow: visible;
  }
  .pc-live.kind-bingo.is-twbingo .col-per {
    width: 77px !important;
  }
  /* 宾果翻摊对照 3389kai：时间 168 / 期号 96 / 号码 482 / 超级 72 / 摊路三列各 132（表宽 1215）。 */
  .pc-live.kind-fantan.is-bingo-ft .pc-live-table {
    min-width: 1215px;
  }
  .pc-live.kind-fantan.is-bingo-ft .pc-live-table.history-table th,
  .pc-live.kind-fantan.is-bingo-ft .pc-live-table.history-table td {
    padding: 1px !important;
    white-space: nowrap;
  }
  .pc-live.kind-fantan.is-bingo-ft .pc-live-table.history-table th {
    height: 50px !important;
  }
  .pc-live.kind-fantan.is-bingo-ft .pc-live-table.history-table td {
    height: 72px !important;
    vertical-align: middle !important;
  }
  .pc-live.kind-fantan.is-bingo-ft .col-time { width: 13.83%; }
  .pc-live.kind-fantan.is-bingo-ft .col-per { width: 7.9%; }
  .pc-live.kind-fantan.is-bingo-ft .col-nums { width: 39.67%; }
  .pc-live.kind-fantan.is-bingo-ft .col-super { width: 5.93%; }
  .pc-live.kind-fantan.is-bingo-ft .col-ft { width: 10.89%; }
  .pc-live.kind-fantan.is-bingo-ft .pc-nums { overflow: visible; }
  .pc-live.kind-fantan.is-bingo-ft .pc-nums .balls.wrap {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    align-items: center;
    gap: 4px;
  }
  .pc-live.kind-fantan.is-bingo-ft .pc-nums .ball-row {
    justify-content: center;
    gap: 4px;
  }
  .pc-live.kind-fantan.is-bingo-ft .pc-nums .ball {
    min-width: 26px !important;
    width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
  }
  .pc-live.kind-fantan.is-bingo-ft .bingo-super-cell .ball {
    min-width: 28px !important;
    width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
  .pc-live.kind-race .col-time { width: 203px; }
  .pc-live.kind-race .col-per { width: 108px; }
  .pc-head-btn {
    background: transparent;
    border-color: #b3b9c4;
    color: #8590a2;
    line-height: 30px;
  }

  /* Desktop hall: grouped icon blocks in the 1fr + 280px shell. */
  .pc-hall-body { grid-template-columns: minmax(0, 1fr) 280px; }
  .pc-hall-body .hall-pc-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
  }
  .pc-hall-body .hall-pc-head h1,
  .pc-hall-body .hall-pc-head h2 { margin: 0; font-size: 20px; }
  .pc-hall-body .hall-board {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    background: transparent;
    padding: 0;
  }
  .pc-hall-body .hall-pc-cards { display: none !important; }
  .pc-hall-body .hall-group {
    margin: 0;
    padding: 18px 20px 8px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 12px;
  }
  .pc-hall-body .hall-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #2b4a6f;
    font-size: 16px;
    font-weight: 600;
  }
  .pc-hall-body .hall-group-title i {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #f7c33b;
  }
  .pc-hall-body .hall-group-count {
    margin-left: 0;
    color: #838fa0;
    font-size: 13px;
    font-weight: 500;
  }
  .pc-hall-body .hall-icos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 10px;
  }
  .pc-hall-body .hall-ico {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 6px 14px;
    border-radius: 10px;
    color: #222;
    font-size: 13px;
    text-align: center;
  }
  .pc-hall-body .hall-ico:hover { background: #f6f9fc; }
  .pc-hall-body .hall-ico img,
  .pc-hall-body .hall-ico .game-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
  }
  .pc-hall-body .hall-name { margin-top: 8px; font-size: 13px; font-weight: 600; }
  .pc-hall-body .hall-period { margin-top: 2px; color: #838fa0; font-size: 12px; line-height: 1.3; }
}

@media (min-width: 1100px) {
  .pc-hall-body .hall-icos { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  html, body { -ms-overflow-style: auto; scrollbar-width: auto; scrollbar-gutter: stable; }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar { display: block; width: 0.4rem; height: 0.4rem; }
  .h5-topbar-inner { grid-template-columns: 1.06667rem 1fr 1.06667rem; min-height: 1.17333rem; padding: 0 0.16rem; }
  .h5-topbar-btn { width: 0.96rem; height: 0.96rem; font-size: 0.48rem; }
  .hamburger { width: 0.4rem; box-shadow: 0 -0.133333rem #5a6a7a, 0 0.133333rem #5a6a7a; }
  .h5-topbar-logo { gap: 0.106667rem; }
  .h5-topbar-logo img { width: 0.533333rem; height: 0.533333rem; border-radius: 0.106667rem; }
  .h5-topbar-logo .pc-logo-text strong { font-size: 0.373333rem; }
  .h5-topbar-logo .pc-logo-text small { display: none; }
  .h5-topbar-info { font-size: 0.426667rem; }
  .h5-topbar-title { font-size: 0.4rem; }
  .topbar-game .h5-topbar-title { font-size: 0.426667rem; }
  .bottom-nav-item.fab .bottom-nav-icon { width: 0.72rem; height: 0.72rem; margin-top: -0.186667rem; }
  .bottom-nav-item.fab .bottom-nav-icon svg { width: 0.426667rem; height: 0.426667rem; }
  body.is-detail .pc-footer,
  body.is-no-tabbar .pc-footer { display: none !important; }
  body.layout-pc { font-size: 0.373333rem; }
  .site-content { padding-bottom: 0 !important; }
  body.layout-pc { background: #f5f8fc; }
  .game-page {
    padding: 0.16rem 0.213333rem 0 !important;
    background: #f3f5f8;
  }
  .pc-hero {
    padding: 0.426667rem !important;
    border-radius: 0.16rem !important;
  }
  .pc-hero .game-icon.lg { width: 0.96rem !important; height: 0.96rem !important; }
  .h5-next-row { margin-top: 0.106667rem; }
  .h5-next-row .count-box {
    min-width: 0.48rem !important;
    height: 0.426667rem !important;
    padding: 0 0.08rem !important;
    font-size: 0.373333rem !important;
    border-radius: 0.08rem !important;
  }
  .h5-next-row .count-colon { font-size: 0.373333rem; margin: 0 1px; }
  .pc-hero-balls {
    display: flex;
    flex-direction: column;
    gap: 0.133333rem;
    margin-top: 0 !important;
  }
  .pc-hero-balls .face-row { margin-top: 0; }
  .pc-hero-balls .balls.has-wave { --ball-gap: 0.106667rem; }
  .pc-hero-balls .balls.has-wave .ball-stack { gap: 1px; }
  .pc-hero-balls .wave { font-size: 0.213333rem; }
  .pc-tools,
  .tool-tabs { margin: 0.16rem -0.213333rem 0; }
  .toolbar.desktop { padding: 0.16rem 0.213333rem 0.106667rem; }
  .day-pick { gap: 0.213333rem; }
  .filter-tabs { padding: 0.213333rem 0 0; }
  .filter-tabs button { font-size: 0.373333rem !important; }
  .draw-head, .draw-tr { grid-template-columns: 1.12rem 1.86667rem minmax(0, 1fr); }
  .draw-head span,
  .draw-tr time,
  .draw-tr .per,
  .h5-draw-nums { min-height: 1.12rem; }
  .hall-group-count { display: none; }
  .hall-period { display: none; }
  .hall-ico img,
  .hall-ico .game-icon { width: 0.96rem; height: 0.96rem; }
  .hall-ico { padding: 0.2rem 0.08rem; gap: 0.12rem; font-size: 0.32rem; }
  .hall-board { padding: 0.16rem 0.24rem 0.4rem; }
  .hall-group-title i { width: 0.213333rem; height: 0.213333rem; }
  .hall-group-title { font-weight: 700; }
  .hall-icos { gap: 0.373333rem 0.16rem; }
  .hall-group-title { font-size: 0.346667rem; margin-bottom: 0.266667rem; }
  .group-tab { padding: 0.24rem 0.213333rem 0.186667rem !important; font-size: 0.3rem !important; }
  .more-card h3 { font-size: 0.28rem; padding: 0.24rem 0.32rem 0.08rem; }
  .more-card a, .more-mail { font-size: 0.34rem; padding: 0.28rem 0.32rem; }
  .wait-card { margin: 0.24rem 0.32rem; min-height: 2.96rem; border-radius: 0.16rem; font-size: 0.32rem; }
  .bottom-nav-item { font-size: 0.266667rem; }
  .bottom-nav-icon svg { width: 0.48rem; height: 0.48rem; }
  .pc-footer {
    display: block !important;
    margin: 0.506667rem 0.32rem 0;
    padding: 0 0 0.426667rem;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 0.266667rem;
    line-height: 1.6;
  }
  .pc-footer-links { display: block; }
  .pc-footer a { color: var(--primary); margin-right: 0.32rem; }
  .more-mail-value { color: var(--primary); font-size: 0.293333rem; }
  .attr[data-tone="orange"] { color: #f5a623 !important; }
  .attr[data-tone="purple"] { color: #8b5cf6 !important; }
  .attr[data-tone="gold"] { color: #d4a017 !important; }
  .attr[data-tone="green"] { color: #3db86a !important; }
  .banner-dots { bottom: 0.16rem; gap: 0.12rem; }
  .banner-dots .dot { width: 0.12rem; height: 0.12rem; }
  .banner-dots .dot.on { width: 0.24rem; border-radius: 0.08rem; }
  .banner-auto { width: 0.64rem; height: 0.64rem; right: 0.16rem; font-size: 0.4rem; }
  .hot-item { flex-basis: 1.92rem !important; width: 1.92rem !important; }
  .hot-item img, .hot-ico { width: 1.6rem !important; height: 1.6rem !important; object-fit: cover; }
  .hot-name { font-size: 0.28rem !important; }
  .hot-head { font-size: 0.4rem !important; line-height: 0.493333rem; height: 0.786667rem; box-sizing: border-box; padding: 0.28rem 0.32rem 0 !important; }
  .hot-item { gap: 0.12rem !important; }
  .group-tabs { padding: 0 !important; }
  .group-tabs .group-tab { min-height: 0.866667rem; padding: 0.24rem 0.2rem 0.2rem !important; font-size: 0.3rem !important; }
  .group-tabs .group-tab .chev { font-size: 0.22rem !important; line-height: 0.24rem; margin-left: 0.04rem; }
  /* H5 lottery cards follow the reference site's responsive rem rhythm. */
  .layout-pc .game-card { padding: .24rem .32rem .2rem !important; }
  .layout-pc .game-card .pc-card-head { gap: .16rem; }
  .layout-pc .game-card .pc-card-title { gap: .16rem; }
  .layout-pc .game-card .game-icon.sm { width: .96rem !important; height: .96rem !important; }
  .layout-pc .game-card .pc-card-title strong.title { font-size: .34rem !important; line-height: normal; }
  .layout-pc .game-card .lottery-info { margin-top: .12rem; padding: 0 0 0 1.12rem !important; }
  .layout-pc .game-card .term-line { margin-bottom: .1rem; font-size: .24rem !important; }
  .layout-pc .game-card .pc-card-body .balls { gap: 0.16rem !important; }
  .layout-pc .game-card .pc-card-body .ball { width: .56rem !important; min-width: .56rem !important; height: .56rem !important; font-size: .24rem !important; }
  .layout-pc .game-card .attr-row { margin-top: .1rem !important; gap: .12rem .16rem !important; }
  .layout-pc .game-card .attr { font-size: .24rem !important; }
  body.is-detail .bottom-nav,
  body.is-no-tabbar .bottom-nav { display: none !important; }
  body.is-detail,
  body.is-no-tabbar { padding-bottom: 0; }
}

/* Content pages use the same compact card language as the reference. */
.long-page,
.rules-page,
.news-page,
.page-body {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 20px;
}
.long-page .sub-title,
.rules-page h1,
.page-body h1 { margin: 0 0 14px; font-size: 20px; }
.long-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.long-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: #eef3f9;
  color: #626f86;
  font: inherit;
  cursor: pointer;
}
.long-tabs button.on { background: var(--primary); color: #fff; }
.long-filter { margin: 0 0 14px; color: #626f86; }
.long-filter input { width: 42px; height: 24px; margin: 0 4px; text-align: center; border: 1px solid #d6def2; border-radius: 4px; }
.long-table-wrap { overflow-x: auto; border: 1px solid #e6edf5; border-radius: 12px; }
.long-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.long-table th, .long-table td { padding: 10px 12px; border-bottom: 1px solid #e6edf5; text-align: left; vertical-align: middle; }
.long-table th { background: #f5f9ff; color: #626f86; font-weight: 600; }
.long-table td:nth-child(3) { color: var(--primary); }
.long-beads { display: flex; flex-wrap: wrap; gap: 5px; }
.long-beads i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e8f2ff; color: var(--primary); font-style: normal; font-size: 11px; }
.long-empty { padding: 28px !important; text-align: center !important; color: var(--muted); }
.rule-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin: -20px -20px 0; }
.rule-tabs a { padding: 11px 18px; color: #626f86; white-space: nowrap; }
.rule-tabs a.on { color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: 600; }
.rule-article { padding-top: 20px; color: #626f86; line-height: 1.8; }
.rule-article h1 { color: #222; }
.rule-article h2 { margin: 16px 0 4px; color: #222; font-size: 16px; }
.rule-article p, .page-body p { margin: 0; }
.news-page { padding: 0; overflow: hidden; }
.news-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.news-row:last-child { border-bottom: 0; }
.news-row strong { color: var(--primary); font-weight: 500; }
.news-row time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.page-body { line-height: 1.7; color: #626f86; }
.page-body h1 { color: #222; }

@media (max-width: 767px) {
  html { scrollbar-gutter: auto !important; }
  body.is-no-tabbar { background: #fff; }
  .rec-page { margin: 0.24rem 0.32rem 0 !important; padding: 0.24rem 0.32rem !important; }
  .rec-page .wait-card { margin: 0 !important; min-height: 2.85333rem; }
  .more-page { margin: 0.24rem 0.32rem 0 !important; padding: 0.24rem 0 0.64rem !important; }
  .rules-page { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff; }
  .rules-page .rule-tabs { margin: 0 !important; }
  .rules-page .rule-article { padding: 0.426667rem; }
  .static-page { margin: 0.24rem 0.32rem 0; }
  .static-page > h1 { margin: 0 0 0.266667rem; font-size: 0.4rem; line-height: 1.25; color: #222; }
  .static-page .page-body { margin: 0; padding: 0.32rem; }
  body.layout-pc .long-page h1.sub-title,
  body.layout-pc .rules-page h1,
  body.layout-pc .static-page > h1 { font-size: 0.4rem !important; line-height: 1.25 !important; }
  .hk6-tabs a, .hk6-tabs button { padding: 0.24rem 0.16rem 0.2rem; font-size: 0.3rem; }
  .hk6-sub a { padding: 0.24rem 0.16rem 0.2rem; font-size: 0.28rem; }
  .hk6-tabs { height: 0.893333rem; }
  .hk6-tabs button { height: 0.866667rem; box-sizing: border-box; }
  .hk6-sub { height: 0.866667rem; }
  .hk6-sub a { height: 0.866667rem; box-sizing: border-box; }
  .hk6-news { height: 0.973333rem; min-height: 0; box-sizing: border-box; padding: 0.28rem 0.32rem; font-size: 0.3rem; }
  .hk6-news span { font-size: 0.24rem; }
  html { font-size: 10vw; }
  /* The reference reserves one scrollbar on the page root, not a second
     scrollbar gutter on the body content. */
  html { scrollbar-gutter: auto; scrollbar-width: auto; }
  body { scrollbar-gutter: auto; scrollbar-width: none; }
  html::-webkit-scrollbar { display: block; width: 0.4rem; height: 0.4rem; }
  body::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .hot-row { scrollbar-width: thin; }
  .hot-row::-webkit-scrollbar { display: block; height: 0.213333rem; }
  .hot-row::-webkit-scrollbar-thumb { background: #d0d7e2; border-radius: 0.106667rem; }
  .bottom-nav { height: 1.17333rem; box-sizing: border-box; padding: 0.08rem 0 0; }
  .bottom-nav-item { padding: 0.08rem 0 0.12rem; gap: 0.04rem; font-size: 0.24rem; }
  .bottom-nav-icon { width: 0.48rem; height: 0.48rem; }
  .bottom-nav-icon svg { width: 0.44rem; height: 0.44rem; }
  .bottom-nav-item.fab .bottom-nav-icon { margin-top: -0.2rem; }
  .h5-topbar { padding: .12rem .24rem; }
  .h5-topbar-inner { grid-template-columns: .72rem 1fr .72rem; min-height: .88rem; padding: 0; }
  .h5-topbar-btn { width: .64rem; height: .64rem; font-size: .48rem; }
  .hamburger { width: .4rem; height: 0.04rem; box-shadow: 0 -.12rem #5a6a7a, 0 .12rem #5a6a7a; }
  .h5-topbar-logo { gap: 0; }
  .h5-topbar-logo img { width: auto; height: .5rem; border-radius: .08rem; }
  .h5-topbar-info { font-size: .4rem; }
  .h5-topbar-title { font-size: .4rem; }
  .drawer { padding: 0.4rem 0.32rem; }
  .drawer-head { margin-bottom: 0.24rem; }
  .drawer-link { padding: 0.28rem 0; font-size: 0.34rem; }
  .topbar-game, .topbar-rules { padding: 0 .24rem; }
  .topbar-game .h5-topbar-inner,
  .topbar-rules .h5-topbar-inner { min-height: 1.17949rem; }
  .topbar-game .h5-topbar-title,
  .topbar-rules .h5-topbar-title { font-size: .42667rem; }
  .back-ico { width: .28rem; height: .28rem; border-width: .046rem; margin-left: .1rem; }
  .hall-group-title { font-size: 0.34rem; line-height: 0.426667rem; margin: 0.2rem 0 0.24rem; }
  .hall-ico { gap: 0; }
  .hall-name { line-height: 1.3; }
  .pc-hero-balls .balls,
  .face-row { gap: 0.04rem !important; }
  .pc-hero-balls .ball { min-width: 0.56rem !important; width: 0.56rem !important; height: 0.56rem !important; }
  .game-page { padding-left: 0.2rem !important; padding-right: 0.2rem !important; }
  .h5-draw.kind-bingo .draw-head,
  .h5-draw.kind-bingo .draw-tr { grid-template-columns: 1rem 1.2rem minmax(0, 1fr); min-height: 1.12rem; }
  .h5-draw.kind-bingo .draw-tr { min-height: 1.44rem; }
  .h5-draw.kind-bingo .draw-tr time,
  .h5-draw.kind-bingo .draw-tr .per { min-height: 1.44rem; }
  .h5-draw.kind-bingo .draw-tr .h5-draw-nums .balls.wrap { width: 100%; padding: 0.16rem 0.08rem; gap: 0.0533333rem; align-items: flex-start; justify-content: center; }
  .h5-draw.kind-bingo .draw-tr .h5-draw-nums .ball-row { gap: 0.0533333rem; justify-content: flex-start; }
  .h5-draw.kind-bingo .draw-tr .h5-draw-nums .ball { flex: 0 0 auto; min-width: 0.533333rem !important; width: 0.533333rem !important; max-width: none; height: 0.533333rem !important; font-size: 0.24rem !important; }
  /* Reference LHC history is a four-column zodiac/attribute summary, not a ball row. */
  .h5-draw.kind-lhc .draw-head,
  .h5-draw.kind-lhc .draw-tr {
    grid-template-columns: 1.44rem 1.81333rem minmax(0, 1.55fr) minmax(0, 1.2fr);
  }
  .h5-draw.kind-lhc .draw-head { font-size: .32rem; }
  .h5-draw.kind-lhc .draw-tr { min-height: 1.28rem; }
  .h5-draw.kind-lhc .draw-tr time.when-lhc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .05333rem;
    padding: .10667rem .05333rem;
    font-size: .26667rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .h5-draw.kind-lhc .draw-tr time.when-lhc em { font-style: normal; font-weight: 400; }
  .h5-draw.kind-lhc .draw-tr .per { padding: 0 .04rem; font-size: .29333rem; white-space: nowrap; }
  .h5-draw.kind-lhc .lhc-zm-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .05333rem;
    min-width: 0;
    padding: .10667rem .08rem;
    border-right: 1px solid #d6def2;
    border-bottom: 1px solid #d6def2;
    color: #222;
    font-size: .29333rem;
    letter-spacing: .02em;
  }
  .h5-draw.kind-lhc .lhc-zm-cell .tm { color: #3493ff; font-size: .26667rem; }
  .h5-draw.kind-lhc .lhc-ext {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: .05333rem;
    min-width: 0;
    padding: .10667rem .05333rem;
    border-bottom: 1px solid #d6def2;
    font-size: .26667rem;
  }
  .h5-draw.kind-lhc .lhc-ext-line { display: flex; align-items: center; justify-content: center; gap: .10667rem; }
  .h5-draw.kind-lhc .lhc-ext-line i { font-style: normal; font-weight: 400; }
  .h5-draw.kind-lhc .lhc-ext-line i[data-tone="red"] { color: #fc5a61; }
  .h5-draw.kind-lhc .lhc-ext-line i[data-tone="blue"] { color: #3493ff; }
  .h5-draw.kind-lhc .lhc-ext-line i[data-tone="orange"] { color: #fba75e; }
  .long-page,
  .rules-page,
  .news-page,
  .page-body {
    margin: 0.24rem 0.32rem 0;
    padding: 0.32rem;
    border-radius: 0.16rem;
    border: 0;
  }
  .long-page { background: transparent; margin-top: 0; padding: 0.24rem 0.32rem 0.4rem; }
  .long-page { padding: 0.24rem 0 0.4rem !important; }
  .long-page .sub-title { margin: 0 0 0.24rem; font-size: 0.426667rem !important; line-height: 0.546667rem !important; }
  .rules-page h1, .page-body h1 { margin: 0 0 0.266667rem; font-size: 0.4rem; }
  .long-tabs { gap: 0.16rem; margin-bottom: 0.373333rem; }
  .long-tabs button { min-height: 0.773333rem; padding: 0 0.28rem; font-size: 0.28rem; }
  .long-filter { margin: 0 0 0.373333rem; font-size: 0.373333rem; line-height: 0.52rem; }
  .long-filter input { width: 0.88rem; height: 0.586667rem; }
  .long-table-wrap { border-radius: 0.426667rem; padding: 0.16rem; background: #fff; }
  .long-table { font-size: 0.28rem; }
  .long-table th, .long-table td { padding: 0.16rem; }
  .long-beads { gap: 0.106667rem; }
  .long-beads i { width: 0.586667rem; height: 0.586667rem; font-size: 0.293333rem; }
  .rule-tabs { margin: -0.32rem -0.32rem 0; }
  .rule-tabs a { padding: 0.24rem 0.32rem; font-size: 0.32rem; }
  .rule-article { padding-top: 0.373333rem; font-size: 0.373333rem; line-height: 2; }
  .rule-article h2 { font-size: 0.4rem; }
  .rule-article .rule-h { margin: 0 0 0.16rem; font-size: 0.410133rem; line-height: 0.82rem; color: #222; font-weight: 400; }
  .rule-article p { margin: 0 0 0.16rem; }
  .news-page { padding: 0; border-radius: 0.133333rem; }
  .news-row { height: 0.973333rem; min-height: 0; box-sizing: border-box; padding: 0.28rem 0.32rem; }
  .news-row strong { font-size: 0.3rem; }
  .news-row time { font-size: 0.24rem; }
  .page-body { font-size: 0.34rem; line-height: 1.7; }
  .more-page { padding: 0.24rem 0.32rem 0.64rem; }
  .more-card { margin: 0 0.32rem 0.24rem; border-radius: 0.16rem; }
  .more-card h2 { margin: 0; padding: 0.24rem 0.32rem 0.08rem; font-size: 0.28rem; line-height: 0.346667rem; color: var(--muted); font-weight: 600; }
  .more-card .more-row { display: flex; align-items: center; justify-content: space-between; min-height: 1.09333rem; padding: 0.28rem 0.32rem; font-size: 0.34rem; line-height: 0.506667rem; border-top: 1px solid #f0f3f8; }
  .more-card .chev { color: #c5ced8; font-size: 0.4rem; line-height: 1; }
  .more-card .val { color: var(--primary); font-size: 0.293333rem; }
  .more-card .hint { margin: 0; padding: 0 0.32rem 0.28rem; color: var(--muted); font-size: 0.24rem; line-height: 0.293333rem; }
  body.page-recommend .pc-footer,
  body.page-article .pc-footer { margin: 0.48rem 0.64rem 0; width: calc(100% - 1.28rem); padding: 0; font-size: 0.26rem; line-height: 1.6; }
}

/* Reference keeps its 37.5px rem baseline below the 320px mobile breakpoint. */
@media (max-width: 319px) {
  html { font-size: 37.5px; }
}
