/* ===== 资料库（院校专业数据查询） ===== */
.lib-body {
    padding: 16px 20px;
}

/* 筛选条 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid #ebeef5;
}
.filter-bar label {
    color: #606266;
    font-size: 13px;
    white-space: nowrap;
}
.filter-bar select,
.filter-bar input {
    height: 32px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    outline: none;
}
.filter-bar select:focus,
.filter-bar input:focus {
    border-color: #3a7bd5;
}
.filter-bar input {
    width: 220px;
}

.lib-btn {
    height: 32px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.lib-btn.primary {
    background: #3a7bd5;
    color: #fff;
}
.lib-btn.primary:hover {
    opacity: 0.88;
}
.lib-btn.ghost {
    background: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
}
.lib-btn.ghost:hover {
    color: #3a7bd5;
    border-color: #3a7bd5;
}

/* 统计行 */
.lib-stat {
    padding: 10px 0;
    color: #909399;
    font-size: 13px;
}
.lib-stat b {
    color: #3a7bd5;
    margin: 0 2px;
}

/* 表格 */
.lib-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.lib-table th,
.lib-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
}
.lib-table thead th {
    background: #f5f7fa;
    color: #606266;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.lib-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}
.lib-table tbody tr:hover {
    background: #f0f7ff;
}
.lib-table tbody tr.selected {
    background: #e8f2ff;
}
.lib-table .num {
    color: #f56c6c;
    font-weight: 600;
}
.lib-table .muted {
    color: #c0c4cc;
}
.lib-table .link-btn {
    color: #3a7bd5;
    cursor: pointer;
}
.lib-table .link-btn:hover {
    text-decoration: underline;
}

/* 标签徽章 */
.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 4px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}
.tag-985 { background: #fef0f0; color: #f56c6c; }
.tag-211 { background: #fdf6ec; color: #e6a23c; }
.tag-syl  { background: #ecf5ff; color: #3a7bd5; }
.tag-pub  { background: #f0f9eb; color: #67c23a; }

/* 专业下钻面板 */
.major-panel {
    margin-top: 16px;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    overflow: hidden;
}
.major-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f5f7fa;
    border-bottom: 1px solid #ebeef5;
}
.major-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
}
.major-panel-title .sub {
    font-weight: 400;
    color: #909399;
    font-size: 13px;
}
.major-panel-close {
    cursor: pointer;
    color: #909399;
    font-size: 13px;
}
.major-panel-close:hover {
    color: #f56c6c;
}
.major-panel-body {
    max-height: 420px;
    overflow: auto;
}

/* 分页 */
.lib-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
    color: #606266;
    font-size: 13px;
}
.lib-pagination .pg-btn {
    height: 28px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    cursor: pointer;
    font-size: 13px;
}
.lib-pagination .pg-btn:disabled {
    color: #c0c4cc;
    cursor: not-allowed;
}
.lib-pagination .pg-btn:not(:disabled):hover {
    color: #3a7bd5;
    border-color: #3a7bd5;
}

/* 空状态 / 加载 / 提示 */
.state-box {
    padding: 60px 20px;
    text-align: center;
    color: #909399;
    font-size: 14px;
}
.state-box .state-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}
.state-box.warn {
    color: #e6a23c;
}

/* 顶部提示条 */
.lib-toast {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    background: rgba(48, 49, 51, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 80%;
    word-break: break-all;
}
.lib-toast.error { background: #f56c6c; }
.lib-toast.success { background: #67c23a; }

/* 特殊培养方式（中外合作办学/港澳台合作/定向/预科/民族班/区域均衡专项…）的院校名称标粉。
   色值取自产品参考稿（#ff139e）。招生类型由后端按 major_plans 备注列推出，Excel 里没有这一列。 */
.sch-special {
    color: #ff139e;
}

/* 院校名称：加粗（2026-09-19 产品要求，与工具页同款；用户确认「颜色不动、只加粗」）。
   ⚠️ 颜色继承（`inherit`），不另设具体色值 —— 标粉的 .sch-special 是子元素，
   父级写死颜色会让「外黑内粉」的层级依赖优先级计算，以后调色易误伤粉色。 */
.sch-name-b {
    font-weight: 700;
    color: inherit;
}
