@charset "UTF-8";
/*
Theme Name: 漢威光電 主題
Theme URI: http://wordpress.org/themes/
Author: 漢威光電
Author URI: http://wordpress.org/
Description: 漢威光電企業網站
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:
Text Domain: whtheme
*/

@import url(//fonts.googleapis.com/earlyaccess/notosanstc.css);
/*@import url(//fonts.googleapis.com/earlyaccess/notosanssc.css);*/

html {
    font-size: 15px;
    font-family: 'Noto Sans TC', sans-serif;
    /* font-family: 'Noto Sans SC', sans-serif; */
}

.font-300 { font-weight: 300; }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-900 { font-weight: 900; }


.font-xs { font-size: .86666rem; }
.font-s { font-size: .93333rem; }
.font-m { font-size: 1rem; }
.font-l { font-size: 1.125rem; }
.font-xl { font-size: 1.25rem; }
.font-2l { font-size: 1.45rem; }

.color-red { color: #e60012; }
.color-black { color: #000; }
.color-blue { color: #069abf; }

.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: none!important;
}


body {
    background-color: #e8e8e8;
    font-family: inherit;
    color: #000;
    font-size: 1rem;
}

header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9000;
}

header .logo {
    width: 124px;
}

header ul.language, header ul.menu {
    list-style: none;
    margin: 0;
}

header ul.language {
    float: left;
    height: 32px;
    overflow: hidden;
    margin-right: 48px;
    white-space: nowrap;
}

header a.toggle-menu {
    position: absolute;
    right: 15px;
    font-size: 32px;
    color: #000;
    height: 32px;
    overflow: hidden;
    line-height: 32px;
    margin-left: .5rem;
}

header ul.language>li {
    display: inline-block;
}
header ul.language>li>a {
    display: block;
    color: transparent;
    width: 32px;
    height: 32px;
    overflow: hidden;
    background: no-repeat;
    background-size: 100% 100%;
}
header ul.language>li.lang-item-tw>a {
    background-image: url(images/lang-tw.png);
}
header ul.language>li.lang-item-cn>a {
    background-image: url(images/lang-cn.png);
}
header ul.language>li.lang-item-en>a {
    background-image: url(images/lang-en.png);
}

header ul.menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    padding: .5em 0;
    background-color: rgba(0,0,0,.8);
}
header ul.menu li {
    padding: 0 15px;
}
header ul.menu li>a {
    color: #fff;
    display: block;
    font-size: 15px;
    padding: .6em 1em;
    position: relative;
}
header ul.menu li>ul {
    margin-bottom: .5em;
}
header ul.menu>li>a {
    font-size: 16px;
    padding: .6em 2em;
    border-bottom: 1px solid rgba(255,255,255,.8);
}

header ul.menu li:last-child>a {
    border-bottom: none;
}

header ul.menu li.menu-item-has-children>a:after {
    content: '+';
    color: #ff0000;
    display: block;
    position: absolute;
    right: 1em;
    font-size: 18px;
    top: 50%;
    margin-top: -1em;
}

header ul.menu li>ul>li>a:before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    position: absolute;
    left: -4px;
    top: 50%;
    margin-top: -4px; 
    border: 1px solid transparent;
    border-right-color: #fff;
    border-bottom-color: #fff;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

footer .sublogo {
    width: 122px;
}

.main {
    position: relative;
    z-index: 800;
    padding: 25% 0 40% 0;
    margin-top: -28.125%;
}
.main >* {
    position: relative;
    z-index: 5;
}
.main .bg1 {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(images/bg-white2.png) #fff left bottom no-repeat;
    background-size: 100% auto;
    -webkit-clip-path: polygon(0 14%, 100% 0%, 100% calc(100% - 13.5%), 0% 98.9%);
    clip-path: polygon(0 14%, 100% 0%, 100% calc(100% - 13.5%), 0% 98.9%);
}

.main:before {
    content: '';
    display: block;
    width: 150px;
    height: 132px;
    background: url(images/ic.png) no-repeat;
    background-size: 100% auto;
    position: absolute;
    z-index: 10;
    right: 1%;
    top: 1%;
}

.main .bg2 {
    z-index: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(images/bg2.png) #e60012 right bottom no-repeat;
    background-size: 100% auto;
    -webkit-clip-path: polygon(0 5.6%, 100% 14.5%, 100% 100%, 0% calc(100% - 9.8%));
    clip-path: polygon(0 5.6%, 100% 14.5%, 100% 100%, 0% calc(100% - 9.8%));
}

.swiper3d-container {
    width: 100%;
    max-width: 1226px;
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: auto;
    overflow: hidden;
}
.swiper3d-container .swiper-wrapper {

}
.swiper3d-container .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 220px;
    background-color: #87cb37;
}
.swiper3d-container .swiper-slide a {
    color: #000;
    text-decoration: none;
}
.swiper3d-container .swiper-slide p {
    margin: 0;
    text-align: center;
    padding: 1.25em 0;
    font-size: 1.15rem;
}

.home-banners {
    position: relative;
}
.home-banners .s-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30%;
    z-index: 899;
}

@-webkit-keyframes scroll {
    0% {
      -webkit-transform: translateY(0);
    }
    50% {
      -webkit-transform: translateY(10px);
    }
    100% {
      -webkit-transform: translateY(0);
    }
  }
  @-moz-keyframes scroll {
    0% {
      -moz-transform: translateY(0);
    }
    50% {
      -moz-transform: translateY(10px);
    }
    100% {
      -moz-transform: translateY(0);
    }
  }
  @keyframes scroll {
    0% {
      -webkit-transform: translateY(0);
      -moz-transform: translateY(0);
      -ms-transform: translateY(0);
      -o-transform: translateY(0);
      transform: translateY(0);
    }
    50% {
      -webkit-transform: translateY(10px);
      -moz-transform: translateY(10px);
      -ms-transform: translateY(10px);
      -o-transform: translateY(10px);
      transform: translateY(10px);
    }
    100% {
      -webkit-transform: translateY(0);
      -moz-transform: translateY(0);
      -ms-transform: translateY(0);
      -o-transform: translateY(0);
      transform: translateY(0);
    }
  }

    .center-it {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font: 15px "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #fff;
    text-align: center;
  }
  
  .caption {
    margin-top: 10px;
  }
  
  .mouse {
    display: inline-block;
    height: 44px;
    width: 28px;
    border-radius: 12px;
    border: 2px solid #fff;
    text-align: center;
  }
  .mouse:after {
    display: inline-block;
    height: 8px;
    width: 8px;
    background-color: #fff;
    border-radius: 50%;
    content: "";
    -webkit-animation: scroll 1.3s ease-out infinite forwards;
    -moz-animation: scroll 1.3s ease-out infinite forwards;
    animation: scroll 1.3s ease-out infinite forwards;
  }
  

.home-banners .swiper-button-next, .home-banners .swiper-container-rtl .swiper-button-prev,
.categories .swiper-button-next, .categories .swiper-container-rtl .swiper-button-prev {
    background-image: url(images/next.png)!important;
    right: 10%!important;
    top: 40%;
}
.home-banners .swiper-button-prev, .home-banners .swiper-container-rtl .swiper-button-next,
.categories .swiper-button-prev, .categories .swiper-container-rtl .swiper-button-next {
    background-image: url(images/prev.png)!important;
    left: 10%!important;
    top: 40%;
}

.categories .swiper-button-next, .categories .swiper-container-rtl .swiper-button-prev {
    right: 10px!important;
    top: 50%!important;
}
.categories .swiper-button-prev, .categories .swiper-container-rtl .swiper-button-next {
    left: 10px!important;
    top: 50%!important;
}

.swiper3d-container  .swiper-button-next, .swiper3d-container  .swiper-container-rtl .swiper-button-prev {
    background-image: url(images/next2.png)!important;
    right: 0!important;
    background-size: 100% 100%;
    width: 24px;
    height: 42px;
}
.swiper3d-container .swiper-button-prev, .swiper3d-container .swiper-container-rtl .swiper-button-next {
    background-image: url(images/prev2.png)!important;
    left: 0!important;
    background-size: 100% 100%;
    width: 24px;
    height: 42px;
}

    
.title-box {
    position: relative;
}

.swiper-container {
    width: 100%;
    height: 100%;
}
.swiper-container .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.title-box .title {
    position: absolute;
    left: 0;
    right: 0;
    color: #fff;
    text-align: center;
    bottom: 20%;
    
}
.title-box .title>h1 {
    font-size: 28px;
    letter-spacing: .2rem;
    font-weight: 400;
}

.page {
    background: url(images/page_bg.jpg) #fff center bottom no-repeat;
    background-size: 100% auto;
    padding-bottom: 15%;
}

.contact-page {
    max-width: 570px;
}

.contact-page table {
    width: 100%;
}

.contact-page table th,
.contact-page table td {
    vertical-align: top;
    padding: .5em;
}

.contact-page table th {
    text-align: right;
    font-weight: normal;
    padding-top: .95em;
    white-space: nowrap;
}
.contact-page table tr:not(:last-child) th:after {
    content: '';
    display: inline-block;
    width: .7em;
    height: 1.2em;
    vertical-align: sub;
    border-right: 1px solid #000;
}

.partners-page {
    max-width: 780px;
    position: relative;
    z-index: 0;
}

.partners {
    max-width: 760px;
    margin-top: -5%;
}

.quality-page {
    max-width: 660px;
}
.quality-page p {
    padding-left: 1em;
    border-left: 6px solid #e3e3e3;
}

.quality-page2 {
    max-width: 840px;
}

.quality-page2 .row{
    position: relative;
}

.quality-page2 h4 {
    border-bottom: #a2a2a2 solid 4px;
}

.products-page, .product-detail {
    max-width: 1015px;
}
.products-page {
    margin-bottom: 45px;
}
.product-detail {
    color: #fff;
    margin: auto;
}
.product-item .product-photo>img {
    width: 100%;
    display: block;
}

.product-item {
    overflow: hidden;
    position: relative;
    padding: 25px 0;
    border-bottom: 1px solid #e8e8e8;
}

.products-page .product-item:last-child, .product-detail {
    border-bottom: none;
}

.pagination {
    text-align: center;
    display: block;
}
.pagination > h2 {
    display: none;
}

.pagination a, .pagination span {
    color: #333;
    font-size: .95rem;
    display: inline-block;
    margin: 0 .2em;
    padding: .15em .6em;
}

.pagination span {
    border: 1px solid #ccc;
    border-radius: 2em;
}

.product-item table th {
    font-weight: normal;
    text-align: right;
}
.product-item table th:after {
    content: '';
    width: 1em;
    height: 1em;
    border-right: 1px solid #000;
    display: inline-block;
    -webkit-transform: translate(0, 2px);
    transform: translate(0, 2px);
}

.product-detail table th:after {
    border-right-color: #fff;
}

.product-item table {
    width: 100%;
}

.product-item table th, .product-item table td {
    vertical-align: top;
    padding: .65em .5em;
}
.product-item table th {
    width: 117px;
    white-space: nowrap;
}
.product-item table td {
    white-space: normal;
    word-break: break-all;
}

.mfp-close-btn-in .mfp-close {
    color: #fff!important;
}

.home-banners .swiper-slide {
    height: 370px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.home-banners .swiper-wrapper .slide1 {
    background-image: url(images/banner-1.jpg);
}
.home-banners .swiper-wrapper .slide2 {
    background-image: url(images/banner-2.jpg);
}
.home-banners .swiper-wrapper .slide3 {
    background-image: url(images/banner-3.jpg);
}

.about-box {
    max-width: 850px;
}

.ftext-box {
    background: url(images/f-bg.jpg) center bottom no-repeat;
    background-size: 100% auto;
    padding-bottom: 85%;
    max-width: 1050px;
}

.categories {
    margin-top: -60px!important;
    margin-bottom: 45px!important;
}

.categories .swiper-slide img {
    border: 1px solid #333;
}
.categories .swiper-slide {
    position: relative;
}
.categories .swiper-slide p {
    position: absolute;
    color: #000;
    z-index: 0;
    top: 15px;
    left: 15px;
}

.mfp-iframe-scaler iframe {
    box-shadow: none!important;
    background-color: transparent!important;
}
.mfp-iframe-holder .mfp-content {
    height: 100%;
}

@media (max-width: 768px) {
    .quality-page p.font-xl {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    header .logo {
        width: 191px;
        margin-top: 24px;
    }

    header a.toggle-menu {
        display: none;
    }

    header .d-flex>div {
        position: relative;
    }

    header ul.language {
        text-align: right;
        margin-right: 0;
        position: relative;
        z-index: 800;
    }
    header ul.language>li {
        margin-left: 42px;
        position: relative;
    }
    header ul.language>li:not(:first-child):before {
        width: 38px;
        border-bottom: 1px solid #000;
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        right: calc(100% + 4px);
    }

    header ul.language>li>a {
        font-size: 13px;
        color: #000000;
        width: auto;
        height: auto;
        overflow: hidden;
        background: transparent!important;
    }

    header ul.menu {
        display: block;
        background-color: transparent;
        text-align: right;
        white-space: nowrap;
        left: auto;
        right: -25px;
        padding: 0;
        top: 35px;
    }
    header ul.menu>li {
        display: inline-block;
        padding: 0 25px;
    }
    header ul.menu>li>ul {
        display: none;
    }
    header ul.menu>li>a {
        border-bottom: none;
        color: #000;
        font-size: 16px;
        padding: 0;
    }
    header ul.menu li.menu-item-has-children>a:after {
        display: none;
    }

    header ul.menu li.current-menu-item {
        position: relative;
        z-index: 0;
    }
    header ul.menu li.current-menu-item>a {
        color: #fff;
    }

    header ul.menu li.current-menu-item:before {
        content: '';
        display: block;
        position: absolute;
        border-style: solid;
        border-top-width: 148px;
        border-bottom-width: 0;
        border-left-width: 108px;
        border-right-width: 108px;
        border-color: transparent;
        border-top-color: #e60012;
        left: calc(50% - 108px );
        top: calc(-35px - 1rem );
        pointer-events: none;
    }

    header ul.menu li.current-menu-item:after {
        content: '';
        display: block;
        position: absolute;
        border: transparent solid 8px;
        border-top-width: 0;
        border-bottom-width: 10px;
        border-bottom-color: #fff;
        left: 50%;
        margin-left: -10px;
        top: 2em;
        z-index: 10;
    }

    footer .sublogo {
        width: 193px;
    }
    
    .title-box .title {
        bottom: 29%;
    }
    
    .title-box .title>h1 {
        font-size: 62px;
    }

    .swiper3d-container .swiper-slide {
        width: 420px;
    }

    .quality-photos>div:first-child {
        text-align: right;
    }
    .quality-photos>div:first-child>img,
    .quality-photos>div:last-child>img {
        width: 90%!important;
    }

    .product-item .product-photo{
        float: left;
        width: 32.3%;
        display: block;
        border: 1px solid #ccc;
    }
    .product-item .product-info {
        width: 60.5%;
        float: right;
    }
    .product-item .product-info>table {
        width: 100%;
    }

    .product-item .product-more {
        position: absolute;
        right: 0;
        bottom: 25px;
    }

    .home-banners .swiper-slide {
        height: 857px;
    }

    .main .bg1 {
        -webkit-clip-path: polygon(0 27.5%, 100% 0%, 100% calc(100% - 29.9%), 0% 98%);
        clip-path: polygon(0 27.5%, 100% 0%, 100% calc(100% - 29.9%), 0% 98%);
    }

    .main .bg2 {
        -webkit-clip-path: polygon(0 5.6%, 100% 29.5%, 100% 100%, 0% calc(100% - 18.8%));
        clip-path: polygon(0 10.85%, 100% 29.5%, 100% 100%, 0% calc(100% - 18.8%));
    }
    
    .step-box>.row {
        background: url(images/step_08.png) right bottom no-repeat;
        background-size: auto 100%;
    }
    
    .ftext-box {
        padding-bottom: 0;
        background: url(images/f-bg2.png) left top no-repeat;
        background-size: 64% auto;
        z-index: 5;
        position: relative;
    }
    
    .foundry-page h5 {
        font-size: 1.5rem;
    }
    
    .step-box .col-md-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .step-box {
        max-width: 900px;
    }
    
    .f-box2 {
        margin-top: -70px;
        background: url(images/f-bg1.png) center center no-repeat;
        background-size: auto 100%;
        position: relative;
        z-index: 0;
    }
    
    .f-box2 .i1, .f-box2 .i2 {
        position: absolute;
    }
    .f-box2 .i1 {
        width: 290px;
        top: 95px;
        left: 550px;
    }
    
    .f-box2 .i2 {
        width: 360px;
        top: 440px;
        left: 310px;
    }
    
    .main {
        position: relative;
        margin-top: -35.125%;
        padding-top: 38%;
    }

    .main:before {
        width: 300px;
        height: 265px;
        right: 2%;
        top: 4%;
    }
    
    .quality-page2-item1 {
        margin-top: 50px;
    }
    .quality-page2-item1 img {
        margin-top: -50px;
    }
    
    .quality-page2-item1 p {
        margin-right: -30px;
    }
    
    .quality-page2-item2 {
        margin-top: 100px;
    }
    
    .quality-page2-item2 img {
        margin-top: -70px;
    }
    
    .quality-page2-item2 p {
        margin-right: -100px;
    }
    
    .test-box {
        max-width: 820px;
    }
    .test-box>div.left-box {
        -ms-flex: 0 0 51.58536%;
        flex: 0 0 51.58536%;
        max-width: 51.58536%;
    }
    .test-box>div.right-box {
        -ms-flex: 0 0 48.04878%;
        flex: 0 0 48.04878%;
        max-width: 48.04878%;
    }
    
    .line-flow {
        max-width: 969px;
    }
    
    .line-flow .left-box {
        -ms-flex: 0 0 58.307533%;
        flex: 0 0 58.307533%;
        max-width: 58.307533%;
    }
    .line-flow .right-box {
        -ms-flex: 0 0 40.763673%;
        flex: 0 0 40.763673%;
        max-width: 40.763673%;
    }
    
    .line-flow .right-box .mb-2 {
        margin-bottom: 13px!important;
    }

}

@media (min-width: 998px) {
    .f-box2 {
        margin-top: -100px;
    }
    
    .f-box2 .i1 {
        width: 290px;
        top: 133px;
        left: 700px;
    }
    
    .f-box2 .i2 {
        width: 360px;
        top: 595px;
        left: 385px;
    }
    
    .main {
        margin-top: -30.125%;
        padding-top: 30%;
    }
    
}

@media (min-width: 1200px) {
    .f-box2 {
        margin-top: -120px;
    }
    .f-box2 .i1 {
        width: 330px;
        top: 160px;
        left: 905px;
    }
    
    .f-box2 .i2 {
        width: 340px;
        top: 712px;
        left: 520px;
    }
    
    .step-box {
        position: relative;
        max-width: 1060px;
        padding-right: 165px;
    }
    .step-box>.row>div:nth-child(1),
    .step-box>.row>div:nth-child(2),
    .step-box>.row>div:nth-child(3),
    .step-box>.row>div:nth-child(4),
    .step-box>.row>div:nth-child(5) {
        margin-bottom: 18px;
    }
    .step-box:after {
        content: '';
        display: block;
        position: absolute;
        background: url(images/step_09.png) no-repeat;
        background-size: 100% 100%;
        width: 165px;
        height: 259px;
        right: 0;
        bottom: 0;
    }
    
    .main {
        padding: 25% 0 40% 0;
        margin-top: -28.125%;
    }
    
    .main:before {
        width: 355px;
        height: 313px;
        right: 12%;
        top: 4%;
    }
}