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

:root {
    --primary-color: #007AFF;
    --primary-hover: #0066CC;
    --background-color: #f5f5f7;
    --text-color: #1d1d1f;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* 导航栏样式 */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 游戏容器样式 */
.game-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative;
}

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

/* 全屏模式样式 */
#gameFrame:fullscreen {
    background: #000;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameFrame:fullscreen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#gameFrame:-webkit-full-screen {
    background: #000;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameFrame:-webkit-full-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#gameFrame:-ms-fullscreen {
    background: #000;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameFrame:-ms-fullscreen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 全屏按钮样式 */
#fullscreenBtn {
    transition: all 0.3s ease;
    z-index: 1000;
}

#fullscreenBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#fullscreenBtn svg {
    transition: transform 0.3s ease;
}

#fullscreenBtn:hover svg {
    transform: scale(1.1);
}

/* 按钮样式 */
.primary-button {
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.primary-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .game-container {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

/* 游戏区域响应式调整 */
@media (max-width: 640px) {
    .game-container {
        padding: 0.5rem;
    }
    
    #fullscreenBtn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
} 