@charset "UTF-8";

/* 公用樣式 */

/*input*/
input,
select,
textarea {
  outline: none;
  border: none;
}

.f_left {
  float: left;
}

.f_right {
  float: right;
}

.t_right {
  text-align: right;
}

.t_left {
  text-align: left;
}

.t_center {
  text-align: center;
  flex-grow: 0;
}

.clearfix {
  clear: both;
  white-space: nowrap;
}

.go-top {
  position: fixed;
  bottom: 2em;
  right: 2em;
  text-decoration: none;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  padding: 1em;
  display: none;
}

.go-top:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.wrapcontent {
  margin: 0 auto;
  /* padding: 80px 0 0 0; */
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.main_content {
  background-size: 100%;
  margin: 0 0 0 200px;
  width: 100vw;
  height: 100vh;
  display: block;
  /* min-height: calc(100vh - 140px); */
}

[type="checkbox"] {
  width: 1.3em;
  height: 1.3em;
}

main {
  padding: 0;
  min-height: calc(100vh - 198px);
  display: inline-block;
  width: 100%;
  margin-top: 65px;
}

/*  側邊選單 */
.nav-accordion {
  width: 25%;
  min-width: 280px;
  -moz-border-radius: 0px 0px 10px 10px;
  -webkit-border-radius: 0px 0px 10px 10px;
  min-height: calc(100vh - 198px);
  height: 100%;
  background: #F5F5F5;
  padding: 0px;
  margin: 0 auto;
  list-style-type: none;
}

.nav-accordion>li {
  border-bottom: 1px solid #f6f6f6;
  background: #E5E5E5;
}

.nav-accordion>li:last-child {
  border-bottom: 1px solid #f6f6f6;
}

.nav-heading {
  padding: 20px 20px 20px 30px;
  color: #5A687D;
  display: block;
  text-decoration: none;
  line-height: 22px;
  font-size: 22px;
  font-weight: normal;
}

.nav-heading:hover {
  color: #FF5653;
}

.nav-accordion .nav-submenu {
  list-style: none;
  padding: 0;
  display: none;
  font-size: 0.875em;
}

.nav-submenu {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #333;
  clear: both;
  list-style-type: none;
  background-color: #FFFFE1;
  border-top: 1px solid #ddd;
}

.nav-submenu:last-child {
  background: #F6F6F6;
}

.nav-submenu li {
  display: block;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 300;
  border-bottom: 1px solid #D9D9D9;
}

.nav-submenu li a {
  color: #333;
  text-decoration: none;
}

.nav-submenu li a:hover {
  color: #FF5653;
}

.nav-submenu li.active a {
  background: #FF5653;
  color: #fff;
}

.nav-submenu li.active {
  background: #FF5653;
  color: #fff;
  border-radius: 50px;
  display: block;
  padding: 20px 30px;
  margin: 5px 10px;
  border: none;
  border-bottom: 1px solid #D9D9D9;
}

/* 行動裝置下拉選單 */
.select_box {
  display: none;
}

/* 資料區樣式*/
.content {
  padding: 0;
  margin: 0;
  width: 100%;
}

/* ad */
source.ad {
  padding: 0;
  margin: 0;
  display: block;
  /* height: 230px; */
  width: 100%;
  background-color: #FF5653;
  justify-content: center;
}

picture img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: bottom;
}

ul.slides-point {
  display: flex;
  justify-content: center;
  margin: -30px auto 0 0;
}

ul.slides-point li {
  display: inline-block;
  list-style-type: none;
  width: 15px;
  height: 15px;
  background-color: #fff;
  text-indent: -9999px;
  border-radius: 10px;
  /* z-index: 999; */
  margin: 2px 8px;
  vertical-align: middle;
}

ul.slides-point li:hover,
ul.slides-point li:focus {
  width: 16px;
  height: 16px;
  background-color: #F1D717;
  margin: 2px 9px;
}

/* 資料區ad */
.book_content {
  margin: 50px 50px;
}

.tag {
  display: block;
  font-size: 1em;
}

.tag button {
  border-radius: 30px;
  background: #E5E5E5;
  display: inline-block;
  font-weight: 300;
  transition-duration: .4s;
  padding: 8px 25px;
  color: #5A687D;
}

.tag button:hover,
.tag button.active {
  border-radius: 30px;
  background: #FF5653;
  color: #fff;
  clear: both;
}

/*電子書list*/
.book_select {
  color: #4D4D4E;
  font-weight: 300;
  margin: 50px 0;
}

.book_item {
  margin: 20px 5px;
  width: 228px;
  display: inline-table;
}

.bookimg {
  background: url(../images/img_bg.png) repeat-x left bottom;
  padding: 0 0 15px 0;
  text-align: center;
}

.book_item img {
  width: 180px;
  height: 240px;
}

.book_select figcaption {
  margin: 20px auto;
}

.book_select figcaption h3 {
  font: 1.3em/120% sans-serif;
  margin: 10px auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 50px;
}

.book_select figcaption p {
  font-size: 1em;
  margin: 10px auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book_select figcaption p span {
  border: 1px solid #D9D9D9;
  border-radius: 30px;
  color: #898a8a;
  padding: 5px 10px;
  margin: 0 5px 0 0;
  display: inline-block;
  font-size: .8em;
  font-weight: 400;
}

/* infolist_detail頁面*/
.detaildesc_content {
  display: inline-table;
  font-weight: 300;
  text-align: left;
  width: 100%;
  background-color: #F9F9F9;
}

.detail_content {
  border-bottom: 1px #d3d3d3 dashed;
  display: flex;
  font-weight: 300;
  text-align: left;
  width: 100%;
  padding: 40px 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.detail_book_img {
  width: 30%;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
  float: left;
  margin: 0 40px 0 0;
}

.detail_book_img img {
  width: 100%;
}

.detail_book_desc {
  display: inline-block;
  width: 68%;
  /* max-width: 600px; */
  padding: 0;
  margin: 0 auto;

}

.detail_book_desc h3 {
  font: 500 3em/120% sans-serif;
  color: #254368;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 120px;
  margin-bottom: 20px;
}

.detail_book_desc span {
  display: block;
  margin: 10px auto;
  padding: 0;
  color: #254368;
  font-weight: 400;

}

.detail_book_desc span strong {
  font-weight: 400;
}

.detail_book_desc span a em {
  background: url(../images/icon_nav_03.svg) no-repeat left center;
  color: #2F2A67;
  background-size: 19%;
  float: right;
  display: inline-block;
  padding: 0 0 0 20px;
  margin: 5px auto;
}

.detail_book_desc span.active em,
.detail_book_desc span:hover em {
  background: url(../images/icon_favorite.svg) no-repeat left center;
  color: #FF5653;
  background-size: 20%;
  float: right;
  display: inline-block;
  padding: 0 0 0 20px;
  margin: 5px auto;
  cursor: pointer;
}


.detail_book_desc span em a {
  color: #2F2A67;
}

.detail_book_desc span em a:hover {
  color: #FF5653;
}

.detail_book_desc aside {
  display: block;
  height: 100%;
  /* min-height: 190px;
  max-height: 350px; */
  text-align: justify;
  color: #848484
}

.detail_book_desc aside p {
  display: block;
  margin: 0 0 10px 0;
}

.detail_book_desc hr {
  border-top: 1px #d3d3d3 dotted;
}

.detail_book_desc div {
  display: inline-block;
  margin: 10px auto;
  padding: 0;
  color: #8898A7;
}

.detail_book_desc div button {
  background-color: #2F2A67;
  font-size: 1em;
  border-radius: 50px;
  padding: 15px 20px;
  color: #fff;
  display: inline-block;
  cursor: pointer;
  margin: 5px 5px;
  transition-duration: .4s;
}

.detail_book_desc div button:hover {
  background-color: #FF5653;
  color: #fff;
}

.detail_book_desc div button.active {
  background-color: #FF5653;
  border-radius: 50px;
  padding: 15px 20px;
}

.detail_book_desc div button a:hover,
.detail_book_desc div button a {
  color: #fff;
}

.button_tag {
  padding: 40px 40px;
  background-color: #F9F9F9;
  background:
    linear-gradient(-45deg, #F1D717 25px, #F9F9F9 0)top left;
  border-top: 1px #d3d3d3 dotted;
}

.button_tag button {
  background: #f2e89fa5;
  font-size: 1em;
  padding: 8px 25px;
  color: #4D4D4D;
  border-radius: 30px;
  margin: 10px 5px;
  border: 2px #fff solid;
  transition-duration: 0.4s;
}

.button_tag button:hover {
  background: #fff;
  color: #FF5653;
  border: 2px #FF5653 solid;

}

.button_tag button.active {
  color: #4D4D4D;
  border: 1px #ECD078 dotted;
}

.detail_book_desc_pic {
  background-color: #fff;
  padding: 40px 40px 20px 40px
}

.detail_book_desc_pic img {
  margin: 0 auto 20px auto;
  width: 100%;
}

/* pop up 樣式 */
/* The Close Button */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding: 5% 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* 雙scroll*/
  overflow: auto;
  background-color: #0f1940d9;
}

.popupbox {
  background: #fefefe url(../images/popupbox.svg) no-repeat center bottom;
  background-size: contain;
  margin: auto;
  padding: 20px 20px 50px 20px;
  border-radius: 20px;
  width: 60%;
}

.popupbox h3 {
  color: #4D4D4D;
  font-size: 2.3em;
  font-weight: 500;
  margin: 0 auto;
  text-align: center;
  letter-spacing: .025em;
  background: none;
  padding: 10px 100px 0 100px;
}

/* Modal Content */
.popupbox h4 {
  font-weight: 400;
  padding: 10px 100px;
  font-size: 1.2em;
}

.popupbox img.pop_title {
  width: 300px;
  margin: 50px auto 0 auto;
  text-align: center;
  display: block;
}

.popupbox p {
  line-height: 1.6em;
  padding: 0 100px;
  text-align: justify;
}

.popupbox p b {
  color: #FF5653;
  font-size: 1.3em;
  font-weight: bold;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px 20px;
  border-radius: 20px;
  width: 80%;
}

.modal-content h3 {
  color: #0a65c2;
  font-size: 1.6em;
  font-weight: 300;
  margin: 0 auto 50px auto;
  text-align: center;
  letter-spacing: .025em;
  border-radius: 100px;
  background: #ffe400;
  padding: 10px 10px;
  width: 70%;
}

.modal-content h4 {
  font-weight: 400;
  margin: .5em auto;
  padding: 0 2em;
}

.modal-content p {
  line-height: 1.6em;
  padding: 0 2em;
  text-align: justify;
}

.modal-content p span {
  font-size: .8em;
  background: #EAEAEA;
  padding: 5px 10px;
  border-radius: .25em;
}

.modal-content p b {
  color: #FF5653;
}

.modal-content hr {
  border: solid 1px #ddd;
  margin: 10px auto;
}

/* Modal Content */
.popup-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  /* padding: 5% 0; */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* 雙scroll*/
  overflow: auto;
  background-color: rgba(0, 0, 1, 0.8);
}

.popup-content {
  margin: 0 auto;
  padding: 30px;
  text-align: center;
}

/* The Close Button */
.popup-content .close {
  color: #fff;
  /* float: right; */
  font-size: 40px;
  font-weight: 300;
  margin: 0 20% 20px 0;
  display: block;
  text-align: right;
}

.btn-box {
  display: block;
}

.btn {
  text-align: center;
  display: flow-root;
  margin: .8em auto 0 auto;
}

.btn span {
  background-color: #0a65c2;
  border-style: solid;
  border-width: 0px;
  cursor: pointer;
  font-weight: normal;
  line-height: normal;
  margin: 1em 1em;
  position: relative;
  text-decoration: none;
  text-align: center;
  transition: background-color 300ms ease-out;
  padding: 10px 30px;
  border-radius: 6px;
  display: inline-block;
  color: #fff;
}

.btn a:hover span,
.btn a:focus span {
  background-color: #FF5653;
}

.adpopbtn {
  text-align: center;
  display: block;
  margin: 1.8em auto;
  font-size: 1.2em;
}

.adpopbtn span {
  padding: 10px 30px;
  border-radius: 6px;
  display: inline-block;
  color: #fff;
  background-color: #ff6611;
  border-radius: 50px;
  margin: 10px 10px;

}

.btn span.b_left {
  display: table;

}

#Popup-wrapper {
  width: 100px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  background-clip: padding-box;
  text-align: center;
}

.button:hover {
  border-color: #999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.button:active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset;
}

.popup-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 200ms;
  visibility: hidden;
  opacity: 0;
}

.popup-overlay.light {
  background: rgba(255, 255, 255, 0.5);
}

.popup-overlay .cancel {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: default;
}

.popup-overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 120px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #666;
  width: 80%;
  box-shadow: 0 0 50px #0f1940(0, 0, 0, 0.5);
  position: relative;
  border-radius: 10px;
}

.popup.w50 {
  width: 60%;
}

.popup h1 {
  font-size: 1.8em;
  text-align: center;
  font-weight: 500;
  color: #0a65c2;

}

.light .popup {
  border-color: #aaa;
  box-shadow: 0 2px 10px #0f1940(0, 0, 0, 0.25);
}


.popup .close {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 20px;
  right: 20px;
  opacity: 0.8;
  transition: all 200ms;
  font-size: 40px;
  font-weight: bold;
  text-decoration: none;
  color: #0a65c2;
}

.popup .close:hover {
  opacity: 1;
}

.popup .content {
  /* max-height: 400px; */
  overflow: auto;
  padding: 40px 0;
}

.popup .content h2 {
  margin: 0 auto;
  text-align: left;
  font-size: 1.2em;
  text-align: center;
  background-color: #0a65c2;
  padding: 1em 0;
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.popup p {
  margin: 0 0 10px;
  text-align: center;
}

.popup p:last-child {
  margin: 0;
}



@media screen and (min-width:913px) and (max-width:1366px) {

  /* infolist_detail頁面*/
  .detail_book_desc {
    width: 65%;
  }

  .detail_book_desc aside {
    /* min-height: 150px;
    max-height: 170px; */
  }

}



@media screen and (min-width:320px) and (max-width:912px) {
  .wrapcontent {
    padding: 85px 0 25px 0;
    margin: 0 auto;
  }

  ul.nav-accordion {
    display: none;
  }

  /* 桌機版下拉選單 */
  .dropdown-menu {
    display: none;
  }

  /*行動裝置下拉選單 select 樣式*/
  .select_box {
    width: 90%;
    display: block;
    margin: 0 5% 2% 5%;
    clear: both;
  }

  .select_wrapper {
    position: inherit;
    display: inline-block;
    padding: 0 0;
    margin: 0 5px 0 0;
    overflow: hidden;
    width: 100%;
    background-color: #E5E5E5;
    border-radius: 4px;
    z-index: 10;

  }

  .select_wrapper.w_50 {
    width: 48.7%;
  }

  .select_wrapper:after {
    /* content: '\25bc';   */
    width: 15px;
    height: 15px;
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -7.5px;
    right: 5px;
    overflow: hidden;
    color: #fefefe;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
  }

  .select_select {
    appearance: none;
    position: relative;
    margin: 0;
    background-color: #E5E5E5;
    border: none;
    width: 100%;
    padding: 10px 10px;
    font-weight: 400;
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
    background-size: 8px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
    background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%), linear-gradient(to right, #ccc, #ccc);
  }

  .select_select:hover {
    color: #4D4D4E;
  }

  .tag button {
    margin: 5px auto;
  }

  .book_content {
    margin: 20px 20px 40px 20px;
  }

  .book_select {
    margin: 0 auto;
    display: inline-table;
    text-align: center;
  }

  .book_item {
    margin: 10px 5px;
    width: 150px;
    display: inline-table;
    text-align: left;

  }

  .book_item img {
    width: 90%;
    height: auto;

  }

  .book_select figcaption {
    margin: 20px auto 10px auto;
  }

  .book_select figcaption h3 {
    font-size: 1.2em;
    height: 45px;
  }

  .book_select figcaption p {
    font-size: .9em;
  }

  .book_select figcaption p span {
    font-size: .5em;
    margin: 5px 5px 0 0;
    padding: 1px 10px;
  }

  /* infolist_detail頁面*/

  .detail_content {
    display: block;
    padding: 40px 30px 30px 30px;
  }

  .detail_book_img {
    width: 100%;
    margin: 0 auto 40px auto;
  }

  .detail_book_desc {
    width: 100%;
    margin: 0 auto;
  }

  .detail_book_desc h3 {
    font: 500 2.2em/120% sans-serif;
    height: 80px;
  }

  .detail_book_desc aside {
    height: auto;
    min-height: inherit;
    max-height: inherit;
    margin: 0 auto 20px auto;
  }

  .detail_book_desc div {
    display: block;
  }

  .detail_book_desc div button {
    margin: 5px auto;
    width: 100%;
    max-width: 150px;
    font-size: .8em;
  }



  .detail_book_desc div strong,
  .detail_book_desc div em {
    font-size: .8em;
  }

  .button_tag {
    padding: 20px 30px;
  }

  .button_tag button {
    padding: 8px 10px;
    margin: 5px 5px;
    font-size: .8em;
  }

  .detail_book_desc div button,
  .detail_book_desc div button.active {
    padding: 15px 10px;
    font-size: .8em;
  }

  div.detail_book_desc span {
    height: 50px;
  }

  /* div.detail_book_desc span em {
    background: url(../images/icon_favorite.svg) no-repeat left center;
    color: #FF5653;
    float: none;
    display: block;
    padding: 0 0 0 30px;
    margin: 5px auto;
  } */

  .popup.w50 {
    width: 90%;
  }
}

@media screen and (min-width:400px) and (max-width:820px) {
  .bookimg{
    padding: 0 10px 15px 10px;
  }
  .book_item {
    width: 160px;
    padding: 10px 10px;
  }

  .book_item img {
    width: 100%;
  }


}

@media screen and (min-width:321px) and (max-width:429px) {
  .select_wrapper.w_50 {
    width: 47.75%;
  }
}

@media screen and (width:319px) {
  .select_wrapper.w_50 {
    width: 47.7%;
  }
}
