/**
 * 会员中心布局样式
 * 左侧菜单 + 右侧内容
 */

/* 主容器 */
.member-container {
    width: 100%;
    min-height: calc(100vh - 100px);
    background: #f5f7fa;
    display: flex;
}

/* 左侧边栏 */
.member-sidebar {
    width: 260px;
    background: #fff;
    height: calc(100vh - 100px);
    position: fixed;
    left: 0;
    top: 100px;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* 菜单区域 */
.sidebar-menu {
    padding: 20px 0;
}

/* 菜单分组 */
.menu-section {
    margin-bottom: 20px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-title {
    padding: 0 20px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #909399;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 菜单列表 */
.menu-list {
    list-style: none;
}

.menu-item {
    margin: 0;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #606266;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
}

.menu-item a:hover {
    background: #f5f7fa;
    color: #00bb71;
}

.menu-item.active a {
    background: #e8f5e9;
    color: #00bb71;
    font-weight: 600;
    border-right: 3px solid #00bb71;
}

.menu-item.has-notice a {
    color: #e6a23c;
}

/* 菜单项图标 */
.menu-item a i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 通知徽标 */
.notice-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: #e6a23c;
    color: #fff;
    font-size: 12px;
    border-radius: 10px;
}

/* 右侧内容区 */
.member-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    min-height: calc(100vh - 100px);
    background: #f5f7fa;
}

.content-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    min-height: 500px;
    /* 确保内容能够撑开容器 */
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* 允许内容自动撑开高度 */
    height: auto !important;
    overflow: visible !important;
}

/* 页面标题 */
.content-title {
    font-size: 24px;
    color: #303133;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ebeef5;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .member-sidebar {
        width: 220px;
    }

    .member-content {
        margin-left: 220px;
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .member-container {
        flex-direction: column;
    }

    .member-sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        top: 60px;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .member-sidebar.mobile-open {
        transform: translateX(0);
    }

    .member-content {
        margin-left: 0;
        padding: 15px;
    }

    .sidebar-header {
        padding: 20px;
    }

    .content-wrapper {
        padding: 20px 15px;
    }
}

/* 桌面端隐藏移动端菜单按钮 */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* 图标样式 (使用纯CSS绘制简单图标) */
.icon-home::before {
    content: "🏠";
    font-style: normal;
}

.icon-info::before {
    content: "📋";
    font-style: normal;
}

.icon-question::before {
    content: "❓";
    font-style: normal;
}

.icon-team::before {
    content: "👥";
    font-style: normal;
}

.icon-upload::before {
    content: "📤";
    font-style: normal;
}

.icon-confirm::before {
    content: "✅";
    font-style: normal;
}

.icon-pay::before {
    content: "💳";
    font-style: normal;
}

.icon-ppt::before {
    content: "📊";
    font-style: normal;
}

.icon-award::before {
    content: "🏆";
    font-style: normal;
}

.icon-certificate::before {
    content: "🎖️";
    font-style: normal;
}

.icon-logout::before {
    content: "🚪";
    font-style: normal;
}

/* 菜单激活状态指示器 */
.menu-item a::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.menu-item:hover a::after,
.menu-item.active a::after {
    background: #00bb71;
}

/* 平滑滚动 */
.member-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.member-sidebar::-webkit-scrollbar {
    width: 6px;
}

.member-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.member-sidebar::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}

.member-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}
/* 适配报名表单到左右结构 */
.member-content .m1000 {
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.member-content .process-con {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.member-content .reg-box {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.member-content .body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* 确保表单内容正确显示 */
.member-content form {
    width: 100% !important;
    max-width: 100% !important;
}

.member-content .form-group,
.member-content .form-box,
.member-content .row {
    max-width: 100% !important;
}

.member-content .process-con {
    min-height: auto !important;
}

.member-content .reg-box {
    min-height: auto !important;
}

/* 表格对齐修复 */
.member-content .el-table {
    width: 100% !important;
    margin: 0 !important;
}

.member-content .el-table__header-wrapper,
.member-content .el-table__body-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
}

.member-content .el-table__header,
.member-content .layui-table {
    width: 100% !important;
    table-layout: fixed !important;
    margin: 0 !important;
}

.member-content .el-table__header th,
.member-content .layui-table td {
    text-align: center !important;
    vertical-align: middle !important;
}

.member-content .layui-table-cell {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.member-content .itemPeople {
    margin: 20px 0 !important;
    width: 100% !important;
}

.member-content .itemContent {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 会员中心简洁底部 */
.member-footer {
    margin-left: 260px;
    text-align: right;
    padding: 16px 30px;
    color: #c0c4cc;
    font-size: 12px;
    border-top: 1px solid #ebeef5;
    background: #f5f7fa;
}

.member-footer .footer-sep {
    margin: 0 8px;
    color: #dcdfe6;
}

@media screen and (max-width: 768px) {
    .member-footer {
        margin-left: 0;
    }
}

