/* 全局样式 */
@font-face {
    font-family: 'Nunito';
    src: url('../font/Nunito-VariableFont_wght.ttf');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    -webkit-tap-highlight-color: transparent;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background:#ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.header-left, .header-right {
    flex: 0 0 auto;
}



.menu-toggle, .lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-lang {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
   
}



/* 语言选择器 */
.language-selector {
    position: relative;
    display: inline-block;
}

.lang-dropdown {
    position: absolute;
    top: 70%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 180px;
    display: none;
    z-index: 1001;
    margin-top: 8px;
}

.lang-dropdown.show {
    display: block;
}

.lang-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 500;
}

.lang-item:last-child {
    border-bottom: none;
}

.lang-item:hover {
    background-color: #f8f9fa;
}

.lang-item.active {
    color: #157EF6;
}

/* 主容器 */
.main-container {
    margin-top: 64px;
    display: flex;
    height: calc(100vh - 64px);
    position: relative;
}

/* 遮罩层 */
.content-mask {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.content-mask.show {
    opacity: 1;
    visibility: visible;
}

/* 侧边栏 */
.sidebar {
    border-top: 1px solid #EBEBEB;
    width: 50%;
    background: white;
    border-right: 1px solid #e0e0e0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.sidebar.show {
    transform: translateX(0);
}





/* 导航内容 */
.nav-content {
    padding: 20px;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section-title {
    font-weight: 800;
    font-size: 18px;
    color: #000000;
    text-align: left;
    font-style: normal;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    margin-bottom: 15px;
    padding-left: 2px;
}

.nav-item:hover {
    background-color: #f8f9fa;
    padding-left: 8px;
}



.nav-item-text {
    flex: 1;
    font-family: Nunito, Nunito;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    text-align: left;
    padding-left: 10px;
}

.nav-item.active {

    color: #157EF6;
}

.nav-item.active .nav-item-text {
    color: #157EF6;
    font-weight: 500;
}

/* 子导航项 */
.nav-subsection {
    margin-left: 0;
    margin-top: 15px;
}

.nav-subsection-title {
    font-weight: bold;
    font-size: 14px;
    color: #000000;
    margin-bottom: 12px;
    padding-left: 10px;
}

.nav-subitem {
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 13px;
    color: #666666;
    text-align: left;
    padding-left: 20px;
}

.nav-subitem:hover {
    background-color: #f0f0f0;
    color: #333;
}

.nav-subitem.active {
  
    color: #157EF6;
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: #ffffff;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #EBEBEB;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* 文章内容样式 */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    background: #fafafa;
}

.article-section-title {
    font-weight: 800;
    font-size: 18px;
    color: #000000;
    text-align: left;
    margin-bottom: 16px;
    font-style: normal;
    display: flex;
    align-items: center;
}

.article-section-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 6px;
}

.article-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.article-text strong {
    color: #333;
    font-weight: 600;
}

.article-list {
    margin: 15px 0;
    padding-left: 20px;
}

.article-list li {
    margin-bottom: 8px;
    color: #555;
}

.article-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    padding: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    border-left: 4px solid #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        bottom: 0;
        width: 67%;
        max-width: 300px;
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content {
        margin: 0;
        padding:15px  20px 20px;
        border-top: 1px solid #e0e0e0;
    }
    
    .header {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .nav-content {
        padding: 20px 16px 20px 20px;
    }
    

    
    .content-mask {
        top: 64px;
    }
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar {
    width: 3px;
    background: #D0D0D0;
}

.sidebar::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 