:root {
    --primary: #FBC902;
    --secondary: #4361EE;
    --accent: #06D6A0;
    --dark: #1A1A2E;
    --light: #F8F9FA;
}

/* 导航栏样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* 导航栏区域 */
.nav {
    display: flex;
    width: 100%;
    /* 固定高度，可以根据需要调整 */
    height: 70px;
    align-items: center;
}

.nav-left {
    /* 不放大，不缩小，基础宽度15% */
    flex: 0 0 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-center {
    /* 不放大，不缩小，基础宽度70% */
    flex: 0 0 70%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-right {
    /* 不放大，不缩小，基础宽度15% */
    flex: 0 0 15%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo img {
    /* 限制logo最大高度 */
    max-height: 60px;
    /* 保持原始比例 */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 100px;
    /* 移除默认的列表符号（黑色圆点） */
    list-style: none;
}

.nav-links a {
    font-weight: bold;
    transition: color 0.3s;
    text-decoration: none;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.nav-links .en-text {
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fc5d2f;
}

.nav-links a:hover .en-text {
    color: #fc5d2f;
}

.nav-links a.active {
    color: #fc5d2f; 
}

.nav-links a.active .en-text {
    /* 确保英文文本也是橙色 */
    color: #fc5d2f; 
}

.en-text {
    display: block;
    font-size: 0.8em;
    font-weight: 500;
    color: #999;
    margin-top: -2px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001; /* 确保在最上层 */
    position: relative; /* 确保z-index生效 */
}

/* 在中等屏幕尺寸下调整导航链接的间距 */
@media (max-width: 1100px) and (min-width: 900px) {
    .nav-links {
        gap: 60px; /* 减少间距以适应较小的屏幕 */
    }
}

/* 在更小的桌面屏幕尺寸下进一步调整 */
@media (max-width: 900px) and (min-width: 800px) {
    .nav-links {
        gap: 40px; /* 进一步减少间距 */
    }
    
    .nav-links a {
        font-size: 14px; /* 适当减小字体大小 */
    }
    
    .en-text {
        font-size: 0.7em; /* 适当减小英文文本大小 */
    }
}