/* 院校专业查询功能样式文件 */
/* 版权所有：悦阳网络 */

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 院校查询主容器 */
.school-search {
    background: #f6faff !important;
    padding: .6rem;
    margin: .8rem auto;
    border-radius: .2rem;
    max-width: 640px;
    box-shadow: 0 2px 12px rgba(24,144,255,0.06);
}

.school-search h2 {
    text-align: center;
    font-size: 0.5625rem;  /* 统一与页面其他标题大小 */
    color: #4289e1 !important;  /* 统一蓝色主题色 */
    margin-bottom: .3rem;
    font-weight: bold;  /* 统一字体粗细 */
    letter-spacing: 1px;
}

.school-search p {
    text-align: center;
    font-size: 0.35rem;  /* 统一与页面其他副标题大小 */
    color: #666;  /* 统一副标题颜色 */
    margin-bottom: .4rem;
}

/* 搜索表单 */
.search-form {
    background: transparent; /* 去掉白色/灰色背景，避免与外层违和 */
    padding: .4rem 0;        /* 收紧左右，让与外层留白更统一 */
    border-radius: 0;        /* 去掉圆角以减少“内卡片”观感 */
    border: none;            /* 取消任何边框 */
}

/* 可选的分隔线，弱化的层次感（不需要可删除） */
.search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    margin-bottom: .3rem;
    border-top: 1px dashed rgba(24,144,255,0.15);
    border-bottom: 1px dashed rgba(24,144,255,0.15);
    padding: .2rem 0;
}

.search-item {
    flex: 1;
    min-width: 2rem;
}

.search-item label {
    display: block;
    font-size: .22rem;
    color: #666;
    margin-bottom: .1rem;
}

.search-item select,
.search-item input {
    width: 100%;
    height: .6rem;
    border: 1px solid #ddd;
    border-radius: .1rem;
    padding: 0 .2rem;
    font-size: .22rem;
    background: #fff;
    box-sizing: border-box;
}

.search-item select:focus,
.search-item input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}

/* 搜索按钮 */
.search-button {
    text-align: center;
}

.search-button button {
    background: linear-gradient(90deg, #1890ff 0%, #1677cc 100%) !important;
    color: #fff;
    border: none;
    padding: .2rem .8rem;
    border-radius: 28px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(24,144,255,0.08);
    transition: all 0.3s ease;
}

.search-button button:hover {
    background: #1677cc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24,144,255,0.15);
}

/* 搜索结果区域 */
.search-results {
    display: none;
    margin-top: .4rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .3rem;
}

.results-header h3 {
    font-size: .28rem;
    color: #333;
    margin: 0;
}

.results-count {
    font-size: .22rem;
    color: #666;
}

/* 加载状态 */
.results-loading {
    display: none;
    text-align: center;
    padding: .8rem;
}

.loading-spinner {
    display: inline-block;
    width: .4rem;
    height: .4rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.results-loading p {
    margin-top: .2rem;
    font-size: .22rem;
    color: #666;
}

/* 结果表格 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .2rem;
    background: #fff;
    border-radius: .15rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-table th {
    background: #f8f9fa;
    padding: .2rem .15rem;
    text-align: left;
    font-size: .2rem;
    color: #666;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.results-table td {
    padding: .25rem .15rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: .22rem;
    color: #333;
}

.results-table tr:hover {
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* 咨询按钮 */
.consult-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #fff;
    border: none;
    padding: .15rem .3rem;
    border-radius: .1rem;
    font-size: .2rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.consult-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 无结果和错误消息 */
.no-results, .error-message {
    text-align: center;
    padding: .8rem;
    font-size: .24rem;
    border-radius: .15rem;
}

.error-message {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.no-results {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #666;
}

/* 分页 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.page-btn {
    padding: 12px 32px;
    margin: 0 12px;
    border: none;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(255,107,107,0.15);
    cursor: pointer;
    transition: all 0.1s ease;
    outline: none;
    position: relative;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255,107,107,0.25);
}

.page-btn .icon {
    margin-right: 8px;
    font-size: 22px;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .school-search {
        margin: .4rem .2rem;
        padding: .4rem;
    }
    
    .school-search h2 {
        font-size: .48rem;
        margin-bottom: .4rem;
    }
    
    .school-search p {
        font-size: .28rem;
        margin-bottom: .5rem;
    }
    
    .search-grid {
        flex-direction: column;
        gap: .25rem;
    }
    
    .search-item {
        min-width: auto;
    }
    
    .search-item label {
        font-size: .26rem;
        margin-bottom: .15rem;
    }
    
    .search-item select,
    .search-item input {
        height: .8rem;
        font-size: .26rem;
        padding: 0 .25rem;
    }
    
    .search-button button {
        padding: .25rem 1rem;
        font-size: .28rem;
        height: .8rem;
        border-radius: .4rem;
    }
    
    .results-table {
        font-size: .2rem;
    }
    
    .results-table th,
    .results-table td {
        padding: .2rem .15rem;
        font-size: .2rem;
    }
    
    .page-btn {
        padding: 10px 24px;
        font-size: 18px;
        margin: 0 8px;
    }
    
    /* 手机端特殊优化 */
    .results-header h3 {
        font-size: .32rem;
    }
    
    .results-count {
        font-size: .24rem;
    }
    
    .consult-btn {
        padding: .2rem .4rem;
        font-size: .22rem;
        border-radius: .15rem;
    }
    
    /* 手机端表格优化 */
    .results-table {
        font-size: .18rem;
    }
    
    .results-table th,
    .results-table td {
        padding: .15rem .1rem;
        font-size: .18rem;
        word-break: break-all;
    }
    
    /* 手机端分页优化 */
    .pagination {
        margin-top: 15px;
    }
    
    .page-btn {
        padding: 8px 16px;
        font-size: 16px;
        margin: 0 4px;
        border-radius: 20px;
    }
    
    .page-info {
        font-size: 14px;
        margin: 0 8px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .school-search {
        margin: .3rem .15rem;
        padding: .3rem;
    }
    
    .school-search h2 {
        font-size: .44rem;
    }
    
    .search-item select,
    .search-item input {
        height: .7rem;
        font-size: .24rem;
    }
    
    .search-button button {
        height: .7rem;
        font-size: .26rem;
    }
    
    .results-table th,
    .results-table td {
        padding: .12rem .08rem;
        font-size: .16rem;
    }
    
    .consult-btn {
        padding: .15rem .3rem;
        font-size: .2rem;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .school-search {
        background: #1a1a1a !important;
        color: #fff;
    }
    
    .search-form {
        background: #2a2a2a;
    }
    
    .search-item select,
    .search-item input {
        background: #333;
        color: #fff;
        border-color: #555;
    }
    
    .results-table {
        background: #2a2a2a;
        color: #fff;
    }
    
    .results-table th {
        background: #333;
        color: #ccc;
    }
    
    .results-table td {
        color: #fff;
        border-bottom-color: #444;
    }
    
    .results-table tr:hover {
        background: #333;
    }
}

/* 安徽本地学校特殊样式 */
.local-school {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-left: 4px solid #1890ff;
}

.local-school:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
}

/* 本地学校行高亮效果 */
.local-school td {
    border-bottom-color: #bae6fd;
}

.local-school:hover td {
    border-bottom-color: #7dd3fc;
}

/* 暗色主题下的本地学校样式 */
@media (prefers-color-scheme: dark) {
    .local-school {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
        border-left-color: #60a5fa;
    }
    
    .local-school:hover {
        background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    }
    
    .local-school td {
        border-bottom-color: #1e40af;
    }
    
    .local-school:hover td {
        border-bottom-color: #3b82f6;
    }
} 

/* 手机端表格优化 */
.results-table {
    font-size: .18rem;
}

.results-table th,
.results-table td {
    padding: .15rem .1rem;
    font-size: .18rem;
    word-break: break-all;
}

/* 手机端表格容器优化 */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: .15rem;
        margin: 0 -.15rem;
    }
    
    .results-table {
        min-width: 600px;
        font-size: .18rem;
    }
    
    .results-table th,
    .results-table td {
        padding: .15rem .1rem;
        font-size: .18rem;
        white-space: nowrap;
    }
    
    /* 手机端按钮优化 */
    .consult-btn {
        padding: .15rem .25rem;
        font-size: .2rem;
        white-space: nowrap;
        min-width: 80px;
    }
    
    /* 手机端分页优化 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .page-btn {
        min-width: 80px;
    }
} 