@charset "UTF-8";

/* ===================== 服务机构页面样式 ===================== */

/* 基础容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner {
    position: relative;
    height: 540px;
    background: #454C56;
    /* margin-top: 106px; */
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 540px;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner标题 */
.banner-titles {
    text-align: center;
    color: #ffffff;
}

.banner-titles h2 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.23;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.banner-titles .subtitle {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 14%;
    margin: 0;
    text-transform: uppercase;
}

/* ===================== 服务机构内容区域 ===================== */
.institution-content {
    padding: 80px 0;
    background: #ffffff;
}

/* 分类区域样式 */
.institution-category-section {
    margin-bottom: 80px;
}

.institution-category-section:last-child {
    margin-bottom: 0;
}

/* 分类标题样式 */
.category-header {
    margin-bottom: 50px;
    position: relative;
}

.category-line {
    width: 4px;
    height: 48px;
    background: #1673FF;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.category-title {
    font-size: 30px;
    color: #2E3033;
    margin: 0;
    padding-left: 20px;
}

.category-title .highlight {
    color: #1673FF;
    font-weight: 400;
}

/* 机构网格布局 */
.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 183px);
    gap: 40px 30px;
    justify-content: flex-start;
    max-width: 100%;
}

/* 机构项样式 */
.institution-item {
    width: 183px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(to bottom, #F3F5F8, #ffffff);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 80px;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.institution-item:hover {
    border-color: #1673FF;
    background: linear-gradient(to bottom, #E8F2FF, #ffffff);
    box-shadow: 0 8px 24px rgba(22, 115, 255, 0.15);
    transform: translateY(-4px) scale(1.02);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 机构LOGO样式 */
.institution-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    border-radius: 6px;
    overflow: hidden;
}

.institution-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 机构名称样式 */
.institution-name {
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .institutions-grid {
        grid-template-columns: repeat(auto-fill, 183px);
        gap: 30px 20px;
        justify-content: center;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .institution-content {
        padding: 60px 0;
    }
    
    .institution-category-section {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .banner-titles h2 {
        font-size: 36px;
    }
    
    .banner-titles .subtitle {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .institutions-grid {
        grid-template-columns: repeat(auto-fill, 160px);
        gap: 20px 15px;
        justify-content: center;
    }
    
    .institution-item {
        width: 160px;
        padding: 16px 20px;
        gap: 16px;
        min-height: 70px;
    }
    
    .category-title {
        font-size: 20px;
        padding-left: 16px;
    }
    
    .category-line {
        width: 3px;
        height: 36px;
    }
    
    .institution-logo {
        width: 40px;
        height: 40px;
    }
    
    .institution-name {
        font-size: 14px;
    }
    
    .institution-content {
        padding: 40px 0;
    }
    
    .institution-category-section {
        margin-bottom: 40px;
    }
    
    .category-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 400px;
    }
    
    .banner-titles h2 {
        font-size: 28px;
    }
    
    .banner-titles .subtitle {
        font-size: 16px;
    }
    
    .institutions-grid {
        grid-template-columns: repeat(auto-fill, 140px);
        gap: 15px 10px;
        justify-content: center;
    }
    
    .institution-item {
        width: 140px;
        padding: 12px 16px;
        gap: 12px;
        min-height: 60px;
    }
    
    .category-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .institution-logo {
        width: 36px;
        height: 36px;
    }
    
    .institution-name {
        font-size: 13px;
    }
}

/* 删除不需要的旧样式 */
.institution-intro,
.institution-categories,
.service-process,
.institution-contact,
.pagination-wrapper {
    display: none;
} 