/* 自定义样式补充Tailwind CSS */

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 美化iframe游戏容器 */
@media (max-width: 768px) {
    .aspect-video {
        aspect-ratio: 16 / 9;
        height: 50vh;
    }
}

/* 移动端导航按钮 */
@media (max-width: 768px) {
    header nav {
        position: relative;
    }
    
    header nav::after {
        content: "☰";
        position: absolute;
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
        color: #007AFF;
        cursor: pointer;
    }
}

/* 改善游戏标题在移动设备上的可读性 */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
}

/* 添加一些动画效果 */
.transition {
    transition: all 0.3s ease-in-out;
}

a:hover {
    transform: translateY(-2px);
}

/* 加载过渡动画 */
body {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 改善文本可读性 */
p, li {
    line-height: 1.7;
}

/* 美化游戏区域 */
#game .aspect-video {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

#game .aspect-video:hover {
    transform: translateY(-5px);
}

/* 美化游戏区域的提示文本 */
#game .text-apple-gray {
    font-style: italic;
} 