/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
#navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 移动菜单动画 */
#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

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

.btn-primary:hover {
    background-color: #0045a5;
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

/* 导航链接动画 */
.nav-link,
.mobile-link {
    position: relative;
}

.nav-link::after,
.mobile-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0056D6;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.mobile-link:hover::after {
    width: 100%;
}

/* 语言切换按钮 */
.lang-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 服务卡片动画 */
.card-hover {
    transition: all 0.3s ease;
}

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

/* 表单输入焦点样式 */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.2);
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    /* 调整移动设备上的间距 */
    section {
        padding-top: 150px !important;
        padding-bottom: 100px !important;
    }
    
    /* 调整英雄区按钮 */
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    /* 调整卡片布局 */
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    /* 调整页脚列布局 */
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕的调整 */
    section {
        padding-top: 120px !important;
        padding-bottom: 80px !important;
    }
    
    /* 调整标题大小 */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 延迟加载动画 */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* 地图容器样式 */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

/* 图片加载占位符 */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* 社交图标悬停效果 */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* 滚动进度条 */
.progress-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.progress-bar {
    height: 4px;
    background: #0056D6;
    width: 0%;
}

/* 打印样式 */
@media print {
    /* 隐藏导航和不必要的元素 */
    nav,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    /* 调整打印布局 */
    section {
        page-break-after: always;
    }
    
    /* 调整字体大小 */
    body {
        font-size: 12pt;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}