body {
  font-size: 1.25em;
  line-height: 1.5;
  text-align: center;
  background-color: #FFCE34;
  color: #000;
}

section {
  display: block;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

main {
  padding: 100px 0 0;
}

a,a:visited {
  color: #000;
  text-decoration-line: underline;
}
ul {
  text-align: left;
  line-height: 1.8;
  max-width: 1000px;
  padding-right: 15px;
  margin: auto;
}

.link {
  text-decoration: underline;
}

.highlight {
  text-decoration-line: underline;
  text-decoration-color: yellow; /* 或其他螢光色 */
  text-decoration-style: double;
  background-color: rgba(255, 255, 0, .5); /* 半透明黃色，增強螢光效果 */
  font-weight: 500;
}

.bg-yellow {
  background-color: #fc1a96;
  color: #fff;
}

.float_mask {
  display: flex;
  background-color: #1312e8;
  justify-content: center;
  box-shadow: 0px -4px 0px #fff;
}

.float_area {
  width: calc(50% - 200px);
}

.float_area:hover {
  background-color: #fff800;
  color: #1312e8;
}

section img {
  width: 100%;
}

/*-----------區塊-----------*/

#event1 {
  border-top: 3px solid #000;
  border-bottom: 1.5px solid #000;
  padding: 50px 0;
  background-color: #41CA80;
  opacity: 1;
  background: radial-gradient(circle, transparent 20%, #41CA80 20%, #41CA80 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, #41CA80 20%, #41CA80 80%, transparent 80%, transparent) 27.5px 27.5px, linear-gradient(#51D787 2.2px, transparent 2.2px) 0 -2.2px, linear-gradient(90deg, #51D787 2.2px, #41CA80 2.2px) -2.2px 0;
  background-size: 55px 55px, 55px 55px, 27.5px 27.5px, 27.5px 27.5px;
}
#event2 {
  border-top: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  padding: 50px 0;
  background-color: #62CDF2;
  opacity: 1;
  background-image:  radial-gradient(rgba(255,255,255,.5) 2.2px, transparent 2.2px), radial-gradient(rgba(255,255,255,.5) 2.2px, #62CDF2 2.2px);
  background-size: 44px 44px;
  background-position: 0 0,22px 22px;
}
#event3 {
  border-top: 1.5px solid #000;
  border-bottom: 3px solid #000;
  padding: 50px 0;
  background-color: #ffda1b;
  opacity: 1;
  background-image:  linear-gradient(rgba(255,255,255,.5) 0.7000000000000001px, transparent 0.7000000000000001px), linear-gradient(to right, rgba(255,255,255,.5) 0.7000000000000001px, #ffda1b 0.7000000000000001px);
  background-size: 14px 14px;
}
#event4 {
  border-top: 1.5px solid #000;
  border-bottom: 3px solid #000;
  padding: 20px 0;
  background-color: #ff1b61;
  opacity: 1;
  background-image: linear-gradient(to right, #ff3571, #ff3571 9.5px, #ff1b61 9.5px, #ff1b61 );
  background-size: 19px 100%;
}
#event5 {
  border-top: 1.5px solid #000;
  padding: 30px 0 100px;
  background-color: #40e9c7;
  opacity: 1;
  background-size: 22px 22px;
  background-image: repeating-linear-gradient(45deg, #60f9da 0, #60f9da 2.2px, #40e9c7 0, #40e9c7 50%);
}
.bg-section {
  max-width: 1150px !important;
  border-radius: 40px;
}

.seca-content.bg-sec1 {
  background-color: #fff;
  border-radius: 0;
  padding-bottom: 40px;
  border: 4px solid #0052a3;
}

.bg-section.bg-sec2 {
  background-color: #fff;
  margin: auto;
}

.sec-title {
  width: 70%;
}

.s-line {
  width: 95%;
  border: 3px solid #d4e2ff;
  margin: 30px auto;
}

.secb-content {
  display: inline-block;
  margin: 0 auto;
}

.seca-img {
  display: block;
  width: 90%;
  margin: 50px auto;
}

.secb-content a {
  display: block;
  margin: 5px auto;
}

.d-header img {
  display: block;
  width: 100%;
  margin: 0 0 -5px 0;
}

.description-a img {
  width: 90%;
}

.sec2-dec {
  width: 90%;
  margin-top: 50px;
}

.sale-website {
  display: flex;
  width: 90%;
  margin: auto;
}

.sale-website a:hover {
  filter: brightness(120%);
  transform: translateY(5px);
  transition: .3s;
}

.sale-website img {
  width: 90%;
  margin: 20px;
}

/*-----------cta區塊-----------*/

.sign-btn {
  width: 60%;
  cursor: pointer;
  margin: 5px auto 30px;
}

.signitem {
  width: calc(17% - 30px);
}

.signitem.first {
  display: block;
  width: 60%;
  margin: 20px auto;
}

.sign-tips {
  color: #ff0033;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.button-sign img {
  width: 70%;
}

.btn-login,
.btn-signin,
.btn-overdue {
  display: block;
  width: 50%;
  height: 40px;
  padding: 20px;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
  margin: 10px auto;
  border-radius: 200px;
  letter-spacing: .1rem;
}

.event-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 0;
}

.event-wrap a {
  width: calc(25% - 40px);
  margin: 15px;
}

.event-wrap a img {
  width: 100%;
  border-radius: 20px;
}

/*-----------推薦網站-----------*/

.web-list {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: auto;
  padding: 0 0 50px;
}

.web-item {
  width: 33.3%;
  float: left;
  margin: 5px auto;
}

.web-item:hover {
  transform: translateY(5px);
  transition: .3s;
}

.web-item img {
  width: 95%;
}

.web-btn {
  display: inline-block;
  width: 80%;
  background-color: #fe7600;
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  line-height: 2.5;
  font-weight: 900;
  font-size: 1.1em;
}

/*-----------活動注意事項-----------*/

.bg-section-ntc {
  background-color: #002982;
  padding: 5px 40px 25px 60px;
  border-radius: 0 0 70px 70px;
}

.bg-section-ntc ul {
  text-align: left;
  color: #fff;
  padding: 0;
}

.bg-section-ntc ul a {
  color: #fff;
}

/*-----------常規注意事項-----------*/

.noticeWrap {
  background-color: #000;
}

/* 外層容器 */

.lucky-draw-container {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  background: url(../image/background.png) top center no-repeat;
  background-size: contain;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  padding: 270px 0 70px;
  flex-wrap: wrap;
  justify-self: center;
}

/* 左側圖片區 */

.lucky-draw-left {
  width: calc(60% - 35px);
  text-align: center;
}

.lucky-draw-left img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto;
}

/* 右側轉盤區 */

.lucky-draw-right {
  flex: 1;
  justify-items: center;
}

.wheel-container {
  position: relative;
  width: 400px;
  height: 400px;
  text-align: center;
}

.wheel {
  width: 100%;
  transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
  position: absolute;
  z-index: 1;
}

.wheel img {
  width: 100%;
}

.pointer {
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 40px solid rgb(0, 0, 0);
  position: absolute;
  top: 50%;
  left: 370px;
  transform: translateY(-50%);
  z-index: 10;
}

.button {
  width: 90%;
  line-height: 2.6;
  margin-top: 420px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .05em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 100px;
  background: linear-gradient(to bottom, #ffdede 0%, #ff0019 60%, #d91441 85%, #a70b10 100%);
  border: 3px solid #000;
  color: #f6ff00;
  box-shadow: 0 0px 12px rgb(155 77 8);
  cursor: pointer;
  outline: none;
}
.button.disable {
  width: 90%;
  line-height: 2.6;
  margin-top: 420px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .05em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  border-radius: 100px;
  background: linear-gradient(to bottom, #ffffff 0%, #dedede 60%, #d5d5d5 85%, #d5d5d5 100%);
  border: 2px solid #bcbcbc;
  color: #fff;
  box-shadow: unset;
  cursor: pointer;
  outline: none;
}

.button:hover {
  box-shadow: 0 0px 10px rgba(155, 77, 8 ,.5);
  filter: brightness(110%);
}
.button.disable:hover {
  box-shadow: unset;
}


@media (max-width: 998px) {
  .lucky-draw-container {
    min-width: unset;
    width: 100%;
    margin: 0 auto;
    background: url(../image/background-m.png) top center no-repeat;
    background-size: contain;
    padding: 225px 0 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
  }
  .lucky-draw-left {
    width: 100%;
    min-width: unset;
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
  }
  .lucky-draw-left img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 手機版轉盤置中修正 */
  .lucky-draw-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .wheel {
    position: static;
    max-width: 300px;
    width: 100%;
    height: auto;
    transform-origin: center center;
  }

  .pointer {
    position: absolute;
    top: 50%;
    left: 95%;
    transform: translate(-50%, -50%);
  }

  .button {
    margin-top: 420px;
  }

}

/*-----------Pad device-----------*/

@media only screen and (min-width: 481px) and (max-width: 1024px) {
  .float_area {
    width: 50%;
  }

  section img {
    width: 90%;
  }

  section {
    width: 100%;
  }

  .bg-section {
    max-width: 90% !important;
  }

  .sec-title {
    width: 100%;
  }

  .d-header img {
    width: 100%;
  }

  .signitem {
    width: calc(20% - 20px);
  }

  .web-list {
    padding: 0;
  }

  .sale-website {
    display: block;
    width: 100%;
  }

  .sale-website img {
    width: 90%;
    margin: 5px;
  }

  .button-sign img {
    width: 90%;
  }

  .notification {
    padding-left: 25px;
  }

  .event-wrap a {
    width: calc(50% - 60px);
    margin: 20px;
  }
}

/*-----------mobile device-----------*/

@media only screen and (max-width: 480px) {
  body {
    font-size: 1rem;
  }
  .banner {
    background-image: url(../image/background-m.png);
  }

  .float_mask {
    padding: 0 5px;
  }

  .float_area {
    width: 50%;
    font-size: 1.1rem;
    padding: 10px 0;
  }

  section {
    width: 100%;
  }

  .seca-content.bg-sec1 {
    border: 1.5px solid #0052a3;
  }

  section img {
    width: 90%;
  }

  .s-line {
    width: 95%;
    border: 2px solid #d4e2ff;
    margin: 10px auto;
  }
  .d-header img {
    width: 100%;
  }

  .bg-section {
    max-width: 90% !important;
    border-radius: 30px;
  }

  .bg-section-ntc {
    border-radius: 0 0 30px 30px;
  }

  .sec-title {
    width: 100%;
  }

  .sign-btn {
    width: 80%;
    margin: 0 auto 10px;
  }

  .signitem {
    width: calc(33% - 10px);
    margin: 0;
  }

  .signitem.first {
    display: block;
    width: calc(100% - 20px);
    margin: 20px auto;
  }

  .seca-img {
    display: block;
    width: 90%;
    margin: 20px auto;
  }

  .sign-tips {
    width: 90%;
    font-size: 1.5rem;
    text-align: center;
    margin: 0 auto;
  }

  .web-list {
    padding: 0;
  }

  .web-item {
    width: 50%;
  }

  .web-btn {
    font-size: .9rem;
    width: 90%;
  }

  .sale-website {
    display: block;
  }

  .sale-website img {
    width: 95%;
    margin: 5px;
  }

  .button-sign img {
    width: 90%;
  }

  .notification {
    padding-left: 30px;
  }

  .bg-section-ntc {
    font-size: .9rem;
    padding: 2px 10px 2px 30px;
  }

  .event-wrap a {
    width: calc(50% - 20px);
    margin: 0 5px;
  }

  .web-item:hover {
    transform: unset;
  }
}
