/* 合作客户页面专用样式 */

/* 页面横幅 */
.page-banner {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(70, 130, 180, 0.75) 100%), 
                url('../content/images/Cooperation.jpg') center/cover;
    color: white;
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}



.page-banner .container {
    position: relative;
    z-index: 2;
    text-align: left !important;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: left !important;
    padding-left: 20px;
    padding-top: 40px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: left !important;
    padding-left: 20px;
}

/* 客户统计 */
.client-stats {
    padding: 80px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: left;
}

.stat-item {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* 客户分类 */
.client-categories {
    padding: 80px 0;
}

.category-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #1e3c72;
    background: transparent;
    color: #1e3c72;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: #1e3c72;
    color: white;
}

/* 客户网格 */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

.clients-grid.loading {
    opacity: 0.5;
}

/* 客户卡片显示/隐藏状态 */
.client-card.hidden {
    display: none;
}

.client-card.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.client-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    border: 1px solid #eee;
    opacity: 0; /* 初始状态隐藏，避免闪屏 */
    transform: translateY(30px);
    animation: none; /* 禁用默认动画，由JS控制 */
}

.client-card.card-hover {
    transform: translateY(-10px) scale(1.02);
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.client-logo {
    text-align: left;
    margin-bottom: 20px;
}

.client-logo {
    /* 给Logo容器添加固定尺寸和背景色作为占位符 */
    min-width: 160px;
    min-height: 80px;
    background-color: #f8f9fa;
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.client-logo img {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0; /* 初始透明 */
    transition: opacity 0.3s ease-in-out, filter 0.3s ease;
}

.client-logo img.loaded {
    opacity: 1; /* 图片加载完成后显示 */
}

.client-card:hover .client-logo img {
    filter: grayscale(0%);
}

.client-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e3c72;
}

.client-type {
    display: inline-block;
    background: #1e3c72;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.client-industry {
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

.client-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.services-provided {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.service-tag {
    background: #f0f4f8;
    color: #1e3c72;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.service-years {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 客户评价 */
.client-testimonials {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    display: none;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    text-align: center;
}

.quote-icon {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: #1e3c72;
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

/* 轮播相关样式 */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    min-height: 300px; /* 确保容器有足够高度 */
}

.testimonial {
    position: absolute;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
}

/* 控制按钮样式 */
.testimonial-control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-control-btn:hover {
    background-color: #bbb;
    transform: scale(1.1);
}

.testimonial-control-btn.active {
    background-color: #1e3c72;
    transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .testimonials-slider {
        min-height: 350px;
    }
}

.testimonial-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonial-btn.active {
    background: #1e3c72;
}

/* 成功案例 */
.success-cases {
    padding: 80px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0; /* 初始状态隐藏，避免闪屏 */
    transform: translateY(30px);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 60, 114, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-overlay h3 {
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.case-content {
    padding: 30px;
}

.case-content h4 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.case-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.case-details p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.case-btn {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.case-btn:hover {
    background: #2a5298;
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
    background: #f8f9fa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
}

.partner-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

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

.partner-item img {
    max-width: 150px;
    max-height: 75px;
    object-fit: contain;
    transition: all 0.3s ease;
}



/* 响应式设计 */
@media (max-width: 1024px) {
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 30px;
    }
    
    .clients-grid,
    .cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 100px 0 60px;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .client-stats,
    .client-categories,
    .client-testimonials,
    .success-cases,
    .partners {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .clients-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .client-card,
    .case-card {
        padding: 20px;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partner-item {
        padding: 15px;
    }
    
    .partner-item img {
        max-width: 100px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        padding: 80px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
    }
    
    .clients-grid,
    .cases-grid {
        gap: 15px;
    }
    
    .client-logo img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .services-provided {
        gap: 5px;
    }
    
    .service-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 打印样式 */
@media print {
    .page-banner {
        background: #1e3c72 !important;
        color: white !important;
    }
    
    .client-card,
    .case-card,
    .testimonial {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .tab-btn {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
    }
    
    .tab-btn.active {
        background: #1e3c72 !important;
        color: white !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .client-card,
    .case-card,
    .testimonial {
        border: 2px solid #000;
    }
    
    .tab-btn {
        border-width: 3px;
    }
    
    .service-tag {
        border: 1px solid #1e3c72;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    .client-card,
    .case-card,
    .partner-item,
    .stat-item {
        transition: none;
    }
    
    .client-card:hover,
    .case-card:hover,
    .partner-item:hover,
    .stat-item:hover {
        transform: none;
    }
    
    .client-logo img,
    .case-image img,
    .partner-item img {
        transition: none;
    }
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 防止页面初始加载时的闪烁 - 修复过度隐藏问题 */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.loading {
    opacity: 0;
}