html, body {
  max-width: 720px;
  margin: 0 auto;
  background: #e8eef8;
}

:root {
  --yh-blue: #1b4f9c;
  --yh-blue-deep: #143a78;
  --yh-blue-mid: #2a6fd4;
  --yh-blue-soft: #dce8f8;
  --yh-gold: #c9a227;
  --yh-gold-soft: #f0df9a;
  --yh-header: linear-gradient(180deg, #245db8 0%, #1b4f9c 55%, #163f82 100%);
  --yh-subnav: linear-gradient(180deg, #eaf2ff 0%, #d4e4fb 100%);
}

.page-root {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(27, 79, 156, 0.06), transparent 180px),
    #f4f7fc url(/moban3/bj.jpg) repeat;
  padding-bottom: 24px;
}

/* ===== 蓝金主题：头部 / 导航 / 底栏 ===== */
.header,
.header.index-header {
  background: var(--yh-header) !important;
  box-shadow: 0 2px 10px rgba(20, 58, 120, 0.28);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  width: 100% !important;
  left: 0;
  right: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.header .nav,
.nav {
  background: transparent !important;
}

.nav span,
.nav a {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.header .bank a {
  color: #f7efcf !important;
}

/* 头部：去掉居中图标后收紧，并保证品牌区不被裁切 */
.header.index-header {
  height: auto !important;
  min-height: 118px;
  padding-bottom: 2px;
  overflow: visible !important;
}

.nullbox {
  height: 126px !important;
}

.head-title-img {
  display: none !important;
}

.header .logo-box {
  width: 100% !important;
  height: auto !important;
  min-height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 6px;
  margin: 0 !important;
  float: none !important;
  overflow: visible !important;
  box-sizing: border-box;
}
/* clearfix 伪元素会变成第 3 个 flex 项，把「返回首页」挤到中间 —— 必须关掉 */
.header .logo-box.clearfix::before,
.header .logo-box.clearfix::after {
  content: none !important;
  display: none !important;
}

.header .logo {
  float: none !important;
  margin: 0 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  height: auto !important;
  overflow: visible !important;
  max-width: calc(100% - 64px);
  flex: 0 1 auto;
  order: 1;
}

.header .bank {
  float: none !important;
  margin: 0 !important;
  margin-left: auto !important;
  flex: 0 0 auto;
  width: 56px;
  height: auto !important;
  order: 2;
  text-align: center;
}

/* 左上品牌：圆标裁切方底 + 白字完整显示 */
.header .logo .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: auto;
  min-height: 48px;
  max-width: 100%;
  overflow: visible;
}
.header .logo .brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: 0 0 46px;
  background: transparent !important;
  border-radius: 50%;
  overflow: hidden;
  /* 裁掉 PNG 方底/残白边，只留圆形 */
  -webkit-mask-image: radial-gradient(circle at center, #000 66%, transparent 67%);
  mask-image: radial-gradient(circle at center, #000 66%, transparent 67%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}
.header .logo .brand-mark.is-hidden {
  display: none !important;
}
.header .logo .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
  padding-top: 1px;
  overflow: visible;
}
.header .logo .brand-text strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  white-space: nowrap;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}
.header .logo .brand-text em {
  display: block;
  margin-top: 2px;
  color: #efd27a;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.95;
}
.header .logo .logo-img,
.header .logo .brand-logo-fallback,
.header .logo .brand-jewel {
  display: none !important;
}

/* 底部五图标区：薄荷绿 → 淡蓝金 */
.subnav {
  background: var(--yh-subnav) !important;
  border: 1px solid rgba(27, 79, 156, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.subnav a {
  color: #143a78 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  font-size: 11pt !important;
  letter-spacing: 0.5px;
}
.subnav a img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(20, 58, 120, 0.22));
  border-radius: 50%;
  background: transparent;
}

.news-box,
.box.news-box {
  border-color: var(--yh-blue) !important;
}
.news-title {
  color: var(--yh-blue-deep) !important;
}

.list-title,
.sup-title {
  color: var(--yh-blue-deep) !important;
}

.module .btn {
  border: 1px solid var(--yh-blue-mid);
}
.module .btn.active {
  background: var(--yh-blue);
  border-color: var(--yh-blue);
  color: #fff;
}

.platform-list li.active,
.KJ-TabBox ul.platform-list li.on,
.KJ-TabBox ul.platform-list li.active {
  color: var(--yh-blue-deep) !important;
  border-bottom-color: var(--yh-gold) !important;
}

@media screen and (max-width: 420px) {
  .nullbox {
    height: 122px !important;
  }
  .header .logo-box {
    padding: 8px 10px 4px;
    min-height: 58px;
  }
  .header .logo .brand-text strong {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .header .logo .brand-text em {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .header .logo .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .nav span {
    font-size: 11px;
    height: 28px;
    line-height: 28px;
  }
}

.KJ-TabBox {
  overflow: visible;
  color: #333;
  background: #fff;
  border-radius: 6px;
}

.KJ-TabBox ul.platform-list {
  display: flex;
  min-height: 36px;
  padding: 8px 2px 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}

.KJ-TabBox ul.platform-list > li {
  flex: 1;
  height: 26px;
  line-height: 26px;
  margin-right: 6px;
  text-align: center;
  border-radius: 4px;
  background: #eee;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}

.KJ-TabBox ul.platform-list > li:last-child { margin-right: 0; }

.KJ-TabBox ul.platform-list > li.cur {
  color: #fff;
  background: #1fb61d;
}

.kj-lotto {
  padding: 4px 2% 12px;
  color: #000;
  font-size: 14px;
  text-align: center;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  position: relative;
}

.kj-lotto-tit {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
  padding: 4px 0 2px;
}

.kj-lotto-tit1 {
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
}

.kj-lotto-tit1 #q { color: #f00; font-weight: 700; }

.lishi {
  flex: 0 0 auto;
}

.lishi a {
  color: #07c160;
  text-decoration: none;
  white-space: nowrap;
}

#divdown1 {
  flex: 0 0 auto;
  color: #000;
  white-space: nowrap;
  font-size: 12px;
}

#timeBox { color: #d00; font-weight: 700; }

.kj-lotto-box {
  width: 100%;
  margin: 8px 0 0;
  clear: both;
  overflow: visible;
}

.kj-lotto-box ul {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.kj-lotto-box ul li {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 78px;
  height: auto !important;
  line-height: normal !important;
  list-style: none;
  padding: 8px 2px 10px;
  margin: 0;
  float: none !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kj-lotto-box ul li .ball {
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  display: inline-block;
  color: #111 !important;
  font-size: 16px;
  font-weight: 700;
  border: none;
  box-sizing: border-box;
  background-color: transparent;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
}

.kj-lotto-box ul li .sx {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #222;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ball-red {
  background-image: url("/moban3/red.png");
  color: #111 !important;
}
.ball-blue {
  background-image: url("/moban3/blue.png");
  color: #111 !important;
}
.ball-green {
  background-image: url("/moban3/green.png");
  color: #111 !important;
}

.kj-lotto-box ul li.special {
  margin-left: 4px;
  border-color: #5abaff;
  box-shadow: 0 0 0 1px #7ec8f5, 0 0 10px rgba(64, 169, 255, 0.55);
}

.kj-lotto-box ul li.special .ball {
  box-shadow: none;
}

.kj-next-line {
  margin-top: 12px;
  padding-top: 4px;
  clear: both;
  text-align: left;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.kj-next-line .next-text {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-all;
}

#nextQiShu { color: #f00; font-weight: 700; }

.btn-refresh {
  border: none;
  background: #ff6600;
  color: #ffffcc;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media screen and (max-width: 420px) {
  .nullbox { height: 120px; }
  .kj-lotto-tit {
    font-size: 12px;
    gap: 4px;
  }
  .kj-lotto-box ul {
    gap: 3px;
  }
  .kj-lotto-box ul li {
    padding: 6px 1px 8px;
    border-radius: 7px;
  }
  .kj-lotto-box ul li .ball {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
  }
  .kj-lotto-box ul li .sx {
    font-size: 11px;
    margin-top: 5px;
  }
  .kj-next-line {
    font-size: 12px;
    margin-top: 10px;
  }
}

@media screen and (max-width: 360px) {
  .kj-lotto-box ul li .ball {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 13px;
  }
  .kj-lotto-box ul li .sx {
    font-size: 10px;
  }
  .KJ-TabBox ul.platform-list > li {
    font-size: 12px;
    margin-right: 4px;
  }
}

.content-item {
  margin: 8px 4px;
}

.content-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.domain-box {
  background: transparent !important;
  border: 0 !important;
}

.domain-box .sup-title {
  margin: 6px 0;
}

.domain-box a.sup-title {
  display: block;
  text-decoration: none;
  color: #fff;
}

.module {
  margin: 10px 4px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d7e6ee;
}

.module .list-title {
  margin: 0;
}

.module .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
}

.module .btn {
  border: 1px solid #1b4f9c;
  background: #fff;
  color: #333;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.module .btn.active {
  background: #1b4f9c;
  color: #fff;
}

.module .img-box {
  padding: 0 10px 12px;
}

.module .img-box img {
  width: 100%;
  display: none;
  border-radius: 4px;
}

.module .img-box img.active { display: block; }

.text-rows { padding: 8px 10px 12px; }

.text-row {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.text-row .expect { color: #c00; font-weight: 700; margin-right: 8px; }
.text-row .note { color: #07c160; margin-left: 8px; }

.tab-form-list07 .form-data {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.tab-form-list07 .item {
  width: calc(25% - 8px);
  text-align: center;
}

.tab-form-list07 .item a {
  display: block;
  background: #f7fafc;
  border: 1px solid #e3eef3;
  border-radius: 8px;
  padding: 12px 4px;
  color: #345;
  text-decoration: none;
  font-size: 12px;
}

.hist-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.hist-tabs button {
  flex: 1;
  border: 0;
  background: #eee;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
}

.hist-tabs button.cur {
  background: #1fb61d;
  color: #fff;
}

.hist-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  background: #fff;
}

/* 致富九肖等发布区表格（对齐 zad8888） */
.tip-publish {
  margin: 8px 4px;
  overflow: hidden;
}

.tip-publish .list-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #ffff00;
  text-shadow: 0 0 8px #c00, 0 1px 1px #000;
  background: linear-gradient(transparent, #dacfcf);
  border-left: 1px solid #1b4f9c;
  border-right: 1px solid #1b4f9c;
  height: 40px;
  line-height: 40px;
}

.tip-publish-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-family: "Microsoft YaHei", sans-serif;
}

.tip-publish-table td {
  border: 1px solid #e5e5e5;
  padding: 3px 2px;
  word-break: break-all;
  vertical-align: middle;
}

.tip-publish-table .pub-head {
  background: #1b4f9c;
  color: #fff;
  font-size: 11pt;
  height: 30px;
  text-align: center;
}

.tip-publish-table .pub-left,
.tip-publish-table .pub-right {
  background: #1b4f9c;
  color: #fff;
  font-size: 11pt;
  text-align: center;
  width: 18%;
}

.tip-publish-table .pub-right {
  width: 16%;
}

.tip-publish-table .pub-mid {
  background: #fff;
  width: 66%;
  text-align: center;
  padding: 4px 6px;
}

.tip-publish-table .pub-white {
  display: inline-block;
  min-width: 70%;
  padding: 4px 8px;
  background: #fff;
  color: #f00;
  font-size: 13pt;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid #f2f2f2;
}

.tip-publish-table .cyysxz {
  display: inline;
  background: #ffff00 !important;
  color: #ff0000 !important;
  padding: 0 1px;
}

/* 赌王六尾 / 6肖18码 结果表 */
.tip-result {
  margin: 8px 4px;
  overflow: hidden;
}

.tip-result .list-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #ffff00;
  text-shadow: 0 0 8px #c00, 0 1px 1px #000;
  background: linear-gradient(transparent, #dacfcf);
  border-left: 1px solid #1b4f9c;
  border-right: 1px solid #1b4f9c;
  height: 40px;
  line-height: 40px;
}

.tip-result-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
  font-family: "Microsoft YaHei", "宋体", sans-serif;
}

.tip-result-table th {
  background: #1b4f9c !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 4px;
  border: 1px solid #1b4f9c;
  text-align: center;
}

.tip-result-table td {
  border: 1px solid #1b4f9c;
  padding: 6px 4px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  color: #000;
  font-weight: 700;
}

.tip-result-table .rt-expect {
  width: 18%;
}

.tip-result-table .rt-note {
  width: 18%;
}

.tip-result-table .rt-mid {
  width: 64%;
  color: #f00;
}

.tails-box {
  font-size: 16pt;
  line-height: 1.4;
}

.tails-br {
  color: #3399ff;
  font-weight: 700;
}

.tails-nums {
  color: #ff0000;
  font-weight: 700;
}

.tip-result-table .cyysxz {
  background: #ffff00 !important;
  color: #ff0000 !important;
  padding: 0 1px;
}

.tip-result-table .rt-mid {
  line-height: 1.55;
  font-size: 15px;
}

.tip-yxym .list-title {
  margin-bottom: 8px;
}

.tip-yxym-table {
  border-collapse: collapse;
  width: 100%;
}

.tip-yxym-table .yxym-banner {
  background: #4a6da5;
  color: #ff0;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 6px;
  border: 1px dashed #c0c0c0;
}

.tip-yxym-table .yxym-grid {
  padding: 4px 0 10px;
}

.tip-yxym-table .yxym-row {
  display: flex;
  gap: 8px;
  padding: 4px 6px;
  border: 1px dashed #c0c0c0;
  border-top: none;
  font-size: 14px;
  color: #333;
}

.tip-yxym-table .yxym-row strong {
  flex: 1 1 50%;
  font-weight: 700;
}

.tip-yxym-table .yxym-red {
  color: #f00;
}

.tip-yxym-table .yxym-blue {
  color: #00f;
}

.tip-line .list-title,
.tip-kill .list-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #ff0;
  text-shadow: 0 0 8px #c00, 0 1px 1px #000;
  background: linear-gradient(transparent, #dacfcf);
  border-left: 1px solid #1b4f9c;
  border-right: 1px solid #1b4f9c;
  height: 40px;
  line-height: 40px;
}

.tip-line-table,
.tip-kill-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.tip-line-table td,
.tip-line-table th,
.tip-kill-table th {
  border: 1px solid #1b4f9c;
  text-align: center;
  vertical-align: middle;
}

.tip-line-table .lt-head {
  background: #1b4f9c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 6px;
  line-height: 1.45;
}

.tip-line-table .lt-cell {
  padding: 6px 4px;
  height: 40px;
}

.tip-line-table .lt-p {
  margin: 0;
  font-size: 11pt;
  line-height: 1.55;
}

.tip-line-table .lt-expect {
  color: #008000;
  font-weight: 700;
}

.tip-line-table .lt-poem-green {
  color: #08ca10;
  font-weight: 700;
}

.tip-line-table .lt-note-red {
  color: #ff0000;
  font-weight: 700;
}

.tip-line-table .lt-colon {
  color: #ff0000;
}

.tip-line-table .lt-note-plain {
  color: #000;
  font-weight: 700;
}

.tip-line-table .lt-jia-ye {
  color: #ff0000;
  font-weight: 700;
}

.tip-line-table .lt-br {
  color: #3399ff;
  font-weight: 700;
}

.tip-line-table .lt-red {
  color: #ff0000;
  font-weight: 700;
}

.tip-line-table .lt-note-blue {
  color: #0000ff;
  font-weight: 700;
}

.tip-line-table .cyysxz {
  background: #ffff00 !important;
  color: #ff0000 !important;
  padding: 0 1px;
}

.tip-kill-table .kt-head th {
  color: #fff;
  background: #9e9e9e;
  font-size: 14px;
  font-weight: 700;
  height: 43px;
}

.tip-kill-table th {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  height: 43px;
  padding: 4px 2px;
}

.tip-kill-table .kt-note {
  color: #008000 !important;
}

@media screen and (max-width: 420px) {
  .tip-publish .list-title,
  .tip-result .list-title,
  .tip-line .list-title,
  .tip-kill .list-title {
    font-size: 16px;
  }
  .tip-publish-table .pub-left,
  .tip-publish-table .pub-right,
  .tip-publish-table .pub-head {
    font-size: 11px;
  }
  .tip-publish-table .pub-white {
    font-size: 12px;
    letter-spacing: 0;
    min-width: 90%;
  }
  .tails-box {
    font-size: 13pt;
  }
  .tip-result-table th {
    font-size: 12px;
  }
  .tip-result-table td {
    font-size: 12px;
  }
  .tip-result-table .rt-mid {
    font-size: 12px;
  }
  .tip-line-table .lt-head {
    font-size: 12px;
  }
  .tip-line-table .lt-p,
  .tip-line-table .lt-cell {
    font-size: 12px;
  }
  .tip-kill-table th {
    font-size: 11px;
  }
}
