/* 轮播图样式设计 */

/* 轮播图容器 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    margin-bottom: 30px;
}

/* 轮播图轨道 */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* 轮播图幻灯片 */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
}

/* 幻灯片内容 */
.slide-content {
    max-width: 600px;
    z-index: 2;
}

.slide-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: slideInUp 0.8s ease-out;
}

.slide-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.slide-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1e40af;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #1e40af;
}

/* 幻灯片背景装饰 */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

/* 幻灯片1 - 工资管理 */
.slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-1 .slide-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" fill="rgba(255,255,255,0.1)">¥</text></svg>');
}

/* 幻灯片2 - 考勤管理 */
.slide-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide-2 .slide-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" fill="rgba(255,255,255,0.1)">📅</text></svg>');
}

/* 幻灯片3 - 员工管理 */
.slide-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide-3 .slide-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" fill="rgba(255,255,255,0.1)">👥</text></svg>');
}

/* 幻灯片4 - 数据报表 */
.slide-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.slide-4 .slide-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" fill="rgba(255,255,255,0.1)">📊</text></svg>');
}

/* 导航按钮 */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: #ffd700;
    border-color: #fff;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 左右箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 自动播放指示器 */
.carousel-autoplay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.autoplay-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.autoplay-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.autoplay-toggle.active {
    background: rgba(255, 215, 0, 0.3);
    color: #1e40af;
}

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

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    width: 0%;
    transition: width 0.1s linear;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .slide-title {
        font-size: 2em;
    }
    
    .slide-description {
        font-size: 1em;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .slide-title {
        font-size: 1.5em;
    }
    
    .slide-description {
        font-size: 0.9em;
    }
    
    .slide-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .carousel-nav {
        bottom: 10px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* 加载动画 */
.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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