/* ===== Hero 区域 ===== */
.news-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.news-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(50px);
    z-index: 1;
}

.news-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: left;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.news-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-input-group {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-input-group:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.search-input {
    flex: 1;
    border: none;
    padding: 1.25rem 1.75rem;
    font-size: 1.1rem;
    background: transparent;
    outline: none;
    color: white;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border: none;
    padding: 0 2.5rem;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

/* 英雄徽章样式 */
.news-hero .product-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ===== 筛选区域 ===== */
.filter-section {
    padding: 4rem 0 6rem;
    background: white;
}

/* ===== 侧边栏 ===== */
.sidebar {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--brand-gradient-start);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--brand-gradient-start);
    color: var(--brand-primary);
}

.category-link.active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
}

.category-link i {
    font-size: 1rem;
}

.category-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.category-link:hover .category-icon {
    color: var(--brand-primary);
}

.category-link.active .category-icon {
    color: white;
}

/* ===== 热门标签 ===== */
.tags-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.tags-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: linear-gradient(45deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(75, 123, 236, 0.1);
    position: relative;
    overflow: hidden;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(75, 123, 236, 0.2), transparent);
    transition: left 0.5s ease;
}

.tag-item:hover {
    background: linear-gradient(45deg, #4b7bec 0%, #3867d6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(75, 123, 236, 0.3);
}

.tag-item:hover::before {
    left: 100%;
}

/* ===== 文章列表头部 ===== */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.view-options, .sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-title, .sort-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.view-toggles {
    display: flex;
    background: var(--bg-soft);
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.view-toggle.active {
    background: white;
    color: var(--brand-primary);
}

.sort-select {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
}

/* ===== 推荐文章区域 ===== */
.featured-section {
    margin-bottom: 3rem;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.featured-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: 2px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 160px;
    background: var(--bg-soft);
    overflow: hidden;
}

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

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.featured-content {
    padding: 1.5rem;
}

.featured-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.featured-article-title {
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.featured-article-title a {
    color: var(--text-heading);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.featured-article-title a:hover {
    color: var(--brand-primary);
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.featured-views i {
    margin-right: 0.25rem;
}

/* ===== 文章列表 ===== */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: var(--bg-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-date {
    min-width: 80px;
    text-align: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-date .month {
    font-size: 0.75rem;
    opacity: 0.9;
}

.news-date .day {
    font-size: 1.25rem;
    line-height: 1;
}

.news-content {
    flex: 1;
}

.news-title {
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
    font-size: 1rem;
    text-align: left;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-item:hover .news-title {
    color: var(--brand-primary);
}

.news-excerpt {
    color: var(--text-body);
    font-size: 0.8rem;
    line-height: 1.5;
    color:slategrey;
}

/* 列表视图样式 */
.article-list.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.article-list.list-view .news-item {
    padding: 1rem;
}

/* 网格视图样式 */
.article-list:not(.list-view) .news-item {
    flex-direction: column;
    gap: 1rem;
}

.article-list:not(.list-view) .news-date {
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.article-image {
    height: 200px;
    background: var(--bg-soft);
    overflow: hidden;
}

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

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
    background: linear-gradient(135deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
}

.article-image-placeholder i {
    color: white;
}
    color: var(--brand-primary);
    flex-shrink: 0;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.article-category {
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-category:hover {
    background: var(--brand-primary);
    color: white;
}

.article-date {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--brand-primary);
}

.article-excerpt {
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-name {
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.article-stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}



/* ===== 响应式 ===== */
@media (max-width: 991.98px) {
    .article-card {
        flex-direction: column;
    }

    .article-cover {
        width: 100%;
        min-height: 200px;
    }

    .sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.empty-desc {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-outline-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--brand-primary);
    border-radius: 8px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    color: white;
}

/* 响应式更新 */
@media (max-width: 991.98px) {
    .news-title {
        font-size: 2.5rem;
    }
    
    .articles-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .article-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .news-hero {
        padding: 4rem 0 3rem;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .filter-section {
        padding: 3rem 0;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }

    .article-content {
        padding: 1.5rem;
    }
}

/* 列表视图样式 */
.article-list.list-view {
    grid-template-columns: 1fr;
}

.article-list.list-view .article-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 180px;
}

.article-list.list-view .article-image {
    width: 280px;
    height: 100%;
    min-height: 180px;
}

.article-list.list-view .article-content {
    padding: 1.5rem;
    flex: 1;
}

@media (max-width: 767.98px) {
    .article-list.list-view .article-card {
        flex-direction: column;
    }
    
    .article-list.list-view .article-image {
        width: 100%;
        height: 200px;
    }
}
        padding: 1.25rem;
    }
}