/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 分类区域样式 */
.categories {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.category-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.category-item ul {
    list-style: none;
}

.category-item li {
    margin: 0.5rem 0;
}

.category-item a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.category-item a:hover {
    color: #3498db;
}

.category-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    vertical-align: middle;
    transition: transform 0.3s;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

/* 最新信息区域样式 */
.latest-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.info-list {
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.info-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-desc {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.info-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    opacity: 0.8;
}

.info-content {
    flex: 1;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 5%;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
} 