.customer-case-section {
    width: 100%;
    margin-top: 0;
}

.customer-case-top-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 20px;
}

.customer-case-nav-list {
    list-style: none;
    margin: 0;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
}

.customer-case-nav-item {
    font-size: 15px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid #d4d4d4;
}

.customer-case-nav-link {
    display: block;
    padding: 8px 14px;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-case-nav-item:hover {
    background: #eaf6e9;
    color: #4ec548;
}

.customer-case-nav-item.active {
    background: #4ec548;
    color: #fff;
    font-weight: 500;
}

.customer-case-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.customer-case-panel {
    display: none;
}

.customer-case-panel.active {
    display: block;
}

.customer-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.customer-case-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-case-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.customer-case-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.customer-case-item-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
}

.customer-case-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.customer-case-item:hover .customer-case-item-img img {
    transform: scale(1.05);
}

.customer-case-item-title {
    padding: 15px 12px;
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

.customer-case-item:hover .customer-case-item-title {
    color: #4ec548;
}

@media screen and (max-width: 1024px) {
    .customer-case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media screen and (max-width: 768px) {
    .customer-case-top-nav {
        padding: 0 15px;
        margin-bottom: 10px;
    }

    .customer-case-nav-list {
        padding: 8px;
        gap: 6px;
    }

    .customer-case-nav-item {
        font-size: 13px;
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 6px);
        border: 1px solid #e3e3e3;
    }

    .customer-case-nav-link {
        padding: 8px 14px;
    }

    .customer-case-content {
        padding: 0 15px;
    }

    .customer-case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .customer-case-item-img {
        height: 140px;
    }

    .customer-case-item-title {
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1600px) {
    .customer-case-top-nav {
        max-width: 1100px;
        padding: 0 15px;
    }

    .customer-case-content {
        max-width: 1100px;
        padding: 0 15px;
    }

    .customer-case-grid {
        gap: 15px;
    }

    .customer-case-item-img {
        height: 180px;
    }

    .customer-case-item-title {
        padding: 12px 10px;
        font-size: 13px;
    }
}
