/* 案例页面banner */
.case-banner {
    height: 400px;
    background: url('../images/case-banner.jpg') no-repeat center;
    background-size: cover;
    position: relative;
}

.case-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.case-banner .banner-content {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    color: #fff;
    text-align: left;
}

.case-banner h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.case-banner p {
    font-size: 24px;
    margin-bottom: 10px;
}

.case-banner .subtitle {
    font-size: 18px;
    opacity: 0.8;
}

/* 筛选区域 */
.filter-section {
    padding: 30px 0;
    background: #f5f5f5;
}

.filter-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.filter-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.filter-item:last-child {
    border-bottom: none;
}

.filter-label {
    display: inline-block;
    width: 80px;
    color: #666;
}

.filter-options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-options a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.filter-options a:hover,
.filter-options a.active {
    color: #f0a500;
}

/* 视图切换按钮 */
.view-toggle {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
    gap: 15px;
}

.view-toggle button {
    padding: 10px 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.view-toggle button i {
    margin-right: 8px;
}

.view-toggle button:hover {
    border-color: #f0a500;
    color: #f0a500;
}

.view-toggle button.active {
    background: #f0a500;
    color: #fff;
    border-color: #f0a500;
}

/* 案例列表 */
.case-list {
    padding: 50px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

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

.case-item:hover {
    transform: translateY(-5px);
}

.case-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-item:hover .case-hover {
    opacity: 1;
}

.view-btn {
    padding: 10px 20px;
    background: #f0a500;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.view-btn:hover {
    background: #d89500;
}

.case-info {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all 0.3s ease;
}

.case-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.case-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}



/* VR视图样式 */
.vr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.vr-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
    padding: 20px;
}

.vr-item:hover {
    transform: translateY(-5px);
}

.vr-item .vr-icon {
    font-size: 48px;
    color: #f0a500;
    margin-bottom: 15px;
}

.vr-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.vr-item .view-vr-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #f0a500;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 15px;
}

.vr-item .view-vr-btn:hover {
    background: #d89500;
}

.no-data {
    text-align: center;
    padding: 50px 0;
    color: #999;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .case-banner h1 {
        font-size: 36px;
    }

    .case-banner p {
        font-size: 20px;
    }
}

@media screen and (max-width: 768px) {
    .filter-label {
        display: block;
        margin-bottom: 10px;
    }

    .filter-options {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 15px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 576px) {
    .view-toggle {
        flex-direction: column;
        align-items: center;
    }
    
    .view-toggle button {
        width: 100%;
        max-width: 200px;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-banner h1 {
        font-size: 28px;
    }

    .case-banner p {
        font-size: 16px;
    }

    .case-banner {
        height: 300px;
    }

    .case-image {
        height: 200px;
    }
}