/* 轮播图样式 */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 80px;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: 650px;
}

.carousel-track {
    position: relative;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.carousel-slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02); /* 轻微放大，避免边缘出现空白 */
    transition: transform 8s ease; /* 缓慢的放大效果 */
}

.carousel-slide:hover img {
    transform: scale(1.08); /* 鼠标悬停时进一步放大 */
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 60%, transparent);
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-slide.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.carousel-caption p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.carousel-caption .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s, 
                background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.carousel-slide.active .carousel-caption h2,
.carousel-slide.active .carousel-caption p,
.carousel-slide.active .carousel-caption .btn {
    opacity: 1;
    transform: translateY(0);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.carousel-container:hover .carousel-button {
    opacity: 1;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #fff;
    width: 30px;
    border-radius: 10px;
    transform: scale(1.1);
}

/* 企业文化轮播图样式 */
.culture-slider {
    position: relative;
    max-width: 100%;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.culture-track {
    position: relative;
    height: 450px;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.culture-slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: #fff;
}

.culture-image {
    flex: 1;
    overflow: hidden;
}

.culture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.culture-slide:hover .culture-image img {
    transform: scale(1.05);
}

.culture-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.culture-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.culture-content h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #a3cfec);
    bottom: -10px;
    left: 0;
}

.culture-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.culture-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    border: none;
    border-radius: 50%;
    color: #3498db;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.culture-button:hover {
    background-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.culture-button.prev {
    left: 20px;
}

.culture-button.next {
    right: 20px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-container {
        height: 550px;
    }
    
    .carousel-caption {
        padding: 40px;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
    
    .culture-slide {
        flex-direction: column;
        height: auto;
    }
    
    .culture-track {
        height: 700px;
    }
    
    .culture-image, .culture-content {
        flex: none;
        width: 100%;
    }
    
    .culture-image {
        height: 300px;
    }
    
    .culture-content {
        height: 400px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 450px;
        margin-bottom: 60px;
    }
    
    .carousel-caption {
        padding: 30px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .culture-track {
        height: 600px;
    }
    
    .culture-image {
        height: 200px;
    }
    
    .culture-content {
        height: 400px;
        padding: 25px;
    }
    
    .culture-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        height: 400px;
        margin-bottom: 40px;
    }
    
    .carousel-caption {
        padding: 25px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
    
    .culture-track {
        height: 500px;
    }
    
    .culture-image {
        height: 180px;
    }
    
    .culture-content {
        height: 320px;
        padding: 20px;
    }
    
    .culture-content h3 {
        font-size: 1.5rem;
    }
    
    .culture-content p {
        font-size: 1rem;
    }
} 