body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
    margin: 0;
}

header {
    background-color: white;
    color: #3498db;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
    margin: 0;
}

/* 删除重复的body定义 */

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 30px;
    margin-right: 10px;
}

.divider {
    width: 2px;
    height: 20px;
    background-color: #3498db;
    margin: 0 15px;
}

.tagline {
    font-size: 14px;
    color: #3498db;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    background-color: white !important;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);  
    margin: 0;
}

nav li {
    margin: 0;
    display: flex;
    align-items: center;
}

nav a {
    color: #3498db !important;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin: 0 2px;
    white-space: nowrap;
    text-align: center;
    min-width: 80px;
    box-sizing: border-box;
}

nav a:hover {
    background-color: #e1f0fa !important;
    color: #1d6fa5 !important;
}

nav a:hover,
nav a.active {
    background-color: #3498db !important;
    color: white !important;
}

@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 2px 0;
    }
    
    .logo-container {
        flex-wrap: wrap;
    }
    
    .tagline {
        font-size: 12px;
        margin-top: 5px;
        flex-basis: 100%;
    }
    
    nav a {
        min-width: 70px;
        padding: 8px 10px;
        font-size: 14px;
    }
    
    body {
        padding-top: 100px; /* 在中等屏幕上增加顶部边距 */
    }
}

@media (max-width: 768px) {
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 2px 0;
    }
    
    .logo-container {
        flex-wrap: wrap;
    }
    
    .tagline {
        font-size: 12px;
        margin-top: 5px;
        flex-basis: 100%;
    }
    
    nav a {
        min-width: 60px;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    body {
        padding-top: 120px; /* 在小屏幕上进一步增加顶部边距 */
    }
}