/* 弹窗样式 - 马帮传奇 */

/* 弹窗遮罩层 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 弹窗容器 */
.popup-container {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(224, 69, 36, 0.3);
}

.popup-overlay.show .popup-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 弹窗头部 */
.popup-header {
    background: linear-gradient(45deg, #e04524, #c0392b);
    padding: 20px;
    position: relative;
    text-align: center;
}

.popup-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.popup-title {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 弹窗内容 */
.popup-content {
    padding: 25px;
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}

/* 技能标签 */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.skill-tag {
    background: rgba(224, 69, 36, 0.2);
    color: #ddbf71;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: rgba(224, 69, 36, 0.3);
}

.skill-tag i {
    font-size: 16px;
}

/* 联系信息 */
.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(221, 191, 113, 0.2);
}

.contact-qr {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #e04524;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-title {
    color: #ddbf71;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-value {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-value i {
    color: #e04524;
}

/* 弹窗按钮 */
.popup-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.popup-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-btn-primary {
    background: linear-gradient(45deg, #e04524, #c0392b);
    color: #fff;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(192, 57, 43, 0.4);
}

.popup-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 关闭按钮 */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
    .popup-container {
        width: 95%;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-content {
        padding: 15px;
        font-size: 14px;
    }
    
    .skill-tags {
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .contact-qr {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .contact-value {
        font-size: 16px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
}