/* 底部导航栏 - 深色动画样式 */

/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

/* 底部导航栏容器 */
.tabbar__container[data-v-fb80cf49] {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to top, #1F1B2C,rgb(81, 44, 212));
    color: #E6F4FD;
    width: 90%;
    max-width: 25em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4em 2em;
    border-radius: 2em;
    box-shadow: 0px 20px 30px rgba(31, 27, 44, 0.15), 
                0px 5px 15px rgba(31, 27, 44, 0.05);
    z-index: 1000;
    transition: all 300ms ease;
}

/* 导航项基础样式 */
.tabbar__container-item[data-v-fb80cf49] {
    flex: 0 0 auto;
    cursor: pointer;
    font-size: 2em;
    transition: all 100ms cubic-bezier(0.61, 0.01, 0.43, 0.99);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #E6F4FD;
}

/* 隐藏文字，只显示图标 */
.tabbar__container-item[data-v-fb80cf49] span {
    display: none;
}

/* 图标样式 */
.tabbar__container-item[data-v-fb80cf49] svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentColor;
    transition: all 100ms cubic-bezier(0.61, 0.01, 0.43, 0.99);
}

/* 悬停效果 */
.tabbar__container-item[data-v-fb80cf49]:hover {
    transform: scale(1.1);
}

/* 中间Home按钮特殊样式 */
.tabbar__container-item[data-v-fb80cf49] .promotionBg {
    position: relative;
    width: 1em;
    height: 1em;
    background: #24A1FD;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

.tabbar__container-item[data-v-fb80cf49] .promotionBg svg,
.tabbar__container-item[data-v-fb80cf49] .promotionBg .smile-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 150ms ease;
    width: 80%;
    height: auto;
    color: #1F1B2C;
    fill: #1F1B2C;
}

/* 激活状态 */
.tabbar__container-item.is-active[data-v-fb80cf49] {
    animation: bump 200ms;
}

/* 为不同的导航项设置激活颜色 */
.tabbar__container-item:nth-child(1).is-active[data-v-fb80cf49] {
    color: #ffc600; /* Promotion - 黄色 */
}

.tabbar__container-item:nth-child(2).is-active[data-v-fb80cf49] {
    color: #00ff36; /* Activity - 绿色 */
}

.tabbar__container-item:nth-child(3).is-active[data-v-fb80cf49] .promotionBg {
    background: #24A1FD; /* Home - 蓝色 */
}

.tabbar__container-item:nth-child(4).is-active[data-v-fb80cf49] {
    color: #ff0030; /* Wallet - 红色 */
}

.tabbar__container-item:nth-child(5).is-active[data-v-fb80cf49] {
    color: #e546ff; /* Account - 紫色 */
}

/* 弹跳动画 */
@keyframes bump {
    0% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Home按钮方向变化动画（笑脸转动） */
.tabbar__container-item[data-v-fb80cf49] .promotionBg svg.look-left,
.tabbar__container-item[data-v-fb80cf49] .promotionBg .smile-icon.look-left {
    left: 45%;
    width: 85%;
    transform: translate(-50%, -50%) scaleX(0.9);
}

.tabbar__container-item[data-v-fb80cf49] .promotionBg svg.look-right,
.tabbar__container-item[data-v-fb80cf49] .promotionBg .smile-icon.look-right {
    left: 55%;
    width: 85%;
    transform: translate(-50%, -50%) scaleX(0.9);
}

.tabbar__container-item[data-v-fb80cf49] .promotionBg svg.look-far-left,
.tabbar__container-item[data-v-fb80cf49] .promotionBg .smile-icon.look-far-left {
    left: 35%;
    width: 65%;
    transform: translate(-50%, -50%) scaleX(0.8);
}

.tabbar__container-item[data-v-fb80cf49] .promotionBg svg.look-far-right,
.tabbar__container-item[data-v-fb80cf49] .promotionBg .smile-icon.look-far-right {
    left: 65%;
    width: 65%;
    transform: translate(-50%, -50%) scaleX(0.8);
}

/* 背景颜色变化效果 */
body.nav-promotion {
    background: linear-gradient(45deg, #ffe180, #fff0b3);
    transition: background 300ms ease;
}

body.nav-activity {
    background: linear-gradient(45deg, #80ff9d, #b3ffc4);
    transition: background 300ms ease;
}

body.nav-home {
    background: linear-gradient(45deg, #a8dbff, #d4edff);
    transition: background 300ms ease;
}

body.nav-wallet {
    background: linear-gradient(45deg, #ff8099, #ffb3c4);
    transition: background 300ms ease;
}

body.nav-account {
    background: linear-gradient(45deg, #f1a8ff, #f8d4ff);
    transition: background 300ms ease;
}

/* 响应式调整 */
@media screen and (max-width: 500px) {
    .tabbar__container[data-v-fb80cf49] {
        width: 95%;
        padding: 1.2em 1.5em;
        bottom: 1rem;
    }
    
    .tabbar__container-item[data-v-fb80cf49] {
        font-size: 1.8em;
    }
}

@media screen and (min-width: 501px) {
    .tabbar__container[data-v-fb80cf49] {
        max-width: 25em;
    }
}

/* 移除原有的body底部内边距 */
body {
    padding-bottom: 0;
}

.content {
    padding-bottom: 6rem;
}

/* 点击波纹效果 */
.tabbar__container-item[data-v-fb80cf49]::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.tabbar__container-item[data-v-fb80cf49]:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 浮动效果 */
.tabbar__container[data-v-fb80cf49]:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0px 25px 40px rgba(31, 27, 44, 0.2), 
                0px 10px 20px rgba(31, 27, 44, 0.1);
}

/* 图标发光效果 */
.tabbar__container-item.is-active[data-v-fb80cf49] svg {
    filter: drop-shadow(0 0 8px currentColor);
}

.tabbar__container-item.is-active[data-v-fb80cf49] .promotionBg {
    filter: drop-shadow(0 0 12px #24A1FD);
}

