/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #4caf50 0%, #2d8f47 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    background: url('./images/top_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 0 2rem 0 4rem;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4caf50;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.game-preview {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 200px;
}

.tile {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tile:hover {
    transform: scale(1.05);
}

/* Game Background Section */
.game-background {
    padding: 80px 0;
    background: white;
}

.game-background h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
}

.description-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.subsections-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.background-subsection {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.background-subsection:hover {
    transform: translateY(-5px);
    border-color: #4caf50;
}

.background-subsection h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #4caf50;
    font-weight: bold;
    text-align: left;
}

.background-subsection p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
    margin-left: 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #4caf50;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: white;
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}

.screenshot-placeholder {
    background: linear-gradient(45deg, #4caf50, #2d8f47);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* How to Play Section */
.how-to-play {
    padding: 80px 0;
    background: #f8f9fa;
}

.how-to-play h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.how-to-play p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    background: linear-gradient(135deg, #4caf50, #2d8f47);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Proven Benefits Section */
.proven-benefits {
    padding: 80px 0;
    background: white;
}

.proven-benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid #e0e0e0;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #4caf50;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #4caf50 0%, #2d8f47 100%);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 3rem;
}

.btn-download {
    background: #ff6b6b;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    animation: breathe 2s ease-in-out infinite;
}

.btn-download:hover {
    background: #ff5252;
    transform: translateY(-2px);
    animation-play-state: paused;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-info a {
    color: #ffd700;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 0 60px;
        min-height: 60vh;
        justify-content: space-between;
    }
    
    .hero-content {
        margin: 0 0 2rem 0;
        padding: 2rem 1rem;
    }
    
    .hero-image {
        /* 保持默认顺序，图片在内容下方 */
    }
    
    .hero-image img {
        max-height: 50vh;
    }
    
    .hero-content {
        margin: 0 auto 2rem;
        padding: 2rem 1.5rem;
        max-width: 90%;
        text-align: center;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(15px);
        position: relative;
        z-index: 2;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        padding: 12px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .download-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .game-background h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .description-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .subsections-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .background-subsection {
        padding: 1.5rem;
    }
    
    .background-subsection h3 {
        font-size: 1.5rem;
    }
    
    .background-subsection p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 40px;
        min-height: 50vh;
    }
    
    .hero::before {
        height: 35%;
        opacity: 0.6;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }
    
    .hero-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        gap: 0.6rem;
    }
    
    .btn {
        width: 180px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .tile-grid {
        width: 150px;
    }
    
    .tile {
        padding: 15px;
        font-size: 1.5rem;
    }
    
    .game-background h2 {
        font-size: 1.8rem;
    }
    
    .description-intro {
        font-size: 1rem;
    }
    
    .background-subsection {
        padding: 1rem;
    }
    
    .background-subsection h3 {
        font-size: 1.3rem;
    }
    
    .background-subsection p {
        font-size: 0.95rem;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .hero {
        padding: 100px 0 30px;
        min-height: 45vh;
    }
    
    .hero::before {
        height: 30%;
        opacity: 0.5;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .hero-content {
        padding: 1.2rem 0.8rem;
        max-width: 98%;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 160px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
}
