* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
}

.left-section {
    flex: 1;
    background-color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.left-section h1 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    line-height: 1.4;
}

.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #1890ff;
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #40a9ff;
}

.register-link {
    text-align: center;
    margin-top: 1rem;
}

.register-link a {
    color: #1890ff;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Dashboard styles */
.dashboard-container {
    min-height: 100vh;
    background-color: #f0f2f5;
}

.dashboard-header {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    color: #333;
    font-size: 1.5rem;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #ff7875;
}

.dashboard-content {
    padding: 2rem;
}

.create-class-btn {
    padding: 0.6rem 1.2rem;
    background-color: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
}
.create-class-btn:hover {
    background-color: #73d13d;
}

.import-student-btn {
    padding: 0.6rem 1.2rem;
    background-color: #faad14;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 1rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
}
.import-student-btn:hover {
    background-color: #ffc53d;
}

.class-list {
    margin-top: 1rem;
}
.class-item {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.class-name {
    font-size: 1.1rem;
    color: #333;
}
.class-actions button {
    margin-left: 0.5rem;
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
}
.edit-btn {
    background-color: #1890ff;
    color: white;
}
.edit-btn:hover {
    background-color: #40a9ff;
}
.delete-btn {
    background-color: #ff4d4f;
    color: white;
}
.delete-btn:hover {
    background-color: #ff7875;
}

/* Modal 对话框样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    min-width: 300px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
}
.close:hover {
    color: #ff4d4f;
}

.view-student-btn {
    padding: 0.5rem 1rem;
    background-color: #13c2c2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: background-color 0.3s;
}
.view-student-btn:hover {
    background-color: #36cfc9;
}

/* 通用抽屉样式 */
.drawer {
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

/* 右侧滑出抽屉（班级管理） */
.drawer-right {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
}
.drawer-right[style*="display: flex"] {
    right: 0;
}

/* 底部弹出抽屉（作业记录） */
.drawer-bottom {
    position: fixed;
    left: 0;
    bottom: -33vh;
    width: 100vw;
    height: 33vh;
    max-height: 33vh;
    min-height: 180px;
    background: #fffbe6;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: bottom 0.3s;
}
.drawer-bottom[style*="display: flex"] {
    bottom: 0;
}

#studentList {
    margin-top: 20px;
}

#studentList ul {
    list-style: none;
    padding: 0;
}

#studentList li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 优化新增学生按钮样式 */
.add-student-btn {
    width: auto;
    min-width: 120px;
    padding: 8px 24px;
    background-color: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0 20px 0;
    font-size: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.delete-student-btn {
    padding: 5px 10px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.delete-student-btn:hover {
    background-color: #ff7875;
}

.assignment-container {
    max-width: none;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 3rem 3rem 3rem;
    position: relative;
}
.back-btn {
    position: absolute;
    left: 2rem;
    top: 2rem;
    padding: 0.7rem 1.5rem;
    background-color: #888;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 12;
    height: 48px;
    min-width: 120px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-btn:active, .back-btn:focus {
    outline: none;
}
.back-btn:hover {
    background-color: #aaa;
}
.assignment-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
}
.assignment-class-name {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}
.create-assignment-btn {
    display: inline-block;
    float: none;
    margin: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.7rem 1.5rem;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.create-assignment-btn:hover {
    background-color: #40a9ff;
}
.assignment-list {
    max-width: 600px;
    margin: 2rem auto 0 auto;
}
.assignment-item {
    background: #f6faff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delete-assignment-btn {
    margin-left: 1rem;
    padding: 0.3rem 1rem;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.delete-assignment-btn:hover {
    background-color: #ff7875;
}

.page-manager-container {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 3rem 3rem 3rem;
    position: relative;
}
.page-assignment-name {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #333;
}
.page-box-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 2rem;
}
.page-box {
    width: 110px;
    height: 110px;
    background: #f6faff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.2rem;
    color: #1890ff;
    font-weight: bold;
    position: relative;
    padding: 0;
}

.edit-page-btn {
    position: absolute;
    left: 2px;
    bottom: 2px;
    margin: 0;
    padding: 0 6px;
    height: 20px;
    min-width: 0;
    font-size: 0.75rem;
    border-radius: 4px;
    background-color: #1890ff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 18px;
    z-index: 2;
}
.edit-page-btn:hover {
    background-color: #40a9ff;
}
.page-box-input {
    width: 40px;
    height: 30px;
    font-size: 1rem;
    text-align: center;
    border: 1px solid #1890ff;
    border-radius: 4px;
    outline: none;
}

.delete-page-btn {
    position: absolute;
    right: 2px;
    bottom: 2px;
    margin: 0;
    padding: 0 6px;
    height: 20px;
    min-width: 0;
    font-size: 0.75rem;
    border-radius: 4px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 18px;
    z-index: 2;
}
.delete-page-btn:hover {
    background-color: #ff7875;
}

.page-manager-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    position: absolute;
    right: 3rem;
    top: 2rem;
    z-index: 11;
}
.add-pagebox-btn, .export-btn {
    height: 48px;
    min-width: 120px;
    box-sizing: border-box;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-pagebox-btn {
    background-color: #1890ff;
    color: white;
    transition: background-color 0.3s;
}
.add-pagebox-btn:hover {
    background-color: #40a9ff;
}
.export-btn {
    background-color: #52c41a;
    color: white;
    transition: background-color 0.3s;
}
.export-btn:hover {
    background-color: #73d13d;
}
.page-box-checkbox {
    margin: 0;
    margin-top: 8px;
    margin-bottom: 0;
    width: 20px;
    height: 20px;
    accent-color: #52c41a;
}

.student-view-btn {
    height: 48px;
    min-width: 120px;
    box-sizing: border-box;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffb300;
    color: white;
    transition: background-color 0.3s;
    margin-right: 1rem;
}
.student-view-btn:hover {
    background-color: #ffd54f;
    color: #333;
}

/* 右侧抽屉内容可滚动 */
.drawer-right .drawer-content {
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
} 