/************ menu顶部 ***********/
.navbar {
    padding: 0;
    position: relative;
}
.menu_container {
    height: 60px;
    max-height: 60px;
}
/* logo */
.menu_container .logo img {
    width: 40%;
    padding-left: 15px;
}

/* nav */
.menu_container .navbar {
    overflow: hidden;
}
.menu_container .navbar-collapse {
    flex-grow: 0;
    justify-content: flex-end;
}
.menu_container .navbar-collapse ul li {
    position: relative;
}
.menu_container .navbar-collapse ul li a {
    text-decoration: none;
    line-height: 60px;
    color: #333;
    font-size: 14px;
    transition: 0.5s;
    -moz-transition: 0.5s; /* Firefox 4 */
    -webkit-transition: 0.5s; /* Safari 和 Chrome */
    -o-transition: 0.5s; /* Opera */
    position: relative;
    display: block;
    padding: 0 17px 0 17px !important;
    white-space: nowrap;
}
.menu_container .navbar-collapse ul.navbar-nav li.nav-item .not-color {
    font-size: 20px !important;
    transition: 0.5s !important;
    -moz-transition: 0.5s !important; /* Firefox 4 */
    -webkit-transition: 0.5s !important; /* Safari 和 Chrome */
    -o-transition: 0.5s !important; /* Opera */
    margin-left: 10%;
}
.menu_container .navbar-collapse ul.navbar-nav li.nav-item .not-color:hover {
    color: var(--ThemeColor);
}
.menu_container .navbar-collapse ul > li > a.active {
    color: #fff;
    background-color: var(--ThemeColor);
}
.menu_container .navbar-collapse ul > li > a:hover {
    color: #fff;
    background-color: var(--ThemeColor);
}

/* 手机 */
.lingshan_nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 60px;
    z-index: 99;
}
.mask {
    display: none;
    width: 100%;
    height: 2000px;
    position: fixed;
    top: 60px;
    z-index: 97;
    background-color: #000;
    opacity: 0.4;
}
/* 二级菜单 */
.menu-1 {
    display: flex;
}
.menu-1 li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px 0 17px !important;
    transition: 0.5s;
    -moz-transition: 0.5s; /* Firefox 4 */
    -webkit-transition: 0.5s; /* Safari 和 Chrome */
    -o-transition: 0.5s; /* Opera */
}
.menu-1 li a {
    text-decoration: none;
    white-space: nowrap;
    color: #333;
}
/* 详情页 所有menu */
.menu-1 li:hover {
    background-color: var(--ThemeColor);
}
.menu-1 li:hover a {
    color: #fff;
}
/* 编辑页 */
.menu-1 li.editing:hover {
    background-color: #fff;
}
.menu-1 li.editing:hover a {
    color: #333;
}
/* 详情页 当前menu */
.menu-1 li.active {
    background-color: var(--ThemeColor);
}
.menu-1 li.active a {
    color: #fff;
}
/* 编辑页 当前menu */
.menu-1 li.active.editing {
    background-color: #fff;
    border: 2px dashed var(--ThemeColor);
}
.menu-1 li.active.editing a {
    color: #333;
}

/* 二级菜单 */
.menu-1 li dl {
    position: absolute;
    z-index: 99;
    top: 60px;
    /* left: 0; */
    height: 0;
    overflow: hidden;
    min-width: 100%;
    /* padding: 0 17px !important; */
    transition: 0.5s;
    -moz-transition: 0.5s; /* Firefox 4 */
    -webkit-transition: 0.5s; /* Safari 和 Chrome */
    -o-transition: 0.5s; /* Opera */
    font-size: 13px;
}
.menu-1 li:hover dl {
    height: auto;
    background-color: #fff;
}
.menu-1 li:hover dl dt {
    padding: 15px 0;
}
.menu-1 li dl dt {
    margin-bottom: 0px;
    transition: 0.5s;
    -moz-transition: 0.5s; /* Firefox 4 */
    -webkit-transition: 0.5s; /* Safari 和 Chrome */
    -o-transition: 0.5s; /* Opera */
    font-weight: 500;
    text-align: center;
    border: 1px solid #f5f5f5;
    border-top: 1px solid #fff;
    /* border-bottom: 0; */
}
/* 详情页 当前和滑过 */
.menu-1 li dl dt.active {
    background-color: var(--ThemeColor);
}
.menu-1 li dl dt.active a {
    color: #fff !important;
}
.menu-1 li:hover dl dt:hover {
    background-color: var(--ThemeColor);
}
.menu-1 li dl dt:hover a {
    color: #fff !important;
}
.menu-1 li.active dl dt a,
.menu-1 li:hover dl dt a {
    color: #333;
    display: inline-block;
    width: 100%;
}
/* 编辑页 */
.menu-1 li.editing dl dt.active {
    background-color: #fff;
    border: 2px dashed var(--ThemeColor) !important;
}
.menu-1 li.editing dl dt.active a {
    color: #333 !important;
}
.menu-1 li.editing:hover dl dt:hover {
    background-color: #fff;
}
.menu-1 li.editing dl dt:hover a {
    color: #333 !important;
}
.menu-1 li.active.editing dl dt a,
.menu-1 li.editing:hover dl dt a {
    color: #333;
}

/* 个人头像 */
.menu_container .personal_menu_container {
    position: relative;
    background-color: #fff;
}

.menu_container .personal_menu_container ul.personal_menu_dropdown {
    position: absolute;
    top: 60px;
    background-color: #fff;
    height: 0;
    overflow: hidden;
}

.menu_container .personal_menu_container ul.personal_menu_dropdown li {
    margin-bottom: 0px;
    transition: 0.5s;
    -moz-transition: 0.5s; /* Firefox 4 */
    -webkit-transition: 0.5s; /* Safari 和 Chrome */
    -o-transition: 0.5s; /* Opera */
    font-weight: 500;
    text-align: center;
    font-size: 13px;
    width: 82px;
    border: 1px solid #f5f5f5;
    border-top: 1px solid #fff;
}

.menu_container .personal_menu_container ul.personal_menu_dropdown li a {
    color: #333;
}

.menu_container .personal_menu_container:hover ul.personal_menu_dropdown {
    height: auto;
}

.menu_container .personal_menu_container:hover ul.personal_menu_dropdown li {
    padding: 15px 0;
}

.menu_container
    .personal_menu_container:hover
    ul.personal_menu_dropdown
    li:hover
    a {
    color: #fff;
}

.menu_container
    .personal_menu_container:hover
    ul.personal_menu_dropdown
    li:hover {
    background-color: var(--ThemeColor) !important;
    color: #fff;
}

.menu_container .personal_menu_container ul.personal_menu_dropdown li.active {
    background-color: var(--ThemeColor) !important;
}

.menu_container .personal_menu_container ul.personal_menu_dropdown li.active a {
    color: #fff;
}

/* *********banner轮播图 *********** */
.banner {
    width: 100%;
}

.home_carousel-item {
    width: 100%;
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
}

.banner_baner_img {
    opacity: 0;
    background-color: #000;
    width: 80px;
    height: 80px;
    border-radius: 4px;
}

.carousel:hover .banner_baner_img {
    opacity: 0.5;
}

.carousel-control-prev-icon {
    visibility: hidden;
}

.carousel-control-next-icon {
    visibility: hidden;
}

/* *********project 推荐项目 ******** */
.project,
.event,
.link,
.news {
    margin: 20px 0;
    padding-top: 20px;
}
.project .item_container {
    margin-top: 30px;
}
.project .project_item {
    position: relative;
}
.project .project_item > a.jump {
    display: inline-block;
    height: 100%;
    width: calc(100% - 30px);
    position: absolute;
}
.project .project_item img {
    height: 262px;
    width: 310px;
}

.project .project_item .project_img2 {
    height: auto;
    width: 100%;
}
/* "教育助学" 标签 */
.project .project_item .project_item_label {
    position: absolute;
    right: 30px;
    top: 30px;
    width: 93px;
    height: 30px;
    line-height: 30px;
    background-color: var(--ThemeColor);
    border-radius: 15px;
    text-align: center;
}

.project .project_item .title2 {
    margin-top: 10px;
}

.project .project_item .label2 {
    position: static !important;
    background: rgba(222,101,74,0.10);
    color: var(--ThemeColor);
    margin-top: 10px;
}

.project .project_item .bottom {
    position: absolute;
    top: 0;
    height: 100%;
    width: 310px;
    background-color: #000;
    opacity: 0.4;
}

.project .project_item div.hover_item {
    position: absolute;
    bottom: 0;
    height: 262px;
    width: 310px;
}
.project .project_item div.hover_item > p {
    position: absolute;
    bottom: 0;
    padding-left: 20px;
    margin-bottom: 30px;
    width: calc(100% - 20px);
    color: #fff;
}

.project .detail_btn {
    display: none;
}

.project .project_item .detail_btn {
    position: absolute;
    bottom: 0;
    width: 310px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 20px;
    background-color: var(--ThemeColor);
}
.project .project_item .detail_btn:hover {
    color: #fff;
}

.project .more_phone,
.news .more_phone_news {
    display: none;
}

/* *********news 慈善资讯********** */
.home_label {
    height: 0;
    width: 112px;
    border-top: 30px solid var(--ThemeColor);
    border-right: 20px solid transparent;
    position: relative;
}
.home_label .shadow {
    position: absolute;
    top: -30px;
    right: -19px;
    transform: skew(-33.5deg);
    -webkit-transform: skew(-33.5deg);
    -moz-transform: skew(-33.5deg);
    -o-transform: skew(-33.5deg);
    -ms-transform: skew(-33.5deg);
    height: 30px;
    width: 10px;
    background: linear-gradient(to right, var(--ThemeColor), #fff);
}
.home_label .text {
    position: absolute;
    top: -27px;
    right: -4px;
    text-align: center;
    width: 100%;
}
.news .news_item_phone {
    display: none;
}
.news .news_item {
    padding: 20px 0;
    margin-left: 15px;
    width: calc(100% - 30px);
}
.news .news_item .left {
    position: relative;
    padding-left: 0;
}
.news .news_item .left .home_news_item_image {
    width: 100%;
}
.news .news_item .left .home_news_item_image_label {
    width: 90px;
    height: 50px;
    position: absolute;
    right: -14px;
    top: 37%;
    background-image: url("/images/home_news_item.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -moz-background-size: 100% 100%;
}
.news .news_item .right {
    padding-left: 30px;
}

/* ****慈善资讯 模板2 ****** */
.news .news_item2_container {
    display: flex;
    flex-wrap: wrap;
}
.news .news_item2_container .news_item2 {
    padding: 20px 15px;
    width: 25%;
}

/* *********event大事记 ********** */
.event_list {
    background-color: #f7f7f7;
    margin-top: 30px;
}

.event_list .item {
    padding-bottom: 20px;
    border-left: 1px solid #b3b3b3;
}
.event_list .item .gradient {
    position: absolute;
    left: -6%;
    top: 36%;
    width: 12%;
    padding-top: 12%;
    border-radius: 50%;
    background-color: var(--ThemeColor);
    background-image: radial-gradient(
        farthest-side,
        var(--ThemeColor),
        var(--ThemeColor) 30%,
        #fff
    );
}

.event_list .item .time {
    width: 100%;
    height: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
}
.event_list .item .time > div {
    width: 50%;
    margin-left: 20%;
    border-radius: 4px;
    background-color: var(--ThemeColor);
    color: #fff;
}

.event .event_list_phone {
    display: none;
}

.event .expand {
    display: none;
}
.event .shrink {
    display: none;
}

/* .event .home_label .text {
    right: 24px;
} */

/* *********link友情链接 ********** */
.link img {
    height: 80px;
}

/* 公益生态 */
.ecology {
    margin: 0 0 20px 0;
    padding-top: 20px;
}
.ecology .item {
    margin: 30px auto 0;
}

.ecology .item > div {
    padding: 30px 25px;
    cursor: pointer;
}

.ecology .item > div:hover {
    box-shadow: 10px 10px 30px rgb(42 42 42 / 10%);
}

.ecology .item .img_container {
    width: 85px;
    /* padding-top: 85px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; */
}

.ecology .item .img_container>img {
    width: 85px;
    height: 85px;
}

/************ footer底部 ***********/
.footer {
    border-top: 10px solid #fbf9f8;
}
.footer .container {
    padding-top: 60px;
    padding-bottom: 60px;
}
.footer .logo img {
    height: 40px;
}
.last_text a {
    color: #535353 !important;
}
.last_text a:hover {
    color: #535353 !important;
}

/***********************自适应**************************/
@media screen and (min-width: 786px) {
    /* menu */
    .x_defaul_tnavbar-toggler {
        display: none !important;
    }
    .lingshan_nav {
        display: none !important;
    }
    .mask {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    /* menu */
    .menu_container .menu-1 {
        display: none;
    }
    .x_defaul_tnavbar-toggler:focus {
        outline: 0px dotted;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .project .project_item > a.jump {
        display: inline-block;
        height: 100%;
        width: calc(100% - 15px);
        position: absolute;
        z-index: 999;
    }
    .project .project_item img {
        width: 100%;
        min-height: 140px;
        height: auto;
    }
    .project .project_item .bottom {
        width: calc(100% - 15px);
    }

    .project .project_item div.hover_item {
        height: 100%;
        width: 100%;
    }

    /* .project .project_item .bottom > div.hover_item {
        height: 100%;
        width: 100%;
    } */
    .project .project_item .detail_btn {
        width: calc(100% - 15px);
    }
    .project .project_item .project_item_label {
        position: absolute;
        right: 0;
    }
    .project .project_item div.hover_item > p {
        padding-left: 10px;
        width: calc(100% - 25px);
        margin-bottom: 20px;
    }
    /* news */
    .news .news_item > .left > .home_news_item_image_label {
        top: 30px;
    }
    .link img {
        width: 100%;
        height: auto;
    }
    .footer .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .footer [class*="col-"] {
        padding: 0 7.5px;
    }
    .footer .row .col-12.col-md-4:first-child {
        padding-left: 0;
    }
    .footer .last_text span {
        display: block;
        margin-top: 6px;
    }
    .footer .footer_lg > p:first-child {
        width: 180%;
    }

    .footer .for_phone_style {
        flex-direction: column;
        /* align-items: flex-start; */
    }

    .footer .last_text_text .margin_r30 {
        margin-right: 0;
    }
    .footer .last_text_text .margin_l30 {
        margin-left: 0;
    }
}

@media screen and (max-width: 500px) {
    .font_16 {
        font-size: 14px;
    }
    .container {
        background-color: #fff;
    }
    .event_list .container {
        background-color: #f7f7f7 !important;
    }
    .footer .container {
        /* background-color: #f7f7f7 !important; */
    }

    /* logo */
    .menu_container .logo img {
        /* width: 100%; */
        padding-left: 0;
    }

    /* menu */
    .lingshan_nav li > a {
        padding: 12px 0;
        color: #333;
        background: #f5f5f5;
        border-bottom: 1px solid #e4e4e4;
        font-size: 14px;
        font-weight: bold;
    }
    .lingshan_nav li > a:hover {
        color: #fff;
        background: var(--ThemeColor);
        font-size: 14px;
    }

    .lingshan_nav li a.active {
        background: var(--ThemeColor);
        color: #fff;
    }
    /* 二级菜单 */
    .lingshan_nav li dl {
        height: 0;
        overflow: hidden;
        transition: 0.5s;
        -moz-transition: 0.5s; /* Firefox 4 */
        -webkit-transition: 0.5s; /* Safari 和 Chrome */
        -o-transition: 0.5s; /* Opera */
    }
    .lingshan_nav li:hover dl {
        height: auto;
    }
    .lingshan_nav li dl dt {
        width: 100%;
        padding: 8px 0;
        background: #f5f5f5;
    }
    .lingshan_nav li dl dt a {
        font-size: 11px;
        color: #333;
        display: inline-block;
        width: 100%;
    }
    .lingshan_nav li dl dt:hover {
        background: var(--ThemeColor);
    }
    .lingshan_nav li dl dt.active {
        background: var(--ThemeColor);
    }

    /* footer */
    .footer .container p,
    .footer .container img {
        margin-top: 6px;
    }
    .footer .container .row .col-8 .row .col-12 a img {
        margin-left: -7.5px;
    }

    /* 推荐项目 */
    .project,
    .event,
    .news {
        margin: 10px 0 0 0;
        background-color: #f4f4f4;
        padding-bottom: 10px;
        padding-top: 0;
    }
    .event {
        padding-bottom: 0;
    }
    .event .event_list_phone .container {
        margin-bottom: 0 !important;
    }
    .link {
        margin: 10px 0 0 0;
        background-color: #f4f4f4;
        padding-bottom: 0;
        padding-top: 0;
    }
    .project .item_container {
        margin-top: 20px !important;
    }
    .project .item_container [class*="col-6"] {
        padding: 0 7.5px;
    }
    .project .project_item {
        margin-bottom: 15px !important;
    }
    .project .project_item img {
        min-height: 150px;
    }
    .project .project_item .bottom {
        width: calc(100% - 15px);
    }
    .project .project_item .project_item_label {
        right: -15px;
        top: 15px;
        font-size: 10px;
        width: 65px;
        height: 25px;
    }
    .project .project_item .detail_btn {
        display: none !important;
    }
    /* 分类标题 */
    .home_label {
        font-size: 16px;
        color: var(--ThemeColor);
        text-align: center;
        background-image: none;
        width: 100%;
        justify-content: center !important;
        margin-top: 10px;
        border-top: 0;
        border-right: 0;
        height: auto;
        position: static;
    }
    .home_label .shadow {
        display: none;
    }
    .home_label .text {
        position: static;
    }
    .event .home_label {
        margin-bottom: 20px;
    }
    .link .home_label {
        margin-top: 0;
        padding-top: 20px;
    }
    /* 查看更多 */
    .project .more,
    .news .more {
        display: none;
    }
    .project .more_phone,
    .news .more_phone_news {
        display: block;
        margin-bottom: 10px;
    }
    /* 大事记 */
    .event .event_list {
        display: none;
    }
    .event .event_list_phone {
        display: block;
        background-color: #f7f7f7;
    }
    .event .event_list_phone .container {
        background-color: #f7f7f7;
        padding: 0 20px;
    }
    .event .event_list_phone .content {
        font-size: 14px;
        color: #333;
        /* flex-grow: 1; */
        width: 100%;
        padding-left: 10px;
    }
    .event .event_list_phone .time {
        font-size: 12px;
        color: #a0a0a0;
        margin: 15px 0 0 25px;
    }
    .event .event_list_phone .event_circle_phone {
        width: 10px;
        height: 10px;
        /* margin-right: 10px; */
        border-radius: 50%;
        background-color: var(--ThemeColor);
    }
    /* 慈善资讯 */
    .news .news_item_phone {
        display: flex;
    }
    .news .news_item,.news .news_item2_container {
        display: none;
    }
    .news .news_item_phone [class*="col-6"] {
        padding: 0 7.5px;
    }

    .link .item [class*="col-"] {
        margin-bottom: 20px;
        padding: 0 7.5px;
    }

    /* 公益生态 */
    .ecology .item .img_container {
        width: 33px;
        /* padding-top: 33px; */
    }

    .ecology .item .img_container>img {
        width: 33px;
        height: 33px;;
    }

    .ecology .item > div {
        padding: 0;
    }
    .footer_data_info{
        flex-wrap: wrap;
    }
    .footer_data_info p{
        width: 100%;
    }
    .last_text_text{
        flex-wrap: wrap;
        padding: 7.5px !important;
    }
    .last_text_text div{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (min-width: 992px) {
    .footer_lg {
        margin-bottom: 40px;
    }
}
