@charset "utf-8";

@keyframes navHover {
    to {
        color: #FFFFFF;
        background-color: rgba(0, 145, 64, 1);
    }
}

/** 通用样式 */
* {
    padding: 0;
    margin: 0;
}

body {
    color: #333333;
    font-size: 14px;
}

a {
    color: #333333;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

ul {
    list-style: none;
}

/** 公共样式 */
.display-none {
    display: none;
}

header {
    position: relative;
    width: 100%;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    height: 120px;
    padding: 0 24px;
}

.navbar.sticky-nav {
    position: fixed;
    box-sizing: border-box;
    background-color: #FFFFFF;
    transition: background-color 0.3s;
}

.logo {
    width: 120px;
    height: 120px;
}

.logo img {
    width: 100%;
    height: 100%;
}

nav {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 100px;
}

nav .item {
    position: relative;
    margin-right: 10px;
}

nav .item:last-of-type {
    margin-right: 0;
}

nav .item > a {
    display: block;
    height: 36px;
    line-height: 36px;
    padding: 0 24px;
    border-radius: 18px;
}

nav .item.active > a {
    color: #FFFFFF;
    background-color: rgba(0, 145, 64, 1);
}

.sub-nav {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 100%;
    border-top: 10px solid rgba(255, 255, 255, 0);
}

.sub-nav a {
    display: block;
    height: 40px;
    line-height: 40px;
    padding: 0 24px;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.7);
}

nav .item:hover .sub-nav {
    display: block;
}

nav .item:hover > a,
.sub-nav a:hover {
    animation: navHover 0.3s forwards linear;
}

.language-switch {
    display: flex;
    align-items: center;
}

.language-switch a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #333333;
    margin-right: 10px;
    line-height: 16px;
}

.language-switch a:last-of-type {
    margin-right: 0;
}

.language-switch a:hover {
    animation: navHover 0.3s forwards linear;
}

#banner-swiper {
    width: 100%;
    overflow: hidden;
}

#banner-swiper img {
    width: 100%;
}

.banner-custom-pagination {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 56px;
    margin: auto;
}

.banner-custom-pagination .bullet {
    width: 50%;
    height: 5px;
    background-color: #7F7F7F;
    margin-bottom: 10px;
}

.banner-custom-pagination .bullet.active {
    width: 100%;
    background-color: #009140;
}

/** 通用二级栏目 */
.subtopic {
    max-width: 1260px;
    margin: 0 auto;
}

.subtopic ul {
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    list-style: none;
}

.subtopic ul li {
    height: 50px;
    width: 12.5%;
    border-bottom: 1px solid #ECECEC;
}

.subtopic ul li a {
    position: relative;
    display: block;
    width: calc(100% - 20px);
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.subtopic ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #008536;
    transition: width 0.5s;
}

.subtopic ul li a:hover {
    color: #008536;
}

.subtopic ul li a:hover::after {
    width: 100%;
    transition: width 0.5s;
}

/** 面包屑导航 */
.bread-crumbs {
    display: flex;
    max-width: 1260px;
    margin: 20px auto 0;
    height: 40px;
    box-sizing: border-box;
    padding: 0 10px;
    line-height: 40px;
}

.bread-crumbs strong {
    font-weight: normal;
}

.bread-crumbs a,
.bread-crumbs span {
}

.bread-crumbs a {
    text-decoration: underline;
    margin-right: 5px;
}

.bread-crumbs a:hover {
    color: #008536;
}

.bread-crumbs a::after {
    content: " \300b ";
}

.bread-crumbs span {
    display: inline-block;
    width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/** 分页 */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.pager li {
    border: 1px solid #008536;
    width: 50px;
    height: 40px;
    margin: 0 10px;
}

.pager li a,
.pager li span {
    display: block;
    width: 50px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    cursor: pointer;
}

.pager li a {
    color: #fff;
    background-color: #008536;
}

/** 底部 */
footer {
    display: flex;
    align-items: flex-start;
    background-size: 100% 100%;
    border-radius: 0 70px 0 0;
    overflow: hidden;
    border-bottom: 20px solid #6C947B;
}

.corporate-name {
    padding: 100px 10px 40px 150px;
}

.corporate-name img {
    width: 100%;
}

footer ul {
    padding-top: 100px;
}

footer ul a {
    font-size: 22px;
    color: #FFFFFF;
    line-height: 1.5em;
}

footer ul a:hover {
    text-decoration: underline;
}

footer .detail {
    flex: 1;
    margin: 0 80px;
    padding-top: 140px;
}

footer .detail img {
    width: 200px;
    margin-bottom: 20px;
}

footer .detail p {
    line-height: 24px;
    color: #FFFFFF;
}

footer .contact-picture {
    padding: 4px 4px 0 0;
}

footer .contact-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 10px solid rgba(0, 133, 54, 0.7);
    margin-left: 10px;
}

.tab,
.mobile-contact-picture,
.mobile-banner-picture,
.mobile-logo-picture,
.mobile-nav {
    display: none;
}

@media all and (max-width: 1279px) {

    .logo-picture {
        display: none;
    }

    .logo {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 4;
        margin: auto;
        width: 90%;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 0 0 20px 20px;
        height: auto;
        padding: 5px 0;
        transition: all 0.5s;
    }

    .mobile-scroller {
        width: 100%;
        background-color: #FFFFFF;
        border-radius: 0;
        transition: all 0.5s;
    }

    .mobile-logo-picture {
        display: block;
        width: 60% !important;
        margin: 0 auto;
    }

    .language-switch {
        position: absolute;
        right: 0;
        top: 0;
        flex-direction: column;
        z-index: 5;
        padding: 20px 10px;
        background-color: #FF8B17;
        border-radius: 5px 0 5px 5px;
    }

    .language-switch a:first-of-type {
        margin: 0 0 20px 0;
    }

    nav {
        display: none;
    }

    .mobile-nav {
        position: relative;
        z-index: 3;
        display: flex;
        flex-flow: wrap;
        width: 90%;
        margin: -50px auto 0;
        border-radius: 20px;
        overflow: hidden;
    }

    .mobile-nav .item {
        display: flex;
        align-items: center;
        width: 25%;
    }

    .mobile-nav .item::after {
        content: '/';
        font-weight: bold;
        font-size: 18px;
    }

    .mobile-nav .item:nth-child(4n)::after {
        display: none;
    }

    .mobile-nav .item:nth-child(-n+4) {
        background-color: #FFFFFF;
    }

    .mobile-nav .item:nth-child(n+5) {
        background-color: #055525;
    }

    .mobile-nav .item:nth-child(n+5)::after {
        color: #FFFFFF;
    }

    .mobile-nav .item:nth-child(n+5) a {
        color: #FFFFFF;
    }

    .mobile-nav a {
        flex: 1;
        display: block;
        height: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 18px;
    }

    /** 轮播图 */
    .banner-picture,
    .banner-custom-pagination {
        display: none;
    }

    .mobile-banner-picture {
        display: block;
    }

    /** 二级导航 */
    .subtopic ul li {
        width: 25%;
    }

    .subtopic ul li a {
        font-size: 12px;
    }

    /** 联系方式 */
    .mobile-contact-picture {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 80px;
    }

    .mobile-contact-picture img {
        width: 100px;
        height: 100px;
        border-radius: 10px;
        border: 10px solid #008536;
    }

    .mobile-contact-picture img:last-of-type {
        margin-left: 10px;
    }

    footer {
        display: none;
    }

    /** 快捷导航 */
    .tab {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 4;
        display: flex;
        width: 100%;
        height: 60px;
        border-radius: 30px 30px 0 0;
        background-color: #008536;
    }

    .tab a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tab a img {
        width: 24px;
        height: 24px;
        margin-right: 2px;
    }

    .tab a span {
        font-size: 24px;
        color: #FFFFFF;
    }
}