/**
 * ALEStore - 首页样式
 */

/* Banner轮播容器 */
.banner-slider {
    position: relative;
    width: 100%;
    height: 556px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: auto;  /* 保持图片原始大小，不缩放 */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner遮罩层 - 让文字更清晰 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

/* Banner文字内容 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-content h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 auto 1.5rem;
}

.banner-content p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0 auto 2rem;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Banner指示器 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.banner-indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Banner导航按钮 */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.banner-nav.prev {
    left: 30px;
}

.banner-nav.next {
    right: 30px;
}

.banner-nav svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
}

/* 特性卡片动画 */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px !important;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .icon-wrapper {
    transition: all 0.3s;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* 游戏卡片 */
.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

/* 定价卡片 */
.pricing-card {
    position: relative;
    transition: all 0.3s;
    border-radius: 20px !important;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

/* 统计数字动画 */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 脉冲动画 */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* 响应式 */
@media (max-width: 768px) {
    .banner-slider {
        height: 300px;
        border-radius: 12px;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
    }
    
    .banner-nav.prev {
        left: 15px;
    }
    
    .banner-nav.next {
        right: 15px;
    }
    
    .banner-indicators {
        bottom: 15px;
    }
}
