/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background: #f5f7fa;
    color: #303133;
    overflow: hidden;
    height: 100vh;
}

/* 登录页面样式 */
.login-page {
    background: linear-gradient(to right, #e0f7fa, #f3e5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 100;
}
.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 60px;
    align-items: center;
}
.illustration {
    flex: 1;
    text-align: center;
}
.form-box {
    flex: 1;
    max-width: 450px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.form-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}
.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.tab.active {
    color: #409eff;
    border-bottom-color: #409eff;
}
.form {
    display: none;
}
.form.active {
    display: block;
}
.input-group {
    margin-bottom: 20px;
}
.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #f5f7fa;
}
.input-group input:focus {
    border-color: #409eff;
}
.password-group {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #909399;
    font-size: 14px;
}
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}
.options a {
    color: #409eff;
    text-decoration: none;
}
.btn {
    width: 100%;
    padding: 12px;
    background-color: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #66b1ff;
}
.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}
.register-link a {
    color: #409eff;
    text-decoration: none;
}
.qrcode-container {
    background: #fafafa;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
}
.qrcode {
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}
.back-link {
    display: inline-flex;
    align-items: center;
    color: #606266;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}
.form-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
}
.verification-group {
    display: flex;
    gap: 10px;
}
.get-code {
    width: 120px;
    background-color: transparent;
    color: #409eff;
    border: 1px solid #409eff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 12px 0;
    font-size: 14px;
}
.get-code:hover {
    background-color: #ecf5ff;
}
.password-tip {
    font-size: 12px;
    color: #909399;
    margin-top: 5px;
}
.agreement {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.agreement a {
    color: #409eff;
    text-decoration: none;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }
}

/* 主应用容器 - 初始隐藏 */
.main-container {
    display: none;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* 左侧导航栏 */
.sidebar {
    width: 200px;
    background: linear-gradient(to bottom, #e0f7fa, #f3e5f5);
    border-right: 1px solid #dcdfe6;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    height: 100%;
}
.sidebar .logo {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}
.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #606266;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 4px;
    margin: 0 8px 4px;
    cursor: pointer;
}
.nav-item:hover {
    background-color: #f5f7fa;
}
.nav-item.active {
    background-color: #9575cd;
    color: #fff;
}
.nav-item i {
    margin-right: 8px;
    font-size: 16px;
}
/* 父级菜单（我的课程） */
.nav-parent {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #606266;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 8px 4px;
    transition: all 0.3s;
}
.nav-parent:hover {
    background-color: #f5f7fa;
}
.nav-parent.open {
    color: #333;
}
.sub-arrow {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.2s;
    color: #999;
}
.nav-parent.open .sub-arrow {
    transform: rotate(180deg);
}
/* 二级菜单 */
.nav-sub {
    padding-left: 12px;
    background: rgba(0,0,0,0.02);
    margin: 0 8px;
    border-radius: 4px;
}
.nav-sub .nav-item.sub-item {
    font-size: 13px;
    padding: 10px 16px;
    margin: 0;
    border-radius: 6px;
}
.nav-sub .nav-item.sub-item.active {
    color: #5b8def;
    font-weight: 600;
    background: #e8f0fe;
}
.system-notice {
    background: #f0f9eb;
    border-radius: 8px;
    padding: 12px;
    margin: 0 20px 20px;
    border-left: 4px solid #67c23a;
}
.system-notice .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #67c23a;
}
.system-notice .content {
    font-size: 12px;
    color: #67c23a;
}

/* 右侧内容区 */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: calc(100vw - 200px);
}

/* 顶部导航栏 */
.top-bar {
    height: 60px;
    background: linear-gradient(to right, #e0f7fa, #f3e5f5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #dcdfe6;
    width: 100%;
}
.top-bar .title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
.top-bar .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.top-bar .user-info select {
    padding: 4px 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
}
.top-bar .user-info .name {
    font-weight: 500;
}
.top-bar .user-info .avatar {
    width: 36px;
    height: 36px;
    background-color: #9575cd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 0;
    background: linear-gradient(to right, #e0f7fa, #f3e5f5);
    height: calc(100% - 60px);
    overflow: visible;
}
.content-panel {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

/* 首页样式 */
.home-page {
    gap: 15px;
}
.welcome-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页面基础样式 */
.page {
    display: none !important;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
}
.page.active {
    display: flex !important;
}

/* 教学课表页面 */
.schedule-page {
    gap: 15px;
}
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
    flex-wrap: wrap;
    gap: 10px;
}
.schedule-header .title {
    font-size: 18px;
    font-weight: 600;
}
.schedule-header .controls {
    display: flex;
    gap: 15px;
    align-items: center;
}
.schedule-header .legend {
    display: flex;
    gap: 15px;
    font-size: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.schedule-header .legend span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.schedule-header .legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot.theory {
    background: #409eff;
}
.dot.experiment {
    background: #67c23a;
}
.dot.practice {
    background: #9575cd;
}
.schedule-header .actions {
    display: flex;
    gap: 10px;
}
.schedule-header .actions button {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}
.schedule-header .actions button:hover {
    background: #f5f7fa;
}
.schedule-container {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
    min-height: 300px;
}
.schedule-table-container {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}
.schedule-table th,
.schedule-table td {
    border: 1px solid #ebeef5;
    text-align: center;
    vertical-align: top;
    padding: 12px 8px;
}
.schedule-table th {
    background: #fafafa;
    font-weight: 500;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.schedule-table .time-col {
    width: 96px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 5;
}
/* 上午/下午/晚上分组：背景色区分 + 组间分隔线 */
.schedule-table tbody tr.time-group-morning td { background: #f2f7ff; }
.schedule-table tbody tr.time-group-afternoon td { background: #f4faf2; }
.schedule-table tbody tr.time-group-evening td { background: #f7f4fb; }
.schedule-table tbody tr.time-group-start td { border-top: 3px solid #cfd9e6; }
.schedule-table tbody tr.time-group-morning td.time-col { background: #f2f7ff; }
.schedule-table tbody tr.time-group-afternoon td.time-col { background: #f4faf2; }
.schedule-table tbody tr.time-group-evening td.time-col { background: #f7f4fb; }

.schedule-table td {
    min-width: 170px;
    white-space: normal;
    word-wrap: break-word;
    height: 92px;
    overflow: hidden;
    line-height: 1.5;
}
.course-detail {
    background: #e8f4ff;
    border-radius: 6px;
    padding: 8px;
    font-size: 13px;
    text-align: left;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.course-detail .course-time {
    color: #409eff;
    font-weight: 500;
    margin-bottom: 4px;
}
.course-detail .course-name,
.course-detail .course-class,
.course-detail .course-location,
.course-detail .course-weeks {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.course-detail .course-name {
    color: #1f2d3d;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
    line-height: 1.3;
}
.course-detail .course-class {
    color: #409eff;
    font-size: 13px;
    margin-bottom: 2px;
}
.course-detail .course-location {
    color: #909399;
    font-size: 12px;
}
.course-detail .course-weeks {
    color: #e6a23c;
    font-size: 12px;
    margin-top: 2px;
    font-weight: 600;
}
.today-courses {
    width: 320px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    padding-right: 10px;
    scrollbar-width: thin;
}
.today-courses .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: #fff;
    padding-top: 5px;
    z-index: 10;
}
.course-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #409eff;
}
.course-card.completed {
    border-left-color: #909399;
    opacity: 0.7;
}
.course-card .course-name {
    font-weight: 500;
    margin-bottom: 6px;
}
.course-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 10px;
}
.course-card .meta .status {
    background: #e6f7ff;
    color: #409eff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.course-card .meta .status.completed {
    background: #f5f7fa;
    color: #909399;
}
.course-card .actions {
    display: flex;
    gap: 8px;
}
.course-card .actions button {
    flex: 1;
    padding: 4px 0;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.course-card .actions .sign-btn {
    background: #409eff;
    color: #fff;
}
.course-card .actions .score-btn {
    background: #9575cd;
    color: #fff;
}
.course-card .actions .completed-btn {
    background: #e6e6e6;
    color: #666;
    cursor: not-allowed;
}
.course-card .location {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: right;
}

/* 签到管理页面 */
.sign-page {
    gap: 15px;
}
.sign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
    flex-wrap: wrap;
    gap: 10px;
}
.sign-header .title {
    font-size: 18px;
    font-weight: 600;
}
.sign-control-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #ebeef5;
    flex-wrap: wrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}
.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.control-group label {
    font-size: 14px;
    color: #666;
}
.course-select,
.location-select {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    min-width: 150px;
}
.type-tabs {
    display: flex;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    overflow: hidden;
}
.type-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}
.type-btn.active {
    background: #9575cd;
    color: #fff;
}
.duration-selector {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    overflow: hidden;
}
.duration-selector button {
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f7fa;
    cursor: pointer;
    font-size: 14px;
}
.duration-selector input {
    width: 40px;
    height: 30px;
    border: none;
    text-align: center;
    outline: none;
}
.publish-btn {
    padding: 8px 20px;
    background: #9575cd;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.status-indicator {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.status-text {
    font-size: 14px;
    color: #666;
}
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.status-badge.running {
    background: #f0f9eb;
    color: #67c23a;
}
.status-badge.ended {
    background: #f5f7fa;
    color: #909399;
}
/* 已结束签到、仍在 100 分钟补签窗口内（课堂继续） */
.status-badge.signended {
    background: #fdf6ec;
    color: #e6a23c;
}
/* 已下课 */
.status-badge.classended {
    background: #f4f4f5;
    color: #606266;
}
.stats-cards {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}
.stat-card {
    flex: 0 0 120px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
.stat-value.green {
    color: #67c23a;
}
.stat-value.orange {
    color: #e6a23c;
}
.stat-value.purple {
    color: #9575cd;
}
.stat-value.red {
    color: #f56c6c;
}
.sign-list-container {
    flex: 1;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 300px;
}
.list-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #ebeef5;
    background: #fafafa;
    position: sticky;
    top: 0;
    z-index: 10;
}
.view-toggle {
    padding: 4px 12px;
    background: #e6f7ff;
    color: #409eff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.list-actions {
    display: flex;
    gap: 10px;
}
.refresh-btn, .export-btn {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sign-table {
    width: 100%;
    border-collapse: collapse;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}
.sign-table th, .sign-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}
.sign-table th {
    background: #f5f7fa;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 6px 6px;
}
.sign-table td {
    font-size: 14px;
    padding: 4px 6px;
}
.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.status-tag.signed {
    background: #f0f9eb;
    color: #67c23a;
}
.status-tag.late {
    background: #fffbe6;
    color: #e6a23c;
}
.status-tag.leave {
    background: #f0f9eb;
    color: #9575cd;
}
.status-tag.absent {
    background: #fef0f0;
    color: #f56c6c;
}
.status-tag.early {
    background: #e6f7ff;
    color: #409eff;
}
/* 签到列表的考勤状态下拉框（取代原来一排 ✅⏰📝❌ 按钮），配色与状态标签一致 */
.status-select {
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    min-width: 74px;
}
.status-select:focus {
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}
.status-select.signed {
    background: #f0f9eb;
    color: #67c23a;
    border-color: #c2e7b0;
}
.status-select.late {
    background: #fffbe6;
    color: #e6a23c;
    border-color: #f5dab1;
}
.status-select.leave {
    background: #f0f9eb;
    color: #9575cd;
    border-color: #d3c1ee;
}
.status-select.absent {
    background: #fef0f0;
    color: #f56c6c;
    border-color: #fbc4c4;
}
.status-select.early {
    background: #e6f7ff;
    color: #409eff;
    border-color: #b3d8ff;
}
.quick-actions {
    display: flex;
    gap: 4px;
}
.action-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-btn.normal {
    background: #f0f9eb;
    color: #67c23a;
}
.action-btn.late {
    background: #fffbe6;
    color: #e6a23c;
}
.action-btn.leave {
    background: #f0f9eb;
    color: #9869e9;
}
.action-btn.absent {
    background: #fef0f0;
    color: #f56c6c;
}
.action-btn.early {
    background: #e6f7ff;
    color: #409eff;
}

/* 课堂设计页面 */
.classroom-design-page {
  padding: 20px;
}
.design-controls {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.design-controls label {
  font-weight: 500;
}
.design-controls input,
.design-controls select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.design-controls button {
  padding: 6px 16px;
  background-color: #6c63ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.design-controls button:hover {
  background-color: #5a52d5;
}
.delete-layout-btn {
    background-color: #f56c6c !important;
    margin-left: 8px;
}
.delete-layout-btn:hover {
    background-color: #f03838 !important;
}
.seat-map {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  overflow: hidden;
  min-height: 300px;
  gap: 20px;
}
.teacher-desk {
  order: 0;
  text-align: center;
  padding: 8px 0;
  background: #f5f7fa;
  border-radius: 4px;
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}
.seat-grid {
    display: grid;
    gap: 10px;
    justify-content: center;
    padding: 16px;
    order: 1;
}
.seat-card {
    width: 70px;
    height: 45px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #856404;
    cursor: pointer;
    transition: all 0.3s;
}
.seat-card:hover {
    background: #ffeeba;
    border-color: #ffc107;
}

/* 课堂互动页面 */
.interaction-page {
    gap: 15px;
    display: flex;
    flex-direction: column;
}
.interaction-main {
    flex: 3;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}
.ranking-panel {
    flex: 1;
    width: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}
.interaction-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.interaction-header-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.classroom-select-bar {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.classroom-select-bar label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}
.classroom-select-bar select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-width: 200px;
    outline: none;
    font-size: 14px;
}
.interaction-header .title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.interaction-header .subtitle {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    white-space: nowrap;
}
.legend {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #666;
    overflow-x: auto;
    padding-bottom: 5px;
}
.optional-checkbox {
    margin-right: 4px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot.selected {
    background: #cbb5fc;
}
.legend-dot.absent {
    background: #f8a8b8;
}
#interaction-seat-grid-main {
    display: grid;
    gap: 4px;      /* 原 8px：与签到页对齐，把宽度让给座位格 */
    padding: 10px; /* 原 16px */
    overflow-y: auto;
    scrollbar-width: thin;
}
.seat {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    min-height: 60px;
    max-width: 90px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.seat:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
.seat.selected {
    background: #f6f0ff;
    border-color: #9575cd;
}
.seat.absent {
    background: #fef0f0;
    border-color: #f56c6c;
}
.seat .seat-number {
    font-size: 12px;
    color: #495057;
    margin-bottom: 4px;
}
.seat .student-name {
    font-size: 13px;
    color: #212529;
    font-weight: 500;
}
.selected-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: #9575cd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}
.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 5px;
    height: 5px;
    background: #67c23a;
    border-radius: 50%;
}
.score-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #ebeef5;
}
.current-student-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.student-avatar {
    width: 32px;
    height: 32px;
    background: #ccc;
    border-radius: 50%;
}
.info-text {
    font-size: 14px;
    color: #666;
}
.info-text div:first-child {
    font-weight: 500;
    color: #333;
}
.score-buttons {
    display: flex;
    gap: 12px;
}
.score-btn {
    padding: 6px 16px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.score-btn::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.score-btn.answer::before {
    background: #67c23a;
}
.score-btn.performance::before {
    background: #e6a23c;
}
.score-btn.custom::before {
    background: #409eff;
}
.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: #fff;
    padding-top: 5px;
    z-index: 10;
}
.ranking-header .title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ranking-header .title::before {
    content: "🏆";
}
.ranking-tabs {
    display: flex;
    background: #f5f7fa;
    border-radius: 4px;
    margin-bottom: 15px;
    position: sticky;
    top: 40px;
    background: #fff;
    z-index: 10;
}
.tab-btn {
    flex: 1;
    padding: 6px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}
.tab-btn.active {
    background: #e6f7ff;
    color: #409eff;
    font-weight: 500;
}
/* 核心修改：积分榜样式 - 确保一次性显示15名学生 */
.ranking-list {
    flex: 1;
    overflow: visible; /* 取消溢出隐藏 */
    min-height: calc(15 * 40px); /* 15条 × 40px（含间距），确保足够高度 */
    margin-bottom: 20px; /* 与分页按钮拉开距离 */
}
.ranking-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 12px;
    height: 36px;
}
.ranking-item.first {
    background: #fffbe6;
}
.ranking-item.second {
    background: #f0f9eb;
}
.ranking-item.third {
    background: #fef0f0;
}
.ranking-item .rank {
    width: 20px;
    font-weight: 500;
    margin-right: 8px;
}
.ranking-item .student-name {
    flex: 1;
}
.ranking-item .score {
    color: #999;
    font-size: 11px;
}
/* 核心修改：分页按钮样式 - 下移且不挤压列表 */
#ranking-pagination {
    margin-top: 20px; /* 改用像素单位，精准控制间距 */
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.pagination-btn {
    padding: 4px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}
.pagination-btn.active {
    background: #9575cd;
    color: #fff;
    border-color: #9575cd;
}
.pagination-btn:disabled {
    background: #f5f7fa;
    color: #c0c4cc;
    cursor: not-allowed;
}
.pagination-ellipsis {
    font-size: 12px;
    color: #909399;
    padding: 0 4px;
}

/* 成绩管理页面 */
.score-page {
    gap: 15px;
}
.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.score-header .course-select {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    min-width: 220px;
    white-space: nowrap;
}
.score-header .search {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    width: 200px;
    background: #fff;
    white-space: nowrap;
}
.score-header .weight {
    background: #e6f7ff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #409eff;
    white-space: nowrap;
}
.score-header .weight button {
    background: none;
    border: none;
    color: #409eff;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
}
.score-table-container {
    flex: 1;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 300px;
}
.score-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}
.score-table th {
    background: #f5f7fa;
    font-weight: 500;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.score-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
    font-size: 14px;
}
.score-table tr:hover {
    background: #fafafa;
}
.score-table input {
    padding: 4px 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    width: 80px;
}
.score-table .input-btn {
    background: #fffbe6;
    border: 1px solid #ffeaa7;
    color: #e6a23c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.score-table .remark-input {
    border: none;
    border-bottom: 1px solid #ebeef5;
    width: 100%;
    background: transparent;
}
.score-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
}
.alert {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #f56c6c;
    white-space: nowrap;
}
.alert .dot {
    width: 6px;
    height: 6px;
    background: #f56c6c;
    border-radius: 50%;
}
.score-stats {
    display: flex;
    gap: 20px;
    padding: 10px 15px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #ebeef5;
    white-space: nowrap;
}
.score-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.score-stat-item .value {
    font-weight: 600;
    color: #f56c6c;
}
.score-stat-item .avg-value {
    font-weight: 600;
    color: #409eff;
}
.score-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}
.score-actions button {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}
.score-actions .submit-btn {
    background: #9575cd;
    color: #fff;
    border: none;
}

/* 设置页面 */
.settings-page {
    gap: 15px;
}
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
    width: 100%;
    position: sticky;
    top: 0;
    background: #fff;
    padding-top: 20px;
    margin: -20px -20px 15px;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 10;
}
.settings-header .title {
    font-size: 18px;
    font-weight: 600;
}
.settings-header .save-btn {
    background: #9575cd;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.settings-panels-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 400px;
    scrollbar-width: thin;
}
.settings-panel {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.settings-panel .panel-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}
.settings-panel .panel-title i {
    color: #9575cd;
}
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
}
.form-group label {
    width: 80px;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}
.form-group input {
    padding: 6px 12px;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    width: 200px;
    background: #fafafa;
    flex-shrink: 0;
}
.form-group .change-btn {
    background: #fff;
    border: 1px solid #ebeef5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    margin-left: auto;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: #9575cd;
}
input:focus + .toggle-slider {
    box-shadow: 0 0 1px #9575cd;
}
input:checked + .toggle-slider:before {
    transform: translateX(24px);
}
.config-btn {
    background: none;
    border: none;
    color: #9575cd;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
    margin-left: auto;
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #909399;
}

/* 响应式适配补充 */
@media (max-width: 1200px) {
    .interaction-page {
        flex-direction: column;
    }
    .ranking-panel {
        min-height: 300px;
    }
    .seat-grid {
        grid-template-columns: repeat(auto-fill, 70px);
    }
}
@media (max-width: 768px) {
    .schedule-container {
        flex-direction: column;
    }
    .today-courses {
        width: 100%;
        height: 200px;
    }
    .stats-cards {
        flex-wrap: wrap;
    }
    .stat-card {
        flex: 0 0 calc(50% - 8px);
        margin-bottom: 10px;
    }
    .interaction-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .classroom-select-bar {
        width: 100%;
    }
    .classroom-select-bar select {
        width: 100%;
        min-width: auto;
    }
    #interaction-seat-grid-main {
        grid-template-columns: repeat(auto-fill, 70px);
    }
    .seat {
        max-width: 70px;
        min-height: 50px;
    }
    .ranking-list {
        max-height: calc(15 * 32px);
    }
    .ranking-item {
        height: 32px;
        padding: 6px 8px;
    }
    #ranking-pagination {
        margin-top: 20px;
    }
}
@media (max-width: 480px) {
    .sidebar {
        width: 160px;
    }
    .content-area {
        width: calc(100vw - 160px);
    }
    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }
    .top-bar .user-info {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }
    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .schedule-header .actions {
        width: 100%;
        justify-content: space-between;
    }
    .score-action-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .score-buttons {
        width: 100%;
        justify-content: space-between;
    }
    #ranking-pagination {
        gap: 4px;
        margin-top: 20px;
    }
    .pagination-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
}
@keyframes scoreHighlight {
    0% { background-color: inherit; }
    50% { background-color: #f6f0ff; }
    100% { background-color: inherit; }
}
.score-highlight {
    animation: scoreHighlight 1s ease;
}
.classroom-design-page .seat-map .seat-grid {
    order: 1;
}
.interaction-page .seat-map .seat-grid {
    order: 1;
}

/* 课表导入按钮 */
.btn-import-schedule{padding:8px 18px;border-radius:8px;border:none;background:#5b8def;color:#fff;font-size:14px;cursor:pointer;margin-left:12px;}
.btn-import-schedule:hover{background:#4a7de0;}
#semester-select{padding:8px;border-radius:8px;border:1px solid #ddd;font-size:14px;margin-right:8px;}

/* 页面通用头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebeef5;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.action-btn-primary {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #5b8def;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.action-btn-primary:hover {
    background: #4a7de0;
}
.action-btn-secondary {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #5b8def;
    background: #fff;
    color: #5b8def;
    font-size: 14px;
    cursor: pointer;
}
.action-btn-secondary:hover {
    background: #e8f0fe;
}

/* 我的班级 + 我教的课 共用样式 */
.myclass-page, .mycourse-page {
    gap: 15px;
}
.myclass-list, .mycourse-list {
    flex: 1;
    overflow-y: auto;
}
.cls-card-w{background:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,0.06);overflow:hidden;margin-bottom:12px;}
.cls-header-w{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;transition:background 0.2s;}
.cls-header-w:hover{background:#fafafa;}
.cls-arrow-w{font-size:18px;color:#ccc;transition:transform 0.2s;}
.cls-body-w{padding:0 16px 16px;border-top:1px solid #f0f0f0;}
.act-w{padding:6px 14px;border-radius:8px;border:none;font-size:13px;cursor:pointer;}
.act-w.blue{background:#e8f0fe;color:#5b8def;}
.act-w.gold{background:#fff8e8;color:#e8a840;}
.act-w.red{background:#fee8e8;color:#f56;}
.stu-list-w{margin-top:12px;max-height:400px;overflow-y:auto;}
.stu-row-w{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f5f5f5;font-size:14px;}
.stu-mon-btn{font-size:12px;color:#e8a840;cursor:pointer;padding:2px 8px;border:1px solid #e8a840;border-radius:6px;}
.stu-reset-btn{font-size:12px;color:#5b8def;cursor:pointer;padding:2px 8px;border:1px solid #5b8def;border-radius:6px;}
.stu-del-btn{font-size:16px;color:#f56;cursor:pointer;}

/* 我的班级：学生名单表格 */
.stu-table-wrap{overflow-x:auto;margin-top:8px;border:1px solid #ebeef5;border-radius:8px;}
.stu-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap;}
.stu-table th{background:#f5f7fa;color:#606266;font-weight:600;padding:8px 10px;border-bottom:1px solid #ebeef5;text-align:center;}
.stu-table td{padding:7px 10px;border-bottom:1px solid #f0f2f5;color:#333;}
.stu-table tbody tr:hover{background:#f8fafd;}
.stu-table tbody tr:last-child td{border-bottom:none;}
.stu-table .stu-actions{white-space:nowrap;}
.stu-table .stu-actions .stu-mon-btn,
.stu-table .stu-actions .stu-reset-btn{margin-right:6px;display:inline-block;}

/* 我教的课标签样式 */
.cls-tag{display:inline-block;padding:4px 12px;border-radius:12px;font-size:12px;background:#f0f0f0;color:#888;cursor:pointer;border:2px solid transparent;margin:2px;}
.cls-tag:hover{border-color:#5b8def;}
.tag-on{background:#e8f0fe;color:#5b8def;border-color:#5b8def;font-weight:600;}
.tag-x{font-size:14px;margin-left:4px;cursor:pointer;opacity:0.6;}
.tag-x:hover{opacity:1;}
.tag-add{background:#fff;color:#5b8def;border:1px dashed #5b8def;font-style:italic;}
.picker-menu{background:#fff;border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,0.15);z-index:9999;min-width:160px;max-height:240px;overflow-y:auto;}
.picker-item{padding:10px 16px;cursor:pointer;font-size:14px;border-bottom:1px solid #f5f5f5;}

/* 签到座位实况图 */
.sign-layout {
    display: flex;
    gap: 16px;
    flex: 1;
    min-height: 0;
}
.sign-seatmap-container {
    flex: 1;
    min-width: 0;
    max-width: 78%;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow-y: auto;
}
.sign-layout .sign-list-container {
    flex: 1;
    min-width: 220px;
    max-width: 30%;
}
.seatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}
.seatmap-header small {
    font-weight: normal;
    font-size: 10px;
    color: #999;
}
.sign-seat-grid {
    display: grid;
    gap: 4px;
    flex: 1;
    align-content: start;
    grid-auto-rows: min-content;
}
.sseat {
    aspect-ratio: 2;
    border-radius: 1px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #aaa;
    border: 0.5px solid #ddd;
    overflow: hidden;
    min-height: 12px;
    padding: 0 1px;
    line-height: 1;
}
.sseat-occ {
    background: #5b8def;
    color: #fff;
    border-color: #4a7de0;
    font-weight: 600;
    font-size: 14px;
}
.sseat-empty {
    background: #f5f5f5;
    color: #999;
    border-color: #e8e8e8;
    font-size: 14px;
    font-weight: normal;
}

/* 签到管理页座位：可点击选中（教师选座代签） */
#signSeatGrid .sseat {
    cursor: pointer;
}
#signSeatGrid .sseat-occ {
    cursor: pointer; /* 点已占座位可选中该学生（右侧列表跟着高亮） */
}
#signSeatGrid .sseat.selected {
    background: #9575cd !important;
    border-color: #6c63ff !important;
    box-shadow: 0 0 4px rgba(109, 99, 255, 0.5);
    color: #fff !important;
}
#signSeatGrid .sseat.hovered {
    outline: 1px dashed #6c63ff;
}
/* 点座位选中的学生，右侧列表对应行高亮 */
#sign-list-body tr.row-selected,
#sign-list-body tr.row-selected td {
    background: #f2ecff !important;
}
#sign-list-body tr.row-selected td:first-child {
    box-shadow: inset 3px 0 0 #9575cd;
}

.picker-item:hover{background:#e8f0fe;color:#5b8def;}

/* 成绩管理页表格：统一居中对齐 */
.score-page .score-table th,
.score-page .score-table td {
    text-align: center;
}

/* 签到记录查询 - 活动列表面板 */
.activity-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px 8px;
    cursor: pointer;
    user-select: none;
}
.activity-panel-header:hover {
    opacity: 0.8;
}
.score-activity-panel {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}
.activity-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* 签到管理页汇总勾选（横排） */
.sign-check-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 8px;
}
.sign-check-bar label {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* 成绩管理页标签页 */
.score-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    background: #f5f7fa;
    border-radius: 8px;
    border: 1px solid #ebeef5;
}
.score-tab {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.score-tab:hover {
    background: #e8f0fe;
    color: #409eff;
}
.score-tab.active {
    background: #9575cd;
    color: #fff;
    font-weight: 600;
}

/* 成绩管理页汇总勾选栏 */
.score-check-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 6px 16px;
    background: #fafafa;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* 成绩管理页工具栏（统计+操作，表格上方） */
.score-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #fafafa;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.score-toolbar .score-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.score-toolbar .score-actions {
    display: flex;
    gap: 8px;
}
.score-toolbar .score-actions button {
    padding: 5px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}
.score-toolbar .score-actions .submit-btn {
    background: #9575cd;
    color: #fff;
    border: none;
}

/* 成绩管理页查询栏（一行排列） */
.score-query-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}
.score-query-bar .control-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.score-query-bar label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.score-query-bar select {
    padding: 5px 8px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 13px;
    min-width: 110px;
    max-width: 180px;
}

/* 课堂管理页加分操作栏 */
.interaction-score-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
    background: #fafafa;
    border: 1px solid #ebeef5;
    border-radius: 6px;
    margin-bottom: 8px;
}
.interaction-score-bar .current-student-info {
    display: flex;
    align-items: center;
    gap: 4px;
}
.interaction-score-bar .score-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.interaction-score-bar .int-score-btn {
    padding: 4px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}
.interaction-score-bar .int-score-btn:hover {
    filter: brightness(0.95);
}
.interaction-score-bar .int-score-btn.good {
    color: #18A06E;
    border-color: #18A06E;
    background: #f0f9eb;
}
.interaction-score-bar .int-score-btn.bad {
    color: #f56c6c;
    border-color: #f56c6c;
    background: #fef0f0;
}
.interaction-score-bar .int-score-btn.half {
    color: #e8a840;
    border-color: #e8a840;
    background: #fffbe6;
}
.interaction-score-bar .int-score-btn.custom {
    color: #409eff;
    border-color: #409eff;
    background: #ecf5ff;
}
.interaction-score-bar .int-score-btn.endclass {
    color: #fff;
    border-color: #f56c6c;
    background: #f56c6c;
    font-weight: 600;
}
.interaction-control-bar .current-student-info {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* 互动座位可点击 */
#interaction-seat-grid-main .sseat {
    cursor: pointer;
    /* 课堂管理页座位放大：格子更高（2:1 → 1.6:1），姓名折行也放得下 */
    aspect-ratio: 1.6;
}
#interaction-seat-grid-main .sseat-occ {
    background: #5b8def;
}
#interaction-seat-grid-main .sseat.selected {
    background: #9575cd !important;
    border-color: #6c63ff !important;
    box-shadow: 0 0 4px rgba(109, 99, 255, 0.5);
}
#interaction-student-list td {
    font-size: 14px;
    padding: 6px 4px;
}
/* 学生积分列表列宽：座位列窄、积分总分列宽
   注意：这些宽度是「声明值」，合计超过容器时浏览器会按比例压缩，
   最先被牺牲的是序号列（表头「序号」折成两行）。所以这里按内容实际需要收紧，
   把省下的宽度让给左边的座位图。 */
#interaction-student-list td:nth-child(1) {
    width: 44px;
    text-align: center;
}
#interaction-student-list td:nth-child(2) {
    width: 108px;
}
#interaction-student-list td:nth-child(3) {
    width: 56px;
    text-align: center;
}
#interaction-student-list td:nth-child(4) {
    width: 68px;
    text-align: center;
}
#interaction-student-list td:nth-child(5) {
    width: 60px;
    text-align: center;
}
.interaction-page .sign-table th:nth-child(1) {
    width: 44px;
    text-align: center;
}
.interaction-page .sign-table th:nth-child(2) {
    width: 108px;
}
.interaction-page .sign-table th:nth-child(3) {
    width: 56px;
    text-align: center;
}
.interaction-page .sign-table th:nth-child(4) {
    width: 68px;
    text-align: center;
}
.interaction-page .sign-table th:nth-child(5) {
    width: 60px;
    text-align: center;
}
/* 课堂管理页专属：座位图占宽、学生列表收窄（格子更大）。
   flex-shrink 保持 1 —— 屏幕变窄时让座位图先让位，
   否则列表的 min-width 会把整页顶出横向滚动条。 */
.interaction-page .sign-seatmap-container {
    flex: 0 1 82%;
    max-width: 82%;   /* 基础规则里的 78% 会把座位图封顶，这里要一起放开 */
    min-width: 0;
}
.interaction-page .sign-layout .sign-list-container {
    flex: 1;
    min-width: 400px;
}