/* 侧边栏通用样式 */
.sidebar-wrapper {
    padding: 15px;
}

.single-sidebar {
    margin-top: 0px;
    margin-bottom: 4px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.single-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 标题样式 */
.sidebar-title {
    position: relative;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

title-decoration {
    position: absolute;
    bottom: -2px;
    left: 20px;
    width: 40px;
    height: 2px;
    background: #007bff;
}

/* 内容区域样式 */
.sidebar-box {
    padding: 20px;
}

/* 分类导航样式 */
.categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories li {
    margin-bottom: 10px;
}

.categories li:last-child {
    margin-bottom: 0;
}

.categories a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories a:hover, .categories a.active {
    background: #f0f7ff;
    color: #007bff;
    padding-left: 16px;
}

.category-icon {
    margin-right: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.categories a:hover .category-icon, .categories a.active .category-icon {
    transform: translateX(3px);
}

.category-count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

/* 头条文章样式 */
.recent-post {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-post li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post li:last-child {
    border-bottom: none;
}

.post-item {
    display: flex;
    align-items: flex-start;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item:hover {
    color: #007bff;
}

.post-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.post-content {
    flex: 1;
}

.post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.post-item:hover .post-title {
    color: #007bff;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.post-date {
    margin-right: 12px;
}

.post-views i {
    margin-right: 4px;
}

/* 推荐资讯样式 */
.recommend-articles {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recommend-articles li {
    margin-bottom: 12px;
}

.recommend-articles li:last-child {
    margin-bottom: 0;
}

.recommend-item {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommend-item:hover {
    color: #007bff;
}

.recommend-thumb {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 4px;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-item:hover .thumb-img {
    transform: scale(1.1);
}

.recommend-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.recommend-item:hover .recommend-title {
    color: #007bff;
}

/* 标签云样式 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* 搜索框样式 */
.search-form {
    margin: 0;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.search-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    background: #007bff;
    border: none;
    border-radius: 0 20px 20px 0;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .sidebar-wrapper {
        padding: 10px;
    }
    
    .single-sidebar {
        margin-bottom: 20px;
    }
    
    .sidebar-title, .sidebar-box {
        padding: 12px 15px;
    }
    
    .sidebar-title h2 {
        font-size: 16px;
    }
}

/* 新闻详情页样式 */
.modern-news-detail {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 30px 0;
}

/* 面包屑导航 */
.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #007bff;
}

.breadcrumb-item.active {
    color: #495057;
}

/* 文章头部 */
.article-header {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #007bff;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.article-meta .meta-item i {
    margin-right: 8px;
    color: #007bff;
    width: 16px;
    text-align: center;
}

/* 文章内容 */
.article-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 1.1rem;
    color: #495057;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-content h2 {
    font-size: 1.8rem;
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* 文章底部 */
.article-footer {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.article-tags {
    margin-bottom: 25px;
}

.article-tags strong {
    color: #495057;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    margin: 5px 8px 5px 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

.article-navigation {
    border-top: 1px solid #e9ecef;
    padding-top: 25px;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-label {
    color: #6c757d;
    font-weight: 500;
}

.nav-item a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #007bff;
}

/* 评论区域 */
.comment-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-news-detail {
        padding: 15px 0;
    }
    
    .article-header,
    .article-content,
    .article-footer,
    .comment-section {
        padding: 25px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .breadcrumb-nav {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 1rem;
        padding: 20px;
    }
    
    .article-header {
        padding: 25px;
    }
}

/* 新闻列表页面基础样式 */
.news-listing-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

/* 分类标题栏 */
.category-header {
    margin-bottom: 30px;
    text-align: center;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.category-desc {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 新闻列表容器 */
.news-list-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 新闻项样式 */
.news-item {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #fafafa;
    transform: translateX(5px);
}

.news-item.featured {
    background-color: #fff9f0;
    border-left: 4px solid #ff9800;
}

.news-item.top {
    background-color: #f0f9ff;
    border-left: 4px solid #2196f3;
}

/* 内容包装器 */
.news-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 新闻图片 */
.news-image {
    flex: 0 0 200px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4/3;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-thumbnail {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
}

.news-image:hover .image-overlay {
    opacity: 1;
}

.read-more-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* 新闻内容 */
.news-content {
    flex: 1;
    min-width: 0;
}

.news-header {
    margin-bottom: 15px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: #007bff;
}

/* 标签样式 */
.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.top-tag {
    background-color: #2196f3;
    color: white;
}

.recommend-tag {
    background-color: #4caf50;
    color: white;
}

.headline-tag {
    background-color: #ff9800;
    color: white;
}

/* 摘要样式 */
.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻底部 */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.news-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.news-meta .meta-item {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-meta .meta-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-meta .meta-item a:hover {
    color: #007bff;
}

/* 阅读全文按钮 */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 20px;
    background-color: #f0f7ff;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #007bff;
    color: white;
    transform: translateX(5px);
}

/* 分页容器 */
.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-listing-section {
        padding: 20px 0;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .category-desc {
        font-size: 14px;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-content-wrapper {
        flex-direction: column;
    }
    
    .news-image {
        flex: none;
        width: 100%;
        max-height: 200px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-meta {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .news-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-tags {
        margin-bottom: 10px;
    }
}

