/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 整体容器样式 */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 头部样式 */
.case-header {
    width: 100%;
    text-align: center;
    padding: 60px 0 40px;
    background-color: #f8f9fa;
}

.back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 16px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #333;
}

.category {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    color: #555;
}

.case-header h1 {
    font-size: 36px;
    color: #202124;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.3;
    padding: 0 20px;
}

/* 内容区域样式 - 两列布局 */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    gap: 100px;
}

/* 图片区域样式 */
.image-stack {
    width: 600px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 40px;
    align-self: flex-start;
}

.image-item {
    width: 100%;
}

.image-item img {
    width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.02);
}

.caption {
    display: none;
}

/* 文字内容区域样式 */
.case-description {
    width: 500px;
    flex-shrink: 0;
}

.case-description h2 {
    font-size: 24px;
    color: #202124;
    margin: 40px 0 16px;
    font-weight: 500;
}

.case-description h2:first-child {
    margin-top: 0;
}

.case-description p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #444;
}

.case-description ul {
    padding-left: 20px;
    margin-bottom: 24px;
}

.case-description li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* 响应式布局 */
@media (max-width: 1240px) {
    .content-wrapper {
        max-width: 95%;
        gap: 60px;
    }
}

@media (max-width: 1140px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .image-stack {
        position: static;
        margin: 0 auto;
    }

    .case-description {
        margin: 0 auto;
    }
}

@media (max-width: 668px) {
    .image-stack {
        width: 100%;
    }

    .image-item img {
        width: 100%;
    }

    .case-description {
        width: 100%;
        max-width: 500px;
    }

    .case-header {
        padding: 40px 20px 30px;
    }

    .case-header h1 {
        font-size: 28px;
    }

    .content-wrapper {
        padding: 40px 20px;
        gap: 40px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    animation: fadeIn 0.8s ease-out;
}