/* 
   AI案例页面样式
   AI Cases Page Styles
*/

/* 头部横幅 */
.ai-case-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 60px 0;
    margin-top: -30px;
}

.ai-case-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.ai-case-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.ai-case-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 页面介绍区域 */
.cases-intro-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.cases-intro-section.section-padding {
    padding: 40px 0 30px;
}

.cases-intro-section + .cases-list-section.section-padding {
    padding: 40px 0 60px;
}

.intro-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #10b981 100%);
}

.intro-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.intro-icon i {
    font-size: 3rem;
    color: #ffffff;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: left;
}

.stats-box {
    margin-top: 28px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 15px;
    border: 2px solid rgba(16, 185, 129, 0.15);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 列表区域 */
.cases-list-section {
    padding: 50px 0 60px;
}

.cases-list-section .container {
    padding-left: 8px;
}

.cases-list-section .row {
    margin-left: 0;
    margin-right: 0;
}

.cases-list-section .row > .col-lg-3 {
    padding-right: 20px;
    padding-left: 0;
}

.cases-list-section .row > .col-lg-9 {
    padding-left: 25px;
}

@media (min-width: 992px) {
    .cases-list-section .row > .col-lg-3 {
        padding-right: 25px;
        padding-left: 0;
    }

    .cases-list-section .row > .col-lg-9 {
        padding-left: 30px;
    }
}

/* 侧边栏 */
.cases-sidebar {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 120px;
    transition: none;
    z-index: 100;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 240px;
    will-change: transform;
}

.sidebar-header {
    padding: 25px 15px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 15px 15px 0 0;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
    padding: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-item:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
    color: #059669;
    border-left-color: #059669;
    padding-left: 25px;
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: #059669;
    border-left-color: #059669;
    font-weight: 600;
}

.sidebar-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-item span {
    flex: 1;
    font-size: 0.95rem;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 案例卡片 */
.case-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.case-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.case-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

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

.case-industry-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.case-industry-badge .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
}

.case-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.case-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-title a:hover {
    color: #059669;
}

.case-client {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.case-client i {
    margin-right: 5px;
}

.case-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 10px;
}

.case-outcome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 8px;
    margin-top: auto;
}

.case-outcome .outcome-label {
    color: #10b981;
    font-size: 1rem;
}

.case-outcome .outcome-text {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 500;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 40px;
}

.pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none all 0.;
    transition:3s ease;
}

.pagination .page-link:hover {
    color: #059669;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    border-color: #e2e8f0;
    color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 991px) {
    .cases-list-section .row > .col-lg-3 {
        padding-right: 15px;
        margin-bottom: 30px;
    }

    .cases-list-section .row > .col-lg-9 {
        padding-left: 15px;
    }

    .ai-case-header {
        padding: 40px 0;
    }

    .ai-case-title {
        font-size: 2rem;
    }

    .intro-card {
        padding: 30px 20px;
    }

    .intro-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .stats-box {
        flex-direction: column;
    }

    .stat-item {
        min-width: 100%;
    }
}
