﻿/* Case List CSS - 山东瑞采金属制品有限公司 */


/* Case List Section */
.rc_caselist_section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.rc_caselist_container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Case Item Styles */
.rc_caselist_item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rc_caselist_item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.rc_caselist_image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.rc_caselist_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rc_caselist_item:hover .rc_caselist_image img {
    transform: scale(1.1);
}

/* Overlay Effect */
.rc_caselist_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rc_caselist_item:hover .rc_caselist_overlay {
    opacity: 1;
}

.rc_caselist_overlay_content {
    text-align: center;
    padding: 20px;
    color: #fff;
}

.rc_caselist_overlay_content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.rc_caselist_overlay_content p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.rc_caselist_btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.rc_caselist_btn:hover {
    background-color: #e67e22;
}

/* Case Text Styles */
.rc_caselist_text {
    padding: 20px;
}

.rc_caselist_text h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.rc_caselist_category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.rc_caselist_desc {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .rc_caselist_container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media screen and (max-width: 992px) {
    .rc_page_banner {
        height: 250px;
    }

    .rc_page_banner_content h1 {
        font-size: 32px;
    }

    .rc_caselist_container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .rc_page_banner {
        height: 200px;
    }

    .rc_page_banner_content h1 {
        font-size: 28px;
    }

    .rc_page_banner_content p {
        font-size: 16px;
    }

    .rc_caselist_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .rc_caselist_image {
        height: 200px;
    }
}

@media screen and (max-width: 576px) {
    .rc_page_banner {
        height: 180px;
    }

    .rc_page_banner_content h1 {
        font-size: 24px;
    }

    .rc_caselist_container {
        grid-template-columns: 1fr;
    }

    .rc_caselist_image {
        height: 220px;
    }
}

/* Additional Animation - 修复版：移除导致闪烁的动画 */
@keyframes fadeIn {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 1; transform: translateY(0); }
}

.rc_caselist_item {
    /* 移除动画，直接显示，避免图片闪烁 */
    opacity: 1 !important;
    visibility: visible !important;
}

/* 增强图片显示确保 */
.rc_caselist_image img {
    display: block !important; /* 确保图片显示为块级元素 */
    opacity: 1 !important; /* 强制图片可见 */
    visibility: visible !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片加载失败时的备用样式 */
.rc_caselist_image img:not([src]), 
.rc_caselist_image img[src=""] {
    background-color: #e9ecef;
    display: block;
    width: 100%;
    height: 240px;
}