@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }

    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .text-shadow-lg {
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    }

    .bg-gradient-blue {
        background: linear-gradient(135deg, #00316e 0%, #0a5cad 100%);
    }

    .nav-active {
        position: relative;
    }

    .nav-active::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #ffe500;
        border-radius: 3px;
    }

    .animate-fade-in {
        animation: fadeIn 0.8s ease forwards;
    }
}

html {
    scroll-behavior: smooth;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 联系卡片hover效果 */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 49, 110, 0.15);
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background-color: #00316e;
    color: white;
    transform: scale(1.1);
}

/* 按钮效果 */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 49, 110, 0.2);
}

/* 地图容器样式 */
.map-container {
    height: 450px;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 49, 110, 0.1);
}

/* 二维码样式 */
.qrcode-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 4px 12px rgba(0, 49, 110, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover .qrcode-img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 49, 110, 0.15);
}

/* 电话卡片样式优化 */
.phone-number {
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.contact-card:hover .phone-number {
    color: #ffe500;
}
