/* 
   案例详细页面样式
   Case Detail Page Styles
   粉色系配色方案
*/

/* 案例详细内容区域 */
.case-detail-section {
    background: #f8fafc;
}

.case-detail-article {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* 案例标题 */
.case-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 案例元信息 */
.case-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
}

.case-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.case-meta-item i {
    color: #ff6b9d;
    font-size: 1rem;
}

.case-category-badge {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 项目标签区域 */
.case-tags-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe8f0 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 157, 0.15);
}

.case-tags-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-tags-title i {
    color: #ff6b9d;
    font-size: 1.1rem;
}

.case-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-tag-item {
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    color: #c44569;
    border: 2px solid #ff6b9d;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.15);
}

.case-tag-item:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* 案例主图 */
.case-detail-image {
    margin-bottom: 35px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.case-detail-image:hover img {
    transform: scale(1.02);
}

/* 案例正文 */
.case-detail-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.case-detail-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6b9d;
}

.case-detail-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.case-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.case-detail-content ul,
.case-detail-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.case-detail-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.case-detail-content strong {
    color: #c44569;
    font-weight: 600;
}

/* 客户评价引用 */
.case-quote {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe8f0 100%);
    border-left: 5px solid #ff6b9d;
    padding: 25px 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.case-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #c44569;
    font-size: 0.95rem;
}

/* 案例图片画廊 */
.case-gallery {
    margin: 30px 0;
}

.case-gallery img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.case-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 分享按钮区域 */
.case-share-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe8f0 100%);
    border-radius: 15px;
    margin-bottom: 40px;
    border: 2px solid rgba(255, 107, 157, 0.15);
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.share-wechat {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
}

.share-weibo {
    background: linear-gradient(135deg, #e6162d 0%, #c41429 100%);
}

.share-qq {
    background: linear-gradient(135deg, #12b7f5 0%, #0fa3db 100%);
}

.share-link {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

/* 上一篇/下一篇导航 */
.case-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.nav-prev,
.nav-next {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe8f0 100%);
    color: #c44569;
    transform: translateX(-5px);
}

.nav-next:hover {
    transform: translateX(5px);
}

.nav-prev i,
.nav-next i {
    font-size: 1.5rem;
    color: #ff6b9d;
    flex-shrink: 0;
}

.nav-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* 侧边栏 */
.case-sidebar-detail {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.widget-title i {
    color: #ff6b9d;
}

/* 返回列表按钮 */
.back-to-list-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.back-to-list-btn:hover {
    background: linear-gradient(135deg, #c44569 0%, #a8325a 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* 相关案例列表 */
.related-cases-list,
.hot-cases-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-case-item,
.hot-case-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-case-item a,
.hot-case-item a {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.related-case-item:hover,
.hot-case-item:hover {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe8f0 100%);
    border-color: #ff6b9d;
    transform: translateX(5px);
    color: #c44569;
}

.related-case-item img,
.hot-case-item img,
.related-case-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-case-item:hover img,
.hot-case-item:hover img {
    transform: scale(1.05);
    border-color: #ff6b9d;
    box-shadow: 0 5px 16px rgba(255, 107, 157, 0.3);
}

.related-case-info,
.hot-case-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.related-case-item h4,
.hot-case-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.related-case-item:hover h4,
.hot-case-item:hover h4 {
    color: #c44569;
}

.related-case-date,
.hot-case-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.related-case-item:hover .related-case-date,
.hot-case-item:hover .hot-case-date {
    color: #ff6b9d;
}

.related-case-date::before,
.hot-case-date::before {
    content: '📅';
    font-size: 0.9rem;
}

/* 兼容旧样式 */
.related-case-content,
.hot-case-content {
    flex: 1;
    min-width: 0;
}

.related-case-title,
.hot-case-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-case-location,
.hot-case-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 联系我们小部件 */
.contact-widget {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe8f0 100%);
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.widget-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #c44569 0%, #a8325a 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .case-detail-article {
        padding: 30px 20px;
    }
    
    .case-detail-title {
        font-size: 2rem;
    }
    
    .case-detail-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .case-navigation {
        flex-direction: column;
    }
    
    .nav-prev:hover,
    .nav-next:hover {
        transform: translateY(-3px);
    }
    
    .case-sidebar-detail {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .case-detail-title {
        font-size: 1.75rem;
    }
    
    .case-detail-content {
        font-size: 1rem;
    }
    
    .case-detail-content h3 {
        font-size: 1.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .case-gallery .row {
        margin: 0;
    }
    
    .case-gallery .col-md-6 {
        padding: 5px;
    }
    
    /* 移动端保持横向布局，但调整图片大小 */
    .related-case-item,
    .hot-case-item {
        padding: 15px;
        gap: 12px;
    }
    
    .related-case-item a,
    .hot-case-item a {
        gap: 12px;
    }
    
    .related-case-item img,
    .hot-case-item img,
    .related-case-image {
        width: 70px;
        height: 70px;
    }
    
    .related-case-item h4,
    .hot-case-item h4 {
        font-size: 0.9rem;
    }
    
    .related-case-date,
    .hot-case-date {
        font-size: 0.8rem;
    }
}
