/* ========== 统一文字规范：移动端与PC端协调一致 ========== */
:root {
  /* 主标题 - 各模块大标题（如：大上海『三期必中』） */
  --fs-title: 18px;
  /* 副标题/区块标题 */
  --fs-section: 14px;
  /* 正文内容 */
  --fs-body: 13px;
  /* 按钮/导航 */
  --fs-btn: 13px;
  /* 小字/辅助信息 */
  --fs-small: 12px;
  /* Loading/提示 */
  --fs-hint: 13px;
}

/* PC端（≥769px）统一放大 */
@media screen and (min-width: 769px) {
  :root {
    --fs-title: 20px;
    --fs-section: 15px;
    --fs-body: 14px;
    --fs-btn: 14px;
    --fs-small: 13px;
    --fs-hint: 14px;
  }
}

/* 小屏手机（≤480px） */
@media screen and (max-width: 480px) {
  :root {
    --fs-title: 17px;
    --fs-section: 13px;
    --fs-body: 12px;
    --fs-btn: 12px;
    --fs-small: 11px;
    --fs-hint: 12px;
  }
}

/* 超小屏幕（≤360px）适当缩小 */
@media screen and (max-width: 360px) {
  :root {
    --fs-title: 16px;
    --fs-section: 13px;
    --fs-body: 12px;
    --fs-btn: 12px;
    --fs-small: 11px;
    --fs-hint: 12px;
  }
}

/* 基础样式 */
.cgi-body {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: #333;
}

html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
}

* {
  margin: 0;
  padding: 0;
}

ul li {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  max-width: 100%;
}

td, th {
  border: 1px solid #DDD;
}

body {
  overflow: hidden;
  overflow-y: auto;
  background-attachment: fixed;
  background-position: top;
  background-color: #118be8;
}

.copyright {
  padding-top: 25px;
  font-size: var(--fs-small);
  text-align: center;
  color: #666;
}

.advert img {
  vertical-align: bottom;
}

/* 弹窗样式 */
.index_popup24 {
  z-index: 9999;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.index_popup24_layout {
  position: relative;
  padding: 1rem 0 1rem 0;
  width: 100%;
  max-width: 75rem;
  margin: 0.7rem;
  border: 1px solid rgb(103, 237, 135);
  color: #fff;
  background-color: rgb(50, 55, 56);
  background-image: linear-gradient(160deg, rgb(46, 112, 81), rgba(0, 0, 0, 0) 40%);
  border-radius: 1rem;
  max-height: 90vh;
}

.index_popup24_content_wrapper {
  max-height: 90vh;
  overflow: auto;
}

.index_popup24_title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fbedce;
  letter-spacing: 2.4px;
}

.index_popup24_content {
  text-align: center;
  margin: 5px 0 0 0;
}

.index_popup24_link_layout {
  text-align: center;
  margin: 50px 0 0 0;
  user-select: none;
}

.index_popup24_link {
  display: inline-block;
  background-image: linear-gradient(90deg, #24ee89, #9fe871);
  box-shadow: 0 0 12px #23ee884d, 0 -2px #1dca6a inset;
  width: 60%;
  height: 4rem;
  line-height: 4rem;
  text-align: center;
  color: #000;
  font-weight: 600;
  border-radius: 10rem;
  font-size: 14px;
}

.index_popup24_close {
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  text-align: center;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 500;
  user-select: none;
}

/* 浮动按钮样式 */
.btn_betting-image07-layout {
  position: fixed;
  bottom: 165px;
  right: 15px;
  z-index: 998;
}

.btn_betting-image07-container {
  position: relative;
  display: inline-block;
}

.btn_betting-image07-imgContainer {
  position: relative;
  width: 130px;
  height: auto;
  font-size: 6px;
}

.btn_betting-image07-img {
  display: block;
  width: 100%;
  height: auto;
  z-index: 999;
}

.btn_betting-image07-close {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  position: absolute;
  top: -28px;
  right: 0;
  background-color: #DC1C15;
  border-radius: 50%;
  padding: 3px;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 998;
}

.btn_betting-image07-title {
  position: absolute;
  top: 3%;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.btn_betting-image07-subtitle {
  position: absolute;
  top: 14%;
  right: 0;
  padding: 0 8px 0 0;
  pointer-events: none;
}

.btn_betting-image07-content {
  width: 100%;
  position: absolute;
  top: 50%;
  padding: 0 0 0 20px;
  pointer-events: none;
  box-sizing: border-box;
}

.btn_betting-image07-authorName {
  position: absolute;
  bottom: 3%;
  width: 100%;
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  color: transparent;
  background: linear-gradient(to bottom, #FFD700, #FFFF00, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

.btn_betting-image07-authorName-border {
  position: absolute;
  bottom: 3%;
  width: 100%;
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  color: #00000000;
  text-shadow: -1px -1px 1px #C35115, -1px 1px 1px #C35115, 1px -1px 1px #C35115, 1px 1px 1px #C35115;
  pointer-events: none;
}

@media (min-width: 800px) {
  .btn_betting-image07-layout {
    right: calc((100vw - 800px) / 2);
  }
}

@media screen and (max-width: 624px) {
  .btn_betting-image07-close {
    transform: scale(0.7);
  }
  .btn_betting-image07-imgContainer {
    width: 100px;
  }
  .btn_betting-image07-title {
    top: 2%;
  }
  .btn_betting-image07-title p,
  .btn_betting-image07-title span {
    font-size: 10px !important;
  }
  .btn_betting-image07-subtitle {
    top: 14%;
  }
  .btn_betting-image07-subtitle p,
  .btn_betting-image07-subtitle span {
    font-size: 12px !important;
  }
  .btn_betting-image07-content {
    top: 47%;
    padding: 0 0 0 12px;
  }
  .btn_betting-image07-content p,
  .btn_betting-image07-content span {
    font-size: 14px !important;
  }
  .btn_betting-image07-content tr,
  .btn_betting-image07-content td {
    line-height: 1.2 !important;
  }
  .btn_betting-image07-content table {
    height: 50px !important;
  }
  .btn_betting-image07-authorName-border {
    font-size: 14px !important;
  }
  .btn_betting-image07-authorName {
    font-size: 14px !important;
  }
}

.btn_betting-image07-layoutart8 {
  bottom: 30px !important;
}

@media screen and (max-width: 624px) {
  .btn_betting-image07-layoutart8 {
    bottom: 30px !important;
  }
}

/* 广播样式 */
#broadcastStr {
  border-radius: 32px;
  background: red;
  opacity: 0;
  padding: 10px 10px 10px 18px;
  font-size: 14px;
  color: yellow;
  transition: opacity 1s ease-in-out;
}

.lottery_broadcast {
  position: fixed;
  z-index: 9;
  left: 50%;
  margin-left: -180px;
  bottom: 63px;
  text-align: center;
}

@media (max-width: 450px) {
  .lottery_broadcast {
    margin-left: -170px;
  }
}

@media (max-width: 320px) {
  .lottery_broadcast {
    left: 57%;
  }
  #broadcastStr {
    font-size: 12px;
  }
}

/* 主题样式 */
.cgi-body {
  background-image: none;
  border: none !important;
  background-color: #170013;
}

body {
  background-size: auto;
  background-image: none;
  background-repeat: repeat;
}

#content-css19 .xf .nav2 ul li a {
  display: block;
  padding: 3px 0;
  text-align: center;
  color: #7e0053;
  border-radius: 10px;
  background: linear-gradient(0deg, #ffffff, #ebebeb 15%, #fff) !important;
  box-shadow: 1px 2px 5px #cecece;
  font-weight: bold;
  font-size: var(--fs-btn);
  padding: 8px 0 !important;
}

#content-css19 .box {
  background-color: #160014;
}

/* 特码属性、头数、尾数、生肖饮食的白色背景覆盖 */
#content-css19 .special-property-container,
#content-css19 .special-property-content,
#content-css19 .jingxuan-wubuzhong,
#content-css19 .jingxuan-wubuzhong .item,
#content-css19 .jingxuan-wubuzhong .item.header,
#content-css19 .jingxuan-wubuzhong .qishu,
#content-css19 .jingxuan-wubuzhong .box,
#content-css19 .jingxuan-wubuzhong .box2 {
  background-color: #ffffff !important;
}

/* 确保文字颜色正确 */
#content-css19 .jingxuan-wubuzhong .qishu.color-zise {
  color: #800080 !important;
}

#content-css19 .jingxuan-wubuzhong .box.color-red {
  color: #ff0000 !important;
}

#content-css19 .jingxuan-wubuzhong .box2.color-anhong {
  color: #8b0000 !important;
}

#content-css19 .box .KJ-TabBox28 {
  padding: 46px 3% 28px 3% !important;
  background-position: 0;
  border-radius: 0;
  background: url('images/kj-bg.jpg');
  box-shadow: none;
  background-size: 100% 98%;
  background-position: center;
  background-repeat: no-repeat;
}

#content-css19 .box .KJ-TabBox28 li.cur {
  background: url('images/kj-bu.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#content-css19 .box .KJ-TabBox28 li {
  background: url('images/kj-bu-h.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #666666;
}

#content-css19 .bu-live .dz_content07 {
  text-align: center;
  background: linear-gradient(to top, #43003d, #b30050);
  line-height: 55px;
  border-radius: 0px;
}

#content-css19 .bu-live .dz_content07 .location_to {
  padding: 10px;
  background: transparent;
  border-radius: 0px;
  font-size: var(--fs-section);
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: none;
}

#content-css19 .advert {
  background-color: #fff;
  margin: 0;
  padding: 0;
  display: none; /* 隐藏广告区域，减少间距 */
}

/* 广告区文字 - 与全局统一 */
.advert-text {
  font-size: var(--fs-body);
}

#content-css19 .box-theme01 {
  margin: 0;
  margin-bottom: 0 !important;
}

#content-css19 .box-theme01 .dz_title22 {
  width: 100%;
  background: transparent;
  display: inherit;
  align-items: center;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  margin-bottom: 0 !important;
}

#content-css19 .box-theme01 .dz_title22 .dz_title22-l,
#content-css19 .box-theme01 .dz_title22 .dz_title22-r {
  display: none;
}

#content-css19 .box-theme01 .dz_title22 .dz_title22-content {
  font-size: var(--fs-title);
  color: #fff;
  text-align: center;
  background: url('images/title-bg.png');
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
  padding: 10px 0;
  font-weight: bold;
  text-shadow: 0px 0px 10px #ff0000, 0px 0px 10px #ff0000;
  margin: 0;
}

#content-css19 .box-theme01 .title_list45V3 {
  min-height: 0px;
  padding: 0;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0px 0px 6px 2px #ff0000;
  margin: 0;
}

#content-css19 .box-theme01 .title_list45V3-container {
  padding: 0;
}

#content-css19 .box-theme01 .lace {
  min-height: 0px;
  padding: 0;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0px 0px 6px 2px #ff0000;
}

#content-css19 .m-b-10 {
  margin-bottom: 0;
}

#content-css19 .m-b-20 {
  margin-bottom: 0 !important;
}

#content-css19 .box-theme01 .tab-form-list03D1S .container .form-data .item {
  padding: 0 8px;
  border: 1px solid #e3e3e3;
  border-bottom: 1px solid #b4b4b4;
}

#content-css19 .box-theme01 .index_footer01 .mdui-card {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

#content-css19 .box-theme01 .mdui-card-content {
  padding: 0;
  padding-right: 0;
}

#content-css19 .KJ25 {
  margin: 0;
  border-radius: 0px;
  backdrop-filter: none;
  padding: 10px 5px 5px;
  background: #fff;
  box-shadow: none;
}

#content-css19 .box-theme01 .contentbox16fas {
  width: 100%;
  box-shadow: none;
  margin: 0;
}

@media screen and (max-width: 450px) {
  #content-css19 .xf .nav2 ul li a {
    font-size: var(--fs-btn);
  }
  #content-css19 .box .KJ-TabBox28 {
    padding: 22px 3% 5px 3% !important;
    background-size: 99% 98%;
  }
  #content-css19 .box .KJ-TabBox28 div.cur {
    margin: -3px 0 0;
  }
  #content-css19 .m-b-20 {
    margin-bottom: 10px;
  }
  #content-css19 .box-theme01 .dz_title22 .dz_title22-content {
    font-size: var(--fs-title);
    background-size: 100%;
    padding: 10px 0;
  }
  #content-css19 .box-theme01 .tab-form-list03D1S .container .form-data .item .title {
    width: 70%;
  }
  #content-css19 .box-theme01 .tab-form-list03D1S .container .form-data .item .author {
    width: 30%;
  }
  #content-css19 .KJ25,
  #content-css19 .kj-lotto {
    padding: 0px;
  }
}

/* 导航样式 - 每行5个按钮 */
.nav2 {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 2px;
  font-size: 13px;
  background: #fff;
  overflow: hidden;
}

.nav2 ul {
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
}

.nav2 ul li {
  width: 20%; /* 每行5个按钮，每个占20%宽度 */
  box-sizing: border-box;
  padding: 0 2px;
  flex: 0 0 auto; /* 防止按钮伸缩 */
}

.nav2 ul li a {
  display: block;
  padding: 3px 0;
  text-align: center;
  color: #fff;
  border-radius: 50px;
  background: #00bfff;
  white-space: nowrap; /* 防止文字换行 */
  overflow: hidden;
  text-overflow: ellipsis; /* 文字过长时显示省略号 */
  font-size: var(--fs-btn);
  line-height: 1.2;
}

.nav2 ul li a:hover {
  background: #da183b;
}

.nav-img {
  text-align: center;
  background: #000;
}

.nav-img img {
  width: auto;
  height: 50px;
}

@media screen and (max-width: 800px) {
  .nav-img img {
    height: 70px;
  }
}

@media screen and (min-width: 800px) {
  .nav2 {
    padding: 4px;
    font-size: 16px;
  }
  .nav2 ul {
    padding: 4px 0;
  }
  .nav2 ul li {
    padding: 0 4px;
  }
  .nav2 ul li a {
    padding: 5px 0;
    cursor: pointer;
  }
}

/* 标题样式 */
.dz_title22 {
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 5px;
  box-shadow: inset 0 0 8px 0 #00000059;
}

.dz_title22-l {
  width: 10%;
  border-radius: 5px 0 0 5px;
  margin-right: auto;
  height: 3em;
  clip-path: polygon(0 0, 100% 0%, 58% 100%, 0% 100%);
  background: #556324;
  box-shadow: inset 0 0 5px 0 #00000080;
}

.dz_title22-r {
  width: 10%;
  border-radius: 0 5px 5px 0;
  height: 3em;
  clip-path: polygon(45% 0, 100% 0%, 100% 100%, 0% 100%);
  background: #556324;
  margin-left: auto;
  box-shadow: inset 0 0 5px 0 #00000080;
}

.dz_title22-content {
  text-align: center;
  margin-right: auto;
  margin-left: auto;
  font-size: var(--fs-title);
  font-weight: bolder;
  color: #014d00;
}

/* 内容区域样式 */
.dz_content07 {
  text-align: center;
  background: linear-gradient(to top, #9C27B0, #2196F3);
  line-height: 55px;
  border-radius: 5px;
}

.location_to {
  padding: 10px;
  background: beige;
  border-radius: 15px;
  font-size: 20px;
  color: #F44336;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 2px 2px 1px #f44336;
}

/* 开奖样式 */
.KJ-TabBox28 {
  padding: 15px 3% 2px 3% !important;
  background-position: -12px -24px, top -11px right -24px, top, bottom, center;
  background-repeat: no-repeat;
  background-size: auto;
  background-color: #074072;
  border-radius: 15px;
  box-shadow: inset 0px 0px 90px 0px #000;
}

.KJ-TabBox28 ul, .KJ-TabBox28 li {
  margin: 0;
  list-style: none;
  padding: 0;
  border: 0;
  font-size: 14px;
  text-align: center;
}

.KJ-TabBox28 li {
  display: inline-block;
  border: 1px solid darkgrey;
  padding: 5px;
  border-bottom: 0;
  color: darkgrey;
  cursor: pointer;
  border-left: none;
  width: 25%;
  box-sizing: border-box;
  color: #33767e;
  font-size: var(--fs-section);
  font-weight: bold;
  text-align: center;
  padding: 10px 0 10px 0;
  text-shadow: #000 0px 0px 8px;
  border-left: none;
  border-color: transparent !important;
  background: url('images/kj-bu-h.png');
  background-repeat: no-repeat;
  background-position: 0px 0px;
  background-size: 99% 99%;
  margin: 5px;
}

.KJ-TabBox28 li:first-child {
  border-left: solid 1px;
}

.KJ-TabBox28 li.cur {
  font-weight: bold;
  cursor: default;
  border-left: none;
  border-right: none;
  color: #fff !important;
  background: url('images/kj-bu.png');
  background-repeat: no-repeat;
  background-position: 0px 0px;
  background-size: 100%;
}

.KJ-TabBox28 div {
  border-top: 1px solid gainsboro;
  margin-top: -1px;
  display: none;
}

.KJ-TabBox28 div.cur {
  display: block !important;
  border-color: transparent !important;
  margin: 5px 0 0;
}

.KJ-TabBox28 .KJ-IFRAME28 {
  background: transparent;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 0 0 6px 6px;
}

@media screen and (max-width: 700px) {
  .KJ-TabBox28 li.cur {
    background-position: 12px 3px;
  }
}

@media screen and (max-width: 650px) {
  .KJ-TabBox28 li.cur {
    background-position: 7px 3px;
  }
}

@media screen and (max-width: 600px) {
  .KJ-TabBox28 li.cur {
    background-position: 3px 3px;
  }
}

@media screen and (max-width: 450px) {
  .KJ-TabBox28 li {
    width: 40%;
    background-size: 99% 96%;
    background-position-y: 3px;
  }
  .KJ-TabBox28 li.cur {
    background-size: 99% 99%;
  }
  .KJ-TabBox28 {
    height: 285px;
    margin: 0px;
    padding: 9px 1% 10px 1% !important;
  }
}

/* API切换器样式 */
.api-switcher {
  text-align: center;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #e0e0e0;
}

.api-switcher:last-child {
  border-bottom: none;
}

.api-btn {
  background: #0f0274;
  color: white;
  border: none;
  padding: 12px 20px;
  margin: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: var(--fs-btn);
  transition: all 0.3s;
  height: 40px;
  line-height: 16px;
  border-right: 1px solid #fff;
}

.api-btn:hover {
  background: #120373;
  transform: none;
}

.api-btn.active {
  background: #ff0000;
  box-shadow: none;
}

.api-btn:last-child {
  border-right: none;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.error {
  text-align: center;
  padding: 20px;
  color: #ff0000;
  background: #ffff00;
  border-radius: 5px;
  margin: 10px;
  font-weight: bold;
}

/* 红色文字添加黄色背景 */
span[style*="color:red"] {
  background-color: yellow !important;
}

.prediction-item {
  margin: 10px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #2b0893;
}

.prediction-item.current {
  background: #e8f5e8;
  border-left-color: #900404;
}

.prediction-period {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  font-size: var(--fs-body);
}

.prediction-content {
  color: #666;
  line-height: 1.5;
  font-size: var(--fs-body);
}

.prediction-result {
  margin-top: 8px;
  font-weight: bold;
  color: #4CAF50;
}

/* 列表样式 */
.title_list45V3 {
  min-height: 160px;
  text-align: center;
  background-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 18px 0px;
  background: url('images/gp-top.jpg'), url('images/gp-body.jpg');
  background-position: top left, top center;
  background-repeat: no-repeat, repeat-y;
  background-size: 100% auto, 100% auto;
  flex-direction: column;
}

.title_list45V3-container {
  width: 100%;
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  background: white;
}

.title_list45V3-footer {
  width: 800px;
  height: 60px;
  background: url('images/gp-bottom.jpg') 0 0 no-repeat;
  background-size: 100% 100%;
  margin-bottom: 2px;
}

.title_list45V3 td {
  height: 40px !important;
}

@media screen and (max-width: 650px) {
  .title_list45V3 {
    padding: 10px 20px 0;
  }
  .title_list45V3-container {
    padding: 10px;
  }
  .title_list45V3-footer {
    width: 100%;
    height: 30px;
  }
  .api-btn {
    padding: 8px 12px;
    font-size: var(--fs-btn);
    margin: 0;
    height: 35px;
    line-height: 14px;
    border-right: 1px solid #fff;
  }
  .api-btn:last-child {
    border-right: none;
  }
}

/* 图片展示样式 - 优化版 */
.image-gallery-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 15px;
  padding: 15px;
  border: 2px solid #760202;
}

.image-gallery {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: start;
}

.image-grid-item {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.image-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-color: #760202;
}

.image-grid-title {
  background: linear-gradient(135deg, #760202, #a30000);
  color: white;
  padding: 10px 8px;
  text-align: center;
  font-weight: bold;
  font-size: var(--fs-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 2px solid #ffd700;
}

.image-grid-container {
  padding: 12px;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #f8f9fa;
}

.image-grid-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-grid-container img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 响应式设计 - 手机端优化 */
@media screen and (max-width: 768px) {
  .image-gallery-container {
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    padding: 8px;
  }
  
  .image-grid-item {
    min-height: 140px;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    box-shadow: none;
  }
  
  .image-grid-title {
    padding: 8px 6px;
    border-bottom: 1px solid #ffd700;
  }
  
  .image-grid-container {
    padding: 8px;
    min-height: 100px;
  }
  
  .image-grid-container img {
    border-radius: 0;
  }
}

/* 超小屏幕优化 */
@media screen and (max-width: 480px) {
  .image-gallery-container {
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
    padding: 6px;
  }
  
  .image-grid-item {
    min-height: 120px;
    border-radius: 0;
  }
  
  .image-grid-title {
    padding: 6px 4px;
  }
  
  .image-grid-container {
    padding: 6px;
    min-height: 80px;
  }
}

/* 图片自适应处理 */
.image-grid-container img[style*="width"] {
  max-width: 100% !important;
  height: auto !important;
}

.image-grid-container img[style*="height"] {
  max-height: 100% !important;
  width: auto !important;
}

/* 确保图片不会溢出容器 */
.image-grid-container {
  overflow: hidden;
}

.image-grid-container img {
  display: block;
  margin: 0 auto;
}

.image-item {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-title {
  background: #760202;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: var(--fs-section);
}

.image-container {
  padding: 15px;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.02);
}

.special-image-container {
  text-align: center;
}

.special-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.image-container:hover img {
  transform: scale(1.02);
}

/* 全屏图片样式 */
.image-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
}

.image-fullscreen-overlay img {
  max-width: 95%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  object-fit: contain;
}

/* 响应式设计 - 手机端优化 */
@media screen and (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  
  .image-item {
    padding: 10px;
    margin: 0 5px;
  }
  
  .image-title {
    padding: 6px;
    margin-bottom: 6px;
  }
  
  .image-container {
    border-radius: 4px;
    margin-bottom: 6px;
  }
  
  .image-container img {
    max-height: 200px;
    object-fit: cover;
  }
  
  /* 手机端全屏图片优化 */
  .image-fullscreen-overlay img {
    max-width: 98%;
    max-height: 80vh;
    border-radius: 8px;
  }
}

/* 特殊图片容器样式 */
.special-image-container {
  width: 100%;
  text-align: center;
  margin: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.special-image-container img {
  width: auto;
  max-width: 100%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
  display: block;
  margin: 0 auto;
}

/* 手机端特殊图片优化 */
@media screen and (max-width: 768px) {
  .special-image-container {
    margin: 0;
  }
  
  .special-image-container img {
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .special-image-container {
    margin: 0;
  }
}

/* 超小屏幕优化 */
@media screen and (max-width: 480px) {
  .image-gallery {
    gap: 10px;
    padding: 10px;
  }
  
  .image-item {
    padding: 8px;
  }
  
  .image-title {
    padding: 5px;
  }
  
  .image-container img {
    max-height: 180px;
  }
  
  .special-image-container {
    padding: 8px;
    margin-top: 8px;
  }
}

/* 加载动画 */
.loading {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: var(--fs-hint);
}

.error {
  text-align: center;
  padding: 20px;
  color: #ff0000;
  background: #ffff00;
  border-radius: 5px;
  margin: 10px;
  font-weight: bold;
}

/* 固定导航样式 */
.fixed-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.fixed-nav[data-fixed="fixed"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fixed-nav[data-fixed="fixed"] .nav2 {
  max-width: 800px;
  margin: 0 auto;
}

/* 导航锚点区域 */
.nav-anchor {
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

/* 导航点击效果 */
.nav2 ul li a {
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav2 ul li a:hover {
  background: #da183b !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



/* 响应式导航调整 - 使用CSS变量 */
@media screen and (max-width: 800px) {
  .fixed-nav {
    position: sticky;
    top: 0;
  }
  
  .nav2 ul li a {
    padding: 6px 0 !important;
  }
}

@media screen and (max-width: 480px) {
  .nav2 ul li a {
    padding: 4px 0 !important;
  }
}

/* 轮播图片区域样式 - 优化版：图片铺满容器，渐渐显示动画 */
.display-image-container {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: transparent !important; /* 改为透明背景，移除黑色边框 */
  border: none !important; /* 强制移除边框 */
  box-shadow: none !important; /* 强制移除阴影 */
  border-radius: 0 !important; /* 强制移除圆角 */
  min-height: 300px; /* 增加最小高度 */
  height: 300px; /* 固定高度，确保图片能正确填充 */
  margin-bottom: 0 !important;
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

.display-image-slider {
  width: 100%;
  height: 100%; /* 填充容器高度 */
  position: relative;
}

.display-image-slide {
  width: 100%;
  height: 100%; /* 填充容器高度 */
  position: absolute; /* 绝对定位，实现叠加效果 */
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* 延长过渡时间，实现渐渐显示效果 */
  display: block; /* 始终显示，通过opacity控制 */
  padding: 0;
  box-sizing: border-box;
  z-index: 0;
  border: none !important; /* 强制移除边框 */
  outline: none !important; /* 强制移除轮廓线 */
}

.display-image-slide.active {
  opacity: 1;
  z-index: 1;
}

.display-image-slide img {
  width: 100% !important; /* 强制宽度100% */
  height: 100% !important; /* 强制高度100% */
  max-height: none !important; /* 移除最大高度限制 */
  object-fit: fill !important; /* 改为fill，使图片填充容器，消除间隙 */
  display: block;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  -webkit-user-drag: none; /* 禁止拖动 */
  user-select: none; /* 禁止选择 */
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
  background: transparent !important; /* 改为透明背景，移除黑色边框 */
}

.display-image-slide img:hover {
  transform: none;
  transition: none;
}

.display-image-loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 10px;
}

.display-image-error {
  text-align: center;
  padding: 20px;
  color: #ff0000;
  background: #ffff00;
  border-radius: 5px;
  margin: 10px;
  font-weight: bold;
}

/* 轮播指示器 - 隐藏 */
.display-image-indicators {
  display: none !important;
}

.display-image-indicator {
  display: none !important;
}

/* 轮播控制按钮 - 隐藏 */
.display-image-controls {
  display: none !important;
}

.display-image-prev,
.display-image-next {
  display: none !important;
}

/* 响应式轮播调整 - 优化移动端显示 */
@media screen and (max-width: 768px) {
  .display-image-container {
    min-height: 250px;
    height: 250px; /* 手机端固定高度 */
    border: none !important; /* 确保移动端无边框 */
    box-shadow: none !important; /* 确保移动端无阴影 */
    background: transparent !important; /* 移动端透明背景 */
  }
  
  .display-image-slide {
    transition: opacity 1.2s ease-in-out; /* 移动端稍快的过渡 */
  }
  
  .display-image-slide img {
    max-height: none !important; /* 移除最大高度限制 */
    object-fit: fill !important; /* 改为fill，使图片填充容器，消除间隙 */
    background: transparent !important; /* 移动端透明背景 */
  }
  
  .display-image-prev,
  .display-image-next {
    display: none !important; /* 隐藏移动端控制按钮 */
  }
  
  .display-image-indicator {
    display: none !important; /* 隐藏移动端指示器 */
  }
  
  .display-image-indicator.active {
    display: none !important; /* 隐藏移动端激活指示器 */
  }
}

@media screen and (max-width: 480px) {
  .display-image-container {
    min-height: 200px;
    height: 200px; /* 小屏幕手机固定高度 */
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important; /* 小屏幕透明背景 */
  }
  
  .display-image-slide {
    transition: opacity 1s ease-in-out; /* 小屏幕更快的过渡 */
  }
  
  .display-image-slide img {
    max-height: none !important;
    object-fit: fill !important; /* 改为fill，使图片填充容器，消除间隙 */
    background: transparent !important; /* 小屏幕透明背景 */
  }
  
  .display-image-prev,
  .display-image-next {
    display: none !important; /* 隐藏小屏幕控制按钮 */
  }
  
  .display-image-indicator {
    display: none !important; /* 隐藏小屏幕指示器 */
  }
  
  .display-image-indicator.active {
    display: none !important; /* 隐藏小屏幕激活指示器 */
  }
  
  .display-image-loading {
    padding: 20px;
    font-size: 16px;
  }
}

/* 确保在所有设备上图片都能完全铺满且无边框 */
.display-image-container * {
  box-sizing: border-box !important;
}

.display-image-slider,
.display-image-slide,
.display-image-slide img {
  box-sizing: border-box !important;
  -webkit-box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
}

/* 内幕资料按钮样式 */
.insider-buttons {
  background: #fff;
  padding: 15px;
  border-radius: 0;
  margin: 0;
}

.insider-buttons ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
}

.insider-buttons li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insider-buttons a {
  display: block;
  padding: 12px 15px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: var(--fs-section);
  border: 2px solid #ddd;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.insider-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #00bfff;
  background: linear-gradient(135deg, #e3e7f1 0%, #b8c6db 100%);
}

.insider-buttons a:active {
  transform: translateY(-1px);
}

.insider-buttons a i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #00bfff;
}

.insider-buttons a em {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 12px;
  color: #ff0000;
  font-weight: bold;
}

.insider-buttons b {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  font-size: var(--fs-body);
}

.insider-buttons b.wr {
  color: #ff0000;
  background: #fff0f0;
  border: 1px solid #ff0000;
}

.insider-buttons b.wsb {
  color: #0066cc;
  background: #f0f8ff;
  border: 1px solid #0066cc;
}

.insider-buttons b.wp {
  color: #009900;
  background: #f0fff0;
  border: 1px solid #009900;
}

/* 响应式设计 - 使用CSS变量统一 */
@media screen and (max-width: 768px) {
  .insider-buttons ul {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
  }
  
  .insider-buttons a {
    padding: 10px 12px;
  }
  
  .insider-buttons b {
    padding: 1px 4px;
  }
}

@media screen and (max-width: 480px) {
  .insider-buttons ul {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .insider-buttons a {
    padding: 8px 10px;
  }
}

/* 实时预测数据样式 - 优化版：PC大文字，手机紧凑布局 */
.real-time-prediction {
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  width: 100%;
}

/* PC端样式 - 大文字，原有布局 */
.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  background: #760202;
  color: white;
  padding: 12px 15px;
  border-radius: 0;
}

.prediction-title {
  font-size: var(--fs-section);
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.prediction-stats {
  display: flex;
  gap: 12px;
  font-size: var(--fs-small);
  color: #ffd700;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px; /* PC端增大内边距 */
  border-radius: 4px;
  border: none;
}

.stat-item span {
  font-weight: bold;
  color: white;
  font-size: var(--fs-body);
}

.prediction-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* PC端增大最小宽度 */
  gap: 0;
  background: #f8f9fa;
  padding: 12px; /* PC端增大内边距 */
  border-radius: 0;
}

.prediction-section {
  background: white;
  border-radius: 0;
  padding: 10px; /* PC端增大内边距 */
  border: none;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.prediction-section:last-child {
  border-right: none;
}

.section-title {
  font-size: var(--fs-section);
  font-weight: bold;
  color: #760202;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.section-content {
  font-size: var(--fs-body);
  color: #333;
}

.zodiacs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px; /* PC端增大间距 */
  margin-bottom: 8px;
}

.zodiacs span {
  background: #760202;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: var(--fs-body);
  border: none;
}

.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px; /* PC端增大间距 */
}

.numbers span {
  background: #2b0893;
  color: white;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: var(--fs-small);
  font-weight: bold;
  border: none;
}

.random-data {
  display: flex;
  flex-direction: column;
  gap: 8px; /* PC端增大间距 */
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-item .label {
  color: #666;
  font-weight: bold;
  font-size: var(--fs-small);
}

.data-item .value {
  background: #760202;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  font-size: var(--fs-small);
  border: none;
}

.two-in-two {
  display: flex;
  flex-direction: column;
  gap: 10px; /* PC端增大间距 */
}

.two-in-two-group {
  display: flex;
  gap: 10px; /* PC端增大间距 */
  justify-content: center;
}

.two-in-two-number {
  background: #2b0893;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: var(--fs-section);
  min-width: 40px;
  text-align: center;
  border: none;
}

.next-draw {
  font-size: var(--fs-section);
  font-weight: bold;
  color: #760202;
  text-align: center;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

/* 响应式设计 - 平板端：使用:root变量自动适配 */
@media screen and (max-width: 1024px) {
  .prediction-stats {
    gap: 10px;
  }
  
  .stat-item {
    padding: 3px 7px;
  }
  
  .zodiacs span {
    padding: 3px 7px;
  }
  
  .numbers span {
    padding: 2px 6px;
  }
  
  .two-in-two-number {
    padding: 4px 9px;
  }
}

/* 响应式设计 - 手机端：使用:root变量，保持布局一致 */
@media screen and (max-width: 768px) {
  .real-time-prediction {
    margin: 0;
    padding: 0;
    max-height: none;
  }
  
  .prediction-header {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px 12px;
  }
  
  .prediction-title {
    width: auto;
    text-align: left;
  }
  
  .prediction-stats {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }
  
  .stat-item {
    padding: 3px 6px;
    flex: none;
    text-align: center;
    min-width: auto;
  }
  
  .prediction-content {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 手机端使用与PC相同的grid布局，但最小宽度减小 */
    gap: 0;
    padding: 10px; /* 手机端适当内边距 */
    display: grid; /* 保持grid布局 */
  }
  
  .prediction-section {
    padding: 8px; /* 手机端适当内边距 */
    border-right: 1px solid #f0f0f0; /* 保持与PC相同的边框 */
    border-bottom: 1px solid #f0f0f0; /* 保持与PC相同的边框 */
    min-height: auto; /* 移除最小高度 */
  }
  
  .prediction-section:last-child {
    border-right: none; /* 保持与PC相同的边框 */
  }
  
  .section-title {
    margin-bottom: 6px;
    padding-bottom: 4px;
  }
  
  .zodiacs {
    gap: 4px; /* 手机端适当间距 */
    margin-bottom: 6px;
  }
  
  .zodiacs span {
    padding: 3px 6px;
  }
  
  .numbers {
    gap: 3px;
  }
  
  .numbers span {
    padding: 2px 5px;
  }
  
  .random-data {
    gap: 6px; /* 手机端适当间距 */
  }
  
  .data-item {
    margin-bottom: 4px;
  }
  
  .data-item .value {
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
    border: none;
  }
  
  .two-in-two {
    gap: 8px; /* 手机端适当间距 */
  }
  
  .two-in-two-group {
    gap: 8px; /* 手机端适当间距 */
  }
  
  .two-in-two-number {
    padding: 4px 8px;
    min-width: 35px;
  }
  
  /* 手机端：标题和时间在同一行显示，框铺满宽度 */
  .prediction-section:last-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    grid-column: 1 / -1; /* 占据所有列，铺满宽度 */
    width: 100%;
    box-sizing: border-box;
    border-right: none !important; /* 移除右边框，因为铺满宽度 */
    border-bottom: 1px solid #f0f0f0; /* 保持底部边框 */
  }
  
  .prediction-section:last-child .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    white-space: nowrap;
    flex-shrink: 0; /* 防止标题缩小 */
    background: #760202;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
  }
  
  .prediction-section:last-child .section-content {
    flex: 1;
    min-width: 0; /* 允许内容缩小 */
    display: flex;
    justify-content: flex-end;
  }
  
  .next-draw {
    padding: 6px;
    white-space: nowrap; /* 防止换行 */
    overflow: visible; /* 允许内容溢出，确保完整显示 */
    text-overflow: clip; /* 不使用省略号 */
    text-align: left; /* 从左到右显示 */
    width: auto; /* 自动宽度，确保完整显示 */
    min-width: 0; /* 允许缩小 */
    display: block; /* 块级元素 */
    box-sizing: border-box; /* 包含内边距 */
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: #760202;
  }
}

/* 超小屏幕优化 - 使用:root变量自动适配 */
@media screen and (max-width: 480px) {
  .real-time-prediction {
    margin: 0;
    padding: 0;
  }
  
  .prediction-header {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
  }
  
  .prediction-stats {
    gap: 6px;
  }
  
  .stat-item {
    padding: 2px 5px;
  }
  
  .prediction-content {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 8px;
  }
  
  .prediction-section {
    padding: 6px;
  }
  
  .section-title {
    margin-bottom: 4px;
    padding-bottom: 3px;
  }
  
  .zodiacs {
    gap: 3px;
    margin-bottom: 4px;
  }
  
  .zodiacs span {
    padding: 2px 5px;
  }
  
  .numbers {
    gap: 2px;
  }
  
  .numbers span {
    padding: 1px 4px;
  }
  
  .random-data {
    gap: 4px;
  }
  
  .data-item .value {
    padding: 2px 5px;
    min-width: 30px;
  }
  
  .two-in-two {
    gap: 6px;
  }
  
  .two-in-two-group {
    gap: 6px;
  }
  
  .two-in-two-number {
    padding: 3px 6px;
    min-width: 30px;
  }
  
  /* 超小屏幕：标题和时间在同一行显示，框铺满宽度 */
  .prediction-section:last-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px;
    grid-column: 1 / -1; /* 占据所有列，铺满宽度 */
    width: 100%;
    box-sizing: border-box;
    border-right: none !important; /* 移除右边框，因为铺满宽度 */
    border-bottom: 1px solid #f0f0f0; /* 保持底部边框 */
  }
  
  .prediction-section:last-child .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    white-space: nowrap;
    flex-shrink: 0; /* 防止标题缩小 */
    background: #760202;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
  }
  
  .prediction-section:last-child .section-content {
    flex: 1;
    min-width: 0; /* 允许内容缩小 */
    display: flex;
    justify-content: flex-end;
  }
  
  .next-draw {
    padding: 4px;
    white-space: nowrap; /* 防止换行 */
    overflow: visible; /* 允许内容溢出，确保完整显示 */
    text-overflow: clip; /* 不使用省略号 */
    text-align: left; /* 从左到右显示 */
    width: auto; /* 自动宽度，确保完整显示 */
    min-width: 0; /* 允许缩小 */
    display: block; /* 块级元素 */
    box-sizing: border-box; /* 包含内边距 */
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: #760202;
  }
}

/* 针对360px宽度的特殊优化 - 确保倒计时时间不换行显示 */
@media screen and (max-width: 360px) {
  .real-time-prediction {
    margin: 0;
    padding: 0;
  }
  
  .prediction-header {
    flex-direction: column; /* 改为垂直布局：标题在上面，统计信息在下面 */
    align-items: stretch; /* 拉伸对齐 */
    gap: 6px; /* 适当的间距 */
    padding: 8px 10px; /* 适当的内边距 */
  }
  
  .prediction-title {
    text-align: center;
    width: 100%; /* 占满宽度 */
    margin-bottom: 0; /* 移除底部间距 */
    line-height: 1.3; /* 适当的行高 */
    white-space: normal; /* 允许换行 */
    word-break: break-word; /* 允许单词换行 */
  }
  
  .prediction-stats {
    gap: 6px;
    justify-content: center; /* 居中显示 */
    flex-wrap: wrap; /* 允许换行 */
    width: 100%; /* 占满宽度 */
  }
  
  .stat-item {
    padding: 2px 5px; /* 适当的内边距 */
    margin: 0; /* 移除外边距 */
    flex: 0 0 auto; /* 不伸缩 */
    background: rgba(255, 255, 255, 0.3); /* 半透明背景 */
    border-radius: 3px; /* 圆角 */
  }
  
  .stat-item span {
    font-size: 11px; /* 适当减小字体 */
    font-weight: bold; /* 加粗 */
  }
  
  .prediction-content {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* 保持grid布局，进一步减小最小宽度 */
    padding: 6px; /* 更小的内边距 */
    gap: 0; /* 无间距 */
  }
  
  .prediction-section {
    padding: 5px; /* 更小的内边距 */
    border-right: 1px solid #f0f0f0; /* 保持右边框 */
    border-bottom: 1px solid #f0f0f0; /* 保持底部边框 */
    width: auto; /* 恢复默认宽度 */
  }
  
  .prediction-section:last-child {
    border-right: none; /* 保持与PC相同的边框 */
  }
  
  .section-title {
    margin-bottom: 3px;
    padding-bottom: 2px;
  }
  
  
  .zodiacs {
    gap: 2px; /* 更小的间距 */
    margin-bottom: 3px;
    justify-content: center; /* 居中显示 */
  }
  
  .zodiacs span {
    padding: 1px 4px;
  }
  
  .numbers {
    gap: 1px; /* 更小的间距 */
    justify-content: center; /* 居中显示 */
  }
  
  .numbers span {
    padding: 1px 3px;
  }
  
  .random-data {
    gap: 3px; /* 更小的间距 */
  }
  
  .data-item {
    margin-bottom: 2px;
  }
  
  .data-item .value {
    padding: 1px 4px;
    min-width: 25px;
  }
  
  .two-in-two {
    gap: 4px; /* 更小的间距 */
  }
  
  .two-in-two-group {
    gap: 4px; /* 更小的间距 */
    justify-content: center; /* 居中显示 */
  }
  
  .two-in-two-number {
    padding: 2px 5px;
    min-width: 25px;
  }
  
  /* 超小屏幕：保持与PC相同的布局，只进行缩放 */
  .prediction-section:last-child {
    display: block; /* 恢复默认显示方式 */
    padding: 5px; /* 更小的内边距 */
    grid-column: auto; /* 恢复默认grid列 */
    width: auto; /* 恢复默认宽度 */
    border-right: none !important; /* 保持与PC相同的边框 */
    border-bottom: 1px solid #f0f0f0; /* 保持底部边框 */
  }
  
  .prediction-section:last-child .section-title {
    margin-bottom: 3px;
    padding-bottom: 2px;
    border-bottom: 1px solid #f0f0f0; /* 恢复底部边框 */
    white-space: normal;
    flex-shrink: auto; /* 恢复默认 */
    background: transparent; /* 恢复透明背景 */
    color: #760202; /* 恢复默认颜色 */
    padding: 0; /* 恢复默认内边距 */
    border-radius: 0; /* 移除圆角 */
    font-weight: bold;
    display: block; /* 恢复块级显示 */
  }
  
  .prediction-section:last-child .section-content {
    flex: none; /* 恢复默认 */
    min-width: auto; /* 恢复默认 */
    display: block; /* 恢复块级显示 */
    justify-content: flex-start; /* 恢复默认对齐 */
  }
  
  /* 关键修复：确保倒计时时间不换行显示 */
  .next-draw {
    padding: 3px;
    white-space: nowrap !important; /* 强制不换行 */
    overflow: visible !important; /* 允许内容溢出，确保完整显示 */
    text-overflow: clip !important; /* 不使用省略号 */
    text-align: center; /* 居中显示 */
    width: auto !important; /* 自动宽度，确保完整显示 */
    min-width: 0 !important; /* 允许缩小 */
    display: block !important; /* 块级元素 */
    box-sizing: border-box !important; /* 包含内边距 */
    background: #f8f9fa !important;
    border-radius: 3px !important;
    border: 1px solid #e0e0e0 !important;
    text-align: center !important;
    font-weight: bold !important;
    color: #760202 !important;
    line-height: 1.2 !important; /* 适当的行高 */
    word-break: keep-all !important; /* 保持单词不换行 */
    overflow-wrap: normal !important; /* 正常换行行为 */
    word-wrap: normal !important; /* 正常换行行为 */
  }
  
  /* 确保"更新时间"模块的布局优化 */
  .prediction-section:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 5px !important;
    grid-column: 1 / -1 !important; /* 占据所有列，铺满宽度 */
    width: 100% !important;
    box-sizing: border-box !important;
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  
  .prediction-section:last-child .section-title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important; /* 防止标题缩小 */
    background: #760202 !important;
    color: white !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    display: inline-block !important;
  }
  
  .prediction-section:last-child .section-content {
    flex: 1 !important;
    min-width: 0 !important; /* 允许内容缩小 */
    display: flex !important;
    justify-content: flex-end !important;
  }
}

/* 针对300*760设备的特殊优化 */
@media screen and (max-width: 360px) and (max-height: 800px) {
  .real-time-prediction {
    max-height: none; /* 移除高度限制 */
    overflow: visible; /* 允许内容溢出 */
  }
  
  .prediction-content {
    max-height: none; /* 移除高度限制 */
    overflow: visible; /* 允许内容溢出 */
  }
}

/* 隐藏特定标题区域 - 保留功能内容 */
/* 隐藏"展示图片"标题 */
#content-css19 .box-theme01:first-child .dz_title22 {
  display: none !important;
}

/* 隐藏"六合彩"标题 - 使用更简单的方法：给特定标题添加类然后隐藏 */
.hide-title {
  display: none !important;
}

/* 调整隐藏标题后的间距 */
#content-css19 .box-theme01:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#content-css19 .box-theme01:first-child .display-image-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 调整"六合彩"区域隐藏标题后的间距 */
#content-css19 .box-theme01 .real-time-prediction {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 确保广告区域也被隐藏 */
#content-css19 .advert {
  display: none !important;
}

/* 特码属性新样式 - 基于用户提供的示例 */
.special-property-container {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.special-property-title {
  background: #760202;
  color: #ffff00;
  text-align: center;
  font-size: var(--fs-section);
  font-weight: bold;
  padding: 10px 0;
  margin: 0;
  border: 1px solid #ccc;
  border-bottom: none;
}

.special-property-content {
  background: #ffffff;
  border: 1px solid #ccc;
  border-top: none;
  padding: 0;
  margin: 0;
}

.jingxuan-wubuzhong {
  width: 100%;
  margin: 0;
  padding: 0;
}

.jingxuan-wubuzhong .item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
  padding: 0;
}

.jingxuan-wubuzhong .item.header {
  background: #f5f5f5;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

.jingxuan-wubuzhong .item:last-child {
  border-bottom: none;
}

.jingxuan-wubuzhong .qishu {
  width: 25%;
  text-align: center;
  padding: 10px 5px;
  font-weight: bold;
  border-right: 1px solid #e0e0e0;
}

.jingxuan-wubuzhong .box {
  text-align: center;
  padding: 10px 5px;
  border-right: 1px solid #e0e0e0;
}

.jingxuan-wubuzhong .box2 {
  text-align: center;
  padding: 10px 5px;
}

/* 颜色类 */
.color-zise {
  color: #800080 !important; /* 紫色 */
}

.color-red {
  color: #ff0000 !important; /* 红色 */
}

.color-anhong {
  color: #8b0000 !important; /* 暗红色 */
}

.bg-fff {
  background-color: #ffffff !important;
}

.bg-ffeb3b {
  background-color: #ffeb3b !important; /* 黄色背景 */
}

.shangxuxian-000 {
  border-top: 1px dashed #000000 !important;
}

/* 响应式设计 - 使用CSS变量自动适配 */
@media screen and (max-width: 768px) {
  .special-property-title {
    padding: 8px 0;
  }
  
  .jingxuan-wubuzhong .qishu,
  .jingxuan-wubuzhong .box,
  .jingxuan-wubuzhong .box2 {
    padding: 8px 3px;
    font-size: var(--fs-body);
  }
  
  .jingxuan-wubuzhong .item.header {
    font-size: var(--fs-body);
  }
}

@media screen and (max-width: 480px) {
  .special-property-title {
    padding: 6px 0;
  }
  
  .jingxuan-wubuzhong .qishu,
  .jingxuan-wubuzhong .box,
  .jingxuan-wubuzhong .box2 {
    padding: 6px 2px;
    font-size: var(--fs-small);
  }
  
  .jingxuan-wubuzhong .item.header {
    font-size: var(--fs-small);
  }
}
