/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa; /* 淡灰色背景 */
    padding: 10px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #343a40; /* 深色文本 */
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.form-label {
    font-weight: bold;
    margin-bottom: 8px;
}

.form-control {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-select {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

/* 按钮样式 */
button {
    padding: 5px;s
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* 列表项样式 */
.list-group-item {
    font-size: 16px;
    margin-bottom: 1px;
    padding: 1px;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* 小屏设备适配 */
@media (max-width: 1440px) {
    .container {
        padding: 0px;
        max-width: 100%;
    }

    h1, h2 {
        font-size: 20px;
    }

    button {
        font-size: 10px;
        padding: 4px;
    }

    .list-group-item {
        font-size: 16px;
        padding: 0px;
    }
}
/* 表格格式 */
table {
    border-collapse: collapse; /* 确保表格边框合并 */
    width: 100%; /* 确保表格宽度100% */
}

tr {
    background-color: transparent; /* 确保行背景透明 */
}

td {
    background-color: transparent; /* 确保单元格背景透明 */
}

.course-archives-table-wrap {
    max-height: 70vh;
    overflow: auto;
}

.course-archives-table {
    table-layout: fixed;
    width: 100%;
}

.course-archives-table th,
.course-archives-table td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-archives-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #e9ecef;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    word-break: break-all;
}

.course-archives-table thead th.table-sort-asc::after {
    content: " ▲";
    font-size: 12px;
    color: #6c757d;
}

.course-archives-table thead th.table-sort-desc::after {
    content: " ▼";
    font-size: 12px;
    color: #6c757d;
}

.course-archives-table th:nth-child(1),
.course-archives-table td:nth-child(1) {
    width: 2em;
}

.course-archives-table th:nth-child(2),
.course-archives-table td:nth-child(2) {
    width: 6em;
}

.course-archives-table th:nth-child(3),
.course-archives-table td:nth-child(3) {
    width: 4em;
}

.course-archives-table th:nth-child(4),
.course-archives-table td:nth-child(4) {
    width: 9em;
}

.course-archives-table th:nth-child(5),
.course-archives-table td:nth-child(5) {
    width: 6em;
}

.course-archives-table th:nth-child(6),
.course-archives-table td:nth-child(6) {
    width: 8em;
}

.course-archives-table th:nth-child(7),
.course-archives-table td:nth-child(7) {
    width: 2.4em;
}

.course-archives-table th:nth-child(8),
.course-archives-table td:nth-child(8) {
    width: 8em;
}

.course-archives-table th:nth-child(9),
.course-archives-table td:nth-child(9) {
    width: 3em;
}

.course-archives-table th:nth-child(10),
.course-archives-table td:nth-child(10) {
    width: 3em;
}

.course-archives-table th:nth-child(11),
.course-archives-table td:nth-child(11) {
    width: 3em;
}

.course-archives-table th:nth-child(12),
.course-archives-table td:nth-child(12) {
    width: 3em;
}

.course-archives-table th:nth-child(13),
.course-archives-table td:nth-child(13) {
    width: 4em;
}

.course-archives-table th:nth-child(14),
.course-archives-table td:nth-child(14) {
    width: 4em;
}

.course-archives-table th:nth-child(15),
.course-archives-table td:nth-child(15) {
    width: 3em;
}
