/* ========== 案例详情页新样式 ========== */

/* 顶部大图Banner */
.case-hero {
    position: relative;
    width: 100%;
    min-width: 1200px;
    height: 420px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.case-hero-overlay {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,30,60,0.82) 0%, rgba(20,60,100,0.65) 50%, rgba(10,30,60,0.82) 100%);
    z-index: 1;
}
.case-hero-content {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.case-hero-content h1 {
    font-size: 42px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.case-hero-content > p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    letter-spacing: 1px;
}
.case-hero-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.case-hero-tags span {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

/* 项目详情区 */
.case-detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.case-detail-main {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* 左侧效果图 */
.case-detail-left {
    flex: 0 0 55%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}
.case-detail-left::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a5276, #2980b9, #1a5276);
}
.case-detail-left img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.case-detail-left:hover img {
    transform: scale(1.03);
}

/* 右侧信息 */
.case-detail-right {
    flex: 1;
}
.case-detail-right h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
    position: relative;
    padding-bottom: 16px;
}
.case-detail-right h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #1a5276, #2980b9);
    border-radius: 2px;
}
.case-detail-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}
.meta-item {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
.meta-item i {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2980b9;
}
.case-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.case-detail-tags span {
    background: #f0f6fc;
    color: #1a5276;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #d4e4f4;
}
.case-detail-right h5 {
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 12px;
}
.case-detail-right > p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 30px;
}
.visit-btn {
    display: inline-block;
    padding: 10px 36px;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: #fff;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 1px;
}
.visit-btn:hover {
    background: linear-gradient(135deg, #154360, #1f6fa0);
    box-shadow: 0 4px 16px rgba(26,82,118,0.35);
    transform: translateY(-1px);
}

/* 更多案例 */
.case-more-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.case-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.case-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.case-card-img {
    overflow: hidden;
    position: relative;
}
.case-card-img::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.case-card:hover .case-card-img::after {
    opacity: 1;
}
.case-card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.case-card:hover .case-card-img img {
    transform: scale(1.08);
}
.case-card-info {
    padding: 14px 16px;
}
.case-card-info h4 {
    font-size: 15px;
    color: #222;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-card-info p {
    font-size: 12px;
    color: #999;
}

/* 响应式 */
@media screen and (max-width: 1024px) {
    .case-detail-main {
        flex-direction: column;
    }
    .case-detail-left {
        flex: 1;
    }
    .case-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .case-hero {
        height: 280px;
        min-width: auto;
    }
    .case-hero-content h1 {
        font-size: 28px;
    }
    .case-more-grid {
        grid-template-columns: 1fr;
    }
}
