body{
    background: url('../image/bg8.jpg');
    background-size: cover;
}
.hero-section {
    background-image: url('../image/bg.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    padding-top: 25%;
    position: relative;
}

.logo-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 75%;
    max-width: 1200px;
}

.custom-nav {
    background-color: #8f1112 !important;
    height: 100px;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.custom-nav.sticky {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
}

.navbar-brand {
    display: none;
}

.navbar-nav {
    height: 100%;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}
.navbar-nav .nav-link:hover {
    transform: translateY(-5px);
}
.navbar-toggler {
    border-color: white;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#department img {
    max-width: 100%;
    height: auto;
}
#department h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #8f1112;;
}
#department h2 span {
    background-image: url(../image/title-bg.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 88px) center;
    padding: 0 100px 10px 60px;
}
.red-and-black-btn {
    font-size: 18px;
    font-family: "Microsoft YaHei UI", sans-serif;
    padding: 8px 50px;
    color: #ffffff;
    font-weight: bolder;
    background-color: #8f1112;
    border: 1px solid transparent;
    -webkit-transition: .8s ease !important;
    -o-transition: .8s ease !important;
    transition: .8s ease !important;
    cursor: pointer;
}
.red-and-black-btn:hover {
    color: #ffffff !important;;
    background-color: #8f1112 !important;
    border: 1px solid transparent;
    transform: translateY(-5px);
}
#news {
    background: url('../image/bg6.png') no-repeat center center;
    background-size: cover;
    position: relative;
}
#news h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #8f1112;
}
#news h2 span {
    background-image: url('../image/title-bg.png');
    background-repeat: no-repeat;
    background-position: calc(100% - 90px) center;
    padding: 0 100px 10px 100px;
}
.card {
    background-color: #8f111229;
    overflow: hidden;
    margin: 15px 0;
    -webkit-transition: 1s ease;
    -o-transition: 1s ease;
    transition: 0.8s ease;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px 10px -2px rgba(0,0,0,0.2);
}
.card-light {
    background-color: #8f111229;
}
.card:hover {
    background-color: #8f1112;
    transform: translateY(-5px);
}
.card:hover .card-text:last-child {
    color: #ffffff;
}
.card:hover .card-footer {
    color: #ffffff;
}
.card-text:last-child {
    margin-bottom: 0;
    text-align: center;
    padding: 10px 0 10px 10px;
    position: relative;
    z-index: 999;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-text-title {
    margin-bottom: 0;
    text-align: left;
    padding: 10px 0 10px 10px;
    position: relative;
    z-index: 999;
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-text-abstract {
    margin-bottom: 0;
    text-align: left;
    padding: 10px 0 10px 10px;
    position: relative;
    z-index: 999;
    font-size: 16px;
    font-weight: normal;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    text-indent:2rem;
}
.card:hover .card-text-title, .card:hover .card-text-abstract {
    color: #ffffff;
}
.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #8f1112;
    font-size: 1rem;
    font-weight: bold;
}
.card-footer .bi-calendar3 {
    margin-right: 5px;
    font-size: 1em;
}

#contact {
}
#contact h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #8f1112;
}
#contact h2 span {
    background-image: url('../image/title-bg.png');
    background-repeat: no-repeat;
    background-position: calc(100% - 90px) center;
    padding: 0 100px 10px 100px;
}
#contact img {
    width: 50px;
    height: 50px;
}
#contact ul li {
    list-style: none;
    text-align: left;
    font-size: 1.2rem;
}
.contact-content {
    font-size: 1.1rem;
}
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

.contact-content i,
.contact-content ul {
    margin: 0;
}
.contact-content ul {
    list-style-type: none;
    padding: 0;
    margin-left: 15px;
}
#links h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #8f1112;;
}
#links h2 span {
    background-image: url('../image/title-bg.png');
    background-repeat: no-repeat;
    background-position: calc(100% - 90px) center;
    padding: 0 100px 10px 100px;
}
#links .btn-outline-primary {
    border-color: #8f1112;
    color: #8f1112;
}

#links .btn-outline-primary:hover {
    background-color: #8f1112;
    color: white;
}
#links a::before {
    transition: .8s ease !important;
    content: '';
    display: inline-block;
    width: 24px; /* 根据图片大小调整 */
    height: 24px; /* 根据图片大小调整 */
    background-image: url('../image/link.png'); /* 替换为你的图片路径 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    margin-right: 10px; /* 根据需要调整间距 */
    vertical-align: middle; /* 垂直居中对齐 */
}
#links a:hover::before {
    background-image: url('../image/link-hover.png');
}
#links .btn {
    font-size: 1.2rem;
    font-weight: bolder;
    padding: 20px 0;
    color: #333333;
    border: none;
    border-radius: 10px !important;
    -webkit-transition: .8s ease !important;
    -o-transition: .8s ease !important;
    transition: .8s ease !important;
    cursor: pointer;
    background: #8f111229;
    width: 100%;
}
#footer {
    background-color: #8f1112!important;
    color: white!important;
    font-size: 1.1rem;
    font-weight: bold;
}
.logo-mobile {
    display:none
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}
@media (max-width: 992px) {
     .logo-desktop {
        display:none;
     }
     .logo-mobile {
        display:block;
     }
    .custom-nav {
        width: 100%;
        margin-top: 0;
        height: auto;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
    }

    .navbar-brand {
        display: block;
    }

    .navbar-brand img {
        height: 40px;
        width: auto;
    }

    .navbar-collapse {
        background-color: #8f1112;
        padding: 1rem;
    }

    .navbar-nav {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .hero-section {
        margin-top: 60px;
    }
    .contact-content {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        font-size: 1.1rem;
     }
     #contact ul li {
        list-style: none;     
        font-size: 1.2rem;
        text-align: center;
     }
    .nav-item:hover > ul {
        display: block;
        animation: menuDropDown 0.3s ease-out;
    }

    #department-link .btn {
        font-size: 1rem!important;
    }
}

@media (max-width: 768px) {
    #department .row {
        flex-direction: column-reverse;
    }
    
    #department .col-md-6,
    #contact .col-md-6 {
        margin-bottom: 2rem;
    }

    .hero-section {
        /* padding-top: 50%; */
    }
}
.contact-links {
    background: url('../image/bg9.png') no-repeat center center;
    background-size: cover;
    position: relative;
}
a {
    text-decoration: none;
}
.pagination {
    padding-top: 40px;
    justify-content: center;
}

.pagination .p_fun, .pagination .p_fun_d, .pagination .p_no, .pagination .p_no_d {
    display: inline-block;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 0 12px;
    height: 35px;
    font-size: 18px;
    line-height: 35px;
    text-align: center;
    color: #666;
    margin: 0 7px;
}

.pagination a.active {
    background: #8f1112;
    color: #fff;
    border: 1px solid #8f1112;
}
.pagination .p_t {
    color: #8f1112;
}
.p_pages span:hover {
    background: #8f1112;
    color: #fff;
    border: 1px solid #8f1112;
}
.p_no_d {
    background: #8f1112;
    color: #fff !important;
    border: 1px solid #8f1112 !important;
}
.p_fun_d {
    color: #dddddd !important;
}
.p_fun_d:hover {
    background-color: #ffffff !important;
    color: #dddddd !important;
    border: 1px solid #dcdcdc !important;
}
.pagination span {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
}
.post-text p{
    text-indent:2rem;
}
.post h4 {
    margin-left: -60px;
}

#post {
    background: url(../image/bg11.png) no-repeat right top;
    background-size: 70%;
    position: relative;
}
#post h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #8f1112;
}
#post h2 span {
    background-image: url('../image/title-bg.png');
    background-repeat: no-repeat;
    background-position: calc(100% - 90px) center;
    padding: 0 100px 10px 100px;
}

#list {
    background-size: 100%;
    position: relative;
}
#list h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #8f1112;
}
#list h2 span {
    background-image: url('../image/title-bg.png');
    background-repeat: no-repeat;
    background-position: calc(100% - 90px) center;
    padding: 0 100px 10px 100px;
}
.content-title {
    text-align:center;
}
#vsb_content p {
    text-indent: 2rem;
    font-size: 18px;
    line-height: 30px;
}
.detail-page a { 
    color:#8f1112
}

#department-link .btn-outline-primary {
    border-color: #8f1112;
    color: #8f1112;
}

#department-link .btn-outline-primary:hover {
    background-color: #ffffff;
    color: #8f1112;
    border: 5px solid #8f1112;
}
#department-link .btn {
    font-size: 1.5rem;
    font-weight: bolder;
    padding: 20px 0;
    color: #ffffff;
    border: 5px solid #8f1112;
    border-radius: 50rem;
    -webkit-transition: .8s ease !important;
    -o-transition: .8s ease !important;
    transition: .8s ease !important;
    cursor: pointer;
    background: #8f1112;
    width: 100%;
}
.sub-nav-item {
    display:none;
    position: absolute;
    top: 84px;
    background: #8f1112;
    padding: 16px 20px 10px 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.sub-nav-item li {
    list-style: none;
    font-size: 20px;
    color: #ffffff;
    height: 50px;
    line-height: 50px;
}
.sub-nav-item li a {
    color: #ffffff;
    font-weight:bold;
    transition: .3s ease !important;
}
.sub-nav-item li a:hover {
    color: #f2c373;
}
.nav-item:hover > ul {
    display: block;
    animation: menuDropDown 0.3s ease-out;
}
@keyframes menuDropDown {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top center;
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top center;
    }
}
.card-body {
    min-height:110px;
}