/* 案例详情页面样式 */
.case-detail-page .hero {
    background: linear-gradient(to bottom, #dbeafe, #bfdbfe);
    padding: 6rem 0 4rem;
    text-align: center;
    margin-bottom: 0;
    margin-top: 0;
}

.case-detail-page .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.case-detail-page .case-category {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
    height: 1.75rem;
    line-height: 1;
}

.case-detail-page .case-meta {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.75rem;
}

.case-detail-page .case-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 1.75rem;
    line-height: 1.75rem;
}

.case-detail-page .case-content {
    padding: 6rem 0 4rem;
    background-color: #fff;
}

.case-detail-page .case-article {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.case-detail-page .case-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.case-detail-page .case-featured-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.case-detail-page .case-body {
    text-align: left;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.case-detail-page .case-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    color: #333;
    text-align: left;
    max-width: 100%;
}

.case-detail-page .content-block {
    margin-bottom: 2rem;
}

.case-detail-page .content-block h2 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.case-detail-page .rich-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.case-detail-page .gallery-block {
    margin: 2rem 0;
}

.case-detail-page .gallery-block h2 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.case-detail-page .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.case-detail-page .gallery-item {
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.case-detail-page .gallery-item:hover {
    transform: scale(1.02);
}

.case-detail-page .gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.case-detail-page .article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: left;
}

.case-detail-page .tags {
    margin-bottom: 1.5rem;
}

.case-detail-page .tag {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.case-detail-page .share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.case-detail-page .share-buttons strong {
    color: #4b5563;
}

.case-detail-page .share-btn {
    color: #6b7280;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.case-detail-page .share-btn:hover {
    color: #3b82f6;
}

.case-detail-page .sidebar {
    position: sticky;
    top: 2rem;
}

.case-detail-page .widget {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.case-detail-page .widget-title {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.case-detail-page .related-cases-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.case-detail-page .related-case-item {
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 0.8rem;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}

.case-detail-page .related-case-item:hover {
    background-color: #f1f5ff;
    border-color: #e1e9ff;
}

.case-detail-page .related-case-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.case-detail-page .related-case-item h4 {
    font-size: 0.95rem;
    margin: 0 0 0.6rem 0;
    color: #111827;
    line-height: 1.4;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case-detail-page .related-case-item a:hover h4 {
    color: #3b82f6;
}

.case-detail-page .related-case-item .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.case-detail-page .related-case-item .category {
    display: inline-block;
    background-color: #eef2ff;
    color: #4f46e5;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

.case-detail-page .related-case-item .date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.case-detail-page .contact-widget {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
}

.case-detail-page .contact-widget p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.case-detail-page .breadcrumb {
    background-color: #e0efff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.case-detail-page .breadcrumb a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.1rem;
}

.case-detail-page .breadcrumb a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.case-detail-page .breadcrumb span:not(.breadcrumb-separator) {
    color: #6b7280;
    margin-left: 0.1rem;
}

.case-detail-page .breadcrumb-separator {
    color: #9ca3af;
    margin: 0 0.1rem;
}

@media (max-width: 1024px) {
    .case-detail-page .sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .case-detail-page .hero h1 {
        font-size: 2rem;
    }
    
    .case-detail-page .sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .case-detail-page .hero {
        padding: 4rem 0 2rem;
    }
    
    .case-detail-page .hero h1 {
        font-size: 1.75rem;
    }
    
    .case-detail-page .case-content {
        padding: 2rem 0;
    }
    
    .case-detail-page .case-meta {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .case-detail-page .case-body p {
        font-size: 1rem;
    }
    
    .case-detail-page .case-featured-image {
        height: 300px;
    }
    
    .case-detail-page .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .case-detail-page .gallery-item {
        height: 250px;
    }
    
    .case-detail-page .gallery-item img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

/* Case Study Detail Styles */

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: #dee2e6;
}

.breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #007bff;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section h2 {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 2rem;
    font-weight: 400;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
}

/* Content Section */
.case-content {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.content-block {
    margin-bottom: 60px;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.5rem;
}

/* Image Gallery */
.case-gallery {
    margin: 60px 0;
}

.gallery-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.gallery-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.gallery-image:hover img {
    transform: scale(1.03);
}

/* Related Case Studies */
.related-cases {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.related-case-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.related-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-case-image {
    height: 200px;
    overflow: hidden;
}

.related-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-case-card:hover .related-case-image img {
    transform: scale(1.1);
}

.related-case-content {
    padding: 20px;
}

.related-case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #212529;
}

.related-case-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.view-case-link {
    display: inline-block;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.view-case-link:hover {
    color: #0056b3;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background-color: #212529;
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #0069d9;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .case-content {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
} 