/* 列表页面样式 */

/* 主要内容区域 */
.news-section {
    background: #f7f8fa;
    padding: 120px 0 80px 0;
    margin-top: 72px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 60px;
}

.page-title h1 {
    font-size: 36px;
    color: #222;
    margin-bottom: 16px;
    font-weight: 600;
}

.page-title p {
    font-size: 18px;
    color: #555;
    margin: 0;
}

/* 左右布局 */
.news-layout {
    display: flex;
    gap: 40px;
}

/* 左侧最新资讯侧边栏 */
.latest-news-sidebar {
    width: 360px;
    flex-shrink: 0;
}

.sidebar-header {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 32px 24px 24px 24px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.sidebar-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.sidebar-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.latest-news-list {
    background: #fff;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-top: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.latest-news-item {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

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

.latest-news-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.latest-news-item.featured {
    background: linear-gradient(135deg, #2563ff 0%, #1e40af 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.latest-news-item.featured::before {
    content: '🔥';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 16px;
}

.latest-news-item.featured:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateX(4px);
}

.featured-thumbnail {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.latest-news-item:hover .featured-thumbnail img {
    transform: scale(1.05);
}

.latest-news-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.latest-news-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.latest-news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-news-item:not(.featured) .latest-news-title a {
    color: #1e293b;
}

.latest-news-item:not(.featured) .latest-news-title a:hover {
    color: #2563ff;
}

.latest-news-item.featured .latest-news-title a:hover {
    color: #fbbf24;
}

.latest-news-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    align-items: center;
}

.latest-news-category {
    background: rgba(37,99,255,0.1);
    color: #2563ff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.latest-news-item.featured .latest-news-category {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.latest-news-time {
    color: #64748b;
}

.latest-news-item.featured .latest-news-time {
    color: rgba(255,255,255,0.8);
}

.latest-news-summary {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右侧文章列表主区域 */
.articles-main {
    flex: 1;
}

.articles-header {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 32px 24px 24px 24px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.articles-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.articles-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* 文章列表 */
.articles-container {
    background: #fff;
    border-radius: 0 0 16px 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-top: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37,99,255,0.1);
    border-color: #2563ff;
}

.article-thumbnail {
    width: 200px;
    min-width: 200px;
    height: 150px;
    overflow: hidden;
    position: relative;
}

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

.article-item:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
}

.article-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.article-title a:hover {
    color: #2563ff;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.article-category {
    background: rgba(37,99,255,0.1);
    color: #2563ff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.article-time {
    color: #64748b;
}

.article-summary {
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* 分页样式调整 */
.pagination {
    margin-top: 32px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.page-link {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-link:hover {
    background: #2563ff;
    color: #fff;
    border-color: #2563ff;
    transform: translateY(-1px);
}

.page-link.active {
    background: #2563ff;
    color: #fff;
    border-color: #2563ff;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #2563ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态样式 */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
}

.no-content::before {
    content: '📄';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

/* 产品列表 */
.products-list {
    padding: 40px 0;
}

.products-list h1 {
    font-size: 28px;
    color: #222;
    margin-bottom: 32px;
    text-align: center;
}

.list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37,99,255,0.12);
    border-color: #2563ff;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
}

.product-info h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-info h3 a:hover {
    color: #2563ff;
}

.product-price {
    margin-bottom: 12px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #dc2626;
}

.original-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-summary {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 分类筛选 */
.category-filter {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 6px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.filter-tag:hover,
.filter-tag.active {
    background: #2563ff;
    color: #fff;
    border-color: #2563ff;
}

/* 搜索框 */
.search-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563ff;
    box-shadow: 0 0 0 3px rgba(37,99,255,0.1);
}

/* 排序选项 */
.sort-options {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover,
.sort-btn.active {
    background: #2563ff;
    color: #fff;
    border-color: #2563ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-section {
        padding: 100px 0 60px 0;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-title p {
        font-size: 16px;
    }
    
    .news-layout {
        flex-direction: column;
        gap: 32px;
    }

    .latest-news-sidebar {
        width: 100%;
    }

    .article-item {
        flex-direction: column;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .article-content {
        padding: 16px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .filter-tags {
        justify-content: center;
    }
} 