﻿/* =========================================================
   Header
========================================================= */

.site-header{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:90px;
    z-index:9999;
    background:transparent;
    transition:
        background .3s ease,
        box-shadow .3s ease;
}

.header-inner{
    height:90px;
    display:flex;
    align-items:center;
}


/* =========================================================
   Logo
========================================================= */

.header-logo{
    display:block;
    width:206px;
    flex:none;
}

.header-logo img{
    display:block;
    width:206px;
    height:auto;
}


/* =========================================================
   Main Navigation
========================================================= */

.main-nav{
    height:100%;
    margin-left:32px;
}

.main-nav > ul{
    height:100%;
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
}

.nav-item{
    position:relative;
    height:100%;
    margin-right:30px;
}

.nav-item > a{
    position:relative;
    height:100%;
    display:flex;
    align-items:center;
    white-space:nowrap;
    color:#fff;
    font-size:15px;
    transition:color .25s ease;
}


/* Navigation underline */

.nav-item > a:after{
    content:"";
    position:absolute;
    left:50%;
    bottom:18px;
    width:0;
    height:2px;
    transform:translateX(-50%);
    background:
        linear-gradient(
            270deg,
            #00A5F4 0%,
            #01EFBA 100%
        );
    transition:width .25s ease;
}

.nav-item:hover > a:after{
    width:100%;
}


/* =========================================================
   Search
========================================================= */

.header-search{
    position:relative;
    width:200px;
    height:42px;
    margin-left:auto;
    flex:none;
    background:#fff;
    border-radius:25px;
    overflow:hidden;
    transition:
        background .25s ease,
        box-shadow .25s ease;
}

.header-search-input{
    width:100%;
    height:42px;
    box-sizing:border-box;
    padding:0 55px 0 20px;
    border:none;
    outline:none;
    background:transparent;
    color:#333;
    font-size:14px;
    font-family:
        "Microsoft YaHei",
        Arial,
        sans-serif;
}

.header-search-input::placeholder{
    color:#999;
}

.header-search-btn{
    position:absolute;
    right:0;
    top:0;
    width:44px;
    height:42px;
    padding:0;
    border:none;
    outline:none;
    cursor:pointer;
    background:
        linear-gradient(
            270deg,
            #00A5F4 0%,
            #01EFBA 100%
        );
}

.header-search-btn .fa{
    color:#fff;
    font-size:17px;
    line-height:42px;
}


/* =========================================================
   Dropdown Common
========================================================= */

.nav-dropdown{
    position:fixed;
    left:0;
    top:90px;
    width:100%;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-8px);
    overflow:hidden;
    transition:
        opacity .22s ease,
        visibility .22s ease,
        transform .22s ease;
    box-shadow:
        0 22px 40px rgba(0,0,0,.18);
}

.nav-item:hover .nav-dropdown{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
}


/* =========================================================
   Dropdown Background
   Left background color extends to the viewport edge
========================================================= */

.product-dropdown,
.normal-dropdown{
    background:
        linear-gradient(
            90deg,

            #061625 0%,

            #061625 calc((100% - 1360px) / 2 + 350px),

            #082C40 calc((100% - 1360px) / 2 + 350px),

            #084055 68%,

            #075461 100%
        );
}


/* Soft gradient glow on the right */

.product-dropdown:before,
.normal-dropdown:before{
    content:"";
    position:absolute;
    right:4%;
    top:-180px;
    width:560px;
    height:560px;
    border-radius:50%;
    background:
        radial-gradient(
            circle,
            rgba(1,239,186,.10) 0%,
            rgba(0,165,244,.06) 38%,
            rgba(0,165,244,0) 72%
        );
    pointer-events:none;
}


/* =========================================================
   Product Dropdown
========================================================= */

.product-dropdown-inner{
    position:relative;
    z-index:2;
    min-height:500px;
    display:flex;
}


/* =========================================================
   Dropdown Intro
========================================================= */

.dropdown-intro{
    width:350px;
    flex:none;
    box-sizing:border-box;
    padding:
        42px
        45px
        42px
        0;
    background:transparent;
    border-right:
        1px solid rgba(0,165,244,.14);
}

.dropdown-intro-title{
    margin-bottom:20px;
    color:#fff;
    font-size:20px;
    font-weight:500;
    line-height:30px;
}

.dropdown-intro-text{
    width:280px;
    color:rgba(255,255,255,.60);
    font-size:16px;
    line-height:30px;
}


/* =========================================================
   Product Content
========================================================= */

.product-dropdown-content{
    flex:1;
    display:flex;
    box-sizing:border-box;
    padding:
        40px
        0
        36px
        40px;
}

.product-menu-column{
    width:220px;
    margin-right:35px;
}

.product-menu-group{
    margin-bottom:25px;
}

.product-menu-group h3{
    margin:0 0 13px 0;
    color:#fff;
    font-size:16px;
    line-height:24px;
    font-weight:600;
}

.product-menu-group h3 a{
    color:#fff;
    font-size:16px;
    font-weight:600;
    line-height:24px;
}

.product-menu-group h3 a:hover{
    color:#01EFBA;
    padding-left:0;
}

.product-menu-group a{
    display:block;
    margin-bottom:9px;
    color:rgba(255,255,255,.68);
    font-size:14px;
    line-height:24px;
    transition:
        color .2s ease,
        padding-left .2s ease;
}

.product-menu-group a:hover{
    color:#01EFBA;
    padding-left:4px;
}


/* =========================================================
   Dropdown Image
========================================================= */

.dropdown-image{
    width:220px;
    margin-left:auto;
    flex:none;
}

.dropdown-image img{
    display:block;
    width:220px;
    height:158px;
    object-fit:cover;
}

.dropdown-more{
    display:inline-flex;
    align-items:center;
    margin-top:17px;
    color:#fff;
    font-size:14px;
    line-height:24px;
}

.dropdown-more .fa{
    margin-left:9px;
    color:#00DCC7;
    font-size:18px;
    transition:
        color .2s ease,
        transform .2s ease;
}

.dropdown-more:hover{
    color:#01EFBA;
}

.dropdown-more:hover .fa{
    color:#01EFBA;
    transform:translateX(4px);
}


/* =========================================================
   Normal Dropdown
========================================================= */

.normal-dropdown-inner{
    position:relative;
    z-index:2;
    min-height:280px;
    display:flex;
}

.normal-dropdown-content{
    flex:1;
    min-height:280px;
    display:flex;
    box-sizing:border-box;
    padding:
        40px
        0
        40px
        40px;
}


/* =========================================================
   Normal Menu Links
========================================================= */

.normal-menu-links{
    flex:1;
    display:grid;
    grid-template-columns:
        repeat(3, 1fr);
    align-content:start;
    column-gap:80px;
    row-gap:28px;
    padding-top:3px;
}

.normal-menu-links a{
    display:block;
    color:rgba(255,255,255,.90);
    font-size:16px;
    line-height:24px;
    transition:
        color .2s ease,
        transform .2s ease;
}

.normal-menu-links a:hover{
    color:#01EFBA;
    transform:translateX(4px);
}


/* =========================================================
   Scroll Header
========================================================= */

.site-header.header-scroll{
    background:#fff;
    box-shadow:
        0 5px 18px rgba(0,0,0,.12);
}


/* Navigation text on scroll */

.site-header.header-scroll .nav-item > a{
    color:#222;
}


/* Search field on scroll */

.site-header.header-scroll .header-search{
    background:#f5f7f8;
    box-shadow:
        inset 0 0 0 1px #e5e7eb;
}


/* =========================================================
   Font Awesome
========================================================= */

.fa{
    transition:
        color .2s ease,
        transform .2s ease;
}

/* =========================================================
   Product Dropdown - Third Level
   ========================================================= */

.product-dropdown-content{
    max-height:560px;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.24) transparent;
}

.product-dropdown-content::-webkit-scrollbar{
    width:6px;
}

.product-dropdown-content::-webkit-scrollbar-track{
    background:transparent;
}

.product-dropdown-content::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.22);
    border-radius:6px;
}

.product-menu-subgroup{
    margin-bottom:11px;
}

.product-menu-group .product-menu-second{
    position:relative;
    margin-bottom:5px;
    padding-left:10px;
    color:rgba(255,255,255,.78);
    font-size:14px;
    font-weight:500;
}

.product-menu-group .product-menu-second:before{
    position:absolute;
    left:0;
    top:10px;
    width:4px;
    height:4px;
    content:"";
    background:#00DCC7;
    border-radius:50%;
}

.product-menu-third{
    display:flex;
    flex-wrap:wrap;
    gap:3px 10px;
    padding:1px 0 3px 10px;
}

.product-menu-group .product-menu-third a{
    display:inline-block;
    width:auto;
    margin:0;
    padding:0;
    color:rgba(255,255,255,.47);
    font-size:12px;
    line-height:21px;
}

.product-menu-group .product-menu-third a:hover{
    color:#01EFBA;
    padding-left:0;
}

/* =========================================================
   Language Switch
========================================================= */

.header-language{
    height:42px;
    margin-left:14px;
    padding:0 13px;
    display:flex;
    align-items:center;
    flex:none;
    box-sizing:border-box;
    border:1px solid rgba(255,255,255,.45);
    border-radius:25px;
    background:rgba(255,255,255,.10);
    color:#fff;
    white-space:nowrap;
    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.header-language .fa{
    margin-right:7px;
    color:#fff;
    font-size:15px;
}

.header-language a{
    color:#fff;
    font-size:14px;
    line-height:40px;
    font-weight:500;
    transition:color .2s ease;
}

.header-language span{
    margin:0 5px;
    color:rgba(255,255,255,.55);
    font-size:13px;
}

.header-language a:hover{
    color:#01EFBA;
}

.site-header.header-scroll .header-language{
    border-color:#e5e7eb;
    background:#f5f7f8;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.3);
}

.site-header.header-scroll .header-language .fa,
.site-header.header-scroll .header-language a{
    color:#222;
}

.site-header.header-scroll .header-language span{
    color:#999;
}

.site-header.header-scroll .header-language a:hover{
    color:#00A5F4;
}


/* English header: compact navigation for additional News item */
.main-nav > ul > .nav-item:last-child{
    margin-right:0;
}

@media (min-width:992px) and (max-width:1280px){
    .main-nav{
        margin-left:20px;
    }

    .nav-item{
        margin-right:11px;
    }

    .nav-item > a{
        font-size:14px;
    }

    .header-search{
        width:170px;
    }

    .header-logo,
    .header-logo img{
        width:190px;
    }

    .header-language{
        margin-left:10px;
        padding:0 10px;
    }
}
