/* ===================================
   新闻页面现代化样式
   与网站主题色保持一致
   主色：#301514 (深红色)
   强调色：#ff9900 (橙色)
   分类底色：#f08f01 (橙色)
   =================================== */

.news-modern-section {
    background: #f8f9fa;
}

.news-modern-wrapper {
    padding: 40px 0;
}

/* 侧边栏样式 */
.news-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    background: #f08f01;
    padding: 20px;
    color: #ffffff;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0px;
}

.sidebar-title i {
    font-size: 24px;
}

.sidebar-content {
    padding: 0;
}

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

.category-item {
    border-bottom: 1px solid #e9ecef;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item.active > .category-link {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(48, 21, 20, 0.1) 100%);
    color: #ff9900;
    border-left: 4px solid #ff9900;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #f8f9fa;
    color: #ff9900;
    padding-left: 25px;
}

.category-link i {
    font-size: 18px;
    width: 30px;
    text-align: center;
    margin-right: 12px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.category-item.active .category-link i,
.category-link:hover i {
    color: #ff9900;
}

.category-name {
    flex: 1;
    font-weight: 500;
}

.article-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.category-item.active .article-count {
    background: #ff9900;
    color: #ffffff;
}

/* 子分类 */
.sub-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.sub-category-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sub-category-item.active {
    border-left-color: #ff9900;
    background: rgba(255, 153, 0, 0.05);
}

.sub-category-link {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 60px;
    text-decoration: none;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sub-category-link:hover {
    color: #ff9900;
    background: rgba(255, 153, 0, 0.05);
}

.sub-category-link i {
    font-size: 14px;
    margin-right: 10px;
}

.sub-category-name {
    flex: 1;
}

.sub-article-count {
    background: #dee2e6;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.sub-category-item.active .sub-article-count {
    background: #ff9900;
    color: #ffffff;
}

/* 新闻列表 */
.news-list-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.news-list-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #ff9900;
    font-size: 28px;
}

.article-count-badge {
    background: #ff9900;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.news-list {
    padding: 20px;
}

/* 新闻项 */
.news-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

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

.news-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    transform: translateX(5px);
}

.news-item-date {
    flex-shrink: 0;
    text-align: center;
    min-width: 70px;
}

.date-day {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #ff9900;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

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

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

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(48, 21, 20, 0.1) 100%);
    color: #ff9900;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.category-tag i {
    font-size: 10px;
}

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

.news-item-title a {
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.news-item-excerpt {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

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

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

.read-more i {
    transition: all 0.3s ease;
}

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

/* 新闻详情 */
.news-detail-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.news-breadcrumb {
    padding: 20px 30px;
    background: #f8f9fa;
    font-size: 14px;
    color: #6c757d;
}

.news-breadcrumb a {
    color: #ff9900;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-breadcrumb a:hover {
    color: #301514;
}

.news-breadcrumb .separator {
    margin: 0 10px;
    color: #dee2e6;
}

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

.news-detail-header {
    padding: 40px 30px 30px;
    border-bottom: 2px solid #e9ecef;
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 25px;
    color: #6c757d;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #ff9900;
}

.news-detail-content {
    padding: 40px 30px;
    line-height: 2;
    font-size: 16px;
    color: #495057;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

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

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

.news-detail-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #ff9900;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.news-detail-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.news-detail-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e53e3e;
}

.news-detail-content a {
    color: #ff9900;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.news-detail-content a:hover {
    border-bottom-color: #ff9900;
}

.news-detail-footer {
    padding: 30px;
    border-top: 2px solid #e9ecef;
    background: #f8f9fa;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    color: #ffffff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state h3 {
    font-size: 24px;
    color: #495057;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .news-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .news-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-item-date {
        display: flex;
        gap: 15px;
        align-items: center;
        min-width: auto;
    }
    
    .date-day {
        font-size: 28px;
    }
    
    .date-month {
        margin-top: 0;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .news-modern-wrapper {
        padding: 20px 0;
    }
    
    .news-list-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .news-title {
        font-size: 24px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-item-title {
        font-size: 18px;
    }
}
