/* 新闻列表页面样式 */
.news-page {
    padding: 0 0 60px;
    background: #f8f9fa;
}
.main-content .container {max-width:none!important;padding: 0;}
/* Banner背景 */
.news-banner {
    position: relative;
    width: 100%;
    height: 150px;
    background-image: url('../images/banner01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 20px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.news-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.search-box {
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.news-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: none;
    background: #ff6b35;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #ff5722;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* 左侧边栏 */
.news-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.sidebar-search-box {
    margin-bottom: 25px;
    padding-bottom: 25px;
    
    border-bottom: 1px solid #eee;
}

.sidebar-search-box .news-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-box .search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.sidebar-search-box .search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.sidebar-search-box .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: none;
    background: #ff6b35;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.sidebar-search-box .search-btn:hover {
    background: #e55a2b;
}

.sidebar-search-box .search-btn i {
    font-size: 14px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 12px;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.category-link:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.category-link.active {
    background: #ff6b35;
    color: #fff;
}

.category-count {
    font-size: 12px;
    opacity: 0.8;
}

.category-link.active .category-count {
    opacity: 1;
}

/* 最近文章列表 */
.recent-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-article-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-article-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.recent-article-title {
    display: block;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.recent-article-date {
    display: block;
    font-size: 12px;
    color: #999;
}

.recent-article-link:hover .recent-article-title {
    color: #ff6b35;
}

/* 主内容区 */
.news-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    min-width: 0;
}

.news-list {
    margin-bottom: 40px;
}

.news-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item-wrapper {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: start;
}

.news-item-image {
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-item-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

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

.news-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-item-content {
    flex: 1;
}

.news-item-header {
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

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

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

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}

.news-author {
    color: #666;
}

.news-separator {
    color: #ddd;
}

.news-date {
    color: #999;
}

.news-views {
    color: #999;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    word-break: break-all;
}

.news-item-footer {
    margin-top: 20px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more-link:hover {
    color: #ff5722;
    gap: 12px;
}

.read-more-link i {
    font-size: 12px;
    transition: transform 0.3s;
}

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

/* 无新闻提示 */
.no-news {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-news i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-news p {
    font-size: 16px;
    margin: 0;
}

/* 文章详情页样式 */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.article-detail {
    margin-bottom: 50px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-date {
    color: #666;
}

.meta-separator {
    color: #ddd;
}

.article-views {
    color: #999;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.article-content h2 {
    font-size: 24px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

/* 分享按钮 */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.share-btn:hover {
    background: #ff6b35;
    color: #fff;
    transform: translateY(-2px);
}

/* 文章导航 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.nav-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    transition: color 0.3s;
}

.nav-link:hover .nav-title {
    color: #ff6b35;
}

.nav-next {
    text-align: right;
}

/* 最近文章区域 */
.recent-articles-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
}

.recent-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.recent-article-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.recent-article-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

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

.card-title a:hover {
    color: #ff6b35;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-author,
.card-date,
.card-views {
    color: #999;
}

.card-separator {
    color: #ddd;
}

.card-read-more {
    display: inline-block;
    font-size: 14px;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.card-read-more:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* 无文章提示 */
.no-article {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-article i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-article p {
    font-size: 16px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .news-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-sidebar {
        position: static;
        order: 2;
    }
    
    .news-content {
        order: 1;
    }
    
    .news-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .news-page {
        padding: 0 0 50px;
    }
    
    .news-banner {
        height: 150px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .news-header {
        margin-bottom: 30px;
    }
    
    .news-item-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-item-image {
        width: 100%;
    }
    
    .news-item-image img {
        height: 150px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-sidebar {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .news-page {
        padding: 20px 0 40px;
    }
    
    .news-container {
        padding: 0 15px;
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-item {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-item-meta {
        font-size: 12px;
    }
    
    .news-excerpt {
        font-size: 14px;
    }
    
    /* 详情页响应式 */
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .recent-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

