:root {
    --primary-color: #1a66da;
    --secondary-color: #004080;
    --white: #ffffff;
    --text-color: #333;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1{
    font-size: 25px!important;
    margin: 20px 0;
}
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 通用头部样式 */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 桌面版头部 */
.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.desktop-nav {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 25px;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: white;
}

.desktop-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

.desktop-nav a:hover:after,
.desktop-nav a.active:after {
    width: 100%;
}

.desktop-contact {
    display: flex;
    align-items: center;
}

.desktop-contact a {
    display: flex;
    align-items: center;
    background-color: rgba(26, 102, 218, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
}

.desktop-contact i {
    margin-right: 8px;
}

/* 移动版头部 */
.mobile-header {
    display: none;
    padding: 12px 0;
    position: relative;
}

.mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo img {
    height: 40px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

.mobile-contact-btn {
    display: flex;
    align-items: center;
    background-color: rgba(26, 102, 218, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.mobile-contact-btn i {
    margin-right: 5px;
}

.mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav ul {
    list-style: none;
    padding: 10px 0;
}

.mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 500;
}

.mobile-nav a.active {
    color: var(--primary-color);
    background-color: rgba(26, 102, 218, 0.05);
}

/* 响应式切换 */
@media (max-width: 992px) {
    .desktop-header {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-header {
        display: block;
    }
}

/* 小屏幕优化 */
@media (max-width: 576px) {
    .mobile-logo img {
        height: 36px;
    }

    .mobile-contact-btn span {
        display: none;
    }

    .mobile-contact-btn i {
        margin-right: 0;
    }
}