/* 浮动按钮共享样式 */
.float-button {
    position: fixed;
    width: 50px;
    height: 50px;
    background-color: #2d4b8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.float-button.show {
    opacity: 1;
    visibility: visible;
}

.float-button svg {
    width: 28px;
    height: 28px;
    color: white;
}

.float-button:hover {
    background-color: #1a3a7a;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 回到顶部按钮 */
.back-to-top {
    bottom: 30px;
    left: 30px;
}

/* 联系我们按钮 */
.contact-button {
    bottom: 30px;
    right: 30px;
}

/* 添加动画效果 */
.pulse-animation {
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* 联系我们弹窗样式 */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.contact-modal-overlay.show {
    display: flex;
}

.contact-modal {
    background: #fff;
    border-radius: 8px;
    width: 360px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-modal h3 {
    margin: 0;
    padding: 16px 20px;
    font-size: 18px;
    background: #f4821f;
    color: #fff;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.contact-modal h3 .contact-popup-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.contact-modal h3 .contact-popup-toggle::before,
.contact-modal h3 .contact-popup-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 50%;
}

.contact-modal h3 .contact-popup-toggle::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.contact-modal h3 .contact-popup-toggle::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-modal-content {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f7f7f7;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #fff5eb;
}

.contact-item svg {
    margin-right: 12px;
    flex-shrink: 0;
}

.contact-item span {
    color: #333;
    font-size: 16px;
}

.contact-qrcode {
    text-align: center;
    background: #f7f7f7;
    border-radius: 4px;
    padding: 20px;
    margin: 16px auto;
    max-width: 200px;
}

.contact-qrcode img {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    display: block;
}

.contact-qrcode p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.call-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f4821f;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.call-button:hover {
    background: #e67710;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 130, 31, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .float-button {
        width: 44px;
        height: 44px;
        bottom: 20px;
    }
    
    .float-button svg {
        width: 24px;
        height: 24px;
    }
    
    .back-to-top {
        left: 20px;
    }
    
    .contact-button {
        right: 20px;
    }
    
    .contact-modal {
        width: 90%;
        max-width: 360px;
        margin: 0 16px;
    }
    
    .contact-modal h3 {
        font-size: 16px;
        padding: 14px 16px;
    }
    
    .contact-item {
        padding: 10px 14px;
    }
    
    .contact-item span {
        font-size: 14px;
    }
    
    .contact-qrcode {
        padding: 16px;
    }
    
    .contact-qrcode img {
        width: 140px;
        height: 140px;
    }
    
    .call-button {
        padding: 10px;
        font-size: 15px;
    }
}

/* 适配小屏幕设备 */
@media (max-width: 480px) {
    .float-button {
        width: 40px;
        height: 40px;
    }
    
    .float-button svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-qrcode img {
        width: 120px;
        height: 120px;
    }
}

/* 联系信息卡片样式 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #f4821f;
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4821f, #ff9a3c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.contact-card-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-card-link {
    display: inline-block;
    padding: 10px 24px;
    background: #f4821f;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-card-link:hover {
    background: #e67710;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 130, 31, 0.3);
}

/* 联系表单样式 */
.contact-form-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
    border: 1px solid #f0f0f0;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f4821f;
    background: white;
    box-shadow: 0 0 0 3px rgba(244, 130, 31, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    display: inline-block;
    padding: 14px 32px;
    background: #f4821f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background: #e67710;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 130, 31, 0.3);
}

/* 地理位置卡片样式增强 */
.location-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.location-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: #f4821f;
}

.location-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #333;
}

.location-card p,
.location-card ul {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.location-card ul {
    padding-left: 20px;
    list-style-type: disc;
}

.location-card li {
    margin-bottom: 8px;
}

.location-desc {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* 地图容器样式 */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-card {
        padding: 24px 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
    
    .location-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .location-card {
        padding: 20px 16px;
    }
    
    .map-container iframe {
        height: 300px !important;
    }
} 