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

/* 全局字体和基础样式 */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: 70px; /* 固定导航栏高度 */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-left .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-left .logo:hover {
    color: #3498db;
}

.nav-center {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #3498db;
}

.nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 语言切换器样式 */
.language-selector {
    margin-right: 15px;
    font-size: 14px;
    color: #2c3e50;
}

.lang-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
}

.btn-secondary {
    background-color: #2c3e50;
    color: white;
    border: 1px solid #2c3e50;
}

.btn-secondary:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    color: white;
}

.btn-primary {
    background-color: #27ae60;
    color: white;
    border: 1px solid #27ae60;
}

.btn-primary:hover {
    background-color: #229954;
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #2c3e50;
    border: 2px solid rgba(44, 62, 80, 0.3);
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-outline:hover {
    background: rgba(44, 62, 80, 0.1);
    border-color: rgba(44, 62, 80, 0.5);
    transform: translateY(-2px);
}

.btn-green {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-green:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 6rem 0 2rem 0;
    min-height: calc(100vh - 200px);
}

/* 页脚样式 */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-left .footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left .footer-logo:hover {
    color: #3498db;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-center nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-center nav a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.footer-center nav a:hover {
    color: #1ab394;
}

.footer-center nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1ab394;
    transition: width 0.3s ease;
}

.footer-center nav a:hover::after {
    width: 100%;
}

.footer-text {
    color: rgba(44, 62, 80, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.footer-social a:hover {
    color: #1ab394;
    border-color: rgba(26, 179, 148, 0.3);
    background-color: rgba(26, 179, 148, 0.05);
}

.footer-icons {
    display: flex;
    gap: 0.5rem;
}

.footer-icon {
    font-size: 1.2rem;
    color: rgba(44, 62, 80, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-icon:hover {
    color: #3498db;
}

/* 汉堡菜单按钮样式 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 汉堡菜单按钮动画效果 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .nav-left {
        flex: 1;
    }
    
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 1rem;
    }
    
    /* 修改导航中心部分的显示方式 */
    .nav-center {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    /* 当添加active类时显示导航菜单 */
    .nav-center.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-right {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .language-selector {
        font-size: 12px;
        margin-right: 8px;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-center {
        order: 2;
    }
    
    .footer-right {
        order: 3;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: auto;
        padding: 0.5rem 0;
    }
    
    .nav-container {
        flex-direction: row;
        align-items: center;
    }
    
    .nav-left .logo {
        font-size: 1.2rem;
    }
    
    .nav-left .logo img {
        width: 24px;
        height: 24px;
    }
    
    .nav-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.25rem;
    }
    
    .language-selector {
        font-size: 11px;
        margin-right: 5px;
    }
    
    .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}