/* Global Styles from App.vue */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f7f8fa;
}

#app {
  min-height: 100vh;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 65px; /* 底部导航高度 */
}

.page-container {
  padding-bottom: 0;
}

/* Footer Navigation from App.vue */
.footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #fff;
  border-top: 1px solid #f2f2f2;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.nav-bar {
  display: flex;
  height: 60px; /* 稍微调高一点 */
  background-color: #fff;
  align-items: center;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  color: #646566;
  text-decoration: none;
  cursor: pointer;
  height: 100%;
}

.nav-item.active {
  color: #07c160;
}

.nav-item-icon {
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item-icon img {
  width: 28px;
  height: 28px;
}

.nav-item-text {
  font-size: 14px;
  color: inherit;
  line-height: 1;
}

.nav-special {
  text-align: center;
  position: relative;
  top: -20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-special img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
  padding: 3px; /* 增加一点白边 */
  box-sizing: border-box;
}

.nav-special div {
  margin-top: 4px;
  font-size: 14px;
  color: #646566;
  font-weight: normal;
}

/* Home Page Styles from Home.vue & home.css */
.home-page {
  padding-top: 48px;
  padding-bottom: 80px; /* 增加底部间距，防止被底部导航遮挡 */
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.home-navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  z-index: 1000;
  background: #fff !important;
  color: #000 !important;
  display: flex;
  align-items: center;
  height: 48px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  padding-left: 0;
}

.home-logo {
  width: 80px;
  height: 30px;
  margin-left: 16px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.van-nav-bar__title {
  color: #000 !important;
  font-size: 20px;
  font-weight: normal;
  flex: 1;
  text-align: center;
}

.home-navbar-icons {
  display: flex;
  align-items: center;
  margin-right: 16px;
  height: 100%;
}

.icon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 12px;
  cursor: pointer;
}

.nav-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.icon-label {
  font-size: 10px;
  color: #333;
  margin-top: 2px;
  line-height: 1;
}

/* Swiper Styles */
.swiper-container {
  width: 100%;
  height: 180px; /* 根据实际图片比例调整 */
  margin: 5px 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: background 0.3s;
}

.swiper-pagination-bullet.active {
  background: #fff;
  width: 12px;
  border-radius: 3px;
}

/* Announcement Styles */
.announcement-bar {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  padding: 8px 16px;
  margin: 5px 0;
  border-radius: 4px;
}

.announcement-icon {
  display: flex;
  align-items: center;
  margin-right: 10px;
  min-width: 60px;
}

.announcement-speaker {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f56c6c'%3E%3Cpath d='M3,9H7L12,4V20L7,15H3V9M16.59,12L14,9.41L15.41,8L18,10.59L20.59,8L22,9.41L19.41,12L22,14.59L20.59,16L18,13.41L15.41,16L14,14.59L16.59,12Z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

.announcement-label {
  margin-left: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #973030;
}

.announcement-content {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
}

.scrolling-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ToolBar Styles from ToolBar.vue */
.category-tr {
  margin: 5px 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 10px 0;
}

.category-icon {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

.tool-item {
  flex: 0 0 25%;
  max-width: 30%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5px;
  text-decoration: none;
  cursor: pointer;
}

.tool-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 2px;
  object-fit: contain;
}

.tool-text {
  font-size: 14px;
  color: #2b2929;
  text-align: center;
}

/* Lottery Tabs Styles from LotteryTabs.css */
.block-lottery {
  margin: 5px 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tab-menu-wrapper {
  background: #fff;
}

.tab-menu {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #eee;
}

.tab-menu .tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  transition: all 0.3s;
}

.tab-menu .tab-item.active {
  color: #0cc767;
  font-weight: bold;
  border-bottom: 2px solid #0cc767;
}

.lottery-content {
  padding: 10px;
  min-height: 150px;
}

/* Lottery Result Specifics */
.lottery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.highlight-number {
  color: #0cc767;
  font-weight: bold;
  margin: 0 2px;
}

.countdown-time {
  color: #ff0000;
  margin-left: 5px;
}

.lottery-history {
  color: #0cc767;
  cursor: pointer;
}

.lottery-numbers {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

.lottery-ball {
  width: 40px;
  height: 40px;
  margin: 0 2px 15px 2px;
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lottery-ball.red { background-image: url('../images/49red.png'); }
.lottery-ball.blue { background-image: url('../images/49blue.png'); }
.lottery-ball.green { background-image: url('../images/49green.png'); }

.lottery-ball .number {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  z-index: 2;
  margin-top: -2px; /* Visual adjustment */
}

.lottery-ball .attributes {
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #333;
  white-space: nowrap;
}

.plus-sign {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 5px 15px 5px;
  color: #333;
}

.next-draw-info {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  border-top: 1px solid #f5f5f5;
  padding-top: 5px;
}

/* Image Gallery Styles from ImageGallery.vue */
.image-gallery {
  width: 100%;
  margin: 10px 0;
  padding: 0 5px;
  box-sizing: border-box;
}

.gallery-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.gallery-column {
  width: 49%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.image-card:hover {
  transform: translateY(-2px);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  padding: 8px;
  font-size: 14px;
  color: #333;
  text-align: center;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

/* Lazy Load Image Styles */
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.image-card {
    position: relative;
    overflow: hidden;
    min-height: 100px; /* Ensure container has height */
}

.lazy-image {
  /* Center the loading icon */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px !important; /* Smaller size for loader */
  height: 40px !important;
  object-fit: contain !important;
  
  /* Animation */
  animation: spin 5s linear infinite;
  
  /* Reset transform origin handled by translate in keyframes */
}

.lazy-image.loaded {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  animation: none;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

/* Image Detail Page Styles */
.image-detail-page {
  padding-bottom: 20px;
  background-color: #f5f5f5;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  cursor: pointer;
  margin-right: 15px;
}

.page-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-right: 27px; /* Balance the arrow width */
}

.draw-selector {
  margin: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  position: relative;
}

.selector-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.selector-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 5px;
  /* Hide scrollbar */
  scrollbar-width: none;
}
.selector-scroll::-webkit-scrollbar { display: none; }

.draw-item {
  flex: 0 0 auto;
  padding: 6px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.draw-item.active {
  background: #07c160;
  color: #fff;
}

.more-periods-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 12px;
  color: #07C160;
  cursor: pointer;
}

/* Period Modal Styles */
.period-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.period-modal.open {
  display: flex;
}

.period-modal-content {
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.period-modal-header {
  padding: 15px;
  background-color: #07C160;
  color: white;
  font-weight: bold;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  cursor: pointer;
}

.period-modal-body {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.period-item {
  padding: 10px 5px;
  background-color: #f5f5f5;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
}

.period-item.active {
  background-color: #07C160;
  color: white;
  font-weight: bold;
}

.detail-image-container {
  margin: 10px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}

.detail-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
}

.detail-tabs {
  margin: 10px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.detail-tabs-header {
  display: flex;
  flex-wrap: wrap;
}

.detail-tab-item {
  width: 25%;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Tab Colors matching original */
.tab-color-1 { background-color: #07C160; }
.tab-color-2 { background-color: #1E88E5; }
.tab-color-3 { background-color: #F57C00; }
.tab-color-4 { background-color: #D81B60; }
.tab-color-5 { background-color: #9C27B0; }
.tab-color-6 { background-color: #00BCD4; }
.tab-color-7 { background-color: #FF5722; }
.tab-color-8 { background-color: #607D8B; }

.detail-tab-item.active {
  font-weight: bold;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.detail-tab-content {
  padding:0px;
  min-height: 100px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.image-modal.open {
  display: flex;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

/* Search/Resources Page Styles */
.search-page {
  background: #fff;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.search-header {
  padding: 10px 15px;
  background: #fff;
  border-bottom: 1px solid #f5f5f5;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  background: #f5f5f5;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.main-content {
  display: flex;
  position: relative;
  margin-right: 28px; /* 留出右侧索引空间 */
}

.resource-list {
  flex: 1;
  padding-bottom: 20px;
}

.letter-group-title {
  padding: 8px 15px;
  background: #f9f9f9;
  color: #999;
  font-size: 12px;
  font-weight: bold;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}

.resource-name {
  font-size: 15px;
  color: #333;
}

.resource-issue {
  background: #eaf4ff;
  color: #0cc767;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
}

.letter-index {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  font-size: 12px;
  color: #666;
  z-index: 90;
  padding: 6px 0;
  border-left: 1px solid #eee;
  box-shadow: -1px 0 4px rgba(0,0,0,0.03);
}

@media (min-width: 480px) {
  .letter-index {
    right: calc(50% - 240px);
  }
}

.letter-item {
  padding: 4px 0;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.letter-item:hover {
  color: #e74c3c;
  font-weight: bold;
}

.letter-item.active {
  color: #e74c3c;
  font-weight: bold;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .lottery-ball {
    width: 32px;
    height: 32px;
    margin: 0 1px 10px 1px;
  }
  .lottery-ball .number { font-size: 14px; }
  .lottery-ball .attributes { font-size: 9px; }
  .tool-text { font-size: 12px; }
}

.pt1x-list {
  border: 2px solid #07C160;
  background-color: #fff;
  margin-top: 5px;
}

.pt1x-row {
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 2px solid #07C160;
  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: 2px solid #07C160;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt1x-center {
  flex: 1;
  text-align: center;
  font-weight: normal;
  border-right: 2px solid #07C160;
  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;
}

/* ====================
   Home Popup Styles
   ==================== */
.home-popup-modal {
  display: none; /* Default hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.home-popup-modal.show {
  display: flex;
}

.home-popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.home-popup-container {
  position: relative;
  width: 92%;
  max-width: 440px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.home-popup-header {
  background: #07c160;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
}

.home-popup-body {
  padding: 0;
}

.home-popup-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.home-popup-wrapper {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.home-popup-slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.home-popup-banner {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.home-popup-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.home-popup-content-text {
  padding: 15px;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  text-align: justify;
}

.home-popup-dots {
  display: flex;
  justify-content: center;
  padding-bottom: 15px;
}

.home-popup-dots span {
  width: 6px;
  height: 6px;
  background: #eee;
  border-radius: 50%;
  margin: 0 3px;
}

.home-popup-dots span.active {
  background: #07c160;
}

.home-popup-footer-btns {
  display: flex;
  border-top: 1px solid #eee;
}

.home-popup-btn {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  cursor: pointer;
}

.home-popup-btn.btn-close {
  color: #999;
  border-right: 1px solid #eee;
}

.home-popup-btn.btn-no-remind {
  color: #07c160;
}

/* ====================
   History Page
   ==================== */
.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/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;
}

/* 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;
  }
}