*{
    padding: 0;
    margin: 0;
}
body{
    /* user-select: none; */
    overflow: hidden;
}
/* item界面样式 */
.item{
    display: none;
    width: 100vw;
    margin-left: 230px;
}
/* 菜单栏样式 */
.menuBar{
    position: absolute;
    user-select: none;
    width: 230px;
    height: 100vh;
    overflow: hidden;
    background: #5eafff;
    /* transition: 0.2s; */
}
.menuBar div{
    height: 60px;
    color: #fff;
    white-space: nowrap;
    margin-bottom: 20px;
    line-height: 60px;
    text-indent: 30px;
    transition: 0.2s;
}
.menuBar div:hover{
    background: rgba(255, 255, 255, 0.3);
}
.menuBar_Ico{
    position: relative;
    width: 30px;
    height: auto;
    top: 40%;
    left: 13px;
    transform: translate(-50%,-50%);
    /* transition: 0.3s; */
}
/* 菜单栏按钮样式 */
.menuBarBtn{
    cursor: pointer;
}
.menuBarBtn img{
    position: relative;
    width: 30px;
    height: auto;
    top: 40%;
    left: 15px;
    transform: translate(-50%, -50%);
}
.homeNameShow{
    position: absolute;
    color: #444;
    top: 3%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* 首页数据显示 */
.showDataBox{
    position: absolute;
    display: flex;
    margin: 130px 10%;
}
.showData{
    width: 200px;
    height: 200px;
    margin-right: 40px;
    background: rgba(94, 175, 255, 0.8);
    border: 1px solid #cccccc;
    border-radius: 12px;
    /* box-shadow: 5px 5px 10px rgba(153, 153, 153, 0.4); */
}
.showData h2{
    text-align: center;
    color: #555;
    margin-top: 30px;
}
.showData h1{
    text-align: center;
    color: #333;
    margin-top: 35px;
}

/* 社团管理模块整体样式（模仿学生管理样式） */
#clubManagementBox {
    padding: 20px;
    margin-left: 230px;
    min-height: calc(100vh - 65px);
    width: calc(100vw - 270px);
    transition: 0.2s;
}

/* 社团管理头部样式（模仿学生管理header） */
.club_header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
}

.club_header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
    flex: 1 1 100%;
}

.club_search_bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1 1 100%;
    flex-wrap: wrap;
}

.club_search_bar input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    flex: 1 1 200px;
    min-width: 120px;
}

.club_search_bar button,
.club_primary_btn {
    padding: 10px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    min-width: 80px;
}

.club_primary_btn {
    background: #ffc107;
    color: #333;
    font-weight: 500;
}

/* 社团表格容器样式（模仿学生表格容器） */
.club_table_container {
    background: #fff;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    overflow: auto;
    min-width: 600px;
}

/* 社团表格基础样式（模仿学生表格） */
.club_table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

/* 社团表格表头样式 */
.club_table th {
    padding: 12px 15px;
    text-align: left;
    background: rgba(94, 175, 255, 0.8);
    color: #495057;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

/* 社团表格tbody单元格样式 */
.club_table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    word-break: break-all;
}

/* 社团表格行悬停效果 */
.club_table tbody tr:hover {
    background-color: #f9f9f9;
    cursor: default;
}

/* 空数据提示样式 */
.club_table tbody tr td[colspan="8"] {
    padding: 12px 0;
    color: #999;
    font-size: 14px;
    text-align: center;
}

/* 社团管理弹窗样式（模仿学生管理弹窗） */
.club_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
}

.club_modal_content {
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.close_club_modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.club_modal_content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.club_form_item {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.club_form_item label {
    display: inline-block;
    width: 100%;
    max-width: 80px;
    text-align: right;
    margin-right: 10px;
    margin-bottom: 5px;
}

.club_form_item input,
.club_form_item select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    flex: 1 1 100%;
    min-width: 180px;
    box-sizing: border-box;
}

.club_form_submit {
    text-align: center;
    margin-top: 20px;
}

.club_form_submit button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    min-width: 80px;
}

.club_cancel_btn {
    background: #6c757d;
    color: #fff;
}

/* 响应式适配（统一模仿学生管理的响应式逻辑） */
@media screen and (max-width: 768px) {
    #clubManagementBox {
        padding: 10px;
        width: calc(100vw - 85px);
    }
    
    .club_header h2 {
        font-size: 18px;
    }
    
    .club_table_container {
        min-width: 100%;
    }
    
    .club_table {
        min-width: 400px;
    }
    
    .club_table th,
    .club_table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .club_modal_content {
        padding: 15px;
    }
    
    .club_form_item label {
        text-align: left;
        max-width: 100%;
        margin-bottom: 8px;
    }
}

/* 适配菜单栏收缩状态 */
.menuBar[width="85px"] ~ #clubManagementBox {
    width: calc(100vw - 120px) !important;
    margin-left: 80px !important;
}

/* 学生管理模块原有样式 */
#studentManagementBox {
    padding: 20px;
    margin-left: 230px;
    min-height: calc(100vh - 65px);
    width: calc(100vw - 270px);
    transition: 0.2s;
}

.student_header,
.club_header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
}

.student_header h2,
.club_header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
    flex: 1 1 100%;
}

.student_search_bar,
.club_search_bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1 1 100%;
    flex-wrap: wrap;
}

.student_search_bar input,
.club_search_bar input {
    padding: 12px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    flex: 1 1 200px;
    min-width: 120px;
}

.student_search_bar button,
.club_search_bar button,
.primary_btn {
    padding: 10px 40px;
    border: none;
    background: rgba(255, 193, 7, 0);
    border: 1px solid #ced4da;
    border-radius: 5px;
    cursor: pointer;
    min-width: 80px;
    transition: 0.3s;
}
.student_search_bar button:hover,
.club_search_bar button:hover,
.primary_btn:hover{
    background: rgba(255, 193, 7, 0.7);
    border: 1px solid transparent;
}

.primary_btn {
    background: #ffc107;
    color: #333;
    font-weight: 500;
}

.student_table_container {
    background: #fff;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    overflow: auto;
    min-width: 600px;
}

.student_table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.student_table th,
.student_table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    word-break: break-all;
}

.student_table th {
    background: rgba(94, 175, 255, 0.8);
    color: #495057;
    font-weight: 600;
    white-space: nowrap;
}

.student_table td button {
    position: absolute;
    padding: 4px 9px;
    margin-top: -13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

.delete_student_btn {
    scale: 1.1;
    background: rgba(255, 0, 25, 0.4);
    color: #fff;
    transition: 0.3s;
}
.delete_student_btn:hover{
    background: rgba(255, 0, 25, 1);
}

.student_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
}

.modal_content {
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.close_modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.modal_content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.form_item {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.form_item label {
    display: inline-block;
    width: 100%;
    max-width: 80px;
    text-align: right;
    margin-right: 10px;
    margin-bottom: 5px;
}

.form_item input,
.form_item select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    flex: 1 1 100%;
    min-width: 180px;
    box-sizing: border-box;
}

.form_submit {
    text-align: center;
    margin-top: 20px;
}

.form_submit button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    min-width: 80px;
}

.cancel_btn {
    background: #6c757d;
    color: #fff;
}

@media (max-width: 768px) {
    #studentManagementBox {
        padding: 10px;
        width: calc(100vw - 85px);
    }
    
    .student_header h2 {
        font-size: 18px;
    }
    
    .student_table_container {
        min-width: 100%;
    }
    
    .student_table {
        min-width: 400px;
    }
    
    .student_table th,
    .student_table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .modal_content {
        padding: 15px;
    }
    
    .form_item label {
        text-align: left;
        max-width: 100%;
        margin-bottom: 8px;
    }
}