/* Global Styles */
:root {
    --primary-color: #ff3333;    /* 明亮的红色 */
    --secondary-color: #000000;  /* 黑色 */
    --accent-color: #0066ff;     /* 明亮的蓝色 */
    --text-color: #333333;       /* 深灰色文字 */
    --background-color: #ffffff; /* 白色背景 */
    --card-bg: rgba(0, 102, 255, 0.05); /* 淡蓝色背景 */
    --hover-color: #ff4d4d;      /* 悬停时的红色 */
    --gradient-start: rgba(0, 102, 255, 0.8); /* 渐变起始色 */
    --gradient-end: rgba(255, 51, 51, 0.8);   /* 渐变结束色 */
    --header-gradient: linear-gradient(45deg, #ff3333 0%, #0066ff 50%, #ff3333 100%); /* 头部渐变 */
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%); /* 卡片渐变 */
    --footer-gradient: linear-gradient(45deg, #ff3333 0%, #0066ff 50%, #ff3333 100%); /* 底部渐变 */
    --neon-shadow: 0 0 10px rgba(0, 102, 255, 0.5), 0 0 20px rgba(255, 51, 51, 0.3); /* 霓虹阴影 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 51, 51, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
header {
    background: var(--header-gradient);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--neon-shadow);
    animation: headerGlow 3s infinite;
}

@keyframes headerGlow {
    0% { box-shadow: 0 0 10px rgba(0, 102, 255, 0.5), 0 0 20px rgba(255, 51, 51, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.7), 0 0 30px rgba(255, 51, 51, 0.5); }
    100% { box-shadow: 0 0 10px rgba(0, 102, 255, 0.5), 0 0 20px rgba(255, 51, 51, 0.3); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--background-color);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    50% { text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8); }
    100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
}

.logo h1 i {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
    color: var(--primary-color);
}

/* Language Selector */
.language-selector select {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--background-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 2rem 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.language-selector select:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Container */
.game-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--neon-shadow);
    background: var(--background-color);
}

.game-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(0, 102, 255, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--header-gradient);
    color: var(--background-color);
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fullscreen-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-shadow);
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-gradient);
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--header-gradient);
    opacity: 0.8;
}

h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

h2 i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Features Grid */
.features-grid,
.love-grid,
.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card,
.love-card,
.comment-card,
.instruction-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.love-card::before,
.comment-card::before,
.instruction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-gradient);
    opacity: 0.1;
   
    z-index: 0;
}

.feature-card:hover::before,
.love-card:hover::before,
.comment-card:hover::before,
.instruction-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover,
.love-card:hover,
.comment-card:hover,
.instruction-card:hover {
    opacity: 0.1; /* 保持与默认状态相同的透明度 */
}

.love-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* User Comments */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.user-info i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.rating {
    margin-top: 1rem;
    color: #ffd700;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--card-gradient);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
}

.review-card i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-card span {
    display: block;
    margin-top: 1rem;
    color: var(--accent-color);
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-gradient);
    border-radius: 12px;
    position: relative;
}

.screenshot-item {
    position: relative;
    border: 3px solid var(--accent-color);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.screenshot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.screenshot-item:hover::before {
    opacity: 0.2;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-shadow);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.1);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--gradient-start), var(--gradient-end));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-overlay p {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background: var(--footer-gradient);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--background-color);
    box-shadow: var(--neon-shadow);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content a {
    color: var(--background-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0;
}

.footer-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--background-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-content a:hover::after {
    transform: scaleX(1);
}

.footer-content p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .language-selector select {
        padding: 0.3rem 1.5rem 0.3rem 0.7rem;
        font-size: 0.9rem;
    }

    main {
        padding: 1rem;
    }

    .features-grid,
    .reviews-grid,
    .love-grid,
    .comments-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .feature-card,
    .love-card,
    .comment-card,
    .instruction-card {
        padding: 1.2rem;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px var(--accent-color); }
    50% { text-shadow: 0 0 20px var(--accent-color); }
    100% { text-shadow: 0 0 5px var(--accent-color); }
}

h2 i {
    animation: glow 2s infinite;
}

/* How to Play Section */
.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.instruction-card h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-card h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.instruction-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .instructions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
    
    .instruction-card h3 {
        font-size: 1.2rem;
    }
    
    .instruction-card p {
        font-size: 1rem;
    }
}

/* Why Players Love Section */
.why-players-love {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    position: relative;
}

.why-players-love::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 51, 51, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* User Comments Section */
.user-comments {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    position: relative;
}

.user-comments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 51, 51, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Game Screenshots Section */
.game-screenshots {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    position: relative;
}

.game-screenshots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 40% 40%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 51, 51, 0.1) 0%, transparent 50%);
    pointer-events: none;
} 