/**
 * B2圈子智能标签系统 - 样式
 * @version 1.0.0
 * @since 2025-12-14
 */

/* ========== 话题标签显示 ========== */
.feihe-topic-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #0d47a1;
}

.feihe-topic-tags .tags-icon {
    font-size: 16px;
    margin-right: 4px;
}

.feihe-topic-tags .topic-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    color: #0d47a1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #e3e8ee;
    transition: all 0.2s ease;
}

.feihe-topic-tags .topic-tag:hover {
    background: #0d47a1;
    color: #fff;
    border-color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

/* ========== 相关话题推荐 ========== */
.feihe-related-topics {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.feihe-related-topics .related-title {
    margin: 0 0 15px;
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
}

.feihe-related-topics .related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feihe-related-topics .related-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.feihe-related-topics .related-item:last-child {
    border-bottom: none;
}

.feihe-related-topics .related-link {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}

.feihe-related-topics .related-link:hover {
    color: #0d47a1;
}

.feihe-related-topics .related-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

/* ========== 热门标签云 ========== */
.feihe-tag-cloud {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.feihe-tag-cloud .tag-cloud-title {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.feihe-tag-cloud .tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 2;
}

.feihe-tag-cloud .tag-cloud-item {
    display: inline-block;
    padding: 4px 10px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.feihe-tag-cloud .tag-cloud-item:hover {
    color: #0d47a1;
    background: rgba(13, 71, 161, 0.1);
    border-radius: 4px;
}

/* ========== 标签输入框 ========== */
.feihe-tag-input-wrapper {
    margin: 15px 0;
}

.feihe-tag-input-wrapper .tag-input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.feihe-tag-input-wrapper .tag-input-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 44px;
    transition: border-color 0.2s;
}

.feihe-tag-input-wrapper .tag-input-container:focus-within {
    border-color: #0d47a1;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.feihe-tag-input-wrapper .selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feihe-tag-input-wrapper .selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #0d47a1;
    font-size: 13px;
    border-radius: 16px;
    animation: tagFadeIn 0.2s ease;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feihe-tag-input-wrapper .tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
    font-style: normal;
    color: #0d47a1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.feihe-tag-input-wrapper .tag-remove:hover {
    background: #0d47a1;
    color: #fff;
}

.feihe-tag-input-wrapper .tag-input {
    flex: 1;
    min-width: 100px;
    padding: 4px 0;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.feihe-tag-input-wrapper .tag-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.feihe-tag-input-wrapper .suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s;
}

.feihe-tag-input-wrapper .suggestion-item:hover {
    background: #f5f5f5;
}

.feihe-tag-input-wrapper .suggestion-item small {
    color: #999;
    margin-left: 4px;
}

.feihe-tag-input-wrapper .popular-tags-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
}

.feihe-tag-input-wrapper .hint-label {
    color: #999;
}

.feihe-tag-input-wrapper .hint-tag {
    display: inline-block;
    padding: 2px 8px;
    color: #666;
    background: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.feihe-tag-input-wrapper .hint-tag:hover {
    color: #0d47a1;
    background: #e3f2fd;
}

/* ========== 标签聚合页 ========== */
.feihe-tag-page-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 20px;
}

.feihe-tag-page-header .tag-name {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
}

.feihe-tag-page-header .tag-stats {
    font-size: 14px;
    opacity: 0.9;
}

.feihe-tag-page-header .tag-stats span {
    margin-right: 15px;
}

/* ========== 相关标签 ========== */
.feihe-related-tags {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.feihe-related-tags h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.feihe-related-tags .related-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feihe-related-tags .related-tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.2s;
}

.feihe-related-tags .related-tag-item:hover {
    background: #e3f2fd;
    color: #0d47a1;
}

.feihe-related-tags .related-tag-item small {
    color: #999;
    margin-left: 2px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .feihe-topic-tags {
        padding: 12px;
        gap: 6px;
    }
    
    .feihe-topic-tags .topic-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .feihe-related-topics {
        padding: 15px;
        margin: 20px 0;
    }
    
    .feihe-related-topics .related-title {
        font-size: 15px;
    }
    
    .feihe-related-topics .related-link {
        font-size: 13px;
    }
    
    .feihe-tag-cloud {
        padding: 15px;
    }
    
    .feihe-tag-input-wrapper .tag-input-container {
        padding: 6px 10px;
    }
    
    .feihe-tag-input-wrapper .selected-tag {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .feihe-tag-input-wrapper .popular-tags-hint {
        margin-top: 8px;
    }
    
    .feihe-tag-page-header {
        padding: 20px 15px;
    }
    
    .feihe-tag-page-header .tag-name {
        font-size: 22px;
    }
    
    .feihe-tag-page-header .tag-stats {
        font-size: 13px;
    }
}

