@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;600&display=swap');
.fade-up, .fade-down, .fade-left, .fade-right, .fade-in {
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
html {
  font-size: 62.5%
}
body {
  background-color: #fbe4ba;
  font-size: 1.8rem;
  font-family: "Noto Sans TC", sans-serif;
}
main {
  overflow: hidden
}
a {
  text-decoration: none;
  cursor: pointer
}
.logo {
  position: absolute;
  z-index: 99;
  padding: 1.5rem 1.5rem 0;
  text-align: left
}
.logo img {
  width: 180px;
  height: auto;
}
h1 {
  margin: auto;
  font-size: 3.8rem;
  color: #fc7304;
  font-weight: 600
}
h1 strong {
  color: #e11414
}
.hero {
  background-image: url("../images/cny26l_kv-cloud-1.png"), url("../images/cny26l_hero-bg.jpg");
  background-size: 100% auto, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: center 80%, center bottom;
  padding-bottom: 4vw;
}
.hero-top {
  top: 0;
  width: 100%;
  padding: 0 max(180px, 16vw);
  z-index: 2;
  overflow: hidden
}
.hero-top figure {
  transform-origin: center top;
  animation: swing 2s infinite alternate;
}
.hero-top figure + figure {
  transform-origin: center top;
  animation: swing 2.2s infinite alternate-reverse;
}
.hero-top img {
  width: 11vw;
  max-width: 215px;
}
.hero-inner {
  width: 100%;
  margin: auto;
  padding: 2rem;
  overflow: hidden
}
.hero-theme {
  width: 100%;
  position: absolute
}
.hero-theme img {
  width: 42vw;
  max-width: 770px;
  filter: drop-shadow(0 30px 10px #00000026)
}
.hero-inner-bg {
  margin: 3.5rem auto auto;
  width: clamp(580px, 52vw, 960px)
}
.hero-anim {
  bottom: 0;
  position: absolute;
  font-size: clamp(6px, 0.52vw, 10px);
}
.red-envs {
  margin-bottom: -5.5em;
}
.red-env {
  display: inline-block;
}
.red-env img {
  width: 17.5em;
  transition: all .3s;
  cursor: pointer
}
.red-env:hover {
  z-index: 3
}
.red-env:hover img {
  transform: translateY(-8%);
  filter: brightness(1.2) drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px #f9ad1a);
}
.red-env-l, .red-env-r {
  position: absolute;
  transform-origin: center bottom;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.red-env-l.open {
  transform: rotate(-40deg)
}
.red-env-r.open {
  transform: rotate(40deg)
}
.hand {
  width: 28.3em;
  z-index: 10;
}
.hero-bottom {
  width: clamp(580px, 46vw, 900px);
  font-size: clamp(8px, 0.52vw, 10px);
  color: #793d07;
  font-weight: bold;
  padding: 2em 0 3em;
}
.credits {
  font-size: 3em;
  white-space: nowrap
}
.credits span {
  color: #f77400
}
.history img {
  width: 24em;
  transition: all .3s
}
.history a:hover img {
  filter: drop-shadow(0 5px 5px #00000033);
  transform: translateY(-5px)
}
/*Notice*/
.notice {
  padding-bottom: 6rem;
  margin-top: 6rem;
  margin-bottom: 10rem;
  color: #140303;
}
.btn-notice {
  text-align: center;
}
.btn-notice a:hover {
  color: #663f1f;
}
.btn-notice a {
  margin: auto;
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  border: 4px solid #f2c309;
  border-radius: 15px;
  line-height: 1;
  padding: 0.5em 1em;
  font-style: normal;
  font-weight: bold;
  gap: 0.5em;
  color: #5b2f05;
}
.btn-notice a i {
  position: relative;
  width: 0.8em;
  height: 0.8em;
  display: block;
  padding: 0.25em 0.5em
}
.btn-notice a i:after, .btn-notice a i:before {
  display: block;
  width: 100%;
  height: 5px;
  transition: all .3s;
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform-origin: center center;
  border-radius: 100px;
  background-color: #5b2f05;
}
.btn-notice a[aria-expanded="false"] i:before {
  transform: rotate(-90deg);
}
.btn-notice a[aria-expanded="false"] i:after {
  transform: rotate(0);
}
.btn-notice a[aria-expanded="true"] i:before {
  transform: rotate(0);
}
.btn-notice a[aria-expanded="true"] i:after {
  transform: rotate(-180deg);
}
#collapseNotice .container {
  border-top: 2px solid #f2c309;
  padding-top: 3.33em;
  margin-top: 1.66em;
}
#collapseNotice .container a {
  color: #f61919
}
@keyframes swing {
  0% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(3deg);
  }
}
/*modal style*/
.modal-content {
  border: none;
  background: #fef6e8 url("../images/index_modal-bg.png") no-repeat top center;
  margin-top: 120px;
  position: relative;
  border-radius: 0 0 50px 50px;
  text-align: center
}
.modal-content:before {
  content: "";
  display: block;
  width: 100%;
  height: 120px;
  background-image: url("../images/index_modal-top.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: -120px;
  left: 0;
  z-index: 2
}
.modal-content:after {
  content: "";
  display: block;
  width: 100%;
  height: 70px;
  background-color: #cda441;
  border-radius: 50px 50px 0 0;
  position: absolute;
  top: -70px;
  left: 0;
  z-index: 1;
}
.modal-footer button {
  min-width: 115px;
  border-radius: 100px;
}
.modal-footer button + button {
  margin-left: 20px;
}
.em-txt {
  font-size: 1.3em;
  display: block
}
.em-line {
  color: #48a00b
}
.modal-header {
  border: none
}
.modal-title {
  font-size: 24px;
  font-weight: bold;
  flex: 1;
  color: #c00000;
  padding-left: 28px;
}
.modal-body {
  font-size: 2rem;
  padding-bottom: 40px
}
.modal-body p {
  font-size: 1.6rem;
  margin-top: 5px;
}
.modal-body p span {
  color: #d60a22;
}
.modal-body ul {
  font-size: 1.6rem;
  list-style: none;
  padding-left: 0;
}
.modal-body > ul > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.modal-body > ul > li:not(:last-child) {
  border-bottom: 2px dotted #ddd;
}
.modal-body > ul > li li:nth-child(1):before {
  content: "獎項名稱：";
  color: #4d0808
}
.modal-body > ul > li li:nth-child(2):before {
  content: "序　　號：";
  color: #4d0808
}
.modal-body > ul > li li:nth-child(3):before {
  content: "抽獎日期：";
  color: #4d0808
}
.modal-body > ul div {
  text-align: center;
  padding: 10px;
  white-space: nowrap
}
.modal-body > ul div a {
  display: inline-block;
  color: #fff;
  background-color: #f6b008;
  border-radius: 50px;
  padding: 5px;
  width: 5em;
  transition: all .3s
}
.modal-body > ul div a:hover {
  background-color: #f09300;
}
.modal-body > ul div em {
  display: inline-block;
  background-color: #e9d8b9;
  border-radius: 50px;
  padding: 5px;
  font-style: normal;
  width: 5em;
}
#notes .modal-body {
  text-align: left;
  height: 50vh;
  overflow-y: auto
}
.code-box {
  width: 100%;
  border: 1px solid #48a00b;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  margin-top: 20px;
  background-color: #fff
}
.point-code {
  padding: 0 15px;
}
.btn-copy {
  color: #fff;
  background-color: #48a00b;
  border-radius: 0;
  font-size: 1.6rem;
}
.btn-copy:hover {
  color: #fff;
  background-color: #d72426e6;
}
.modal-footer {
  justify-content: center;
  background-color: #cda441;
  height: 70px;
  border-radius: 0 0 50px 50px;
}
.modal-footer .btn {
  font-size: 2rem;
  color: #d72426;
  background-color: #fff;
  padding-right: 20px;
  padding-left: 20px;
}
.modal-footer .btn.btn-ok {
  color: #fff;
  background-color: #d72426
}
.modal-footer .btn:hover {
  background-color: #333;
  color: #fff;
}
.btn-close {
  filter: hue-rotate(-50deg) saturate(200%);
}
/* 基礎設定 */
.custom-nested-list {
  line-height: 1.6;
}
.custom-nested-list ol, .custom-nested-list ul {
  margin: 0;
  padding-left: 0; /* 清除預設縮排，由下方個別設定 */
}
.custom-nested-list li {
  margin-bottom: 0.5em;
  position: relative;
}
/* --- Level 1: 1. , 2. --- */
.custom-nested-list > ol {
  counter-reset: level1; /* 初始化第一層計數器 */
}
.custom-nested-list > ol > li {
  list-style: none;
  padding-left: 2.25em; /* 預留空間給項目符號 */
}
.custom-nested-list > ol > li::before {
  counter-increment: level1;
  content: counter(level1) "."; /* 顯示 1. */
  /* 定位樣式 */
  position: absolute;
  left: 0.5em;
}
/* --- Level 2: (3-1), (4-1) --- */
.custom-nested-list > ol > li > ol {
  counter-reset: level2; /* 初始化第二層計數器 */
  margin-top: 0.5em;
}
.custom-nested-list > ol > li > ol > li {
  list-style: none;
  padding-left: 2.75em; /* 預留空間給項目符號 */
}
.custom-nested-list > ol > li > ol > li::before {
  counter-increment: level2;
  /* 關鍵：同時顯示 level1 和 level2 的計數 */
  content: "("counter(level1) "-"counter(level2) ")";
  position: absolute;
  left: 0; /* 根據括號長度調整 */
}
/* --- Level 3: (1), (2) --- */
.custom-nested-list > ol > li > ol > li > ol {
  counter-reset: level3;
  margin-top: 0.5em;
}
.custom-nested-list > ol > li > ol > li > ol > li {
  list-style: none;
  padding-left: 2em; /* 預留空間給項目符號 */
}
.custom-nested-list > ol > li > ol > li > ol > li::before {
  counter-increment: level3;
  content: "("counter(level3) ")";
  position: absolute;
  left: 0;
}
/* --- Level 4: 原點 (Disc) --- */
.custom-nested-list > ol > li > ol > li > ol > li > ul {
  list-style-type: disc;
  padding-left: 1.5em; /* 恢復 UL 預設縮排感 */
}
/* 覆蓋掉前面的 absolute positioning，讓 UL 回歸自然流動 */
.custom-nested-list > ol > li > ol > li > ol > li > ul > li::before {
  content: none;
}
/* --- Level 5: 方點 (Square) --- */
.custom-nested-list > ol > li > ol > li > ol > li > ul > li > ul {
  list-style-type: square;
  padding-left: 1.5em;
  margin-top: 0.5em;
}
.custom-nested-list > ol > li > ol > li > ol > li > ul > li > ul > li {
  padding-left: 0.5em;
}
.modal---- {
  display: block;
  position: static;
  opacity: 1 !important;
  height: 100vh
}