/* 基础样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 35px;
}

/* 顶部导航栏 */
.header {
    background-color: #409EFF;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

/* 导航栏容器 */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f5f7fa;
    padding: 10px 20px;
    position: relative;
}

/* Logo 和网站名称 */
.logo-container {
    display: flex;
    align-items: center;
}
.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.site-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* 三点按钮（移动端显示） */
.menu-toggle {
    display: none; /* 默认隐藏 */
    margin-right: 10px;
}

/* 菜单、搜索框和登录按钮容器 */
.nav-content {
    display: flex;
    align-items: center;
    flex: 1;
}

/* 菜单容器 */
.menu-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Element UI 菜单样式 */
.el-menu {
    border-right: none;
}
.el-menu--vertical {
    width: 100%;
}
.el-menu--vertical > .el-menu-item,
.el-menu--vertical > .el-submenu {
    margin: 5px 0;
    width: 100%;
}
.el-menu--vertical .el-submenu__title {
    color: #333 !important;
}
.el-menu--vertical .el-menu-item {
    color: #333 !important;
}
.el-menu--vertical .el-menu-item:hover,
.el-menu--vertical .el-submenu__title:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
.el-menu--vertical .el-menu-item.is-active {
    border-bottom: 2px solid #409EFF;
}

/* 搜索容器 */
.search-container {
    display: flex;
    align-items: center;
}
.search-input {
    width: 200px;
    margin-left: 10px;
    transition: width 0.3s;
}
.search-input.show {
    width: 200px;
}
.login-button {
    margin-left: 10px;
}

/* 主内容区域 */
.main-content {
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    margin: 20px;
    border-radius: 4px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    /* 显示三点按钮 */
    .menu-toggle {
        display: block;
    }

    /* 隐藏菜单、搜索框和登录按钮 */
    .menu-container {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px; /* 顶部导航栏高度 */
        left: 0;
        width: 250px; /* 左侧菜单宽度 */
        background-color: #f5f7fa;
        padding: 10px;
        box-shadow: 2px 0 12px 0 rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    ul.el-menu--horizontal.el-menu {
        display: flex;
        flex-direction: column;
        top: 0;
    }

    /* 显示菜单、搜索框和登录按钮 */
    .menu-container.mobile-visible {
        display: flex;
    }

    /* 调整菜单为垂直布局 */
    .el-menu--vertical {
        width: 100%;
    }

    /* 调整搜索框和登录按钮 */
    .search-container {
        width: 100%;
        margin-top: 10px;
    }
    .search-input {
        width: 100%;
        margin-left: 0;
    }
}




/* 自定义样式 */
/*body, html {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    font-family: Arial, sans-serif;*/
/*}*/
/*.header {*/
/*    background-color: #409EFF;*/
/*    color: white;*/
/*    padding: 10px 20px;*/
/*    text-align: center;*/
/*}*/
/*.nav-bar {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    background-color: #f5f7fa;*/
/*    padding: 10px 20px;*/
/*}*/
/*.logo-container {*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/
/*.logo {*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    margin-right: 10px;*/
/*}*/
/*.site-name {*/
/*    font-size: 20px;*/
/*    font-weight: bold;*/
/*    color: #333;*/
/*}*/
/*.menu-container {*/
/*    flex: 1;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*}*/
/*.search-container {*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/
/*.search-input {*/
/*    width: 200px;*/
/*    margin-left: 10px;*/
/*    transition: width 0.3s;*/
/*}*/
/*.search-input.show {*/
/*    width: 200px;*/
/*}*/
/*.login-button {*/
/*    margin-left: 10px;*/
/*}*/
/*.el-menu {*/
/*    border-right: none;*/
/*}*/
/*.el-menu--horizontal {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*}*/
/*.el-menu--horizontal > .el-menu-item,*/
/*.el-menu--horizontal > .el-submenu {*/
/*    margin: 0 10px;*/
/*}*/
/*.el-menu--horizontal .el-submenu__title {*/
/*    color: #333 !important;*/
/*}*/
/*.el-menu--horizontal .el-menu-item {*/
/*    color: #333 !important;*/
/*}*/
/*.el-menu--horizontal .el-menu-item:hover,*/
/*.el-menu--horizontal .el-submenu__title:hover {*/
/*    background-color: rgba(255, 255, 255, 0.1) !important;*/
/*}*/
/*.el-menu--horizontal .el-menu-item.is-active {*/
/*    border-bottom: 2px solid #409EFF;*/
/*}*/
