* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont,"Microsoft YaHei",sans-serif;
  background: #fff;
  padding: 0.3px;
  overflow: hidden; /* 禁止页面整体滚动 */
 
}

.container {
  max-width: 768px;
  margin: 0 auto;
}

/* 固定顶部区域 */
.header-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 0px);
  max-width: 768px;
  z-index: 999;
  background: #fff;
  padding-bottom: 2px;
}

/* 顶部TAB */
.tab-bar {
  display: flex;
  gap: 1;
  margin-bottom: 0px;
  border: 1px solid #c8d0d5;
  border-radius: 2px;
  overflow-y: auto;
  max-height: 500px;
  height: 35px;
}
.tab-item {
  flex: 1;
  padding: 4px 0;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: red;
  background: orange;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 2PX;
}
.tab-item + .tab-item {
  border-left: 2px solid #c8d0d5;
}
.tab-item.active {
  background: linear-gradient(to bottom, #c8d0d5 0%, #dcedc8 100%);
  animation: redBlackBlink 2s infinite;
}
.tab-item:active {
  transform: scale(0.98);
}

/* 面板默认隐藏，只显示对应模块 */
.panel {
  display: none;
}
.panel.active {
  display: block;
}

/* 布局行 */
.row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 1vw;
}

/* 左侧文字 */
.left-text {
  width: 53px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

/* 格子组 */
.grid-group {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 0px;
  background: #DCDCDC;
 
}

.grid-6 {
  flex: 6;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 0px;
}
.grid-1 {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}

/* 格子 */
.grid-cell {
  position: relative;
  border: 1px solid #DCDCDC;
  border-radius: 1px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 45px;
}
.grid-cell::after {
  content: '';
  position: absolute;
  left:0; top:0; right:0; bottom:0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
  
}
.grid-cell.flash::after {
  opacity: 1;
}
.cell-top {
  height: 20px; /*数字高度*/
  display: flex;
  line-height:19px;
  align-items: center;
  justify-content: center;
  font-size:19px;
  font-weight: bold;
  color:#fff;
  
}
.cell-line {
  height:0px;
  background:#222;
}
.cell-bottom {
  height:24px;/*生肖高度*/
  line-height:23px;
  background:#fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:19px;
  font-weight: 800;
  color:#222;
}

/* 刷新按钮 */
.refresh-btn {
  width: 18px;
  background: #ffcc00;
  border: 1px solid #ff9900;
  border-radius: 2px;
  font-size: 14px;
  font-weight: bold;
  color: #ff0000;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  letter-spacing: 5px;
}

/* 颜色 */
.cell-top.red    { background:#e53935;}
.cell-top.blue   {background:#1e88e5;}
.cell-top.green  { background:#43a047;}
.cell-top.orange { background:#fb8c00;}

img{
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.container1 {
  
  border-radius: 3px;
  width: 100%;
  margin-bottom: 1px;
  text-align: center;
  margin-top: 5px;
  
}
.row1 {
  background: yellow;
  padding: 1vw;
}
.row1:first-child {
  border-bottom: 1px solid green;
}
.text-blue {
  font-size: 5vw;
  font-weight: bold;
  color: #0000cd;
  line-height: 1.4;
  margin: 0 2px;
  letter-spacing: 2.4px;
}
.text-red {
  font-size: 5vw;
  font-weight: bold;
  color: #ff0000;
  display: inline;
  margin: 0 0px;
  letter-spacing: 2.8px;
}
.text-black {
  font-size: 5vw;
  font-weight: bold;
  color: #000000;
  display: inline;
  margin: 0px;
}

/* ========== 滚动内容区域 ========== */
.scroll-content {
  max-width: 768px;
  margin: 0px auto;
  height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 2px;
}
.content-item {
  display: none;
}
.content-item.active {
  display: block;
}
a{
    text-decoration: none;
    color: inherit;
}
.row3 {
  background: #00FF00;
  padding: 1vw;
}
.text-black1{
    margin: 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #000000;
    display: inline;
}

.concdd {
            max-width: 768px;
            border: 2px solid #c8d0d5;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 5px;
            text-align: center;
            letter-spacing: 1px;
        }
.caidd{background: linear-gradient(to bottom, #c8d0d5 0%, #dcedc8 100%);
padding: 3px;}
.text-caidd{
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}
 .container2 {
            max-width: 768px;
            border: 2px solid #c8d0d5;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 5px;
            text-align: center;
        }
        .header2 {
            background: linear-gradient(to bottom, #c8d0d5 0%, #dcedc8 100%);
            text-align: center;
            padding: 6px 0;
            border-bottom: 2px solid #999;
        }
        .header2 h1 {
            font-size: 18px;
            color: #000;
            margin: 0;
            font-weight: bold;
        }
        .content2 {
            background: #fff;
            padding: -20px 0px;
        }
        .period-row {
            font-size: 15px;
            font-weight: bold;
            color: #000;
            margin: 2px 0;
            line-height: 1.4;
        }
        .period-num {
            color: #000;
        }
        .codes {
            color: #0000ff; /* 蓝色号码 */
        }
        .highlight {
            background-color: #ffff00; /* 黄色高亮 */
            padding: 0 4px;
        }
        .result {
            color: #000;
        }
        .divider2 {
            border-bottom: 2px solid #ccc;
            margin: 2px 0;
        }


        .container3 {
            max-width: 768px;
            border: 2px solid #c8d0d5;
            border-radius: 1px;
            overflow: hidden;
            margin-bottom: 5px;
            text-align: center;
        }
        .header3 {
            background: linear-gradient(to bottom, #c8d0d5 0%, #dcedc8 100%);
            text-align: center;
            padding: 5px 0;
            border-bottom: 2px solid #c8d0d5;
        }
        .header3 h1 {
            font-size: 16px;
            color: #000;
            margin: 0;
            font-weight: bold;
        }
        .content3 {
            background: #fff;
            padding: 0px 0px;
        }
        .period-row3 {
            font-size: 15px;
            font-weight: bold;
            color: #000;
            margin-left: 1px;
            margin-top:6px;
            line-height: 1.4;
        }
        .period-num3 {
            color: #000;
        }
        .codes3 {
            color: #0000ff; /* 蓝色号码 */
        }
        .highlight3 {
           /* background-color: #ffff00;  黄色高亮 */
            padding: 0 4px;
        }
        .result3 {
            color: #000;
        }
        .result3 span{
            color: red;
        }
        .divider2 {
            border-bottom: 2px solid #ccc;
            margin: 2px 0;
        }
.container5 {
  border: 2px solid #c8d0d5;
  border-radius: 2px;
  width: 100%;
  margin-bottom: 3px;
}
.row5 {
  background: linear-gradient(to bottom, #c8d0d5 0%, #dcedc8 100%);
  padding: 1vw;
  text-align: center;
}
.text-blue5{
    font-size: 15px;
    font-weight: bold;
    margin-left: 1px;
}
.text-blue5 span{
animation: redBlackBlink 1s infinite;
font-size: 16px;
}
 @keyframes redBlackBlink{
        0%{color: red;}
        50%{color: black;}
        100%{color: red;}
    }


/* 外层容器 */
.wrap {
    max-width: 768px;
    margin: 0 auto;
    border: 1px solid #c8d0d5;
    border-radius: 1px;
    overflow: hidden;
}

/* 顶部标题栏 */
.header6 {
    background: linear-gradient(to bottom, #c8d0d5 0%, #dcedc8 100%);
    padding: 3px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #c8d0d5;
    letter-spacing: 1px;
}

/* 主表格 */
.main-table {
    width: 100%;
    border-collapse: collapse;
}

/* 表格单元格 */
.main-table td {
    border: 1px solid #c8d0d5;
    padding: 3px;
    vertical-align: middle;
}

/* 列宽比例：左20% 中60% 右20% */
.col-period, .col-result {
    width: 20%;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}
.col-content {
    width: 60%;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
}

/* 文字颜色 */
.text-blue6 {
    color: #0033cc;
    margin-right: 8px;
}
.text-red6 {
    color: #e60000;
    letter-spacing: 1px;
}
.col-result{
    color: green;
}

/* 期数/开奖行间距 */
.col-period div, .col-result div {
    margin: 1px 0;
}


.lottery-card {
            max-width: 100%;
            border: 2px solid #c8d0d5;
            background: #fff;
            overflow: hidden;
        }
        /* 顶部/底部橙色栏 - 再缩小 */
        .banner-bar {
            background: #e6b800;
            padding: 4px 0;
            text-align: center;
            font-size: 1.1rem;
            font-weight: bold;
            color: #000;
            white-space: nowrap;
            letter-spacing: 1px;
            background: linear-gradient(to bottom, #c8d0d5 0%, #dcedc8 100%)
        }
        .banner-bar .red-text {
            color: #ff3333;
        }
        .banner-bar .blue-text {
            color: #0000ff;
        }
        /* 内容网格 - 更小、完整显示、居中对齐 */
        .content-grid {
            display: grid;
            grid-template-columns: 1fr 1.4fr;
            gap: 0;
            border-bottom: 1px solid #c8d0d5;
        }
        .grid-item {
            padding: 5px 6px;
            font-size: 1.25rem;
            font-weight: bold;
            line-height: 1.2;
            white-space: nowrap;
            overflow: visible;
            text-align: left;
            display: flex;
            align-items: center;
        }
        .grid-item .label {
            color: #00008b;
            margin-right: 3px;
            font-size: 0.97rem;
            font-weight: bold;
        }
        .grid-item .value {
            color: #ff3333;
            font-size: 0.96rem;
            font-weight: bold;
        }
        .grid-item .circle {
           
           
           
           
            text-align: center;
            margin-right: 0px;
            font-size: 0.25rem;
            margin-top: -4px;
         
        }
        /* 粉色栏 - 再缩小 */
        .gift-bar {
            background: #fce4ec;
            padding: 6px 8px;
            text-align: center;
            font-size: 1.1rem;
            font-weight: bold;
            white-space: nowrap;
        }
        .gift-bar .blue-text {
            color: #0000ff;
        }
        .gift-bar .red-text {
            color: #ff3333;
        }
        /* 移动端最终适配 */
        @media (max-width: 480px) {
            .banner-bar, .gift-bar {
                font-size: 1rem;
                padding: 3px 0;
            }
            .grid-item {
                font-size: 0.85rem;
                padding: 4px 5px;
            }
            .grid-item .circle {
                width: 20px;
                height: 20px;
                line-height: 20px;
                font-size: 0.75rem;
            }
        }
        span8{
            background: yellow;
        }