/* 核心页面样式 - 统一全屏页面显示 */

.app-full-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 500px;
    margin: 0 auto;
    background-color: #f8f5f2;
    /* 明确全屏页层级，确保覆盖底层视图 */
    z-index: 10;
    display: flex;
    flex-direction: column;
    /* 从下往上滑入动画 */
    transform: translateY(100%);
    /* iOS风格缓动：先快后慢，更自然的减速效果 */
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}

.app-full-page.active {
    transform: translateY(0);
    pointer-events: auto;
}

/* 退出动画：快速向下滑出 */
.app-full-page.closing {
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.9, 0.4);
}

/* 页面头部 */
.app-page-header {
    background-color: #a3b1c6;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 12px;
    padding-top: var(--safe-inset-top, env(safe-area-inset-top));
    height: calc(56px + var(--safe-inset-top, env(safe-area-inset-top)));
    box-shadow: 0 2px 10px rgba(163, 177, 198, 0.2);
    flex-shrink: 0;
}

/* 返回按钮 */
.app-page-back {
    font-size: 18px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

/* 页面标题 */
.app-page-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

/* 页面主体 */
.app-page-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Opera 特殊处理 */
html.ua-android-opera .app-full-page {
    transform: none !important;
    right: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    left: 0;
    top: 100%;
    /* iOS风格缓动：先快后慢，更自然的减速效果 */
    transition: top 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.ua-android-opera .app-full-page.closing {
    transition: top 0.38s cubic-bezier(0.4, 0, 0.9, 0.4) !important;
}

html.ua-android-opera .app-full-page[style*="display: flex"],
html.ua-android-opera .app-full-page[style*="display:flex"] {
    top: 0;
}
