/**
 * 页面整体布局：应用容器、页面堆叠与内容区域。
 */

/* 页面容器，裁剪溢出以实现滑动切换效果 */
#app {
    position: relative;
    overflow: hidden;
    height: calc(100vh - 60px);
}

/* 所有页面默认绝对定位，叠放在容器内；初始偏移到右侧屏幕外 */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    transform: translateX(100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* 滚动条整体宽度 */
.page::-webkit-scrollbar {
    width: 6px;
}

/* 滚动条轨道 */
.page::-webkit-scrollbar-track {
    background: transparent;
}

/* 滚动条滑块 */
.page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* 滑块悬停 */
.page::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 当前激活的页面居中显示 */
.page.active {
    transform: translateX(0);
}

/* 页面内容区域，居中并限制最大宽度 */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}
