/* ====================
   统一页面布局结构
   ==================== */

/* 页面主包装器 - 纵向布局 */
.page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000;
}

/* 调试边框 - 临时添加 */
.page-wrapper,
.topbar-container,
.content-container,
.content-area,
.footer-container {
    /* border: 1px solid red; */  /* 取消注释以查看布局 */
}

/* ====================
   Topbar 容器 - 跟随页面滚动
   ==================== */
.topbar-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 10000;
    background: transparent;
}

/* ====================
   页面内容容器
   ==================== */
.content-container {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 内容区域 - 根据屏幕比例调整尺寸 */
.content-area {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 竖屏模式 - 限制最大宽度实现3:4比例 */
@media (orientation: portrait) {
    .content-area {
        max-width: 75vh; /* 约等于3:4比例 */
        margin: 0 auto;
    }
}

/* 横屏模式 - 限制最大宽度实现4:3比例 */
@media (orientation: landscape) {
    .content-area {
        max-width: 100vh; /* 4:3比例的宽度 */
        margin: 0 auto;
    }
}

/* ====================
   Footer 容器 - 跟随页面滚动
   ==================== */
.footer-container {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
}

/* ====================
   响应式调整
   ==================== */

/* 移动端 */
@media (max-width: 767px) {
    .topbar-container {
        height: 50px;
    }

    .content-area {
        min-height: 400px;
    }
}

/* 小屏幕移动端 */
@media (max-width: 480px) {
    .topbar-container {
        height: 50px;
    }

    .content-area {
        min-height: 350px;
    }
}
