/* 荣誉资质页面样式 */

/* 荣誉资质网格 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.honor-item {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
    min-width: 0;
}

.honor-item:hover {
    background-color: #c30b00;
}

.honor-item:hover p {
    color: #fff;
}

.honor-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.honor-item p {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.page-btn:hover:not(.page-disabled):not(.page-active) {
    background-color: #27477d;
    color: #ffffff;
}

.page-active {
    background-color: #00bcd4;
    border-color: #00bcd4;
    color: #fff;
}

.page-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
    margin-left: 10px;
}

.page-info input {
    width: 50px;
    height: 30px;
    border: 1px solid #e0e0e0;
    text-align: center;
    margin: 0 5px;
    font-size: 14px;
    outline: none;
}

.page-info input:focus {
    border-color: #27477d;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .honor-item img {
        height: 150px;
    }
    
    .honor-item p {
        font-size: 14px;
    }
    
    .page-info {
        display: none;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .page-info {
        display: none;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
