/* 自定义CSS变量 */
:root {
    --primary: #004898;
    /* 主色调：深蓝色 */
    --secondary: #cd191c;
    /* 辅助色：红色 */
    --neutral: #f8fbff;
    /* 中性色：浅蓝白 */
    --dark: #036;
    /* 深色文本 */
    --light: #ffffff;
    /* 白色背景 */
    --gray-color: #999;
    /* 浅灰色 */
    --gray-light: #f6f9fc;
    --gray-light2: #f7f7f7;
    /* 浅灰色背景 */
    --border-light: #e9ecef;
    /* 浅色边框 */
    --textcolor: #4c4c4c;
    --bs-card-color: #4c4c4c;
}

/* 基础样式 */
html,
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #fff;
    color: var(--textcolor);
    line-height: 2em;
    max-width: 2500px;
}

body {
    overflow-x: hidden
}

* {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1600px;
    box-sizing: border-box;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--textcolor);
}

    a:hover {
        color: var(--secondary);
    }

ol, ul {
    padding-left: 0px;
}

dl, ol, ul {
    margin-bottom: 0;
}

li {
    list-style: none;
}

.img-fluid {
    width: 100%;
    height: auto;
    transition: all 1s ease;
}

.clear {
    clear: both;
}

input::placeholder {
    color: var(--gray-color);
}

.col-custom-5 {
    flex: 0 0 auto;
    width: 20%; /* 100% / 5 = 20% */
}

.top {
    background: url(../images2025/banner_bg.jpg) top no-repeat #dcedfa;
    background-size: cover;
}

.toolbar {
    color: var(--dark);
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

    .toolbar .spaceline {
        margin: 0 0.2rem;
        opacity: 0.5;
    }

    .toolbar .mobile {
        position: relative;
        cursor: pointer;
    }

        .toolbar .mobile img {
            position: absolute;
            left: 120%;
            top: 0px;
            display: none;
        }

        .toolbar .mobile:hover img {
            display: block;
        }

    .toolbar .search-box {
        display: inline-block;
        height: 2.5rem;
        padding-top: 0.5rem;
    }

        .toolbar .search-box img {
            width: 1.5rem;
            height: auto;
            ;
            cursor: pointer;
            margin-right: 0.5rem;
            display: inline-block;
        }

        .toolbar .search-box:hover .search, .toolbar .search:hover {
            display: block;
        }

    .toolbar .search {
        display: none;
        position: absolute;
        right: 0rem;
        top: 3.3rem;
        width: 20%;
        border: 2px solid var(--primary);
        border-radius: 5px;
        overflow: hidden;
        box-sizing: border-box;
        background: var(--gray-light);
    }

        .toolbar .search input {
            border: 0;
            background: transparent;
            -webkit-user-select: none;
            outline: none;
            width: calc(100% - 66px);
            padding: 0 5px;
        }

        .toolbar .search button {
            background: var(--primary);
            color: #fff;
            border: none;
            width: 60px;
            float: right;
        }

    .toolbar a {
        display: inline-block;
        padding: 0 10px;
        background: var(--primary);
        color: #fff;
        border-radius: 0.2rem;
        margin-left: 0.5rem;
    }

        .toolbar a.login {
            background: var(--secondary);
        }

        .toolbar a:hover {
            opacity: 0.85;
        }

.top .container {
    position: relative;
    max-height: 650px;
    height: 35rem;
    padding: 0;
}


.top .logo {
    position: absolute;
    top: 30%;
    width: 23%;
    height: auto
}

.top .build1 {
    position: absolute;
    bottom: 80px;
    left: 25%;
    width: 40%;
    height: auto
}

.top .build2 {
    position: absolute;
    bottom: 200px;
    right: 0;
    width: 32%;
    height: auto
}

.top .banner_text {
    position: absolute;
    right: 3%;
    width: 32%;
    bottom: 55%;
}

/* 导航栏样式 */
.navbar {
    width: 98% !important;
    max-width: 98% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: absolute;
    top: 67%;
    left: 1%;
    font-size: 1.25rem;
    transition: background-color 0.3s ease;
}

.navbar-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.navbar-collapse {
    width: 100%;
}

.navbar-nav a {
    color: var(--dark);
    position: relative;
    padding-bottom: 5px;
    display: block;
    white-space: nowrap;
}

    .navbar-nav a:hover, .navbar-nav a.active {
        color: var(--secondary);
    }

    .navbar-nav a i {
        display: inline-block;
        width: 1.5rem;
        height: 1.2rem;
        background: url(../images2025/nav_icon.png) no-repeat;
        background-size: 900% 100%;
        vertical-align: middle;
        margin-right: 8px;
        top: -2px;
        position: relative;
    }

    .navbar-nav a:hover i, .navbar-nav a.active i {
        background-image: url(../images2025/nav_icon_hover.png);
    }

.navbar-nav li:nth-child(1) a i {
    background-position: 0% 0;
}

.navbar-nav li:nth-child(2) a i {
    background-position: 12.5% 0;
}

.navbar-nav li:nth-child(3) a i {
    background-position: 25% 0;
}

.navbar-nav li:nth-child(4) a i {
    background-position: 37.5% 0;
}

.navbar-nav li:nth-child(5) a i {
    background-position: 50% 0;
}

.navbar-nav li:nth-child(6) a i {
    background-position: 62.5% 0;
}

.navbar-nav li:nth-child(7) a i {
    background-position: 75% 0;
}

.navbar-nav li:nth-child(8) a i {
    background-position: 87.5% 0;
}

.navbar-nav li:nth-child(9) a i {
    background-position: 100% 0;
}

.navbar-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0.2rem;
    bottom: -1rem;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.navbar-nav a:hover:after, .navbar-nav a.active:after {
    width: 100%;
}

.navbar-nav li ul {
    display: none;
}



.content {
    background: #fff;
    position: relative;
    /* 修改top属性值为0，移除向上偏移 */
    top: 0;
    /* 添加margin-top实现从top底部下方130px开始 */
    margin-top: -7.0rem;
    padding: 2%;
    padding-bottom: 0;
    overflow: hidden
}



/* 卡片布局样式 */
.card {
    background: var(--gray-light);
    border: none;
    border-top: 3px solid var(--secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 0px;
    transition: all 0.3s ease;
    color: var(--textcolor);
}

.card-header {
    background: none;
    border: none;
    font-weight: bold;
    color: var(--dark);
    padding: 0 1.5rem;
}

    .card-header h2 {
        font-size: 1.5rem;
        display: inline-block;
        margin-top: 1.5rem;
        margin-bottom: 0;
        font-weight: 600;
    }

    .card-header a {
        margin-right: 1rem;
        color: #888;
    }

        .card-header a.current {
            color: var(--secondary);
        }

.card-body {
    padding: 1rem 1.5rem;
    color: var(--textcolor);
}

.card-header a.more {
    font-family: 'fangsong',Consolas‌,'Courier New', Courier, monospace;
    float: right;
    margin-top: 1.5rem
}
/* 页脚样式 */
footer {
    background-color: #134985;
    color: var(--light);
    font-size: 0.9rem;
    margin-top: 2rem;
    overflow: hidden
}

    footer > .container {
        margin-top: 3rem;
    }

    footer a {
        color: var(--light);
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

    footer .navbar-footer {
        display: flex;
    }

        footer .navbar-footer li {
            flex: 1;
            margin-bottom: 0.5rem;
        }

        footer .navbar-footer > li > a {
            font-weight: bold;
        }

.footer-text {
    background: var(--dark);
    color: #fff;
    padding: 0.5rem 0;
    overflow: hidden;
}

    .footer-text .left {
        text-align: left;
        float: left;
    }

    .footer-text .right {
        text-align: right;
        float: right;
    }


@media (max-width:0500px) {
    html, body {
        font-size: calc(100vw / 135);
    }

    .content {
        margin-top: -7.6rem;
    }
}

@media (max-width:2500px) {
    html, body {
        font-size: 19px;
    }

    .content {
        margin-top: -7.6rem;
    }
}

@media (max-width:2200px) {
    html, body {
        font-size: calc(100vw / 115)
    }
}

@media (max-width: 1920px) {
    html, body {
        font-size: calc(100vw /100);
    }

    .content {
        margin-top: -7.3rem;
    }
}

@media (max-width: 1700px) {
    html, body {
        font-size: calc(100vw / 90);
    }

    .container {
        padding: 2rem 30px !important
    }
}

@media (max-width: 1440px) {
    html, body {
        font-size: calc(100vw / 85);
    }
}

@media (max-width: 1200px) {
    html, body {
        font-size: calc(100vw / 85);
    }
}

@media (max-width: 1000px) {
    html, body {
        font-size: calc(100vw / 88);
    }
}
/* 响应式调整 */
@media (max-width: 767px) {

    html, body {
        font-size: 16px;
    }

    #about .card, #committee .card {
        height: auto;
    }

    .container {
        padding: 0 15px !important;
        max-width: 100%;
        overflow: hidden;
    }

    .toolbar .toolbar-item:first-child {
        display: none;
    }

    .mb-5 {
        margin-bottom: 30px !important;
    }

    .mt-5 {
        margin-top: 30px !important;
    }

    .toolbar {
        position: fixed;
        right: 15px;
        z-index: 2000;
    }

        .toolbar .search-box {
            padding-top: 0;
        }

        .toolbar .search {
            width: 100%;
        }

    .top .logo {
        width: 50%;
        left: 25%;
        top: 40%;
    }

    .top .container {
        height: 15rem;
        overflow: hidden;
    }

    .top .build1 {
        width: 100%;
        bottom: -65%;
        left: 0;
        opacity: 0.5;
    }

    .top .build2 {
        display: none;
    }

    .top .banner_text {
        display: none;
    }

    /* 导航栏移动端适配 */
    .navbar {
        position: fixed; /* 修改为固定定位 */
        top: 0; /* 固定在顶部 */
        left: 0px;
        right: 0;
        background: #fff;
        margin-top: 0; /* 移除原有margin */
        z-index: 1050; /* 提高层级至Bootstrap模态框级别 */
    }

        .navbar button {
            margin-left: 10px;
        }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-nav {
        flex-direction: column !important;
        justify-content: flex-start;
        width: 100%;
        background-color: var(--light);
        padding: 1rem 0;
        height: 100vh;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

        .navbar-nav li {
            width: 100%;
            border-bottom: 1px solid var(--border-light);
        }

            .navbar-nav li:last-child {
                border-bottom: none;
            }

        .navbar-nav a {
            margin: 0;
            padding: 0.8rem 1.5rem;
            display: block;
            width: 100%;
            text-align: left;
        }

            .navbar-nav a i {
                margin-right: 10px;
            }

            .navbar-nav a:after {
                bottom: 0.5rem;
            }

        .navbar-nav li ul li {
            padding: 0rem 2rem;
        }

            .navbar-nav li ul li a {
                font-size: 1rem;
                padding: 0.5rem 0;
                padding-left: 1rem;
            }

                .navbar-nav li ul li a::after {
                    display: none;
                }
    /* 栅格系统统一边距 */
    .row > * {
        padding-left: 15px;
        padding-right: 15px;
    }

    .content {
        margin-top: 15px;
    }

    .col-xs-6 {
        flex: 0 0 auto;
        width: 50%;
    }


    .card-header {
        padding: 0 15px;
    }

    .card-body {
        padding: 15px;
    }

    .card-header a {
        margin-right: 0.8rem;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    footer .col-md-3 {
        width: 35%;
        padding-left: 0;
    }

    footer > .col-md-12 {
        line-height: 0;
    }

    .navbar-footer {
        display: none !important;
    }

    .footer-text .left, .footer-text .right {
        text-align: left;
        float: none;
        line-height: 1.5em;
    }
}
