/* 1. 屏幕背景与整体居中 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #dcdccb; /* 桌面背景色，稍微深一点的复古灰绿色 */
    font-family: 'Courier New', Courier, monospace; /* 暂时用打字机字体，很有说明书感 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    overflow: hidden;
}

/* 2. 说明书的物理外壳 */
.manual-book {
    position: relative;
    width: 90vw;
    max-width: 800px; /* 限制书的最大宽度 */
    height: 80vh;
    max-height: 600px; /* 限制书的最大高度 */
    background-color: #f4f4f0; /* 纸张颜色 */
    border: 3px solid #1a1a1a; /* 粗线框 */
    border-radius: 12px; /* 稍微圆角，不那么锋利 */
    box-shadow: 10px 10px 0px #1a1a1a; /* 复古/手绘感的硬阴影 */
    overflow: hidden; /* 隐藏跑到书外面的内容 */
}

/* 3. 每一页的内部排版 */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 40px;
    box-sizing: border-box;
    display: none; /* 默认隐藏 */
    background-color: #f4f4f0;
    flex-direction: column;
    align-items: center; /* 内容居中 */
    text-align: center;
}

/* 只有激活的页面才显示为 flex 布局 */
.page.active {
    display: flex;
}

/* 4. 目录菜单容器 */
.index-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    width: 60%;
    max-width: 300px;
}

/* 5. 按钮基础样式 */
button {
    padding: 12px 24px;
    font-size: 18px;
    font-family: inherit; /* 继承上面的打字机字体 */
    font-weight: bold;
    color: #1a1a1a;
    background-color: transparent;
    border: 2px solid #1a1a1a;
    border-radius: 30px; /* 椭圆按钮 */
    cursor: pointer;
    transition: all 0.2s ease; /* 悬停动画的过渡时间 */
}

/* 鼠标悬停在按钮上的效果 */
button:hover {
    background-color: #1a1a1a;
    color: #f4f4f0;
    transform: translateY(-2px); /* 稍微往上浮动一点点 */
}

/* 6. 右上角的返回按钮 */
.back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
}