/* 客户展示区域样式 */
.clients-showcase {
    padding: 100px 0; /* 顶部留白 */
    background: #ffffff;
    position: relative;
    padding-top: 48px; /* 视觉舒适：40–60px之间按需微调 */
}

.clients-showcase .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.clients-showcase .section-header {
    text-align: left;
    margin-bottom: 180px; /* 从 60px 增大到 80px，更有留白 */
}

.clients-showcase .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    position: relative;
    display: inline-block;
    /* margin-top: 0; /* 去掉 h2 默认上外边距，缩小顶部距离 */
}

.clients-showcase .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: none;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, #000000, #e74c3c);
    border-radius: 2px;
}

/* 菱形网格容器 */
.clients-diamond-grid {
    position: relative;
    width: 100%;
    height: 700px;
    margin: 0 auto;
}

/* 菱形样式 */
.client-diamond {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: rotate(45deg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    
    /* 使用CSS变量进行精确定位 */
    left: var(--x, 0px);
    top: var(--y, 0px);
}

/* 客户logo */
.client-logo {
    transform: rotate(-45deg);
    width: 125px;
    height: 125px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin: 27px;
}

.client-logo img {
    max-width: 105px;
    max-height: 105px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

/* 悬停效果 - 只有边缘发光 */
.client-diamond:hover {
    transform: rotate(45deg)/* 放大 */scale(1.5);
    border: 0px solid rgba(255, 215, 0, 1); /* 只有边缘发光 */
    box-shadow: 
        0 0 0 0px rgba(226, 192, 0, 0.3), /* 边缘发光 */
        0 0 25px rgba(255, 215, 0, 0.6), /* 模糊效果 */
        0 0 45px rgba(255, 215, 0, 0.3), /* 模糊效果 */
        0 0 25px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    z-index: 10; /* 显示在最上层 */
}

.client-diamond:hover .client-logo img { /* 放大客户logo */
    filter: brightness(1) contrast(1); /* 增强对比度 */
    transform: scale(1.05); /* 放大客户logo */
}

/* 移除背景图案，保持纯白色背景 */

/* 移动端适配 */
@media (max-width: 768px) {
    .clients-showcase {
        padding: 60px 0;
    }
    
    .clients-diamond-grid {
        width: 100%;
        height: 600px;
        transform: scale(0.4);
        transform-origin: center top;
    }
    
    /* 移动端触摸效果 */
    .client-diamond:active {
        transform: rotate(45deg) scale(1.05);
        border: 2px solid rgba(255, 215, 0, 1);
        box-shadow: 
            0 0 0 2px rgba(255, 215, 0, 0.3),
            0 0 15px rgba(255, 215, 0, 0.6);
    }
}

@media (max-width: 480px) {
    .clients-diamond-grid {
        width: 100%;
        height: 400px;
        transform: scale(0.3);
        transform-origin: center top;
    }
}
