/* css/ft_anli.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.case-wall {
    width: 100%;
    background: #0d021a;
    padding: 30px;
    display: grid;
    grid-gap: 30px;
    min-height: 100vh;
}

.case-item {
    background: #000;
    height: 450px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.case-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-content {
    position: relative;
    height: 100%;
    padding: 25px;
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.case-header {
    font-size: 16px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 8px;
    margin-bottom: 15px;
    height: 24px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.case-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5em;
    margin-bottom: 15px;
    text-indent: 2em;
    max-height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case-body {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    text-indent: 2em;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.case-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
}

/* 悬停效果 */
.case-item:hover .case-bg {
    transform: translateY(100%);
}

.case-item:hover .case-body {
    opacity: 1;
    transform: translateX(0);
}

/* 响应式布局 */
@media (max-width: 479px) {
    .case-wall { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 767px) {
    .case-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .case-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .case-wall { grid-template-columns: repeat(4, 1fr); }
}
