/* PC端居中显示样式 */

/* 只在大屏幕（PC端）应用 */
@media screen and (min-width: 768px) {
    
    /* 页面背景 */
    html {
        background: #FBEEE5;
        min-height: 100vh;
    }
    
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        background: transparent;
    }
    
    /* 页面内容容器 */
    .page {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 390px !important;
        max-width: 390px !important;
        height: 844px !important;
        max-height: 844px !important;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        background: #fff;
    }
    
    /* 确保滚动区域正确 */
    .content {
        height: calc(100% - 50px - 60px) !important; /* 减去顶部导航和底部导航 */
        overflow-y: auto;
    }
    
    .content-no-tabbar {
        height: calc(100% - 50px) !important; /* 只减去顶部导航 */
        overflow-y: auto;
    }
    
    /* 动画效果 */
    .page {
        animation: fadeIn 0.5s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
}


/* 小屏幕（移动端）保持原样 */
@media screen and (max-width: 767px) {
    /* 移动端不需要任何特殊样式 */
    body {
        background-color: #f5f5f5;
    }
}

/* 平板设备优化 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .page {
        width: 375px !important;
        height: 812px !important;
    }
}

