/* 代理商信息库插件样式 */

.agent-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.agent-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.credibility-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.credibility-high { 
    color: #28a745; 
}

.credibility-medium { 
    color: #ffc107; 
}

.credibility-low { 
    color: #dc3545; 
}

.tag-item {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.points-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
}

.ranking-card {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.ranking-card:hover {
    border-left-color: #0056b3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ranking-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.ranking-gold { color: #ffd700; }
.ranking-silver { color: #c0c0c0; }
.ranking-bronze { color: #cd7f32; }

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.form-floating-custom {
    position: relative;
}

.form-floating-custom .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating-custom label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.batch-import-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.batch-import-area:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.batch-import-area.dragover {
    border-color: #28a745;
    background-color: #f8fff8;
}

.followup-timeline {
    position: relative;
    padding-left: 2rem;
}

.followup-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.followup-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.followup-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #007bff;
}

.agent-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
}

.contact-info-locked {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.contact-info-unlocked {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
}

.gift-exchange-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gift-exchange-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.1);
}

.points-animation {
    animation: pointsGlow 2s infinite;
}

@keyframes pointsGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255,193,7,0.5); 
    }
    50% { 
        box-shadow: 0 0 20px rgba(255,193,7,0.8); 
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-section {
        padding: 1rem 0;
    }
    
    .agent-card {
        margin-bottom: 1rem;
    }
    
    .ranking-number {
        font-size: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}