/* 各端预览：app-root 内 view 模拟小程序节点 */
.app-root {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #f5f5f5;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}
.app-root view,
.app-root text,
.app-root image {
    display: block;
    box-sizing: border-box;
}
.app-root text { display: inline; }
.app-root image { max-width: 100%; }

.app-titlebar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 120;
    font-size: 15px;
    font-weight: 600;
}
.app-back {
    position: absolute;
    left: 8px;
    top: 0;
    padding: 0 8px;
    color: #2563eb;
    cursor: pointer;
    font-weight: 400;
}
.app-scroll {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.app-scroll--tab { padding-bottom: 58px; }
.app-scroll--back { padding-top: 44px; }
.app-scroll::-webkit-scrollbar { width: 0; height: 0; }

.app-tabbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 200;
    padding-bottom: 6px;
}
.app-root view.app-tabbar {
    display: flex;
    flex-direction: row;
}
.app-tabbar__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 0 8px;
    cursor: pointer;
    color: #999;
}
.app-root view.app-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.app-tabbar__item--on { color: #3a6fd8; font-weight: 600; }
.app-tabbar__icon { font-size: 18px; line-height: 1.2; }
.app-tabbar__text { font-size: 10px; margin-top: 2px; display: block; }

.app-toast {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 500;
    pointer-events: none;
    white-space: nowrap;
}
