﻿/*定义一些变量*/
/*获取根元素html,定义变量*/

:root {
    /* 主色 */
    --main-color: #f8c22d;
    --text-color: #333333;
    --text-assistant-color: #999999;
    --text-title-color: #666666;
    --banner-bg-color: #85c8dd;
}


.iconfont {
    font-size: 35px;
}

.img-fluid {
    width: 100% !important;
}

/* 导航栏样式 */
.ggh-base2-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    transition: all 800ms ease;
}

.nav-link {
    color: white !important;
}

.nav-link.scroll {
    color: black !important;
}

.nav-link.active {
    color: var(--main-color) !important;
}

.navbar-toggler {
    padding: 0px;
}

#navbarSupportedPhoneContent .navbar-nav .nav-item a {
    color: black !important;
}

#navbarSupportedPhoneContent .navbar-nav .nav-item .nav-link.active {
    color: var(--main-color) !important;
}

/* 图片hover样式 */
.portfolio-item:hover .desc {
    opacity: 1;
    top: calc(50% - 30px);
}

.portfolio-item .desc {
    opacity: 0;
    position: absolute;
    transition: all .3s linear;
    text-align: center;
    top: 10%;
    left: 0;
    right: 0;
    color: white;
}


/* 首页新闻项css */
.ggh-base2-home-news-item {
    cursor: pointer;
    padding: 10px 0px;
}

.ggh-base2-home-news-item:hover {
    background-color: #dee2e6;
    border-radius: 6px;
}

.ggh-base2-home-news-item div p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* banner图 */
.ggh-banner {
    margin-top: 90px;
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
}

.ggh-banner .carousel.slide {
    width: 100%;
    max-width: 1920px;
}

.ggh-banner #ggh-banner .carousel-inner {
    max-width: 1920px;
    width: 100%;
}

.ggh-banner #ggh-banner .carousel-inner .carousel-item {
    max-width: 1920px;
    width: 100%;
    max-height: auto;
}

.ggh-banner #ggh-banner .carousel-inner .carousel-item img {
    max-height: 900px !important;
}

.carousel-control-next .iconfont,
.carousel-control-prev .iconfont {
    font-size: 20px;
    width: 38px;
    height: 38px;
    border: 1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 800ms ease;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
    opacity: 0;
}

.carousel-indicators div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    margin: 0 6px;
}

.carousel-indicators .active {
    background-color: var(--main-color);
}

#ggh-banner:hover .carousel-control-next .iconfont {
    opacity: 1;
}


#ggh-banner:hover .carousel-control-prev .iconfont {
    opacity: 1;
}

/* 产品展示分类样式 */
#portfolio-flters {
    padding: 0;
    margin: 0 0 35px 0;
    list-style: none;
    text-align: center;
}

#portfolio-flters li:hover,
#portfolio-flters li.filter-active {
    border-color: var(--main-color);
    color: var(--main-color);
}

#portfolio-flters li {
    cursor: pointer;
    margin: 0 12px 5px 12px;
    display: inline-block;
    padding: 0 4px 6px 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #444;
    background: white;
    transition: all 0.3s ease-in-out;
    border-bottom: 2px solid #fff;
    font-family: "Roboto", sans-serif;
}


/* 新闻界面item样式 */
.probootstrap-service-2 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .1);
    margin-bottom: 40px;
    overflow: hidden;
    cursor: pointer;
}

.probootstrap-service-2:hover {
    box-shadow: 0 1px 7px 0 rgba(0, 0, 0, .2);
}

.probootstrap-animate {
    opacity: 0;
    visibility: hidden;
}

.fadeInUp {
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
}

.probootstrap-animated {
    -webkit-animation-duration: .8s;
    animation-duration: .8s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.probootstrap-service-2 .image {
    width: 40%;
    overflow: hidden;
    position: relative;
    /* min-height: 200px; */
}

.probootstrap-service-2 .image .image-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
}

.probootstrap-service-2 .image .image-bg img {
    min-width: 100%;
    min-height: 100%;
}

.probootstrap-service-2 .text {
    width: 60%;
    padding: 20px;
    overflow: hidden;
    height: auto;
}

.probootstrap-service-2 .text p:last-child {
    margin-bottom: 0;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #555555;
    height: auto;
    overflow: hidden;
    margin-top: 10px;
}

.probootstrap-service-2 .text h5 {
    margin: 0;
}

/* .probootstrap-service-2 .text h5 {
    text-align: center;
} */

@media screen and (max-width: 576px) {
    .probootstrap-service-2 .image {
        width: 100%;
        height: 200px;
    }

    .probootstrap-service-2 .text {
        width: 100%;
    }

    .probootstrap-service-2 .image .image-bg img {
        margin-top: 10px;
    }
}


@media screen and (min-width: 576px) {

    .probootstrap-service-2 .image .image-bg img {
        margin-top: 10px;
    }
}


@media screen and (min-width: 786px) {
    .probootstrap-service-2 .image {
        width: 40%;
    }

    .probootstrap-service-2 .text {
        width: 60%;
    }
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        visibility: hidden;
        /*-webkit-transform: translate3d(0, 100%, 0);
      transform: translate3d(0, 100%, 0);*/
        -webkit-transform: translate3d(0, 40px, 0);
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        visibility: visible;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        visibility: hidden;
        /*-webkit-transform: translate3d(0, 100%, 0);
      transform: translate3d(0, 100%, 0);*/
        -webkit-transform: translate3d(0, 40px, 0);
        transform: translate3d(0, 40px, 0);
    }

    to {
        visibility: visible;
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}


/* 新闻详情界面css */
#page {
    position: relative;
    background: #FFF;
    padding: 6em 4em 6em 4em;
    border-radius: 6px;
    -webkit-box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .2);
    color: #555555
}

header.major .byline {
    display: block;
    margin: 0.50em 0 0 0;
    padding: 0 0 0.5em 0;
    letter-spacing: 1px;
    font-size: 1.3em;
    font-weight: 300;
}

#page .bottom-btns {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
}

@media screen and (max-width: 576px) {
    #page {
        padding: 2em 1em;
        width: 95%;
    }

}

@media screen and (min-width: 992px) {
    #page {
        padding: 3em 4em 6em 4em;
    }
}

/* 联系我们界面得css */
@media screen and (max-width: 576px) {
    .ggh-contact-way-name {
        margin-left: 0;
    }
}

@media screen and (min-width: 786px) {
    .ggh-contact-way-name {
        margin-left: 17.6px;
    }
}

/* 关于我们富文本得样式 */
.ggh-base2-company-desc p {
    width: 100%;
    height: auto;
}

.ggh-base2-company-desc p img {
    max-width: 100%;
    height: auto;
}

#ggh-base2-news-detail-content p {
    width: 100%;
    height: auto;
}

#ggh-base2-news-detail-content p img {
    max-width: 100%;
    height: auto;
}

/* 发展历程样式 */
.carousel-item .wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    justify-content: center;
    border-radius: 5px;
    padding: 20px 0;
}

.carousel-item .wrap .line {
    width: 4px;
    border-radius: 2px;
    background-color: #6c757d;
    height: 120px;
    margin: 0 40px;
}

.carousel-item .wrap .left {
    display: flex;
    flex-direction: column;
    height: 250px;
    max-width: 375px;
    min-width: 200px;
    justify-content: center;
}

.carousel-item .wrap .left p {
    width: 100%;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-item .wrap .right {
    width: auto;
    height: 250px;
}

.carousel-item .wrap .right img {
    width: 375px;
    height: 250px;
}

.ggh-base2-btn {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ggh-base2-btn .iconfont {
    opacity: 1;
    color: black;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: white;
}

@media screen and (max-width: 576px) {
    .carousel-item .wrap .line {
        height: 0px;
        width: 0px;
        margin: 0;
    }

    .carousel-item .wrap {
        flex-direction: column;
        background-color: white;
    }

    .carousel-item .wrap .left {
        height: auto;
        width: 300px;
    }

    .carousel-item .wrap .right {
        width: auto;
        height: auto;
    }

    .carousel-item .wrap .right img {
        width: 300px;
        height: 200px;
    }

    .carousel-item .wrap {
        padding: 0;
    }

    .ggh-base2-btn .iconfont {
        width: 40px;
        height: 40px;
    }
    .home-glory-img {
        width: 100%;
        height: auto;
    }
}

@media screen and (min-width: 576px) {
    .carousel-item .wrap .line {
        height: 0px;
        width: 0px;
        margin: 0;
    }

    .carousel-item .wrap {
        flex-direction: column;
        background-color: white;
    }

    .carousel-item .wrap .left {
        height: 250px;
        max-width: 375px;
        min-width: 200px;
    }

    .carousel-item .wrap .right {
        width: auto;
        height: 250px;
    }

    .carousel-item .wrap .right img {
        width: 375px;
        height: 250px;
    }

    .carousel-item .wrap .left {
        height: auto;
        width: 100%;
    }

    .home-glory-img {
        width: 230px;
        height: 154px;
    }
}

@media screen and (min-width:768px){
    .home-glory-img {
        width: 310px;
        height: 207px;
    }
}


@media screen and (min-width: 992px) {
    .carousel-item .wrap {
        flex-direction: row;
        /* background-color: #f5f5f5; */
    }

    .carousel-item .wrap .left {
        height: 200px;
        max-width: 300px;
        min-width: 150px;
    }

    .carousel-item .wrap .right {
        width: auto;
        height: 200px;
    }

    .carousel-item .wrap .right img {
        width: 300px;
        height: 200px;
    }

    .carousel-item .wrap .line {
        width: 4px;
        height: 120px;
        margin: 0 40px;
    }
    .home-product-img {
        width: 310px;
        height: 207px;
    }
    .home-glory-img {
        width: 310px;
        height: 207px;
    }
}

@media screen and (min-width: 1200px) {
    .carousel-item .wrap .left {
        height: 250px;
        max-width: 375px;
        min-width: 200px;
    }

    .carousel-item .wrap .right {
        width: auto;
        height: 250px;
    }

    .carousel-item .wrap .right img {
        width: 375px;
        height: 250px;
    }
    .home-product-img {
        width: 350px;
        height: 234px;
    }
    .home-glory-img {
        width: 350px;
        height: 234px;
    }
}


/* 底部访问人数在线人数样式 */
#ggh-base2-footer-bar-visit p a span {
    display: none;
}

#ggh-base2-footer-bar-visit p a {
    width: auto;
    height: auto;
}

#ggh-base2-footer-bar-visit p .waubutton img {
    display: none !important
}

#ggh-base2-footer-bar-visit p .waubutton p {
    font-size: 12px !important;
    font-weight: 400 !important;
    margin-left: 0px !important;
}