﻿/* 基础设置 - 设置根元素字体大小方便rem单位计算 */
:root {
    font-size: 16px; /* 1rem = 16px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #444;
    text-decoration: none;
}

    a:hover {
        color: #3687d9;
        text-decoration: underline;
    }

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    min-width: 1200px;
}

/* 头部样式 */
.header-outer {
    width: 100%;
    height: 3rem; /* 48px/16 = 3rem */
    border-bottom: 1px solid #d8d8d8;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 1000;
}

.header-inner {
    width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-left {
    width: 50%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .header-left a {
        margin-right: 1.25rem; /* 20px/16 = 1.25rem */
        color: #444;
        text-decoration: none;
        font-size: 0.875rem; /* 14px */
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

        .header-left a:hover {
            color: #3687d9;
        }

        .header-left a i {
            margin-right: 0.3125rem; /* 5px */
            font-size: 1rem;
        }

.header-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-form {
    display: flex;
}

.search-input {
    width: 21.625rem; /* 346px/16 = 21.625rem */
    height: 1.875rem; /* 30px/16 = 1.875rem */
    padding: 0 0.625rem; /* 10px */
    border: 1px solid #3687d9;
    outline: none;
    font-size: 0.875rem;
}

.search-button {
    background-color: #3687d9;
    color: white;
    border: none;
    height: 1.875rem; /* 30px */
    padding: 0 0.9375rem; /* 15px */
    cursor: pointer;
    margin-left: 0.3125rem; /* 5px */
    font-size: 0.875rem;
}

    .search-button:hover {
        background-color: #2a6cb9;
    }

/* 导航条样式 */
.nav-bar {
    width: 100%;
    height: 3.125rem; /* 50px/16 = 3.125rem */
    background-color: #3687d9;
    display: flex;
    justify-content: center;
    margin-top: 4.05rem; /* 55px */
    position: relative;
    z-index: 999;
}

.nav-container {
    width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 0 0.625rem; /* 10px */
    height: 100%;
}

.nav-logo-icon {
    width: 2.8125rem; /* 45px */
    height: 2.1875rem; /* 35px */
    margin-right: 0.625rem; /* 10px */
}
.nav-logo-icon img{
    max-height: 2.1875rem;

}

.nav-logo-text {
    font-size: 1.875rem; /* 30px */
    color: #3687d9;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    height: 100%;
    justify-content: flex-start;
    flex-grow: 1;
    margin-left: 1.25rem; /* 20px */
}

    .nav-menu a {
        color: #fff;
        text-decoration: none;
        font-size: 1rem; /* 16px */
        padding: 0 1rem; /* 16px */
        display: flex;
        align-items: center;
        height: 100%;
        font-weight: bold;
    }

        .nav-menu a:hover {
            background-color: #2a6cb9;
            text-decoration: none;
            color:#fff;
        }
/* 底部栏目 */
.footer {
    width: 100%;
    background-color: #3d3d3d;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-container {
    width: 1200px;
    margin: 0 auto;
    color: #999;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-link {
    margin: 0 1rem;
}

    .footer-link a {
        color: #fff;
        text-decoration: none;
    }

        .footer-link a:hover {
            text-decoration: underline;
        }

.footer-info {
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-copyright {
    text-align: center;
    margin-bottom: 0.5rem;
}

.footer-cert {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-qrcodes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-qrcode {
    text-align: center;
}

    .footer-qrcode img {
        width: 6.25rem; /* 100px */
        height: 6.25rem; /* 100px */
        background-color: #fff;
        margin-bottom: 0.5rem;
    }

    .footer-qrcode p {
        color: #fff;
        font-size: 0.75rem;
    }

.footer-disclaimer {
    text-align: center;
    line-height: 1.6;
    font-size: 0.75rem;
}
/*分页*/

.pager {
    width: 100%;
    float: left;
    text-align: center;
    padding-bottom: 0.6rem;
    margin-top: 1.3rem;
}


    .pager ul {
        display: inline-block;
    }

        .pager ul li {
            float: left;
            margin-right: 5px;
            list-style:none;
        }

            .pager ul li a {
                border-width: 1px;
                border-style: solid;
                border-color: #CBCBCB;
                padding: 0.1rem 0.3rem;
                background-image: linear-gradient( 116deg, rgba(0, 140, 214, 1) 0%, rgba(72, 115, 255, 1) 100% );
                -webkit-background-clip: text;
                color: transparent;
                margin-right: 5px;
                text-decoration: none;
                display: inline-block;
                font-size: 0.85rem;
            }

            .pager ul li.active a {
                background: linear-gradient( 116deg, rgba(0, 140, 214, 1) 0%, rgba(72, 115, 255, 1) 100% );
                color: #fff;
                border-color: #3978f7;
            }

            .pager ul li.next a {
                font-size: 0.85rem !important;
            }

            .pager ul li.previous a {
                font-size: 0.85rem !important;
            }
/* 响应式设计 */
@media (max-width: 1200px) {
    body {
        min-width: auto;
    }

    .header-inner, .nav-container, .main-content, .footer-container {
        width: 100%;
        padding: 0 0.9375rem; /* 15px */
    }

    .content-left {
        width: calc(100% - 16.875rem); /* 减去右边栏宽度+间隙 */
    }
}

@media (max-width: 992px) {
    .nav-menu {
        overflow-x: auto;
        white-space: nowrap;
    }

        .nav-menu::-webkit-scrollbar {
            display: none;
        }

    .company-item {
        flex-direction: column;
    }

    .company-logo {
        width: 100%;
        height: auto;
        max-height: 10rem;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .header-outer {
        height: auto;
        padding: 0.5rem 0;
        position: relative;
    }

    .nav-bar {
        margin-top: 0;
    }

    .header-left, .header-right {
        width: 100%;
    }

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.625rem;
    }

    .header-left {
        margin-bottom: 0.625rem;
        justify-content: center;
    }

        .header-left a {
            margin: 0 0.625rem 0.3125rem;
        }

    .header-right {
        justify-content: center;
    }

    .search-input {
        width: 12.5rem;
    }

    .nav-logo {
        display: none;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-around;
        margin-left: 0;
    }

        .nav-menu a {
            padding: 0 0.5rem;
            font-size: 0.875rem;
        }

    .main-content {
        flex-direction: column;
        margin-top: 0;
    }

    .content-left, .content-right {
        width: 100%;
        margin-right: 0;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-link {
        margin: 0 0.5rem 0.5rem;
    }

    .footer-qrcodes {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .search-form {
        width: 100%;
    }

    .search-input {
        width: 70%;
    }

    .search-button {
        width: 30%;
    }

    .header-left a span {
        display: none;
    }

    .header-left a i {
        margin-right: 0;
        font-size: 1rem;
    }

    .nav-menu a span {
        display: none;
    }

    .nav-menu a:before {
        content: attr(data-short);
    }

    .footer-info, .footer-cert {
        text-align: left;
    }
}
