/* 页面局部样式 + 手机适配 */

.yin:hover {
    box-shadow: 0px 0px 5px 10px #f2e4e4;
}

.img-text {
    position: absolute;
    bottom: 25px;
    width: 100%;
    color: #fff;
    font-size: 18px;
    text-align: center;
}

.text-b {
    border-bottom: 1px solid #ffffff;
}

.img-text-last {
    position: absolute;
    top: 25px;
    left: 10%;
    width: 80%;
    color: #fff;
    font-size: 18px;
    text-align: left;
}

.cursor1 {
    cursor: pointer;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #5079d9 !important;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
}

.go-link {
    cursor: pointer;
    display: block;
}

.exam-wrap {
    position: relative;
}

.taobao-float {
    position: fixed;
    top: 45%;
    width: 155px;
    left: 10px;
    z-index: 999;
}

.mobile-nav-toggle {
    display: none;
    position: absolute;
    right: 12px;
    top: 10px;
    z-index: 10;
    background: transparent;
    border: 1px solid #bebebe;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

/* ========== 手机端适配（与 allTop 1050 断点对齐，避免 logo 与导航重叠） ========== */
@media (max-width: 1050px) {
    .top_bar {
        height: 50px !important;
        min-height: 50px;
        position: relative;
        display: block !important;
        overflow: visible;
    }

    .top_bar_left {
        display: block !important;
        position: absolute;
        left: 12px;
        top: 8px;
        width: auto;
        z-index: 3;
    }

    .top_bar_left img {
        height: 28px;
    }

    /* 彻底隐藏 PC 顶栏导航，避免与 logo 重叠 */
    .top_bar_center,
    .top_bar_center.col-xs-12 {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .top_bar_right {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 50px;
        width: 100%;
        background: #111;
        padding: 8px 0 12px;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu a {
        display: block;
        color: #fefefe;
        padding: 10px 16px;
        font-size: 15px;
        font-weight: 600;
        border-bottom: 1px solid #2a2a2a;
    }

    .mobile-menu a:hover,
    .mobile-menu a:active {
        color: #5079d9;
        background: #1a1a1a;
    }

    .navbar > .container {
        padding: 0 10px;
    }

    .navbar-brand {
        padding: 8px 0 8px 0 !important;
        height: auto !important;
    }

    .navbar-brand img {
        height: 36px !important;
    }

    .menu-center {
        margin-left: 0 !important;
        display: none !important;
    }

    .carousel_style {
        margin-top: 8px !important;
    }

    .container {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .col-xs-6 {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .img-text-last {
        top: 12px;
        left: 5%;
        width: 90%;
        font-size: 14px;
    }

    .img-text-last h1 {
        font-size: 16px !important;
        margin: 0 0 6px;
        line-height: 1.3;
    }

    .img-text-last h3 {
        font-size: 13px !important;
        margin: 0 0 8px;
        line-height: 1.3;
    }

    .img-text-last > div {
        width: 95% !important;
        margin-top: 8px !important;
        line-height: 20px !important;
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .footer {
        height: auto !important;
        padding: 20px 12px !important;
        font-size: 12px !important;
    }

    .foot-text-top,
    .foot-text-top-b {
        width: 100% !important;
        font-size: 13px !important;
        line-height: 22px !important;
        text-align: left;
        word-break: break-all;
    }

    .foot-text {
        display: block;
        line-height: 28px !important;
        font-size: 13px !important;
        padding: 10px 0;
    }

    .taobao-float {
        width: 90px;
        left: 6px;
        top: auto;
        bottom: 80px;
    }

    .taobao-float img {
        width: 90px !important;
    }
}

@media (max-width: 480px) {
    .img-text-last h1 {
        font-size: 14px !important;
    }

    .img-text-last h3 {
        display: none;
    }

    .img-text-last > div {
        -webkit-line-clamp: 3;
    }

    .taobao-float {
        width: 70px;
        bottom: 60px;
    }

    .taobao-float img {
        width: 70px !important;
    }
}
