/* 基础重置与全局样式（所有页面共用，奠定页面基础布局） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    background-color: #f5f7fa;
    font-family: "微软雅黑", "PingFang SC", sans-serif;
    box-sizing: border-box;
}

.main-content {
    display: block;
    width: 98%;
    margin: 50px auto !important;
    overflow-x: hidden;
    box-sizing: border-box !important;
}

/* 通用容器样式（按宽度分级，满足不同页面布局需求） */
.full-width-container {
    width: 98% !important;
    margin: 10px auto !important;
    box-sizing: border-box !important;
}

.mid-width-container {
    width: 80% !important;
    margin: 10px auto !important;
    box-sizing: border-box !important;
}

.small-width-container {
    width: 60% !important;
    margin: 10px auto !important;
    box-sizing: border-box !important;
}

/* 页面标题区与操作按钮（左标题+右按钮，支持移动端换行） */
.page-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.title-area {
    flex: 1;
}

.page-title {
    font-size: 1.0rem !important;
    font-weight: 700;
    color: #002EA6;
    margin-bottom: 2px !important;
}

.page-desc {
    font-size: 0.7rem !important;
    color: #86909c;
    margin: 0;
}

.btn-group-wrapper {
    margin: 0 !important;
}

.page-header-btn {
    background-color: #002EA6 !important;
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 3px !important;
    font-size: 0.75rem !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    white-space: nowrap;
}

/* 搜索栏公共样式 */
.filter-form {
    margin: 0 0 15px 0;
    padding: 10px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.filter-form__content {
    width: 100%;
}

.filter-form__item {
    min-width: 100px;
    box-sizing: border-box;
}

/* 输入框/下拉框样式 */
.filter-form__input,
.filter-form__select {
    width: 100%;
    padding: 2px 6px;
    height: 30px;
    font-size: 0.75rem;
    border-radius: 3px;
    border: 1px solid #e1e5e9;
    box-sizing: border-box;
}

.filter-form__select {
    appearance: none;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0l6 6 6-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 8px center;
    padding-right: 20px;
}

/* 搜索栏专属按钮基础样式 */
.filter-form__btn {
    height: 26px;
    padding: 0 12px;
    font-size: 0.75rem;
    border-radius: 3px;
    border: none !important;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 26px;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    outline: none;
}

/* 搜索按钮样式 */
.filter-form__btn--search {
    background-color: #002EA6;
    color: #fff !important;
}

.filter-form__btn--search:hover,
.filter-form__btn--search:active,
.filter-form__btn--search:focus {
    text-decoration: none !important;
    color: #fff !important;
    background-color: #002EA6;
}

/* 重置按钮样式 */
.filter-form__btn--reset {
    background-color: #f0f0f0;
    color: #333 !important;
}

.filter-form__btn--reset:hover,
.filter-form__btn--reset:active,
.filter-form__btn--reset:focus {
    text-decoration: none !important;
    color: #333 !important;
    background-color: #e8e8e8;
    outline: 1px solid #dcdcdc;
}

/* 输入框聚焦样式 */
.filter-form__input:focus,
.filter-form__select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 表格相关样式（滚动容器+表格卡片+表格布局，支持自适应+滚动） */
.table-scroll-container {
    width: 100% !important;
    overflow-x: auto; /* 仅当表格超出时显示滚动条 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #002EA6 #002EA6;
}

.table-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: #f5f7fa;
    border-radius: 3px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background-color: #002EA6;
    border-radius: 3px;
}

.table-card {
    width: 100% !important;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px !important;
    margin-top: 10px;
    box-sizing: border-box !important;
    overflow: hidden;
}

.table {
    margin-bottom: 0 !important;
    width: 100% !important;
    table-layout: fixed; /* 保留固定布局，确保列宽不被内容撑大 */
    /* 移除 min-width: 1400px; 让表格自适应容器，不强制滚动 */
}

.table-header-row th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
    padding: 8px 5px !important;
    border-color: #e1e5e9;
    font-size: 0.8rem !important;
    white-space: nowrap; /* 禁止表头换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 溢出显示省略号 */
}

.table-body-row td {
    padding: 8px 5px !important;
    border-color: #e1e5e9;
    vertical-align: middle;
    font-size: 0.8rem !important;
    position: relative;
    z-index: 1; /* 确保低于模态框 */
    white-space: nowrap; /* 禁止单元格换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 溢出显示省略号 */
}

/* ====================================== */
/* 冻结前三列（配合 utils.js 的 freezeTableColumns，横向滚动时前 3 列保持可见） */
/* ====================================== */
.table-freeze th:nth-child(1),
.table-freeze td:nth-child(1) {
    position: sticky !important;
    left: 0;
    z-index: 4;
}

.table-freeze th:nth-child(2),
.table-freeze td:nth-child(2) {
    position: sticky !important;
    left: var(--fz-1, 0px); /* 第 1 列宽度，由 JS 按表写入 */
    z-index: 4;
}

.table-freeze th:nth-child(3),
.table-freeze td:nth-child(3) {
    position: sticky !important;
    left: var(--fz-2, 0px); /* 第 1+2 列累计宽度，由 JS 按表写入 */
    z-index: 4;
}

/* 冻结列必须不透明，避免滚动时后面的内容透出 */
.table-freeze thead th:nth-child(-n+3) {
    background-color: #f8f9fa;
}

.table-freeze tbody td:nth-child(-n+3) {
    background-color: #fff;
}

/* 悬浮行时冻结列背景同步变灰（Bootstrap hover 色近似值，保持不透明） */
.table-freeze tbody tr:hover td:nth-child(-n+3) {
    background-color: #f1f3f5;
}

/* 第 3 列右缘阴影，区分冻结区与滚动区 */
.table-freeze th:nth-child(3),
.table-freeze td:nth-child(3) {
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
}

/* ====================================== */
/* 核心：通用列宽工具类（按需调用，灵活适配不同表格） */
/* ====================================== */
/* 小宽度列 */
.col-w-60 {
    width: 60px !important;
}

.col-w-80 {
    width: 80px !important;
}

/* 中等宽度列 */
.col-w-100 {
    width: 100px !important;
}

.col-w-120 {
    width: 120px !important;
}

.col-w-130 {
    width: 130px !important;
}

.col-w-140 {
    width: 140px !important;
}

.col-w-150 {
    width: 150px !important;
}

.col-w-160 {
    width: 160px !important;
}

.col-w-170 {
    width: 170px !important;
}

.col-w-180 {
    width: 180px !important;
}

/* 大宽度列（适用于操作列/内容较多的列） */
.col-w-200 {
    width: 200px !important;
}

.col-w-220 {
    width: 220px !important;
}

.col-w-240 {
    width: 240px !important;
}

.col-w-260 {
    width: 260px !important;
}

/* 百分比宽度列（可选，按需使用） */
.col-w-10p {
    width: 10% !important;
}

.col-w-15p {
    width: 15% !important;
}

/* ====================================== */
/* 状态标签与表格操作按钮（业务样式，区分不同状态和操作类型） */
/* ====================================== */
.status-cell {
    padding: 5px !important;
}

.badge-enabled {
    background-color: #2a9d8f !important;
    color: #fff !important;
    padding: 3px 5px !important;
    border-radius: 3px !important;
    font-size: 0.7rem !important;
}

.badge-disabled {
    background-color: #9a8c98 !important;
    color: #fff !important;
    padding: 3px 5px !important;
    border-radius: 3px !important;
    font-size: 0.7rem !important;
}

.badge-paused {
    background-color: #e9a23b !important;
    color: #fff !important;
    padding: 3px 5px !important;
    border-radius: 3px !important;
    font-size: 0.7rem !important;
}

.op-btn-group {
    display: flex;
    gap: 3px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
}

/* 强制水平排列（可选） */
.op-btn-group-no-wrap {
    flex-wrap: nowrap !important;
}

.op-btn {
    padding: 3px 5px !important;
    font-size: 0.7rem !important;
    border-radius: 3px !important;
    height: auto !important;
    width: auto !important;
    border: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 3;
    white-space: nowrap;
}

/* 操作按钮颜色样式 */
.op-btn-config {
    background-color: #9932CC !important;
    color: #fff !important;
}

.op-btn-edit {
    background-color: #f77f00 !important;
    color: #fff !important;
}

.op-btn-toggle {
    background-color: #e63946 !important;
    color: #fff !important;
}

.op-btn-enable {
    background-color: #2a9d8f !important;
}

/* 提交审批按钮：蓝色，创建者推送单据给审核人 */
.op-btn-review {
    background-color: #4361ee !important;
    color: #fff !important;
}

.op-btn-delete {
    background-color: #9a8c98 !important;
    color: #fff !important;
}

/* 课消通知按钮：未通知=红色可点，已通知=绿色禁用 */
.op-btn-notify {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.op-btn-notified {
    background-color: #28a745 !important;
    color: #fff !important;
    cursor: default !important;
    opacity: 0.85;
}

/* 缩略图（新增点击交互，保留原有尺寸） */
.thumbnail-img {
    max-width: 25px;
    max-height: 25px;
    width: auto;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    cursor: pointer; /* 提示可点击查看大图 */
    transition: transform 0.2s ease; /* 悬浮动画 */
}

.thumbnail-img:hover {
    transform: scale(1.05); /* 悬浮轻微放大，提升交互体验 */
}

/* 全局提示消息样式（固定右上角，最高层级不被遮挡） */
.flash-message {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
}

/* 模态框层级 - 必须高于固定导航栏（.nav-container z-index 9999），
   否则内容较高的弹窗顶部会被导航栏遮住。backdrop 同步上移且始终低于弹窗 */
.modal {
    z-index: 10550 !important;
}

.modal-backdrop {
    z-index: 10500 !important;
}

/* 全局模态框外层容器 - 实现所有模态框水平+垂直居中（删除/普通模态框） */
.modal-dialog {
    width: 100%;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    min-height: calc(100vh - 2rem); /* 适配视口高度，避免贴边 */
    margin: 0 auto !important; /* 清除默认margin，确保居中 */
    padding: 60px 1rem 16px !important; /* 顶部留出导航栏高度，弹窗在剩余空间内居中 */
    box-sizing: border-box !important;
}

/* 自定义模态框父容器 - 按需变宽（删除模态框专用，固定窄宽度） */
.modal-dialog-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 2rem);
    margin: 0 auto !important;
    max-width: 350px !important; /* 删除模态框固定宽度 */
    padding: 60px 1rem 16px !important; /* 与 .modal-dialog 一致，避开导航栏 */
    box-sizing: border-box !important;
}

/* 模态框核心自定义容器 - 整体样式（圆角+阴影+高度适配） */
.modal-custom {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    background-color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 108px) !important; /* 视口高度 - 导航栏留白(60) - 上下余量 */
    overflow: hidden !important;
    z-index: 9999 !important; /* 弹窗内部层级，外部由 .modal 的 10550 保证高于导航栏 */
    padding: 0 !important;
}

/* 模态框通用按钮 - 基础样式（内边距+字体+圆角） */
.modal-custom .modal-btn {
    padding: 0.5rem 1.8rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

/* 模态框通用按钮 - 主按钮样式（蓝色背景+白色文字） */
.modal-custom .modal-btn-primary {
    background-color: #002EA6 !important;
    color: #fff !important;
}

/* 模态框通用按钮 - 默认按钮样式（浅灰背景+深灰文字） */
.modal-custom .modal-btn-default {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

/* 模态框通用按钮 - 危险按钮样式（红色背景+白色文字） */
.modal-custom .modal-btn-danger {
    background-color: #e63946 !important;
    color: #fff !important;
}

/* 模态框标题栏 - 布局样式（内边距+底部边框+左右分栏） */
.modal-custom .modal-header-custom {
    padding: 1rem 1.2rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex: 0 0 auto !important;
}

/* 模态框标题文字 - 样式（字体大小+颜色+加粗） */
.modal-custom .modal-title-custom {
    font-size: 1.0rem !important;
    font-weight: 700 !important;
    color: #002EA6 !important;
    margin: 0 !important;
}

/* 模态框关闭按钮 - 默认状态（无背景+灰色文字） */
.modal-custom .modal-close-btn {
    background: none !important;
    border: none !important;
    font-size: 1.0rem !important;
    color: #86909c !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* 模态框关闭按钮 - 悬浮状态（红色文字） */
.modal-custom .modal-close-btn:hover {
    color: #e63946 !important;
}

/* 模态框内容区 - 样式（内边距+可滚动+自适应高度） */
.modal-custom .modal-body-custom {
    padding: 1.2rem 1.2rem !important;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    min-height: 0 !important;
}

/* 模态框底部按钮组 - 布局样式（居中+内边距+顶部边框） */
.modal-custom .form-btn-group,
.modal-custom .delete-btn-group {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.2rem !important;
    border-top: 1px solid #f0f0f0 !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    margin-top: 0 !important;
}

/* 模态框内表单元素统一字体（与 form-common 标准一致：
   标签 0.8rem / 输入控件 0.85rem / 辅助说明 0.75rem），避免 Bootstrap 默认值与页面自定义值混排 */
.modal-custom .form-label {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 0.35rem !important;
}

.modal-custom .form-control,
.modal-custom .form-select {
    font-size: 0.85rem !important;
    color: #333 !important;
    padding: 0.45rem 0.7rem !important;
}

.modal-custom .form-text {
    font-size: 0.75rem !important;
    color: #86909c !important;
}

.modal-custom .input-group-text {
    font-size: 0.8rem !important;
    color: #333 !important;
}

.modal-custom .form-check-label {
    font-size: 0.85rem !important;
}

/* 弹窗内表格统一字号：Bootstrap 表格默认继承 body 的 1rem，
   与弹窗内 0.8rem 的正文 / 列表页 .table-body-row 明显脱节，这里强制对齐到 0.8rem */
.modal-custom .table {
    font-size: 0.8rem !important;
}
.modal-custom .table th,
.modal-custom .table td {
    font-size: 0.8rem !important;
    padding: 6px 8px !important;
    vertical-align: middle;
}

/* 小屏下导航栏为两行（约 96px），模态框顶部留白同步加大 */
@media (max-width: 768px) {
    .modal-dialog,
    .modal-dialog-custom {
        padding-top: 104px !important;
    }
    .modal-custom {
        max-height: calc(100vh - 152px) !important;
    }
}

/* 模态框删除提示文本 - 样式（字体大小+居中对齐） */
.modal-custom .delete-tip {
    font-size: 0.8rem !important;
    color: #333 !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    padding: 1rem 0 !important;
}

/* 照片预览模态框外层容器 - 专属适配（固定大小+屏幕中央+层级置顶） */
.photo-preview-modal .modal-dialog-custom {
    position: fixed !important;
    top: 55% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 800px !important;
    height: 500px !important;
    margin: 0 !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
}

/* 照片预览模态框 - 核心容器适配固定大小 */
.photo-preview-modal .modal-custom {
    height: 100% !important; /* 继承父容器固定高度 */
    max-height: none !important; /* 取消最大高度限制，适配固定大小 */
}

/* 照片预览模态框 - 标题栏固定高度 */
.photo-preview-modal .modal-header-custom {
    height: 60px !important; /* 固定标题栏高度，预留内容区空间 */
    box-sizing: border-box !important;
}

/* 照片预览模态框 - 内容区固定高度+图片居中 */
.photo-preview-modal .modal-body-custom {
    height: calc(100% - 60px) !important; /* 扣除标题栏高度，固定内容区 */
    overflow: hidden !important; /* 隐藏溢出，避免滚动条 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

/* 照片预览模态框遮罩层 - 隐藏状态（初始不可见） */
.photo-preview-modal + .modal-backdrop {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9998 !important;
}

/* 照片预览模态框遮罩层 - 显示状态（模态框打开时可见） */
.photo-preview-modal.show + .modal-backdrop {
    width: 100vw !important;
    height: 100vh !important;
    opacity: 0.5 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 照片预览模态框 - 大图样式（适当缩放+保持比例+不溢出） */
.photo-preview-img {
    max-width: 100% !important; /* 不超过内容区宽度 */
    max-height: 100% !important; /* 不超过内容区高度 */
    object-fit: contain !important; /* 保持图片比例，不拉伸、不裁剪 */
    display: block !important;
    margin: 0 auto !important; /* 水平居中兜底 */
}

/*课程卡片*/
.course-card {
    height: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* 适配1920*1080分辨率的图片样式修改 */
.course-card .card-img-top {
    /* 宽高比设置为16:9（适配1080P主流比例），高度自适应 */
    aspect-ratio: 16/9;
    /* 确保图片填满容器，同时保持1920*1080分辨率下的清晰度 */
    width: 100%;
    height: auto;
    object-fit: cover;
    /* 优化图片渲染，提升1080P下的显示效果 */
    image-rendering: -webkit-optimize-contrast;
}
.course-card .card-body {
    padding: 1rem;
}
.info-row {
    font-size: 0.85rem;
    color: #6c757d;
}

/*提示框*/
.toast {
    position: fixed;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    display: none;
}
.toast-success {
    background-color: #198754;
}
.toast-error {
    background-color: #dc3545;
}

/* ====================================== */
/* 移动端适配（屏幕≤768px，统一容器宽度，优化小屏布局） */
/* ====================================== */
@media (max-width: 768px) {
    body {
        padding-top: 20px;  /* 根据你手机导航实际高度调整 */
    }
    .full-width-container,
    .mid-width-container,
    .small-width-container {
        width: 90% !important;
        margin: 8px auto !important;
        box-sizing: border-box !important;
    }

    /* 移动端照片预览模态框 - 调整固定大小，适配小屏 */
    .photo-preview-modal .modal-dialog-custom {
        width: 80vw !important;
        height: 60vh !important;
    }

    /* 移动端照片预览大图 - 微调边距，避免挤压 */
    .photo-preview-img {
        max-width: 95% !important;
        max-height: 95% !important;
    }

    .course-card .card-img-top {
        max-height: 225px;
    }
}


/* =============================
   Components: Pagination
   (moved from templates/pagination.html)
   ============================= */
/* 核心：让红色区域整体水平居中，保留内部元素布局 */
    .custom-pagination-container {
        display: flex;
        justify-content: center; /* 让红色区域内的内容整体居中 */
        align-items: center;
        gap: 40px; /* 页码和条数/记录数之间的间距，保持原有布局 */
        padding: 10px 20px;
        background-color: #f8f9fa;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin: 20px auto; /* 容器本身也居中（若页面有宽度限制） */
        width: 100%;
    }

    /* 小屏幕适配：上下排列且居中 */
    @media (max-width: 767.98px) {
        .custom-pagination-container {
            flex-direction: column;
            gap: 12px;
            padding: 12px 16px;
        }
    }

    /* 页码区域样式（保留原有） */
    .custom-pagination {
        display: inline-flex;
        margin: 0;
    }
    .custom-pagination .page-link {
        color: #2c3e50;
        border: 1px solid #dee2e6;
        margin: 0 2px;
        border-radius: 4px !important;
        transition: all 0.2s ease-in-out;
    }
    .custom-pagination .page-item.active .page-link {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: #fff;
        font-weight: 500;
    }
    .custom-pagination .page-item.disabled .page-link {
        color: #adb5bd;
        background-color: #f8f9fa;
        border-color: #dee2e6;
    }
    .custom-pagination .page-item:not(.disabled):not(.active) .page-link:hover {
        background-color: #e9ecef;
        border-color: #adb5bd;
        color: #0d6efd;
        transform: translateY(-1px);
    }

    /* 条数/记录数区域样式（保留原有） */
    .custom-pagination-info {
        display: flex;
        align-items: center;
        gap: 16px;
        font-size: 13px;
        color: #6c757d;
    }
    .custom-page-size-dropdown .btn {
        background-color: #fff;
        border: 1px solid #dee2e6;
        color: #2c3e50;
        padding: 2px 12px;
        border-radius: 4px;
        transition: all 0.2s ease-in-out;
    }
    .custom-page-size-dropdown .btn:hover {
        background-color: #e9ecef;
        border-color: #adb5bd;
        color: #0d6efd;
    }
    .custom-page-size-dropdown .dropdown-menu {
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #dee2e6;
        padding: 4px 0;
    }
    .custom-page-size-dropdown .dropdown-item {
        font-size: 13px;
        color: #2c3e50;
        padding: 6px 16px;
        transition: background-color 0.2s ease-in-out;
    }
    .custom-page-size-dropdown .dropdown-item:hover {
        background-color: #e9ecef;
        color: #0d6efd;
    }


/* =============================
   Utilities
   ============================= */
.hidden {
    display: none !important;
}


/* ===================== Unified Toast Notifications ===================== */

#toast-container{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast{
  min-width: 240px;
  max-width: 380px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: opacity .25s ease;
  word-break: break-word;
}

.toast-success{ background: #28a745; }
.toast-info{ background: #17a2b8; }
.toast-warning{ background: #ffc107; color:#333; }
.toast-error{ background: #dc3545; }

/* 全站页脚（含 ICP 备案号，工信部要求网站底部展示备案号并链接到 beian.miit.gov.cn） */
.site-footer {
  margin: 28px auto 18px;
  padding: 0 16px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.9;
  color: #98a2b3;
  letter-spacing: .2px;
}
.site-footer .sep { margin: 0 6px; color: #c8cfd9; }
.site-footer a {
  color: #98a2b3;
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer a:hover { color: #2563eb; text-decoration: underline; }
