html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: #101010;
  font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
  background: #e8e8e8;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

.page,
body {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  background: #f6f6f6;
  overflow-x: hidden;
}

body {
  padding-bottom: 60px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: #f40000;
  color: #fff;
}

.site-logo {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
}

.site-logo img {
  display: block;
  width: auto;
  max-width: 260px;
  height: 35px;
  object-fit: contain;
}

.header-record {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 5px;
  background: #fff;
  color: #c40000;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}

.lottery-con {
  z-index: 20;
  padding: 5px 10px 7px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.lottery-tabs {
  display: flex;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid #f40000;
  border-radius: 6px;
  background: #fff;
}

.lottery-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid #f40000;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lottery-item:last-child {
  border-right: 0;
}

.lottery-active {
  background: #f40000;
  color: #fff;
}

.type-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #08a170;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.62);
}

.type-hk {
  background: #2177e8;
}

.type-mo {
  background: #f2b500;
}

.mini-wrap {
  margin-top: 6px;
  overflow: hidden;
  background: #fff;
}

.mini-loading {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 13px;
  font-weight: 800;
}

.mini-strip {
  display: flex;
  max-width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 5px;
}

.mini-issue {
  flex: 0 0 52px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

.mini-issue strong {
  display: block;
  margin-top: 2px;
  color: #af0000;
  font-size: 13px;
  font-weight: 900;
}

.mini-balls {
  flex: 1 1 auto;
  display: flex;
  max-width: 100%;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
}

.mini-ball {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-num,
.open-num {
  width: 100%;
  min-width: 0;
  border-radius: 3px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mini-num {
  height: 28px;
  line-height: 28px;
  font-size: 16px;
}

.mini-other,
.open-other {
  margin-top: 2px;
  color: #111;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 800;
  white-space: nowrap;
}

.mini-red .mini-num,
.open-red .open-num {
  background: #e71c10;
}

.mini-blue .mini-num,
.open-blue .open-num {
  background: #2186e8;
}

.mini-green .mini-num,
.open-green .open-num {
  background: #16a13f;
}

.mini-gray .mini-num,
.open-gray .open-num {
  background: #b9b9b9;
}

.mini-plus,
.open-plus {
  flex: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f40000;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.play-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 100%;
  gap: 6px 8px;
  padding: 7px 10px 8px;
  background: #fff;
}

.play-nav a {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #08a170;
  color: #fff;
  font-size: 12px;
  line-height: 24px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  padding: 6px 0 0;
}

.date-pill {
  margin: 5px 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f40000;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  text-align: center;
}

.adimg {
  display: block;
  margin: 6px 10px;
}

.adimg img {
  display: block;
  width: 100%;
  border-radius: 5px;
}

.open-card {
  margin: 7px 10px 8px;
  background: #fff;
}

.open-loading {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #777;
  font-size: 14px;
  font-weight: 800;
}

.open-row {
  position: relative;
  min-height: 145px;
  padding: 8px 8px 10px;
  border: 1px solid #e3e3e3;
  background: #fff;
}

.open-head {
  position: relative;
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.open-issue {
  color: #a60004;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
  text-align: center;
}

.open-head a {
  position: absolute;
  right: 0;
  top: 5px;
  color: #0748d4;
  font-size: 13px;
  font-weight: 800;
}

.open-balls {
  display: flex;
  max-width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  margin-top: 6px;
}

.open-balls-wait {
  margin-top: 12px;
}

.open-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.open-num {
  height: 34px;
  line-height: 34px;
  font-size: 18px;
}

.next-issue {
  padding: 5px 8px 8px;
  color: #c93940;
  background: #fff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
}

.notice-line {
  display: flex;
  gap: 6px;
  margin: 0 10px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.notice-line a {
  flex: 1 0 auto;
  min-width: 82px;
  padding: 5px 6px;
  border: 1px solid #e4e4e4;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.play-stream {
  padding-bottom: 2px;
}

.xinshui-con {
  margin: 10px 5px 12px;
}

.xinshui-title {
  height: 46px;
  padding: 0 8px 8px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #f40000;
  color: #fff;
  font-size: 18px;
  line-height: 38px;
  font-weight: 900;
  text-align: center;
}

.xinshui-main {
  margin-top: -10px;
  padding: 10px 0 0;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #fff;
}

.xinshui-split {
  min-height: 38px;
  padding: 0 8px;
  color: #333;
  font-size: 15px;
  line-height: 38px;
  font-weight: 800;
  text-align: center;
}

.xinshui-row {
  display: flex;
  min-height: 38px;
  border-bottom: 1px solid #eeeeee;
}

.xinshui-cell1,
.xinshui-cell2,
.xinshui-cell3 {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 4px 5px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.xinshui-cell1 {
  flex: 0 0 24%;
  background: #f40000;
  color: #fff;
  text-align: center;
}

.xinshui-cell2 {
  flex: 1 1 auto;
  color: #111;
  word-break: break-all;
}

.xinshui-cell3 {
  flex: 0 0 20%;
  color: #f40000;
  text-align: center;
}

.xinshui-row3 {
  min-height: 40px;
  padding: 8px;
  border-right: 1px solid #dde2e0;
  border-bottom: 1px solid #dde2e0;
  border-left: 1px solid #dde2e0;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  text-align: center;
  word-break: break-all;
}

.xinshui-row2 {
  border-right: 1px solid #dde2e0;
  border-bottom: 1px solid #dde2e0;
  border-left: 1px solid #dde2e0;
  background: #fff;
}

.xinshui-row2-head {
  padding: 8px 6px 6px;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 900;
  text-align: center;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  padding: 0 6px 6px;
  background: #fff;
}

.code-grid span {
  display: block;
  min-width: 0;
  padding: 3px 0;
  border: 1px solid #ececec;
  color: #0748d4;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

.winbg {
  background: #fff300;
  color: #f40000;
  font-weight: 900;
}

.open-red-text {
  color: #f40000;
  font-weight: 900;
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 40;
  display: flex;
  width: min(100vw, 490px);
  height: 52px;
  transform: translateX(-50%);
  border-top: 1px solid #e6e6e6;
  background: #fff;
}

.tabitem {
  flex: 0 0 25%;
  width: 25%;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #222;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.tabitem.active {
  color: #08a170;
}

.tabicon {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eeeeee;
  color: #555;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.tabitem.active .tabicon {
  background: #08a170;
  color: #fff;
}

.site-footer {
  margin: 12px 0 0;
  padding: 10px 10px 18px;
  background: #08a170;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.footer-rule {
  height: 1px;
  max-width: 430px;
  margin: 8px auto;
  background: rgba(255, 255, 255, 0.65);
}

.play-page {
  margin: 10px 5px 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.play-head {
  position: relative;
  min-height: 42px;
  padding: 8px 70px;
  background: #f40000;
  color: #fff;
  text-align: center;
}

.play-title {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-home-link {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: 5px;
  background: #fff;
  color: #c40000;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.play-content {
  min-height: 220px;
  padding: 8px;
  background: #fff;
}

.play-empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e58989;
  border-radius: 6px;
  color: #c40000;
  font-size: 16px;
  font-weight: 900;
}

.play-scraped-html {
  overflow-x: auto;
  color: #111;
  font-size: 15px;
  line-height: 1.6;
}

.knowledge-section {
  margin: 14px 5px;
  overflow: hidden;
  border: 1px solid #08a170;
  border-radius: 8px;
  background: #fff;
}

.knowledge-title {
  margin: 0;
  padding: 8px;
  background: #08a170;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

.knowledge-content {
  padding: 8px;
}

@media screen and (max-width: 520px) {
  .site-logo img {
    max-width: 210px;
    height: 32px;
  }

  .lottery-item {
    font-size: 12px;
  }

  .play-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .mini-issue {
    flex-basis: 38px;
    font-size: 10px;
  }

  .mini-issue span {
    display: none;
  }

  .mini-num {
    height: 23px;
    line-height: 23px;
    font-size: 13px;
  }

  .mini-other {
    font-size: 8px;
  }

  .mini-plus,
  .open-plus {
    flex-basis: 8px;
    font-size: 16px;
  }

  .open-balls {
    gap: 2px;
  }

  .open-num {
    height: 28px;
    line-height: 28px;
    font-size: 15px;
  }

  .open-other {
    font-size: 9px;
  }

  .xinshui-title {
    font-size: 16px;
  }

  .xinshui-cell1,
  .xinshui-cell2,
  .xinshui-cell3 {
    font-size: 13px;
    padding-right: 3px;
    padding-left: 3px;
  }

  .xinshui-row3 {
    font-size: 13px;
  }

  .code-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media screen and (max-width: 370px) {
  .site-logo img {
    max-width: 178px;
  }

  .header-record {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 12px;
  }

  .lottery-item {
    gap: 2px;
    font-size: 12px;
  }

  .type-dot {
    width: 14px;
    height: 14px;
  }

  .play-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xinshui-cell1 {
    flex-basis: 27%;
  }

  .xinshui-cell3 {
    flex-basis: 22%;
  }
}

/* xg5666 mobile mirror overrides */
:root {
  --app-width: min(490px, 100vw);
}

html,
body {
  background: #eee4e4;
}

.page,
body {
  max-width: var(--app-width);
  background: #fff;
}

body {
  padding-bottom: 50px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  max-width: var(--app-width);
  height: 40px;
  margin: 0 auto;
  padding: 0 8px;
  gap: 0;
  background: #f00;
}

.site-logo {
  position: relative;
  height: 40px;
  align-items: center;
  color: #fff100;
  line-height: 1;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #d50000;
}

.site-logo img {
  display: none;
}

.site-logo-main {
  display: block;
  color: #fff100;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.site-logo-dot {
  color: #fff;
  font-size: 20px;
  text-shadow: 1px 1px 0 #d50000;
}

.site-logo-badge {
  position: absolute;
  top: 4px;
  right: -41px;
  padding: 1px 4px;
  border-radius: 8px;
  background: #08a170;
  color: #fff;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: none;
  white-space: nowrap;
}

.site-header-spacer {
  flex: 1;
}

.header-record {
  display: none;
}

.lottery-con {
  position: fixed;
  top: 40px;
  right: 0;
  left: 0;
  z-index: 60;
  max-width: var(--app-width);
  height: 50px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  transition: height 160ms ease;
}

.top-open .lottery-con {
  height: 110px;
}

.top-space {
  height: 90px;
  transition: height 160ms ease;
}

.top-open .top-space {
  height: 150px;
}

.lottery-tabs {
  height: 40px;
  min-height: 40px;
  margin: 4px 10px 0;
  border-color: #f00;
  border-radius: 5px;
}

.lottery-item {
  gap: 5px;
  border-right-color: #f00;
  font-size: 16px;
  font-weight: 900;
}

.lottery-active {
  background: #f00;
}

.type-dot {
  display: none;
}

.type-img {
  flex: 0 0 auto;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  line-height: 1;
}

.type-pt {
  color: #e90000;
}

.type-hk {
  color: #d70000;
}

.type-mo {
  color: #08a170;
}

.mini-wrap {
  margin: 0;
  padding: 5px 10px;
  background: #fff;
}

.mini-strip {
  min-height: 50px;
  height: 50px;
  gap: 0;
}

.mini-issue {
  flex: 0 0 50px;
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.mini-issue span {
  display: none;
}

.mini-issue strong {
  margin: 0;
  color: #333;
  font-size: 14px;
}

.mini-balls {
  gap: 0;
  align-items: flex-start;
}

.mini-ball {
  margin: 0;
}

.mini-num {
  width: 28px;
  height: 26px;
  min-width: 28px;
  border: 3px solid #aaa;
  border-radius: 50%;
  background: #fff;
  color: #1d1d1d;
  font-size: 15px;
  line-height: 20px;
}

.mini-other {
  margin-top: 3px;
  color: #666;
  font-size: 10px;
  font-weight: 500;
}

.mini-red .mini-num {
  border-color: #fb2a2a;
  background: #fff;
  color: #1d1d1d;
}

.mini-blue .mini-num {
  border-color: #2086e8;
  background: #fff;
  color: #1d1d1d;
}

.mini-green .mini-num {
  border-color: #19bf51;
  background: #fff;
  color: #1d1d1d;
}

.mini-gray .mini-num {
  border-color: #aaa;
  background: #fff;
  color: #1d1d1d;
}

.mini-plus {
  flex: 0 0 24px;
  height: 34px;
  color: #111;
  font-size: 28px;
}

.play-nav,
.xinshui,
.xinshui2 {
  display: none;
}

.main {
  padding: 0;
}

.date-pill {
  margin: 5px 10px;
  padding: 5px;
  border-radius: 5px;
  background: #f00;
  font-size: 15px;
  line-height: 1.25;
}

.adimg {
  display: block;
  margin: 0 10px;
}

.adimg img {
  border-radius: 0;
}

.forum-banner {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 3.18 / 1;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 8% 45%, rgba(255, 232, 141, 0.95) 0 18px, transparent 19px),
    radial-gradient(circle at 92% 18%, rgba(255, 232, 141, 0.85) 0 16px, transparent 17px),
    linear-gradient(90deg, rgba(48, 0, 64, 0.9), rgba(124, 8, 74, 0.85), rgba(255, 111, 42, 0.78)),
    linear-gradient(180deg, #2b053b, #a01e2f);
}

.forum-banner::before,
.forum-banner::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 230, 120, 0.45);
  content: "";
}

.forum-banner::before {
  bottom: 22px;
}

.forum-banner::after {
  bottom: 38px;
}

.forum-title {
  position: relative;
  z-index: 1;
  color: #fff44d;
  font-family: Impact, "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 3px 0 #8f1a18, 0 0 8px rgba(0, 0, 0, 0.65);
}

.forum-domain {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 4px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffbe2, #ffd87e);
  color: #0046d9;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}

.forum-domain span {
  color: #f00;
}

.open-card {
  margin: 0;
  background: #fff;
}

.open-row {
  position: relative;
  height: 130px;
  min-height: 130px;
  padding: 10px 15px;
  border: 0;
}

.open-head {
  height: 40px;
  min-height: 40px;
  margin-bottom: 10px;
}

.open-issue {
  color: #a60004;
  font-size: 16px;
}

.open-head a {
  right: 10px;
  top: 10px;
  color: blue;
  font-size: 14px;
  font-weight: 500;
}

.open-balls {
  position: absolute;
  top: 60px;
  right: 15px;
  left: 15px;
  z-index: 10;
  height: 53px;
  align-items: flex-start;
  justify-content: space-around;
  gap: 0;
  margin: 0;
}

.open-balls-wait {
  display: none;
}

.open-item {
  flex: 1 1 0;
  margin: 0 5px;
}

.open-num {
  display: flex;
  width: 38px;
  height: 38px;
  min-width: 38px;
  align-items: center;
  justify-content: center;
  border: 4px solid #aaa;
  border-radius: 50%;
  background: #fff;
  color: #1d1d1d;
  font-size: 18px;
  line-height: 1;
}

.open-red .open-num {
  border-color: #ff3030;
  background: #fff;
  color: #1d1d1d;
}

.open-blue .open-num {
  border-color: #2492ff;
  background: #fff;
  color: #1d1d1d;
}

.open-green .open-num {
  border-color: #21c75c;
  background: #fff;
  color: #1d1d1d;
}

.open-gray .open-num {
  border-color: #aaa;
  background: #fff;
  color: #777;
}

.open-other {
  margin: 5px 0 0;
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

.open-plus {
  flex: 1 1 0;
  height: 45px;
  color: #111;
  font-size: 34px;
}

.wx_jin {
  color: #fc0;
}

.wx_mu {
  color: #3c3;
}

.wx_shui {
  color: #39f;
}

.wx_huo {
  color: red;
}

.wx_tu {
  color: #c90;
}

.next-issue {
  padding: 5px 8px 8px;
  color: #c93940;
  font-size: 14px;
  font-weight: 500;
}

.notice-line {
  display: none;
}

.xinshui-con {
  margin: 0 5px 10px;
  scroll-margin-top: 154px;
}

.xinshui-title {
  height: 48px;
  padding: 0 8px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: #f00;
  font-size: 18px;
  line-height: 38px;
}

.xinshui-main {
  margin-top: -10px;
  padding: 10px 0 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.xinshui-split {
  height: 38px;
  min-height: 38px;
  padding: 0 8px;
  background: #646767;
  color: #fff;
  font-size: 16px;
  line-height: 38px;
}

.xinshui-row {
  min-height: 38px;
}

.xinshui-cell1,
.xinshui-cell2,
.xinshui-cell3 {
  min-height: 38px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 500;
}

.xinshui-cell1 {
  flex: 8 1 0;
  background: #f00;
}

.xinshui-cell2 {
  flex: 19 1 0;
}

.xinshui-cell3 {
  flex: 6 1 0;
  background: #f00;
  color: #fff;
}

.xinshui-row2 {
  display: flex;
  flex-direction: column;
}

.xinshui-row2-cell,
.xinshui-row2-head {
  min-height: 30px;
  padding: 0 4px;
  color: #555;
  font-size: 17px;
  line-height: 30px;
  font-weight: 500;
  text-align: center;
  word-break: break-all;
}

.xinshui-row3 {
  min-height: 40px;
  padding: 0 8px;
  color: #333;
  font-size: 15px;
  line-height: 40px;
  font-weight: 500;
}

.winbg {
  background: yellow;
  color: inherit;
  font-weight: inherit;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  right: 0;
  left: 0;
  width: auto;
  max-width: var(--app-width);
  height: 50px;
  margin: 0 auto;
  transform: none;
}

.tabitem {
  width: auto;
  flex: none;
  min-width: 0;
  margin-top: 0;
  gap: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
}

.tabitem > span:last-child {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.tabicon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: #999;
  font-size: 0;
}

.tabicon::before,
.tabicon::after {
  position: absolute;
  box-sizing: border-box;
  content: "";
}

.tab-home::before {
  left: 6px;
  top: 9px;
  width: 12px;
  height: 10px;
  border: 1.8px solid currentColor;
  border-top: 0;
  border-radius: 1px;
}

.tab-home::after {
  left: 6px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-top: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
}

.tab-line::before {
  left: 5px;
  top: 14px;
  width: 15px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
}

.tab-line::after {
  right: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.tab-tuku::before {
  left: 5px;
  top: 4px;
  width: 15px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 1px;
}

.tab-tuku::after {
  left: 9px;
  top: 8px;
  width: 7px;
  height: 9px;
  background: currentColor;
  opacity: 0.78;
}

.tab-helper::before {
  position: static;
  display: block;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  content: "\2301";
}

.tab-helper::after {
  display: none;
}

.tabitem.active {
  color: #08a170;
}

.tabitem.active .tabicon {
  background: transparent;
  color: #08a170;
}

.helper-page {
  min-height: calc(100vh - 140px);
  padding: 0 10px 62px;
  background: #f6f6f6;
}

.helper-title {
  height: 48px;
  margin: 0 0 8px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #f00;
  color: #fff;
  font-size: 20px;
  line-height: 44px;
  font-weight: 900;
  text-align: center;
}

.helper-toolbar {
  overflow: hidden;
  border: 1px solid #dde2e0;
  background: #fff;
}

.helper-filter {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  border-bottom: 1px solid #eeeeee;
}

.helper-filter:last-child {
  border-bottom: 0;
}

.helper-filter-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f00;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.helper-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  background: #fff;
}

.helper-chip {
  min-width: 40px;
  height: 28px;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.helper-chip-active {
  border-color: #f00;
  background: #f00;
  color: #fff;
}

.helper-summary {
  height: 38px;
  margin-top: 8px;
  background: #646767;
  color: #fff;
  font-size: 16px;
  line-height: 38px;
  font-weight: 900;
  text-align: center;
}

.helper-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border-right: 1px solid #dde2e0;
  border-bottom: 1px solid #dde2e0;
  border-left: 1px solid #dde2e0;
  background: #eeeeee;
}

.helper-number {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #222;
}

.helper-number strong {
  width: 30px;
  height: 30px;
  border: 3px solid #19bf51;
  border-radius: 50%;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}

.helper-number span {
  margin-top: 3px;
  color: #666;
  font-size: 11px;
  line-height: 1;
}

.helper-number-red strong {
  border-color: #ff3030;
}

.helper-number-blue strong {
  border-color: #2492ff;
}

.helper-number-green strong {
  border-color: #21c75c;
}

.helper-number-dim {
  opacity: 0.22;
}

@media screen and (max-width: 420px) {
  .lottery-item {
    font-size: 14px;
  }

  .open-balls {
    right: 10px;
    left: 10px;
  }

  .open-item {
    margin: 0 2px;
  }

  .open-num {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 17px;
  }

  .open-other {
    font-size: 10px;
  }

  .open-plus {
    flex: 0 0 22px;
    font-size: 30px;
  }
}

@media screen and (max-width: 370px) {
  .site-logo-main {
    font-size: 26px;
  }

  .site-logo-badge {
    right: -37px;
  }

  .forum-title {
    font-size: 38px;
  }

  .forum-domain {
    font-size: 25px;
  }

}

@media screen and (max-width: 520px) {
  .open-balls {
    right: 10px;
    left: 10px;
  }

  .open-item {
    margin: 0 2px;
  }

  .open-num {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 17px;
  }

  .open-other {
    font-size: 10px;
  }

  .open-plus {
    flex: 0 0 22px;
    font-size: 30px;
  }
}

.open-balls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) 24px minmax(0, 1fr);
  column-gap: 2px;
}

.open-item {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.open-num {
  margin-right: auto;
  margin-left: auto;
}

.open-plus {
  width: 24px;
  flex: none;
}

.open-balls-wait {
  display: none;
}
