/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  line-height: 1.5;
  font-size: 14px;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  word-break: break-all;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

/* Page Container */
.page-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* =========================================
   Header Styles (from home.css)
   ========================================= */
.header {
  width: 100%;
  max-width: 720px;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
  background: linear-gradient(to bottom, #F460FD, #3F73FF);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
.detail-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg,#f460fd,#3f73ff);
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px #0000001a
}
.notice-box {
    width: 100%;
    padding: 8px 10px;
    background-color: #fff8e1;
    color: #070808;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid #070808
}
.detail-item {
    background-color: #fff;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #000000
}
.item-content {
    padding: 5px;
    line-height: 1.5;
    color: #333;
    font-size: 16px;
    width: 100%
}
.back-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    padding: 0 10px;
    line-height: 1;
    cursor: pointer;
    outline: none
}
.logo {
  height: 60px;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.spinner {
  width: 60px;
  height: 60px;
  position: absolute;
  left: 70%;
  top: 0;
  transform: translateX(-50%);
  z-index: 101;
}

.spinner-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: spin 5s linear infinite;
}

.bank-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
}

.bank-img {
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
}

.bank-text {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
}

.bank-text:hover,
.bank-text:active,
.bank-text:focus,
.bank-text:visited {
  color: #ffffff !important;
  text-decoration: none;
}

/* Nav Menu */
.nav-menu {
  width: 100%;
  background: linear-gradient(to bottom, #F460FD, #3F73FF);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  padding: 3px 0;
}

.nav-menu-inner {
  display: flex;
  justify-content: space-around;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: transparent;
}

.nav-item {
  flex: 1;
  text-align: center;
}

.nav-item a {
  display: block;
  height: 40px;
  line-height: 30px; /* Adjusted line-height to vertically center text in 40px height if needed, or stick to 40px */
  color: #ffffff !important;
  font-size: 14px !important;
  transition: background-color 0.2s;
  text-decoration: none !important;
  font-weight: bold;
}

.nav-item a:hover,
.nav-item a:active {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.2); /* Added transparency for hover effect */
}

@keyframes spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* Header Spacer */
.header-blank {
  height: 80px; /* 60px header + ~46px nav + padding */
}

@media screen and (max-width: 480px) {
  .header-content { padding: 0 5px; }
  .nav-item a { font-size: 11px !important; }
}

/* =========================================
   Component: IconBar (from IconBar.vue)
   ========================================= */
.zodiac-container {
  margin: 10px 10px 5px; /* Adjusted top margin as header-blank handles spacing */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: '微软雅黑', Arial, sans-serif;
  display: flex;
  gap: 0;
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.left-box {
  background: linear-gradient(to bottom, #F460FD, #3F73FF);
  border-right: 2px solid #fff;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.year {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}

.right-box {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.zodiac-row-ib { /* Renamed to avoid conflict with lsxb component */
  display: flex;
  gap: 0;
}

.zodiac-cell {
  flex: 1;
  background: linear-gradient(to bottom, #F460FD, #3F73FF);
  border: 2px solid #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 6px;
  height: 60px;
  box-sizing: border-box;
}

.number-ib { /* Renamed */
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 1px;
}

.animal-ib { /* Renamed */
  font-size: 20px;
  font-weight: bold;
  color: #FFFF00;
  line-height: 1;
}

/* Icon Bar */
.icon-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #fff;
  padding: 6px 0;
  margin: 3px 10px 5px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.icon-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon-item:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.icon-text {
  color: #000;
  font-size: 14px;
  font-weight: bold;
  text-shadow: -1px -1px 0 #FCAF17, 1px -1px 0 #FCAF17, -1px 1px 0 #FCAF17, -1px -1px 0 #FCAF17;
  letter-spacing: 1px;
  white-space: nowrap;
}

.icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.icon-img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Animations */
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInTop {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.slide-in-left { animation: slideInLeft 1s ease-out forwards; opacity: 0; }
.slide-in-top { animation: slideInTop 1s ease-out forwards; opacity: 0; animation-delay: 0.4s; }
.slide-in-right { animation: slideInRight 1s ease-out forwards; opacity: 0; animation-delay: 0.8s; }

.icon-item:nth-child(2) { animation-delay: 0.2s; }
.icon-item:nth-child(4) { animation-delay: 0.6s; }
.icon-item:nth-child(5) { animation-delay: 1s; }

/* URL Container */
.url-container {
  margin: 5px 10px 5px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: '微软雅黑', Arial, sans-serif;
}

.url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}

.url-cell {
  flex: 1;
  padding: 5px 8px;
  border-radius: 15px;
  text-align: center;
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 2px solid #76ACF4;
  transition: transform 0.2s ease;
}

.url-cell:hover { transform: translateY(-2px); }

.url-cell a {
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  display: block;
  width: 100%;
  line-height: 1;
  letter-spacing: -0.5px;
}

.url-cell.green a { color: #28a745; }
.url-cell.pink a { color: #e91e63; }
.url-cell.blue a { color: #007bff; }
.url-cell.gray a { color: #6c757d; }

/* IconBar Responsive */
@media (max-width: 768px) {
  .zodiac-container { margin: 10px 5px 5px; }
  .left-box { min-width: 100px; padding: 15px; height: 100px; }
  .year { font-size: 18px; }
  .subtitle { font-size: 14px; }
  .number-ib { font-size: 12px; }
  .animal-ib { font-size: 13px; }
  .zodiac-cell { padding: 6px 4px; height: 50px; }
}

@media (max-width: 480px) {
  .zodiac-container { margin: 10px 2px 5px; }
  .left-box { min-width: 100px; padding: 8px; border-right: 2px solid #fff; }
  .year { font-size: 16px; }
  .subtitle { font-size: 18px; }
  .number-ib { font-size: 16px; }
  .animal-ib { font-size: 18px; }
  .zodiac-cell { padding: 6px 2px; min-height: 50px; }
  .url-container { margin: 3px 2px; }
  .url-cell { padding: 4px 3px; min-height: 22px; }
  .url-cell a { font-size: 16px; letter-spacing: -0.3px; }
  .icon-bar { padding: 4px 0; margin: 2px 5px 3px; }
  .icon-img { width: 60px; height: 60px; }
  .icon-text { font-size: 12px; letter-spacing: 0.5px; }
}

/* ====================
   Lottery Tabs
   ==================== */
.block-lottery {
  width: 100%;
  background: #fff;
  margin-bottom: 10px;
}

.tab-menu-wrapper {
  background: #f5f5f5;
  padding: 5px 0;
}

.tab-menu {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  cursor: pointer;
  font-size: 16px;
  color: #666;
}

.tab-item.active {
  color: #c323a0;
  font-weight: bold;
  border-bottom: 2px solid #6e23c3;
}

/* ====================
   AMX Special Styles (New Structure)
   ==================== */
.border-box {
  background: #fff;
  padding: 10px; /* 调整内边距 */
  height: 220px; /* 固定高度为 220px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box; /* 确保 padding 包含在 height 内 */
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0; /* 移除内边距 */
  margin: 0;
  /* border-bottom: 1px solid #f0f0f0; 移除边框以匹配 123.html */
}

.head li {
  font-size: 18px; /* 强制统一为 18px */
  color: #333;
  width: 50%;
  display: inline-block;
  line-height: 1.5;
}
.head.head-three li {
  width: auto;
  display: inline-block;
}
.head-left {
  flex: 0 0 40%;
  text-align: left;
}
.head-center {
  flex: 0 0 35%;
  text-align: center;
}
.head-right {
  flex: 0 0 25%;
  text-align: right;
}

.head li a {
  color: #07C160;
  font-weight: normal;
  font-size: 18px;
}

.green-text {
  color: #07C160;
  font-weight: normal;
  margin: 0 2px;
  font-size: 18px;
}
.red-text {
  color: #ff0000;
}
.blue-text {
  color: #16950b;
  font-weight: bold;
}

.kj-box {
  padding: 5px 0; /* 调整内边距 */
  flex: 1; /* 撑开中间区域 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.kj-box ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  width: 100%; /* 占满宽度 */
}

.kj-box li {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 2px; /* 调整间距 */
  width: 12%; /* 减小宽度以适应加号 */
}

.kj-box li.plus-li {
  font-size: 50px; /* 增大加号 */
  width: auto;
  justify-content: center;
  padding-bottom: 30px; /* 调整对齐 */
  flex: 0.5; /* 加号稍微窄一点 */
  color: #000;
}

.m0 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 76px; /* 调整大小 */
  height: 76px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 36px; /* 调整字体 */
  font-weight: normal;
  color: #555;
  line-height: 1;
  font-family: Arial, sans-serif;
  border-radius: 50%; /* 确保圆形 */
}

.m0.red { background-image: url('../images/red.png'); }
.m0.green { background-image: url('../images/green.png'); }
.m0.blue { background-image: url('../images/blue.png'); }

.kj-box em {
  font-style: normal;
  font-size: 20px; /* 调整字体 */
  color: #555;
  margin-top: 8px;
}

.kj-foot {
  text-align: center;
  color: #e74c3c;
  font-size: 22px; /* 调整字体 */
  padding: 10px 0;
  /* border-top: 1px solid #f0f0f0; 移除边框以匹配 123.html */
  margin-top: 0;
}

/* ====================
   Iframe Styles
   ==================== */
.lottery-iframe {
  width: 100%;
  height: 165px; /* 默认 PC 端高度 */
  border: none;
  display: block;
}

/* 移动端适配 (放在文件底部以确保优先级) */
@media (max-width: 479px) {
  .border-box {
    height: 125px; /* 高度进一步缩小为 125px */
    min-height: 125px;
    padding: 0 2px; /* 进一步减少内边距 */
  }
  
  /* 强制统一头部字体大小 */
  .head li,
  .head li a,
  .green-text,
  .countdown-time,
  .lottery-history {
    font-size: 13px !important;
  }

  .head.head-three li {
    flex: 0 1 auto;
    min-width: 0;
  }
  .head.head-three li:first-child {
    flex-basis: 40%;
    text-align: left;
  }
  .head.head-three li:nth-child(2) {
    flex-basis: 35%;
    text-align: center;
  }
  .head.head-three li:last-child {
    flex-basis: 25%;
    text-align: right;
  }

  .kj-box {
    padding: 0; 
  }

  .kj-box ul {
    gap: 0;
  }
  
  .kj-box li {
    margin: 0 1px; /* 增加左右间距 */
    width: auto; /* 移动端自动宽度 */
    flex: 1; /* 均分剩余空间 */
  }
  
  .m0 {
    width: 12.5vw; /* 稍微缩小以适应间距 */
    height: 12.5vw;
    font-size: 6.5vw; /* 增大字体 */
  }
  
  .kj-box em {
    font-size: 14px;
    margin-top: 0;
  }
  
  .kj-box li.plus-li {
    font-size: 30px; 
    padding-bottom: 10px;
    margin-top: -10px; /* 向上调整 */
  }
  
  .kj-foot {
    font-size: 14px;
    padding: 0; /* 极小的内边距 */
  }

  .lottery-iframe {
    height: 140px; /* 移动端高度调整 */
  }

  .lottery-content {
     padding: 0 !important; /* 强制移除 padding */
  }

  .lottery-numbers {
    gap: 1px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  /* 使用vw单位实现移动端自适应 */
  .lottery-ball {
    width: 10.5vw;
    height: 10.5vw;
    min-width: 10.5vw;
    margin: 0 0.5vw 4vw;
  }
  
  .lottery-ball .number {
    font-size: 4.2vw;
  }
  
  .lottery-ball .attributes {
    font-size: 3vw;
    bottom: -3.5vw;
  }
  
  .lottery-period {
    font-size: 3.5vw;
  }
  
  .plus-sign {
    font-size: 5vw;
    width: 5vw;
    margin: 0 0.5vw 4vw;
  }
  
  .next-draw-info {
    font-size: 3.5vw;
    margin: 1vw 0;
    padding: 0 1vw;
  }
}


/* ====================
   Legacy Styles (Keeping for compatibility or other tabs)
   ==================== */
.lottery-content {
  background: #fff;
  padding: 10px;
  min-height: 130px;
}

.lottery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.lottery-period {
  font-size: 17px;
  color: #333; /* 默认深色，图片中文字看起来是深灰/黑 */
}

.highlight-number {
  color: #e74c3c;
  font-weight: bold;
  margin: 0 3px;
}

.highlight-number.green-text {
  color: #07C160; /* 绿色期数 */
  font-weight: bold;
}

/* =========================================
   Component: Gaoshou (高手一区)
   ========================================= */
.gaoshou-container {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: #fff;
  width: 100%;
  border: 2px solid #DAA520;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
}

.gaoshou-header {
  background: linear-gradient(135deg, #F460FD, #3F73FF);
  color: #ffffff;
  padding: 0px 0px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  position: relative;
}

.gaoshou-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #DAA520, #FFD700, #DAA520);
}

.gaoshou-header .header-text {
  color: #ffffff;
  font-weight: 900;
  font-size: 25px;
}

.gaoshou-list {
  background-color: #fff;
  border: 1px solid #E5E5E5;
}

.gaoshou-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px;
  border-bottom: 1px solid #000000;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background: linear-gradient(90deg, #FAFAFA 0%, #FFFFFF 100%);
}

.gaoshou-item:hover {
  background: linear-gradient(90deg, #F0F8FF 0%, #E6F3FF 100%);
  transform: translateX(2px);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.gaoshou-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #0e0201, #a10754);
}

.gaoshou-item .item-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.gaoshou-item .tag-label {
  background: linear-gradient(135deg, #F460FD, #3F73FF);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 7, 10, 0.3);
}

.gaoshou-item .item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  font-family: "SimSun", "宋体", serif;
}

.gaoshou-item .item-right {
  color: #000000;
  position: relative;
  padding-left: 15px;
}

.gaoshou-item .item-right::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #FF6B35;
  font-size: 12px;
  animation: pulse 2s infinite;
}

.gaoshou-item .arrow-icon {
  font-size: 13px;
  font-style: normal;
  color: #921818;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* =========================================
   Component: Gaoshou2 (精华区)
   Renamed classes to gaoshou2-* to avoid conflict
   ========================================= */
.gaoshou2-container {
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 0;
  overflow: hidden;
  background-color: #fff;
  width: 100%;
  margin-top: 10px;
}

.gaoshou2-header {
  background-color: #00AA00;
  color: #ffffff;
  padding: 5px 5px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.gaoshou2-content {
  background-color: #fff;
  padding: 0;
}

.gaoshou2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gaoshou2-item {
  padding: 8px 10px;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  transition: background-color 0.3s;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.gaoshou2-item:nth-child(even) {
  border-right: none;
}

.gaoshou2-item:hover {
  background-color: #f9f9f9;
}

.gaoshou2-item .item-period {
  color: #000;
  font-weight: bold;
  margin-right: 2px;
}

.gaoshou2-item .item-bracket {
  color: #000;
  font-weight: bold;
}

.gaoshou2-item .item-main-title {
  font-weight: bold;
  margin: 0 2px;
}

.gaoshou2-item .item-status {
  color: #000;
  font-weight: bold;
  margin-left: auto;
}

/* Gaoshou2 Colors */
.gaoshou2-item.color-set-1 .item-main-title { color: #FF0000; }
.gaoshou2-item.color-set-2 .item-main-title { color: #0066FF; }
.gaoshou2-item.color-set-3 .item-main-title { color: #00AA00; }
.gaoshou2-item.color-set-4 .item-main-title { color: #FF6600; }
.gaoshou2-item.color-set-5 .item-main-title { color: #9900FF; }
.gaoshou2-item.color-set-6 .item-main-title { color: #FF0099; }

@media (max-width: 768px) {
  .gaoshou2-grid {
    grid-template-columns: 1fr;
  }
  .gaoshou2-item {
    border-right: none;
  }
  .gaoshou2-item:nth-child(even) {
    border-right: none;
  }
}

/* =========================================
   Component: ZuoYouZhongTe (左右中特)
   ========================================= */
.liuxiazhongte-container {
  width: 100%;
  background-color: #fff;
  margin-bottom: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 3px;
}

.liuxiazhongte-header {
  background: linear-gradient(135deg, #1890ff, #36cfc9);
  color: #fff;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border-radius: 4px 4px 0 0;
}

.sijishengxiao-content {
  padding: 10px;
}

.season-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.season-item {
  display: flex;
  flex: 1 0 auto;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.season-title {
  width: 80px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-right: 1px solid #eee;
  color: #333;
}

.animal-group {
  flex: 1;
  padding: 10px;
  color: #666;
  font-size: 16px;
  background-color: #fff;
}

.liuxiazhongte-list {
  padding: 5px 10px 5px;
  border-bottom: 1px solid #F460FD;
  font-size: 16px;
}



.liuxiazhongte-item:last-child {
  border-bottom: none;
}

/* =========================================
   Component: lsxb (十二生肖对照)
   ========================================= */
.zodiac-table-wrapper {
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
  margin: 10px 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
}

.section-title {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2px;
  font-size: 16px;
}

/* Zodiac Grid */
.zodiac-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-top: none;
  background-color: #fff;
}

.zodiac-row {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 2px;
}

.zodiac-item {
  flex: 1;
  padding: 5px;
  text-align: center;
  border: 1px solid #eee;
}

.zodiac-animal {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.animal-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 5px;
}

.animal-name {
  font-size: 14px;
}

.number-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

/* Common Color Classes */
.red { background-color: #ff4d4f; }
.blue { background-color: #1890ff; }
.green { background-color: #52c41a; }

/* Attribute Table */
.attribute-table {
  border: 1px solid #ddd;
  border-top: none;
  margin-bottom: 10px;
  background-color: #fff;
}

.attribute-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.attribute-row:last-child {
  border-bottom: none;
}

.attribute-label {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background-color: #f9f9f9;
  border-right: 1px solid #eee;
  padding: 8px 5px;
}

.attribute-content {
  flex: 1;
  padding: 8px 10px;
  line-height: 1.5;
  font-size: 18px;
  font-weight: 500;
  color: #000;
}

/* Colored Text */
.attr-red { color: #ff4d4f; font-weight: bold; }
.attr-blue { color: #1890ff; font-weight: bold; }
.attr-green { color: #52c41a; font-weight: bold; }
.attr-purple { color: #722ed1; font-weight: bold; }
.attr-gold { color: #faad14; font-weight: bold; }

/* Elements Table */
.elements-table {
  border: 1px solid #ddd;
  border-top: none;
  margin-bottom: 10px;
  background-color: #fff;
}

.element-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.element-row:last-child {
  border-bottom: none;
}

.element-label {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background-color: #f9f9f9;
  border-right: 1px solid #eee;
}

.element-numbers {
  flex: 1;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Color Table */
.color-table {
  border: 1px solid #ddd;
  border-top: none;
  margin-bottom: 10px;
  background-color: #fff;
}

.color-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.color-row:last-child {
  border-bottom: none;
}

.color-label {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  border-right: 1px solid #eee;
}

.red-label { background-color: #ff4d4f; }
.blue-label { background-color: #1890ff; }
.green-label { background-color: #52c41a; }

.color-numbers {
  flex: 1;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Label Colors */
.label-red { background-color: #ff4d4f; color: white; }
.label-blue { background-color: #1890ff; color: white; }
.label-green { background-color: #52c41a; color: white; }
.label-orange { background-color: #fa8c16; color: white; }
.label-purple { background-color: #722ed1; color: white; }
.label-cyan { background-color: #13c2c2; color: white; }
.label-magenta { background-color: #eb2f96; color: white; }
.label-teal { background-color: #20c997; color: white; }
.label-brown { background-color: #8b572a; color: white; }
.label-black { background-color: #000000; color: white; }
.label-gray { background-color: #8c8c8c; color: white; }
.label-pink { background-color: #ff85c0; color: white; }
.label-gold { background-color: #faad14; color: white; }

/* Sums Table */
.sums-table {
  border: 1px solid #ddd;
  border-top: none;
  background-color: #fff;
}

.sum-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.sum-row:last-child {
  border-bottom: none;
}

.sum-label {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background-color: #f9f9f9;
  border-right: 1px solid #eee;
}

.sum-numbers {
  flex: 1;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Lsxb Responsive */
@media screen and (max-width: 768px) {
  .zodiac-table-wrapper { padding: 0 2px; }
  .section-title { font-size: 14px; padding: 6px 8px; }
  .animal-img { width: 30px; height: 30px; }
  .animal-name { font-size: 12px; }
  .number { width: 22px; height: 22px; font-size: 11px; }
  .element-label, .color-label, .sum-label, .attribute-label { font-size: 12px; }
  .attribute-content { font-size: 16px; padding: 6px 8px; font-weight: 500; color: #000; }
  .attribute-label { width: 70px; }
}

@media screen and (max-width: 480px) {
  .zodiac-table-wrapper { padding: 0; }
  .section-title { font-size: 15px; padding: 8px 5px; margin-bottom: 0; }
  .zodiac-grid { display: flex; flex-direction: column; gap: 0; border: none; }
  .zodiac-row { display: flex; justify-content: space-between; gap: 1px; margin-bottom: 1px; }
  .zodiac-item { flex: 0 0 calc(50% - 1px); padding: 5px; box-sizing: border-box; border: 1px solid #eee; background-color: #fff; }
  .zodiac-animal { justify-content: flex-start; margin-bottom: 3px; }
  .animal-img { width: 32px; height: 32px; margin-right: 4px; }
  .animal-name { font-size: 15px; font-weight: bold; }
  .number-row { gap: 3px; justify-content: flex-start; }
  .number { width: 25px; height: 25px; font-size: 13px; margin: 1px; }
  .element-label { width: 30px; }
  .color-label { width: 40px; }
  .sum-label { width: 60px; }
  .attribute-label { width: 60px; padding: 6px 2px; }
  .attribute-content { font-size: 14px; padding: 6px 5px; font-weight: 500; color: #000; }
}

/* ====================
   History Page Styles (From Dushen)
   ==================== */
.history-page {
  font-family: "微软雅黑", sans-serif;
  max-width: 100%;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(20, 1, 1, 0.1);
}

.page-header-container {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  padding: 10px 0;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #eee;
}

.back-arrow {
  position: absolute;
  left: 10px;
  font-size: 24px;
  color: #080000;
  cursor: pointer;
  font-weight: 500;
}

.history-content-container {
  width: 100%;
  margin: 0 auto;
  background-color: #e8eaec;
  padding: 5px;
}

.draw-item {
  border-bottom: 1px solid #eee;
  padding: 10px;
  margin-bottom: 5px;
  background-color: #ffffff;
  border-radius: 8px;
}

.draw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.draw-number {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.draw-date {
  font-size: 14px;
  color: #666;
}

.history-lottery-numbers {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  padding: 5px 0;
  width: 100%;
}

.history-ball-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 2px;
  flex-shrink: 0;
}

.history-lottery-ball {
  width: 50px; /* 稍微增大 */
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555; /* 匹配 m0 颜色 */
  font-weight: normal; /* 匹配 m0 粗细 */
  font-size: 20px; /* 调整字体 */
  background-size: 100% 100%;
  background-position: center;
  font-family: Arial, sans-serif;
}

.ball-attributes {
  font-size: 13px;
  color: #555; /* 匹配 index.html */
  margin-top: 5px;
  font-family: '微软雅黑', sans-serif;
  font-weight: normal;
}

.history-plus-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 30px; /* 增大 */
  font-weight: normal;
  margin: 0 5px;
  height: 50px; /* 匹配球的高度 */
  padding-bottom: 20px; /* 向上对齐 */
}

/* History Ball Colors */
.history-ball-red { background-image: url('../images/red.png'); }
.history-ball-blue { background-image: url('../images/blue.png'); }
.history-ball-green { background-image: url('../images/green.png'); }

.load-more {
  text-align: center;
  padding: 15px;
  color: #666;
  font-size: 14px;
}

/* History Page Mobile Responsive */
@media (max-width: 479px) {
  .history-lottery-numbers {
    justify-content: center; /* 尝试居中 */
    padding: 5px 0;
  }
  
  .history-ball-container {
    margin: 0 1px; /* 减小间距 */
  }

  .history-lottery-ball {
    width: 11vw; /* 稍微缩小以适应一行 */
    height: 11vw;
    font-size: 5.5vw;
  }
  
  .ball-attributes {
    font-size: 3vw;
  }
  
  .history-plus-sign {
    font-size: 5vw;
    height: 11vw;
    width: 5vw;
    margin: 0;
    padding-bottom: 10px;
  }
}


/* ====================
   PT1X Table Styles (New Request)
   ==================== */
.pt1x-list {
  border: 1px solid #F460FD;
  background-color: #fff;
  margin-top: 5px;
}

.pt1x-row {
  display: flex;
  align-items: center;
  /* padding removed to let cells fill height */
  padding: 0; 
  border-bottom: 1px solid #F460FD;
  font-size: 16px;
  line-height: 1.5;
  height: 40px; /* Fixed height for consistent look */
}

.pt1x-row:last-child {
  border-bottom: none;
}

.pt1x-left {
  width: 15%; /* Fixed width */
  text-align: center;
  font-weight: normal;
  border-right: 1px solid #F460FD;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt1x-center {
  flex: 1; /* Takes remaining space */
  text-align: center;
  font-weight: normal; /* Normal weight as per image */
  border-right: 1px solid #F460FD;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

.pt1x-right {
  width: 20%; /* Fixed width */
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

}

/* Grid Container & Items (from dushen) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap:10px;
  padding: 10px;
  width: 100%;
}

.grid-item {
  background-color: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-item:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grid-item-title {
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

/* Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.image-modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.large-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.close-button {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
}
