/**
 * 智能标签云前端样式 - 简洁版本
 */

/* Smart Tag Cloud 基础样式 - 简洁B2主题风格 */
.smart-tag-cloud {
    margin: 15px 0;
    padding: 0 16px;
    line-height: 1.6;
    
}

.smart-tag-cloud a {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 6px 8px 0;
    background: #E5EFFF;
    color: #0066FF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px !important;
    font-weight: normal;
    border: 1px solid #E5EFFF;
    transition: all 0.2s ease;
}

.smart-tag-cloud a:hover {
    background: #0066ff;
    color: #fff;
    border-color: #0066ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

/* 标签计数样式 - 简化 */
.smart-tag-cloud .stc-count {
    font-size: 0.9em;
    color: #0066FF;
    margin-left: 4px;
    font-weight: normal;
}

.smart-tag-cloud a:hover .stc-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 完全移除所有装饰性标记和符号 */
.smart-tag-cloud .stc-source-current_post::before,
.smart-tag-cloud .stc-source-same_category::before,
.smart-tag-cloud a::before,
.smart-tag-cloud a::after {
    display: none !important;
    content: none !important;
}

/* 移除复杂的优先级样式，使用统一的简洁样式 */
.smart-tag-cloud .stc-priority-3 a,
.smart-tag-cloud .stc-priority-2 a,
.smart-tag-cloud .stc-priority-1 a {
    font-size: 12px !important;
    font-weight: normal !important;
    padding: 6px 16px !important;
    background: #E5EFFF !important;
    color: #0066FF !important;
    border-radius: 4px !important;
}

/* 移除所有配色方案，保持统一的简洁风格 */
.smart-tag-cloud.stc-blue a,
.smart-tag-cloud.stc-green a,
.smart-tag-cloud.stc-red a,
.smart-tag-cloud.stc-purple a,
.smart-tag-cloud.stc-gradient a {
    background: #E5EFFF !important;
    color: #0066FF !important;
    border-color: #E5EFFF !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    padding: 6px 16px !important;
}

.smart-tag-cloud.stc-blue a:hover,
.smart-tag-cloud.stc-green a:hover,
.smart-tag-cloud.stc-red a:hover,
.smart-tag-cloud.stc-purple a:hover,
.smart-tag-cloud.stc-gradient a:hover {
    background: #007cba !important;
    color: #fff !important;
    border-color: #007cba !important;
}

/* 保留基本的加载状态样式 */
.smart-tag-cloud.stc-loading {
    position: relative;
    min-height: 60px;
}

.smart-tag-cloud.stc-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: stc-spin 1s linear infinite;
}

@keyframes stc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 无标签状态 */
.stc-no-tags {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .smart-tag-cloud a {
        padding: 6px 16px;
        margin: 0 4px 6px 0;
        font-size: 12px !important;
        background: #E5EFFF !important;
        color: #0066FF !important;
        border-radius: 4px !important;
    }
    
    .smart-tag-cloud .stc-count {
        display: none;
    }
}

@media (max-width: 480px) {
    .smart-tag-cloud a {
        padding: 6px 16px;
        font-size: 12px !important;
        background: #E5EFFF !important;
        color: #0066FF !important;
        border-radius: 4px !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .smart-tag-cloud a {
        border: 2px solid #0066FF;
        background: #E5EFFF;
        color: #0066FF;
        border-radius: 4px;
    }
    
    .smart-tag-cloud a:hover {
        background: #0066FF;
        color: white;
        border-color: #0066FF;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .smart-tag-cloud a {
        transition: none;
        animation: none;
    }
    
    .smart-tag-cloud a:hover {
        transform: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .smart-tag-cloud a {
        background: #E5EFFF;
        color: #0066FF;
        border-color: #E5EFFF;
        border-radius: 4px;
    }
    
    .smart-tag-cloud a:hover {
        background: #007cba;
        color: white;
        border-color: #007cba;
    }
    
    .stc-no-tags {
        background: #343a40;
        color: #adb5bd;
        border-color: #495057;
    }
}

/* 打印样式 */
@media print {
    .smart-tag-cloud a {
        background: none !important;
        color: black !important;
        border: 1px solid black !important;
        box-shadow: none !important;
        transform: none !important;
        border-radius: 4px !important;
    }
    
    .smart-tag-cloud .stc-count {
        display: none;
    }
}