/* 案例详情页面样式 */

/* 案例详情区域 */
.case-detail-section {
    padding: 60px 0;
}

.case-detail-wrapper {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.case-detail-header {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

#case-detail-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.case-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #777;
    font-size: 14px;
    position: relative;
}

.case-detail-meta span {
    display: flex;
    align-items: center;
}

.case-detail-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* 确保日期信息正确显示 */
.case-date, #case-detail-date {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #777 !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    z-index: 1 !important;
}

/* 案例内容区域 */
.case-detail-content {
    padding: 30px;
}

.case-detail-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    max-height: 400px;
    text-align: center;
    background-color: #f8f9fa;
    padding: 10px;
}

.case-detail-image img {
    width: auto;
    max-width: 100%;
    max-height: 380px;
    height: auto;
    display: inline-block;
    object-fit: contain;
    border-radius: 4px;
}

#case-detail-text {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #555;
}

/* 客户采购信息样式 */
.client-purchase-info {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
    border-radius: 4px;
}

.client-purchase-info strong {
    color: #0056b3;
    font-weight: 600;
}

/* 案例产品信息区域 */
.case-product-info {
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.case-product-info h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.case-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.case-product-item {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.case-product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.case-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.case-product-item:hover .case-product-image img {
    transform: scale(1.05);
}

/* 添加案例产品图片点击指示器 */
.case-product-image::before {
    content: '\f06e'; /* 眼睛图标 */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 86, 179, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.case-product-image:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.case-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.case-product-image:hover::after {
    background-color: rgba(0, 0, 0, 0.3);
}

.case-product-content {
    padding: 15px;
}

.case-product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.case-product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* 客户反馈区域 */
.case-testimonial {
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.case-testimonial h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.testimonial-content {
    position: relative;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quote-icon {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.7;
}

#case-testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.testimonial-author strong {
    color: #333;
    font-size: 16px;
}

.testimonial-author span {
    color: #888;
    font-size: 14px;
}

/* 案例导航 */
.case-detail-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    background-color: #fcfcfc;
}

.case-nav-prev, .case-nav-next, .case-nav-list {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-nav-prev:hover, .case-nav-next:hover, .case-nav-list:hover {
    color: var(--primary-color);
}

.case-nav-prev i, .case-nav-next i {
    margin: 0 8px;
}

.case-nav-list i {
    margin-right: 8px;
}

.case-nav-prev.disabled, .case-nav-next.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 相关案例区域 */
.related-case-section {
    padding: 60px 0;
}

.related-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.related-case-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.related-case-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #f8f9fa;
    padding: 5px;
}

.related-case-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

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

/* 添加相关案例图片点击指示器 */
.related-case-image::before {
    content: '\f06e'; /* 眼睛图标 */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.related-case-image:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.related-case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.related-case-image:hover::after {
    background-color: rgba(0, 0, 0, 0.3);
}

.related-case-content {
    padding: 20px;
}

.related-case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-case-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-case-title a:hover {
    color: var(--primary-color);
}

/* 修复相关案例中日期的显示 */
.related-case-date, .related-case-location {
    color: #777;
    margin-bottom: 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    position: static !important;
    background: none !important;
}

.related-case-date i, .related-case-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.related-case-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 错误信息 */
.error-message {
    text-align: center;
    padding: 50px 20px;
}

.error-message .icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.error-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 18px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .case-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-case-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .case-detail-header, .case-detail-content {
        padding: 20px;
    }
    
    #case-detail-title {
        font-size: 24px;
    }
    
    .case-product-info, .case-testimonial {
        padding: 20px;
        margin: 30px 0;
    }
    
    .case-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .related-case-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端导航调整 */
    .case-detail-nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 20px;
    }
    
    .case-nav-prev,
    .case-nav-next,
    .case-nav-list {
        width: 100%;
        justify-content: center;
        padding: 12px;
        text-align: center;
    }
    
    /* 调整按钮排序 */
    .case-nav-list {
        order: 2; /* 返回列表放在中间 */
    }
    
    .case-nav-prev {
        order: 1; /* 上一个放在最上面 */
    }
    
    .case-nav-next {
        order: 3; /* 下一个放在最下面 */
    }
    
    /* 图片高度调整 */
    .case-detail-image {
        max-height: 300px;
        padding: 5px;
    }
    
    .case-detail-image img {
        max-height: 290px;
    }
} 