@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%);
    }

    .card-hover {
        transition: all 0.3s ease;
    }

    .card-hover:hover {
        transform: translateY(-8px);
    }

    .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);
    }
}

/* 客户卡片样式（核心修改） */
.client-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px; /* 统一卡片高度 */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.client-logo {
    width: 350px;
    height: 110px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0);
    transition: filter 0.3s ease;
    background-color: #16325b33;
}

.client-card:hover .client-logo {
    filter: grayscale(0); /* hover时恢复彩色 */
}

.client-name {
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #16325b;
}

/* 行业分类样式 */
.industry-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.industry-tab {
    padding: 0.75rem 1.5rem;
    background-color: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.industry-tab.active {
    background-color: #00316e;
    color: white;
}

.industry-tab:hover:not(.active) {
    background-color: #e2e8f0;
    color: #0f172a;
}

.industry-content {
    display: none;
}

.industry-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 加载动画 */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    display: none;
}

.loader.show {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 按钮动画 */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 229, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 229, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 229, 0, 0);
    }
}
