/* 案例详情页样式 */

.case-detail {
    padding: 2rem 0 4rem;
}

/* 文章主体 */
.article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.article-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #ff96b7);
    color: var(--white);
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-meta {
    font-size: 0.875rem;
    opacity: 0.9;
}

.article-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* 相关案例 */
.related-cases {
    margin-top: 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
}

/* 返回按钮 */
.article-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.icon-back {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
}

.icon-back::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.8em;
    height: 0.8em;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-25%, -50%) rotate(45deg);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .case-detail {
        padding: 1rem 0 3rem;
    }

    .article {
        border-radius: 0;
        box-shadow: none;
    }

    .article-header {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .related-cases {
        margin-top: 3rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 1.25rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        padding: 1.25rem;
    }

    .related-cases {
        margin-top: 2rem;
        padding: 1.25rem;
    }

    .btn-back {
        padding: 0.75rem 1.5rem;
    }
} 