/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #165DFF;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #165DFF;
}

.active {
    color: #165DFF !important;
    border-bottom: 2px solid #165DFF;
}

/* 主要内容区域 */
main {
    padding: 40px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #222;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #165DFF;
}

/* 首页样式 */
.hero {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1 1 500px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    flex: 1 1 400px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-category {
    display: inline-block;
    background-color: #165DFF;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-excerpt {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #165DFF;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #165DFF;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.8rem;
    margin-top: 15px;
}

/* 列表页样式 */
.filter-bar {
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
}

.filter-item label {
    margin-right: 8px;
    color: #555;
}

.filter-item select, .filter-item input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-news-card {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.list-news-card:hover {
    transform: translateX(5px);
}

.list-news-image {
    flex: 1 1 250px;
    max-width: 300px;
}

.list-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-news-content {
    flex: 3 1 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover, .page-btn.active {
    background-color: #165DFF;
    color: white;
    border-color: #165DFF;
}

/* 详情页样式 */
.article-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.article-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    margin-bottom: 20px;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h3 {
    margin: 30px 0 15px;
    color: #222;
}

.article-tags {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.popular-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 10px;
}

.popular-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.popular-content {
    font-size: 0.9rem;
}

.popular-content a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-content a:hover {
    color: #165DFF;
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #165DFF;
}

.footer-col p {
    color: #ccc;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #165DFF;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-featured-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-text {
        padding: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-featured-image {
        height: 200px;
    }
}