/* 自定义样式 */
* {
    scroll-behavior: smooth;
}

/* Logo样式 */
nav img, footer img {
    object-fit: contain;
    max-height: 50px;
}

/* 产品筛选按钮样式 */
.product-filter-btn {
    transition: all 0.3s ease;
}

.product-filter-btn.active {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}

/* 产品卡片动画 */
.product-item {
    animation: fadeInUp 0.5s ease-out;
}

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

/* 地图容器样式 */
#map-container {
    z-index: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* 导航栏样式 */
nav {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.text-blue-600::after {
    width: 100%;
}

/* 产品卡片图片过渡 */
#products img {
    transition: transform 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 表单输入框样式增强 */
input:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 按钮悬停效果 */
button, a[class*="bg-"] {
    transition: all 0.3s ease;
}

button:hover, a[class*="bg-"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 语言切换按钮样式 */
.lang-toggle-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.95));
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.lang-toggle-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.lang-toggle-pill-dot {
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.2);
}

/* 回到顶部按钮 */
.back-to-top-button {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.back-to-top-button.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top-button.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

