/* ========================================
   标签列表页样式
   ======================================== */

/* 标签页背景 Banner（纯装饰） */
.tags-banner {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.tags-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.tags-page {
    max-width: 75vw;
    width: 75%;
    margin: 30px auto 40px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tags-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tags-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.tag-name {
    color: #667eea;
}

.tags-count {
    font-size: 14px;
    color: #999;
}

/* 文章列表 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.article-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #667eea;
}

.article-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.meta-item {
    display: inline-block;
}

/* 无文章提示 */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
}

.tag-cloud-item {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f2ff;
    color: #667eea;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud-item:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* 返回首页链接 */
.page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: center;
}

.back-home-link {
    display: inline-block;
    padding: 10px 20px;
    color: #667eea;
    text-decoration: none;
    border: 1px solid #667eea;
    border-radius: 6px;
    transition: all 0.3s;
}

.back-home-link:hover {
    background: #667eea;
    color: #fff;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .tags-banner {
        height: 100px;
    }
    
    .tags-page {
        max-width: none;
        width: 95%;
        margin: 120px auto 20px;
        padding: 20px;
    }

    .tags-header h1 {
        font-size: 22px;
    }

    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}