/**
 * Blog Archive Styles
 * 文章归档页面样式
 */

/* ========== 容器 ========== */
.blog-archive-wrapper {
    width: 100%;
    padding: 60px 0;
    background-color: #ffffff;
}

.blog-archive-wrapper .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== 顶部特色文章区域 ========== */
.blog-featured-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

/* 左侧特色图 */
.blog-featured-image {
    position: relative;
    overflow: hidden;
}

.blog-featured-image a {
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-featured-image a:hover img {
    transform: scale(1.05);
}

/* 右侧内容 */
.blog-featured-content {
    padding: 20px 0;
    position: relative;
    min-height: 300px;
}

.blog-featured-left {
    margin-bottom: 60px;
}

.blog-featured-category {
    margin-bottom: 12px;
}

.blog-featured-category .category-label {
    display: inline-block;
    color: #ab8e66;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-featured-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.blog-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-featured-title a:hover {
    color: #ab8e66;
}

.blog-featured-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 24px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: #ab8e66;
}

.blog-read-more i {
    font-size: 12px;
}

/* 时间容器 - 右下角 */
.blog-featured-date-container {
    position: absolute;
    bottom: 0;
    right: 0;
}

.blog-date {
    font-size: 14px;
    color: #999999;
    font-weight: 400;
    white-space: nowrap;
}

/* ========== 分类导航 ========== */
.blog-category-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.category-filter-btn {
    display: inline-block;
    padding: 12px 0;
    background-color: transparent;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter-btn:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.category-filter-btn.active {
    color: #ab8e66;
    border-bottom-color: #ab8e66;
}

/* ========== 文章网格 (3列) ========== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* 文章卡片 */
.blog-post-card {
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-8px);
}

.blog-post-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-post-image a {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
}

.blog-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.08);
}

.blog-post-content {
    padding: 0;
}

.blog-post-category {
    margin-bottom: 12px;
}

.blog-post-category .category-tag {
    display: inline-block;
    font-size: 11px;
    color: #ab8e66;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #ab8e66;
}

.blog-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 16px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.blog-post-date {
    font-size: 12px;
    color: #999999;
}

.blog-post-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.blog-post-link:hover {
    color: #ab8e66;
}

.blog-post-link i {
    font-size: 10px;
}

/* ========== 无文章提示 ========== */
.blog-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.blog-no-posts p {
    font-size: 18px;
    color: #999999;
}

/* ========== 分页 ========== */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-list li {
    margin: 0;
}

.pagination-prev,
.pagination-next,
.pagination-link,
.pagination-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-prev:hover,
.pagination-next:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.pagination-current {
    background-color: #ab8e66;
    color: #ffffff;
    border-color: #ab8e66;
    font-weight: 600;
}

/* ========== 响应式设计 ========== */

/* 平板 */
@media (max-width: 1024px) {
    .blog-archive-wrapper .container {
        padding: 0 30px;
    }
    
    .blog-featured-section {
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .blog-featured-title {
        font-size: 30px;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 手机横屏 */
@media (max-width: 768px) {
    .blog-archive-wrapper {
        padding: 40px 0;
    }
    
    .blog-archive-wrapper .container {
        padding: 0 20px;
    }
    
    .blog-featured-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .blog-featured-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .blog-featured-excerpt {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .blog-category-nav {
        gap: 24px;
        margin-bottom: 32px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-filter-btn {
        white-space: nowrap;
        padding: 10px 0;
        font-size: 13px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }
}

/* 手机竖屏 */
@media (max-width: 480px) {
    .blog-featured-title {
        font-size: 22px;
    }
    
    .blog-read-more {
        font-size: 12px;
    }
    
    .blog-date {
        font-size: 12px;
    }
    
    .blog-post-title {
        font-size: 18px;
    }
    
    .pagination-prev,
    .pagination-next,
    .pagination-link,
    .pagination-current {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ========== 加载动画 - 骨架屏 ========== */

/* 骨架屏闪烁动画 */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 加载状态 */
.blog-posts-grid.loading {
    position: relative;
    min-height: 600px;
}

/* 隐藏真实内容，显示骨架屏 */
.blog-posts-grid.loading .blog-post-card {
    pointer-events: none;
}

.blog-posts-grid.loading .blog-post-image img,
.blog-posts-grid.loading .blog-post-category .category-tag,
.blog-posts-grid.loading .blog-post-title a,
.blog-posts-grid.loading .blog-post-excerpt,
.blog-posts-grid.loading .blog-post-date,
.blog-posts-grid.loading .blog-post-link {
    visibility: hidden;
}

/* 图片骨架屏 */
.blog-posts-grid.loading .blog-post-image {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* 分类名称骨架屏 */
.blog-posts-grid.loading .blog-post-category::after {
    content: '';
    display: inline-block;
    width: 80px;
    height: 14px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* 标题骨架屏 - 两行 */
.blog-posts-grid.loading .blog-post-title {
    position: relative;
    height: 56px;
}

.blog-posts-grid.loading .blog-post-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.blog-posts-grid.loading .blog-post-title::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    width: 70%;
    height: 24px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* 描述骨架屏 - 三行 */
.blog-posts-grid.loading .blog-post-excerpt {
    position: relative;
    height: 60px;
}

.blog-posts-grid.loading .blog-post-excerpt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.blog-posts-grid.loading .blog-post-excerpt::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    width: 95%;
    height: 16px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* 底部元信息骨架屏 */
.blog-posts-grid.loading .blog-post-meta {
    position: relative;
}

/* 时间骨架屏 */
.blog-posts-grid.loading .blog-post-date::before {
    content: '';
    display: inline-block;
    width: 90px;
    height: 14px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* 阅读更多骨架屏 */
.blog-posts-grid.loading .blog-post-link::before {
    content: '';
    display: inline-block;
    width: 100px;
    height: 14px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* 卡片淡入动画 */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-card {
    animation: fadeInCard 0.6s ease-out forwards;
}

/* 不同卡片的延迟 */
.blog-post-card:nth-child(1) { animation-delay: 0s; }
.blog-post-card:nth-child(2) { animation-delay: 0.1s; }
.blog-post-card:nth-child(3) { animation-delay: 0.2s; }
.blog-post-card:nth-child(4) { animation-delay: 0.3s; }
.blog-post-card:nth-child(5) { animation-delay: 0.4s; }
.blog-post-card:nth-child(6) { animation-delay: 0.5s; }
.blog-post-card:nth-child(7) { animation-delay: 0.6s; }
.blog-post-card:nth-child(8) { animation-delay: 0.7s; }
.blog-post-card:nth-child(9) { animation-delay: 0.8s; }

