.tag-container {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 0 16px 40px 16px;
}
.tag-header {
    text-align: center;
    margin-bottom: 40px;
}
.tag-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2563eb;
}
.tag-desc {
    color: #888;
    margin-bottom: 18px;
    font-size: 15px;
}
.tag-stats {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 18px;
}
.tag-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
    margin-bottom: 36px;
}
.tag-post-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.tag-post-card:hover {
    transform: translateY(-4px) scale(1.02);
}
.tag-post-thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}
.tag-post-thumbnail img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.tag-post-content {
    padding: 18px 18px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tag-post-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.tag-post-title a {
    color: #222;
    text-decoration: none;
}
.tag-post-title a:hover {
    color: #2563eb;
}
.tag-post-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
    flex: 1;
}
.tag-post-meta {
    font-size: 13px;
    color: #888;
    margin-top: auto;
}
.tag-post-date i {
    margin-right: 5px;
}
.tag-pagination {
    text-align: center;
    margin: 32px 0 0 0;
}
.tag-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 14px;
    border-radius: 6px;
    background: #f3f6fa;
    color: #2563eb;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.tag-pagination .page-numbers.current,
.tag-pagination .page-numbers:hover {
    background: #2563eb;
    color: #fff;
}
.no-posts {
    color: #aaa;
    text-align: center;
    font-size: 16px;
    padding: 40px 0;
}
@media (max-width: 800px) {
    .tag-list {
        grid-template-columns: 1fr;
    }
}
.tag-related {
    margin: 18px 0 0 0;
    text-align: center;
}
.tag-related-title {
    color: #888;
    font-size: 14px;
    margin-right: 8px;
}
.tag-related-item {
    display: inline-block;
    background: #f3f6fa;
    color: #2563eb;
    font-size: 14px;
    padding: 4px 14px;
    border-radius: 16px;
    text-decoration: none;
    margin: 0 4px 6px 0;
    transition: background 0.2s, color 0.2s;
}
.tag-related-item:hover {
    background: #2563eb;
    color: #fff;
} 