@charset "UTF-8";

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}

.topup {
  background: url(../images/top.svg)no-repeat center top;
  background-size: 100%;
  height: 40px;
  width: 40px;
  position: fixed;
  bottom: 50px;
  right: 0;
  cursor: pointer;
  z-index: 9999;

}

/* header */
nav {
  height: 80px;
  position: fixed;
  z-index: 19;
}

.el {
  background: #fff url(../images/logo_el.svg)no-repeat left 2px;
  background-size: 100% 100%;
  height: 45px;
  width: 340px;
  text-indent: -9999px;
  cursor: pointer;
  margin-top: 10px;
}

.sh {
  background: #fff url(../images/logo_sh.svg)no-repeat left 2px;
  background-size: 100% 100%;
  height: 45px;
  width: 340px;
  text-indent: -9999px;
  cursor: pointer;
  margin-top: 10px;
}

.jr {
  background: #fff url(../images/logo_jr.svg)no-repeat left 2px;
  background-size: 100% 100%;
  height: 45px;
  width: 340px;
  text-indent: -9999px;
  cursor: pointer;
  margin-top: 10px;
}

.el a,
.ht a,
.jr a {
  cursor: pointer;
  display: inline-block;
}

header {
  width: 100%;
  line-height: 60px;
  height: 70px;
  background-color: #fff;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
  min-width: 600px;
  position: sticky;
  z-index: 9;
  display: flex;
  align-items: center;
  top: 0;

}

/* tab選單 */
.navtab-item {
  font-size: 20px;
  display: flex;
  justify-content: flex-end;
  width: 90%;
  color: #254368;
}

.navtab-item li {
  list-style-type: none;
  align-items: center;
  height: 60px;
  /* display: flex; */
  font-size: 20px;
  cursor: pointer;
  font-weight: 400;
  padding: 0 25px 0 0;
  width: 150px;
}

.navtab-item li a {
  color: #254368;
  font-weight: 300;
  padding-left: 30px;
}

.navtab-item a:hover,
.navtab-item li.navtab_active {
  color: #FF5653;
  font-weight: 300;
}

.i_book,
.i_favorite,
.i_login {
  width: 20px;
  height: 20px;
}

.navtab-item .i_book {
  background: url(../images/icon_nav_02.svg) no-repeat left center;
  background-size: 20%;
}

.navtab-item .i_book:hover {
  background: url(../images/icon_nav_02_focus.svg) no-repeat left center;
  background-size: 20%;
}

.navtab-item li.navtab_active .i_book {
  background: url(../images/icon_nav_02_focus.svg) no-repeat left center;
  background-size: 20%;
  color: #FF5653;
}

.navtab-item .i_favorite {
  background: url(../images/icon_nav_03.svg) no-repeat left center;
  background-size: 20%;
}

.navtab-item .i_favorite:hover {
  background: url(../images/icon_nav_03_focus.svg) no-repeat left center;
  background-size: 20%;
}

.navtab-item li.navtab_active .i_favorite {
  background: url(../images/icon_nav_03_focus.svg) no-repeat left center;
  background-size: 20%;
  color: #FF5653;
}


/* 會員下拉選單 */
.user-profile {
  position: inherit;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  top: 19px;
  right: 10px;
  color: #fff;
}

.user-avatar-label {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 35px;
  height: 30px;
  border-radius: 50%;
  margin-right: 5px;
  background: url(../images/icon_login.svg) no-repeat top 0px center;
  background-size: 78%;
  display: inline-block;
}

.user-name {
  cursor: pointer;
  max-width: 100px;
  line-height: 18px;
  overflow: hidden;
  height: 33px;
  display: flex;
  align-items: center;
  color: #254368;
  font-size: 20px;
}

.user-arrow {
  border: solid #254368;
  border-width: 0px 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin: -8px 8px 0 8px;
  transform: rotate(45deg);
}

.user-avatar-label:hover span.user-avatar {
  width: 35px;
  height: 30px;
  border-radius: 50%;
  margin-right: 5px;
  background: url(../images/icon_nav_01_focus.svg) no-repeat top 0px center;
  background-size: 78%;
  display: inline-block;
}
.user-avatar-label:hover span.user-name{
  color: #FF5653;
}

.user-avatar-label:hover span.user-arrow {
  transform: rotate(45deg);
  border: solid #FF5653;
  border-width: 0px 3px 3px 0;
  margin: -8px 8px 0 8px;
}
.notification-icon {
  background: url(../images/icon_news.svg) no-repeat center center;
  background-size: 70%;
  width: 35px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-left: 5px;
  position: relative;

}

.user-profile .renew {
  background-color: #FF5653;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  line-height: 15px;
  padding: 2px 0;
  position: absolute;
  top: -2px;
  right: 1px;
}

.user-menu-toggle {
  display: none;
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}

.user-menu li {
  text-align: left;
  padding: 22px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  line-height: 25px;
}

.user-menu li a:hover {
  color: #0074D2;
}

.user-menu li:last-child {
  border: none;
}

.user-menu li:first-child {
  background: #F6F8FC;
  color: #00479B;
  justify-content: center;
  flex-direction: column;
  font-size: 1.4rem;
  padding: 20px 20px 15px 20px;
}

.user-menu li.name span {
  min-height: 55px;
  min-width: 30px;
  border-radius: 50px;
  margin-right: 5px;
  background: #A7D7FF url(../images/icon_login_w.svg) no-repeat center center;
  background-size: 75%;
  width: 55px;
  margin-bottom: 5px;
}

.user-menu li.user a,
.user-menu li.passw a,
.user-menu li.SignIn a,
.user-menu li.Signout a {
  color: #4D4D4D;
  padding-left: 30px;
  height: 20px;
  background-size: 14.5%;
}

.user-menu li.user a:hover,
.user-menu li.passw a:hover,
.user-menu li.SignIn a:hover,
.user-menu li.Signout a:hover {
  color: #0074D2;
  height: 20px;
  background-size: 14.5%;
}

.user-menu li.user a {
  background: url(../images/icon_user.svg) no-repeat center left 0;

}

.user-menu li.user a:hover {
  background: url(../images/icon_user_b.svg) no-repeat center left 0;
  color: #0074D2;
}

.user-menu li.user span {
  background-color: #FF5653;
  display: inline-block;
  border-radius: 100px;
  font-size: .7rem;
  color: #fff;
  padding: 0px 10px;
  margin: 0 10px;
}

.user-menu li.passw a {
  background: url(../images/icon_passw.svg) no-repeat top left 0;
}

.user-menu li.passw a:hover {
  background: url(../images/icon_passw_b.svg) no-repeat top left 0;
}

.user-menu li.SignIn a {
  background: url(../images/icon_Signout.svg) no-repeat center left;
}

.user-menu li.SignIn a:hover {
  background: url(../images/icon_Signout_b.svg) no-repeat center left;
}

.user-menu li.Signout a {
  background: url(../images/icon_Signout.svg) no-repeat center left;
}

.user-menu li.Signout a:hover {
  background: url(../images/icon_Signout_b.svg) no-repeat center left;
}

#user-menu-toggle:checked+.user-avatar-label+.user-menu {
  display: block;
}

/*footer*/
footer {
  color: #fff;
  padding: 10px 0;
  background-color: #1F4D89;
  text-align: left;
  width: 100%;
  display: block;
  font-size: 13px;
  /* position: absolute; */
  bottom: 0;
  z-index: 99999;
  clear: both;
  box-sizing: border-box;
  font-weight: 300;
}

.hle_logo {
  background: url(../images/hle_logo.svg)no-repeat center center;
  background-size: 100% 100%;
  margin: 0 20px 0 0;
  display: inline-block;
  /* height: 20px; */
  width: 130px;
  text-indent: -9999px;
  padding: 0;
  vertical-align: middle;
}

.navtab-item li.i_login div a {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.onclick-menu {
  position: relative;
  display: inline-block;
  /* color: red;
  padding: 10px 12.5px;
  border: 1px solid #ccc; */
  outline: none;
  /* height: 40px; */
}

.onclick-menu:before {
  content: "會員中心";
}

.onclick-menu:focus {
  /* clicking on label should toggle the menu */
  pointer-events: none;
}

.onclick-menu:focus .onclick-menu-content {
  /*  opacity is 1 in opened state (see below) */
  opacity: 1;
  visibility: visible;
  /* don't let pointer-events affect descendant elements */
  pointer-events: auto;

}

.onclick-menu .onclick-menu-content {
  position: absolute;
  z-index: 9999;
  /* use opacity to fake immediate toggle */
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.5s;
  list-style: none;
  padding: 0 0;
  clear: both;
  /* right: 50px;*/
  top: 50px;

  background-color: #004E8F;
  color: #fff;
  margin: 0 auto;
  text-align: center;
  border-radius: 5px;
  font-weight: 300;
  min-height: 60px;
  width: 100px;
}

.onclick-menu .onclick-menu-content li {
  clear: both;
  padding: 5px 20px;
  height: 25px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.onclick-menu .onclick-menu-content li:focus {
  padding: 5px 20px;
  margin: 0 auto;
}


footer article {
  width: 750px;
  margin: 0 auto;
}

footer ul {
  font-size: 1.4em;
  padding: 0;
  margin: 10px auto;
  color: #fff;
}

footer ul li {
  display: inline-block;
}

footer ul li a {
  color: #fff;
}

footer ul li a:hover {
  color: #01AEE1;
}

footer p {
  margin: 2px auto;
  padding: 0;
}

footer em {
  display: inline-block;
  color: #ffffffa9;
  font-style: normal;
  margin: 0 10px;
}

footer span.share_fb,
footer span.share_ig {
  width: 25px;
  height: 25px;
  display: inline-block;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 5px;
}

footer span.share_fb {
  background: url(../images/icon_fb.svg)no-repeat center center;
  background-size: 90%;
}

footer span.share_ig {
  background: url(../images/icon_ig.svg)no-repeat center center;
  background-size: 95%;

}

@media screen and (max-width:911px) {

  /* tab選單 */
  .navtab-item {
    width: 85%;
  }
}

@media screen and (max-width: 768px) {
  nav {
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
    height: 60px;
    margin: 0;
    width: 100%;
    position: fixed;
    z-index: 1;
  }

  .el {
    background: #fff url(../images/logo_el.svg)no-repeat left top;
    background-size: 100% 100%;
    height: 35px;
    width: 210px;
    text-indent: -9999px;
    margin: 12px 5px 5px 10px;
    display: inline-block;
  }

  header {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #FF5653;
    z-index: 10;
    height: 60px;
    top: calc(100vh - 60px);

  }

  /* 會員下拉 */
  .user-profile {
    top:10px;
  }
  .user-avatar, .user-avatar-label:hover span.user-avatar  {
    background: #ff5653 url(../images/icon_nav_04.svg) no-repeat center center;
    height: 40px;
    width: 40px;
    background-size: 70%;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
  }
  /* .user-avatar-label:hover span.user-avatar {
    width: 35px;
    height: 30px;
    border-radius: 50%;
    margin-right: 5px;
    background: url(../images/icon_nav_01_focus.svg) no-repeat top 0px center;
    background-size: 78%;
    display: inline-block;
  } */
  .notification-icon {
    width: 40px;
    height: 40px;
  }

  .user-name,
  .user-arrow {
    display: none;
  }

  .navtab-item {
    width: 100%;
  }

  .navtab-item li {
    width: 50%;
    border-bottom: 8px dashed #254368;
    justify-content: center;
  }

  .navtab-item li a {
    color: #fff;
  }

  .navtab-item li.navtab_active {
    border-bottom: 8px solid #FF5653;
    background-color: #004E8F;
    color: #fff;
    border-top: 0;
  }

  .navtab-item li.navtab_active a:any-link {
    color: #fff;
  }

  .navtab-item li:hover {
    background: #004E8E;
    border-bottom: 8px solid #254368;
    color: #fff;
  }


  @media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) and (display:flow-root) {
      .h-user-img {
        display: block;
        height: 40px;
        width: 40px;
        border-radius: 50px;
        justify-content: center;
        margin: 10px auto;
        right: 3.5%;
        border-radius: 50px;
        background: #FF5653 url(../images/icon_nav_04.svg) no-repeat center center;
        background-size: 70%;
        cursor: pointer;
        position: absolute;
        z-index: 999999;

      }

      .h-user-img:focus {
        background: #FF5653 url(../images/icon_nav_04.svg) no-repeat center center;
        height: 40px;
        width: 40px;
        background-size: 70%;
        justify-content: center;
        align-items: center;
      }

    }
  }

  .h-user-img:hover .h-user-hover,
  .h-user-img:active .h-user-hover {
    display: block;
  }

  .h-user-hover {
    display: none;
    background: #1F4D89;
    border-radius: 3px;
    padding: 6px 5px;
    font-size: .8em;
    top: 50px;
    position: fixed;
    width: 70px;
    min-width: 50px;
    color: #fff;
    text-align: center;
    right: 2%;
  }

  .h-user-hover em {
    display: block;
  }

  .navtab-item {
    width: 100%;
    display: block;
  }

  .navtab-item li {
    float: left;
    width: 50%;
    text-align: center;
    padding: 0;
    background: #E5E5E5;

  }

  .navtab-item li a {
    color: #fff;
  }

  .navtab-item li.navtab_active {
    background: #FF5653;
    color: #fff;
  }

  .navtab-item li:hover {
    color: #fff;
  }

  .navtab-item li.li_none {
    display: none;
  }

  .navtab-item .i_book,
  .navtab-item .i_book:hover,
  .navtab-item .i_book:focus {
    background: url(../images/icon_nav_02.svg) no-repeat left center;
    background-size: 20%;
    color: #5A687D;
  }

  .navtab-item .i_book.navtab_active {
    background: #FF5653 url(../images/icon_nav_02_w.svg) no-repeat left center;
    color: #fff;
  }

  .navtab-item .i_favorite,
  .navtab-item .i_favorite:hover,
  .navtab-item .i_favorite:focus {
    background: url(../images/icon_nav_03.svg) no-repeat left center;
    color: #5A687D;
    background-size: 20%;
  }

  .navtab-item .navtab_active a.i_favorite {
    background: url(../images/icon_nav_03_w.svg) no-repeat left center;
    background-size: 20%;
    color: #fff;
  }

  .navtab-item .navtab_active a.i_book {
    background: url(../images/icon_nav_02_w.svg) no-repeat left center;
    background-size: 20%;
    color: #fff;
  }

  /*footer*/
  .hle_logo {
    display: block;
    text-align: center;
    width: auto;
    margin: 0 0 10px 0;
  }

  footer {
    padding: 10px 20px 20px 20px;
    font-size: 12px;
    position: static;
    display: none;
    margin: -10px 0 0 0;
  }

  footer article {
    width: 100%;
  }

  footer ul {
    font-size: 1.2em;
  }

  footer em {
    margin: 0 5px;
  }
}

@media screen and (width:480px) {
  .navtab-item li {
    width: 40%;
  }
}

@media screen and (min-width:430px) and (max-width:460px) {
  .navtab-item {
    width: 100%;
  }

  .navtab-item li {
    width: 39%;
  }

  .navtab-item li.i_book,
  .navtab-item li.i_book:hover,
  .navtab-item li.i_book:focus {
    background: url(../images/icon_nav_02_w.svg) no-repeat left center;
    background-size: 20%;
    color: #fff;
  }

  .navtab-item li.i_book.navtab_active {
    background: #E5E5E5 url(../images/icon_nav_02_w.svg) no-repeat left center;
    color: #fff;
  }

  .navtab-item .i_favorite,
  .navtab-item .i_favorite:hover,
  .navtab-item .i_favorite:focus {
    background: url(../images/icon_nav_03.svg) no-repeat left center;
    color: #5A687D;
    background-size: 20%;
  }

  .navtab-item li.i_favorite.navtab_active {
    background: #E5E5E5 url(../images/icon_nav_03.svg) no-repeat left center;
    color: #5A687D;
    background-size: 20%;
    padding: 0;
    margin: 0;
  }


}

@media screen and (min-width:394px) and (max-width:430px) {

  .navtab-item li {
    width: 36%;
    background-color: #E5E5E5;
  }
}

@media screen and (min-width:376px) and (max-width:393px) {
  .navtab-item li {
    width: 33%;
  }
}

@media screen and (width:375px) {
  .navtab-item li {
    width: 32%;
  }
}
