/* Python技术气泡样式 */
.python-tech-bubble {
    position: relative;
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(55, 118, 171, 0.3);
    margin: 8px;
}

.python-tech-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 118, 171, 0.4);
    color: white;
    text-decoration: none;
}

.python-tech-bubble::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3776ab, #ffd43b, #3776ab);
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.python-tech-bubble:hover::before {
    opacity: 1;
}

.python-tech-bubble-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.python-tech-bubble.small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
}

.python-tech-bubble.large {
    padding: 16px 24px;
    font-size: 18px;
    border-radius: 30px;
}

/* 不同技术主题的气泡 */
.python-tech-bubble.django {
    background: linear-gradient(135deg, #092e20 0%, #44b78b 100%);
    box-shadow: 0 4px 15px rgba(9, 46, 32, 0.3);
}

.python-tech-bubble.flask {
    background: linear-gradient(135deg, #000000 0%, #ffffff 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.python-tech-bubble.fastapi {
    background: linear-gradient(135deg, #009688 0%, #4caf50 100%);
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

.python-tech-bubble.data-science {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.python-tech-bubble.ai-ml {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 动画效果 */
@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.python-tech-bubble.animated {
    animation: bubble-float 3s ease-in-out infinite;
}

.python-tech-bubble.animated:nth-child(2) {
    animation-delay: 0.5s;
}

.python-tech-bubble.animated:nth-child(3) {
    animation-delay: 1s;
}

.python-tech-bubble.animated:nth-child(4) {
    animation-delay: 1.5s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .python-tech-bubble {
        padding: 10px 16px;
        font-size: 14px;
        margin: 4px;
    }
    
    .python-tech-bubble.large {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .python-tech-bubble-container {
        gap: 4px;
        margin: 12px 0;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .python-tech-bubble {
        box-shadow: 0 4px 15px rgba(55, 118, 171, 0.5);
    }
    
    .python-tech-bubble:hover {
        box-shadow: 0 6px 20px rgba(55, 118, 171, 0.6);
    }
}