/* 游戏iframe容器高度比例 */
.aspect-w-16.aspect-h-9 {
    position: relative;
}

.aspect-w-16.aspect-h-9 > div {
    position: relative;
}

/* 修复tailwind未提供的内容 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 添加移动端输入框样式 */
input, select, textarea {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

/* 模态框样式 */
#game-modal, #category-modal {
    z-index: 50;
}

/* 提高响应式布局的可读性 */
@media (max-width: 640px) {
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .text-4xl {
        font-size: 1.75rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
}

/* 美化滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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