* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f5f6f8;
}

body {
  margin: 0;
  color: #333;
  background: #f5f6f8;
  font: 14px/1.6 "Microsoft Yahei", "PingFang SC", Arial, sans-serif;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #c62828;
}

button {
  font: inherit;
}

#app {
  min-height: 100vh;
}

.appHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
  padding: 12px max(24px, calc((100% - 1160px) / 2));
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.appHeader .logo {
  display: flex;
  flex: 0 1 270px;
  align-items: center;
  min-width: 140px;
}

.appHeader .logo img {
  max-width: 250px;
  max-height: 64px;
  object-fit: contain;
}

.appHeader .date {
  margin-left: 12px;
  color: #888;
  white-space: nowrap;
}

.appHeader > ul {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.appHeader > ul > li {
  display: flex;
}

.appHeader > ul a {
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: #444;
  white-space: nowrap;
}

.appHeader > ul a:hover,
.appHeader > ul .active {
  color: #b51f2b;
}

.appHeader > ul .active {
  font-weight: 700;
}

.whole {
  padding: 8px 0;
}

.LotteryIndex,
.lotteryPost,
.lotteryLive,
.lotteryFaq,
.lotteryUs,
.lotteryContact {
  width: min(1160px, calc(100% - 40px));
  margin: 24px auto;
}

.LotteryIndex .swiper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
}

.LotteryIndex .swiper-container,
.LotteryIndex .swiper-wrapper,
.LotteryIndex .swiper-slide {
  width: 100%;
}

.LotteryIndex .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.LotteryIndex .swiper-pagination {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  text-align: center;
}

.LotteryIndex .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.65;
}

.LotteryIndex .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 5px;
  background: #c62828;
  opacity: 1;
}

.lotteryHall > ul,
.postLottery > ul,
.hisPost > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lotteryHall > ul > li,
.lotteryHall .mainLottery,
.lotteryHall .postLottery,
.lotteryPost,
.lotteryLive,
.lotteryFaq,
.lotteryUs,
.lotteryContact {
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
}

.mainLottery .top {
  padding: 22px 26px;
  background: linear-gradient(120deg, #fff, #fff8f4);
}

.lotteryTitle,
.postHeader,
.lotteryPost .nav,
.lotteryLive > .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lotteryTitle {
  gap: 12px;
  color: #a51d27;
  font-size: 20px;
  font-weight: 700;
}

.lotteryTitle .nextTime {
  color: #777;
  font-size: 14px;
  font-weight: 400;
}

.lotteryNum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
}

.lotteryNum .lastTitle {
  color: #777;
}

.lotteryNum .lotteryName {
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.lotteryNum .lotteryIssue {
  margin-top: 3px;
}

.lotteryTime {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.leftTime {
  display: flex;
  align-items: center;
  gap: 5px;
}

.leftTime .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 38px;
  margin-right: 2px;
  border-radius: 3px;
  color: #fff;
  background: #333;
  font-size: 22px;
  font-weight: 700;
}

.leftTime .dot {
  color: #555;
  font-size: 20px;
  font-weight: 700;
}

.lotteryTime .video,
.lotteryTime .button {
  padding: 7px 18px;
  border-radius: 3px;
  color: #fff;
  background: #ba202b;
}

.lotteryTime .history a {
  color: #555 !important;
}

.postLottery {
  margin-top: 18px;
}

.postHeader {
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.postHeader .right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
}

.postLottery > ul > li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px 18px;
  border-bottom: 1px solid #f0f0f0;
}

.postLottery > ul > li:last-child {
  border-bottom: 0;
}

.historyIssue {
  flex: 0 0 145px;
  color: #777;
}

.historyNum {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.lhcHisCode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.balls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.balls i {
  font-style: normal;
}

.balls.red,
.balls.redBg,
.balls.hm1,
.balls.hm4,
.balls.hm7 {
  background: #df3b43;
}

.balls.blue,
.balls.blueBg,
.balls.hm2,
.balls.hm5 {
  background: #2584cc;
}

.balls.green,
.balls.greenBg,
.balls.hm3,
.balls.hm6 {
  background: #319b65;
}

.shengxiao {
  color: #666;
  font-size: 12px;
}

.lotteryPost > .nav,
.lotteryLive > .nav {
  padding: 18px 22px;
  color: #fff;
  background: #a91e29;
  font-size: 18px;
  font-weight: 700;
}

.lotteryPost > .header,
.lotteryLive > .header,
.lotteryFaq > .header,
.lotteryUs > .header {
  padding: 0 22px;
  border-bottom: 1px solid #eee;
}

.lotteryPost > .header ul,
.lotteryLive > .header ul,
.lotteryFaq > .header ul,
.lotteryUs > .header ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lotteryPost > .header li,
.lotteryLive > .header li,
.lotteryFaq > .header li,
.lotteryUs > .header li {
  padding: 13px 2px;
  color: #555;
}

.lotteryPost > .header li.active,
.lotteryLive > .header li.active,
.lotteryFaq > .header li.active,
.lotteryUs > .header li.active {
  border-bottom: 2px solid #b51f2b;
  color: #b51f2b;
}

.lotteryPost .notice,
.lotteryLive .notice {
  padding: 12px 20px;
  color: #666;
  background: #fff9ec;
  border-bottom: 1px solid #f2e7d0;
}

.lotteryPost .notice .left,
.lotteryLive .notice .left {
  color: #a51d27;
  font-weight: 700;
}

.lotteryPost .hisPost,
.lotteryLive .hisPost {
  padding: 20px;
}

.lotteryPost .lastInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-radius: 4px;
  background: #faf6f2;
}

.lotteryPost .lastInfo .lastTitle,
.lotteryPost .lastInfo .nextTimeTitle {
  margin-bottom: 8px;
  color: #666;
}

.lotteryPost .lastNum,
.lotteryPost .lastNum > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lotteryPost .title,
.lotteryLive .hisPost > .title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.lotteryPost .six,
.lotteryLive .six {
  padding: 4px 13px;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  color: #555;
  background: #fff;
  cursor: pointer;
}

.lotteryPost .hisInfo {
  margin: 0;
  padding: 0;
  border: 1px solid #eee;
  list-style: none;
}

.lotteryPost .hisInfo > li {
  display: grid;
  grid-template-columns: 1fr 1.4fr 2fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.lotteryPost .hisInfo > li:last-child {
  border-bottom: 0;
}

.lotteryPost .hisInfo > .hisTitle {
  color: #555;
  background: #f7f7f7;
  font-weight: 700;
}

.lotteryPost .hisInfo .lhcli,
.lotteryPost .hisInfo .balls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0;
}

.page > span {
  min-width: 30px;
  padding: 3px 8px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  text-align: center;
}

.page > .active {
  border-color: #b51f2b;
  color: #fff;
  background: #b51f2b;
}

.lotteryLive .live {
  max-width: 820px;
  margin: 0 auto;
}

.lotteryLive .liveSon {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #171717;
}

.lotteryLive .liveSon iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.lotteryLive .cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lotteryLive .repeat {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lotteryLive .repeat > li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.lotteryLive .repeat .livebg {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.lotteryLive .video-detail {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.lotteryLive .currentVideo .main {
  padding: 16px;
  background: #fafafa;
}

.lotteryLive .videoTitle,
.lotteryLive .videoName {
  font-weight: 700;
}

.lotteryFaq .mainText,
.lotteryUs .content,
.lotteryContact .main {
  padding: 26px;
}

.lotteryFaq .mainText > .title,
.lotteryContact .main > .title,
.lotteryUs .content .title {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 20px;
  font-weight: 700;
}

.lotteryFaq .main {
  color: #555;
  line-height: 1.9;
}

.lotteryFaq .main > div {
  margin-top: 14px;
  color: #333;
  font-weight: 700;
}

.lotteryFaq .main p,
.lotteryUs .content p {
  margin: 5px 0 12px;
  color: #666;
}

.lotteryUs > .header img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.lotteryUs .content .about,
.lotteryUs .content .rule {
  line-height: 1.8;
}

.lotteryUs .table {
  width: 100%;
  border-collapse: collapse;
}

.lotteryUs .table td {
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  vertical-align: top;
}

.lotteryUs .table .theader,
.lotteryUs .table .sheader {
  background: #f7f7f7;
  font-weight: 700;
}

.lotteryUs .orderRule {
  display: grid;
  grid-template-columns: minmax(100px, 18%) 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.lotteryUs .orderRule .left {
  color: #444;
  font-weight: 700;
}

.lotteryUs .orderRule .right {
  color: #666;
}

.lotteryUs .detailRule h3 {
  margin: 20px 0 8px;
  color: #333;
}

.lotteryContact .article {
  color: #666;
}

.lotteryContact .contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.lotteryContact .contact img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

footer {
  margin-top: 30px;
  color: #999;
  background: #262626;
}

footer .bottom {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .appHeader {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
  }

  .appHeader .logo {
    flex: 1 1 100%;
    justify-content: center;
  }

  .appHeader > ul {
    max-width: 100%;
    overflow-x: auto;
  }

  .LotteryIndex,
  .lotteryPost,
  .lotteryLive,
  .lotteryFaq,
  .lotteryUs,
  .lotteryContact {
    width: calc(100% - 24px);
    margin: 12px auto;
  }
}

@media (max-width: 600px) {
  .appHeader > ul {
    justify-content: flex-start;
  }

  .appHeader > ul a {
    padding: 0 9px;
    font-size: 13px;
  }

  .mainLottery .top,
  .lotteryFaq .mainText,
  .lotteryUs .content,
  .lotteryContact .main,
  .lotteryPost .hisPost,
  .lotteryLive .hisPost {
    padding: 14px;
  }

  .lotteryTitle {
    align-items: flex-start;
    flex-direction: column;
    font-size: 18px;
  }

  .lotteryNum,
  .lotteryTime,
  .lotteryPost .lastInfo {
    align-items: flex-start;
    flex-direction: column;
  }

  .postLottery > ul > li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .historyIssue {
    flex-basis: auto;
  }

  .lotteryPost .hisInfo > li {
    grid-template-columns: 1fr 1fr;
  }

  .lotteryUs .orderRule {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .lotteryFaq .mainText > .title,
  .lotteryContact .main > .title,
  .lotteryUs .content .title {
    font-size: 18px;
  }
}
