/* 霓虹游戏平台样式 */

/* 基础样式 */
body {
    background-color: rgba(12, 12, 12, 0.98);
    background-image: 
        radial-gradient(circle at 25% 10%, rgba(99, 102, 241, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(244, 114, 182, 0.1) 0%, transparent 30%);
    min-height: 100vh;
}

/* 霓虹文字效果 */
.text-neon-blue {
    color: #6366f1;
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
}

.text-neon-pink {
    color: #f472b6;
    text-shadow: 0 0 5px rgba(244, 114, 182, 0.5);
}

/* 导航链接 */
.nav-link {
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6366f1;
    border-radius: 2px;
}

/* 游戏卡片样式 */
.game-card {
    perspective: 1000px;
    height: 300px;
    cursor: pointer;
}

.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.game-card:hover .game-card-inner {
    transform: rotateY(180deg);
}

.game-card-front,
.game-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.game-card-front {
    background-color: #1a1a1a;
    color: white;
}

.game-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.game-card-back {
    background-color: #1a1a1a;
    color: white;
    transform: rotateY(180deg);
    padding: 1.5rem;
}

.game-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.game-card p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.play-button {
    background-color: #6366f1;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
}

/* 分页控制样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination button {
    background-color: #1a1a1a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
    background-color: #2d2d2d;
}

.pagination span {
    color: #9ca3af;
    font-weight: 600;
}

/* 广告区域呼吸效果 */
.ad-container {
    position: relative;
    overflow: hidden;
}

.ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.5), rgba(244, 114, 182, 0.5)) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: borderBreath 3s infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes borderBreath {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.8;
    }
}

/* 按钮样式 */
.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(31, 41, 55, 0.5);
    color: white;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #6366f1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-card {
        height: 250px;
    }
    
    .game-card h3 {
        font-size: 1.25rem;
    }
    
    .game-card p {
        font-size: 0.75rem;
    }
}

/* 其他动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6366f1, #f472b6);
    border-radius: 3px;
}

/* 加载指示器 */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: loader-spin 1s linear infinite;
}

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