/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    font-weight: 600;
}

/* 公共样式 - 导航栏和页脚 */

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
    width: 155px;
}

nav ul {
    display: flex;
    flex-wrap: nowrap;
}

nav ul li {
    margin: 0 10px;
    white-space: nowrap;
}

nav ul li a {
    position: relative;
    padding: 5px 0;
    font-family: "Microsoft YaHei";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #1d1e1f;
    transition: color 0.3s;
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    color: #0066cc;
    text-decoration: none;
}

/* 取消active链接的下划线 */
nav ul li a.active:after {
    display: none; /* 隐藏下划线 */
}

.language-switch a,
.mobile-language-switch a {
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
    margin: 0 5px;
}

.lang-separator {
    color: #666;
    font-size: 14px;
}

.language-switch a:first-child,
.mobile-language-switch a:first-child {
    margin-left: 0;
}

.language-switch a:hover,
.language-switch a.active,
.mobile-language-switch a:hover,
.mobile-language-switch a.active,
.lang-link.active {
    color: #0066cc;
}

/* 移动端语言切换按钮样式 */
.mobile-language-switch {
    display: none;
    justify-content: center;
    margin-top: 20px;
}

/* 移动菜单按钮样式 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #0066cc;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 汉堡菜单按钮动画效果 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* 页脚样式 */
footer {
    background-color: #1a1a2e;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo .logo-text {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    display: block;
    line-height: 1;
    margin-bottom: 15px;
}

.footer-logo p, .contact-info li {
    color: #ccc;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex: 2;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.link-group {
    min-width: 150px;
}

.link-group h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #fff;
}

.link-group ul li {
    margin-bottom: 8px;
}

.link-group ul li a,
.link-group ul li {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.link-group ul li a:hover {
    color: #fff;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright p {
    color: #999;
    font-size: 12px;
}

.social-icons a {
    color: #ccc;
    font-size: 18px;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #fff;
}

/* 响应式设计 - 导航栏和页脚 */
@media (max-width: 768px) {
    .language-switch {
        display: none;
    }
    
    header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 60px 20px 20px;
        display: flex;
        flex-direction: column;
    }
    
    nav.active {
        right: 0;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: #666;
        cursor: pointer;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    nav ul li {
        margin: 10px 0;
        width: 100%;
        padding: 10px 0;
        border-bottom: none;
    }
    
    nav .mobile-language-switch {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        margin-top: 20px;
        padding: 15px 0;
        border-top: 1px solid #eee;
        width: 100%;
        text-align: center;
    }
    
    nav .mobile-language-switch a {
        color: #666;
        font-size: 16px;
        font-weight: 500;
        transition: color 0.3s;
    }
    
    nav .mobile-language-switch a:hover,
    nav .mobile-language-switch a.active {
        color: #0066cc;
    }
    
    /* 只在移动端菜单激活时显示移动端语言切换按钮 */
    nav.active .mobile-language-switch {
        display: block !important;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        margin-top: 15px;
    }
    
    .social-icons a {
        margin: 0 8px;
    }
}
