/* 微信二维码卡片样式 - 优化版 */

.contact-qr-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.contact-qr-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* 头部样式 */
.qr-card-header {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.wechat-badge {
    background: linear-gradient(135deg, #07c160 0%, #05a350 50%, #048b43 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 8px 25px rgba(7, 193, 96, 0.35),
        0 2px 5px rgba(7, 193, 96, 0.2);
    font-size: 1.15rem;
    position: relative;
    overflow: hidden;
}

.wechat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.wechat-badge i {
    font-size: 1.4rem;
}

/* 主体内容 */
.qr-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* 二维码区域 */
.qr-image-wrapper {
    position: relative;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
}

.qr-frame {
    position: relative;
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.qr-scan-line {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #22c55e, #10b981, transparent);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% {
        top: 10px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: calc(100% - 13px);
        opacity: 0;
    }
}

/* 四角装饰 */
.qr-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 4px solid #2563eb;
    transition: all 0.3s ease;
}

.contact-qr-card:hover .corner {
    border-color: #0ea5e9;
}

.corner-tl {
    top: 4px;
    left: 4px;
    border-right: none;
    border-bottom: none;
    border-radius: 12px 0 0 0;
}

.corner-tr {
    top: 4px;
    right: 4px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 12px 0 0;
}

.corner-bl {
    bottom: 4px;
    left: 4px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 12px;
}

.corner-br {
    bottom: 4px;
    right: 4px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 12px 0;
}

/* 信息区域 */
.qr-info {
    text-align: center;
    width: 100%;
}

.qr-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.qr-info p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 服务标签 */
.qr-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.benefit-tag {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.benefit-tag:hover {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    border-color: transparent;
}

.benefit-tag i {
    font-size: 0.75rem;
}

/* 底部电话 */
.qr-card-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.qr-card-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
}

.phone-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.phone-alt:hover {
    color: #2563eb;
    transform: scale(1.05);
}

.phone-alt i {
    color: #2563eb;
    font-size: 1.1rem;
    animation: pulse-phone 2s infinite;
}

@keyframes pulse-phone {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-qr-card {
        padding: 28px;
        border-radius: 24px;
    }
    
    .qr-frame {
        width: 170px;
        height: 170px;
    }
    
    .wechat-badge {
        padding: 10px 22px;
        font-size: 1.05rem;
    }
    
    .qr-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-tag {
        width: 100%;
        justify-content: center;
    }
    
    .qr-info h4 {
        font-size: 1.15rem;
    }
}
