/* 标签页面容器 */
.tag-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

/* 标签页头部 */
.tag-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.tag-title {
    font-size: 1.8em;
    color: #2d3748;
    margin-bottom: 15px;
}

.tag-title i {
    color: #3182ce;
    margin-right: 10px;
}

.tag-meta {
    color: #718096;
    font-size: 1rem;
}

.tag-meta i {
    margin-right: 5px;
}

/* 文章网格布局 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 文章卡片样式 */
.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 缩略图样式 */
.post-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #f7fafc;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    color: #a0aec0;
    font-size: 2em;
}

/* 文章信息样式 */
.post-info {
    padding: 20px;
}

.post-title {
    font-size: 1.2em;
    margin: 0 0 15px;
    line-height: 1.4;
}

.post-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3182ce;
}

/* 文章元信息 */
.post-meta {
    display: flex;
    gap: 15px;
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #3182ce;
}

/* 文章摘要 */
.post-excerpt {
    color: #718096;
    font-size: 0.95em;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页导航 */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #fff;
    color: #2d3748;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .current {
    background: #3182ce;
    color: #fff;
}

.pagination a:hover {
    background: #3182ce;
    color: #fff;
}

/* 无文章提示 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.no-posts i {
    font-size: 3em;
    color: #a0aec0;
    margin-bottom: 20px;
}

.no-posts p {
    color: #718096;
    font-size: 1.1em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tag-container {
        margin: 100px auto 30px;
        padding: 0 15px;
    }

    .tag-header {
        padding: 20px;
        margin-bottom: 30px;
    }

    .tag-title {
        font-size: 1.5em;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-info {
        padding: 15px;
    }

    .post-title {
        font-size: 1.1em;
    }
}