/**
 * tabbar.css - 底部 Tab 栏样式
 */

#ls-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#ls-tabbar.ls-tabbar-hidden {
    transform: translate3d(0, 100%, 0);
}

.ls-tabbar {
    display: flex;
    align-items: stretch;
    height: calc(var(--ls-tabbar-height) + var(--ls-safe-bottom));
    padding-bottom: var(--ls-safe-bottom);
    background-color: var(--ls-bg-card);
    border-top: 0.5px solid var(--ls-border-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ls-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
    color: var(--ls-tabbar-color, var(--ls-text-tertiary));
    -webkit-user-select: none;
    user-select: none;
}

.ls-tabbar-item.ls-active {
    color: var(--ls-tabbar-active-color, var(--ls-primary));
}

.ls-tabbar-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.ls-tabbar-icon i {
    font-size: inherit;
    line-height: 1;
}

/* 纯图标模式（无文字） */
.ls-tabbar-icon-only {
    justify-content: center;
}

.ls-tabbar-icon-only .ls-tabbar-icon {
    width: auto;
    height: auto;
}

.ls-tabbar-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--ls-radius-pill);
    background: var(--ls-danger);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 500;
}

.ls-tabbar-text {
    font-size: 10px;
    line-height: 1;
}

/* 操作按钮（发布等）特殊样式 */
.ls-tabbar-item.ls-tabbar-action .ls-tabbar-icon i {
    font-size: inherit;
    color: var(--ls-tabbar-color, var(--ls-primary));
}

/* 滚动隐藏 */
#ls-tabbar.ls-tabbar-scroll-hidden {
    transform: translate3d(0, 100%, 0);
}
