/**
 * 收藏夹页面样式文件 - 整理版
 * 文件名：word_sc_organized.css
 * 创建时间：2024年12月19日
 * 整理时间：2025年01月15日
 * 
 * 包含收藏夹页面的所有样式定义，按样式名称排序并标注来源文件
 * 来源文件：
 * - zysx_x.php: 院校查询页面
 * - word_sc.php: 收藏夹页面
 * - word_sc_daochu.php: 导出页面
 */

/* ==================== 基础样式 ==================== */
/* 来源：通用基础样式 */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box; /* 统一盒模型，减少重排 */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 来源：zysx_x.php */
.container {
    margin-top: 30px;
}

/* 来源：通用基础样式 */
.gpu-accelerated {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 来源：通用基础样式 */
.optimized-transition {
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

/* ==================== 动画样式 ==================== */
/* 来源：通用基础样式 */
@keyframes spin {
    0% { transform: rotate(0deg) translateZ(0); }
    100% { transform: rotate(360deg) translateZ(0); }
}

/* ==================== 箭头样式 ==================== */
/* 来源：zysx_x.php, word_sc.php, word_sc_daochu.php */
.arrow-span {
    color: #16baaa;
    font-size: 16px;
    vertical-align: middle;
    flex-shrink: 0;
    margin-left: auto; /* 右对齐 */
}

/* ==================== 批次头部样式 ==================== */
/* 来源：word_sc.php, word_sc_daochu.php */
.batch-header {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    border: 1px solid #e0e0e0;
}

.batch-header h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.4em;
}

.batch-header p {
    margin: 0;
    color: #666;
    font-size: 1em;
}

/* ==================== 按钮样式 ==================== */
/* 来源：word_sc.php, word_sc_daochu.php */
.favorite-action-btn {
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.favorite-action-btn:last-child {
    margin-right: 0;
}

/* 来源：word_sc.php */
.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    height: 40px;
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.favorite-btn .layui-icon {
    margin-right: 5px;
    font-size: 14px;
}

.favorite-btn-danger {
    background: #ff4757;
    color: #fff;
}

.favorite-btn-danger:hover {
    background: #e63946;
}

.favorite-btn-loading {
    background: #ffb800;
    color: #fff;
}

.favorite-btn-loading:hover {
    background: #e6a600;
}

.favorite-btn-primary {
    background: #16baaa;
    color: #fff;
}

.favorite-btn-primary:hover {
    background: #13a89a;
}

.favorite-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.favorite-btn-secondary:hover {
    background: #5a6268;
}

.favorite-btn-warning {
    background-color: #ff9800;
    border-color: #ff9800;
    color: #fff;
}

.favorite-btn-warning:hover {
    background-color: #f57c00;
    border-color: #f57c00;
}

/* 来源：word_sc.php */
.favorite-btn.favorite-active {
    border: 1px solid #ff6b6b;
    background: #ff6b6b;
    color: #fff;
}

.favorite-btn.favorite-inactive {
    border: 1px solid #ddd;
    background: #fff;
    color: #999;
}

.favorite-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.favorite-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 来源：word_sc_daochu.php */
#togglePreviewTable.favorite-action-btn {
    background: #ffb800;
    color: #fff;
}

#togglePreviewTable.favorite-action-btn:hover {
    background: #e6a600;
}

#togglePreviewTable.favorite-action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ==================== 复选框样式 ==================== */
/* 来源：word_sc.php */
.favorite-checkbox,
.group-checkbox {
    cursor: pointer;
    margin-right: 8px;
    border: 1px solid #16baaa;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0; /* 防止被压缩 */
}

.favorite-checkbox:checked,
.group-checkbox:checked {
    accent-color: #16baaa;
    border: 1px solid #16baaa;
}

/* 来源：word_sc.php */
.favorite-checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 5px;
    padding-left: 0; /* 确保与专业组标题文字左对齐 */
}

.favorite-checkbox-container .favorite-checkbox {
    margin-right: 0;
}

/* ==================== 院校卡片样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.college-card {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    background: #fff;
    position: relative;
}

.college-delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 0 8px 0 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.college-delete-btn:hover {
    background: #ff3742;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.college-hyts-badge {
    position: absolute;
    top: 0;
    right: 60px;
    background: #ff9800;
    color: #fff;
    border-radius: 0 0 8px 8px;
    padding: 2px 5px;
    height: 24px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 2;
    cursor: pointer;
}

/* 来源：zysx_x.php */
.college-hyts-badge-zysx {
    position: absolute;
    top: 0px;
    right: 30px;
    background: #ff9800;
    color: #fff;
    border-radius: 0 0 5px 5px;
    padding: 0px 5px;
    height: 24px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    font-weight: bold;
    z-index: 2;
    cursor: pointer;
}

.college-index-badge {
    position: absolute;
    top: 0;
    right: 30px;
    background: #16baaa;
    color: #fff;
    border-radius: 0 0 8px 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    font-weight: bold;
    z-index: 2;
}

/* 来源：zysx_x.php */
.college-index-badge-zysx {
    position: absolute;
    top: 0;
    right: 0;
    background: #16baaa;
    color: #fff;
    border-radius: 0 8px 0 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    font-weight: bold;
    z-index: 2;
}

.college-meta {
    font-weight: bold;
    color: #444;
    margin-top: 5px;
    font-size: 0.95em;
}

.college-rank {
    margin: 5px 0px;
    color: #888;
    font-size: 0.98em;
}

.college-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #222;
    z-index: 3;
}

/* 来源：word_sc.php */
.college-title-and-delete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* ==================== 院校徽章样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.college-badge {
    display: inline-block;
    background: #16baaa;
    color: #fff;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.85em;
    margin-right: 6px;
    margin-bottom: 5px;
}

/* ==================== 院校组样式 ==================== */
/* 来源：word_sc.php */
.college-group {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.college-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.college-index {
    background: #16baaa;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

.college-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    flex: 1;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    padding: 8px;
}

.college-count {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* ==================== 院校收藏样式 ==================== */
/* 来源：word_sc.php */
.college-favorites {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==================== 自定义Tab栏样式 ==================== */
/* 来源：zysx_x.php */
.custom-tabs {
    display: flex;
    border-bottom: 1.5px solid #e0e0e0;
    padding-left: 0;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    position: sticky;
    top: 40px;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    /* 平滑滚动 */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    /* 桌面端显示可拖动光标 */
    cursor: grab;
}

/* 隐藏滚动条 - Chrome, Safari */
.custom-tabs::-webkit-scrollbar {
    display: none;
}

.custom-tabs .tab-item {
    list-style: none;
    flex: 1 1 0;
    min-width: 25%; /* 确保每个标签至少占25%宽度 */
    text-align: center;
    padding: 10px 0 5px 0;
    cursor: pointer;
    font-size: 1em;
    color: #888;
    background: none;
    border: none;
    font-weight: normal;
    position: relative;
    margin: 0;
    white-space: nowrap; /* 防止文字换行 */
    user-select: none; /* 防止拖动时选中文字 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: color 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

.custom-tabs .tab-item:active {
    transform: scale(0.95); /* 点击时轻微缩小 */
}

.custom-tabs .tab-item.active {
    color: #16baaa;
    font-weight: bold;
    border-bottom: 3px solid #16baaa;
    background: none;
}

/* ==================== 删除按钮样式 ==================== */
/* 来源：word_sc.php */
.favorite-delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 0 5px 0 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.favorite-delete-btn:hover {
    background: #ff0000;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}



/* ==================== 空状态样式 ==================== */
/* 来源：word_sc.php */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.empty-state .layui-icon {
    font-size: 5em;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 1.5em;
}

.empty-state p {
    margin: 0;
    line-height: 1.6;
    color: #999;
    font-size: 1.1em;
}

/* ==================== 导出按钮容器样式 ==================== */
/* 来源：word_sc_daochu.php */
.export-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: 600px;
    margin:0 auto;
    width: 100%;
}

.export-button-container .favorite-action-btn {
    flex: 1;
    white-space: nowrap;
    width: 100%;
    padding: 10px 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.export-button-container form {
    margin: 0;
    flex: 1;
}

/* ==================== 导出信息样式 ==================== */
/* 来源：word_sc_daochu.php */
.export-info {
    margin-left: 10px;
}



/* ==================== 收藏夹头部样式 ==================== */
/* 来源：word_sc.php */
.favorite-header {
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.favorite-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.favorite-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.favorite-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

/* ==================== 收藏夹操作样式 ==================== */
/* 来源：word_sc.php */
.favorite-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

/* ==================== 收藏夹统计样式 ==================== */
/* 来源：word_sc.php */
.favorite-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
}

.favorite-stats-table {
    margin-bottom: 10px;
}

/* ==================== 收藏夹批次标题样式 ==================== */
/* 来源：word_sc.php */
.favorites-batch-title {
    font-size: 1em;
    font-weight: bold;
    color: #888;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 5px 8px;
    position: relative;
    margin-top: 5px;
    cursor: pointer;
    border-left: 3px solid #16baaa;
}

.favorites-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 5px;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}

.favorites-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    padding: 10px;
    padding-right: 14px;
    border-radius: 5px;
    position: relative;
}

.favorites-group-title {
    font-size: 1em;
    cursor: pointer;
    color: #16baaa;
    font-weight: bold;
    margin: 4px 0;
    padding: 5px 12px;
    background: #f8f8f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 18px; /* 确保与专业卡片内容左对齐 */
}

/* ==================== 筛选区域样式 ==================== */
/* 来源：word_sc_daochu.php */
.filter-section {
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* ==================== 项目样式 ==================== */
/* 来源：word_sc.php */
.item-actions {
    display: flex;
    justify-content: flex-end;
}

.item-college {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.item-details {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.item-index {
    background: #16baaa;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
}

.item-major {
    font-size: 1.1em;
    color: #16baaa;
    font-weight: 500;
    flex: 1;
}

/* ==================== 详情徽章样式 ==================== */
/* 来源：word_sc.php */
.detail-badge {
    background: rgba(22, 186, 170, 0.1);
    color: #16baaa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid rgba(22, 186, 170, 0.3);
}

/* ==================== 加载状态样式 ==================== */
/* 来源：word_sc.php */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #16baaa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    /* 优化动画性能 */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.loading-text {
    color: #888;
    font-style: italic;
}

/* ==================== Layui样式优化 ==================== */
/* 来源：zysx_x.php */
.layui-form-item {
    margin-bottom: 5px;
}

.layui-form-label {
    width: 90px !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
    text-align: center;
}

.layui-input-block {
    margin-left: 90px !important;
}

.layui-table td,
.layui-table th {
    padding: 8px -10px 8px 5px;
}

/* ==================== 专业卡片样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.major-card {
    background: #f8f8f8;
    border-radius: 5px;
    padding: 10px 12px;
    flex: 1 1 100%;
    min-width: 100%;
    border: 1px solid #e0e0e0;
}

/* 来源：zysx_x.php */
.major-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

/* 来源：zysx_x.php, word_sc.php */
.major-detail-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    padding: 10px;
    padding-right: 14px;
    border-radius: 5px;
    position: relative;
}

.major-detail-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 5px;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}

/* 来源：word_sc.php */
.major-group {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 500;
}

.major-index {
    background: #6c757d;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
}

.major-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.major-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.major-item:last-child {
    border-bottom: none;
}

.major-item:hover {
    background: #f8f9fa;
}

.major-list {
    padding: 0;
}

.major-name {
    font-weight: 500;
    color: #333;
    font-size: 1em;
    border: 1px solid #ccc;
    padding: 8px;
}

.major-actions {
    flex-shrink: 0;
}

/* ==================== 消息提示样式 ==================== */
/* 来源：word_sc.php */
.message-error {
    text-align: center;
    padding: 40px 20px;
    color: #ff4757;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ffebee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-success {
    text-align: center;
    padding: 40px 20px;
    color: #52c41a;
    background: #f6ffed;
    border-radius: 8px;
    border: 1px solid #b7eb8f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ==================== 无数据样式 ==================== */
/* 来源：word_sc.php */
.no-data {
    color: #999;
    font-style: italic;
}

/* ==================== 预览表格样式 ==================== */
/* 来源：word_sc_daochu.php */
.preview-table-container {
    margin-top: 15px;
    overflow-x: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    
}

.preview-table-container .stats-table {
    margin-bottom: 0;
}

.preview-table-container .stats-table th {
    background: #16baaa;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
}

.preview-table-container .stats-table td {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.preview-table-container .stats-table tbody tr:hover {
    background: #f0f9f8;
}

.preview-table-container .stats-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.preview-table-container .stats-table tbody tr:nth-child(even):hover {
    background: #f0f9f8;
}

/* ==================== 排名徽章样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.rank-badge {
    display: inline-block;
    background-color: rgba(22, 186, 170, 0.1);
    border: 1px solid rgba(22, 186, 170, 0.5);
    color: rgba(22, 186, 170);
    border-radius: 3px;
    padding: 0px 4px;
    font-size: 0.85em;
    margin-right: 6px;
    margin-bottom: 4px;
    margin-top: 5px;
}

/* ==================== 智能推荐样式 ==================== */
/* 来源：zysx_x.php */
.recommend-content {
    padding: 20px;
    margin-top: 5px;
}

.recommend-result {
    background: #fff;
    border-radius: 5px;
    overflow: visible;
    margin-top: 5px;
}

.recommend-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 1.1em;
    color: #666;
    font-weight: normal;
    position: relative;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.recommend-tab.active {
    color: #16baaa;
    font-weight: bold;
    background: #fff;
    position: relative;
}

.recommend-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #16baaa;
}

.recommend-tabs {
    display: flex;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 80px;
    z-index: 998;
}

/* ==================== 回到顶部按钮样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.right-bottom {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

/* ==================== 统计表格样式 ==================== */
/* 来源：word_sc.php, word_sc_daochu.php */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    table-layout: fixed; /* 固定表格布局，确保列宽一致 */
}

.stats-table th,
.stats-table td {
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    word-wrap: break-word; /* 允许长文本换行 */
    font-weight: normal; /* 确保数据行内容不加粗 */
}

/* 设置固定列宽（像素），确保表头和数据行对齐 */
.stats-table th:nth-child(1), .stats-table td:nth-child(1) { width: 50px; }   /* 序号 */
.stats-table th:nth-child(2), .stats-table td:nth-child(2) { width: 60px; }   /* 科类 */
.stats-table th:nth-child(3), .stats-table td:nth-child(3) { width: 60px; }   /* 批次 */
.stats-table th:nth-child(4), .stats-table td:nth-child(4) { width: 120px; }  /* 院校名称 */
.stats-table th:nth-child(5), .stats-table td:nth-child(5) { width: 150px; }  /* 院校信息 */
.stats-table th:nth-child(6), .stats-table td:nth-child(6) { width: 100px; }  /* 排名信息 */
.stats-table th:nth-child(7), .stats-table td:nth-child(7) { width: 250px; }  /* 投档线信息 */
.stats-table th:nth-child(8), .stats-table td:nth-child(8) { width: 100px; }  /* 招生计划信息 */
.stats-table th:nth-child(9), .stats-table td:nth-child(9) { width: 90px; }  /* 专业组名称 */
.stats-table th:nth-child(10), .stats-table td:nth-child(10) { width: 200px; } /* 专业名称 */
.stats-table th:nth-child(11), .stats-table td:nth-child(11) { width: 50px; }  /* 计划数 */
.stats-table th:nth-child(12), .stats-table td:nth-child(12) { width: 80px; } /* 选科要求 */

/* 收藏统计表格 - 4列平均分布（科类、批次、院校数、专业组数） */
.favorite-stats-table .stats-table th:nth-child(1),
.favorite-stats-table .stats-table td:nth-child(1) { width: 25%; }
.favorite-stats-table .stats-table th:nth-child(2),
.favorite-stats-table .stats-table td:nth-child(2) { width: 25%; }
.favorite-stats-table .stats-table th:nth-child(3),
.favorite-stats-table .stats-table td:nth-child(3) { width: 25%; }
.favorite-stats-table .stats-table th:nth-child(4),
.favorite-stats-table .stats-table td:nth-child(4) { width: 25%; }

/* 隐藏重复的院校信息内容，保持表格结构整齐 */
.stats-table .repeat-cell {
    color: transparent;
    border-top: none;
    position: relative;
}

.stats-table .repeat-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    border-bottom: 1px solid #e0e0e0;
}

.stats-table th:last-child,
.stats-table td:last-child {
    border-right: none;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table tbody tr:hover {
    background: #f8f9fa;
}

.stats-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.stats-table tbody tr:nth-child(even):hover {
    background: #f0f1f2;
}

/* 合并单元格的样式优化 */
.stats-table td[rowspan] {
    background: #f8f9fa;
    font-weight: normal; /* 修改：数据行内容不加粗 */
    color: #333; /* 科类恢复原来的颜色 */
}

.stats-table td[rowspan]:hover {
    background: #e8f9f7;
}

/* 批次列样式 - 加粗绿色 */
.stats-table td.batch-cell {
    font-weight: bold !important;
    color: #16baaa !important; /* 绿色 */
    cursor: pointer !important; /* 添加指针样式表示可点击 */
    transition: color 0.3s ease;
}

.stats-table td.batch-cell:hover {
    color: #16baaa !important; /* 悬停时深绿色 */
    text-decoration: underline !important; /* 悬停时添加下划线 */
}

/* 科类列样式 - 恢复原来的颜色 */
.stats-table td:first-child {
    color: #333;
    font-weight: 500;
}

/* 院校信息列靠左对齐 */
.stats-table td.college-info {
    text-align: left !important;
    padding-left: 10px;
    padding-right: 10px;
}

/* 排名信息列靠左对齐 */
.stats-table td.ranking-info {
    text-align: left !important;
    padding-left: 10px;
    padding-right: 10px;
}

/* 投档线信息列靠左对齐 */
.stats-table td.toudang-info {
    text-align: left !important;
    padding-left: 10px;
    padding-right: 10px;
    white-space: pre-line; /* 保持换行符 */
}

/* 招生计划信息列靠左对齐 */
.stats-table td.zsjh-info {
    text-align: left !important;
    padding-left: 10px;
    padding-right: 10px;
    white-space: pre-line; /* 保持换行符 */
}

/* 院校行样式 */
.stats-table tr.college-row {
    background: #f0f9f8 !important;
    font-weight: bold;
}

.stats-table tr.college-row td {
    background: #f0f9f8 !important;
    border-bottom: 1px solid #d1ecf1;
    vertical-align: top;
}

/* 专业行样式 */
.stats-table tr.major-row {
    background: #ffffff;
}

.stats-table tr.major-row td {
    background: #ffffff;
    vertical-align: top;
    border-bottom: 1px solid #dee2e6;
}

.stats-table tr.major-row:hover td {
    background: #f8f9fa;
}

/* ==================== 统计项样式 ==================== */
/* 来源：word_sc.php */
.stat-item {
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #16baaa;
    line-height: 1;
    margin-bottom: 5px;
}

/* ==================== 表格标题样式 ==================== */
/* 来源：word_sc_daochu.php */
.table-title {
    text-align: center;
}

.table-title h3 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
}

.table-title h4 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
}

/* ==================== Excel导出表格样式 ==================== */
/* 来源：word_sc_daochu.php */
.title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}

.subtitle {
    font-size: 14px;
    text-align: center;
    padding: 8px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
}

.note {
    font-size: 12px;
    text-align: center;
    padding: 6px;
    background-color: #fff8dc;
    border: 1px solid #ddd;
    color: #666;
}

.number-cell {
    text-align: center;
    font-weight: bold;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px;
}



.plan-count {
    text-align: center;
    border: 1px solid #ccc;
    padding: 8px;
}

.subject-req {
    text-align: center;
    border: 1px solid #ccc;
    padding: 8px;
}

/* ==================== 投档信息样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.toudang-batch-body {
    display: none;
}

.toudang-batch-title {
    font-size: 1em;
    font-weight: bold;
    color: #888;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 5px 8px;
    position: relative;
    margin-top: 5px;
    cursor: pointer;
    border-left: 3px solid #16baaa;
}

.toudang-card {
    background: #f8f8f8;
    border-radius: 5px;
    padding: 10px 12px;
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
}

.toudang-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 5px;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}



/* ==================== 招生计划样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.zsjh-batch-title {
    font-size: 1em;
    font-weight: bold;
    color: #888;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 5px 8px;
    position: relative;
    margin-top: 5px;
    cursor: pointer;
    border-left: 3px solid #16baaa;
}

.zsjh-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    padding: 10px;
    padding-right: 14px;
    border-radius: 5px;
    position: relative;
}

.zsjh-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 5px;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}

.zsjh-group-title {
    font-size: 1em;
    cursor: pointer;
    color: #16baaa;
    font-weight: bold;
    margin: 4px 0;
    padding: 5px 12px;
    background: #f8f8f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 18px; /* 确保与专业卡片内容左对齐 */
}

/* 来源：zysx_x.php */
.zsjh-group-title span {
    margin-left: 5px;
}

.zsjh-group-detail {
    margin-bottom: 0px;
}

/* ==================== 响应式设计 ==================== */
/* 来源：word_sc.php */
@media (max-width: 768px) {
    .college-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .major-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .major-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .major-actions {
        width: 100%;
    }
    
    .major-actions .favorite-btn {
        width: 100%;
    }
}

/* 来源：zysx_x.php */
@media (max-width: 600px) {
    .custom-tabs .tab-item {
        padding: 10px 15px 5px 15px; /* 增加左右内边距，更易点击 */
        font-size: 1em;
        min-width: auto; /* 移动端自适应宽度 */
    }

    .custom-tabs {
        max-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0; /* 移动端去掉圆角 */
    }

    .custom-tabs {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }


    .recommend-tab {
        padding: 8px 0;
        font-size: 1.1em;
    }

    .recommend-content {
        padding: 10px 1px;
    }

    .toudang-card,
    .zsjh-card,
    .major-detail-card {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .toudang-card-list,
    .zsjh-card-list,
    .major-detail-card-list {
        gap: 5px 0;
    }
}

/* ==================== 院校收藏按钮样式 ==================== */
/* 来源：gxlist.php */
.college-favorite-btn {
    position: absolute;
    top: 35px; /* 放在数字徽章下面，距离5px（数字徽章高度24px + 5px） */
    right: 0;
    width: auto;
    height: 28px;
    border-radius: 5px 0 0 5px;
    background: #fff;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0 10px;
    font-weight: bold;
}

.college-favorite-btn.favorite-inactive {
    background: #f1f1f1;
    color: #d0d0d0;
}

.college-favorite-btn.favorite-inactive:hover {
    border:1px solid #d0d0d0;
}

.college-favorite-btn.favorite-active {
    background: #ff5722;
    color: #fff;
}

.college-favorite-btn.favorite-active:hover {
    background: #e64a19;
}

.college-favorite-btn.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.college-favorite-btn.loading i {
    animation: layui-anim-rotate layui-anim-loop 1s linear infinite;
}

/* 来源：word_sc_daochu.php */
@media (max-width: 768px) {
    .preview-table-container {
        overflow-x: auto;
    }

    .preview-table-container .stats-table {
        min-width: 600px;
    }

    .preview-table-container .stats-table th,
    .preview-table-container .stats-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
}

/* ==================== 专业信息列样式 ==================== */
/* 来源：word_sc_daochu.php */
.major-info-column {
    transition: all 0.3s ease;
}

.major-info-column.hidden {
    display: none !important;
}

/* ==================== 投档信息及招生计划二级标题样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.toudang-card,
.zsjh-group-title,
.favorites-group-title {
    background: rgba(22, 186, 170, 0.05);
    border: 1px solid rgba(22, 186, 170, 0.5);
}

/* ==================== 专业详情卡片、招生计划卡片、收藏卡片样式 ==================== */
/* 来源：zysx_x.php, word_sc.php */
.major-detail-card,
.zsjh-card,
.favorites-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    padding: 10px;
    padding-right: 14px;
    border-radius: 5px;
    position: relative;
}

/* ==================== 优化的专业卡片样式 ==================== */
/* 来源：zysx_x.php */
.major-card {
    background: #f8f8f8;
    border-radius: 5px;
    padding: 10px 12px;
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 100%;
}

/* 限制提示样式美化 */
.limit-notice {
  text-align: center;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 20px 0;
  padding: 15px 20px;
  border-radius: 8px;
}

.limit-notice.login-notice {
  background:  #e9ecef;
  border-left: 4px solid #16baaa;
}

.limit-notice.vip-notice {
  background: #ffeaea;
  border-left: 4px solid #ff4757;
}

.limit-notice a {
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.limit-notice a:hover {
  text-decoration: underline;
}

.limit-notice .icon {
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}