/* macaujc.com 風格主題覆蓋 */

:root {
  --font-sans: PingFangSC-Regular, "PingFang SC", "Microsoft YaHei", Helvetica, sans-serif;
}

/* 基礎配色與字體 */
html,
body {
  background: #0f1a2b;
  color: #e5e9f0;
  font-family: var(--font-sans);
}

#app {
  width: 1164px;
  margin: 0 auto;
  font-family: var(--font-sans);
}

/* 移动端适配 */
@media (max-width: 768px) {
  #app {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  html {
    overflow-x: hidden !important;
  }
}

/* 頁頭 */
.appHeader {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.appHeader .logo {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.appHeader .logo img {
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.appHeader .date {
  position: absolute;
  right: 32px;
  top: 12px;
  color: #9fb3c8;
  font-size: 14px;
}

/* 導航 */
.nav.nav-pills {
  display: flex;
  justify-content: center;
}

.nav.nav-pills>li {
  flex: 1 1 0%;
  height: 38px;
  line-height: 38px;
  text-align: center;
}

.nav.nav-pills>li>a {
  text-decoration: none;
}


/* 卡片與區塊容器對齊 */
.LotteryIndex .lotteryHall,
.LotteryIndex .mainLottery,
.postLottery,
.bottom .son {
  max-width: 1170px;
  margin: 0 auto;
}

/* 卡片視覺 */
.LotteryIndex .mainLottery .top,
.postLottery,
.bottom .son {
  background: #142136;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* 區塊/標題條樣式，更接近目標站 */
.lotteryTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 20px;
  height: 56px;
  border: 1px solid #515ddd;
  color: #515ddd;
  box-sizing: border-box;
  font-weight: 700;
}

.lotteryTitle .title {
  font-weight: 700;
  font-size: var(--pc-font-xl);
}

.lotteryTitle .nextTime {
  font-size: var(--pc-font-sm);
}

.postLottery {
  overflow: hidden;
}

.postLottery .postHeader {
  padding: 10px 16px;
  background: linear-gradient(180deg, #1b2a44 0%, #18253b 100%);
  border-top: 3px solid #d80011;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.postLottery .postHeader .left {
  color: #f6c344;
  font-weight: 600;
}

.postLottery .postHeader .right a {
  color: #d80011;
}





/* 倒計時 */
.lotteryTime .leftTime .num {
  background: #0b1b2b;
  color: #f6c344;
  border: 1px solid rgba(246, 195, 68, 0.35);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lotteryTime .dot {
  color: #8aa4bf;
}

/* Swiper 分頁點樣式 */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #d80011;
}

/* 底部 */
footer .bottom .son {
  background: transparent;
  border: none;
  color: #9fb3c8;
  text-align: center;
}

/* 超連結 */
a,
a:visited {
  color: #73b3ff;
}

a:hover {
  color: #a9d0ff;
}

/* --- Light theme overrides to match macaujc.com --- */

/* Base to light */
html,
body {
  background: #fff;
  color: #222;
}

/* Header to white bar with subtle border */
.appHeader {
  background: #ffffff;
  border-bottom: 1px solid #e6e8eb;
}

.appHeader .date {
  color: #5f6b7a;
}

/* Nav: colored segmented tabs */
.nav.nav-pills {
  background: #ffffff;
}

.nav.nav-pills>li {
  margin: 0;
}

.nav.nav-pills>li>a {
  color: #fff;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.nav.nav-pills>li:nth-child(1) {
  background: #d8251c;
}

.nav.nav-pills>li:nth-child(2) {
  background: #1e96ff;
}

.nav.nav-pills>li:nth-child(3) {
  background: #0fbf4a;
}

.nav.nav-pills>li:nth-child(4) {
  background: #f2a100;
}

.nav.nav-pills>li:nth-child(5) {
  background: #7a43ff;
}

.nav.nav-pills>li:nth-child(6) {
  background: #c2410c;
}

.nav.nav-pills>li:nth-child(7) {
  background: #00b6a7;
}

.nav.nav-pills>li:nth-child(8) {
  background: #0d9488;
}

.nav.nav-pills>li:nth-child(9) {
  background: rgb(196, 44, 181);
}

.nav.nav-pills>li>a:hover {
  filter: brightness(1.05);
}

.nav.nav-pills>li.active>a,
.nav.nav-pills>li.active>a:hover,
.nav.nav-pills>li.active>a:focus {
  outline: 0;
  filter: brightness(1.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav .active a{
  color: #fff100 !important;
}

/* Containers and cards to white */
.LotteryIndex .lotteryHall,
.LotteryIndex .mainLottery,
.postLottery,
.bottom .son {
  max-width: 1200px;
}

.LotteryIndex .mainLottery .top,
.postLottery {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}



/* 主卡片白底 */
.LotteryIndex .mainLottery .top {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* Footer */
footer .bottom .son {
  background: #ffffff;
  border: 1px solid #e6e8eb;
  color: #5f6b7a;
  border-radius: 6px;
}



/* Swiper bullets on light */
.swiper-pagination-bullet {
  background: #c8d0da;
}

.swiper-pagination-bullet-active {
  background: #d8251c;
}

/* Links */
a,
a:visited {
  color: #1e96ff;
}

a:hover {
  color: #0e7fe0;
}

/* 轮播图区域样式 */
.LotteryIndex .swiper {
  width: 100%;
  height: 374px;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 25%, #c084fc 50%, #d946ef 75%, #ec4899 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.LotteryIndex .swiper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.LotteryIndex .swiper-container {
  width: 100%;
  height: 100%;
}

.LotteryIndex .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.LotteryIndex .swiper-slide {
  width: 100% !important;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

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

/* 轮播图分页点样式 */
.LotteryIndex .swiper-pagination {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.LotteryIndex .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  margin: 0 4px;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.LotteryIndex .swiper-pagination-bullet-active {
  background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cai-menu {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}

.cai-menu .active {
  background-color: #515ddd !important;
}

.cai-menu .active a {
  color: #fff !important;
}

.cai-menu li {
  background-color: #ded9d9;
  font-weight: bolder;
  margin-right: 16px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.cai-menu li a {
  color: #000;
  text-decoration: none;
}


.open_code_zone_left {
  flex: 1;
}

.open_code_zone .open_code_zone_right {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
}




.postLottery {
  border: 1px solid #d4d4d4;
  position: relative;
  width: 100%;
  table-layout: fixed; /* 固定表格布局，强制使用设置的列宽 */
}

.postLottery-body {
  table-layout: fixed; /* 虚拟滚动的表格body也需要固定布局 */
}

.postLottery th {
  height: 27px;
  color: #414141;
  padding: 6px 0;
  font-weight: 700;
  background-color: #f0f0f0;
}

.postLottery th,
.postLottery td,
.postLottery-body td {
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  border-bottom: 1px solid #ccc;
}

/* 表格列宽度 - 表头和内容保持一致 */
.postLottery th:nth-child(1),
.historyIssue {
  width: 15%;
}

.postLottery th:nth-child(2),
.historyTime {
  width: 15%;
}

.postLottery th:nth-child(3),
.history-list {
  width: 55%;
}

.postLottery th:nth-child(4),
.historyVideo {
  width: 15%;
}

/* 虚拟滚动的表格body也需要设置列宽 */
.postLottery-body td:nth-child(1) {
  width: 15%;
}

.postLottery-body td:nth-child(2) {
  width: 15%;
}

.postLottery-body td:nth-child(3) {
  width: 55%;
}

.postLottery-body td:nth-child(4) {
  width: 15%;
}

.historyVideo button {
  color: #fff;
  background: #515ddd;
  width: 87px;
  height: 34px;
  cursor: pointer;
  border-radius: 4px;
}

footer {
  height: 40px;
  line-height: 40px;
  margin-top: 130px;
  text-align: center;
  color: #848484;
  border-top: 5px solid #eee222;
  font-size: 14px;
}


/* 倒计时样式 */
.countdown {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 24px;
  color: #000;
}

.countdown-item {
  font-size: 38px;
  text-align: center;
  color: #000;
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  display: inline-block;
  height: 49px;
  line-height: 49px;
  width: 41px;
  margin-left: 10px;
}

.countdown-item:first-child {
  margin-left: 0;
}

.countdown-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.countdown-split {
  font-size: 38px;
  font-weight: 700;
  font-family: var(--font-sans);
  margin: 0 5px;
}

.operate-btn {
  margin-bottom: 10px;
}
.operate-btn-4 {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #000;
  cursor: pointer;
}

.operate-btn-1,
.operate-btn-2,.operate-btn-4 {
  display: inline-block;
  font-size: 14px;
  color: #fff;
  padding: 5px 20px;
  box-shadow: inset 0 0 3px;
  cursor: pointer;
}

.operate-btn-1,.operate-btn-4 {
  border-radius: 3px;
  border: 1px solid #bb8215;
  background: linear-gradient(180deg,#deb030,#e59e10);
  margin: 0 10px
}

.operate-btn-2 {
  background: #d61a1a;
  border-radius: 3px;
  border: 1px solid #b02b21;
  background: linear-gradient(180deg, #d21e1e, #b02b21);
}

.router-link-active,
a {
  text-decoration: none;
  color: #000;
}

.lotteryPost .nav {
  width: 1170px;
  height: 50px;
  line-height: 50px;
  font-size: 24px;
  color: #2c2c2c;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
  font-family: var(--font-sans);
}


.lottery-tab {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 34px;
}

.lottery-tab-item {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 34px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 12px;
}

.lottery-tab-item.active {
  background-color: #515ddd;
}

.lottery-tab-item.active a {
  color: #fff !important;
}

.open_code_zone {
  border: 1px solid #ddd;
}

.lotteryPost .find-div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.find-input {
  display: flex;
  border: 1px solid #ddd;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-right: 27px;
}

.find-input input {
  outline: none;
  border: 0;
  height: 60%;
  width: 80%;
  font-size: 16px;
}

.find-input img {
  width: 16px;
  cursor: pointer;
}
