.page-header .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
/* 提升标题在亮背景图上的可读性 */
.page-header h1,
.page-header p {
    display: inline-block;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 16px;
    border-radius: 8px;
}
/* 页面标题 */
.page-header {
    background: url('../案例介绍/案例介绍.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px 80px;
    margin-top: 70px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.page-header .container {
    position: relative;
    z-index: 1;
}
/* 案例统计 */
.case-stats {
    background: #f8f9fa;
    padding: 60px 0;
}

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

.stat-item {
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    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: bold;
    color: #d8b43d;
    margin-bottom: 10px;
    display: block;
}

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

/* 案例分类 */
.case-categories {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #d8b43d;
    background: transparent;
    color: #d8b43d;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: #d8b43d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 180, 61, 0.3);
}

/* 案例列表 */
.cases-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.case-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

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

.case-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.case-image {
    background: linear-gradient(135deg, #d8b43d, #e7d05e);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-image i {
    font-size: 4rem;
    color: white;
    z-index: 1;
    position: relative;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-case-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-case-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.case-content {
    padding: 30px;
}

.case-tag {
    display: inline-block;
    background: #fdf8e8;
    color: #d8b43d;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.case-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.3;
}

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

.case-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-results {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #d8b43d;
}

.case-results h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.case-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.case-results li {
    color: #666;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.case-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

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

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.testimonial-item {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

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

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #d8b43d;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 数字动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        min-height: 260px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-content {
        padding: 25px;
    }
    
    .case-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        min-height: 220px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-image {
        height: 150px;
    }
    
    .case-image i {
        font-size: 3rem;
    }
    
    .testimonials h2 {
        font-size: 1.8rem;
    }
}

/* 学校卡片样式 */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.school-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.school-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.school-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.view-images-btn {
    background: linear-gradient(135deg, #d8b43d, #e7d05e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-images-btn:hover {
    background: linear-gradient(135deg, #c7a332, #d6c24d);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(216, 180, 61, 0.3);
}

/* 学校缩略图网格 */
.school-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: -10px -10px 16px; /* 轻微扩展，形成边到边的视觉感 */
    border-radius: 12px;
    overflow: hidden;
}

.school-thumbs img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* 控制高度，过多缩略图时内部滚动 */
.school-thumbs {
    max-height: 200px;
    overflow: hidden;
}

.school-card:hover .school-thumbs {
    max-height: 260px;
}

/* 图片画廊模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 95vw;
    width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.image-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1.02);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    color: #d8b43d;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* 学校卡片动画 */
.school-card {
    animation: fadeInUp 0.6s ease;
}

.school-card:nth-child(1) { animation-delay: 0.1s; }
.school-card:nth-child(2) { animation-delay: 0.2s; }
.school-card:nth-child(3) { animation-delay: 0.3s; }
.school-card:nth-child(4) { animation-delay: 0.4s; }
.school-card:nth-child(5) { animation-delay: 0.5s; }
.school-card:nth-child(6) { animation-delay: 0.6s; }
.school-card:nth-child(7) { animation-delay: 0.7s; }
.school-card:nth-child(8) { animation-delay: 0.8s; }
.school-card:nth-child(9) { animation-delay: 0.9s; }
.school-card:nth-child(10) { animation-delay: 1.0s; }
.school-card:nth-child(11) { animation-delay: 1.1s; }
.school-card:nth-child(12) { animation-delay: 1.2s; }
.school-card:nth-child(13) { animation-delay: 1.3s; }
.school-card:nth-child(14) { animation-delay: 1.4s; }
.school-card:nth-child(15) { animation-delay: 1.5s; }
.school-card:nth-child(16) { animation-delay: 1.6s; }
.school-card:nth-child(17) { animation-delay: 1.7s; }

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

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .modal-content {
        width: 1400px;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 25px;
    }
}

/* 响应式设计更新 */
@media (max-width: 1024px) {
    .modal-content {
        width: 90vw;
        max-width: 90vw;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .schools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .school-card {
        padding: 25px;
    }
    
    .school-card h3 {
        font-size: 1.1rem;
    }
    
    .modal-content {
        width: 95vw;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .school-card {
        padding: 20px;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .image-item img {
        height: 150px;
    }
} 