:root {
    --header-bg: #005288;  /* 深蓝色背景 */
    --header-text: #ffffff; /* 白色文字 */
    --max-width: 1200px;   /* 最大内容宽度 */
}

.header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--header-text);
}

.header__logo {
    height: 40px;
    width: auto;
    margin-right: 1rem;
}

.header__title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--header-text);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header__logo {
        height: 32px;
    }
    
    .header__title {
        font-size: 1.2rem;
    }
}
.game-section {
    padding-top: 80px;
    background-color: #f5f5f5;
}

.game-section__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

.game-section__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--header-bg);
    margin-bottom: 2rem;
}

.game-section__frame-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-section__frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* 全屏按钮样式 */
.fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

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

.fullscreen-btn svg {
    width: 24px;
    height: 24px;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .game-section {
        padding-top: 60px;
    }

    .game-section__container {
        padding: 0.5rem;
    }

    .game-section__frame-wrapper {
        padding-bottom: 75%; /* 增加移动端高度 */
        border-radius: 0; /* 移动端去除圆角 */
    }

    .game-section__frame {
        border-radius: 0;
    }

    .fullscreen-btn {
        bottom: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
    }
}

/* 全屏模式样式 */
.game-section__frame-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding-bottom: 0;
    z-index: 9999;
    background: #000;
    border-radius: 0;
}

.game-section__frame-wrapper.fullscreen .game-section__frame {
    border-radius: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-section__title {
        font-size: 2rem;
    }

    .game-section__container {
        padding: 1rem;
    }
}

/* 较小屏幕 */
@media (max-width: 480px) {
    .game-section__title {
        font-size: 1.5rem;
    }
}

.seo-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
}

.seo-section__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.seo-section__title {
    color: var(--header-bg);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--header-bg);
}

.seo-section__content {
    margin-bottom: 3rem;
}

.seo-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.seo-section h4 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.seo-section p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .seo-section__title {
        font-size: 2rem;
    }

    .seo-section h3 {
        font-size: 1.5rem;
    }

    .seo-section h4 {
        font-size: 1.2rem;
    }

    .seo-section p {
        font-size: 1rem;
    }
}

/* Features Section Styles */
.features-section {
    padding: 4rem 1rem;
    background-color: #ffffff;
}

.features-section__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--header-bg);
    margin-bottom: 3rem;
}

.features-section__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-card {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    gap: 3rem;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* 为偶数卡片反转布局 */
.feature-card:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card__image {
    flex: 0 0 45%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

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

.feature-card__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* 添加卡片间的分隔线 */
.feature-card:not(:last-child) {
    position: relative;
}

.feature-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .feature-card {
        gap: 2rem;
        padding: 1.5rem;
    }

    .feature-card__title {
        font-size: 1.6rem;
    }

    .feature-card__description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 3rem 1rem;
    }

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

    .feature-card,
    .feature-card:nth-child(even) {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-card__image {
        flex: 0 0 100%;
    }

    .feature-card:not(:last-child)::after {
        left: 5%;
        right: 5%;
        bottom: -1.5rem;
    }
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* 为每个卡片设置不同的动画延迟 */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }
.feature-card:nth-child(4) { animation-delay: 0.7s; }

