/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
body {
    color: #333;
    background-color: #f5f7fa;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
ul {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #0052a3;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}
.section-title p {
    color: #666;
    font-size: 16px;
}

/* 头部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky; /* 改为sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    height: 80px;
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* 占满header高度 */
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    display: flex;
    align-items: center;
}
.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.nav-list {
    display: flex;
}
.nav-item {
    margin: 0 15px;
    position: relative;
}
.nav-item a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}
.nav-item a:hover, .nav-item a.active {
    color: #0066cc;
}
.nav-item a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* 移动端导航 */
.mobile-nav-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        height: 60px; /* 移动端header高度 */
    }
    
    .header-wrap {
        height: 60px; /* 移动端header高度 */
    }
    
    .nav-list {
        position: absolute;
        top: 60px; /* 与移动端header高度匹配 */
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 998;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-list.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item a {
        display: block;
        padding: 15px 20px;
        text-align: center;
    }
    
    .mobile-nav-btn {
        display: block;
        z-index: 999;
    }
}

/* 底部样式 */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 40px;
}
.footer-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #0066cc;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a:hover {
    color: #0066cc;
    padding-left: 5px;
}
.footer-col p {
    color: #999;
    margin-bottom: 15px;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* 页面通用样式 */
.page-content {
    margin-top: 0; /* 移除多余的margin */
    min-height: calc(100vh - 280px);
    padding: 20px 0;
}