/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 全新设计的头部样式 */
header {
    background: #ffffff;
    color: #333;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 */
.header-logo {
    height: 40px;
    width: auto;
    margin-right: 1rem;
    vertical-align: middle;
    border-radius: 4px;
}

header h1 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* 全新设计的导航样式 */
nav {
    margin: 0;
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0;
    padding: 0;
}

nav a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

nav a:hover {
    color: #3498db;
    background: #f8f9fa;
}

/* 活跃导航项样式 */
nav a.active {
    color: #3498db;
    background: #f8f9fa;
    border-bottom: 3px solid #3498db;
}

/* 导航分隔线 */
nav li:not(:last-child) a {
    border-right: 1px solid #eee;
}

/* 主内容区域 */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 3rem;
}

/* 基础标题样式 */
h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    border-radius: 2px;
}

/* 主按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 页脚美化 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

footer p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #1abc9c;
    text-decoration: underline;
}

/* 备案信息样式 */
.beian-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.beian-info img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3498db, #1abc9c);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2980b9, #16a085);
}

/* 基础响应式设计 */
@media (max-width: 900px) {
    header {
        padding: 0.8rem 0;
    }
    
    .header-logo {
        height: 35px;
        margin-right: 0.8rem;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    nav a {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-logo {
        height: 30px;
        margin-right: 0.8rem;
    }
    
    header h1 {
        font-size: 1.5rem;
        text-align: center;
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
        width: 100%;
    }
    
    nav a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }
    
    nav li:not(:last-child) a {
        border-right: 1px solid #eee;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 28px;
        margin-right: 0.6rem;
    }
    
    header h1 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav a {
        width: 100%;
        text-align: center;
        border-right: none !important;
        border-bottom: 1px solid #eee;
    }
    
    nav li:last-child a {
        border-bottom: none;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}