/* 方案一：卡片式轮播 */
.projects-carousel-v2 {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-viewport {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 calc((100% - 48px) / 3); /* 3张卡片，减去2个gap */
    min-width: 0;
}

@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 24px) / 2); /* 2张卡片 */
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%; /* 1张卡片 */
    }
}

.project-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f5f5f5;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-v2:hover .project-image-wrapper img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-v2:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #333;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card-v2:hover .view-project-btn {
    transform: translateY(0);
}

.project-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.project-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.project-location,
.project-capacity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator-dot.active {
    background: #f59e0b;
    width: 30px;
    border-radius: 5px;
}

.carousel-progress {
    max-width: 200px;
    height: 3px;
    background: #e0e0e0;
    margin: 1rem auto 0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #f59e0b;
    transition: width 0.3s ease;
    border-radius: 2px;
    width: 0%;
}
