header {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 68px;
  background: #FFF;
  z-index: 9;
  transition: 0.4s ease-in-out;
}

header.bg {
  position: sticky;
  box-shadow: 0 .2rem 0.25rem 0 rgb(4 0 0 / 15%);
}

header .content {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  transition: all 0.3s;
  display: flex;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 16px;
}

header .logo {
  width: 100%;
  max-width: 180px;
  transition: all 0.3s;
  z-index: 3;
  flex: 4;
}

header .logo img {
  width: 100%;
  min-width: 120px;
  max-width: 180px;
}

header #menu {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 6;
}

header ul.menu {
  flex: 1;
  display: flex;
  width: auto;
  height: 100%;
  font-size: 1rem;
  justify-content: flex-end;
  gap: 22px;
}

header ul.menu>li {
  position: relative;
  flex: none;
  text-align: center;
  line-height: 1.8;
}

header ul.menu>li>a {
  position: relative;
  display: flex;
  cursor: pointer;
  height: 100%;
  align-items: center;
  transition: color 0.3s;
  font-weight: 400;
  z-index: 1;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #c2172d, #c2172d 50%, #141414 50%);
  background-size: 200% 100%;
  background-position: -100%;
  transition: all 0.3s ease-in-out;
  font-size: 1.06rem;
  font-family: Proxima Nova W01, -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica, Arial, sans-serif;
}

header ul.menu>li>a img {
  width: 30px;
  height: 30px;
}

header ul.menu>li>a:hover img {
  width: 30px;
  height: 30px;
  animation: parent-tab-image .6s linear;
}

header ul.menu>li>a:hover {
  color: #c2172d;
  background-position: 0%;
}

header ul.menu>li>a:before {
  display: block;
  content: '';
  width: 0;
  height: 4px;
  bottom: 5px;
  left: 0;
  bottom: 0px;
  z-index: 0;
  position: absolute;
  background: #c2172d;
  transition: all 0.3s ease-in-out;
}

header ul.menu>li.active>a:before {
  width: 100%;
}

header ul.menu>li>a:hover:before {
  width: 100%;
}

header ul.menu>li.active>a {
  font-weight: 600;
  background-image: linear-gradient(to right, #c2172d, #c2172d 50%, #c2172d 50%);
}

header ul.menu>li:last-child::after {
  display: none;
}

header #menu-ck {
  display: none;
}

header #menu-ck~label i,
header #menu-ck~label span,
header #menu-ck~label u {
  position: absolute;
  width: 24px;
  height: 2px;
  background: #232323;
  opacity: 1;
  transform: rotate(0deg);
  transition: top 0.2s 0.2s, opacity 0.1s 0.2s, transform 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s, -o-transform 0.2s;
}

header #menu-ck~label i {
  top: 6px;
  left: 0px;
}

header #menu-ck~label span {
  width: 20px;
  top: 14px;
  left: 0px;
}

header #menu-ck~label u {
  top: 22px;
  left: 0px;
}

header #menu-ck:checked~label i,
header #menu-ck:checked~label span,
header #menu-ck:checked~label u {
  transition: top 0.2s, opacity 0.1s 0.2s, transform 0.2s 0.2s, -webkit-transform 0.2s 0.2s, -moz-transform 0.2s 0.2s, -o-transform 0.2s 0.2s;
}

header #menu-ck:checked~label i {
  top: 15px;
  opacity: 1;
  transform: rotate(45deg);
}

header #menu-ck:checked~label span {
  top: 15px;
  opacity: 0;
}

header #menu-ck:checked~label u {
  top: 15px;
  opacity: 1;
  transform: rotate(-45deg);
}

header #menu-ck~label {
  display: none;
  position: relative;
  width: 28px;
  min-width: 28px;
  height: 28px;
  left: 4px;
  z-index: 3;
  cursor: pointer;
  border-radius: 4px;
}

.select-dropdown {
  font-size: 1rem;
}

header .right-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  z-index: 10;
  gap: 6px;
}

header .right-link a {
  display: flex;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

header .right-link a img {
  width: auto;
  height: 36px;
}

header .right-link a.NBline {
  display: flex;
  gap: 2px;
}

header .right-link a.NBline span {
  font-size: .81rem;
}

header .right-link a img:hover {
  animation: parent-tab-image 0.6s linear;
}

header .right-link a:first-child img {
  margin-left: 0;
}

header .right-link .line {
  width: 1px;
  height: 24px;
  background: #D8D8D8;
  margin: 0 4px;
}

/* 有下拉選單時需要用到的 */
header ul.menu>li>span {
  display: flex;
  cursor: pointer;
  height: 100%;
  align-items: center;
  transition: color 0.3s;
}

header ul.menu>li>span:hover {
  color: #c2172d;
}

header ul.menu>li>span.on {
  font-weight: bold;
  color: #c2172d;
}

header ul.menu>li>span:hover ol.sub {
  display: block;
}

header ul.menu>li>span>label {
  position: relative;
  display: block;
  cursor: pointer;
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
}

header ul.menu>li.active>span>label {
  font-weight: bold;
  color: #c2172d;
}

header ul.menu>li>span ol.sub {
  display: none;
  position: absolute;
  min-width: 124px;
  max-width: 124px;
  top: 80%;
  left: 50%;
  text-align: center;
  padding: 0px;
  font-size: 1rem;
  line-height: 1.4;
  background: #F8F8F8;
  border-top: 2px solid #00A0DF;
  transform: translateX(-50%);
}

header ul.menu>li>span ol.sub li {
  display: block;
}

header ul.menu>li>span ol.sub li>a {
  display: block;
  padding: 10px 12px;
  color: #484848;
  font-size: .93rem;
  font-weight: 500;
}

header ul.menu>li>span ol.sub li>a:hover {
  color: #fff;
  background: #c2172d;
}

header ul.menu>li>span input {
  display: none;
}

@media (max-width: 1460px) {
  header .content {
    padding: 0 2vw;
    gap: 10px;
  }
}

@media (max-width: 1280px) {
  header {
    height: 60px;
  }

  header .logo img {
    max-width: 140px;
  }

  header #menu {
    position: fixed;
    width: 100%;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    top: 60px;
    left: 0;
    right: 0;
    padding: 3.8vw;
    background: rgb(245, 245, 245, 1);
    border-top: 2px solid #000;
    -webkit-flex-direction: column-reverse;
    -ms-flex-direction: column-reverse;
    -moz-box-orient: vertical;
    -moz-box-direction: reverse;
    flex-direction: column-reverse;
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.3s, -webkit-transform 0.3s;
  }

  header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
  }

  header .logo {
    max-width: unset;
  }

  header ul.menu {
    -webkit-flex: none;
    -ms-flex: none;
    -moz-box-flex: 0;
    flex: none;
    font-size: 1.2rem !important;
    display: block;
    width: 100%;
  }

  header ul.menu>li {
    display: block;
    padding: 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
  }

  header ul.menu>li::after {
    display: none;
  }

  header ul.menu>li>a {
    display: block;
    margin: 10px 0;
    text-align: left;
    font-size: 1rem;
  }

  header ul.menu>li>span {
    display: block;
    margin: 6px 0;
  }

  header ul.menu>li:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  header ul.menu>li>span ol.sub {
    position: relative;
    padding: 0;
    background: none;
    font-size: 1rem;
    margin-top: 10px;
    flex-wrap: wrap;
    border-top: 0px solid;
  }

  header ul.menu>li>span:hover ol.sub {
    display: none;
  }

  header ul.menu>li>span ol.sub li {
    position: relative;
    flex: none;
    width: 100%;
  }

  header ul.menu>li>span ol.sub li>a {
    width: 100%;
    margin: 0 auto;
    padding: 10px 10px 10px 12px;
    white-space: normal;
    text-align: left;
  }

  header ul.menu>li>span ol.sub li:after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #868788;
    border-radius: 50%;
  }

  header ul.menu>li>span>label:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.5rem 0.4rem 0 0.4rem;
    border-color: #c2172d transparent transparent transparent;
    transform: translateY(-50%) rotate(0deg);
    transition: all 0.3s;
  }

  header ul.menu>li>span input:checked~ol.sub {
    display: flex !important;
    min-width: auto;
    max-width: unset;
  }

  header ul.menu>li>span input:checked~label:after {
    transform: translateY(-50%) rotate(180deg);
  }

  header #menu-ck~label {
    display: block;
  }

  header #menu-ck:checked~#menu {
    display: flex;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
  }

  header .right-link {
    justify-content: flex-end;
    gap: 4px;
  }

  header .right-link .line {
    display: none;
  }

  .select-dropdown {
    font-size: .8rem;
    margin-left: 10px;
  }

  header ul.menu>li>a:before {
    display: none;
  }
}

@media (max-width: 767px) {
  header #menu {
    top: 60px;
  }

  header ul.menu {
    font-size: 1rem !important;
  }

  header ul.menu>li>span ol.sub {
    font-size: 1.2rem;
  }

  .select-dropdown {
    font-size: .75rem;
    margin-left: 4px;
  }

  header .right-link a.NBline span {
    font-size: .65rem;
  }
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

ul.menu>li>span.tag {
  position: absolute;
  right: -8px;
  top: 8px;
  padding: 0px 6px;
  color: #fff;
  background-color: #cf0a2c;
  font-size: .65rem;
  box-sizing: border-box;
  height: auto;
  display: flex;
  align-items: center;
  border-radius: 12px;
  z-index: 10;
  line-height: 1.6;
}

footer ul.menu>li>span.tag {
  top: -16px;
  right: -10px;
}