/* 产品案例展示页面样式 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Banner样式 */
.case-banner {
    height: 400px;
    background-image: linear-gradient(135deg, #0066cc, #004080);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.case-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/banner-bg.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.case-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.case-banner p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 内容容器 */
.case-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #0066cc;
    margin: 1rem auto 0;
}

/* 分类导航 */
.category-nav {
    margin-bottom: 3rem;
}

.category-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    flex-wrap: wrap;
}

.category-item {
    width: 105px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    border-radius: 15px;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #e0e0e0;
}

.category-item.active {
    background-color: #0066cc;
    color: white;
}

/* 案例网格 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.case-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 102, 204, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.case-overlay h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.view-case {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: white;
    color: #0066cc;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-case:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.case-info {
    padding: 1.5rem;
    background-color: white;
}

.case-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.case-info p {
    margin: 0;
    color: #666;
}

/* 案例详情弹窗 */
.case-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.modal-body {
    padding: 2rem;
}

/* 案例详情样式 */
.case-details h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #0066cc;
}

.case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.case-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.case-description h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #333;
}

.case-description p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .case-banner h1 {
        font-size: 2.5rem;
    }

    .case-banner p {
        font-size: 1.2rem;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .category-item {
        margin-bottom: 0.8rem;
    }

    .modal-content {
        width: 95%;
    }
}