/* ============================================
   Taxonomy Post Counter — 胶囊标签云样式
   仿深色科技感 UI，横向排列，带数量角标
   ============================================ */

/* ---------- 基础容器 ---------- */
.tpc-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
}

.tpc-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ---------- 搜索框 ---------- */
.tpc-search-bar {
    margin-bottom: 25px;
}

.tpc-search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid #2a3a5a;
    border-radius: 8px;
    background: #0f1a2e;
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.2s;
}

.tpc-search-bar input:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 8px rgba(79, 195, 247, 0.3);
}

/* ---------- 分区标题 ---------- */
.tpc-section {
    margin-bottom: 35px;
}

.tpc-section h2 {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 标题旁的小徽标 */
.tpc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tpc-badge-blue {
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
    border: 1px solid rgba(79, 195, 247, 0.4);
}

.tpc-badge-green {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

/* ---------- 标签云容器 ---------- */
.tpc-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #0d1426;
    border: 1px solid #1a2744;
    border-radius: 12px;
    min-height: 60px;
}

/* ---------- 单个胶囊标签 ---------- */
.tpc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.5;
}

/* 标签文字 */
.tpc-tag-name {
    color: #ffffff;
    white-space: nowrap;
}

/* 数量角标 */
.tpc-tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* ===== 分类样式（蓝色系） ===== */
.tpc-tag-category {
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
    border: 1px solid rgba(79, 195, 247, 0.5);
    box-shadow: 0 0 6px rgba(30, 136, 229, 0.25);
}

.tpc-tag-category:hover {
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    box-shadow: 0 0 12px rgba(30, 136, 229, 0.5);
    transform: translateY(-1px);
}

.tpc-tag-category .tpc-tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ===== 标签样式（紫色/粉紫系） ===== */
.tpc-tag-tag {
    background: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 100%);
    border: 1px solid rgba(186, 104, 255, 0.5);
    box-shadow: 0 0 6px rgba(156, 39, 176, 0.25);
}

.tpc-tag-tag:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #ab47bc 100%);
    box-shadow: 0 0 12px rgba(156, 39, 176, 0.5);
    transform: translateY(-1px);
}

.tpc-tag-tag .tpc-tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ===== 自定义分类法样式（青绿系） ===== */
.tpc-tag-custom {
    background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
    border: 1px solid rgba(38, 166, 154, 0.5);
    box-shadow: 0 0 6px rgba(0, 137, 123, 0.25);
}

.tpc-tag-custom:hover {
    background: linear-gradient(135deg, #00796b 0%, #009688 100%);
    box-shadow: 0 0 12px rgba(0, 137, 123, 0.5);
    transform: translateY(-1px);
}

.tpc-tag-custom .tpc-tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ---------- 前台容器微调 ---------- */
.tpc-frontend {
    background: #0d1426;
    border: 1px solid #1a2744;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

/* ---------- 空状态 ---------- */
.tpc-tag-cloud:empty::after {
    content: '暂无数据';
    color: #555;
    font-size: 14px;
    padding: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .tpc-tag {
        font-size: 12px;
        padding: 5px 11px;
    }

    .tpc-section h2 {
        font-size: 16px;
    }
}
