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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1F2937;
    background-color: #F9FAFB;
    line-height: 1.6;
}

/* 加载动画 */
.loader {
    border-top-color: #1E40AF;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 渐入动画 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

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

/* 滚动触发的动画延迟 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏滚动效果 */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 按钮悬停效果 */
.btn-primary {
    background-color: #1E40AF;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1E40AFcc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    border: 2px solid #1E40AF;
    color: #1E40AF;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(30, 64, 175, 0.05);
    transform: translateY(-2px);
}

/* 图片悬停缩放效果 */
.img-hover-zoom {
    overflow: hidden;
}

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

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

/* 文本阴影 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 图标背景样式 */
.icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(30, 64, 175, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E40AF;
}

/* 输入框焦点样式 */
.form-input:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* 社交图标样式 */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(30, 64, 175, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E40AF;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1E40AF;
    color: white;
}

/* 返回顶部按钮 */
#back-to-top {
    transition: all 0.3s ease;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .card-hover:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn-primary, .btn-outline {
        padding: 0.75rem 1.5rem;
    }
}