/* 新闻页面样式 */
.news-page {
    padding: 0;
    background-color: #f5f5f5;
}

/* 新闻banner */
.news-banner {
    /* width: 100vw; */
    margin-left: calc(-50vw + 50%);
    /* margin-right: calc(-50vw + 50%); */
    margin-bottom: 40px;
    overflow: hidden;
}

.news-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #f5a623;
}

/* 页面布局 */
.news-layout {
    display: flex;
    gap: 30px;
}

/* 左侧主要内容 */
.news-main {
    flex: 1;
    min-width: 0;
}

/* 右侧边栏 */
.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 新闻列表 */
.news-list {
    margin-bottom: 40px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-content h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content h2:hover {
    color: #f5a623;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    color: #f5a623;
}

.news-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #f5a623;
    font-weight: 500;
    text-decoration: none;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

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

.page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-item:hover {
    border-color: #f5a623;
    color: #f5a623;
}

.page-item.active {
    background-color: #f5a623;
    border-color: #f5a623;
    color: #fff;
}

/* 搜索框 */
.search-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    width: 40px;
    height: 40px;
    background-color: #f5a623;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #e5941a;
}

/* 热门新闻 */
.hot-news {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.hot-news h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hot-news ul {
    list-style: none;
    padding: 0;
}

.hot-news li {
    margin-bottom: 15px;
}

.hot-news a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.hot-news a:hover {
    color: #f5a623;
}

.hot-number {
    width: 24px;
    height: 24px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.hot-news li:nth-child(1) .hot-number {
    background-color: #f5a623;
    color: #fff;
}

.hot-news li:nth-child(2) .hot-number {
    background-color: #e5941a;
    color: #fff;
}

.hot-news li:nth-child(3) .hot-number {
    background-color: #d48a19;
    color: #fff;
}

.hot-title {
    flex: 1;
    line-height: 1.4;
}

/* 新闻分类 */
.news-categories {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.news-categories h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.news-categories ul {
    list-style: none;
    padding: 0;
}

.news-categories li {
    margin-bottom: 10px;
}

.news-categories a {
    display: flex;
    justify-content: space-between;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-categories a:hover {
    color: #f5a623;
}

.news-categories span {
    color: #999;
}

/* 标签云 */
.tag-cloud {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.tag-cloud h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #f5a623;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-banner img {
        height: 200px;
    }

    .news-layout {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .news-content h2 {
        font-size: 18px;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-box form {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .hot-title {
        font-size: 14px;
    }
}