/* 新闻模块样式 */
.news-container {
    width: 100%;
    background-color: #f5f5f5;
}

/* 新闻banner部分 */
.news-banner {
    width: 100%;
    height: 280px;
    background: linear-gradient(to right, #000, #333);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.news-banner .container {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.page-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: #ff6600;
}

.breadcrumb {
    color: #fff;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

/* 新闻列表部分 */
.news-list-wrapper {
    padding: 50px 0;
}

.container {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 筛选器样式 */
.news-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.news-category {
    display: flex;
    flex-wrap: wrap;
}

.category-item {
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-item:hover, .category-item.active {
    background-color: #000;
    color: #fff;
}

.news-search {
    position: relative;
}

.news-search input {
    padding: 10px 15px;
    width: 250px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    padding-right: 40px;
}

.news-search input:focus {
    border-color: #000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.news-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.search-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/search-icon.svg') no-repeat center;
    background-size: contain;
}

/* 新闻列表项 */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    position: relative;
}

.news-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-subtitle {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 44px;
}

.news-more {
    display: flex;
    align-items: center;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.arrow-right {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('../images/arrow-right.svg') no-repeat center;
    background-size: contain;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.news-item:hover .news-more {
    color: #ff6600;
}

.news-item:hover .arrow-right {
    transform: translateX(5px);
}

/* 分页样式 */
.news-pagination {
    margin-top: 50px;
    text-align: center;
}

.news-pagination a, .news-pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.news-pagination span.current {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.news-pagination a:hover {
    background-color: #f5f5f5;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .news-banner {
        height: 200px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .news-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-search {
        margin-top: 15px;
        width: 100%;
    }
    
    .news-search input {
        width: 100%;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .container {
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .news-banner {
        height: 160px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 16px;
    }
} 

/* 新闻详情页样式 */
.news-detail-wrapper {
    padding: 50px 0;
}

.news-detail-box {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
}

/* 详情页头部 */
.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail-title {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #888;
    font-size: 14px;
}

.news-detail-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.date-icon, .author-icon, .views-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    display: inline-block;
    opacity: 0.7;
}

.date-icon {
    background: url('../images/calendar.svg') no-repeat center;
    background-size: contain;
}

.author-icon {
    background: url('../images/user.svg') no-repeat center;
    background-size: contain;
}

.views-icon {
    background: url('../images/eye.svg') no-repeat center;
    background-size: contain;
}

/* 详情页封面图 */
.news-detail-cover {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-detail-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 详情页内容 */
.news-detail-content {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.news-detail-content p {
    margin-bottom: 1.5em;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin: 1.5em 0 0.8em;
    color: #222;
    font-weight: 600;
}

.news-detail-content h2 {
    font-size: 24px;
}

.news-detail-content h3 {
    font-size: 20px;
}

.news-detail-content h4 {
    font-size: 18px;
}

.news-detail-content a {
    color: #ff6600;
    text-decoration: none;
}

.news-detail-content a:hover {
    text-decoration: underline;
}

/* 详情页底部 */
.news-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.news-detail-tags, .news-detail-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.news-detail-tags span, .news-detail-share span {
    margin-right: 10px;
    color: #888;
    font-size: 14px;
}

.news-detail-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 5px 5px 0;
    background-color: #f5f5f5;
    border-radius: 15px;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-detail-tags a:hover {
    background-color: #000;
    color: #fff;
}

.share-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-wechat {
    background-color: #7BC549;
}

.share-weibo {
    background-color: #E6162D;
}

.share-qq {
    background-color: #12B7F5;
}

.wechat-icon, .weibo-icon, .qq-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.wechat-icon {
    background: url('../images/wechat.svg') no-repeat center;
    background-size: contain;
}

.weibo-icon {
    background: url('../images/weibo.svg') no-repeat center;
    background-size: contain;
}

.qq-icon {
    background: url('../images/qq.svg') no-repeat center;
    background-size: contain;
}

/* 上一篇下一篇 */
.news-detail-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.news-prev, .news-next {
    max-width: 48%;
}

.news-prev span, .news-next span {
    color: #888;
    font-size: 14px;
}

.news-prev a, .news-next a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-prev a:hover, .news-next a:hover {
    color: #ff6600;
}

/* 相关推荐 */
.news-related {
    margin-bottom: 50px;
}

.related-title {
    margin-bottom: 20px;
    position: relative;
}

.related-title h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    position: relative;
    display: inline-block;
}

.related-title h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: #ff6600;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-info {
    padding: 15px;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 44px;
}

.related-date {
    color: #888;
    font-size: 12px;
}

/* 详情页响应式 */
@media screen and (max-width: 768px) {
    .news-detail-box {
        padding: 20px;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .news-detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-detail-share {
        margin-top: 15px;
    }
    
    .news-detail-nav {
        flex-direction: column;
    }
    
    .news-prev, .news-next {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-detail-meta span {
        margin-bottom: 5px;
    }
} 