:root {
  /* 顏色 */
  --gray_1: #4c4c4c;
  --gray_2: #777777;
  --blue: #4076fb;
  --gradient: linear-gradient(45deg, #fd00fd, #02edf5);
  --shadow: 2px 2px 20px hsla(0, 0%, 0%, 0.2);
  --white_bg: rgba(255, 255, 255, 0.6);
  --opacity_bg: 0.65;

  /* 字體 */
  --p_size: 1.1rem;
  --h2_size: 3rem;
  --h3_size: 1.3rem;
  --h4_size: 1.2rem;
  --note_size: 0.95rem;
  --line_height: 1.75;

  /* 間距 */
  --btn_spacing: 1rem;
  --btn_padding: 0.5rem 2rem;
  --label_padding: 0.2rem 1rem;
  --section_margin: 6rem 0;
  --item_spacing: 0.5rem;
  --border-radius: 4px;

  /* z-index */
  --z_mask: 90;
  --z_header: 100;
  --z_main_bg: -1;
}

@media screen and (max-width: 1200px) {
  :root {
    /* 顏色 */
    --gray_1: #4c4c4c;
    --gray_2: #777777;
    --blue: #4076fb;
    --gradient: linear-gradient(45deg, #fd00fd, #02edf5);
    --shadow: 2px 2px 20px hsla(0, 0%, 0%, 0.2);
    --opacity_bg: 0.65;

    /* 字體 */
    --p_size: 1rem;
    --h2_size: 2.5rem;
    --h3_size: 1.15rem;
    --h4_size: 1.08rem;
    --note_size: 0.9rem;
    --line_height: 1.5;

    /* 間距 */
    --btn_spacing: 0.6rem;
    --btn_padding: 0.5rem 2rem;
    --label_padding: 0.2rem 1rem;
    --section_margin: 4rem 0;
    --item_spacing: 0.5rem;
    --border-radius: 3px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    /* 顏色 */
    --gray_1: #4c4c4c;
    --gray_2: #777777;
    --blue: #4076fb;
    --gradient: linear-gradient(45deg, #fd00fd, #02edf5);
    --shadow: 2px 2px 20px hsla(0, 0%, 0%, 0.2);
    --white_bg: rgba(255, 255, 255, 0.7);
    --opacity_bg: 0.65;

    /* 字體 */
    --p_size: 0.95rem;
    --h2_size: 2.2rem;
    --h3_size: 1.15rem;
    --h4_size: 1rem;
    --note_size: 0.85rem;
    --line_height: 1.5;

    /* 間距 */
    --btn_spacing: 0.6rem;
    --btn_padding: 0.5rem 2rem;
    --label_padding: 0.2rem 1rem;
    --section_margin: 4rem 0;
    --item_spacing: 0.5rem;
    --border-radius: 3px;
  }
}

body {
  width: 100%;
  margin: 0;
  position: relative;
}

body * {
  box-sizing: border-box;
  font-size: var(--p_size);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 1px;
}

section {
  width: 100%;
  margin: var(--section_margin);
}

figure {
  margin: 0;
}

h2 {
  font-size: var(--h2_size);
  font-family: "Corbel", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h3 {
  font-size: var(--h3_size);
}

h4 {
  font-size: var(--h4_size);
}

p,
li {
  margin: 0.75rem 0;
  color: var(--gray_1);
  line-height: var(--line_height);
}

ol {
  padding: 0 0 0 1.2rem;
}

ul {
  list-style: none;
  padding: 0 0 0 1.8rem;
}

ul > li {
  position: relative;
}

ul > li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gradient);
  position: absolute;
  top: calc(var(--p_size) * var(--line_height) / 2);
  left: -1.45rem;
  transform: translateY(-50%);
}

a {
  cursor: pointer;
  text-decoration: none;
  color: var(--gray_1);
}

.container_1200 {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.container_900 {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
}

.bg_mask {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: var(--z_mask);
  pointer-events: none;
}

.bg_mask.active {
  pointer-events: unset;
}

.font_s {
  font-size: small;
}

@media screen and (max-width: 1200px) {
  .container_1200,
  .container_900 {
    width: 88%;
  }
}

@media screen and (max-width: 768px) {
  .container_1200,
  .container_900 {
    width: 90%;
  }
}

/* header */
header {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: var(--z_header);
}

header > .list_box {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  transition: 0.3s;
  display: flex;
  gap: var(--btn_spacing);
  align-items: center;
  background: none;
  box-shadow: none;
  transition: 0.3s;
}

header > .list_box.bg {
  background: var(--white_bg);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow);
}

header nav {
  display: flex;
  align-items: center;
  gap: var(--btn_spacing);
}

header nav > a {
  color: white;
  transition: 0.3s;
  letter-spacing: 1px;
  font-family: "Corbel", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.list_box.bg > nav > a {
  color: var(--gray_2);
}

header .lang {
  position: relative;
  padding: var(--label_padding);
  background: white;
  font-size: var(--note_size);
  border-radius: 25px;
  color: var(--gray_2);
  cursor: pointer;
}

header .lang > span {
  font-size: var(--note_size);
}

.lang > .lang_box {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: var(--btn_spacing);
  box-shadow: var(--shadow);
  width: max-content;
  padding: 0.5rem 1.25rem;
  top: calc(100% + 0.7rem);
  right: -1.5rem;
  background: white;
  border-radius: 25px;
  pointer-events: none;
  opacity: 0;
  transition: 0.3s;
  margin: 0;
}

.lang.active > .lang_box {
  pointer-events: unset;
  opacity: 1;
}

.lang > .lang_box > a {
  font-size: var(--note_size);
}

.lang > .lang_box > a.active {
  color: var(--blue);
}

.ham_btn {
  display: none;
}

@media screen and (max-width: 1200px) {
  .ham_btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
  }

  .ham_btn > span {
    position: absolute;
    width: 1.05rem;
    height: 1px;
    background: var(--gray_2);
    top: 50%;
    left: 50%;
    transition: 0.3s;
  }

  .ham_btn > span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 0.35rem));
  }

  .ham_btn > span:nth-child(2) {
    width: 0.75rem;
    transform: translate(-50%, -50%);
  }

  .ham_btn > span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 0.35rem));
  }

  header.active .ham_btn > span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  header.active .ham_btn > span:nth-child(2) {
    width: 0;
  }

  header.active .ham_btn > span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  header > .list_box {
    width: max-content;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: var(--btn_spacing);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  header.active > .list_box {
    opacity: 1;
    pointer-events: unset;
  }

  header nav {
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--btn_spacing);
  }

  header nav > a {
    color: var(--gray_2);
    transition: 0.3s;
  }

  header .lang {
    width: 100%;
    position: relative;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: var(--gray_2);
  }

  header .lang > span {
    display: none;
  }

  .lang > .lang_box {
    position: unset;
    box-shadow: none;
    width: 100%;
    padding: 0.5rem 1.25rem;
    pointer-events: unset;
    opacity: 1;
    margin: 0.5rem 0 0;
  }

  .lang > .lang_box > a.active {
    color: var(--blue);
  }
}

/* 背景 */
.main_bg {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: var(--z_main_bg);
  transition: 0.3s;
}

.main_bg::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: hsla(0, 0%, 40%, 0.1);
  backdrop-filter: blur(6px);
  opacity: 0;
}

.main_bg.active::after {
  opacity: 1;
}

.main_bg figure {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.main_bg > .b_bg {
  background: url(../image/banner_bg.png) no-repeat;
  background-size: cover;
  background-position: 90% center;
}

.main_bg > .b_01 {
  background: url(../image/banner_01.png) no-repeat;
  background-size: cover;
  background-position: 90% center;
  animation: mcu_float 2.5s infinite 2s ease alternate;
}

.main_bg > .b_02-1 {
  background: url(../image/banner_02-1.png) no-repeat;
  background-size: cover;
  background-position: 90% center;
  animation: line_down 2s ease forwards;
  transform: translate(100%);
}

.main_bg > .b_02-2 {
  background: url(../image/banner_02-2.png) no-repeat;
  background-size: cover;
  background-position: 90% center;
  animation: line_down 2s ease 0.5s forwards;
  transform: translate(100%);
}

.main_bg > .b_03-1 {
  background: url(../image/banner_03-1.png) no-repeat;
  background-size: cover;
  background-position: 90% center;
  animation: line_up 1.8s ease 0.5s forwards;
  transform: translate(-100%);
}

.main_bg > .b_03-2 {
  background: url(../image/banner_03-2.png) no-repeat;
  background-size: cover;
  background-position: 90% center;
  animation: line_up 1.8s ease forwards;
  transform: translate(-100%);
}

@keyframes mcu_float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-25px);
  }
}

@keyframes line_down {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes line_up {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

@media screen and (orientation: portrait) and (max-width: 900px) {
  .main_bg > .b_bg {
    background: url(../image/banner_bg_mobile.png) no-repeat;
    background-size: cover;
    background-position: 90% center;
  }

  .main_bg > .b_01 {
    background: url(../image/banner_01_mobile.png) no-repeat;
    background-size: cover;
    background-position: 90% center;
    animation: mcu_float 2.5s infinite 2s ease alternate;
  }

  .main_bg > .b_02-1 {
    background: url(../image/banner_02-1_mobile.png) no-repeat;
    background-size: cover;
    background-position: 90% center;
    animation: line_down 2s ease forwards;
    transform: translate(100%);
  }

  .main_bg > .b_02-2 {
    background: url(../image/banner_02-2_mobile.png) no-repeat;
    background-size: cover;
    background-position: 90% center;
    animation: line_down 2s ease 0.5s forwards;
    transform: translate(100%);
  }

  .main_bg > .b_03-1 {
    background: url(../image/banner_03-1_mobile.png) no-repeat;
    background-size: cover;
    background-position: 90% center;
    animation: line_up 1.8s ease 0.5s forwards;
    transform: translate(-100%);
  }

  .main_bg > .b_03-2 {
    display: none;
  }
}

@media screen and (orientation: portrait) and (max-width: 576px) {
  .main_bg > .b_bg {
    background: url(../image/banner_bg_mobile.png) no-repeat;
    background-size: cover;
    background-position: 60% center;
  }

  .main_bg > .b_01 {
    background: url(../image/banner_01_mobile.png) no-repeat;
    background-size: cover;
    background-position: 60% center;
    animation: mcu_float 2s infinite 2s ease alternate;
  }

  .main_bg > .b_02-1 {
    background: url(../image/banner_02-1_mobile.png) no-repeat;
    background-size: cover;
    background-position: 80% center;
    animation: line_down 2.6s ease forwards;
    transform: translate(100%);
  }

  .main_bg > .b_02-2 {
    background: url(../image/banner_02-2_mobile.png) no-repeat;
    background-size: cover;
    background-position: 60% center;
    animation: line_down 1.5s ease forwards;
    transform: translate(100%);
  }

  .main_bg > .b_03-1 {
    background: url(../image/banner_03-1_mobile.png) no-repeat;
    background-size: cover;
    background-position: 60% center;
    animation: line_up 1.8s ease 0.5s forwards;
    transform: translate(-100%);
  }
}

/* 標題 */
.title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
}

.title > h2,
.title > h4 {
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.2;
  /* text-align: center; */
}

/* logo */
.banner .logo {
  position: absolute;
  top: 1rem;
  left: 2rem;
  transform: translateX(0);
  display: flex;
  align-items: center;
  gap: var(--btn_spacing);
  z-index: var(--z_header);
}

.banner .logo > a {
  width: 120px;
}

.banner .logo > a > img {
  width: 100%;
  object-fit: contain;
}

@media screen and (max-width: 900px) {
  .banner .logo {
    left: 50%;
    transform: translateX(-50%);
  }

  .banner .logo > a {
    width: 55px;
  }
}

@media screen and (max-width: 576px) {
  .banner .logo {
    left: 50%;
    transform: translateX(-50%);
  }

  .banner .logo > a {
    width: 40px;
  }
}

/* 提示 */
.note {
  font-size: var(--note_size);
  color: white;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.note > span {
  width: var(--p_size);
  height: var(--p_size);
  font-size: var(--note_size);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white_bg);
  font-family: "Corbel", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 漸層背景 */
.gradient_bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(35deg, hsla(300, 100%, 50%, 0.85) -5%, hsla(182, 98%, 48%, 0.5) 22%, hsla(0, 0%, 100%, 0) 50%);
  z-index: -1;
}

.gradient_bg::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--white_bg);
  backdrop-filter: blur(5px);
}

@media screen and (max-width: 576px) {
  .gradient_bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(35deg, hsla(300, 100%, 50%, 0.9) -5%, hsla(182, 98%, 48%, 0.75) 22%, hsla(0, 0%, 100%, 0) 50%);
    z-index: -1;
  }
}

/* footer */
footer {
  padding: 2rem 0;
  margin-top: 4rem;
}
footer .logo {
  display: flex;
  align-items: center;
  gap: var(--btn_spacing);
}

footer .logo > a {
  width: 120px;
  display: block;
  margin: 0 0 0.5rem;
}

footer .logo > a > img {
  width: 100%;
  object-fit: contain;
}

footer p {
  margin: 0;
  font-size: var(--note_size);
  color: white;
}

@media screen and (max-width: 900px) {
  footer .logo > a {
    width: 90px;
  }
}
