/* 学生作品页面样式 */

/* 百分比展示 */
.banner {
    background-color: #f8f8f8;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
}

.percentage {
    font-size: 48px;
    font-weight: bold;
    color: #e15d29;
    position: relative;
    display: inline-block;
}

.percentage::after {
    content: "录取率";
    position: absolute;
    font-size: 16px;
    color: #333;
    right: -60px;
    bottom: 10px;
}

/* 筛选器样式 */
.filter-container, 
.category-container {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.filter-buttons, 
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn, 
.category-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, 
.category-btn.active {
    background-color: #e15d29;
    color: #fff;
    border-color: #e15d29;
}

.filter-btn:hover:not(.active), 
.category-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

/* 作品画廊 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card-img {
    height: 220px;
    width: 100%;
    transition: transform 0.5s;
}

.card-content {
    padding: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e15d29;
}

.card-author {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.card-school {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.card-degree {
    font-size: 12px;
    color: #888;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 60px;
    max-width: 1200px;
    padding: 0 20px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn.active {
    background-color: #e15d29;
    color: #fff;
    border-color: #e15d29;
}

.page-btn:hover:not(:disabled):not(.active) {
    background-color: #f0f0f0;
}

.page-btn:disabled {
    cursor: not-allowed;
    color: #ccc;
}

/* 图片预览 */
.img-preview-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.img-preview-modal {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.img-preview-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.img-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.img-preview-close:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .card-img {
        height: 180px;
    }
    
    .percentage {
        font-size: 36px;
    }
    
    .percentage::after {
        font-size: 14px;
        right: -50px;
        bottom: 8px;
    }
}

@media (max-width: 576px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons, 
    .category-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn, 
    .category-btn {
        flex-shrink: 0;
    }
} 