/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
}

/* 语言下拉菜单 */
.group:hover .language-dropdown {
    display: block;
}

.language-dropdown {
    display: none;
}

/* 导航栏样式 */
.nav-scrolled {
    @apply bg-white shadow-md py-2;
}

.nav-transparent {
    @apply bg-transparent py-4;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.zoom-in {
    animation: zoomIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 服务卡片悬停效果 */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 解决方案图标效果 */
.solution-icon {
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
    color: #3B82F6;
}

/* 图片悬停效果 */
.img-hover {
    transition: all 0.5s ease;
    overflow: hidden;
}

.img-hover img {
    transition: all 0.5s ease;
}

.img-hover:hover img {
    transform: scale(1.05);
}

/* 按钮悬停效果 */
.btn-primary {
    @apply bg-primary text-white px-6 py-3 rounded-md font-medium transition-all duration-300;
}

.btn-primary:hover {
    @apply bg-secondary transform -translate-y-1 shadow-lg;
}

.btn-outline {
    @apply border-2 border-primary text-primary px-6 py-3 rounded-md font-medium transition-all duration-300;
}

.btn-outline:hover {
    @apply bg-primary text-white transform -translate-y-1 shadow-lg;
}

/* 二维码悬停效果 */
.qrcode-container {
    transition: all 0.3s ease;
}

.qrcode-container:hover {
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-menu {
        @apply fixed top-0 left-0 w-full h-screen bg-white z-50 transform transition-transform duration-300;
    }
    
    .mobile-menu.hidden {
        transform: translateX(-100%);
    }
    
    .mobile-menu.block {
        transform: translateX(0);
    }
}

#lang-topbar {
  animation: fadeIn 1s ease;
  z-index: 9999;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
