/* 页面主要内容样式 */
.news-main {
    max-width: 1200px;
    margin: calc(var(--header-height) + var(--nav-height) + 30px) auto 50px;
    padding: 0 15px;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    font-size: 18px;
}

/* 新闻分类导航样式 */
.news-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.news-nav button {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.news-nav button:hover,
.news-nav button.active {
    background-color: var(--primary-color);
    color: white;
}

/* 新闻搜索样式 */
.news-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.search-box button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #a00000;
}

.search-filter {
    display: flex;
    gap: 10px;
}

.search-filter select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

/* 热门新闻样式 */
.featured-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.featured-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.featured-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.featured-content h3 {
    font-size: 24px;
    margin: 10px 0;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-item {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.side-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.side-content {
    padding: 10px;
    flex: 1;
}

.side-content h4 {
    margin: 5px 0;
    font-size: 16px;
}

/* 新闻标签样式 */
.news-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

/* 新闻元信息样式 */
.news-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 14px;
}

.news-meta span {
    display: flex;
    align-items: center;
}

/* 新闻列表样式 */
.news-list {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #666;
    margin: 10px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 热门标签样式 */
.hot-tags {
    margin-bottom: 40px;
}

.hot-tags h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tag-item {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .news-nav {
        gap: 10px;
    }

    .news-nav button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .featured-news {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 200px;
    }

    .side-item {
        flex-direction: column;
    }

    .side-item img {
        width: 100%;
        height: 150px;
    }

    .search-filter {
        width: 100%;
        justify-content: space-between;
    }

    .search-filter select {
        flex: 1;
    }
} 