/* 底部标签栏：三端共用一份，从 mobile.css 迁出。
   管理端只在窄屏移动壳里挂它（admins/base.html 用 media 条件引入本文件），
   所以颜色一律带 --admin-* 回退，不依赖 mobile.css 的变量块。 */
.p-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--p-border, var(--admin-border, #e6eaf2));
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 50;
}
.p-tab {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 8px 0 6px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--p-text-sub, var(--admin-text-sub, #6b7684));
    text-decoration: none;
}
.p-tab .p-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 24px;
    margin: 0 auto 1px;
    border-radius: 12px;
    transition: background-color .18s ease;
}
.p-tab .p-tab-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.p-tab.active { color: var(--p-primary, var(--admin-primary, #2f6fed)); font-weight: 600; }
.p-tab.active .p-tab-icon { background: var(--p-primary-light, rgba(47, 111, 237, .12)); }

/* 待办红点：数字由首页待办卡写入（EclassTabbar.setBadge），无待办时置 hidden */
.p-tab-badge {
    position: absolute;
    top: 6px;
    right: 50%;
    margin-right: -22px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--p-danger, var(--admin-danger, #e5484d));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 15px;
}
.p-tab-badge[hidden] { display: none; }
