/* 服务案例页面样式 */

/* 案例列表 */
.portfolio-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.portfolio-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-content {
    padding: 40px;
}

.portfolio-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.portfolio-client {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-industry {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.portfolio-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 30px;
}

.portfolio-results {
    background: var(--gray-50);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.portfolio-results h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.results-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.results-list li {
    color: var(--gray-600);
    font-size: 0.95rem;
    padding: 5px 0;
}

/* 客户评价 */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-card {
    background: var(--gray-50);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    color: var(--gray-600);
    line-height: 1.6;
    font-style: italic;
    font-size: 1.05rem;
}

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

.author-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.author-info span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* 案例统计 */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 40px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 成功案例详情 */
.case-details {
    padding: 80px 0;
    background: var(--gray-50);
}

.case-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.case-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.case-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.case-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .results-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-section,
    .testimonials-section,
    .stats-section,
    .case-details {
        padding: 60px 0;
    }
    
    .portfolio-content {
        padding: 30px 20px;
    }
    
    .portfolio-image {
        height: 200px;
        font-size: 3rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .case-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .case-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .portfolio-content {
        padding: 25px 15px;
    }
    
    .portfolio-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .testimonial-card {
        padding: 25px 15px;
    }
    
    .testimonial-card::before {
        top: 15px;
        left: 20px;
        font-size: 3rem;
    }
    
    .stat-card {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .stat-label {
        color: #3182ce;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    }
    
    .case-content {
        padding: 25px 15px;
    }
}

/* 增强的标签页样式 */
.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button i {
    font-size: 1.1rem;
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 内容头部样式 */
.content-header {
    text-align: center;
    margin-bottom: 40px;
}

.content-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.content-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin: 0;
}

/* 实施过程时间线 */
.process-timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 30px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 0;
    width: 30px;
    height: 30px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.marker-number {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f4f8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.timeline-text h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-text p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* 项目成果网格 */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f4f8;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.result-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.result-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
}

.result-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* 客户反馈网格 */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feedback-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f4f8;
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feedback-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.feedback-category i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.feedback-category h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.1rem;
}

.feedback-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.feedback-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    color: var(--gray-600);
    font-weight: 500;
}

/* 响应式设计增强 */
@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-timeline {
        padding-left: 20px;
    }
    
    .process-timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -27px;
        width: 25px;
        height: 25px;
    }
    
    .marker-number {
        font-size: 0.8rem;
    }
    
    .timeline-content {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-text h4 {
        font-size: 1.1rem;
    }
    
    .timeline-text p {
        font-size: 0.9rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tab-button i {
        font-size: 1rem;
    }
    
    .result-card,
    .feedback-card {
        padding: 20px;
    }
    
    .result-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .feedback-category i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .process-timeline {
        padding-left: 15px;
    }
    
    .process-timeline::before {
        left: 7px;
    }
    
    .timeline-marker {
        left: -22px;
        width: 20px;
        height: 20px;
    }
    
    .marker-number {
        font-size: 0.7rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .timeline-text h4 {
        font-size: 1rem;
    }
    
    .timeline-text p {
        font-size: 0.85rem;
    }
}
/* 核心优势团队样式 */
.team-bio {
    display: flex;
    flex-direction: column;
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
    margin-bottom: 8px; /* 替代 gap */
}

.expertise-item:last-child {
    margin-bottom: 0; /* 最后一个元素去掉底部间距 */
}

.checkmark {
    display: inline-block;
    width: 20px;
    text-align: left;
    margin-right: 8px;
    flex-shrink: 0;
}