@import "./common.scss";
// 會員操作框左Pd
$member-action-padding-lr-pc: 80px;
$member-action-padding-lr-pad: 80px;
$member-action-padding-lr-xs-pad: 60px;
$member-action-padding-lr-phone: 30px;

// 會員 操作框
.member_action_box {
  position: relative;
  display: none;
  z-index: 999;
  .member_action {
    overflow-y: auto;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    // vision
    width: 100%;
  .member_action_shadow {
    background-color: rgba(0, 0, 0, 0.7);
    flex-grow: 1.8;
    height: inherit;
    min-height: 100%;
    @include pad {
      flex-grow: 1.5;
    }
    @include xs_pad {
      flex-grow: 1;
    }
    @include phone {
      display: none;
    }
  }
  .member_action_container {
    overflow-y: auto;
    background-color: white;
    min-height: 100%;
    height: inherit;
    flex-grow: 0.3;

    > .member_action_header {
      display: flex;
      height: 72px;
      line-height: 72px;
      font-size: 26px;
      border: 1px solid #EBEBEB;
      > .title {
        font-weight: bold;
        flex-grow: 0.9;
        padding-left: $member-action-padding-lr-pc;
        @include xs_pad {
          padding-left: $member-action-padding-lr-xs-pad;
        }
        @include phone {
          padding-left: $member-action-padding-lr-phone;
        }
      }
      > .close {
        text-align: center;
        flex-grow: 0.1;
        @include xs_pad {
          flex-grow: 0.15;
        }
        @include phone {
          flex-grow: 0.3;
        }
        > button {

          width: 100%;
          height: 70px;
          border: 1px solid #EBEBEB;
        }

      }
    }
    > .member_action_content {
      padding-left: $member-action-padding-lr-pc;
      @include xs_pad {
        padding-left: $member-action-padding-lr-xs-pad;
      }
      @include phone {
        padding-left: $member-action-padding-lr-phone;
      }
      padding-right: $member-action-padding-lr-pc;
      @include xs_pad {
        padding-right: $member-action-padding-lr-xs-pad;
      }
      @include phone {
        padding-right: $member-action-padding-lr-phone;
      }
      padding-top: 30px;
      padding-bottom: 30px;
      overflow-y: auto;
      > .login_container, .register_container {
        border-bottom: 1px solid #EBEBEB;
        > .register {
          padding-top: 30px;
        }
        > .login, .register {

          > .login_title, .register_title {
            font-size: 20px;
            font-weight: bold;

          }
          > .login_content, .register_content {
            padding-top: 20px;
            padding-bottom: 20px;

            > .register_btn {
                display: block;
                background-color: black;
                width: 100%;
                height: 42px;
                line-height: 42px;
                font-size: 14px;
                text-align: center;
                color: white;
                border: none;
                text-decoration: none;
                margin-top: 20px;
            }
            > .register_btn:hover {
              transition: all 0.6s;
              background-color: #EBEBEB;
              color: black;
            }

            > .login_form {
              label {
                display: block;
                font-size: 14px;
                color: #5c636a;
                margin-top: 18px;
                margin-bottom: 5px;

              }
              input {
                width: 100%;
                height: 40px;
                font-size: 18px;
                padding: 12px;
                border: 1px solid silver;
              }

              input:hover {
                border-color: #1e2125;
              }
              input:focus, input:active {
                border-color: #1e2125;
              }
              a:link, a:hover, a:visited, a {
                display: inline-block;
                color: #4f5050;
                font-size: 14px;
                margin-top: 3px;
              }
              > .submit {
                background-color: black;
                width: 100%;
                height: 42px;
                font-size: 14px;
                text-align: center;
                color: white;
                border: none;
                margin-top: 20px;
              }
              > .submit:hover {
                transition: all 0.6s;
                background-color: #EBEBEB;
                color: black;
              }
            }

          }
        }

      }

    }
  }

}
}

// PC 頭部導航
.header {
  position: relative;
  z-index: 998;
  width: 100%;
  height: auto;
  @include xs_pad {
    display: none;
  }
  // 頭部工具欄
  > .nav-tool {
    > .logo {
      display: inline-block;
      height: 72px;
      padding-left: 12px;
      > img {
        width: inherit;
        height: inherit;
      }
    }
    border-bottom: 1px solid #EBEBEB;
    > .nav-tool-item {
      float: right;
      margin: 0;
      height: 48px;
      padding-left: 64px;
      padding-right: 64px;
      display: flex;
      @include pad {
        padding-right: 32px;
      }
      


      > li {
        list-style: none;
        width: 48px;
        height: 48px;
        line-height: 48px;
        text-align: center;
      }
      > li:hover {
        transition: 0.5s;
        background-color: #00428A;
        color: white;
      }
    }
  }
  > .nav {
    position: relative;
    border-bottom: 1px solid #EAE8E4;
    > .logo {
      height: 72px;
      > img {
        width: inherit;
        height: inherit;
      }
    }
    > .nav-item {
      > ul {
        display: flex;
        margin: 0;
        padding: 0;
        > li {
          user-select: none;
          cursor: pointer;
          font-size: 14px;
          font-weight: bold;
          padding-left: 18px;
          padding-right: 18px;
          height: 72px;
          line-height: 72px;
          list-style: none;

        }
        > li.active {
          background-color: #00428A;
          color: white;
        }
        > li:hover {
          transition: 0.5s;
          background-color: #00528A;
          color: white;
        }
      }
    }
    .show-box {
      position: absolute;
      top: 73px;
      width: 100%;
      background-color: white;
      > .show-box-close {
        display: none;
        position: absolute;
        right: 0;
        top: 0;
        height: 50px;
        width: 50px;
        border: none;
        font-size: 22px;
      }
      > .show-items {
        display: none;
        min-height: 100%;
        overflow-y: auto;
        height: calc(100vh - 122px);
        height: -moz-calc(100vh - 122px);
        height: -webkit-calc(100vh - 122px);
        > .item-container {
          width: 100%;
          min-height: 100%;
          display: flex;
          > div {
            flex-grow: 1;
            // 暫時壓的
            width: 33%;
            height: inherit;
          }
          > .item-menu, .item-sec-menu {

            padding-top: 32px;
            padding-bottom: 32px;
            padding-left: 3%;
            padding-right: 3%;
          }

          > .item-menu {
            > ul {
              > li {
                height: 35px;
                font-size: 14px;
                line-height: 35px;
                list-style: none;
                > span {
                  cursor: pointer;
                  height: 29px;
                  display: inline-block;
                }
                // 滑過
                > span:hover {
                  padding-bottom: 3px;
                  color: #463E3E;
                  border-bottom: 1px solid #463E3E;
                  transition: all 0.2s;
                }
                // 點中
                > span.active {
                  padding-bottom: 3px;
                  color: #463E3E;
                  border-bottom: 1px solid #463E3E;
                  transition: all 0.2s;
                }
              }

            }
          }
          //  2級蔡
          > .item-sec-menu {
            background-color: #F6F5F3;
            > ul {
              display: none;

              > li {
                height: 35px;
                font-size: 14px;
                line-height: 35px;
                list-style: none;
                > a {
                  height: 29px;
                  display: inline-block;
                }
                > a:link, a:visited, a.active {
                  color: #463E3E;
                  text-decoration: none;
                }
                > a:hover {
                  padding-bottom: 3px;
                  color: #463E3E;
                  border-bottom: 1px solid #463E3E;
                  transition: all 0.2s;
                }
              }

            }
            > ul.active {
              display: block;
            }
          }
          > .item-ad  {
            border-color: #EAE8E4;
            background-image: url("");
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
          }
          > .item-ad:hover {
            border: 5px solid #EAE8E4;
            border-left: 8px solid #EAE8E4;
            border-right: 8px solid #EAE8E4;
            transition: all 0.4s;
          }
        }
      }
    }

  }
}

// mobile 頭部導航
.mobile-header {
  @include pc {
    display: none;
  }
  @include pad {
    display: none;
  }
  @include xs_pad {
    display: block;
  }
  text-align: center;
  height: 48px;
  line-height: 48px;
  > .mobile-container {
    display: flex;
    > .mobile-bars {
      flex-grow: 1;
    }
    > .mobile-logo {
      flex-grow: 8;
      height: 48px;
      > img {
        height: inherit;
      }
    }
    > .show_member_action {
      flex-grow: 1;
    }
  }
}
// 手機漢堡 點開菜單
.mobile-nav-container {
  position: relative;
  > .mobile-nav {
    display: none;
    border-top:1px solid #EBEBEB;
    z-index: 998;
    min-height: 100%;
    overflow-y: auto;
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: calc(100vh - 48px);
    height: -moz-calc(100vh - 48px);
    height: -webkit-calc(100vh - 48px);
    background-color: white;
    > .mobile-menu {
      z-index: 999;
      position: absolute;
      height: calc(100vh - 48px);
      height: -moz-calc(100vh - 48px);
      height: -webkit-calc(100vh - 48px);
      top: 0;
      left: 0;
      width: 100%;
      > .mobile-menu-item {
        > ul {
          padding-left: 16px;
          padding-right: 16px;
          > li {
            list-style: none;
            font-size: 14px;
            border-bottom: 1px solid #EBEBEB;
            padding: 8px;
            padding-top: 12px;
            padding-bottom: 12px;
            letter-spacing: 1px;
            > span {
              position: absolute;
              right: 16px;
            }
            > a, a:link, a:hover, a:visited {
              display: inline-block;
              width: 100%;
              color: black;
              text-decoration: none;
            }
          }
        }
      }
    }
    > .mobile-sec-menu {
      > ul {
        padding-left: 16px;
        padding-right: 16px;

        > li {
          list-style: none;
          font-size: 14px;
          border-bottom: 1px solid #EBEBEB;
          padding: 8px;
          padding-top: 12px;
          padding-bottom: 12px;
          letter-spacing: 1px;

          > span {
            position: absolute;
            right: 16px;
          }

          > a, a:link, a:hover, a:visited {
            display: inline-block;
            width: 100%;
            color: black;
            text-decoration: none;
          }
        }
      }
      display: none;
      z-index: 1000;
      height: calc(100vh - 48px);
      height: -moz-calc(100vh - 48px);
      height: -webkit-calc(100vh - 48px);
      position: absolute;
      top: 0;
      left: 100vw;
      width: 100%;
      background-color: white;
      > .mobile-sec-menu-action {
        height: 48px;
        display: flex;
        border-bottom: 1px solid #EBEBEB;
        > .mobile-sec-menu-return {
          flex-grow: 0.1;
          > button {
            height: 48px;
            width: 48px;
            text-align: center;
            border: none;
            background: #EBEBEB;
          }
        }
        > .mobile-sec-menu-title {
          flex-grow: 0.9;
          line-height: 48px;
          font-size: 16px;
          font-weight: bold;
        }
      }
    }
  }
}

.main_container {

  display: flex;
  flex-direction: column;
  width: 100%;
  .title {
    font-size: 24px;
    @include pad {
      font-size: 18px;
    }
    @include xs_pad {
      font-size: 14px;
    }
    font-weight: bold;
    padding: 18px;
    padding-top: 36px;
    text-align: center;
  }
  .sec_title {
    font-size: 20px;
    @include pad {
      font-size: 16px;
    }
    @include xs_pad {
      font-size: 16px;
    }
    font-weight: bold;
    padding: 18px;
    padding-top: 36px;
    text-align: center;
  }

  > .main_content {
    user-select: none;
    cursor: pointer;
    display: flex;
    width: inherit;
    flex-direction: row;

    .sub_title {
      font-size: 12px;
      color: silver;
    }

    @include phone {
      display: block;
    }
    @include xs_pad {
      display: block;
    }
    > div.main_left_content {
      padding: 64px;
      @include pad {
        padding: 32px;
      }
      @include xs_pad {
        padding: 24px;
      }
    }
    > div {
      width: 50%;
      flex-grow: 0;
      flex-basis: 50%;

      border: 1px solid #EBEBEB;
      @include phone {
        width: 100%;
      }
      @include xs_pad {
        width: 100%;
      }
      > img {
        width: 100%;
      }
    }
    > div:last-child {
      border-left: none;
    }
    > .main_right_content {
      display: flex;
      flex-direction: column;
      height: auto;
      text-align: center;

      > div:first-child {
        padding-top:    64px;
        padding-bottom: 64px;
        @include pad {
          padding-top:    32px;
          padding-bottom: 32px;
        }
        @include xs_pad {
          padding-top:    24px;
          padding-bottom: 24px;
        }
        display:flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border-bottom: 1px solid #EBEBEB;
        > div {
          padding: 8px;
        }
      }
      > div.main_right_bottom_content {
        padding-top:    64px;
        padding-bottom: 64px;
        @include pad {
          padding-top:    32px;
          padding-bottom: 32px;
        }
        @include xs_pad {
          padding-top:    24px;
          padding-bottom: 24px;
        }
        display: flex;
        flex-direction: column;
      }
      > div {
        flex-grow: 1;
        flex-basis: 50%;

        padding-left: 64px;
        padding-right: 64px;
        @include pad {
          padding-left: 32px;
          padding-right: 32px;
        }
        @include xs_pad {
          padding-left: 24px;
          padding-right: 24px;
        }

        > img {
          width: 100%;
        }
      }
    }
  }
  > .main_sec_content {
    user-select: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    width: 100%;
    @include pad {
      display: block;
    }
    > div {
      border: 1px solid #EBEBEB;
      padding: 64px;
      @include phone {
        padding: 24px;
      }
      flex-grow: 1;
      flex-basis: 33%;
      > img {
        width: 100%;
      }
    }
    > div:nth-child(2) {
      border-left: none;
      border-right: none;
    }
  }

}


.footer {
  width: 100%;
  background: black;
  color: white;
  min-height: 100px;
  padding-right: 160px;
  padding-left: 160px;
  @include pad {
    padding-right: 80px;
    padding-left: 80px;
  }
  @include xs_pad {
    padding-right: 64px;
    padding-left: 64px;
  }
  @include phone {
    padding-right: 16px;
    padding-left: 16px;
  }
  > .logo_name {
    padding-top: 32px;
    padding-bottom: 32px;
    @include phone {
      padding-top: 16px;
      padding-bottom: 16px;
    }
    border-bottom: 1px solid #171717;
  }
  > .copy_alright {
    padding-top: 32px;
    padding-bottom: 32px;
    @include phone {
      padding-top: 16px;
      padding-bottom: 16px;
    }
    font-size: 12px;
    color: silver;
  }
  > .pay_logo {
    padding-top: 15px;
    > img {
      height: 48px;
    }
  }

  > .footer-item {
    > ul {
      padding: 0;
      padding-top: 20px;
      list-style-type: none;
      float: left;
      margin-right: 20px;
      > li {
        text-decoration: underline;
      }
      > li.first {
        font-weight: bold;
        font-size: 18px;
        text-decoration: none;
      }
    }
  }


}

.rule_box {
  padding: 20px;
}

