body {
    padding-top: 56px;
}

.card {
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
}

.table th {
    white-space: nowrap;
}

.probability-high {
    background-color: #d4edda;
}

.probability-medium-high {
    background-color: #cce5ff;
}

.probability-medium {
    background-color: #fff3cd;
}

.probability-medium-low {
    background-color: #ffe8cc;
}

.probability-low {
    background-color: #f8d7da;
}

.probability-unknown {
    background-color: #f8f9fa;
}
/* 添加表格响应式样式 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* 设置表格最小宽度 */
table {
    min-width: 1280px;
}

/* 固定表头 */
.table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}
/* 调整列宽 */
th:nth-child(2), td:nth-child(2) { 
    width: 120px; 
    min-width: 160px;
    max-width: 200px;
    word-break: break-word;
}

/* 调整列宽 */
th:nth-child(1), td:nth-child(1) { width: 10px; }  /* 序号 */
th:nth-child(2), td:nth-child(2) { width: 40px; } /* 学校代码 */
th:nth-child(3), td:nth-child(3) { width: 160px; } /* 学校名称 */
th:nth-child(4), td:nth-child(4) { width: 30px; } /* 专业代码 */
th:nth-child(5), td:nth-child(5) { width: 120px; } /* 专业名称 */
th:nth-child(6), td:nth-child(6) { width: 60px; } /* 选科要求 */
th:nth-child(7), td:nth-child(7) { width: 30px; } /* 专业备注 */
th:nth-child(8), td:nth-child(8) { width: 40px; } /* 学制 */
th:nth-child(9), td:nth-child(9) { width: 60px; } /* 学费 */
th:nth-child(10), td:nth-child(10) { width: 40px; } /* 计划数 */
th:nth-child(11), td:nth-child(11) { width: 40px; } /* 分数线 */
th:nth-child(12), td:nth-child(12) { width: 60px; } /* 位次 */
th:nth-child(13), td:nth-child(13) { width: 40px; } /* 学校层次 */
th:nth-child(14), td:nth-child(14) { width: 50px; } /* 办学性质 */
th:nth-child(15), td:nth-child(15) { width: 40px; } /* 省份 */
th:nth-child(16), td:nth-child(16) { width: 60px; } /* 录取概率 */
/* 其他列根据内容调整... */

/* 操作列固定宽度 */
th:last-child, td:last-child { width: 70px; }

 /* 按钮组样式调整 */
    .btn-group-sm > .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* 小屏幕下的响应式调整 */
    @media (max-width: 768px) {
        .btn-group-sm > .btn {
            padding: 0.2rem 0.4rem;
            font-size: 0.75rem;
        }
    }

/* 预约时段样式 */
.time-slot {
    margin-bottom: 5px;
    text-align: left;
    transition: all 0.2s;
}

.time-slot.active {
    background-color: var(--bs-primary);
    color: white;
}

.time-slot:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 考生管理表格中的预约信息 */
.appointment-badge {
    font-size: 0.85em;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    background-color: #e9ecef;
    color: #495057;
}
/* 验证页面样式 */
.alert button.btn-link {
    text-decoration: none;
    vertical-align: baseline;
}
.spinner-border {
    vertical-align: middle;
    margin-right: 5px;
}
/* 确保表单切换流畅 */
#appointmentForm {
    display: none;
    transition: all 0.3s ease;
}

/* 错误状态样式 */
.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* 移动端优化 */
@media (max-width: 768px) {
    #verifyForm, #appointmentForm {
        padding: 15px;
    }
    
    .alert {
        font-size: 14px;
        padding: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 15px;
    }
}

/* 防止移动端缩放影响布局 */
input, select, button {
    font-size: 16px !important;
}

/* 预约管理表格专用样式 - 放在文件最后 */
.appointment-management {
    /* 表格容器 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* 表格基础样式 */
    .appointment-table {
        table-layout: fixed;
        width: 100%;
        font-size: 12px;
        margin: 0;
        
        /* 表头和单元格统一居中 */
        th, td {
            text-align: center;
            vertical-align: middle;
            padding: 4px 2px;
        }
        
        /* 表头特殊样式 */
        th {
            font-weight: bold;
            background-color: #f0f8ff;
            white-space: nowrap;
        }
        
        /* 日期列样式 */
        td:first-child {
            font-weight: bold;
            color: #333;
            width: 30px;
        }
        
        /* 已预约标记样式 */
        .appointment-badge {
            display: inline-block;
            padding: 1px 4px;
            background-color: #fd7e14;
            color: white;
            border-radius: 3px;
            font-size: 11px;
            cursor: pointer;
            white-space: nowrap;
        }
    }
    
    /* 响应式调整 */
    @media (max-width: 1400px) {
        .appointment-table {
            font-size: 11px;
            
            .appointment-badge {
                font-size: 10px;
                padding: 0 3px;
            }
        }
    }
}

/* 日期列特殊样式 */
.appointment-table td:first-child {
    font-weight: bold;
    color: #333;
}

/* 版权信息样式 */
.copyright-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    color: #6c757d;
    font-size: 12px;
    border-top: 1px solid #dee2e6;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .copyright-footer {
        font-size: 11px;
        margin-top: 10px;
    }
}

/* 确保整体布局正确 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主内容区域自动填充剩余空间 */
main {
    flex: 1 0 auto;
}

/* 确保footer固定在底部 */
footer {
    flex-shrink: 0;
    width: 100%;
}

/* 预约管理表格的特殊样式 */
.appointment-table {
    margin-bottom: 0; /* 移除默认的margin */
}

.card {
    margin-bottom: 0; /* 移除卡片默认的margin */
}

/* 添加趋势图标样式 */
.trend-icon {
    color: #0d6efd;
    cursor: pointer;
}

.trend-icon:hover {
    color: #0b5ed7;
}

/* 调整表格列宽 */
.table-responsive th:nth-child(1), 
.table-responsive td:nth-child(1) { width: 50px; }  /* 序号 */

.table-responsive th:nth-child(2), 
.table-responsive td:nth-child(2) { width: 140px; } /* 学校名称 */

.table-responsive th:nth-child(3), 
.table-responsive td:nth-child(3) { width: 120px; } /* 专业名称 */

.table-responsive th:nth-child(4), 
.table-responsive td:nth-child(4) { width: 80px; }  /* 选科要求 */

.table-responsive th:nth-child(5), 
.table-responsive td:nth-child(5) { width: 80px; }  /* 专业备注 */

.table-responsive th:nth-child(6), 
.table-responsive td:nth-child(6) { width: 60px; }  /* 学费 */

.table-responsive th:nth-child(7), 
.table-responsive td:nth-child(7) { width: 60px; }  /* 计划数 */

.table-responsive th:nth-child(8), 
.table-responsive td:nth-child(8) { width: 60px; }  /* 分数线 */

.table-responsive th:nth-child(9), 
.table-responsive td:nth-child(9) { width: 40px; }  /* 趋势 */

.table-responsive th:nth-child(10), 
.table-responsive td:nth-child(10) { width: 40px; } /* 新增 */

.table-responsive th:nth-child(11), 
.table-responsive td:nth-child(11) { width: 60px; } /* 性质 */

.table-responsive th:nth-child(12), 
.table-responsive td:nth-child(12) { width: 60px; } /* 省份 */

.table-responsive th:nth-child(13), 
.table-responsive td:nth-child(13) { width: 60px; } /* 概率 */

.table-responsive th:nth-child(14), 
.table-responsive td:nth-child(14) { width: 80px; } /* 操作 */

/* 工具提示容器 */
.trend-tooltip .tooltip-inner {
    max-width: 280px; /* 缩小整体宽度 */
    padding: 8px;
    background-color: #FF7D00;
    color: white;
}

/* 表格样式调整 */
.trend-tooltip table {
    width: 100%;
    color: white;
    border-collapse: collapse;
    font-size: 12px; /* 缩小字体 */
    table-layout: fixed; /* 固定表格布局 */
}

.trend-tooltip th, 
.trend-tooltip td {
    padding: 2px 5px !important; /* 减少内边距 */
    text-align: center;
    border: none;
}

.trend-tooltip th {
    background-color: rgba(0,0,0,0.2);
    font-weight: bold;
}

.trend-tooltip tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* 列宽分配 */
.trend-tooltip th:nth-child(1),
.trend-tooltip td:nth-child(1) {
    width: 20%; /* 年份列 */
}

.trend-tooltip th:nth-child(2),
.trend-tooltip td:nth-child(2),
.trend-tooltip th:nth-child(3),
.trend-tooltip td:nth-child(3) {
    width: 25%; /* 分数列 */
}

.trend-tooltip th:nth-child(4),
.trend-tooltip td:nth-child(4) {
    width: 30%; /* 人数列 */
}

/* 箭头颜色 */
.trend-tooltip .tooltip-arrow::before {
    border-top-color: #FF7D00 !important;
}