  html, body {
    margin: 0;
    padding: 0;
  }
  
  body {
    margin: 0;
    padding: 0;
    background: #b7a47a url('../images/bg.jpg') center top no-repeat fixed;
    background-size: auto;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #4b2e0e;
  }
  .notice-box {
    width: 100%;
    padding: 8px 0px;
    background-color: #fff8e1;
    color: #ed1010;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    border-bottom: 1px solid #070808
}
  .el-container {
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    background: #fff8e1;
    width: 100%;
    box-sizing: border-box;
    border-left: 10px solid #2b1402;
    border-right: 10px solid #2b1402;
  }
  
  .el-main {
    background: transparent;
    flex: 1;
    padding: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  @media screen and (max-width: 768px) {
    .el-container, .el-main {
      padding: 0;
    }
    .el-container {
      border-left: 5px solid #2b1402;
      border-right: 5px solid #2b1402;
    }
  }
  
  @media screen and (max-width: 480px) {
    .el-container, .el-main {
      padding: 0;
    }
    .el-container {
      border-left: 0;
      border-right: 0;
    }
  }

  .detail-header {
    width: 100%;
    box-sizing: border-box;
    background: #fff8e1;
    border-bottom: 2px solid #c69c6d;
  }

  .header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    height: 48px;
    margin: 0 auto;
    padding: 0 48px;
    box-sizing: border-box;
  }

  .back-button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4b2e0e;
    font-size: 24px;
    border-radius: 18px;
  }

  .back-button:hover {
    background: rgba(198, 156, 109, 0.25);
  }

  .back-arrow {
    line-height: 1;
  }

  .header-title {
    font-size: 18px;
    font-weight: 700;
    color: #4b2e0e;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  @media screen and (max-width: 480px) {
    .header-container {
      height: 44px;
      padding: 0 44px;
    }
    .back-button {
      left: 6px;
      width: 34px;
      height: 34px;
      font-size: 22px;
    }
    .header-title {
      font-size: 16px;
    }
  }
  
  .footer {
    height: 50px;
    background: #fff8e1;
    border-top: 2px solid #c69c6d;
    text-align: center;
    padding: 10px 0;
    color: #a67c52;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .top-banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background: transparent;
  }
  
  .top-banner {
    width: 100%;
    max-width: 800px;
  }
  
  .banner-item {
    width: 100%;
  }
  
  .banner-image {
    width: 100%;
    height: auto;
    display: block;
  }
  
  @media screen and (max-width: 768px) {
    .top-banner {
      margin-bottom: 0;
    }
  }
  
  @media screen and (max-width: 480px) {
    .top-banner {
      margin-bottom: 0;
    }
  }
  
  .nav-container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
  }
  
  .nav-menu {
    width: 100%;
    background: #fddebc;
    box-sizing: border-box;
    padding: 0 4px;
    margin-top: 3px;
    transition: all 0.3s ease;
  }
  
  .nav-menu.sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 780px;
    margin-top: 0;
  }
  
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 10px;
    width: 100%;
    height: 100%;
  }
  
  .nav-btn {
    background: #a36d32;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    min-width: 0;
    letter-spacing: 1px;
  }
  
  .nav-btn:hover {
    background: #a67c52;
  }
  
  @media screen and (max-width: 768px) {
    .nav-menu {
      padding: 0 2px;
    }
    .nav-btn {
      font-size: 13px;
      padding: 7px 0;
      font-weight: 300;
    }
    .menu-grid {
      gap: 10px 6px;
      grid-template-columns: repeat(5, 1fr);
      padding: 0;
    }
  }
  
  @media screen and (max-width: 480px) {
    .nav-menu {
      padding: 0 2px;
    }
    .nav-btn {
      font-size: 11px;
      padding: 6px 0;
      font-weight: 300;
    }
    .menu-grid {
      gap: 8px 4px;
      grid-template-columns: repeat(5, 1fr);
      padding: 0;
    }
  }
  
  .block-lottery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: "Microsoft YaHei", sans-serif;
  }
  
  .tab-menu-wrapper {
    width: 100%;
    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;
    transition: all 0.3s;
    font-size: 16px;
    color: #666;
  }
  
  .tab-item.active {
    color: #c323a0;
    font-weight: bold;
    border-bottom: 2px solid #6e23c3;
  }
  
  /* Content Area */
  .lottery-content {
    background: #fff;
    min-height: 130px;
    padding: 10px;
  }
  
  .iframe-container {
    position: relative;
    width: 100%;
    min-height: 100px;
    height: auto;
    max-height: 120px;
    overflow: hidden;
    margin: 0 auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .iframe-container::-webkit-scrollbar {
    display: none;
  }
  
  @media (min-width: 768px) {
    .iframe-container {
      min-height: 165px;
      max-height: 165px;
    }
  }
  
  @media (max-width: 767px) {
    .iframe-container {
      min-height: 130px;
      max-height: 130px;
    }
  }
  
  .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* Lottery Header */
  .lottery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1px 0;
    padding: 0 5px 2px;
  }
  
  .lottery-period {
    font-size: 17px;
    color: #333;
    font-weight: normal;
    font-family: "Microsoft YaHei";
    line-height: 1.2;
  }
  
  .highlight-number {
    color: #e74c3c;
    font-weight: bold;
    margin: 0 3px;
  }
  
  .countdown-time { color: inherit; font-weight: inherit; }
  
  /* Numbers Area */
  .lottery-numbers {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  
  .lottery-numbers::-webkit-scrollbar {
    display: none;
  }
  
  .lottery-ball {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 100%;
    margin: 0 1px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 0 15px;
    flex-shrink: 0;
    align-self: flex-start;
    overflow: visible;
  }
  
  .lottery-ball .number {
    font-size: 28px;
    font-weight: 500;
    color: #000000;
    position: absolute;
    z-index: 2;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
  }
  
  .lottery-ball .attributes {
    font-size: 14px;
    line-height: 1.2;
    color: #000000;
    font-weight: normal;
    position: absolute;
    z-index: 2;
    bottom: -18px;
    left: 0;
    right: 0;
    text-align: center;
    display: block;
    white-space: nowrap;
    overflow: visible;
    transform: none;
    transform-origin: center bottom;
  }
  
  .lottery-ball.red {
    background-image: url('../images/red.png');
  }
  .lottery-ball.green {
    background-image: url('../images/green.png');
  }
  .lottery-ball.blue {
    background-image: url('../images/blue.png');
  }
  .lottery-ball.preparing {
    background-image: url('../images/kj.png');
  }
  
  .plus-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 500;
    color: #020000;
    width: 40px;
    margin: 0 0px 10px;
    padding: 0 0 5px;
  }
  
  .next-draw-info {
    font-size: 16px;
    color: #ff0000;
    text-align: center;
    margin: 5px 0 5px;
    padding: 0 5px;
  }
  
  /* LotteryTabs Responsive */
  @media (max-width: 479px) {
    .lottery-ball {
      width: 12vw;
      height: 12vw;
      min-width: 12vw;
      margin: 0 0.5vw 4vw;
    }
    
    .lottery-ball .number {
      font-size: 5vw;
    }
    
    .lottery-ball .attributes {
      font-size: 3.2vw;
      bottom: -4vw;
    }
    
    .lottery-period {
      font-size: 3.5vw;
    }
    
    .plus-sign {
      font-size: 8vw;
      width: 8vw;
      margin: 0 0 4vw;
    }
    
    .next-draw-info {
      font-size: 3.5vw;
      margin: 1vw 0;
      padding: 0 1vw;
    }
  }
  
  @media (min-width: 480px) {
    .lottery-ball {
      width: 60px;
      height: 60px;
      min-width: 60px;
      margin: 0 1px 15px;
    }
    
    .lottery-ball .number {
      font-size: 28px;
    }
    
    .lottery-ball .attributes {
      font-size: 14px;
      bottom: -18px;
    }
    
    .lottery-period {
      font-size: 17px;
    }
    
    .plus-sign {
      font-size: 40px;
      width: 40px;
      margin: 0 0 15px;
    }
    
    .next-draw-info {
      font-size: 16px;
      margin: 5px 0 5px;
      padding: 0 5px;
    }
  }
  
  .site-table-wrapper {
    width: 100%;
    display: block;
    margin: 0 0 3px 0;
    box-sizing: border-box;
    padding: 0;
  }
  
  .site-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    font-size: 20px;
  }
  
  .site-table th {
    background: #f7efd2;
    color: #d60000;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    border: 1px solid #ccc;
  }
  
  .site-table td {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 0 10px 12px;
    font-size: 22px;
    font-weight: bold;
    color: #009999;
    text-align: left;
  }
  
  .icon-new {
    vertical-align: middle;
    margin-right: 6px;
    width: 32px;
    height: 21px;
  }
  
  .site-link.main {
    color: #d60000;
    font-weight: bold;
    font-size: 26px;
    text-decoration: none;
  }
  
  .site-link.record {
    color: #d60000;
    font-weight: bold;
    font-size: 22px;
    text-decoration: none;
  }
  
  .site-link {
    color: #009999;
    font-weight: bold;
    font-size: 22px;
    text-decoration: none;
  }
  
  @media screen and (max-width: 768px) {
    .site-table-wrapper {
      padding: 0;
      margin: 0 0 2px 0;
    }
    .site-table th {
      font-size: 18px;
      padding: 6px 0;
    }
    .site-table td {
      font-size: 15px;
      padding: 7px 0 7px 6px;
    }
    .site-link.main {
      font-size: 18px;
    }
    .icon-new {
      width: 22px;
      height: 15px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .site-table-wrapper {
      padding: 0;
      margin: 0 0 1px 0;
    }
    .site-table th {
      font-size: 15px;
      padding: 4px 0;
    }
    .site-table td {
      font-size: 12px;
      padding: 5px 0 5px 3px;
    }
    .site-link.main {
      font-size: 14px;
    }
    .icon-new {
      width: 16px;
      height: 11px;
    }
  }
  
  .single-double-table-wrapper {
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 3px 0;
    display: block;
    padding: 0 4px;
  }
  
  .single-double-content-wrapper {
    padding: 0;
    background: #fff;
    width: 100%;
  }
  
  .loading-indicator, .error-message, .empty-message {
    padding: 10px;
    text-align: center;
    font-size: 16px;
    width: 100%;
  }
  
  .error-message {
    color: #f56c6c;
  }
  
  .content-item {
    margin: 0 auto;
    padding: 1px 1px;
    border-bottom: 1px solid #110101;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .content-item .item-body {
    padding: 0px 0px;
  }
  
  .content-item:last-child {
    border-bottom: none;
  }
  
  .item-body {
    margin: 0;
    padding: 1px 0;
    line-height: 1.2;
    word-break: break-all !important;
    word-wrap: break-word !important;
    font-size: 14px;
    text-align: left;
    display: block;
    width: 100%;
    overflow-wrap: anywhere !important;
    letter-spacing: -0.8px;
    text-justify: distribute;
  }
  
  .item-body p {
    margin: 3px 0;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    letter-spacing: -0.5px;
    max-width: 100%;
    display: block;
  }
  
  .item-body span {
    display: inline-block;
  }
  
  .single-double-title {
    width: 100%;
    display: block;
    text-align: center;
    background: linear-gradient(to right, #b5803c, #cf9954, #b5803c);
    padding: 0;
    height: 70px;
    overflow: hidden;
  }
  
  .title-container {
    position: relative;
    display: block;
    width: 100%;
    height: 70px;
  }
  
  .title-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 1px;
  }
  
  .title-image {
    width: 100%;
    height: 70px;
    display: block;
    margin: 0;
    position: relative;
    z-index: 1;
    object-fit: cover;
  }
  
  @media screen and (max-width: 768px) {
    .item-body {
      line-height: 1.2;
      padding: 0;
      letter-spacing: -0.8px;
    }
    .item-body p {
      margin: 0px;
      display: block;
      text-align: justify;
      word-spacing: -2px;
    }
    .content-item {
      padding: 1px;
      margin: 0;
    }
    .single-double-table-wrapper {
      padding: 0 4px;
      margin: 3px 0 1px 0;
    }
    .single-double-title {
      height: 40px;
    }
    .title-container {
      height: 40px;
    }
    .title-text {
      font-size: 22px;
    }
    .title-image {
      height: 40px;
    }
  }
  
  .item-body .correct, .item-body .zhun {
    display: inline-block;
    background-color: #2b7506;
    color: white;
    padding: 0px 6px;
    border-radius: 3px;
    font-weight: 500;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
  }
  
  .item-body .incorrect, .item-body .cuo {
    display: inline-block;
    background-color: #d10e0e;
    color: white;
    padding: 0px 6px;
    border-radius: 3px;
    font-weight: 500;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
  }
  
  @media screen and (max-width: 768px) {
    .item-body .correct, .item-body .zhun, .item-body .incorrect, .item-body .cuo {
      font-size: 16px;
      padding: 0 4px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .item-body .correct, .item-body .zhun, .item-body .incorrect, .item-body .cuo {
      font-size: 16px;
      padding: 0 4px;
    }
  }
  
  .rank-table-wrapper {
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 3px 0;
    display: block;
    padding: 0 4px;
  }
  
  .rank-title {
    width: 100%;
    display: block;
    text-align: center;
    background: linear-gradient(to right, #b5803c, #cf9954, #b5803c);
    padding: 0;
    height: 70px;
    overflow: hidden;
  }
  
  .rank-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    color: #39b54a;
    font-size: 18px;
    font-weight: normal;
    table-layout: fixed;
  }
  
  .rank-table tr {
    border-bottom: 1px solid #dddddd;
  }
  
  .rank-table tr:last-child {
    border-bottom: none;
  }
  
  .rank-label-cell {
    width: 10%;
    padding: 10px 0px 10px 5px;
    vertical-align: middle;
    white-space: nowrap;
  }
  
  .rank-content-cell {
    width: 70%;
    padding: 10px 2px;
    vertical-align: middle;
    text-align: left;
  }
  
  .rank-author-cell {
    width: 20%;
    padding: 10px 5px 10px 0px;
    vertical-align: middle;
    text-align: right;
  }
  
  .rank-label {
    padding: 2px 5px;
    text-align: center;
    background: linear-gradient(to right, #ff0000, #ff3333, #ff6666);
    color: white;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
    line-height: 1.5;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    letter-spacing: 1px;
  }
  
  .rank-content {
    display: block;
    color: #000000;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 10px;
    font-size: 16px;
  }
  
  .rank-author {
    display: block;
    color: #000000;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
  }
  
  .rank-content-link {
    text-decoration: none;
    color: inherit;
  }
  
  @media screen and (max-width: 768px) {
    .rank-table-wrapper {
      padding: 0 2px;
      margin: 6px 0 2px 0;
    }
    .rank-table {
      font-size: 15px;
    }
    .rank-label-cell {
      width: 12%;
      padding: 8px 0px 8px 0px;
    }
    .rank-content-cell {
      width: 68%;
      padding: 8px 0px;
    }
    .rank-author-cell {
      width: 20%;
      padding: 8px 0px 8px 0px;
    }
    .rank-label {
      padding: 1px 5px;
      font-size: 13px;
      font-weight: bold;
      text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    }
    .rank-content {
      padding-left: 6px;
      font-size: 15px;
    }
    .rank-author {
      font-size: 15px;
      font-family: bold;
    }
    .rank-title {
      height: 60px;
    }
    .title-container {
      height: 60px;
    }
    .title-image {
      height: 60px;
    }
    .title-text {
      font-size: 28px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .rank-table-wrapper {
      padding: 0 2px;
      margin: 4px 0 1px 0;
    }
    .rank-table {
      font-size: 12px;
    }
    .rank-label-cell {
      width: 14%;
      padding: 6px 0px 6px 0px;
    }
    .rank-content-cell {
      width: 66%;
      padding: 6px 0px;
    }
    .rank-author-cell {
      width: 20%;
      padding: 6px 0px 6px 0px;
    }
    .rank-label {
      padding: 1px 4px;
      font-size: 12px;
      font-weight: bold;
      text-shadow: 0 1px 1px rgba(0,0,0,0.3);
      letter-spacing: 0.5px;
    }
    .rank-content {
      padding-left: 4px;
      font-size: 14px;
      font-weight: bold;
    }
    .rank-author {
      font-size: 14px;
      font-weight: bold;
    }
    .rank-title {
      height: 50px;
    }
    .title-container {
      height: 50px;
    }
    .title-image {
      height: 50px;
    }
    .title-text {
      font-size: 24px;
    }
  }
  
  /* Additional Styles for Lottery */
  .border-box {
    background: #fff;
    padding: 10px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .head li {
    font-size: 18px;
    color: #333;
    width: 50%;
    display: inline-block;
    line-height: 1.5;
  }
  
  .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;
  }
  
  .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/49red.png'); }
  .m0.green { background-image: url('../images/49green.png'); }
  .m0.blue { background-image: url('../images/49blue.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;
    margin-top: 0;
  }
  
  @media (max-width: 479px) {
    .border-box {
      height: 125px;
      min-height: 125px;
      padding: 0 2px;
    }
  
    .head li,
    .head li a,
    .green-text,
    .countdown-time,
    .lottery-history {
      font-size: 13px !important;
    }
  
    .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;
    }
  }

/* Zodiac Table Styles from RWF */
.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; }
}
/* =========================================
   Component: ZuoYouZhongTe (左右中特) - Adapted from RWF
   ========================================= */
.liuxiazhongte-container {
  width: 100%;
  background-color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.image-mystery-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
}

.image-mystery-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  text-decoration: none;
  color: #0b57d0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-mystery-link:hover {
  border-color: #cfcfcf;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.image-mystery-link.is-hot {
  color: #ff7a00;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.image-mystery-link.span-3 {
  grid-column: 1 / -1;
}

@media screen and (max-width: 768px) {
  .image-mystery-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  .image-mystery-link {
    font-size: 16px;
    min-height: 40px;
    padding: 4px 8px;
  }
}

@media screen and (max-width: 480px) {
  .image-mystery-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  .image-mystery-link {
    font-size: 15px;
    min-height: 38px;
    padding: 3px 8px;
  }
}

.sijishengxiao-content {
  padding: 10px;
}

.season-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.season-item {
  display: flex;
  flex: 1 1 320px;
  min-width: 280px;
  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: bold;
  border-right: 1px solid #eee;
  color: #333;
}

.animal-group {
  flex: 1;
  padding: 10px;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  background-color: #fff;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .season-item {
    flex-basis: 100%;
    min-width: 0;
  }
  .animal-group {
    white-space: normal;
  }
}

.pt1x-list {
  border: 1px solid #a26106;
  background-color: #fff;
  margin-top: 5px;
}

.pt1x-row {
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid #a26106;
  font-size: 16px;
  line-height: 1.5;
  height: 40px;
}

.pt1x-row:last-child {
  border-bottom: none;
}

.pt1x-left {
  width: 15%;
  text-align: center;
  font-weight: normal;
  border-right: 1px solid #a26106;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt1x-center {
  flex: 1;
  text-align: center;
  font-weight: normal;
  border-right: 1px solid #a26106;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt1x-right {
  width: 20%;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.78);
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #ffffff;
  transform: translateY(-2px);
}

@media screen and (max-width: 480px) {
  .back-to-top {
    right: 12px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

.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;
  font-weight: normal;
  font-size: 20px;
  background-size: 100% 100%;
  background-position: center;
  font-family: Arial, sans-serif;
}

.ball-attributes {
  font-size: 13px;
  color: #555;
  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-red { background-image: url('../images/49red.png'); }
.history-ball-blue { background-image: url('../images/49blue.png'); }
.history-ball-green { background-image: url('../images/49green.png'); }

.load-more {
  text-align: center;
  padding: 15px;
  color: #666;
  font-size: 14px;
}

@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;
  }
}