header,
footer {
    position: fixed;
    top: 0.75rem;
    bottom: 0.75rem;
    margin: auto;
    width: 4.25rem;
    text-shadow: none;
    background: var(--surface-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    border: 1px solid var(--surface-border);
    box-shadow: var(--box-shadow);
    z-index: 9;
}
header {
    left: 0.75rem;
    border-right: var(--border);
    -webkit-transition: left 0.5s;
    -webkit-animation: fadeInLeft 0.5s .2s ease both;
    -moz-animation: fadeInLeft 0.5s .2s ease both;
    animation: fadeInLeft 0.5s .2s ease both;
}
footer {
    right: 0.75rem;
    border-left: var(--border);
    -webkit-transition: right 0.5s;
    -webkit-animation: fadeInRight 0.5s .2s ease both;
    -moz-animation: fadeInRight 0.5s .2s ease both;
    animation: fadeInRight 0.5s .2s ease both;
}

.head_menu,
.foot_menu{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}
.head_menu ul,
.foot_menu ul{
    list-style-type: none;
    display: inline-block;
    padding-inline-start: 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 21rem);
    text-align: center;
}

.head_menu .head_bottom{
    left:0;
    bottom: 0;
    position: absolute;
}
.foot_menu .foot_bottom{
    right: 0;
    bottom: 0;
    position: absolute;
}
.anniu{
    margin: 0.75rem 0.5rem;
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 0.9rem;
    transition-property: background,color,transform;
    transition-duration: 0.2s;
    transition-timing-function: var(--ease-out);
    color: var(--main);
    font-size: 1.5rem;
    line-height: 1.5rem;
    background: #fff0;
    cursor: pointer;
}
.anniu_name {
    display: none;
}
.anniu:hover{
    background: var(--theme-10);
    color: var(--theme);
}
.anniu:active {
    transform: scale(0.94);
}

.header_mood_emoji{
    font-size: 1rem;
    position: absolute;
    right: -0.5rem;
    bottom: -0.25rem;
    z-index: 9;
    animation: rd-float 3.2s ease-in-out infinite;
}

.anniu_num {
    position: absolute;
    font-size: 0.5rem;
    margin: -1rem 1.4rem;
    display: block;
    letter-spacing: 0;
}
.Dianzan_anniu{
    font-family: 'catfont';
}
.head_avatar {
    vertical-align: middle;
    border-radius: 1.1rem;
    object-fit: cover;
    width: 4rem;
    height: 4rem;
    box-shadow:
        0 0 0 2px var(--surface-strong),
        0 0 0 4px var(--theme-30),
        0 10px 24px -8px rgb(23 43 77 / 35%);
    transition: transform 0.4s var(--ease-spring);
}
.head_avatar:hover {
    transform: rotate(-4deg) scale(1.04);
}
.user_logined_avatar {
    border-radius: 50%;
}
.tab_on {
    background: var(--theme-10);
    color: var(--theme) !important;
    box-shadow: inset 0 0 0 1px var(--theme-30);
}

/* 滚动后 Dock 更沉稳 */
header.rd-scrolled,
footer.rd-scrolled {
    box-shadow: 0 1px 2px rgb(23 43 77 / 6%), 0 18px 44px -12px rgb(23 43 77 / 24%);
}

/* Tooltip（redesign.js 创建 #rd-tooltip 并追加到 body） */
#rd-tooltip {
    position: fixed;
    z-index: 99999;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #fff;
    background: rgb(28 32 44 / 94%);
    border-radius: 0.5rem;
    box-shadow: 0 6px 18px -6px rgb(0 0 0 / 40%);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.15s var(--ease-out);
    max-width: 240px;
}
#rd-tooltip.rd-show {
    opacity: 1;
}
#rd-tooltip.rd-multiline {
    white-space: normal;
}