/* PLM Banner轮播样式 */

/* 可切换Banner区样式 */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #1D2129;
    border-radius: 0;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* 根据不同的banner设置不同的背景主题色 */
.carousel-slide[data-color="design"] {
    background: linear-gradient(135deg, 
        rgba(87, 117, 232, 0.9) 0%,
        rgba(142, 197, 252, 0.85) 100%);
}

.carousel-slide[data-color="material"] {
    background: linear-gradient(135deg, 
        rgba(0, 185, 107, 0.9) 0%,
        rgba(153, 229, 184, 0.85) 100%);
}

.carousel-slide[data-color="production"] {
    background: linear-gradient(135deg, 
        rgba(255, 169, 65, 0.9) 0%,
        rgba(255, 212, 153, 0.85) 100%);
}

.carousel-slide[data-color="analytics"] {
    background: linear-gradient(135deg, 
        rgba(147, 112, 219, 0.9) 0%,
        rgba(203, 195, 227, 0.85) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: slideUpFade 0.8s ease 0.3s both;
}

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

.slide-label {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1677FF;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 20px;
    animation: fadeInScale 0.5s ease 0.5s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1D2129;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInScale 0.5s ease 0.7s both;
}

.slide-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInScale 0.5s ease 0.9s both;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    animation: fadeInScale 0.5s ease 1.1s both;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-size: 400px 400px;
    background-repeat: repeat;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400px 400px;
    }
}

.design-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.4) 2px, transparent 2px);
}

.material-pattern {
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.2) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.2) 75%);
    background-size: 100px 100px;
}

.production-pattern {
    background-image: 
        repeating-linear-gradient(0deg, 
            rgba(255, 255, 255, 0.2), 
            rgba(255, 255, 255, 0.2) 1px, 
            transparent 1px, 
            transparent 20px),
        repeating-linear-gradient(90deg, 
            rgba(255, 255, 255, 0.2), 
            rgba(255, 255, 255, 0.2) 1px, 
            transparent 1px, 
            transparent 20px);
}

.analytics-pattern {
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* 控制按钮样式 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev svg,
.carousel-next svg {
    width: 24px;
    height: 24px;
    color: #1D2129;
}

/* 指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
    padding: 0 20px;
}

.indicator {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.indicator:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(22, 119, 255, 0.1) 0%,
        rgba(22, 119, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator:hover:before {
    opacity: 1;
}

.indicator.active {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.indicator.active:before {
    opacity: 1;
}

.indicator-label {
    position: relative;
    z-index: 1;
    color: #1D2129;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 进度条样式 */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #fff;
    transition: width 0.1s linear;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .hero-carousel {
        height: 500px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-subtitle {
        font-size: 1.125rem;
    }
    
    .indicator {
        min-width: 100px;
    }
}

@media (max-width: 767px) {
    .hero-carousel {
        height: 400px;
        border-radius: 0;
    }
    
    .slide-content {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .slide-label {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .slide-title {
        font-size: 2.25rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-indicators {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .indicator {
        min-width: 80px;
        padding: 6px 12px;
    }
    
    .indicator-label {
        font-size: 0.75rem;
    }
}
