/* ==================== 案例列表页 - Contentful 风格 ==================== */

/* Hero 区域 */
.case-hero-section {
    background: #fff;
    padding: 60px 0 40px;
}

.case-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 0;
}

/* 页面标题 */
.case-page-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 50px 0;
}

/* 轮播容器 */
.case-slider-wrapper {
    position: relative;
}

.case-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f0eb;
}

/* 单个幻灯片 */
.slider-item {
    display: none;
}

.slider-item.active {
    display: block;
}

.slider-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

/* 左侧内容 */
.slider-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-client {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* 客户 Logo */
.slider-client-logo {
    margin-bottom: 20px;
    max-width: 200px;
    height: 40px;
    display: flex;
    align-items: center;
}

.slider-client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

.slider-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a2e;
    margin: 0 0 30px 0;
}

/* 元信息 */
.slider-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.meta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-values {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-values span {
    font-size: 15px;
    color: #1a1a2e;
}

/* CTA 按钮 */
.slider-btn {
    display: inline-flex;
    align-self: flex-start;
    padding: 14px 28px;
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* 右侧图片 */
.slider-image {
    position: relative;
    overflow: hidden;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e4df;
}

.slider-placeholder i {
    font-size: 60px;
    color: #bbb;
}

/* 左右切换按钮 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    border-color: #1a1a2e;
    background: #1a1a2e;
}

.slider-arrow:hover i {
    color: #fff;
}

.slider-arrow i {
    font-size: 16px;
    color: #666;
}

.slider-arrow-prev {
    left: -70px;
}

.slider-arrow-next {
    right: -70px;
}

/* 进度条指示器 */
.slider-progress {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.progress-bar {
    width: 60px;
    height: 3px;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

/* 已完成的进度条 - 填满灰色 */
.progress-bar.completed {
    background: #999;
}

.progress-bar.completed .progress-fill {
    width: 100% !important;
    background: #999;
}

/* 当前激活的进度条 - 黑色动态填充 */
.progress-bar.active {
    background: #ddd;
}

.progress-bar.active .progress-fill {
    height: 100%;
    background: #1a1a2e;
    width: 0%;
}

/* 进度条填充动画 */
.progress-bar.active .progress-fill {
    transition: width 0.1s linear;
}

/* ==================== 筛选区域 - Tab 按钮样式 ==================== */
.case-filter-section {
    background: #fff;
    padding: 40px 0 60px;
    text-align: center;
}

.case-filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.filter-intro {
    font-size: 20px;
    color: #444;
    margin: 0 0 40px 0;
}

/* 带标签的筛选行 */
.filter-row-with-label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    text-align: left;
}

.filter-row-with-label:last-of-type {
    margin-bottom: 30px;
}

/* 左侧标签 */
.filter-label {
    flex-shrink: 0;
    width: 110px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: left;
}

/* Tab 按钮容器 */
.filter-tabs-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: min-content;
    overflow: hidden;
}

/* 折叠状态下的 Tab 容器 */
.filter-tabs-collapsed {
    max-height: 42px;
    flex-wrap: wrap;
}

/* 展开状态下的 Tab 容器 */
.filter-tabs-expanded {
    max-height: none;
    flex-wrap: wrap;
}

/* 展开/折叠按钮 */
.filter-expand-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 3px;
}

.filter-expand-btn:hover {
    background: #f5f5f5;
    border-color: #1a1a2e;
}

.filter-expand-btn i {
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.filter-expand-btn.expanded i {
    /* 加减号切换通过 JS 实现，这里只做样式 */
}

/* Tab 按钮 */
.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #e8e8e8;
    color: #333;
}

.filter-tab.active {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* 桌面端显示 Tab，隐藏下拉菜单 */
.filter-desktop {
    display: flex;
}

.filter-mobile {
    display: none;
}

/* 清除筛选按钮 */
.filter-clear-wrapper {
    margin-top: 10px;
}

.filter-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s;
}

.filter-clear-btn:hover {
    background: #f5f5f5;
    color: #1a1a2e;
    border-color: #1a1a2e;
}

/* ==================== 案例列表 ==================== */
.case-list-section {
    background: #fff;
    padding-bottom: 60px;
}

/* Case 分类页面背景色 */
.category-case body {
    background: #fff;
}

.case-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* 案例卡片 */
.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.case-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.case-card-image {
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.case-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card-placeholder i {
    font-size: 40px;
    color: #ccc;
}

.case-card-body {
    padding: 24px;
}

.case-card-client {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.case-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.case-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 4px;
}

/* 分页 */
.case-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 80px;
}

.case-pagination a,
.case-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.case-pagination a:hover,
.case-pagination .current {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* 空状态 */
.case-empty {
    text-align: center;
    padding: 80px 0;
}

.case-empty p {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #1a1a2e;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1a1a2e;
    color: #fff;
}

/* ==================== 响应式 ==================== */
/* 小尺寸 PC/笔记本 (1024px-1400px)  */
@media screen and (min-width: 1280px) and (max-width: 1470px) {
    .slider-arrow.slider-arrow-prev {
        left: -25px !important; 
    }
    .slider-arrow.slider-arrow-next {
        right: -25px !important; 
    }
}

@media screen and (max-width: 1200px) {
    .slider-arrow-prev {
        left: 20px;
    }
    
    .slider-arrow-next {
        right: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .case-page-title {
        font-size: 36px;
    }
    
    .slider-card {
        grid-template-columns: 1fr;
    }
    
    .slider-image {
        height: 300px;
    }
    
    .slider-content {
        padding: 40px 30px;
    }
    
    .slider-title {
        font-size: 24px;
    }
    
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-arrow {
        display: none;
    }
    
    /* 筛选区域响应式 */
    .filter-row-with-label {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-label {
        width: auto;
        text-align: left;
        padding-top: 0;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .case-hero-section {
        padding: 40px 0 30px;
    }
    
    .case-page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .slider-content {
        padding: 30px 24px;
    }
    
    .slider-title {
        font-size: 20px;
    }
    
    .slider-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .case-filter-section {
        padding: 30px 0 40px;
    }
    
    .filter-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    /* 移动端筛选区域 - 下拉菜单 */
    .filter-desktop {
        display: none;
    }
    
    .filter-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .filter-mobile .filter-label {
        width: auto;
        font-size: 14px;
        color: #666;
    }
    
    .filter-select-wrapper {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        color: #1a1a2e;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        padding-right: 40px;
    }
    
    .filter-select:focus {
        outline: none;
        border-color: #1a1a2e;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-bar {
        width: 40px;
    }
}

/* ==================== Load More 按钮 ==================== */
.case-list-section .case-load-more-wrapper,
.case-load-more-wrapper {
    text-align: center !important;
    margin-top: 60px !important;
    margin-bottom: 80px !important;
}

.case-list-section .case-load-more-btn,
.case-load-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 140px !important;
    height: 48px !important;
    padding: 0 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1a1a2e !important;
    background: transparent !important;
    border: 2px solid #1a1a2e !important;
    border-radius: 24px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.case-list-section .case-load-more-btn:hover,
.case-load-more-btn:hover {
    background: #1a1a2e !important;
    color: #fff !important;
}

.case-list-section .case-load-more-btn.loading,
.case-load-more-btn.loading {
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* 加载动画 */
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: loader-bounce 1.4s infinite ease-in-out both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loader-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

