/* Global Styles */
:root {
    --primary-color: #ff6b00;
    --secondary-color: #ff8533;
    --text-color: #333;
    --background-color: #fff;
    --card-background: #fff;
    --border-radius: 10px;
    --section-padding: 2rem 1.2rem;
    --content-width: 85%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header Styles */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.language-selector {
    position: relative;
}

.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: 2px solid var(--primary-color);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.language-selector::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.language-selector select:hover {
    background: var(--primary-color);
    color: white;
}

.language-selector select:hover + .language-selector::after {
    color: white;
}

.language-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* Main Content Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    width: var(--content-width);
}

/* Game Container */
.game-container {
    width: 100%;
    height: 75vh;
    position: relative;
    margin: 2rem auto;
}

.game-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Comic Neue', cursive;
    z-index: 1000;
}

/* Features Section */
.game-features {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
}

.game-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--card-background);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(15deg);
}

/* How to Play Section */
.how-to-play {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #fff 0%, #fff5eb 100%);
    position: relative;
    margin: 2rem auto;
}

.how-to-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.instructions {
    max-width: 600px;
    margin: 1.2rem auto;
}

.instructions p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Reviews Section */
.player-reviews {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    position: relative;
    margin: 2rem auto;
}

.player-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.review-card {
    background: var(--card-background);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 2.5rem;
}

.review-card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.review-card span {
    font-size: 1rem;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

/* Screenshots Section */
.game-screenshots {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, #fff, #fff5eb);
    margin: 2rem auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 320px;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.screenshot-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    background: #f5f5f5;
    padding: 0.2rem;
}

.screenshot-card:hover img {
    transform: scale(1.02);
}

.screenshot-info {
    padding: 1.5rem;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.screenshot-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.screenshot-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem;
    text-align: center;
}

footer p {
    font-size: 1.1rem;
}

.footer-content a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

/* Typography */
h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

h2 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Why Players Love Section */
.why-players-love {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #fff 0%, #fff5eb 100%);
    position: relative;
    margin: 2rem auto;
}

.why-players-love::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.love-card {
    background: var(--card-background);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid var(--primary-color);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.love-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.love-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.love-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.love-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.love-card:hover .love-icon {
    transform: scale(1.1);
}

/* More Reviews Section */
.more-reviews {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    position: relative;
    margin: 2rem auto;
}

.more-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: var(--card-background);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 2.5rem;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.testimonial-card span {
    font-size: 1rem;
}

.testimonial-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.rating {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

/* Cube Icon Styles */
.cube-icon {
    font-size: 2.5rem;
    color: white;
    margin-right: 1rem;
    animation: float 3s ease-in-out infinite;
}

.logo {
    display: flex;
    align-items: center;
}

/* Cube Decorations */
.cube-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1;
}

.cube-decoration.left {
    left: 1rem;
}

.cube-decoration.right {
    right: 1rem;
}

.cube-decoration i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.6;
    animation: rotate 4s linear infinite;
}

.cube-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.cube-decoration i:nth-child(3) {
    animation-delay: 1s;
}

/* Fullscreen Button */
.fullscreen-btn i {
    margin-right: 0.5rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 1.5rem 1rem;
        --content-width: 95%;
    }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .language-selector select {
        width: 100%;
        margin-top: 1rem;
    }

    .game-container {
        height: 50vh;
    }

    .features-grid,
    .reviews-grid,
    .screenshots-grid,
    .love-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .screenshot-card {
        height: auto;
    }

    .screenshot-card img {
        height: 180px;
    }

    .screenshot-info {
        padding: 1.2rem;
        min-height: 100px;
    }

    .love-card,
    .testimonial-card {
        min-height: auto;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 1rem;
    }

    .feature-card p,
    .instructions p,
    .review-card p,
    .screenshot-info p,
    .love-card p,
    .testimonial-card p,
    footer p {
        font-size: 1rem;
    }

    .review-card span,
    .testimonial-card span {
        font-size: 0.95rem;
    }

    .feature-icon,
    .love-icon {
        font-size: 1.8rem;
    }

    .quote-icon,
    .testimonial-icon {
        font-size: 1.2rem;
    }

    h2 i {
        font-size: 1.2rem;
    }

    h3 i {
        font-size: 1rem;
    }

    .cube-decoration {
        display: none;  /* 在移动端隐藏装饰性方块 */
    }

    .cube-icon {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 1.8rem;
    }
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
}

/* Game Stats in Header */
.game-stats {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.stat-item i {
    color: #ffd700;
}

/* Game Frame and Overlay */
.game-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.game-tip {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 107, 0, 0.9);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInOut 3s ease-in-out infinite;
}

/* Screenshot Badge */
.screenshot-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1;
}

/* Screenshot Stats */
.screenshot-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.screenshot-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.screenshot-stats i {
    color: var(--primary-color);
}

/* Feature Icon Wrapper */
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.feature-icon {
    color: white;
    font-size: 2rem;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-box i {
    font-size: 2rem;
    color: white;
}

.stat-box span {
    color: white;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-stats {
        display: none;
    }

    .game-tip {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .footer-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-box {
        flex-direction: row;
        gap: 1rem;
    }
} 