@charset "UTF-8";
blockquote,
body,
dd,
div,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
img,
input,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
  padding: 0;
  margin: 0;
}

li,
ol,
ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: 100%;
}

a {
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
}

input {
  outline: none;
}

i {
  font-style: normal;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.description {
  margin: 2px 0px;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  background-color: #444;
  font-size: large;
  color: #FFF;
  justify-content: center; /* Center the text horizontally */
  align-items: center; /* Center the text vertically */
}
.description > span {
  margin: 0 5px;
  color: #ffbf11;
}

.tResult {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 20px;
  padding-bottom: 20px;
  margin-top: 20px;
}
.tResult:first-child {
  padding-top: 10px;
}
.tResult.multi {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.tResult.multi > div {
  padding: 10px 0;
}
.tResult.multi > div > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tResult p {
  color: #FFF;
  font-size: 24px;
  padding: 5px 15px;
  text-align: center;
}
.tResult p > span {
  border-radius: 5px;
  display: block;
  background-color: brown;
  width: 40px;
  height: 40px;
  line-height: 40px;
}
.tResult p > span.multiResult {
  width: 90px;
}
.tResult ul {
  border: 1px solid gray;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  justify-content: center;
  align-items: center;
}
.tResult ul li {
  display: block;
  color: #444;
  font-size: 1.5rem;
}
.tResult ul li:last-child {
  padding-top: 5px;
  font-size: 24px;
  letter-spacing: 1px;
}
.tResult ul li > span {
  color: black;
  font-weight: bold;
  display: block;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  background: #AAAAAA;
}
.tResult ul li > span.append {
  background-color: #ffbf11;
}

.noAction {
  text-align: center;
  font-size: x-large;
  padding: 20px 0;
  font-weight: bold;
}

.search_block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  background-color: #444;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.search_block input {
  font-size: 1.2rem;
  border-radius: 5px;
  border: none;
  line-height: 20px;
  width: 200px;
  padding-left: 10px;
  margin-right: 20px;
}
.search_block button {
  color: #000000;
  background-color: #FFF;
  margin-left: 10px;
  width: 70px;
  height: 35px;
  border-radius: 5px;
  cursor: pointer;
}
.search_block button i {
  font-size: large;
}

.typeBlock {
  display: flex;
}
.typeBlock::-webkit-scrollbar {
  display: none;
}
.typeBlock .typeSwitch {
  min-width: auto;
  background-color: #444;
  color: #FFF;
  border-radius: 5px;
  margin: 2px 4px;
}
.typeBlock .typeSwitch > p {
  text-align: center;
  font-weight: 600;
  margin: 2px 0;
  font-size: large;
}
.typeBlock .typeSwitch > div {
  display: flex;
  justify-content: space-around;
}
.typeBlock .typeSwitch > div > span {
  white-space: nowrap;
  margin: 6px 0;
  text-align: center;
  padding: 4px 4px;
  letter-spacing: 2px;
  display: inline-block;
  cursor: pointer;
}
.typeBlock .typeSwitch > div > span > i {
  padding: 2px 2px;
}
.typeBlock .typeSwitch > div > span > i.active {
  background-color: brown;
}

.styleB {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, rgb(224, 33, 32) 100%) !important;
}

.styleS {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, rgb(6, 134, 238) 100%) !important;
}

.styleL {
  color: rgb(6, 134, 238);
  font-weight: bold;
}

.styleH {
  color: rgb(224, 33, 32);
  font-weight: bold;
}

.draw-section {
  margin: 10px 0;
  border-bottom: 1px solid #eee;
}

.draw-section:last-child {
  border-bottom: none;
}

.draw-date {
  background-color: #e0e0e0;
  border-radius: 5px;
  display: inline-block;
  padding: 2px 6px;
  margin: 0 12px;
  font-weight: bold;
  font-size: 18px;
}

.numbers-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

@media screen and (min-width: 540px) {
  .headbox > div > a {
    width: 220px;
  }
  .typeBlock .typeSwitch {
    min-width: auto;
  }
  .tResult {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tResult.multi > div > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media screen and (min-width: 768px) {
  .typeBlock .typeSwitch {
    min-width: auto;
  }
  .tResult {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .tResult.multi > div > div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media screen and (min-width: 1024px) {
  .pagediv {
    display: flex;
    background: none;
  }
  .headbox {
    flex-direction: column;
  }
  .headbox > div > a {
    width: 90%;
    justify-content: center;
  }
  .hamburger {
    display: none;
  }
  .header_block {
    flex: 2;
  }
  .header_block h2 {
    padding: 5px 10px;
  }
  .nav_block {
    display: block;
    border-right: 3px solid #444;
    height: revert;
  }
  .nav_block ul {
    height: calc(100vh - 235px);
  }
  .typeBlock .typeSwitch {
    min-width: auto;
  }
  .tResult {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tResult.multi > div > div {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}
.lottery-block {
  flex: 1 1 calc(100% - 5px);
  width: 100%;
  height: auto;
  min-height: 180px;
  background-color: #FFFFFF; /* 白色背景 */
  border-radius: 8px;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 5px 5px 10px gray;
  text-align: center;
  padding: 0 2px;
  color: #0D47A1; /* 使用深藍色文字 */
}
.lottery-block:first-child {
  margin-top: 20px;
}
.lottery-block .timer {
  color: #000000; /* 改為黑色文字 */
  background-color: #FFEB3B; /* 使用更鮮明的黃色背景 */
  font-weight: bold; /* 加粗文字 */
}

.lottery-name {
  font-size: 1.4rem;
  color: #a52a2a;
  font-weight: bold;
  margin: 8px 0 10px 2px;
  text-align: left;
}

.lottery-issue {
  position: absolute;
  font-size: 1.2rem;
  top: 6px;
  right: 10px;
  color: #3e3939;
  letter-spacing: 1px;
}

.period-issue {
  color: #a52a2a;
  font-weight: 500;
}

.next-block {
  position: absolute;
  bottom: 2px;
  right: 10px;
  font-size: 1rem;
  text-align: right;
  color: #000000; /* 確保文字為黑色 */
  background-color: #E3F2FD; /* 使用較淺的藍色背景 */
}

.next-issue {
  color: #a52a2a;
  font-weight: 500;
}

.lottery-numbers.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-left: -25px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.lottery-numbers:not(:empty) + .loading {
  display: none;
}

.lottery-block.BingoBingo, .lottery-block.OREKeno, .lottery-block.SKKeno {
  min-height: 220px;
}

/* 特殊號碼的樣式 */
.lottery-numbers .number.special {
  background-color: #b4220c;
  color: #fff;
}

.lottery-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 6px;
  margin-top: 8px;
  margin: 0;
  min-height: 60px;
  position: relative;
  max-width: 100%;
  --lottery-default-gradient: linear-gradient(to bottom, #808080 0%, #606060 100%);
}
.lottery-numbers .number {
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  opacity: 0;
  margin-left: 2px;
  margin-right: 2px;
  transform: rotateY(0deg);
  transition: transform 0.6s;
  animation: fadeInNumber 0.5s ease forwards;
  text-shadow: 1px -1px 1px #999;
  box-shadow: 1px 1px 5px #aaa;
  background-color: #597cca;
  aspect-ratio: 1; /* 圓形，寬高比 1:1 */
}
.lottery-numbers .number.flip {
  animation: flipNumber 0.6s ease-in-out;
}
.lottery-numbers.MARKSIX .N01 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N02 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N03 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N04 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N05 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N06 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N07 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N08 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N09 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N10 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N11 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N12 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N13 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N14 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N15 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N16 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N17 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N18 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N19 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N20 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N21 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N22 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N23 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N24 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N25 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N26 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N27 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N28 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N29 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N30 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N31 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N32 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N33 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N34 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N35 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N36 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N37 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N38 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N39 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N40 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N41 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N42 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N43 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N44 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .N45 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N46 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, #d32f2c 100%);
}
.lottery-numbers.MARKSIX .N47 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N48 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, #3b8abe 100%);
}
.lottery-numbers.MARKSIX .N49 {
  background: linear-gradient(to bottom, rgb(26, 220, 0) 1%, #4cad25 100%);
}
.lottery-numbers.MARKSIX .special {
  color: white;
  margin-left: 40px;
}
.lottery-numbers.BingoBingo {
  display: grid;
  grid-template-columns: repeat(10, auto);
  min-height: 100px;
}
.lottery-numbers.BingoBingo .number {
  background-color: #ffdc2f;
  color: black;
}
.lottery-numbers.BingoBingo .special {
  background-color: #e60012;
  color: white;
}
.lottery-numbers.OREKeno, .lottery-numbers.SKKeno {
  display: grid;
  grid-template-columns: repeat(10, auto);
  min-height: 100px;
}
.lottery-numbers.DWIN {
  display: grid;
  grid-template-columns: repeat(6, auto);
  min-height: 100px;
}
.lottery-numbers.Fantasy5 .number {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: white;
  opacity: 0;
  transform: rotateY(0deg);
  transition: transform 0.6s;
  animation: fadeInNumber 0.5s ease forwards;
}
.lottery-numbers.Fantasy5 .number.flip {
  animation: flipNumber 0.6s ease-in-out;
}
.lottery-numbers.JSPK10 .number, .lottery-numbers.KPPK10 .number, .lottery-numbers.JSXYFT .number, .lottery-numbers.KPXYFT .number, .lottery-numbers.XYFT .number, .lottery-numbers.XYFT2 .number, .lottery-numbers.AUXY10 .number {
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  opacity: 0;
  transform: rotateY(0deg);
  transition: transform 0.6s;
  animation: fadeInNumber 0.5s ease forwards;
}
.lottery-numbers.JSPK10 .number.flip, .lottery-numbers.KPPK10 .number.flip, .lottery-numbers.JSXYFT .number.flip, .lottery-numbers.KPXYFT .number.flip, .lottery-numbers.XYFT .number.flip, .lottery-numbers.XYFT2 .number.flip, .lottery-numbers.AUXY10 .number.flip {
  animation: flipNumber 0.6s ease-in-out;
}
.lottery-numbers.JSPK10 .number.N01, .lottery-numbers.KPPK10 .number.N01, .lottery-numbers.JSXYFT .number.N01, .lottery-numbers.KPXYFT .number.N01, .lottery-numbers.XYFT .number.N01, .lottery-numbers.XYFT2 .number.N01, .lottery-numbers.AUXY10 .number.N01 {
  background: linear-gradient(to bottom, rgb(255, 239, 17) 0%, rgb(255, 177, 10) 100%);
}
.lottery-numbers.JSPK10 .number.N02, .lottery-numbers.KPPK10 .number.N02, .lottery-numbers.JSXYFT .number.N02, .lottery-numbers.KPXYFT .number.N02, .lottery-numbers.XYFT .number.N02, .lottery-numbers.XYFT2 .number.N02, .lottery-numbers.AUXY10 .number.N02 {
  background: linear-gradient(to bottom, rgb(44, 180, 253) 1%, rgb(6, 134, 238) 100%);
}
.lottery-numbers.JSPK10 .number.N03, .lottery-numbers.KPPK10 .number.N03, .lottery-numbers.JSXYFT .number.N03, .lottery-numbers.KPXYFT .number.N03, .lottery-numbers.XYFT .number.N03, .lottery-numbers.XYFT2 .number.N03, .lottery-numbers.AUXY10 .number.N03 {
  background: linear-gradient(to bottom, rgb(116, 117, 117) 0%, rgb(64, 65, 65) 100%);
}
.lottery-numbers.JSPK10 .number.N04, .lottery-numbers.KPPK10 .number.N04, .lottery-numbers.JSXYFT .number.N04, .lottery-numbers.KPXYFT .number.N04, .lottery-numbers.XYFT .number.N04, .lottery-numbers.XYFT2 .number.N04, .lottery-numbers.AUXY10 .number.N04 {
  background: linear-gradient(to bottom, rgb(255, 152, 0) 0%, rgb(255, 93, 17) 100%);
}
.lottery-numbers.JSPK10 .number.N05, .lottery-numbers.KPPK10 .number.N05, .lottery-numbers.JSXYFT .number.N05, .lottery-numbers.KPXYFT .number.N05, .lottery-numbers.XYFT .number.N05, .lottery-numbers.XYFT2 .number.N05, .lottery-numbers.AUXY10 .number.N05 {
  background: linear-gradient(to bottom, rgb(125, 252, 253) 0%, rgb(66, 210, 233) 100%);
}
.lottery-numbers.JSPK10 .number.N06, .lottery-numbers.KPPK10 .number.N06, .lottery-numbers.JSXYFT .number.N06, .lottery-numbers.KPXYFT .number.N06, .lottery-numbers.XYFT .number.N06, .lottery-numbers.XYFT2 .number.N06, .lottery-numbers.AUXY10 .number.N06 {
  background: linear-gradient(to bottom, rgb(151, 117, 255) 0%, rgb(89, 10, 255) 100%);
}
.lottery-numbers.JSPK10 .number.N07, .lottery-numbers.KPPK10 .number.N07, .lottery-numbers.JSXYFT .number.N07, .lottery-numbers.KPXYFT .number.N07, .lottery-numbers.XYFT .number.N07, .lottery-numbers.XYFT2 .number.N07, .lottery-numbers.AUXY10 .number.N07 {
  background: linear-gradient(to bottom, rgb(224, 224, 224) 1%, rgb(175, 176, 176) 100%);
}
.lottery-numbers.JSPK10 .number.N08, .lottery-numbers.KPPK10 .number.N08, .lottery-numbers.JSXYFT .number.N08, .lottery-numbers.KPXYFT .number.N08, .lottery-numbers.XYFT .number.N08, .lottery-numbers.XYFT2 .number.N08, .lottery-numbers.AUXY10 .number.N08 {
  background: linear-gradient(to bottom, rgb(176, 0, 0) 1%, rgb(122, 0, 0) 100%);
}
.lottery-numbers.JSPK10 .number.N09, .lottery-numbers.KPPK10 .number.N09, .lottery-numbers.JSXYFT .number.N09, .lottery-numbers.KPXYFT .number.N09, .lottery-numbers.XYFT .number.N09, .lottery-numbers.XYFT2 .number.N09, .lottery-numbers.AUXY10 .number.N09 {
  background: linear-gradient(to bottom, rgb(233, 84, 85) 8%, rgb(224, 33, 32) 100%);
}
.lottery-numbers.JSPK10 .number.N10, .lottery-numbers.KPPK10 .number.N10, .lottery-numbers.JSXYFT .number.N10, .lottery-numbers.KPXYFT .number.N10, .lottery-numbers.XYFT .number.N10, .lottery-numbers.XYFT2 .number.N10, .lottery-numbers.AUXY10 .number.N10 {
  background: linear-gradient(to bottom, rgb(184, 253, 0) 1%, rgb(26, 220, 0) 100%);
}
.lottery-numbers.SuperLotto .special, .lottery-numbers.BigLotto .special {
  margin-left: 30px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeInNumber {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes flipNumber {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
.lottery-summary {
  margin-top: 8px;
  font-size: 1.2rem;
  color: #333;
  text-align: center;
}

.dragon-tiger {
  color: #0066cc;
}

/* 針對小於 576px 的裝置 */
@media (max-width: 575.98px) {
  .lottery-name {
    font-size: 1.2rem;
  }
  .lottery-numbers {
    gap: 2px 2px;
    margin-top: 8px;
    padding: 0;
    width: 100%;
  }
  .lottery-numbers.Fantasy5 .number, .lottery-numbers.DayLotto .number, .lottery-numbers.DaywaLotto .number, .lottery-numbers.MichiganFantasy5 .number, .lottery-numbers.FloridaFantasy5 .number, .lottery-numbers.NYTake5 .number, .lottery-numbers.OKCash5 .number {
    font-size: 1.2rem;
    margin: 0 12px;
  }
  .lottery-numbers .number {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 1.1rem;
    margin: 0;
  }
  .lottery-summary {
    font-size: 0.9rem;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  /* 針對 576px 到 768px 之間的裝置 */
  .lottery-numbers {
    gap: 2px 2px;
    margin-top: 8px;
    max-width: 100%;
  }
  .lottery-numbers .loading {
    width: 32px;
    height: 32px;
    line-height: 32px;
  }
  .lottery-numbers.Fantasy5 .number, .lottery-numbers.DayLotto .number, .lottery-numbers.DaywaLotto .number, .lottery-numbers.MichiganFantasy5 .number, .lottery-numbers.FloridaFantasy5 .number, .lottery-numbers.NYTake5 .number, .lottery-numbers.OKCash5 .number {
    font-size: 1.2rem;
    margin: 0 12px;
  }
  .lottery-numbers .number {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 1.1rem;
  }
  .lottery-summary {
    font-size: 1.1rem;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  /* 針對 768px 到 992px 之間的裝置 */
  .lottery-numbers {
    gap: 8px 16px;
    margin-top: 12px;
  }
  .lottery-numbers .number {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 1.2rem;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* 針對 992px 到 1200px 之間的裝置 */
  .lottery-numbers {
    gap: 10px 28px;
    margin-top: 12px;
  }
  .lottery-numbers .number {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 1.5rem;
  }
}
@media (min-width: 1200px) {
  /* 針對大於 1200px 的裝置 */
  .lottery-numbers {
    gap: 10px 32px;
    margin-top: 12px;
  }
  .lottery-numbers .number {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 1.3rem;
  }
}
.dataList {
  margin: 0;
  width: 100%;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 5px 5px 10px gray;
  position: relative;
  margin-bottom: 20px;
  height: auto !important; /* 避免使用inline style */
  min-height: 300px; /* 根據實際內容設定 */
}

.tabHeader {
  display: flex;
  background-color: #444;
}
.tabHeader div {
  flex: 1;
  padding: 10px 20px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  color: #FFF;
  letter-spacing: 1px;
  font-size: large;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.tabHeader div.checkdTab {
  background-color: #FFFFFF;
  color: #000000;
  font-weight: bold;
}

.tabContent {
  display: none;
  opacity: 0;
  background-color: #FFF;
  padding: 10px 2px 10px 2px;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-height: calc(100vh - 30px); /* Limit height to avoid excessive empty space */
  overflow-y: auto; /* Enable scrolling if content exceeds max height */
}
.tabContent::-webkit-scrollbar {
  width: 8px;
}
.tabContent::-webkit-scrollbar-track {
  background-color: #eee;
  border-radius: 4px;
}
.tabContent::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
}

.tabContent.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.typeBox {
  margin-bottom: 10px;
}
.typeBox div {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}
.typeBox div span {
  cursor: pointer;
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px #666 solid;
  border-radius: 5px;
  color: #666;
  font-weight: bold;
  box-sizing: border-box;
  letter-spacing: 1px;
}
.typeBox div span:first-child {
  margin-top: 20px;
}
.typeBox div span.active {
  color: #FFF;
  border: 1px solid brown;
  background-color: brown;
}

.linenumber1 div {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}
.linenumber1 div i {
  cursor: pointer;
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px #666 solid;
  border-radius: 5px;
  color: #666;
  font-weight: bold;
  box-sizing: border-box;
  letter-spacing: 1px;
}
.linenumber1 div i.active {
  color: #FFF;
  border: 1px solid brown;
  background-color: brown;
}

/* 重置一些基本樣式 */
/* 頁腳樣式 - 更緊湊的版本 */
.lottery-footer {
  max-width: 1300px;
  background-color: #444444;
  color: #fff;
  padding: 20px 0;
  /* 減少上下內邊距 */
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.footer-wrapper {
  width: 100%;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 15px;
  /* 減少底部間距 */
  width: 100%;
}

.footer-section {
  flex: 1 1 0;
  min-width: 180px;
  margin-bottom: 10px;
  /* 減少底部間距 */
  padding: 0 15px;
  box-sizing: border-box;
}

.section-title {
  color: #f8d56b;
  font-size: 16px;
  /* 減小標題字體 */
  margin-bottom: 10px;
  /* 減少底部間距 */
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
  /* 減少底部間距 */
}

.section-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 1px;
  /* 減小分隔線高度 */
  background-color: #f8d56b;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
  /* 減少項目間距 */
}

.footer-links a {
  color: #e6e6e6;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 13px;
  /* 減小字體大小 */
  line-height: 1.3;
  /* 減少行高 */
}

.footer-links a:hover {
  color: #f8d56b;
}

/* 外部链接樣式 */
.footer-links a[target=_blank] {
  position: relative;
  padding-right: 15px;
  /* 減少右邊距 */
}

.footer-links a[target=_blank]:after {
  content: "↗";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 10px;
  /* 減小箭頭大小 */
  opacity: 0.7;
}

.footer-copyright {
  text-align: center;
  padding-top: 10px;
  /* 減少上邊距 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  /* 減小字體大小 */
  color: #999;
  width: 100%;
}

/* 響應式設計 - 針對更寬的螢幕優化 */
@media (min-width: 1301px) {
  .footer-section {
    padding: 0 20px;
    /* 減少內邊距 */
  }
  .footer-section:nth-child(3) {
    flex: 1.2;
  }
}
@media (max-width: 1200px) {
  .footer-main {
    flex-wrap: wrap;
  }
  .footer-section {
    flex: 0 0 30%;
    margin-bottom: 15px;
    /* 減少底部間距 */
  }
  .footer-section:nth-child(3) {
    flex: 0 0 32%;
  }
}
@media (max-width: 992px) {
  .footer-section {
    flex: 0 0 48%;
    margin-bottom: 15px;
    /* 減少底部間距 */
  }
  .footer-section:nth-child(3) {
    flex: 0 0 48%;
  }
}
@media (max-width: 576px) {
  .lottery-footer {
    padding: 15px 0;
    /* 在小螢幕上進一步減少內邊距 */
  }
  .footer-section {
    flex: 0 0 100%;
    margin-bottom: 12px;
    /* 在小螢幕上減少間距 */
  }
  .footer-section:nth-child(3) {
    flex: 0 0 100%;
  }
  .footer-links li {
    margin-bottom: 6px;
    /* 在小螢幕上減少項目間距 */
  }
}
footer {
  color: #FFF;
  position: relative;
  background-color: #444444;
  width: 100%;
}
footer > div {
  padding: 6px 0px;
  display: flex;
  justify-content: space-around;
}
footer p {
  padding-top: 10px;
  cursor: pointer;
}
footer .copyright {
  position: absolute;
  bottom: 5px;
  width: 100%;
}
footer .link a {
  color: #fcff9f;
}
footer .slink a {
  color: #f78989;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.news-list {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.news-list h1 {
  font-size: 24px;
  font-weight: bold;
  color: #d9232d;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.news-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
}

.news-title a {
  color: #222;
  text-decoration: none;
}

.news-title a:hover {
  color: #d9232d;
}

.news-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.news-summary {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.read-more {
  color: #d9232d;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 5px;
}

.pagination a {
  display: inline-block;
  padding: 5px 16px;
  background-color: white;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.pagination a:hover {
  background-color: #ddd;
}

.news-detail {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.news-header {
  margin-bottom: 25px;
}

.news-title {
  font-size: 26px;
  font-weight: bold;
  color: #222;
  margin-bottom: 15px;
}

.news-meta {
  font-size: 14px;
  color: #888;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.news-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.news-content p {
  margin-bottom: 20px;
}

.news-content img {
  max-width: 100%;
  height: auto;
  margin: 25px 0;
  border-radius: 5px;
}

.news-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.news-tags span {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 5px 12px;
  background-color: #f5f5f5;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

.back-to-list {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #d9232d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.back-to-list:hover {
  background-color: #c01e28;
}

.related-news {
  margin-top: 40px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
}

.related-news h3 {
  color: #d9232d;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.related-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.related-item:last-child {
  border-bottom: none;
}

.related-title {
  font-size: 16px;
  font-weight: bold;
}

.related-title a {
  color: #222;
  text-decoration: none;
}

.related-title a:hover {
  color: #d9232d;
}

.related-date {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

body {
  font-optical-sizing: auto;
  font-style: normal;
}

html or element selector {
  -webkit-text-size-adjust: 100%;
}

#loader-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow: hidden;
  position: fixed;
  background: rgba(0, 0, 0, 0.81);
  transition: opacity 0.5s ease-out;
}

.loader {
  border-radius: 50%;
  width: 135px;
  height: 135px;
  -webkit-animation: spin_ta 2s linear infinite;
  animation: spin_ta 2s linear infinite;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

.ad-block {
  margin: 10px 0px 10px 0px;
  width: 100%;
  min-height: 280px;
  height: 280px;
  overflow: hidden;
  position: relative;
  text-align: center;
  background: #eee;
}

.backtop {
  position: fixed;
  right: 14vw;
  bottom: 95px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  color: #FFF;
  background-color: brown;
  border-radius: 50%;
  opacity: 0.8;
  border: 1px solid #FFFFFF;
  cursor: pointer;
  z-index: 9;
}
.backtop > i {
  font-size: x-large;
}

.backtop svg {
  fill: white;
}

.backtop:hover {
  opacity: 1;
}

.hamburger {
  z-index: 1001;
  padding: 5px;
  cursor: pointer;
}
.hamburger > span {
  display: block;
  width: 35px;
  height: 3px;
  background-color: #FFF;
  margin: 7px;
  transition: all 0.2s;
  border-radius: 20px;
}

.menu:checked ~ .hamburger > span {
  background-color: #FFF;
}
.menu:checked ~ .hamburger > span:nth-child(1) {
  transform: rotate(135deg) translate(6px, -8px);
}
.menu:checked ~ .hamburger > span:nth-child(2) {
  opacity: 0;
}
.menu:checked ~ .hamburger > span:nth-child(3) {
  transform: rotate(-135deg) translate(6px, 8px);
}

.main-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  flex: 7;
  overflow-y: scroll;
  background-color: #d8d5d7;
  width: 100%;
  min-height: 200px; /* 根據內容設定最小高度 */
  position: relative;
}
.main-container::-webkit-scrollbar {
  width: 8px;
}
.main-container::-webkit-scrollbar-track {
  background-color: #eee;
  border-radius: 4px;
}
.main-container::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
}

.nav_block {
  margin-top: 10px;
  width: 100%;
  max-height: calc(100vh - 30px); /* Limit height to avoid excessive empty space */
  overflow-y: auto; /* Enable scrolling if content exceeds max height */
}
.nav_block::-webkit-scrollbar {
  width: 7px;
}
.nav_block::-webkit-scrollbar-track {
  border-radius: 4px;
}
.nav_block::-webkit-scrollbar-thumb {
  background-color: #eee;
  border-radius: 4px;
}
.nav_block .main-category {
  margin: 0;
  padding: 2px 0px;
  height: auto; /* Automatically adjust height based on content */
}
.nav_block .main-category .main-category-link {
  pointer-events: none;
  color: #FFFFFF;
  font-size: large;
  font-weight: bold;
  padding: 8px 6px;
  text-decoration: none;
  display: block;
  background-color: #642514;
}
.nav_block .main-category .sub-category {
  height: auto; /* Automatically adjust height based on content */
  max-height: calc(100vh - 100px); /* Limit height to avoid excessive empty space */
}
.nav_block .main-category .sub-category li {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  margin: 5px 10px;
}
.nav_block .main-category .sub-category li.active, .nav_block .main-category .sub-category li:active, .nav_block .main-category .sub-category li:hover {
  background: brown;
  border-radius: 10px;
  text-decoration: none;
}
.nav_block .main-category .sub-category li a {
  color: #FFF;
  font-size: large;
  font-weight: bold;
}

.headbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
}
.headbox > div > a {
  width: 60%;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.headbox img {
  width: 95%;
}

.header_block {
  z-index: 9999;
  background-color: #444444;
  padding: 0 3px;
}
.header_block h2 {
  color: white;
  padding: 5px 10px 5px 30px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media screen and (min-width: 540px) {
  .menu:checked ~ .header_block h1 {
    padding: 0.1rem 0;
  }
  .menu:checked ~ .header_block ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .menu:checked ~ .header_block ul li {
    margin: 15px 20px;
    padding: 10px;
  }
  .menu:checked ~ .header_block ul li > a {
    font-size: large;
  }
  .boxline {
    flex-direction: row;
    justify-content: space-between;
  }
  .boxline div > span {
    padding-left: 10px;
  }
}