/* 案例页面样式 - 咖啡 ins 风格 */

/* 页面头部 */
.page-header {
    padding: 150px 0 50px;
    background: linear-gradient(135deg, #FDFBF7 0%, #F5F0E8 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #8B7355;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.breadcrumb {
    font-size: 15px;
    color: #7A7A7A;
}

.breadcrumb a {
    color: #C4A57B;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #8B7355;
}

/* 筛选区域 */
.cases-filter {
    padding: 40px 0;
    background-color: #FDFBF7;
    border-bottom: 1px solid #E8E4DC;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid #C4A57B;
    background: transparent;
    color: #8B7355;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: #C4A57B;
    color: #FDFBF7;
}

/* 案例列表 */
.cases-list {
    padding: 60px 0;
    background-color: #FDFBF7;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #E8E4DC;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(196, 165, 123, 0.25);
    border-color: #C4A57B;
}

.case-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.08);
}

.case-info {
    padding: 25px;
}

.case-info h3 {
    font-size: 1.35rem;
    color: #8B7355;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.case-category {
    font-size: 0.85rem;
    color: #6B8E9F;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-link {
    display: inline-block;
    color: #C4A57B;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.case-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6B8E9F;
    transition: width 0.3s ease;
}

.case-link:hover {
    color: #6B8E9F;
}

.case-link:hover::after {
    width: 100%;
}

/* CTA 区块 */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #C4A57B 0%, #8B7355 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    color: #FDFBF7;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-section p {
    font-size: 18px;
    color: rgba(253, 251, 247, 0.9);
    margin-bottom: 30px;
}

.cta-section .btn {
    display: inline-block;
    padding: 15px 45px;
    background: #FDFBF7;
    color: #8B7355;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid #FDFBF7;
}

.cta-section .btn:hover {
    background: transparent;
    color: #FDFBF7;
    transform: translateY(-3px);
}

/* 案例详情页样式 */
.case-detail-section {
    padding: 60px 0;
    background-color: #FDFBF7;
}

.case-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.case-detail-images {
    margin-bottom: 50px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(196, 165, 123, 0.2);
}

.case-detail-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.08);
    border: 1px solid #E8E4DC;
}

.case-detail-info h2 {
    font-size: 28px;
    color: #8B7355;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #C4A57B;
}

.case-detail-info h3 {
    font-size: 20px;
    color: #8B7355;
    margin: 30px 0 15px;
    font-weight: 600;
}

.case-detail-info > p {
    font-size: 16px;
    line-height: 1.8;
    color: #4A4A4A;
    margin-bottom: 25px;
}

.case-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #FDFBF7 0%, #F5F0E8 100%);
    border-radius: 8px;
    border: 1px solid #E8E4DC;
}

.meta-item {
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 14px;
    color: #7A7A7A;
    margin-bottom: 8px;
    font-weight: 500;
}

.meta-value {
    display: block;
    font-size: 16px;
    color: #8B7355;
    font-weight: 600;
}

.requirement-list,
.solution-list,
.tech-list {
    list-style: none;
    padding-left: 0;
}

.requirement-list li,
.solution-list li,
.tech-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #4A4A4A;
}

.requirement-list li::before,
.solution-list li::before,
.tech-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #C4A57B;
    font-weight: bold;
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .case-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .case-info h3 {
        font-size: 1.2rem;
    }
    
    .case-detail-info {
        padding: 25px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .case-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 280px;
    }
}
