/* Header 样式 */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    color: #000;
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #666;
}

.lang-switch {
    font-weight: 500;
}

/* Footer 样式 */
.site-footer {
    margin-top: 40px;
    padding: 24px 0 12px 0;
    color: #bbb;
    font-size: 0.9rem;
    text-align: center;
}
.site-footer hr {
    border: none;
    border-top: 2px solid #eee;
    margin-bottom: 12px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}
.footer-links {
    color: #888;
    margin-bottom: 6px;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}
.footer-copyright {
    color: #bbb;
    font-size: 0.95em;
} 

/* 汉堡菜单按钮美化 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 菜单展开时样式（可选） */
.nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 16px 24px;
    z-index: 1000;
    min-width: 160px;
    gap: 12px;
}

@media (min-width: 900px) {
    .menu-toggle {
        display: none !important;
    }
    .nav-links,
    .nav-links.open {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        min-width: unset !important;
        gap: 30px !important;
        top: unset !important;
        right: unset !important;
        z-index: unset !important;
    }
}

/* 移动端样式 */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        border-radius: 8px;
        flex-direction: column;
        min-width: 140px;
        z-index: 1001;
    }
    .nav-links.open {
        display: flex !important;
    }
    .menu-toggle {
        display: flex !important;
    }
}