/**
 * 博客标签页样式
 * 包含：标签云、标签文章列表、分页等样式
 */

/* 标签页基础样式 */
.tag-page {
    font-family: 'Noto Serif SC', Georgia, serif;
    background: #FAFAFA;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 标签云 */
.tag-cloud {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    position: relative;
    z-index: 2;
}

.tag-cloud-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0A0A0A;
    margin-bottom: 2rem;
}

.tag-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 2;
}

.tag-cloud-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563EB;
}

.tag-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
}

/* 当前标签标题 */
.current-tag-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
}

.current-tag-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.current-tag-name {
    font-size: 2rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 0.75rem;
}

.current-tag-stats {
    color: #6B6B6B;
    font-size: 0.95rem;
}

/* 文章列表 */
.tag-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

@media (max-width: 1024px) {
    .tag-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .tag-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 博客卡片样式 */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.blog-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-content {
    padding: 1.5rem;
}

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

.blog-card-category {
    font-weight: 600;
}

.blog-card-date {
    color: #9CA3AF;
}

.blog-card-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #0A0A0A;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: #6B6B6B;
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 空状态 */
.tag-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #9CA3AF;
}

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

/* 分页 */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem auto 4rem;
    padding: 0 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 10px;
    background: white;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}

.pagination-ellipsis {
    color: #9CA3AF;
    padding: 0 0.5rem;
}

/* 返回标签云按钮 */
.back-to-tags {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    color: #6B6B6B;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.back-to-tags:hover {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}
