[un-cloak] {
  display: none;
}

html {
  scroll-padding-top: 100px;
}

body {
  font-family: "Noto Sans TC", sans-serif;
}

@font-face {
  font-family: "DIN";
  src: url("../font/DIN-Black.ttf") format("truetype");
}
.smart-dialog{
  width: 10rem;
  position: fixed;
  right: calc(-12% - 0px);
  bottom: calc(50% - 331px);
  z-index: 990;
}

.navbar{
  position: fixed !important;
  top: 0;
  z-index: 99;
  width: 100%;
}


@media (max-width: 991.98px) {
  .navbar {
    position: relative;
  }
  .custom-navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  .navbar-brand{
    position: fixed;
    top: 5px;
    left: 55%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1279px) {
  header.toggled {
    z-index: 200;
  }
}

@media (max-width: 1279px) {
  header {
    height: 48px;
    padding-left: 0;
    padding-right: 0;
    padding: 0;
    box-shadow: none;
  }
}

header .header-logos {
  display: flex;
}

@media (max-width: 1279px) {
  header .header-logos {
    background-color: #fff;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  header .header-logos {
    padding: 0 20px;
  }

  .navbar{
    height: 50px !important;
  }
}

header .header-logos a {
  display: block;
}

header .header-logos a img {
  vertical-align: middle;
  height: 45px;
}

@media (max-width: 1279px) {
  header .header-logos a img {
    height: 24px;
  }
}

header .header-logos #header-menu-toggle {
  display: none;
  transition: 0.3s;
}

@media (max-width: 1279px) {
  header .header-logos #header-menu-toggle {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url(../../img/header/menu.svg);
    cursor: pointer;
  }
  header .header-logos #header-menu-toggle.toggled {
    background-image: url(../../img/header/close.svg);
    transition: 0.3s;
  }
}

header .links-row {
  display: flex;
  gap: 24px;
}

@media (max-width: 1279px) {
  header .links-row {
    position: absolute;
    top: 48px;
    left: 0;
    border-top: 1px solid #E3E3E3;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(-100%);
    pointer-events: none;
    border-radius: 0 0 40px 40px;
  }
  header .links-row.toggled {
    pointer-events: all;
    transition: 0.3s;
    opacity: 1;
    transform: translateY(0%);
  }
}

header .links-row a,
header .links-row button {
  font-size: 20px;
  padding: 8px;
  color: #007CC5;
  transition: 0.3s;
  position: relative;
  display: inline-flex;
  font-family: "Noto Sans TC", sans-serif;
}

@media (min-width: 1280px) {
  header .links-row a,
  header .links-row button {
    border-bottom: 2px solid transparent;
  }
  header .links-row a:hover,
  header .links-row button:hover {
    font-weight: bold;
    transition: 0.3s;
    border-bottom-color: #007ECB;
  }
}

@media (max-width: 1279px) {
  header .links-row a,
  header .links-row button {
    border-bottom: 2px solid #D0EEFF;
    padding: 20px 0;
    display: flex;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  header .links-row a:last-of-type,
  header .links-row button:last-of-type {
    border-bottom: none;
  }
}

#header-mobile-mask {
  display: none;
  pointer-events: none;
}

@media (max-width: 1279px) {
  #header-mobile-mask {
    pointer-events: all;
    position: fixed;
    z-index: 111;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 60, 60, 0.56);
    top: 48px;  
  }
}
@media (max-width: 590px){
  .pc{
    display: none !important;
  }
}

