/* ==================== 博客列表页样式 ==================== */

/* Hero 区域 */
.blog-list-hero {
    background: linear-gradient(135deg, #e8ecf1 0%, #d1d8e0 50%, #c8d6e5 100%);
    padding: 120px 0 60px;
}

/* 面包屑和分类标题 */
.blog-hero-header {
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 2.5%;
}

/* Hero 面包屑 */
.blog-hero-breadcrumb {
    margin-bottom: 20px;
    font-family: "poppins"!important;
}

.blog-hero-breadcrumb .breadcrumbs {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    background: transparent;
}

.blog-hero-breadcrumb .breadcrumbs nav {
    padding: 10px 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blog-hero-breadcrumb .breadcrumbs a,
.blog-hero-breadcrumb nav a {
    color: #666;
    text-decoration: none;
}

.blog-hero-breadcrumb .breadcrumbs a:hover,
.blog-hero-breadcrumb nav a:hover {
    color: #1a1a2e;
}

.blog-hero-breadcrumb .current,
.blog-hero-breadcrumb .breadcrumb_last {
    color: #1a1a2e;
    font-weight: 500;
}

.blog-hero-cat-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.blog-hero-cat-desc {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.blog-list-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* 左侧大卡片 */
.hero-featured-card {
    position: relative;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.hero-featured-content {
    position: relative;
    z-index: 2;
    background: #fff;
    margin: 20px;
    padding: 30px;
    border-radius: 0 12px 12px 12px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

/* Corner Hero 副标题 */
.hero-featured-subtitle {
    position: absolute;
    top: -44px;
    left: 0;
    background: #fff;
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 15px 20px;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

.hero-featured-subtitle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 16px;
    height: 16px;
    background: transparent;
    border-bottom-left-radius: 16px;
    box-shadow: -8px 8px 0 8px #fff;
}

.hero-featured-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.hero-featured-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 12px 0;
}

.hero-featured-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.hero-featured-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid #1a1a2e;
    border-radius: 50px;
    transition: all 0.2s ease;
    margin-top: auto;
    box-sizing: border-box;
}

.hero-featured-btn:hover {
    background: #1a1a2e;
    color: #fff;
}

/* 右侧 Trending Topics */
.hero-trending {
    background: transparent;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trending-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.trending-item:hover {
    background: #f0f0f0;
}

.trending-content {
    flex: 1;
}

.trending-item-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: #1a1a2e;
    margin: 0;
}

.trending-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-thumb img,
.trending-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
}

.trending-placeholder i {
    font-size: 20px;
    color: #999;
}

/* 筛选区域 */
.blog-filter {
    background: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5%;
}

/* 分类 Tab */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0 16px 0;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.2s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: #1a1a2e;
    color: #fff;
}

/* 文章列表 */
.blog-grid {
    background: #fff;
    padding: 30px 0;
}

.blog-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5%;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* 列表卡片 */
.blog-grid-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.blog-grid-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.blog-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-grid-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.blog-grid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
}

.blog-grid-placeholder i {
    font-size: 40px;
    color: #999;
}

/* Corner Tag */
.blog-grid-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #fff;
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 15px 20px;
    border-top-right-radius: 16px;
}

.blog-grid-tag::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 16px;
    height: 16px;
    background: transparent;
    border-bottom-left-radius: 16px;
    box-shadow: -8px 8px 0 8px #fff;
}

.blog-grid-tag::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 16px;
    height: 16px;
    background: transparent;
    border-bottom-left-radius: 16px;
    box-shadow: -8px 8px 0 8px #fff;
}

.blog-grid-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.blog-grid-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-grid-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-grid-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.blog-grid-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid #1a1a2e;
    border-radius: 50px;
    transition: all 0.2s ease;
    margin-top: auto;
    box-sizing: border-box;
}

.blog-grid-btn:hover {
    background: #1a1a2e;
    color: #fff;
}

/* 分页 */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.blog-pagination a:hover,
.blog-pagination .current {
    background: #1a1a2e;
    color: #fff;
}

.blog-pagination i {
    font-size: 12px;
}

/* 无结果 */
.blog-no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 60px 0;
}

/* ==================== 响应式 ==================== */
@media screen and (max-width: 1024px) {
    .blog-list-hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-trending {
        order: -1;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .blog-list-hero {
        padding: 70px 0 60px;
    }
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tab {
        white-space: nowrap;
    }
}