/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.site-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.site-header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.site-header nav a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.site-header nav a:hover {
    background-color: #f5f5f5;
}

/* 主要内容区域 */
main {
    padding: 2rem 0;
}

/* 热点新闻 */
.featured-article {
    margin-bottom: 3rem;
}

.featured-article img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.featured-article h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* 新闻网格 */
.news-section {
    margin-bottom: 3rem;
}

.news-section h2 {
    margin-bottom: 1.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: auto;
}

.news-card h3 {
    font-size: 1.3rem;
    margin: 1rem;
}

.news-card p {
    margin: 1rem;
    color: #666;
}

.news-card time {
    display: block;
    margin: 1rem;
    color: #888;
    font-size: 0.9rem;
}

/* 页脚样式 */
.site-footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

/* 移动端响应式适配 */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.5rem;
    }

    .site-header nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .site-header nav a {
        display: block;
        padding: 0.8rem 1rem;
    }

    .featured-article h2 {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}