/**
 * Topbar 样式
 * 基于 upbag 项目的 topbar 设计，兼容 app-page 的居中逻辑
 */

.topbar {
    align-items: center;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 990px;
    margin: 0 auto;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
    padding: 10px 13px;
}

.topbar__left {
    height: 37px;
    width: 166px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.topbar__left img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.topbar__right {
    height: 36px;
    width: 114px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.topbar__right img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}


.topbar-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 0 5px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-close:hover {
    opacity: 0.7;
}

/* 当 topbar 显示时，为页面内容添加顶部 padding，避免内容被遮挡 */
body.has-topbar {
    padding-top: 60px;
}


