/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --accent-color: #FFEB3B;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #f8f8f8;
    --card-bg: #fff;
    --header-height: 70px;
    --section-spacing: 80px;
    --container-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-left: 180px;
    padding-right: 180px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

section {
    padding: var(--section-spacing) 0;
}

/* 按钮样式 */
.cta-button, .secondary-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--box-shadow);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 头部样式 */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.8rem;
}

.main-nav .nav-list {
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav .nav-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav .nav-list a:hover:after,
.main-nav .nav-list a.active:after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* 主体内容样式 */
main {
    padding-top: var(--header-height);
    max-width: 100%;
    overflow: hidden;
}

/* 英雄区域 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 18px;
}

/* 游戏区域 */
.game-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.game-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.game-note {
    background-color: #FFF3CD;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: inline-block;
}

.game-container {
    position: relative;
    padding-bottom: 62.25%;
    height: 0;
    overflow: hidden;
    max-width: 95%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: #000;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    min-height: 520px;
}

.fullscreen-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 介绍区域 */
.intro-section {
    background-color: white;
}

.intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* 特色区域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
}

.physics-icon {
    background-image: url('images/physics-icon.png');
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
}

.environments-icon {
    background-image: url('images/environments-icon.png');
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
}

.battle-icon {
    background-image: url('images/battle-icon.png');
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
}

.more-features {
    text-align: center;
}

/* 环境区域 */
.environments-section {
    background-color: #f1f8e9;
    position: relative;
}

.environments-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.environment-slide {
    position: relative;
}

.environment-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
}

.slider-controls {
    text-align: center;
    margin-top: 20px;
}

.slider-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: var(--secondary-color);
}

/* 策略区域 */
.strategies-section {
    background-color: white;
}

.strategies-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.strategy-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.check-mark {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 10px;
    font-weight: bold;
}

.strategy-cta {
    text-align: center;
}

/* FAQ区域 */
.faq-section {
    background-color: #f1f8e9;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    background-color: #f8f8f8;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 1000px;
}

.more-faq {
    text-align: center;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/cta-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* 页脚 */
.site-footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 10px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    :root {
        --section-spacing: 60px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .intro-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-spacing: 50px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .main-nav.active .nav-list {
        transform: translateY(0);
    }

    .main-nav .nav-list li {
        margin: 15px 0;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --section-spacing: 40px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .cta-button, .secondary-button {
        padding: 10px 20px;
    }
}

/* 侧边栏广告样式 */
.sidebar-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 999;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-left {
    left: 10px;
}

.sidebar-right {
    right: 10px;
}

/* Hide sidebars and remove body padding on smaller screens */
@media screen and (max-width: 1580px) {
    body {
        padding-left: 20px;
        padding-right: 20px;
    }
    .sidebar-ad {
        display: none;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --section-spacing: 60px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .intro-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-spacing: 50px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .main-nav.active .nav-list {
        transform: translateY(0);
    }

    .main-nav .nav-list li {
        margin: 15px 0;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --section-spacing: 40px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .cta-button, .secondary-button {
        padding: 10px 20px;
    }
}

/* 新游戏区域 */
.new-games-section {
    padding: 60px 0; /* Adjust spacing as needed */
    background-color: #fff; /* Or another background color */
}

.new-games-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.new-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Adjust minmax for desired thumbnail size */
    gap: 25px;
    justify-content: center;
}

.new-game-item {
    text-align: center;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.new-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.new-game-item a {
    text-decoration: none;
    color: inherit; /* Inherit text color */
}

.new-game-item img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 150px; /* Limit image height if needed */
    object-fit: cover; /* Cover the area, might crop */
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.new-game-item h3 {
    font-size: 1.1rem;
    margin: 0;
} 