.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: #71a7d9;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #5590c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* 添加动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(113, 167, 217, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(113, 167, 217, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(113, 167, 217, 0);
    }
}

.back-to-top.pulse {
    animation: pulse 1.5s infinite;
}

/* 联系我们按钮样式 */
.contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #71a7d9;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-btn:hover {
    background-color: #5590c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-btn:active {
    transform: scale(0.95);
}

/* 弹出层样式 */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* 装饰元素 */
.modal-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(113, 167, 217, 0.2) 0%, rgba(113, 167, 217, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.modal-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(113, 167, 217, 0.1) 0%, rgba(113, 167, 217, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 弹出层内容 */
.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* 标题样式 */
.modal-header {
    background: #71a7d9;
    padding: 25px 40px;
    margin: 0;
    position: relative;
}

.modal-header h3 {
    font-size: 24px;
    color: #fff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 关闭按钮 */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
    color: #333;
    z-index: 1000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.close-modal:hover {
    transform: rotate(90deg);
    background-color: rgba(255, 255, 255, 1);
}

.close-modal svg {
    width: 20px;
    height: 20px;
}

/* 内容区域 */
.modal-body {
    padding: 30px 40px;
}

/* 联系信息样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(113, 167, 217, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.contact-item:hover {
    background: rgba(113, 167, 217, 0.1);
    transform: translateX(5px);
}

.contact-item svg {
    flex-shrink: 0;
    color: #71a7d9;
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.contact-item span {
    font-size: 16px;
    color: #333;
    text-align: left;
    display: block;
    width: 100%;
}

/* 二维码样式 */
.qr-code {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    background: rgba(113, 167, 217, 0.05);
    border-radius: 15px;
    max-width: 280px;
}

.qr-code img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-code img:hover {
    transform: scale(1.02);
}

.qr-code p {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* 拨打按钮容器 */
.call-button-container {
    width: 100%;
    text-align: left;
}

/* 拨打按钮样式 */
.call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: #71a7d9;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.call-button:hover {
    background: #5590c2;
    transform: translateY(-2px);
}

.call-button svg {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* 动画效果 */
.modal-content {
    animation: modalShow 0.5s ease forwards;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-header {
        padding: 20px 30px;
    }
    
    .modal-body {
        padding: 25px 30px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .contact-item span {
        font-size: 14px;
    }
    
    .qr-code img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .contact-item {
        padding: 10px;
    }
    
    .qr-code {
        padding: 15px;
    }
    
    .qr-code img {
        width: 140px;
        height: 140px;
    }
} 