@charset "utf-8";

/* ===== Global ===== */
html,
body {
  margin: 0;
}
body,
input,
button,
select {
  font-family: "微軟正黑體", Helvetica, Arial, sans-serif;
  font-size: 16px;
}
body {
  background-color: #000;
  line-height: 1.67;
  background-repeat: no-repeat;
}
a {
  color: #000;
}
a:hover {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* ===== Navbar ===== */
#navbar {
  width: 100%;
  max-width: 100%;
  margin: auto;
  text-align: center;
}
.navbar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent);
  border: none;
  padding: 20px 45px 0;
}
.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-brand:focus,
.navbar-inverse .navbar-brand:hover {
  color: #ffffff;
}
.navbar-inverse .navbar-nav > li > a.active,
.navbar-inverse .navbar-nav > li > a:hover {
  color: rgb(110, 110, 110);
}
.navbar-inverse .navbar-toggle {
  background-color: #333;
}

.navbar-brand {
  max-width: 153px;
  height: auto;
  padding: 0;
}
.navbar-brand > img {
  width: 100%;
}

.navbar-fixed-bottom .navbar-collapse,
.navbar-fixed-top .navbar-collapse {
  max-height: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
}
.navbar-nav > li > a {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-scrollbar {
  float: none;
  display: inline-block;
}
.nav-scrollbar li {
  margin: 0 30px;
}
.navbar .nav-scrollbar li a {
  padding: 23px 0;
  color: #adadac;
  font-size: 18px;
}
.navbar .nav-scrollbar li a:focus,
.navbar .nav-scrollbar li a:active {
  color: #adadac;
}
.navbar .nav-scrollbar li a:hover {
  color: #aa0703;
}

.logo-mobile {
  display: none;
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  gap: 15px;
}
.nav.navbar-nav.navbar-right li a {
  width: 55px;
  height: 55px;
  padding: 0;
}
.nav.navbar-nav.navbar-right li a:hover img {
  opacity: 0;
}
.nav.navbar-nav.navbar-right li a:hover {
  background-position: 0 0;
  background-size: contain;
  background-repeat: no-repeat;
}
.nav.navbar-nav.navbar-right li:nth-of-type(1) a:hover {
  background-image: url(../images/menu-bgc_hover.png);
}
.nav.navbar-nav.navbar-right li:nth-of-type(2) a:hover {
  background-image: url(../images/menu-fb_hover.png);
}
.nav.navbar-nav.navbar-right li:nth-of-type(3) a:hover {
  background-image: url(../images/menu-hp_hover.png);
}
/* 讓導覽圖片在 .nav 下不被壓縮 */
.nav > li > a > img {
  max-width: 100%;
}

/* ===== Header ===== */
.header {
  position: relative;
  height: 1025px;
  background: url("../images/head_bg.jpg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
  z-index: 0;
}
.header .logo {
  position: absolute;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 772px;
  width: 100%;
  text-align: center;
  margin: 0;
  z-index: 8;
}

/* 下載按鈕列 */
.header .appBox {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 7;
}
.header .appBox ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.header .appBox ul > li > a {
  display: block;
}
.header .appBox ul > li > a:hover img {
  opacity: 0;
}
.header .appBox ul > li > a:hover {
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: contain;
}
.header .appBox ul > li:nth-of-type(1) > a:hover {
  background-image: url(../images/downloadBar-btn-apple_hover.png);
}
.header .appBox ul > li:nth-of-type(2) > a:hover {
  background-image: url(../images/downloadBar-btn-google_hover.png);
}
.header .appBox ul > li:nth-of-type(3) > a:hover {
  background-image: url(../images/downloadBar-btn-hp_hover.png);
}

/* 角色群 */
.header .charWrap {
  display: flex;
  justify-content: center;
  flex-direction: row;
  max-width: 1526px;
  margin: 80px auto 0;
}
.header .charWrap .char-col {
  flex: 0 0 25%;
  max-width: 25%;
  filter: drop-shadow(rgb(0, 0, 0) 0px 0px 24px);
}

/* ===== News / Features ===== */
.news,
.feature-content {
  position: relative;
}

.news {
  background: transparent url(../images/s1_bg.jpg) no-repeat 50% 0;
  background-size: cover;
  height: 855px;
  z-index: 3;
  padding-top: 90px;
}
.news::before {
  content: "";
  background: url(../images/deco.png) no-repeat 50% 0;
  width: 100%;
  height: 1144px;
  left: 0;
  top: -489px;
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.feature-content {
  background: url(../images/s2_bg.jpg) no-repeat 50% 0;
  height: 1120px;
  position: relative;
  background-size: cover;
  z-index: 2;
  padding: 120px 0 300px;
  overflow: hidden;
}
.feature-content::after {
  background: transparent url(../images/mm-2.png) no-repeat 0 0;
  width: 977px;
  height: 877px;
  position: absolute;
  content: "";
  left: 50%;
  margin-left: -178px;
  top: 112px;
  z-index: -1;
}

.clothes-title {
  text-align: center;
  margin: 0 0 63px;
}

/* ===== Swiper ===== */
.feature-content .ad {
  position: relative;
  max-width: 734px;
  width: 100%;
  height: 100%;
  aspect-ratio: 734 / 556;
  margin: auto;
  border: 1px solid #56545d;
  border-image: url(../images/border-img.png) 50;
  background-size: contain;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  float: left;
}

.swiper-slide {
  text-align: center;
  overflow: hidden;
}
.swiper-container {
  border: 1px solid #56545d;
  border-image: url(../images/border-img.png) 50;
  background: rgba(0, 0, 0, 0.4);
}
.swiper-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination {
  left: 0;
  right: 0;
  bottom: -45px;
  margin: auto;
  position: relative;
}

.swiper-pagination::after,
.swiper-pagination::before {
  content: "";
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: contain;
  width: 330px;
  /* height: 7px; */
  position: absolute;
  top: 7px;
  aspect-ratio: 330 / 7;
}
.swiper-pagination::after {
  background-image: url(../images/line-lf.png);
  left: -120px;
}
.swiper-pagination::before {
  background-image: url(../images/line-rt.png);
  right: -120px;
}
.swiper-pagination-bullet {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
  transition: 0.3s all;
  opacity: 1;
}
.swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #4b4950;
  transform: rotate(45deg);
  box-sizing: border-box;
  border-radius: 0;
}
.swiper-pagination-bullet-active.swiper-pagination-bullet::before {
  border: 1px solid #2f5f7a;
}
.swiper-pagination-bullets > span {
  margin-right: 20px;
}
.swiper-pagination-bullets .swiper-pagination-bullet:last-child {
  margin-right: 0;
}
.swiper-pagination-bullet-active {
  background: transparent;
}
.swiper-pagination-bullet-active:after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #2f5f7a;
  transform: rotate(45deg);
  border-radius: 0;
}
.swiper-button-next,
.swiper-button-prev {
  display: none;
}
.swiper-container-horizontal > .swiper-pagination-bullets {
  bottom: 0;
}

/* ===== Notice list ===== */
.notice {
  position: relative;
  padding: 0;
  z-index: 9;
}
.notice::after {
  content: "";
  background: transparent url(../images/mm-1.png) no-repeat 0 0;
  width: 783px;
  height: 1019px;
  position: absolute;
  top: 2px;
  left: 50%;
  margin-left: -943px;
  z-index: -1;
}
.notice h3,
.clothes-title {
  background: url(../images/tit_news.png) no-repeat 0 0;
  max-width: 343px;
  width: 100%;
  aspect-ratio: 343 / 166;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto 35px;
  background-size: contain;
}

.notice .labels {
  position: relative;
  min-width: 60px;
  display: inline-block;
  line-height: 27px;
  font-size: 16px;
  text-align: center;
  margin-right: 12px;
  border-radius: 5px;
}
.notice .labels.labels-all {
  color: #7a94c2;
  background-color: #23334e;
}
.notice .labels.labels-event {
  background-color: #5b5337;
  color: #9f8e52;
}
.notice .labels.labels-system {
  background-color: #234e34;
  color: #659578;
}

.page-index .notice .tab-content {
  border: 1px solid #56545d;
  border-image: url(../images/border-img.png) 50;
  background: rgba(0, 0, 0, 0.4);
  padding: 35px 20px;
  position: relative;
  z-index: 2;
  margin: 0;
  float: right;
  max-width: 810px;
  width: 100%;
}
.notice .tab-content ul {
  list-style-type: none;
  color: #000;
  margin: 0;
  padding: 0;
}
.notice .tab-content ul li {
  position: relative;
  font-size: 18px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notice .tab-content ul li:hover {
  background: #2a2a2a;
}
.notice .tab-content ul li a {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 16px;
}
.notice .tab-content ul li:hover a,
.notice .tab-content ul li:hover span.time {
  color: #c4b192;
}
.notice .tab-content ul li span.time {
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 12px;
}

.notice a.more {
  display: block;
  width: 74px;
  margin: 0 auto;
  z-index: 1;
  font-size: 18px;
  background: #836f50;
  padding: 1px 0;
  color: #fff;
  text-decoration: none;
  text-align: center;
}
.notice a.more:hover {
  background: #9b8e7a;
}
.page-notice {
  height: 100%;
  background: url(../images/notice_bg.jpg) no-repeat 50% 0;
  background-size: cover;
  padding-top: 90px;
}
.page-notice .header {
  height: auto;
  background: none;
}
.page-notice .notice::after {
  display: none;
}
.page-notice .notice {
  max-width: 1000px;
  margin: 50px auto 80px;
  position: relative;
  background: rgba(124, 124, 124, 0.4);
  box-shadow: inset 0 0 2px #fff;
  border-radius: 10px;
  padding: 45px 115px;
}
.page-notice .notice .post {
  color: #fff;
}
.page-notice .nav-custom {
  margin-bottom: 45px;
}
.page-notice .nav-custom li {
  margin: 0 8px;
}
.page-notice .nav-custom li a {
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: contain;
  width: 173px;
  aspect-ratio: 173 / 55;
  text-indent: -10000em;
  background-color: transparent;
}
.page-notice .nav-custom li a:hover {
  background-color: transparent;
}
.page-notice .nav-custom li:nth-of-type(1) a {
  background-image: url(../images/tab-1.png);
}
.page-notice .nav-custom li:nth-of-type(1) a:hover,
.page-notice .nav-custom li:nth-of-type(1).active a,
.page-notice .nav-custom li:nth-of-type(1) a:focus {
  background-image: url(../images/tab-1_hover.png);
}
.page-notice .nav-custom li:nth-of-type(2) a {
  background-image: url(../images/tab-2.png);
}
.page-notice .nav-custom li:nth-of-type(2) a:hover,
.page-notice .nav-custom li:nth-of-type(2).active a,
.page-notice .nav-custom li:nth-of-type(2) a:focus {
  background-image: url(../images/tab-2_hover.png);
}
.page-notice .nav-custom li:nth-of-type(3) a {
  background-image: url(../images/tab-3.png);
}
.page-notice .nav-custom li:nth-of-type(3) a:hover,
.page-notice .nav-custom li:nth-of-type(3).active a,
.page-notice .nav-custom li:nth-of-type(3) a:focus {
  background-image: url(../images/tab-3_hover.png);
}
.page-notice .nav-custom li:nth-of-type(4) a {
  background-image: url(../images/tab-4.png);
}
.page-notice .nav-custom li:nth-of-type(4) a:hover,
.page-notice .nav-custom li:nth-of-type(4).active a,
.page-notice .nav-custom li:nth-of-type(4) a:focus {
  background-image: url(../images/tab-4_hover.png);
}
.page-notice #footer {
  position: relative;
  padding: 15px 0;
}
.breadcrumbs {
  color: #fff;
}
.breadcrumbs a {
  color: #fff;
}
.pagination > li > a,
.pagination > li > span {
  background: transparent;
  border-color: #7b7b7b;
  color: #7b7b7b;
}
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
  color: #000;
  border-color: #7b7b7b;
  background-color: #7b7b7b;
}
.btn-custom {
  background: #c2c2c2;
  border-radius: 5px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}
.btn-custom:hover {
  background: #000;
  color: #c2c2c2;
}
/* ===== Footer ===== */
#footer {
  font-family: "微軟正黑體", "Malgun Gothic", Dotum, Tahoma, sans-serif;
  position: absolute;
  bottom: 20px;
  padding: 0;
  margin: 0 auto;
  left: 0;
  right: 0;
  color: #fff;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style-type: none;
  font-size: 12px;
  line-height: 18px;
  color: white;
  margin: 0;
  padding: 0;
  gap: 30px;
}
.copyright li {
  padding-left: 8px;
  vertical-align: middle;
}
.copyright img {
  max-height: 100px;
  vertical-align: inherit;
  display: inline-block;
}
.copyright li:last-child img {
  max-height: 45px;
}
.copyright li:nth-child(3) {
  margin-right: 10px;
}
.copyright li:nth-child(4) {
  margin: 10px 0;
  padding-left: 0;
}
.happytuk_logo {
  background: url("../images/happytuk_w_logo.png") no-repeat center center;
  background-size: contain;
  width: 169px;
  height: 32px;
}
.copyright span {
  display: inline-block;
  vertical-align: middle;
}

/* ===== Media Queries ===== */

@media (max-width: 1440px) {
  .header {
    height: 100%;
  }
  .header .logo {
    width: 60%;
    bottom: 75px;
  }
}
@media (max-width: 1000px) {
  .navbar {
    padding: 20px 15px 0;
  }
  .nav-scrollbar {
    display: none;
  }
}
@media (max-width: 991px) {
  .news {
    height: 100%;
    padding-bottom: 150px;
  }
  .notice::after,
  .feature-content::after {
    display: none;
  }

  .feature-content {
    height: 100%;
  }
}

@media (max-width: 769px) {
  .navbar-right {
    gap: 10px;
    padding-top: 10px;
  }
  .navbar-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .logo-mobile {
    line-height: 3;
    padding-left: 10px;
    display: inline-block;
  }

  .news {
    padding-bottom: 100px;
  }
  .notice h3,
  .clothes-title {
    width: 40%;
  }
  .notice .tab-content ul li {
    justify-content: flex-start;
  }
  .swiper-pagination::after,
  .swiper-pagination::before {
    width: 50%;
  }
  #navbar ul:nth-of-type(1) {
    display: none;
  }

  .container > .navbar-header {
    padding: 10px 0;
  }
  .navbar-brand {
    padding: 0;
  }
  .page-index .notice .tab-content {
    padding: 25px;
  }

  /* .swiper-container {
    padding: 0 12px;
  } */
  .page-index .notice .tab-content {
    padding: 15px;
  }
  .notice .tab-content ul li a,
  .notice .labels {
    font-size: 14px;
  }
  .notice a.more {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .navbar {
    padding-top: 15px;
  }
  .nav.navbar-nav.navbar-right li a {
    width: 35px;
    height: 35px;
  }
  .header .appBox ul {
    gap: 5px;
  }
  .header .appBox ul > li {
    width: 20%;
  }
  .header .logo {
    bottom: 25px;
  }
  .header .title {
    padding-top: 40px;
  } /* safe no-op if .title 不存在 */
  .news {
    padding-top: 50px;
    padding-bottom: 80px;
  }
  .feature-content {
    padding-top: 50px;
  }
  .navbar-brand {
    max-width: 130px;
  }
  .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
  }
  .swiper-pagination-bullet-active:after {
    inset: 4px;
  }
  .swiper-pagination::after,
  .swiper-pagination::before {
    top: 10px;
  }
  .swiper-pagination::before {
    right: -100px;
  }
  .swiper-pagination::after {
    left: -100px;
  }
  #feature > div > .container {
    margin-bottom: 0;
  }
}
@media (max-width: 350px) {
  .feature-content {
    padding-bottom: 400px;
  }
}
