* { box-sizing: border-box; }
html { font-size: 100px; }
html, body { margin: 0; padding: 0; }
body { background: #fff; }
body.system-announcement-open { overflow: hidden; }
.layui-layer, .layui-layer-shade { display: none !important; }
.main { width: 960px; max-width: 100%; margin: 0 auto; }
.banner img { width: 100%; object-fit: cover; }
.banner img.replica-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.box11 > div { display: none; }
.box11 > div:first-child { display: block; }

.system-announcement-layer {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .55);
}

.system-announcement-card {
  width: min(680px, calc(100vw - 36px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.system-announcement-card h2 {
  margin: 0;
  padding: 14px 18px;
  background: #168800;
  color: #fff;
  text-align: center;
  font-size: 20px;
}

.system-announcement-content {
  min-height: 90px;
  padding: 20px;
  color: #333;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  white-space: normal;
  overflow-wrap: anywhere;
}

.system-announcement-top {
  color: #0055ff;
}

.system-announcement-bottom {
  color: #e60000;
}

.system-announcement-card button {
  display: block;
  width: calc(100% - 40px);
  height: 42px;
  margin: 0 20px 20px;
  border: 0;
  border-radius: 5px;
  background: #168800;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

/* 开奖区容器：取消源站 iframe 固定高度，避免裁切 */
.iframe-conten[data-v-c5d4317e],
.iframe-box[data-v-c5d4317e] {
  height: auto !important;
  min-height: 0;
  background-color: #fff;
}

/* 对齐源站 KJ-TabBox + mydata 开奖 iframe */
.replica-lottery,
.replica-lottery * {
  box-sizing: border-box;
}

.replica-lottery {
  width: 100%;
  background: #fff;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  color: #333;
  line-height: 20px;
  font-size: 16px;
}

.replica-lottery-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border: 0;
  font-size: 14px;
  text-align: center;
}

.replica-lottery-tabs li {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 7px 4px;
  border: 1px solid gainsboro;
  border-bottom: 0;
  border-right: none;
  color: #000;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  line-height: normal;
}

.replica-lottery-tabs li:last-child {
  border-right: 1px solid gainsboro;
}

.replica-lottery-tabs li.active {
  color: limegreen;
  font-weight: bold;
  background-color: #fff;
  cursor: default;
  border-color: limegreen;
  border-left: solid 1px limegreen;
  border-right: solid 1px limegreen;
}

.replica-lottery-panel {
  display: none;
  width: 100%;
  max-width: 920px;
  border-top: 1px solid gainsboro;
  margin: -1px auto 0;
}

.replica-lottery-panel.active {
  display: block !important;
  border-color: limegreen;
}

.replica-lottery-body {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  position: relative;
}

.replica-lottery-title,
.replica-lottery-next {
  display: flex;
  height: 25px;
  min-height: 25px;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 0 0 2%;
  border-top: solid 3px #f8f8f8;
  background: #ffffcc;
  color: #000;
  font-family: SimSun, "宋体", serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 25px;
  overflow: hidden;
}

.replica-lottery-title strong,
.replica-lottery-next > span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 25px;
  line-height: 25px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
}

.replica-lottery-title a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28%;
  width: 28%;
  align-self: stretch;
  background: #ffd6ff;
  color: #000080;
  text-decoration: none;
  font-weight: bold;
  font-family: SimSun, "宋体", serif;
  font-size: 18px;
}

.replica-lottery-results {
  display: flex;
  padding: 3px 0 1px;
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #eee;
  background: #f8f8f8;
}

.replica-lottery-results:after {
  content: none;
}

.replica-lottery-results.is-hidden,
.replica-lottery-notice.is-hidden {
  display: none;
}

.replica-lottery-notice {
  height: 66px;
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #eee;
  background: #f8f8f8;
  color: #ff0000;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 66px;
}

.replica-regular-balls {
  float: none;
  flex: 6 1 0;
  width: auto;
  display: grid;
  grid-template-columns: repeat(6, 16.666%);
}

.replica-special-ball {
  float: none;
  flex: 1 1 0;
  width: auto;
  margin-left: 0;
}

.replica-ball-item {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.replica-ball-item b,
.replica-ball-item small {
  display: block;
  box-sizing: border-box;
  height: 31px;
  line-height: 30px;
  border: solid 1px #ddd;
  font-size: 24px;
  font-weight: 700;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.replica-ball-item b {
  color: #fff;
}

.replica-ball-item small {
  background: #fff;
  color: #333;
}

.ball-w1 { background: #ff0000; }
.ball-w2 { background: #0000ff; }
.ball-w3 { background: #009900; }
.ball-w0 { background: #999999; }

.replica-lottery-next em {
  color: #ff0000;
  font-style: normal;
}

.replica-lottery-next button {
  flex: 0 0 14%;
  width: 14%;
  align-self: stretch;
  height: 25px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f7f7b4;
  color: #800080;
  font: inherit;
  font-family: SimSun, "宋体", serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 25px;
  cursor: pointer;
}

/* 资料区：对齐源站标题 + 每期独占一行 */
.box.kaka .title,
.box.kaka1 .title,
.box.kaka2 .title {
  width: 100%;
  height: 0.8rem;
  line-height: 0.8rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.3rem;
  font-weight: 700;
  background: linear-gradient(to right, #02756a, #00bd35);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  color: #fff;
}

.box.kaka .title-txt,
.box.kaka1 .title-txt,
.box.kaka2 .title-txt {
  color: #fff !important;
  font-size: 0.3rem;
  font-weight: 700;
  line-height: 0.8rem;
  margin: 0;
}

.bigBox ul {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.bigBox ul li,
.kaka .data-ul li,
.kaka1 .data-ul li,
.kaka2 .data-ul li,
.box .data-ul .data-list {
  display: flex !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 5px 0 1px 2px !important;
  border-bottom: 2px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 35px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.kaka .data-ul li p,
.kaka1 .data-ul li p,
.kaka2 .data-ul li p,
.box .data-ul .data-list p {
  width: 100% !important;
  margin: 0 2px 0 0 !important;
  padding: 0 0 0 6px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 35px !important;
  text-align: left !important;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 850px) {
  html { font-size: calc(100vw / 7.5); }
  .iframe-conten[data-v-c5d4317e],
  .iframe-box[data-v-c5d4317e] {
    height: auto !important;
  }
  .replica-lottery-body {
    max-width: 100%;
  }
  .replica-lottery-tabs li {
    padding: 6px 3px;
    font-size: 12px;
  }
  .replica-lottery-title,
  .replica-lottery-next,
  .replica-lottery-title a,
  .replica-lottery-next button {
    font-size: 14px;
  }
  .replica-ball-item b,
  .replica-ball-item small {
    font-size: 20px;
  }
  .box.kaka .title,
  .box.kaka1 .title,
  .box.kaka2 .title {
    font-size: 0.48rem;
  }
  .box.kaka .title-txt,
  .box.kaka1 .title-txt,
  .box.kaka2 .title-txt {
    font-size: 0.48rem;
  }
}

.maintenance-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7f4;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.maintenance-page {
  width: min(640px, calc(100vw - 32px));
  padding: 40px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid #d7e3d7;
}

.maintenance-page h1 {
  margin: 0 0 12px;
  color: #168800;
  font-size: 22px;
}

.maintenance-page h2 {
  margin: 0 0 18px;
  color: #1f2937;
  font-size: 28px;
}

.maintenance-page p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
