:root {
    --primary-blue: #1e3a8a;
    --primary-gray: #4b5563;
    --background-dark: #1f2937;
}

.header {
    background-color: var(--background-dark);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__nav {
    max-width: 1200px;
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__logo-img {
    height: 50px;
    width: auto;
}

.header__title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .header__logo-img {
        height: 40px;
    }
    
    .header__title {
        font-size: 1.5rem;
    }
}
/* Game Section Styles */
.game {
    width: 100%;
    background-color: var(--background-dark);
    padding: 2rem 0;
}

.game__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.game__wrapper {
    position: relative;
    width: 100%;
    padding-top: 50.625%; /* 800:405 的比例 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game__frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game__controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
}

.game__fullscreen-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.game__fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.game__fullscreen-icon {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game {
        padding: 1rem 0;
    }

    .game__container {
        padding: 0 0.5rem;
    }

    .game__wrapper {
        padding-top: 75%; /* 移动端调整为更合适的高度比例 */
    }

    .game__controls {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .game__fullscreen-btn {
        padding: 0.3rem;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .game__wrapper {
        padding-top: 56.25%; /* 恢复16:9比例 */
        max-height: 85vh;
    }
}

/* 全屏模式 */
.game__wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    z-index: 1000;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--background-dark), #2d3748);
    padding: 4rem 0;
    color: white;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.hero__image {
    flex: 1;
}

.hero__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    background-color: #f8fafc;
    padding: 6rem 0;
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--background-dark);
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.feature-card {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.feature-card:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-card__image {
    flex: 1;
}

.feature-card__img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card__content {
    flex: 1;
}

.feature-card__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--background-dark);
}

.feature-card__text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .feature-card,
    .feature-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .features {
        padding: 3rem 0;
    }

    .features__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features__grid {
        gap: 2rem;
    }
}

.what-is,
.how-to-play {
    padding: 4rem 0;
    background: #f8fafc;
}

.what-is__container,
.how-to-play__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.what-is__title,
.how-to-play__title {
    font-size: 2.5rem;
    color: var(--background-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.what-is__subtitle {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--background-dark);
}

.what-is__content,
.how-to-play__content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}

.how-to-play__steps {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step h4 {
    color: var(--background-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.how-to-play__tips ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .what-is,
    .how-to-play {
        padding: 2rem 0;
    }

    .what-is__title,
    .how-to-play__title {
        font-size: 2rem;
    }

    .what-is__subtitle {
        font-size: 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }
}

.faq {
    background-color: #f8fafc;
    padding: 4rem 0;
}

.faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--background-dark);
    margin-bottom: 3rem;
}

.faq__list {
    display: grid;
    gap: 2rem;
}

.faq__item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.faq__question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--background-dark);
    margin-bottom: 1rem;
}

.faq__answer {
    color: #4a5568;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq {
        padding: 2rem 0;
    }

    .faq__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .faq__item {
        padding: 1rem;
    }

    .faq__question {
        font-size: 1.1rem;
    }
}