@charset "utf-8";
/*
 * CSS Document
 * ==========================================================================
 * 版權所有 2020 鉅潞科技網頁設計公司，並保留所有權利。
 * 網站地址: http://www.grnet.com.tw
 * ==========================================================================
 * $Author: Pam $
 * $Date: 2020-02-20 $
*/

@font-face { font-family: 'Oswald-Regular'; src: url("../fonts/Oswald-Regular.woff2") format("woff2"), url("../fonts/Oswald-Regular.woff") format("woff"); font-weight: normal; font-style: normal; }

/* Global Style */
html { font-size: 16px; }

body { width: 100%; color: #222; font-size: 1rem; line-height: 1.7; font-family: 'Oswald-Regular', 'Microsoft JhengHei', sans-serif; overflow-x: hidden; -webkit-text-size-adjust: none; -webkit-font-smoothing: antialiased; -ms-overflow-style: scrollbar; }

html, body { margin: 0; }

a, a:visited, a:hover, a:focus, a:active { text-decoration: none; outline: none; }

*:focus, *:active { outline: 0; }

h1, h2, h3, h4, h5, h6 { font-weight: normal; line-height: 1.7; }

label { font-weight: inherit; }

input, button, textarea, select, optgroup, option { font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit; outline: 0; }

textarea { resize: vertical; }

ol.reset, ul.reset { margin: 0; padding: 0; list-style: none; }

input, button, textarea, select { font-size: 100%; }

code, kbd, samp, tt { font-size: 100%; }

*, *:after, *::before { -webkit-box-sizing: border-box; box-sizing: border-box; }


/*header*/
#header {
  width: 100%;
  height: 80px;
}

#header .logo a {
  position: relative;
  display: block;
  width: 170px;
  height: 40px;
  margin: 0 auto;
}

#header .logo a svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.g-wrap#login {
  width: 100%;
  height: 100vh;
  background: url(../images/main_bg.jpg) no-repeat;
  background-size: cover;
  padding: 80px 0 150px;
}

.main-cont {
  width: 500px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(255,255,255,.3);
}

.main-cont.search {
  width: 800px;
}

.main-cont.search .btn-wrap.logout {
  float: right;
  display: block;
  width: 77px;
}

.main-cont .title {
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
  margin-bottom: 15px;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
}

.form-box {
  padding-bottom: 20px;
}

.main-cont.search .form-box {
  position: relative;
  padding-bottom: 0;
}

.main-cont.search .form-box:first-child:before {
  pointer-events: none;
  content: "—— OR ——";
  position: absolute;
  top: 57px;
  left: 50%;
  margin-left: -100px;
  width: 200px;
  color: #fff;
  text-align: center;
}

.input-box {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  width: 100%;
  height: 47px;
  padding: 0 10px;
  color: #000;
}

.input-box {
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  -webkit-transition: background 0.25s;
  -o-transition: background 0.25s;
  transition: background 0.25s;
}

.input-box:focus {
  background-color: white;
}

.input-box.input {
  margin-bottom: 15px;
}

.input-box.input:first-child {
  margin-bottom: 50px;
}

.main-cont.search .btn-wrap {
  text-align: center;
}

.btn-wrap .btn {
  width: 100%;
  height: 47px;
  color: #fff;
  font-size: 1rem;
  border: 1px solid #3c86de;
  border-radius: 5px;
  background-color: #3c86de;
  cursor: pointer;
}

.btn-wrap .btn.gray {
  line-height: 47px;
  border: 1px solid #333;
  background-color: #333;
}

.main-cont.search .btn-wrap .btn {
  width: auto;
  padding: 0 14px;
}

.modal-popup {
  position: relative;
  width: 500px;
  margin: 0 auto;
  font-size: 1rem;
}

.modal-popup .title {
  position: relative;
  padding: 15px 30px;
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background: #07163a;
  background: -o-linear-gradient(315deg, #07163a 0%, #0b3d6f 41%, #0a3b6d 59%, #0a3b6d 100%);
  background: linear-gradient(135deg, #07163a 0%, #0b3d6f 41%, #0a3b6d 59%, #0a3b6d 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e60013', endColorstr='#f36049',GradientType=1 );
}

.modal-popup .text {
  text-align: center;
  padding: 25px;
  color: #222;
  background: #fff;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.modal-popup .text .red,
.modal-popup .text .green {
  width: 100%;
  height: 100px;
  background: #ff3f48;
  border-radius: 5px;
}

.modal-popup .text .green {
  background: #92d050;
}

.modal-popup .btn {
  display: block;
  width: 130px;
  border-radius: 50px;
  padding: 10px 0;
  margin: 20px auto 5px;
  font-size: 0.9375rem;
  color: #444;
  cursor: pointer;
  text-align: center;
  border: 1px solid #ddd;
}

.modal-popup .btn.cancel {
  background: #eee;
}

.text {
  text-align: center;
  padding: 25px;
  color: #222;
  background: #fff;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  font-size: 1rem;
}

.text .item {
  display: inline-block;
  width: calc(100% / 3 - 4px);
  margin-bottom: 35px;
}
.text .red,
.text .green {
  display: inline-block;
  width: 50px;
  height: 30px;
  background: #ff3f48;
  border-radius: 5px;
  margin-right: 5px;
  vertical-align: top;
}
.text .green {
  background: #92d050;
}
.success .green {
  width: 100%;
  height: 50px;
}
.text span {
  color: #000;
}

/* ==== 追加 2024.08.05 ==== */
.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
}
.bg {
  background: url(../images/main_bg.jpg) fixed no-repeat 0 0;
  background-size: cover;
}

#product {
  font-family: Arial, Helvetica, sans-serif, 'Microsoft JhengHei';
  background: url(../images/main_bg.jpg) no-repeat;
  background-size: cover;
}
#product #header {
  display: none;
}
#product .main-cont {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: transparent;
}

.aside-nav {
  flex: 0 0 260px;
  padding: max(2vw, 30px) 25px max(2vw, 20px) 0;
  max-width: 260px;
  height: 100vh;
  color: rgba(255, 255, 255, 0.7);
}
.aside-nav .cate-btn {
  display: none;
}
.aside-nav__title {
  margin-bottom: max(1.5vw, 20px);
  padding: 15px 0 10px 25px;
  font-size: 15px;
  color: #fff;
  font-weight: bold;
  border-bottom: rgba(255, 255, 255, 0.35) solid 1px;
}
.aside-nav__link {
  max-height: calc(100vh - 18vh);
  overflow-y: auto;
  overflow-x: hidden;
}
.aside-nav__link li {
  position: relative;
  padding: 8px 0 4px 25px;
  line-height: 1.4;
  border-radius: 0 100px 100px 0;
}
.aside-nav__link li:not(:last-child) {
  margin-bottom: 4px;
}
.aside-nav__link li::before {
  display: none;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background-color: #fff;
}
.aside-nav__link li a {
  display: block;
  width: 100%;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}
.aside-nav__link li a:hover {
  color: #fff;
}
.aside-nav__link li.current {
  background-color: rgba(255,255,255,.25);
}
.aside-nav__link li.current::before {
  display: block;
}
.aside-nav__link li.current a {
  color: #fff;
}

.page-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.page-wrap__box {
  position: relative;
  z-index: 2;
  padding: max(2vw, 30px) max(1.5vw, 15px);
  min-height: 100vh;
  border-radius: 50px 0 0 50px;
  background-color: #f5f5f5;
  /* box-shadow: 0 0 20px rgba(0,0,0,.25); */
  overflow: hidden;
}

.page-wrap__box .keywords .form-box {
  position: relative;
  max-width: 350px;
}
.page-wrap__box .keywords .input-box {
  padding: 0 50px 0 15px;
  font-size: 15px;
  border: #ddd solid 1px;
  border-radius: 100px;
  background-color: #fff;
}
.page-wrap__box .keywords .btn-search {
  display: block;
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 0;
  width: 11.143%;
  max-width: 39px;
  outline: none;
  border: none;
  border-radius: 100%;
  background-color: #333;
}
.page-wrap__box .keywords .btn-search:hover {
  background-color: #3c86de;
}
.page-wrap__box .keywords .btn-search::before {
  display: block;
  content: "";
  padding-bottom: 100%;
  width: 100%;
}
.page-wrap__box .keywords .btn-search i {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 51.283%;
  max-width: 20px;
  transform: translate(-50%, -50%);
  background: url(../images/icon_search.svg) no-repeat 0 0;
  background-size: cover;
}
.page-wrap__box .keywords .btn-search i::before {
  display: block;
  content: "";
  padding-bottom: 100%;
  width: 100%;
}

.product-list__scroll {
  padding: 15px 15px 25px;
  max-height: calc(100vh - 18vh);
  border-radius: 10px;
  background-color: #fff;
  overflow-y: auto;
  overflow-x: auto;
  box-shadow: 0 0 8px rgba(0,0,0,.08);
}
.product-list__title {
  margin-bottom: 15px;
  font-size: 14px;
  color: #000;
  font-weight: bold;
}
.product-list {
  width: 100%;
  text-align: left;
}
.product-list th,
.product-list td {
  padding: 10px 15px;
  white-space: nowrap;
}
.product-list thead {
  color: #fff;
  background-color: #694ca0;
}
.product-list thead th:not(:last-child) {
  border-right: rgba(255, 255, 255, 0.35) solid 1px;
}
.product-list tbody td {
  line-height: 1.4;
  border-right: #ddd solid 1px;
  border-bottom: #ddd solid 1px;
}
.product-list tbody td:nth-child(1) {
  border-left: #ddd solid 1px;
}

.product-list tbody tr:hover {
  background-color: #f8f8f8;
}

.product-list tbody a {
  color: #694ca0
}
.product-list tbody a:hover {
  text-decoration: underline;
}

#product .product-list thead th:nth-child(1),
#product .product-list tbody td:nth-child(1) {
  max-width: 80px;
  min-width: 60px;
  text-align: center;
}
#product .product-list thead th:nth-child(2),
#product .product-list tbody td:nth-child(2) {
  max-width: 160px;
  min-width: 140px;
}
#product .product-list thead th:nth-child(3),
#product .product-list tbody td:nth-child(3) {
  max-width: 160px;
  min-width: 140px;
}
#product .product-list thead th:nth-child(4),
#product .product-list tbody td:nth-child(4) {
  max-width: calc(100% - 400px);
  min-width: 300px;
  white-space: normal;
}

/* 卷軸 */
.scroll-wrap::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.scroll-wrap::-webkit-scrollbar-track {
  margin: 0;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.15);
  -webkit-box-shadow: none;
}
.scroll-wrap::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.35);
  -webkit-box-shadow: none;
}
.scroll-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
}

/* 彈出視窗 */
.popup-wrap {
  position: relative;
  margin: 0 auto;
  padding: max(2.5vw, 30px) max(2.5vw, 15px);
  max-width: 1240px;
  font-family: Arial, Helvetica, sans-serif, 'Microsoft JhengHei';
  background-color: #fff;
  border-radius: 10px;
}
.popup-wrap .title {
  color: #000;
  font-weight: bold;
}
.popup-wrap .product-list__scroll {
  padding: 15px 0;
  border-radius: 0;
  box-shadow: none;
}
.popup-wrap .product-list th,
.popup-wrap .product-list td {
  text-align: left !important;
}
.popup-wrap .product-list tbody td {
  max-width: 150px;
  min-width: 130px;
}
.popup-wrap .product-list thead th:nth-child(3),
.popup-wrap .product-list tbody td:nth-child(3) {
  max-width: 240px;
  min-width: 220px;
  white-space: normal;
}

@media (min-width: 992px) {
  .aside-nav__title,
  .aside-nav__link {
    display: block !important;
  }
}

@media (max-width: 1365px) {
  .aside-nav__link {
    max-height: calc(100vh - 16vh);
  }
  .page-wrap__box {
    border-radius: 30px 0 0 30px;
  }
  .product-list__scroll {
    max-height: calc(100vh - 16vh);
  }
}

@media (max-width: 1079px) {
  .aside-nav {
    flex: 0 0 220px;
    max-width: 220px;
  }
}

@media (max-width: 991px) {
  .aside-nav {
    flex: 0 0 100%;
    padding: 20px 25px 10px;
    max-width: 100%;
    height: auto;
  }
  .aside-nav__title {
    display: none;
  }
  .aside-nav .cate-btn {
    display: block;
    position: relative;
    margin-bottom: 10px;
    padding: 12px 15px 10px;
    width: 100%;
    font-size: 16px;
    color: #fff;
    line-height: 1.4;
    cursor: pointer;
    border-bottom: rgba(255, 255, 255, 0.5) solid 1px;
  }
  .aside-nav .cate-btn span {
    display: block;
  }
  .aside-nav .cate-btn .icon {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    margin-top: -6px;
    width: 12px;
    height: 12px;
    text-align: center;
  }
  .aside-nav .cate-btn .icon::before, .aside-nav .cate-btn .icon::after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    -webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
  }
  .aside-nav .cate-btn .icon::after {
    -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
            transform: rotate(90deg);
  }
  .aside-nav .cate-btn.is-open .icon::before {
    opacity: 0;
  }
  .aside-nav .cate-btn.is-open .icon::after {
    -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
            transform: rotate(0);
  }

  .aside-nav__link {
    display: none;
  }
  .aside-nav__link li {
    border-radius: 0;
  }
  .aside-nav__link li a {
    font-size: 16px;
  }

  .page-wrap {
    flex: 0 0 100%;
    min-height: calc(100vh - 6vh);
  }
  .page-wrap__box {
    min-height: calc(100vh - 6vh);
    border-radius: 20px 20px 0 0;
  }
  .page-wrap__box .keywords .form-box {
    max-width: 100%;
  }
  /* .product-list__scroll {
    padding: 0;
    max-height: none;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
  }
  .product-list__title {
    margin-bottom: 10px;
  } */
  .product-list__scroll {
    max-height: none;
  }

  /* #product .product-list thead {
    display: none;
  }
  #product .product-list tbody tr, #product .product-list tbody th, #product .product-list tbody td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
  #product .product-list tbody tr {
    border: #ddd solid 1px;
    border-radius: 3px;
    background-color: #fff;
    overflow: hidden;
  }
  #product .product-list tbody tr:not(:last-child) {
    margin-bottom: 10px;
  }
  #product .product-list tbody td {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    text-align: left !important;
    border: none !important;
  }
  #product .product-list tbody td:not(:last-child) {
    border-bottom: #ddd solid 1px !important;
  }
  #product .product-list tbody td::before {
    display: block;
    content: attr(data-title);
    padding: 6px 10px;
    width: 55px;
    font-size: 15px;
    color: #fff;
    font-weight: bold;
    background-color: #694ca0;
  }
  #product .product-list tbody td > div {
    flex: 1;
    position: relative;
    padding: 6px 10px;
  } */

  .popup-wrap {
    margin: 0 10px;
    max-width: calc(100% - 20px);
  }
}