/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 基本样式 */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* 游戏容器样式 */
.game-container {
    aspect-ratio: 16/9;
    max-height: 70vh;
    height: 500px;
    position: relative;
}

.game-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border: none;
}

@media (max-width: 768px) {
    .game-container {
        aspect-ratio: 16/9;
        height: 50vh;
    }
}

/* 截断长文本 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 游戏卡片悬停效果 */
.game-card {
    transition: transform 0.2s ease-in-out;
}

.game-card:hover {
    transform: translateY(-5px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 移动设备适配 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 