/* 工程案例详情页样式 */
.project-detail-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
}

/* 返回按钮 */
.back-button {
    margin-bottom: 40px;
    margin-top: 40px;
}

.back-button a {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s;
}

.back-button a:hover {
    color: #1890ff;
}

.back-icon {
    width: 40px;
    height: 40px;
    margin-right: 5px;
}

.project-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* 简介和图片左右排版容器 */
.project-intro-section {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.project-summary {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    /*border-left: 4px solid #1890ff;*/
    white-space: pre-line; /* 支持换行符显示 */
}

.project-cover {
    flex: 1;
    text-align: center;
}

.project-intro-section .project-cover {
    margin-top: 0;
}

.project-cover img{
    width: 100%;
    max-width: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-cover img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* 当没有简介时的单独图片样式 */
.project-cover:not(.project-intro-section .project-cover) {
    width: 100%;
    margin-top: 80px;
    margin-bottom: 30px;
}

.project-cover:not(.project-intro-section .project-cover) img {
    width: 60%;
}

.project-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.project-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

.project-content p {
    margin-bottom: 15px;
}

.project-content h2, .project-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.related-cases {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    position: relative;
}

.related-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #1890ff;
    margin: 10px auto 0;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.related-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover img {
    transform: scale(1.05);
}

.related-item-info {
    padding: 15px;
}

.related-item-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.related-item:hover .related-item-title {
    color: #1890ff;
}

.related-item-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .related-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 250px;
    }
}

@media (max-width: 992px) {
    .project-intro-section {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .project-title {
        font-size: 24px;
    }

    .related-item {
        flex: 0 0 100%;
        min-width: auto;
    }

    /* 移动端改为上下排版 */
    .project-intro-section {
        flex-direction: column;
        gap: 20px;
    }

    .project-summary {
        padding: 20px;
        font-size: 15px;
    }

    .project-cover img {
        max-width: 100%;
    }
}
@media (max-width: 1280px) {
    .project-detail-container{
        margin-top: 80px;
    }
}
