/* =========================================================
   Contact Button & Modal - Premium Design
   ========================================================= */

/* 浮动咨询按钮 */
.contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d4ff 0%, #4c7cf5 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.contact-btn-icon {
    animation: iconBounce 2s ease-in-out infinite;
}

.contact-btn-text {
    display: none;
}

.contact-btn-ripple {
    display: none;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* 弹窗遮罩 */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.contact-modal {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: linear-gradient(135deg, rgba(15, 20, 40, 0.95) 0%, rgba(20, 26, 46, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.8) translateY(40px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal-overlay.active .contact-modal {
    transform: scale(1) translateY(0);
}

.contact-modal::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #00d4ff, #4c7cf5, #a855f7);
    border-radius: 24px;
    opacity: 0.2;
    filter: blur(20px);
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.2; filter: blur(20px); }
    50% { opacity: 0.4; filter: blur(30px); }
}

/* 关闭按钮 */
.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-close:hover {
    background: rgba(255, 59, 92, 0.2);
    color: var(--danger-red);
    transform: rotate(90deg);
}

/* 头部 */
.contact-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.contact-modal-header h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00d4ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 联系项 */
.contact-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(8px);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(76, 124, 245, 0.15));
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.contact-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.contact-item-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-mono);
    word-break: break-all;
}

.contact-item-value:hover {
    color: var(--accent-cyan);
}

/* 页脚 */
.contact-modal-footer {
    margin-top: 32px;
    text-align: center;
}

.contact-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

/* 响应式 */
@media (max-width: 640px) {
    .contact-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .contact-btn-icon {
        font-size: 20px;
    }

    .contact-modal {
        padding: 32px 24px;
        margin: 20px;
    }

    .contact-modal-icon {
        font-size: 48px;
    }

    .contact-modal-header h3 {
        font-size: 24px;
    }

    .contact-item {
        padding: 16px;
    }

    .contact-item-icon {
        font-size: 28px;
        width: 44px;
        height: 44px;
    }

    .contact-item-value {
        font-size: 14px;
    }
}
