/* 院校查询页面 - 现代明亮风格 v2.0 */

/* 页面头部横幅 */
.schools-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffb347 100%);
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.schools-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.schools-hero h1 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.schools-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* 主内容区 */
.schools-main {
    padding: 0 24px 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* 搜索筛选区域 - 浮动卡片效果 */
.search-filters {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    margin: -50px auto 40px;
    max-width: 1200px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15), 0 8px 25px rgba(0, 0, 0, 0.08);
}

.search-box {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.search-box input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b35;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-box input::placeholder {
    color: #999;
}

.search-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.filters {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.filter-group select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.filter-group select:focus {
    outline: none;
    border-color: #ff6b35;
    background-color: #ffffff;
}

/* 标签页 */
.content-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 14px 32px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn a {
    color: inherit;
    text-decoration: none;
}

.tab-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 院校卡片网格 */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== 横向卡片设计 - Logo居左 ========== */
.school-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.school-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(255, 107, 53, 0.12), 0 6px 15px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    border-color: rgba(255, 107, 53, 0.2);
}

/* Logo区域 - 正方形 */
.card-image {
    position: relative;
    width: 140px;
    min-width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.school-card:hover .card-image img {
    transform: scale(1.08);
}

/* 隐藏遮罩层 - logo不需要 */
.card-overlay {
    display: none;
}

/* 标签移到内容区 */
.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.card-tags .tag {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    color: white;
}

.tag-elite {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.tag-degree {
    background: #2196f3;
}

/* 评分移到内容区 */
.card-rating {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.rating-score {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-label {
    font-size: 12px;
    color: #999;
    margin-top: 0;
}

/* 卡片内容区 */
.card-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.school-card:hover .card-title {
    color: #ff6b35;
}

/* 元信息 */
.card-meta {
    margin-bottom: 12px;
}

.meta-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
}

.meta-location svg {
    color: #ff6b35;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* 卡片底部 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
    margin-top: auto;
}

.card-type {
    font-size: 11px;
    color: #999;
    padding: 3px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #ff6b35;
    transition: gap 0.3s ease;
}

.school-card:hover .card-action {
    gap: 6px;
}

.card-action svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.school-card:hover .card-action svg {
    transform: translateX(2px);
}

/* 专业跳转提示 */
.majors-redirect-notice {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    font-size: 17px;
    background: #ffffff;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 分页 */
.pagination-nav {
    padding: 50px 24px;
    display: flex;
    justify-content: center;
    background: #fafafa;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    text-decoration: none;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

.page-item.disabled .page-link:hover {
    border-color: #f0f0f0;
    color: #ccc;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .card-image {
        width: 120px;
        min-width: 120px;
        height: 120px;
        padding: 16px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .schools-hero {
        padding: 100px 16px 70px;
    }
    
    .schools-hero h1 {
        font-size: clamp(26px, 7vw, 36px);
    }
    
    .schools-hero p {
        font-size: 15px;
    }
    
    .schools-main {
        padding: 0 16px 40px;
    }
    
    .search-filters {
        margin: -40px 0 32px;
        padding: 24px;
        border-radius: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .search-box input {
        padding: 14px 18px;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 14px 24px;
        width: 100%;
    }
    
    .filters {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group label {
        min-width: 80px;
    }
    
    .content-tabs {
        gap: 8px;
        margin-bottom: 24px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .school-card {
        border-radius: 12px;
    }
    
    .card-image {
        width: 100px;
        min-width: 100px;
        height: 100px;
        padding: 14px;
    }
    
    .card-body {
        padding: 14px 16px;
    }
    
    .card-title {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .card-tags .tag {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .card-meta {
        margin-bottom: 10px;
    }
    
    .meta-location {
        font-size: 12px;
    }
    
    .rating-score {
        font-size: 18px;
    }
    
    .rating-label {
        font-size: 11px;
    }
    
    .card-footer {
        padding-top: 10px;
    }
    
    .card-type {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .card-action {
        font-size: 11px;
    }
    
    .pagination-nav {
        padding: 32px 16px;
    }
    
    .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .schools-hero {
        padding: 90px 12px 60px;
    }
    
    .schools-main {
        padding: 0 12px 32px;
    }
    
    .search-filters {
        padding: 20px;
        margin: -35px 0 24px;
    }
    
    .card-image {
        width: 85px;
        min-width: 85px;
        height: 85px;
        padding: 12px;
    }
    
    .card-body {
        padding: 12px 14px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .card-tags {
        margin-bottom: 6px;
    }
    
    .card-tags .tag {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .rating-score {
        font-size: 16px;
    }
}
