/**
 * Cost Advantage Demo Styles - AI Model API Focus
 * 零成本使用文本和图像大模型API样式
 */

.cost-advantage-demo {
    background: var(--yali-card-bg, #ffffff);
    border-radius: var(--yali-radius-lg, 12px);
    box-shadow: var(--yali-shadow-lg, 0 8px 30px rgba(0,0,0,0.08));
    overflow: hidden;
    padding: 1.25rem;
}

/* Model Section */
.model-section {
    margin-bottom: 1rem;
}

.model-section:last-of-type {
    margin-bottom: 0.875rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-cards {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.model-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.625rem 0.875rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex: 1;
    min-width: 100px;
    position: relative;
}

.model-card.free {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.3);
}

.card-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 0.125rem 0.5rem;
    background: #22c55e;
    color: white;
    border-radius: 10px;
    font-weight: 600;
}

.card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.card-level {
    font-size: 0.75rem;
    color: #64748b;
}

.model-card.free .card-level {
    color: #22c55e;
}

/* API Schedule */
.api-schedule {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
}

.schedule-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-bottom: 0.625rem;
}

.schedule-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.schedule-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--yali-primary, #3b82f6);
}

.item-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
}

.schedule-item.active .item-dot {
    background: var(--yali-primary, #3b82f6);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.item-name {
    font-size: 0.8rem;
    color: #475569;
}

.schedule-item.active .item-name {
    color: var(--yali-primary, #3b82f6);
    font-weight: 500;
}

.schedule-arrow {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .cost-advantage-demo {
        padding: 1rem;
    }
    
    .model-cards {
        flex-direction: column;
    }
    
    .schedule-flow {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .schedule-arrow {
        display: none;
    }
}