/* 项目案例展示区域 */
.case-showcase {
    padding: 80px 0;
    position: relative;
    background: #23293a;
    overflow: hidden;
}

.case-showcase::before,
.case-showcase::after {
    display: none;
}

.case-showcase .container {
    position: relative;
    z-index: 2;
}

.case-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    position: relative;
}

.case-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #6c63ff;
}

/* 分类按钮样式 */
.case-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
    padding: 0 20px;
}

.case-tab {
    position: relative;
    padding: 12px 24px;
    font-size: 16px;
    color: #fff;
    background: rgba(108,99,255,0.08);
    border: 2px solid #6c63ff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-weight: 500;
    overflow: hidden;
}

.case-tab::before {
    display: none;
}

.case-tab span {
    position: relative;
    z-index: 2;
}

.case-tab:hover,
.case-tab.active {
    color: #fff;
    background: #6c63ff;
    border-color: #6c63ff;
    box-shadow: 0 4px 15px rgba(108,99,255,0.18);
    transform: translateY(-2px);
}

/* 响应式调?*/
@media (max-width: 768px) {
    .case-categories {
        gap: 10px;
        margin: 30px 0;
    }

    .case-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .case-categories {
        gap: 8px;
        margin: 20px 0;
    }

    .case-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 项目列表样式 */
.case-list {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-list.active {
    display: grid;
    opacity: 1;
}

/* 项目卡片样式 */
.case-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
    background: #262b3a;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(108,99,255,0.18);
}

.case-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 8px;
    background: #181b23;
}

.case-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

/* 默认显示的项目信�?*/
.case-default-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(35,41,58,0.95) 0%, rgba(35,41,58,0.45) 50%, rgba(35,41,58,0) 100%);
    color: #fff;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.case-default-info .case-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.case-default-info .case-location {
    font-size: 1rem;
    color: #bdbde6;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.case-image::after {
    display: none;
}

.case-item:hover .case-default-info {
    opacity: 0;
}

/* 悬停时显示的详细信息 */
.case-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    background: rgba(35,41,58,0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.case-item:hover .case-hover-info {
    opacity: 1;
    transform: translateY(0);
}

.case-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.case-location {
    font-size: 1rem;
    color: #bdbde6;
    margin-bottom: 15px;
}

.case-desc {
    font-size: 0.95rem;
    color: #e0e0f6;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* 查看详情按钮 */
.case-link {
    color: #6c63ff;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.case-link:hover {
    color: #ffb366;
}

.case-link svg {
    width: 20px;
    height: 20px;
    stroke: #6c63ff;
    transition: stroke 0.2s;
}

.case-link:hover svg {
    stroke: #ffb366;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .case-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-categories {
        gap: 10px;
    }
    
    .case-tab {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .case-list {
        grid-template-columns: 1fr;
    }
    
    .case-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .case-showcase {
        padding: 40px 0;
    }
    
    .case-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .case-categories {
        margin-bottom: 30px;
    }
    
    .case-tab {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}