@charset "utf-8";
/* CSS Document */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    background: #f5f7fa;
}

/* =========================================================
   专栏分类 Modal 私有样式（最终完整版）
   ========================================================= */
#flModal {
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+, Edge */
    user-select: none;          /* 标准语法 */
}
/* 1️⃣ modal 基础 */
#flModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}
/* ✅ 让 Bootstrap 的 modal-open 生效 */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important; /* 防止抖动 */
}

/* ✅ 确保 modal 本身不会影响 body */
#flModal.modal {
    overflow-x: hidden;
    overflow-y: auto;
}
/* 2️⃣ modal fade show 遮罩 */
#flModal.modal.show {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: .5;
}

.modal-backdrop.show {
    opacity: .5;
}

/* 3️⃣ dialog 尺寸 */
#flModal .modal-dialog.modal-lg {
    max-width: 800px;
    margin: 30px auto;
}

/* 4️⃣ content 高度限制（80vh） */
#flModal .modal-content {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

/* 5️⃣ header（关闭按钮居右） */
#flModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
}

#flModal .modal-header h5 {
    margin: 0;
    font-size: 16px;
}

#flModal .close {
    font-size: 20px;
    line-height: 1;
    margin-left: auto; cursor: pointer;
	
}

/* 6️⃣ body（滚动区） */
#flModal .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 15px;
}

/* 7️⃣ 表格样式（100% 宽） */
#flModal .table.table-bordered {
    width: 100%;
    margin-bottom: 0;
    background: #fff;
}

#flModal .table th,
#flModal .table td {
    vertical-align: middle;
    text-align: center;
    font-size: 13px;
}

#flModal .table th {
    background: #f8f9fa;
    font-weight: 600; 
}

/* ✅ 列宽调整 */
#flModal .table th:nth-child(3),
#flModal .table td:nth-child(3) {
    width: 100px; /* 托动排序 */
}

#flModal .table th:nth-child(4),
#flModal .table td:nth-child(4) {
    width: 120px; /* ✅ 操作栏更宽 */
}

/* ✅ 名称输入框变长 */
#flModal .table td:nth-child(2) {
    text-align: left;
}

#flModal .table input[name="name[]"] {
    width: 100%;min-width: 100px;
    box-sizing: border-box;
}


/* 8️⃣ 输入框美化（蓝色焦点） */
#flModal .form-control {
    height: 32px; 
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    outline: none;              /* ✅ 去除黑边 */
    transition: all .2s ease;
}

#flModal .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.15rem rgba(0,123,255,.25);
}

#flModal input[readonly].form-control {
    background-color: #f8f9fa;
    color: #495057;
    cursor: default;
}

/* 9️⃣ 按钮统一美化 */
#flModal .btn {
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 14px;
    transition: all .2s ease;
}

#flModal .btn-sm {
    padding: 2px 8px;
    font-size: 12px;
}

/* 删除按钮（与输入框等高） */
#flModal .btn-danger.btn-sm {
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	  border-radius: 5px;
	white-space: nowrap;
}

#flModal .table.table-bordered tbody tr td a.btn-danger.btn-sm {
    height: 32px;
    padding-left: 5px !important;
    padding-right: 5px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
	 border-radius: 5px;
}

#flModal .btn-danger.btn-sm:hover {
    background-color: #5aabff;
    border-color: #5aabff; color: #ffffff;
}

/* 新增 / 保存按钮 */

#flModal .modal-footer{ padding: 15px;}
#flModal .btn-success,
#flModal .btn-primary {padding: 10px; width: 100%; text-align: center; font-size: 14px;
    background-color: #5aabff; color: aliceblue;
    border-color: #5aabff;  border-radius: 5px;box-sizing: border-box;
	/* ✅ 水平 + 垂直居中 */
    display: flex;
    align-items: center;
    justify-content: center;
}

#flModal .btn-success:hover,
#flModal .btn-primary:hover {
    background-color: #459df8;
    border-color: #459df8;
}

/* =========================
   设置按钮容器
   ========================= */
.btn-action.set {
    position: relative;
    cursor: pointer;
}

/* =========================
   下拉菜单（默认隐藏）
   ========================= */
.viewset {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100px;
    background: #fff;
    border: 1px solid #ecf5ff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    z-index: 999;

    display: none;   /* ✅ 默认隐藏 */
}

/* =========================
   下拉菜单项
   ========================= */
.viewset ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.viewset li {
    padding: 8px 12px;
    font-size: 14px;
}

.viewset li:hover {
    background-color: #ecf5ff;
}

.viewset a {
    color: #333;
    text-decoration: none;
}

/* =========================
   鼠标移入显示
   ========================= */
.btn-action.set:hover .viewset {
    display: block;
}

/* 设置下拉菜单*/

/* =========================
   名称列：25% 宽度控制
   ========================= */
th[style*="width:25%"],
.column-name {
    width: 25%;
    max-width: 0;        /* 防止被内容撑开 */
    overflow: hidden;
}

/* =========================
   左侧图片区域
   ========================= */
.viewleft {
    float: left;
    width: 150px;
}

.viewpic img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    display: block;
	border-radius: 6px;
}

/* =========================
   右侧文字区域
   ========================= */
.viewright {
    margin-left: 160px;     /* 150 + 10 间距 */
    height: 100px;          /* 与图片等高 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* =========================
   标题样式（#333 + 省略号）
   ========================= */
.viewtitle {
    color: #333;
    font-size: 14px;
    line-height: 1.4;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    width: 100%;
    display: block;
}

/* =========================
   ID / 分类样式（#999）
   ========================= */
.viewid,
.viewfl {
    color: #999;
    font-size: 12px;
    line-height: 1.4;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* =========================
   清除浮动，防止影响下一行
   ========================= */
.column-name::after {
    content: "";
    display: table;
    clear: both;
}


.container { padding: 15px; }

.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 15px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.btn-add {
    background: linear-gradient(135deg,#409eff,#66b1ff);
    color: #fff;
}

.btn-trash {
    margin-left: auto;
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
}

.select-wrapper { position: relative; }

.select-status {
    appearance: none;
    padding: 8px 32px 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 12px;
    color: #909399;
    pointer-events: none;
}

.select-status:focus,
.search-input:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64,158,255,.2);
}

.search-wrapper {
    position: relative;
    width: 240px;
    min-width: 0;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c4cc;
}

.table-wrapper {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow-x: auto;
    padding: 0 15px;
    position: relative;
}

.table-wrapper table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

.table-name {
    width:25%;
    max-width: 25%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
table {
    table-layout: fixed;
    width: 100%;
}
thead th {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 2;
    padding: 14px 16px;
    font-weight: 600;
    border-bottom: 1px solid #ebeef5;
}

tbody td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #ebeef5;
}

tbody tr:hover { background: #f0f9ff; }

th:nth-child(n+2), td:nth-child(n+2) { text-align: center; }

.course-name {
    max-width: 25%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.ongoing { background: #ecf5ff; color: #409eff; }
.finished { background: #f0f9eb; color: #67c23a; }
.reviewing { background: #fdf6ec; color: #e6a23c; }
.rejected { background: #fef0f0; color: #f56c6c; }

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    background: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
    cursor: pointer;
    margin-right: 8px;
}

.btn-action.edit:hover {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}

.btn-action.delete {
    background: #fef0f0;
    color: #f56c6c;
    border-color: #fbc4c4;
}

.btn-action.delete:hover {
    background: #f56c6c;
    color: #fff;
    border-color: #f56c6c;
}

.loading-mask {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
	pointer-events: none; /* ✅ 关键 */
}

.loading-circle {
    width: 56px;
    height: 56px;
    animation: spin 1s linear infinite;
}

.loading-circle circle {
    transform-origin: center;
}

.loading-text {
    margin-top: 14px;
    font-size: 14px;
    color: #606266;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #909399;
}

.empty-icon {
    width: 64px;
    height: 41px;
    margin-bottom: 12px;
    opacity: .85;
}

.empty-text {
    font-size: 14px;
    letter-spacing: 1px;
}

/* ===============================
   ✅ 分页样式美化（重点）
=============================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fafafa;
    border-top: 1px solid #ebeef5;
    border-radius: 8px;
    flex-wrap: nowrap;
}

.page-left,
.page-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-center {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.page-center::-webkit-scrollbar {
    display: none;
}

/* ✅ 分页按钮 */
.page-btn,
.page-num {
    min-width: 36px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #fff;
    color: #606266;
    cursor: pointer;
    transition: all .2s;
}

.page-btn:hover,
.page-num:hover {
    border-color: #409eff;
    color: #409eff;
}

.page-num.active {
    background: #409eff;
    border-color: #409eff;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ebeef5;
    color: #c0c4cc;
}

.page-size {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 13px;
}

.page-total {
    font-size: 13px;
    color: #909399;
}

@media (max-width: 768px) {
    .page-total {
        display: none;
    }
}

/* 删除确认 */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    width: 320px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-content {
    font-size: 14px;
    color: #606266;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #dcdfe6;
    background: #fff;
}

.modal-btn.cancel:hover {
    color: #409eff;
    border-color: #409eff;
}

.modal-btn.confirm {
    background: #f56c6c;
    color: #fff;
    border-color: #f56c6c;
}

@media (max-width: 768px) {
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-wrapper { width: 100%; }
    .search-input { border-radius: 20px; }
    .btn-trash { width: 100%; justify-content: center; }
}

.hang{ clear: both; height: 10px; overflow: hidden;}
.hang5{ clear: both; height: 5px; overflow: hidden;}

.page-jump{ 
 width: 60px;
    height: 32px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    margin-left: 8px;
    text-align: center;
    color: #333;
    box-sizing: border-box;
}
.page-jump:focus {
    outline: none;                 /* ✅ 去掉黑边 */
    border-color: #409EFF;         /* ✅ 蓝色边框 */
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}


