/* 案例详情页面样式 */
#case-detail-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

.case-detail-content {
    margin-top: 40px;
}

.case-detail-main {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.case-overview,
.case-services,
.case-highlights {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.case-overview h2,
.case-services h2,
.case-highlights h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.case-detail-text {
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify; /* 两端对齐 */
    text-justify: inter-ideograph;
}

.case-detail-text h3 {
    color: var(--primary-color);
    margin: 25px 0 15px 0;
}

.case-detail-text h4 {
    color: var(--accent-color);
    margin: 20px 0 10px 0;
}

.case-detail-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.case-detail-text li {
    margin-bottom: 8px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.case-stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.case-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.case-stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.related-case-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-case-item:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-case-item h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.related-case-item p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .case-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-detail-title h1 {
        font-size: 2rem;
    }
    
    .case-detail-title {
        padding: 20px 20px 15px;
    }
    
    .case-overview,
    .case-services,
    .case-achievements,
    .case-highlights,
    .case-info-card,
    .related-cases {
        padding: 20px;
    }
    
    .case-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 高亮样式 */
.highlight {
    background: linear-gradient(120deg, rgba(84, 51, 255, 0.1) 0%, rgba(32, 189, 255, 0.1) 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    font-weight: 500;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.timeline-item p {
    margin: 0;
    color: var(--text-color);
}
