* {
  margin: 0;
  padding: 0;
}
body {
  font-family:
    "Microsoft JhengHei", "微軟正黑體", "Apple LiGothic", "PingFang TC",
    "Helvetica Neue", sans-serif;
}

:root {
  --red: #d83a3a;
  --blue: #286aa0;
  --bg-blue: #dfe6ed;
  --bg-blue-line: #7c8fa5;
}
.text-red {
  color: red;
}

/* 版頭 */
.EnTie-Redbar {
  display: flex;
  justify-content: flex-end;
  align-content: center;
  background: #cc0001;
  position: fixed;
  height: 85px;
  width: 100%;
  z-index: 9;
}

.EnTie-Redbar img {
  max-width: 100%;
  width: 212px;
  object-fit: contain;
  margin-right: 15px;
}

/* 頁尾 */

.EnTie-CIS-container {
  padding: 0px 0 5px 0;
  background: #fff;
  height: 60px;
}
.EnTie-CIS-line-container {
  position: relative;
  width: 100%;
  height: 2px; /* 高度與線條相同 */
  top: 0;
}
.EnTie-grey-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ccc; /* 底線顏色 */
}
.EnTie-red-line {
  position: absolute;
  width: 100%; /* 疊加線的長度 */
  height: 2px;
  top: -2px;
  background-color: #ff0000; /* 疊加線顏色 */
  z-index: 10; /* 確保在上方 */
}
.EnTie-CIS-MidRedText {
  text-align: center;
  width: 100%;
  margin: 0 auto;
  padding: 10px 0;
  font-size: 28px;
  color: #cc000d;
  font-weight: bold;
}

/* 內容 */

.US-EnTie-container {
  background: #d0e6ea;
  padding-bottom: 50px;
  background-image: url("./image/BG-treak-2.png");
  background-attachment: fixed;
  background-size: cover;
}

.US-banner {
  position: relative;
}
.US-banner-TitleBox {
  height: 100vh;
  display: flex;
  justify-content: center;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  position: relative;
}
.US-banner-TitleBox .firework-L,
.US-banner-TitleBox .firework-R {
  width: 100%;
  height: 300px;
}
.US-banner-TitleBox .firework-R-1 {
  width: 100%;
  height: 150px;
}
.US-banner-TitleBox .firework-R-2 {
  width: 100%;
  height: 100px;
}
.firework-L {
  position: absolute;
  left: 50px;
  top: 150px;
}

.firework-R {
  position: absolute;
  right: 0px;
  top: 127px;
  transform: scaleX(-1);
  /* animation: fireworkDelay 10s linear infinite; */
}

.firework-R-1 {
  position: absolute;
  left: 188px;
  top: 429px;
  opacity: 0.4;
}

.firework-R-2 {
  position: absolute;
  right: 161px;
  top: 380px;
  opacity: 0.4;
  transform: scaleX(-1);
}
@keyframes fireworkDelay {
  0%,
  15% {
    opacity: 0;
  }
  16%,
  100% {
    opacity: 1;
  }
}

.PIC-528 {
  position: absolute;
  animation: glare 0.8s infinite alternate;
}

/* 動畫 */

@keyframes glare {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.9);
  }
}

/* 煙火 */
.US-fireworks-L {
  background: url("./image/US-fireworks-L.png");
  width: 200px;
  height: 500px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 50px;
  top: 150px;
}

.US-fireworks-R {
  background: url("./image/US-fireworks-R.png");
  width: 200px;
  height: 500px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 10px;
  top: 100px;
}

/* 煙火 -結束 */
.US-banner-content {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 20%;
  padding-top: 0px;
  z-index: 1;
}

.US-banner img {
  max-width: 500px;
}

.US-EnTie-NumBox {
  position: relative;
  display: flex;
  height: 150px;
  justify-content: center;
  align-items: center;
}

.US-EnTie-NumBox .US-number {
  background: url("./image/US-num-text-1.png");
  position: relative;
  background-size: contain;
  width: 440px;
  height: 150px;
}

.US-number .US-number-SideText {
  background: url("./image/US-num.png");
  position: relative;
  background-size: contain;
  max-width: 440px;
  height: 150px;
}

.US-building-bottom {
  background: url("./image/US-building.png");
  position: relative;
  background-size: contain;
  width: 100%;
  height: 150px;
  bottom: 0px;
  /* z-index: 1; */
}

/* 下排字 */
.US-bottom-text {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 80px;
  padding-top: 20px;
}
/* 自由女神 */

.US-building-bottom .US-StatueOfLiberty {
  position: absolute;
  width: 200px;
  height: 500px;
  bottom: 0;
  right: 80px;
}

/* 方框內容 */
.US-box {
  padding: 0 10px;
}
.US-box-title {
  text-align: center;
  font-weight: bold;
  padding: 15px 0;
  color: var(--blue);
  font-size: 37px;
  margin: 0 auto;
}
.US-box-title span {
  padding: 0 5px;
}
.US-box-title::before {
  content: "";
  background: url("./image/title-sm-img-L.png");
  display: inline-block;
  background-size: cover;
  width: 36px;
  height: 38px;
  margin-right: 8px;
}
.US-box-title::after {
  content: "";
  background: url("./image/title-sm-img-R.png");
  display: inline-block;
  background-size: cover;
  width: 36px;
  height: 38px;
  margin-left: 8px;
}

.US-content-box {
  display: flex;
  justify-content: center;
  padding: 100px 0 0px 0;
  z-index: 1;
  position: relative;
}
.US-box-long {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-blue);
  background-image: url("./image/BG-LongBox.png");
  background-size: cover;
  border: 2px solid var(--bg-blue-line);
  border-radius: 23px;
  width: 468px;
  height: 215px;
}
.US-box-short {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-blue);
  background-image: url("./image/BG-ShortBox.png");
  background-size: cover;
  border: 2px solid var(--bg-blue-line);
  border-radius: 23px;
  width: 245px;
  height: 215px;
}
.blue-line {
  background: url("./image/BlueLine.png");
  height: 190px;
  width: 10px;
}
.US-long-LR {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.US-long-LR img {
  padding: 25px 0 15px 0;
}
.US-date {
  background: var(--blue);
  color: #fff;
  width: 50%;
  font-size: 27px;
  font-weight: bold;
  border-radius: 30px;
  padding: 5px 10px;
  text-align: center;
}

/* 效期 */
.US-period-date {
  color: var(--blue);
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 4px;
  text-align: center;
  padding: 30px 0 80px 0;
}

/* 注意事項 */
.US-notice {
  background: var(--bg-blue);
  border: 2px solid var(--bg-blue-line);
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 50px 30px 50px;
  border-radius: 20px;

  line-height: 1.6;
}
.US-notice ul {
  list-style-type: decimal;
}

/* Footer 頁尾底部*/
.EnTie-footer {
  background: rgb(204, 0, 13);
  height: 64px;
  padding: 0px 90px;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: space-between;
}
.EnTie-footer img {
  width: 250px;
}
.EnTie-footer-detail {
  width: 100%;
  margin-left: 30px;
  padding-top: 13px;
  font-weight: 400;
}
.EnTie-footer-detail span {
  padding-left: 10px;
}

.EnTie-number {
  max-width: 1000px;
  margin: 0 auto;
  text-align: end;
  font-size: 12px;
  margin-bottom: 70px;
  padding-top: 15px;
}

/* 煙火特效 */
svg.firework {
  width: min(88%, 310px);
  height: 100%;
  overflow: visible;
}

@keyframes cLaunchGrow {
  0%,
  1% {
    transform: scaleY(0);
  }
  15%,
  100% {
    transform: scaleY(1);
  }
}
@keyframes cLaunchFade {
  0%,
  1% {
    opacity: 0;
  }
  3%,
  45% {
    opacity: 0.52;
  }
  65%,
  100% {
    opacity: 0;
  }
}
@keyframes cSeamlessBody {
  0%,
  9% {
    transform: scale(0.62);
    opacity: 0;
  }
  16% {
    opacity: 0.52;
  }
  32% {
    transform: scale(1.04);
    opacity: 0.52;
  }
  47% {
    transform: scale(1.11);
    opacity: 0.5;
  }
  69%,
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}
@keyframes cSeamlessLine {
  0%,
  9% {
    opacity: 0;
    transform: scale(0.03);
  }
  16% {
    opacity: 1;
  }
  32% {
    opacity: 1;
    transform: scale(1.1);
  }
  42% {
    opacity: 1;
    transform: scale(0.98);
  }
  54% {
    opacity: 0.75;
    transform: scale(1.12);
  }
  69%,
  100% {
    opacity: 0;
    transform: scale(1.27);
  }
}
@keyframes cSeamlessStar {
  0%,
  18% {
    opacity: 0;
    transform: scale(0.1) rotate(-35deg);
  }
  30% {
    opacity: 1;
    transform: scale(1.5) rotate(12deg);
  }
  42% {
    opacity: 0.5;
    transform: scale(0.75) rotate(-8deg);
  }
  52% {
    opacity: 1;
    transform: scale(1.2) rotate(8deg);
  }
  73%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(28deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  svg * {
    animation: none !important;
  }
}

/* footer {
  position: relative;
  z-index: 9;
} */

@media screen and (max-width: 768px) {
  .US-EnTie-container {
    padding-bottom: 0px;
  }

  /* Banner */
  .US-banner-content {
    width: 100%;
    padding-top: 0px;
    top: 13%;
  }
  .US-banner img {
    max-width: 100%;
  }

  .firework-L {
    position: absolute;
    left: 50px;
    top: 350px;
  }

  .US-banner-TitleBox .firework-L,
  .US-banner-TitleBox .firework-R {
    width: 200px;
    height: 180px;
  }

  .US-building-bottom .US-StatueOfLiberty {
    position: absolute;
    width: 100px;
    height: 300px;
  }

  .US-building-bottom {
    height: 50px;
  }

  .US-box-title {
    font-size: 30px;
    padding: 20px 0 7px 0;
  }

  .US-date {
    font-size: 23px;
  }

  /*  */
  .US-box-short {
    width: 100%;
    max-width: 400px;
  }

  .US-period-date {
    padding: 30px 0 30px 0;
  }
  /*  */

  .US-content-box {
    padding: 15px 0 0px 0;
    flex-direction: column;
    align-items: center;
  }

  .US-box-long {
    width: 100%;
  }
  .US-long-LR img {
    width: 100%;
    margin: 0 10px;
    max-width: 160px;
  }

  .US-notice {
    padding: 30px 15px 30px 30px;
    margin: 0 10px;
    text-align: justify;
  }
  .US-banner-TitleBox {
    height: 80vh;
  }

  .US-box-title::before,
  .US-box-title::after {
    width: 29px;
    height: 32px;
  }

  /* 煙火 */
  .US-fireworks-L {
    width: 100px;
    height: 200px;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    left: 50px;
    top: 414px;
  }
  .US-banner-TitleBox .firework-R-1,
  .US-banner-TitleBox .firework-R-2 {
    display: none;
  }
}

/* 版頭 */
@media screen and (max-width: 768px) {
  .EnTie-Redbar {
    height: 30px;
  }
  .EnTie-Redbar img {
    margin-right: 5px;
    width: 80px;
  }
}

/* 版尾 */
@media screen and (max-width: 768px) {
  .EnTie-CIS-container {
    height: 45px;
  }
  .EnTie-CIS-MidRedText {
    padding: 5px 0;
    font-size: 23px;
  }

  .EnTie-footer {
    flex-direction: row;
    align-items: center;
    line-height: 30px;
    height: 45px;
    padding: 0 5px;
  }
  .EnTie-footer-detail {
    margin-left: 0;
    text-align: center;
    padding-top: 5px;
  }
  .EnTie-footer-detail span {
    display: block;
  }
  .EnTie-footer img {
    max-width: 180px;
  }

  .EnTie-number {
    padding: 15px 15px 15px 15px;
    margin-bottom: 0px;
  }
}

@media screen and (max-width: 375px) {
  .US-banner-TitleBox .firework-L,
  .US-banner-TitleBox .firework-R {
    width: 193px;
    height: 127px;
  }

  .US-building-bottom .US-StatueOfLiberty {
    position: absolute;
    width: 84px;
    height: 254px;
  }

  .firework-R {
    top: 32px;
  }
}
