/* 案例容器样式 */
.cases-container {
    margin-top: 40px;
    text-align: center;
}

.cases-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
}

/* 案例卡片样式 */
.case-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    text-align: left;
    border: none;
    position: relative;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(235, 92, 32, 0.15);
}

.case-header {
    flex: 0 0 20%;
    padding-right: 20px;
    border-right: 2px solid var(--primary-color);
    text-align: center;
}

.case-header h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.case-header .case-date {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2px;
}

.case-header .case-year {
    font-size: 0.9rem;
    color: #999;
}

.case-content {
    flex: 1;
    padding-left: 20px;
    position: relative;
}

/* 统一经典案例左侧图片尺寸 */
.case-image {
    width: 170px; /* 固定宽度 */
    height: 120px; /* 固定高度 */
    flex: 0 0 170px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持比例不裁切 */
    display: block;
}

.case-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
}

.case-description {
    margin: 0;
    color: #666;
    line-height: 1.4;
    font-size: 1rem;
}

.chart-container {
    height: 200px;
    margin: 20px 0;
}

.collapse-section {
    margin-top: 30px;
}

.collapse-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapse-content {
    padding: 15px;
    background-color: #f9f9f9;
    display: none;
}

.collapse-content.show {
    display: block;
}

.case-manner {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -40px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-height: 500px;
}

.case-manner img {
    width: 100%;
    height: 180px;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    object-position: center;
}

.case-manner:hover img {
    transform: scale(1.03);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cases-grid {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .case-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .case-header {
        flex: none;
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .case-content {
        padding-left: 0;
    }
    
    .case-title {
        font-size: 1.1rem;
    }
    
    .case-description {
        font-size: 0.9rem;
    }

    .case-image {
        width: 150px;
        height: 105px;
        flex: 0 0 150px;
        margin-right: 0;
        margin-bottom: 12px; /* 竖排时与文字分隔 */
    }
}

@media (max-width: 480px) {
    .cases-grid {
        padding: 0 10px;
        gap: 15px;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-header {
        padding: 15px;
    }
    
    .case-header h3 {
        font-size: 1.1rem;
    }

    .case-image {
        width: 100%;
        max-width: 260px;
        height: 120px; /* 保持高度一致 */
    }
}

/* 服务客户部分样式 */
.allies-section {
    background-color: #f9f9f9;
}

/* 分类容器样式 */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.category-section {
    width: 100%;
    margin-bottom: 40px;
}

/* 合作伙伴部分标题样式 */
.partners-title {
    text-align: center;
    color: var(--primary-color);
    margin: 10px 0 30px;
    font-size: 1.5rem;
    position: relative;
}

.partners-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: rgba(85, 77, 73);
}

.logo-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start; /* 改为左对齐 */
}

.logo-item {
    width: 130px; /* 原 120px 稍大 */
    height: 130px; /* 原 120px 稍大 */
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    z-index: 10;
}

.logo-img {
    width: 90%;
    height: 90px; /* 原 72px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-img img {
    max-width: 90%;
    max-height: 70px; /* 原 60px */
    object-fit: cover;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-img img {
    transform: scale(1.1);
}

.logo-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(235, 92, 32, 0.9);
    color: white;
    text-align: center;
    padding: 8px 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.logo-item:hover .logo-title {
    transform: translateY(0);
}

.logo-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.logo-item:hover .logo-info {
    opacity: 1;
    transform: scale(1);
}

.logo-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.logo-info p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.ally-manner {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -40px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-height: 500px;
}

.ally-manner img {
    width: 100%;
    height: 180px;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    object-position: center;
}

.ally-manner:hover img {
    transform: scale(1.03);
}

/* 服务客户部分响应式设计 */
@media (max-width: 1200px) {
    .categories-container {
        gap: 50px;
    }
    
    .logo-wall {
        gap: 12px;
    }
    
    .logo-item {
        width: 170px; /* 相应放大 */
    }
    
    .partners-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .logo-wall {
        gap: 12px;
        justify-content: center; /* 改为居中对齐 */
    }
    
    .logo-item {
        width: 150px; /* 原 130 */
        height: 115px; /* 原 100 */
    }
    
    .logo-img {
        height: 60px; /* 原 50 */
    }
    
    .logo-img img {
        max-height: 50px; /* 原 40 */
    }
    
    .partners-title {
        font-size: 1.2rem;
        margin: 15px 0 20px;
    }
    
    .categories-container {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .logo-wall {
        flex-direction: row; /* 改回行布局 */
        justify-content: center; /* 居中对齐 */
        gap: 10px;
    }
    
    .logo-item {
        width: 46%; /* 两个一行 */
        max-width: 160px;
        height: 110px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .logo-img img {
        max-height: 50px;
    }
    
    .logo-title {
        font-size: 0.8rem;
        padding: 6px 3px;
    }
    
    .logo-info {
        padding: 15px;
    }
    
    .logo-info p {
        font-size: 0.75rem;
    }
}
