/**
 * ALEStore 自定义样式
 * 补充 Tailwind CSS 未包含的样式
 */

/* ============================================================================
   链接样式重置
   ============================================================================ */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* ============================================================================
   全局圆角统一
   ============================================================================ */

.rounded-xl {
    border-radius: 20px !important;
}

.rounded-lg {
    border-radius: 16px !important;
}

.rounded-2xl {
    border-radius: 24px !important;
}

/* ============================================================================
   Stripe风格按钮
   ============================================================================ */

.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: #635BFF;
    color: white;
    font-weight: 500;
    border-radius: 12px !important;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(99, 91, 255, 0.25);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #5851E8;
}

.btn-primary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #374151;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 12px !important;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-secondary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.5);
}

/* ============================================================================
   Stripe风格卡片
   ============================================================================ */

.card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ============================================================================
   状态徽章
   ============================================================================ */

.badge-success {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fef3c7;
    color: #92400e;
}

.badge-error {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fee2e2;
    color: #991b1b;
}

/* ============================================================================
   导航栏样式
   ============================================================================ */

.nav-blur {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo-icon {
    transition: all 0.3s;
}

.nav-logo:hover .nav-logo-icon {
    transform: rotate(10deg);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: #3b82f6;
}

.nav-link.active::before {
    width: 80%;
}

.nav-btn-login {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    color: #6b7280;
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
    z-index: -1;
}

.nav-btn-login:hover {
    color: #3b82f6;
}

.nav-btn-login:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-btn-register {
    padding: 0.625rem 1.75rem;
    font-weight: 600;
    color: white;
    background: #3b82f6;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-btn-register:hover::before {
    width: 300px;
    height: 300px;
}

.nav-btn-register:active {
    transform: translateY(0);
}

.mobile-menu-btn {
    padding: 0.5rem;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.mobile-menu-btn svg {
    transition: transform 0.3s;
}

.mobile-menu-btn.active svg {
    transform: rotate(90deg);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover {
    background: #f9fafb;
    color: #3b82f6;
    border-left-color: #3b82f6;
    padding-left: 2rem;
}

.nav-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ============================================================================
   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-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-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-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-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%;
}

/* ============================================================================
   响应式
   ============================================================================ */

@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;
    }
}
