@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Custom Properties */
:root {
    --primary-color: #fbbf24;
    --secondary-color: #1f2937;
    --accent-color: #4b5563;
    --game-accent: #ff6b00;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #111827;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Custom font for pixel-style text */
@font-face {
    font-family: 'Pixel';
    src: url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
}

/* Pixel Font for Logo and Headings */
.font-pixel {
    font-family: 'Press Start 2P', cursive;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* Card Styles */
.screenshot-card, .feature-card, .review-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-card:hover, .feature-card:hover, .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Game Container */
.game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--game-accent);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 100;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    border: none;
}

.fullscreen-btn:hover {
    transform: scale(1.05);
    background-color: #e55a00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .game-container {
        height: 50vh;
    }
    
    .feature-card, .review-card {
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Selector */
.language-selector {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--accent-color);
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 5;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Section Styles */
section {
    padding: 2rem 0;
    position: relative;
}

/* Animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Press Start 2P', cursive;
    color: var(--game-accent);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Button Styles */
button {
    background-color: var(--game-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #e55a00;
}

/* Feature Card Styles */
.feature-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Review Card Styles */
.review-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--game-accent);
}

/* Language selector styling */
#language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    padding: 8px 12px;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
}

#language-select:hover {
    background: rgba(255, 255, 255, 0.15);
}

#language-select option {
    background-color: #1a1a1a;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    padding: 8px;
}

/* Staggered animation delay for cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 修复iframe加载问题 */
.game-frame-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 确保内容区域正确显示 */
.info-section .container {
    opacity: 1;
    visibility: visible;
}

/* 修复滚动问题 */
html, body {
    scroll-behavior: smooth;
}

/* 确保游戏区域正确显示 */
.game-section {
    min-height: 100vh;
}

/* 修复图片加载失败问题 */
.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #1a1a1a;
}

/* 修复滚动指示器样式 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.scroll-indicator:after {
    content: "↓";
    display: block;
    font-size: 20px;
    margin-top: 5px;
}

/* Development Team Section */
.team-section {
    padding: 80px 0;
    background: var(--background-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--game-accent);
}

.team-role {
    color: var(--game-accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'Press Start 2P', cursive;
}

.team-desc {
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-card {
        padding: 20px;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .team-desc {
        font-size: 0.9rem;
    }
}

/* How to Play Section Styles */
.how-to-play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.how-to-play-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.how-to-play-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.card-title {
    color: var(--game-accent);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
}

/* Controls Styles */
.control-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.control-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.key {
    background: var(--game-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    min-width: 80px;
    text-align: center;
}

.key-desc {
    color: #ffffff;
    font-size: 0.9rem;
}

/* Objectives Styles */
.objective-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.objective-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.objective-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.objective-desc {
    color: #ffffff;
    font-size: 0.9rem;
}

/* Tips Styles */
.tip-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tip-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.tip-desc {
    color: #ffffff;
    font-size: 0.9rem;
}

/* Responsive Design for How to Play Section */
@media (max-width: 768px) {
    .how-to-play-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .how-to-play-card {
        padding: 20px;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .key {
        font-size: 0.7rem;
        min-width: 60px;
    }

    .key-desc, .objective-desc, .tip-desc {
        font-size: 0.8rem;
    }
}

/* Game Screenshots Section Styles */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.screenshot-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.3);
}

.screenshot-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.screenshot-card:hover .screenshot-image img {
    transform: scale(1.05);
}

.screenshot-caption {
    padding: 15px;
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 107, 0, 0.2);
}

/* Responsive Design for Screenshots */
@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .screenshot-image {
        height: 180px;
    }
    
    .screenshot-caption {
        font-size: 0.8rem;
        padding: 12px;
    }
}

/* Game History Section Styles */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.history-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.history-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--game-accent);
}

.history-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.history-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--game-accent);
    margin-bottom: 1rem;
}

.history-desc {
    color: #fff;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .history-card {
        padding: 1.5rem;
    }
}

/* Player Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.review-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background-color: #ff6b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-name {
    font-family: 'Press Start 2P', cursive;
    color: #ff6b00;
    margin: 0;
    font-size: 14px;
    margin-bottom: 5px;
}

.review-rating {
    color: #ffd700;
    font-size: 14px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    font-size: 14px;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .reviewer-name {
        font-size: 12px;
    }
    
    .review-rating {
        font-size: 12px;
    }
    
    .review-text {
        font-size: 12px;
    }
}

/* Logo Styles */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
}

.pixel-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    color: var(--accent-color);
}

.bike-icon {
    font-size: 2.5rem;
}

.logo-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
}

.page-title {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-light);
    font-family: 'Press Start 2P', cursive;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .pixel-logo {
        font-size: 1.5rem;
    }

    .bike-icon {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* Adjust header padding for logo */
.page-header {
    padding: 2rem;
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-description {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
        margin-bottom: 12px;
        padding: 0 15px;
    }
    
    .page-description {
        font-size: 14px;
        padding: 0 15px;
    }
} 