body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* 隐藏所有滚动条 */
    font-family: 'KaiTi', 'STKaiti', serif; /* 优先使用楷体，或其他中式风格字体 */
    color: #fff;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh; /* 使用固定视口高度 */
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden; /* 确保容器内部溢出也被隐藏 */
}

.game-title {
    font-size: clamp(2em, 5vw, 4em); /* 使用响应式字体大小 */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin: 20px 0;
    color: #e6c66c;
    font-family: 'LiSu', 'STXingkai', serif; /* 隶书或行楷，更具古朴感 */
    text-align: center;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1600px;
    gap: 20px;
    flex-wrap: wrap; /* 允许换行 */
    padding: 0 20px; /* 左右内边距 */
}

.story-background {
    flex: 0 0 320px; /* 增加宽度 */
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    font-size: clamp(1.2em, 2.2vw, 1.4em); /* 调大字号 */
    line-height: 1.6;
    margin-top: 30px; /* 向下移动 */
    margin-bottom: 20px;
    text-align: left; /* 左对齐 */
    margin-left: 200px; /* 向中间靠拢 */
    text-indent: 2em; /* 添加首行缩进 */
}

.menu {
    flex: 0 0 400px; /* 固定宽度 */
    margin-left: auto; /* 推向最右侧 */
    margin-right: 150px; /* 向中间靠拢 */
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列布局 */
    gap: 10px; /* 增加间距 */
    justify-items: center; /* 居中对齐 */
    max-width: 500px; /* 限制容器宽度 */
}

.menu-button {
    display: block;
    width: 100%;
    max-width: 280px; /* 进一步增加按钮最大宽度 */
}

.menu-button img {
    width: 100%;
    height: auto;
    max-height: 120px; /* 进一步增加图片最大高度 */
    object-fit: contain; /* 保持图片比例 */
    display: block;
    transition: transform 0.2s ease-in-out;
    border-radius: 5px; /* 添加圆角 */
}

.menu-button:hover img {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        margin-left: 0; /* 移动端取消左边距 */
        gap: 20px; /* 移动端减少间距 */
    }
    
    .story-background {
        width: 100%;
        max-width: 500px;
        text-align: center; /* 移动端恢复居中对齐 */
    }
    
    .menu {
        width: 100%;
        max-width: 500px;
        margin-left: 0; /* 移动端取消自动左边距 */
        margin-right: 0; /* 移动端取消右边距 */
    }
    
    .game-title {
        font-size: clamp(1.5em, 6vw, 3em);
    }
    
    .main-container {
        padding: 5px; /* 移动端使用更小的内边距 */
    }
}

@media (max-width: 480px) {
    .story-background {
        font-size: 1em;
        padding: 15px;
    }
    
    .menu-button {
        max-width: 200px;
    }
}

/* 教材和制作信息样式 */
.credits-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    z-index: 1000;
    border: 1px solid rgba(230, 198, 108, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Microsoft YaHei', sans-serif;
}

.textbook-info {
    color: #e6c66c;
    font-weight: bold;
    margin-bottom: 5px;
}

.author-info {
    color: #ccc;
    font-size: 12px;
}

/* 响应式设计 - 移动端调整 */
@media (max-width: 768px) {
    .credits-info {
        bottom: 10px;
        right: 10px;
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .author-info {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .credits-info {
        bottom: 8px;
        right: 8px;
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .author-info {
        font-size: 10px;
    }
} 