* {
  font-weight: 500;
  font-family: 'Noto Sans TC', sans-serif !important;
}

.fa,
.far,
.fas {
  font-family: Font Awesome\ 5 Free !important;
}

body {
  overflow-x: hidden;

  // &.menu-show {
  //   height: 100vh;
  //   overflow: hidden;
  // }
}

/* Bootstrap Start */

.form-control:focus,
.btn-check:focus+.btn,
.btn:focus {
  box-shadow: none !important;
}

.text-primary {
  color: #EE7800 !important;
}

.border-primary {
  border-color: #EE7800 !important;
}

.pagination {
  border-radius: 5px;
  overflow: hidden;

  a {
    color: #727679;
    transition: all .3s;

    &:hover {
      color: #fff;
      background-color: #EE7800;
    }
  }

  .page-link {
    padding: .75rem 1rem;
    border: none;

    &:focus {
      z-index: 3;
      color: #727679;
      background-color: #fff;
      box-shadow: none;
    }
  }
}

.list-pagination {
  .page-item.active .page-link {
    color: #fff;
    background-color: #EE7800;
    border-color: #EE7800;

    &:focus {
      box-shadow: none;
    }
  }

  .page-link.hidden {
    display: none;
  }
}

/* Bootstrap End */

/* Navbar Start */

#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  &.show {
    position: fixed !important;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    z-index: 2000;

    .navbar {
      padding-bottom: 0;
    }
  }

  .navbar {
    z-index: 100;
    background-color: white !important;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);

    @media (max-width: 991px) {
      // box-shadow: none;
    }

    .container-fluid {
      padding: 0 2.5rem;

      @media (max-width: 1400px) {
        padding: 0 1.5rem;
      }

      @media (max-width: 1200px) {
        padding: 0 1rem;
      }

      @media (max-width: 991px) {
        padding: 0;
      }
    }

    .navbar-nav {
      .nav-item {
        @media (max-width: 1400px) {
          margin: 0;
        }

        .nav-link {
          padding: 1.5rem 1.2rem;
          position: relative;
          font-size: 1.125rem;
          cursor: pointer;
          color: #34404b;
          border-bottom: 4px solid transparent;

          @media (max-width: 1400px) {
            padding: 1.5rem .8rem;
            font-size: 1rem;
          }

          @media (max-width: 1200px) {
            padding: 1.5rem .5rem;
            font-size: .875rem;
          }

          @media (max-width: 991px) {
            padding: 1rem 0;
            font-size: 1rem;
            border-bottom: none;
          }

          &:hover {
            border-bottom: 4px solid #ee7800;

            @media (max-width: 991px) {
              border-bottom: none;
            }
          }

          .expand i {
            color: #D3D3D3;
          }
        }
      }

      li {
        @media (max-width: 991px) {
          border-bottom: 1px solid #F4F4F4;
        }

        &:last-child {
          @media (max-width: 991px) {
            border-bottom: none;
          }
        }
      }
    }

    @media (min-width: 991px) {
      li.dropdown:hover>.dropdown-menu {
        display: block;
      }
    }

    .dropdown-level-width {
      min-width: 13.5rem;

      li {
        margin: 5px 0;
      }
    }

    .search-btn {
      border: none;
      background: transparent;

      img {
        margin-bottom: -3px;
      }
    }

    .hover-block {
      .nav-link {
        border-bottom: none !important;

        &:hover a,
        &:hover p {
          color: #ee7800;
        }
      }
    }

    .dropdown-sub {

      @media (max-width: 991px) {
        padding: 5px 0;
        padding-left: 45px;
      }

      &:first-child {
        @media (max-width: 991px) {
          border-top: 1px solid #F4F4F4;
        }
      }

      &:hover {
        .dropdown-menu {
          @media (min-width: 991px) {
            display: block;
          }
        }

        .submenu,
        &>:hover>a {
          color: #ee7800;
        }
      }

      p {
        font-size: 16px;
      }

      .submenu {
        color: #34404b;
      }

      .dropdown-menu {
        top: -9px !important;
        left: 213px;

        &>li:hover>a {
          color: #ee7800;
        }
      }
    }

    .dropdown-item {
      padding: .25rem 1.2rem;

      @media (max-width: 991px) {
        padding: .5rem;
      }

      &:hover {
        background-color: #fff;
      }
    }

    .dropdown-menu {
      @media (max-width: 991px) {
        border: none;
      }
    }

    .logo {
      width: 130px;

      @media (max-width: 1200px) {
        width: 115px;
      }

      @media (max-width: 991px) {
        width: 130px;
      }
    }

    .search-text {
      color: #ee751b;
    }

    .renovation-btn {
      display: block;
      color: #ee751b;
      background: #fff;
      border: 1px solid #ee751b;
      border-radius: 3px;
      padding: 10px 20px;
      margin-left: 50px;

      @media (max-width: 1200px) {
        padding: 10px 15px;
        margin-left: 20px;
        font-size: 0.875rem;
      }

      @media (max-width: 991px) {
        font-size: 1rem;
      }
    }
  }
}

.navbar-toggler {
  border-color: transparent !important;

  &:focus {
    box-shadow: none;
  }
}

.shadow-item {
  position: absolute;
  display: none;
  height: 3px;
  top: 53px;
  width: 100vw;
  right: 0;
  left: 0;
  margin: auto;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid #ccc;

  @media (max-width: 991px) {
    display: block;

  }
}

#app_user {
  .user-avatar {
    height: 30px;
    width: 30px;
    border-radius: 100px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-toggle::after {
    display: none !important;
  }
}

/* Navbar End */

/* Footer Start */

.footer {
  padding: 3rem;
  background-color: #f4f4f4;
  box-shadow: 0 0 20px rgba(0, 0, 0, .2);

  @media (max-width: 767px) {
    padding: 2rem;
  }

  @media (max-width: 575px) {
    padding: 2rem 1rem;
  }

  h2 {
    text-align: center;
    border-top: 1px solid #d1d2d3;
    margin-top: 50px;
    padding-top: 30px;
    color: #707070;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: .05rem;
    line-height: 1.5;
  }

  h4 {
    font-size: 1.375rem;
    font-weight: 500;
    color: #797979;
    text-align: center;
    margin-bottom: 50px;

    @media (max-width: 991px) {
      text-align: left;
      margin-bottom: 20px;
    }
  }

  .about-list,
  .follow-list,
  .more-list {
    @media (max-width: 991px) {
      display: flex;
      justify-content: center;
    }

    section {
      @media (max-width: 991px) {
        width: 300px;
      }
    }
  }

  .follow-list,
  .more-list {
    padding: 0;
    overflow: hidden;
    position: relative;

    @media (max-width: 991px) {
      margin-top: 30px;
      padding-top: 30px;
      border-top: 1px solid #989898;
    }
  }

  .about-list {
    a {
      color: #707070;
      transition: all .3s;

      &:hover {
        opacity: .8;
      }
    }

    img {
      width: 20px;
      height: 20px;
      margin-right: 7px;
    }

    ul {
      letter-spacing: .05em;

      li {
        margin: 5px 0;

        @media (max-width: 991px) {
          margin: 0;
          height: 30px;
        }

        span {
          color: #ea068c;
        }
      }
    }

    section {
      @media (max-width: 991px) {
        width: 300px;
      }
    }
  }

  .follow-list {
    .media {
      display: flex;

      a {
        display: block;
        margin: 0 3px;
        position: relative;
      }

      .media-item {
        &.after {
          position: absolute;
          top: 0;
          left: 0;
          opacity: 0;
        }
      }
    }

    img {
      width: 45px;
      height: 45px;
      margin-right: 5px;
      transition: all .3s;

      @media (max-width: 1200px) {
        width: 40px;
        height: 40px;
      }
    }
  }

  .more-list {
    a {
      display: inline-block;
      margin: 5px;
      padding-bottom: 5px;
      color: #797979;
      border-bottom: 1px solid;
      transition: all .3s;

      &:hover {
        opacity: .8;
      }
    }

    .subscriber-item {
      width: 100%;
      max-width: 300px;
      margin: auto;
      display: flex;
      flex-direction: column;
      border: 2px solid #34404b;

      &:hover {
        border: 2px solid #EE7800;

        button {
          background-color: #EE7800;
        }
      }

      input {
        padding: 10px;
        border: none;

        &:focus-visible {
          outline: none;
        }
      }

      ::placeholder {
        text-align: center;
      }

      button {
        padding: 15px;
        border: none;
        color: #fff;
        background-color: #34404b;
        transition: all .1s;
      }

      .spinner-border {
        display: none;

        &.show {
          display: block;
        }
      }

      &.input-error {
        border-color: #ff5252;

        button {
          background-color: #ff5252;
        }
      }
    }

    .link {
      max-width: 280px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;

      @media (max-width: 991px) {
        max-width: 310px;
        justify-content: start;
      }
    }
  }
}

/* Footer End */

/* searchModal Start */

.search-modal {
  letter-spacing: 1px;

  .modal-dialog {
    @media (max-width: 991px) {
      max-width: 100%;
    }
  }

  .modal-content {
    border: none;
    background: transparent;

    .input-group {
      height: 50px;

      .input-group-text {
        display: flex;
        align-items: center;
        padding: 0.5rem 2rem !important;
        margin-bottom: 0;
        color: #fff;
        text-align: center;
        white-space: nowrap;
        background-color: #ee7800;
        border: 2px solid #ee7800;
        line-height: 1.5;
        border-radius: 0.3rem;
        cursor: pointer;
      }
    }
  }

  .keyword-list {
    display: flex;
    align-items: center;
    padding: 0 20px;

    ul {
      margin: 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      color: #fff;

      li {
        margin: 5px 10px 5px 0;
        cursor: pointer;
        transition: all 0.3s;

        &:hover {
          opacity: 0.8;
        }
      }
    }

    span {
      color: #fff;
      margin-right: 10px;
    }
  }
}

.modal-backdrop.show {
  opacity: 0.7 !important;
}

/* searchModal End */

/* 頂部輪播 Start */

.top-carousel {
  padding: 1rem 0;
  background-color: rgb(202, 202, 202);
  transition-property: height;
  transition-duration: 300ms;

  .slick-next {
    right: 25px;
  }

  .slick-prev {
    left: 25px;
  }

  .slick-prev,
  .slick-next {
    position: absolute;
    top: 50%;
    z-index: 100;
    border: none;
    background: transparent;

    &::before {
      display: none;
    }
  }

  .bullet-list {
    position: absolute;
    bottom: 13px;
    width: 1276px;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.1);

    @media (max-width: 991px) {
      bottom: 0;
    }

    .bullet {
      position: relative;
      width: 100%;
      height: 3px;
      background-color: rgba(0, 0, 0, 0.1);
      flex: 1 1 auto;
      opacity: 1;

      &::after {
        content: "";
        background: #ee7800;
        position: absolute;
        width: 0;
        height: 100%;
        left: 0;
        top: 0;
        border-radius: 2px;
      }
    }
  }

  .bullet-active::after {
    width: 0;
    -webkit-animation-name: progress;
    animation-name: progress;
    -webkit-animation-duration: 4s;
    animation-duration: 4s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
  }


  @keyframes progress {
    0% {
      width: 0%;
    }

    25% {
      width: 25%;
    }

    50% {
      width: 50%;
    }

    75% {
      width: 75%;
    }

    100% {
      width: 100%;
    }
  }

  @-webkit-keyframes progress {
    0% {
      width: 0%;
    }

    25% {
      width: 25%;
    }

    50% {
      width: 50%;
    }

    75% {
      width: 75%;
    }

    100% {
      width: 100%;
    }
  }

  .close-btn {
    position: absolute;
    top: 0;
    right: 20px;
    width: 55px;
    height: 35px;
    background-color: hsla(0, 0%, 100%, 0.66);
    border-radius: 0 0 50px 50px;
    color: #888;
    border: none;
    outline: none;
    font-size: 11px;
    box-shadow: 0 0 10px rgba(32, 32, 32, 0.25);
    line-height: 12px;
    z-index: 3;

    p {
      margin-top: -3px;
    }
  }

  &.banner-close {
    height: 0;
    padding: 0;
    overflow: hidden;
    transition-property: height;
    transition-duration: 300ms;
  }

  .container-fluid {
    background-color: rgb(202, 202, 202);
  }

}

/* 頂部輪播 End */

/* 左下按紐 Start */

#btn-box {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 10;
  font-size: 32px;
  cursor: pointer;

  @media (max-width: 767px) {
    bottom: 75px;
  }

  // 滑動按鈕
  .calculator-btn,
  .shop-btn {
    p {
      display: none;
      width: 0px;
      margin-right: -5px;
      overflow: hidden;
      color: #ee751b;
      font-size: 16px;
      letter-spacing: 1px;
      transition: all .6s;
    }

    &.show {
      a {
        img {
          width: 22px;
          margin-left: 3px;
          position: relative;
          left: 8px;
        }

        p {
          display: inline-block;
          width: 100%;
          white-space: nowrap;
        }
      }
    }
  }

  .calculator-btn {
    &.show {
      width: 130px;
      margin-left: -85px;
    }
  }

  .shop-btn {
    &.show {
      width: 95px;
      margin-left: -50px;
    }
  }

  a {
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  button {
    width: 45px;
    height: 45px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 2px 3px #ccc;
    background: rgba(255, 255, 255, 0.9);

    &:hover {
      transition: all .5s;
      background: rgb(255, 255, 255);
    }

    &:hover img {
      filter: invert(50%) sepia(50%) saturate(4600%) hue-rotate(365deg) brightness(100%) contrast(100%);
    }

    img {
      width: 20px;
    }
  }

  .gotop-btn {
    img {
      display: block;
      margin: auto;
    }
  }
}

.mb-menu {
  display: flex;
  padding: 13px 0 8px;
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  transition: all .3s;
  background-color: #fff;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);

  a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    h4 {
      margin: 5px auto 0;
      color: #34404B;
      font-size: 16px;
    }

    img {
      width: 20px;
      height: 20px;
    }
  }
}

/* 左下按紐 End */