/* ========== 案例详情页专属样式 ========== */
/* 注意：过渡模块 .product-detail-banner 已在 common.css 中定义，此处不再重复 */

.case-detail-page {
    padding: 50px 0;
}
.case-overview {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
}
.overview-img {
    flex: 0 0 380px;
    max-width: 380px;
    background: #f0f4f9;
}
.overview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.overview-info {
    flex: 1;
    padding: 32px 36px;
}
.case-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #1a5aaa;
    background: #eef5ff;
    padding: 4px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
}
.overview-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f2b3d;
}
.overview-info .brief {
    font-size: 16px;
    color: #4b6b8c;
    line-height: 1.6;
    margin-bottom: 24px;
    border-left: 3px solid #1a5aaa;
    padding-left: 18px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    margin-top: 12px;
}
.info-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
}
.info-label {
    font-weight: 600;
    color: #1f2a3e;
    min-width: 80px;
}
.info-value {
    color: #5a6e8a;
}

.case-sections {
    margin: 40px 0;
}
.section-card {
    background: #fff;
    border-radius: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}
.section-header:hover {
    background: #fafcff;
}
.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2a3e;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #1a5aaa;
    border-radius: 4px;
    display: inline-block;
}
.section-icon {
    font-size: 24px;
    font-weight: 400;
    color: #1a5aaa;
    transition: all 0.25s ease;
    width: 28px;
    text-align: center;
    line-height: 1;
}
.section-card.active .section-icon {
    /* 图标文字从 + 变成 −，不旋转 */
    transform: none;
}
.section-content {
    display: none;
    padding: 0 28px 28px 28px;
    border-top: 1px solid #eef2f8;
    color: #4a627a;
    line-height: 1.7;
}
.section-card.active .section-content {
    display: block;
}
.content-rich p {
    margin-bottom: 16px;
}
.content-rich ul, .content-rich ol {
    margin: 12px 0 12px 24px;
}
.content-rich li {
    margin: 8px 0;
}
.param-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}
.param-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 20px;
    flex: 1;
    min-width: 180px;
    text-align: center;
}
.param-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a5aaa;
}
.param-label {
    font-size: 13px;
    color: #6c86a3;
    margin-top: 6px;
}
.result-chart {
    background: linear-gradient(145deg, #f0f6fe, #ffffff);
    padding: 20px;
    border-radius: 20px;
    margin: 16px 0;
}
.param-table {
    width: 100%;
    border-collapse: collapse;
}
.param-table th,
.param-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eef2f8;
}
.param-table th {
    background: #f2f6fc;
    font-weight: 600;
    color: #1f2a3e;
}

.related-cases {
    margin-top: 50px;
}
.related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    border-left: 4px solid #1a5aaa;
    padding-left: 16px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.related-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(0,0,0,0.1);
}
.related-img {
    height: 160px;
    overflow: hidden;
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.related-card:hover .related-img img {
    transform: scale(1.05);
}
.related-info {
    padding: 16px 18px;
}
.related-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.related-info p {
    font-size: 13px;
    color: #6c86a3;
}

/* 响应式 */
@media (max-width: 1024px) {
    .overview-img {
        flex: 0 0 320px;
        max-width: 320px;
    }
}
@media (max-width: 768px) {
    .overview-img {
        flex: 0 0 100%;
        max-width: 100%;
        height: 240px;
    }
    .overview-info {
        padding: 24px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .section-header {
        padding: 16px 20px;
    }
    .section-content {
        padding: 0 20px 20px 20px;
    }
}