/* 像素风格字体 */
@font-face {
    font-family: 'PixelFont';
    src: url('../fonts/pixel.ttf') format('truetype');
}

/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* 像素风格标题 */
.font-pixel {
    font-family: 'PixelFont', monospace;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
}

/* 语言选择器按钮 */
.lang-btn {
    padding: 4px 8px;
    border: 1px solid #4a5568;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #4a5568;
}

.lang-btn.active {
    background: #ecc94b;
    color: #000;
    border-color: #ecc94b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* 移动端导航菜单 */
    .mobile-menu {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
}

/* 游戏框架样式 */
.game-frame {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

.game-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 面包屑导航 */
.breadcrumb {
    background: #2d3748;
    padding: 0.5rem 1rem;
}

.breadcrumb a {
    color: #ecc94b;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 特色卡片 */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 页脚样式 */
footer {
    background: #2d3748;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 动画效果 */
@keyframes pixelPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo {
    animation: pixelPulse 2s infinite;
}

/* 导航栏点击效果 */
.nav-link {
    transition: all 0.3s ease;
    color: #ffffff;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link.active {
    color: #fbbf24 !important;
    font-weight: bold;
    border-bottom: 2px solid #fbbf24;
}

/* 像素风格logo */
.pixel-logo {
    font-family: 'PixelFont', monospace;
    font-size: 3.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        3px 3px 0 #000,
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        0 0 10px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 4px solid #000;
    box-shadow: 
        0 0 10px rgba(0,0,0,0.5),
        inset 0 0 10px rgba(0,0,0,0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.pixel-logo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    z-index: -1;
    opacity: 0.3;
    filter: blur(5px);
}

@keyframes glow {
    from {
        text-shadow: 
            3px 3px 0 #000,
            -3px -3px 0 #000,
            3px -3px 0 #000,
            -3px 3px 0 #000,
            0 0 10px rgba(0,0,0,0.5);
        box-shadow: 
            0 0 10px rgba(0,0,0,0.5),
            inset 0 0 10px rgba(0,0,0,0.5);
    }
    to {
        text-shadow: 
            3px 3px 0 #000,
            -3px -3px 0 #000,
            3px -3px 0 #000,
            -3px 3px 0 #000,
            0 0 20px rgba(255,107,107,0.8),
            0 0 30px rgba(78,205,196,0.8);
        box-shadow: 
            0 0 20px rgba(255,107,107,0.8),
            0 0 30px rgba(78,205,196,0.8),
            inset 0 0 20px rgba(255,107,107,0.8),
            inset 0 0 30px rgba(78,205,196,0.8);
    }
}

/* 全屏样式 */
.game-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1000;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.7);
} 