/* 全局样式 Global Styles */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #3a75c4;
    --primary-light: #7fb5f5;
    --accent-color: #ffd166;
    --text-color: #2c3e50;
    --background-color: #e8f4fc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: radial-gradient(var(--primary-light) 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
}

/* 语言选择器 Language Selector */
#language-selector {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 5px 10px;
    background-color: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

.lang-btn.active {
    background-color: var(--primary-color);
}

/* 页眉 Header */
header {
    background-color: var(--primary-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 0 var(--primary-dark);
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* 游戏区域 Game Section */
.game-section {
    text-align: center;
    padding: 20px;
}

h1 {
    margin-bottom: 30px;
    color: var(--primary-dark);
    font-size: 2rem;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin: 0 auto;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

/* 内容区域 Content Sections */
section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

/* 游戏特点 Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

/* 游戏截图 Screenshots */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.screenshot {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* 玩家评价 Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* 常见问题 FAQ */
.faq-item {
    margin-bottom: 30px;
}

.faq-question {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-answer {
    padding-left: 20px;
}

/* 页脚 Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: white;
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--primary-light);
    font-size: 12px;
}

.copyright a {
    color: white;
    text-decoration: none;
}

/* 响应式设计 Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav li {
        margin: 0 10px;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .game-container {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    
    nav li {
        margin: 5px;
    }
    
    nav a {
        font-size: 12px;
    }
    
    #language-selector {
        position: static;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .game-container {
        padding-bottom: 100%; /* Make game more square on small devices */
    }
} 