/* ===== TAG标签聚合页 内联样式 ===== */
.tag-banner {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
    overflow: hidden;
}

.tag-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('{dede:global.cfg_templets_skin/}/images/pattern-dots.png') repeat;
    opacity: 0.05;
}

.tag-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.tag-banner-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.tag-banner-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.tag-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tag-stat-item { text-align: center; }
.tag-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.tag-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* 标签云 */
.tag-cloud-section { padding: 60px 0; background: #f8f9fa; }
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px;
}
.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tag-cloud-item:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,102,204,0.25);
}
.tag-cloud-item .tag-count {
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(0,102,204,0.1);
    border-radius: 10px;
    font-size: 0.75rem;
    color: #0066cc;
    transition: all 0.3s;
}
.tag-cloud-item:hover .tag-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.tag-cloud-item.hot {
    font-size: 1.1rem;
    padding: 12px 24px;
}

/* 面包屑 */
.tag-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}
.tag-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}
.tag-breadcrumb-inner a { color: #333; text-decoration: none; }
.tag-breadcrumb-inner a:hover { color: #0066cc; }
.tag-breadcrumb-inner .sep { color: #ccc; }
.tag-breadcrumb-inner .current { color: #999; }

/* 推荐文章 */
.tag-recommend-section { padding: 60px 0; }
.tag-recommend-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}
.tag-recommend-section .section-title h2 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.tag-recommend-section .section-title p {
    color: #666;
    font-size: 0.95rem;
}
.tag-recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tag-recommend-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.tag-recommend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.tag-recommend-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.tag-recommend-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.tag-recommend-card:hover .tag-recommend-card-img img {
    transform: scale(1.05);
}
.tag-recommend-card-body { padding: 20px; }
.tag-recommend-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #999;
}
.tag-recommend-card-meta svg {
    width: 14px;
    height: 14px;
}
.tag-recommend-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tag-recommend-card-title a {
    color: inherit;
    text-decoration: none;
}
.tag-recommend-card-title a:hover { color: #0066cc; }
.tag-recommend-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 移动端 */
@media (max-width: 768px) {
    .tag-banner { padding: 60px 0 40px; }
    .tag-banner-title { font-size: 1.6rem; }
    .tag-banner-desc { font-size: 0.9rem; }
    .tag-stats { gap: 24px; margin-top: 30px; padding-top: 30px; }
    .tag-stat-num { font-size: 1.6rem; }
    .tag-cloud { padding: 10px; gap: 8px; }
    .tag-cloud-item { padding: 8px 14px; font-size: 0.85rem; }
    .tag-recommend-grid { grid-template-columns: 1fr; gap: 16px; }
    .tag-cloud-section, .tag-recommend-section { padding: 40px 0; }
}
@media (max-width: 420px) {
    .tag-banner-title { font-size: 1.3rem; }
    .tag-cloud-item { padding: 6px 12px; font-size: 0.8rem; }
}