/* 考务报名管理系统 - 共享样式 */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background: linear-gradient(120deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
}

/* 主内容区自动撑开，footer 自然沉底 */
.content-wrapper {
    flex: 1 0 auto;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.btn-custom {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-custom:hover {
    background: #0b5ed7;
    color: white;
}

.tip {
    background: rgba(13, 110, 253, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-label {
    font-weight: 500;
}

/* 表格统一样式 */
.table th {
    background: #0d6efd;
    color: white;
    font-weight: 500;
}
.table {
    border-radius: 12px;
    overflow: hidden;
}
.table tr:hover {
    background-color: #f8f9fa;
}

/* 侧滑面板表单分组 */
.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.form-section .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* 编辑面板 header */
.offcanvas-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
}
.offcanvas-body {
    padding: 1.5rem;
}

/* 表格操作列 */
.table-actions {
    white-space: nowrap;
}
.table .action-link {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    margin-right: 0.15rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: background 0.15s;
}
.table .action-link:last-child {
    margin-right: 0;
}
.table .action-link:hover {
    background: #e9ecef;
}
.table .action-link.text-danger:hover {
    background: #fef2f2;
}

/* 占位符颜色调浅 */
::placeholder {
    color: #c5c9ce !important;
    opacity: 1;
}
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #c5c9ce !important;
    opacity: 1;
}

.modal-content {
    border-radius: 12px;
}

.toast-container {
    margin-top: 60px;
}

.training-filter-actions {
    min-width: 0;
}

@media (min-width: 576px) {
    #trainingRecruitFilter {
        width: 260px;
        max-width: 100%;
    }
}

/* 页脚：始终在页面底部 */
footer {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
    flex-shrink: 0;
}

footer p {
    margin-bottom: 0;
}
