/* ========================================
   爱宠 - 统一导航栏样式
   扁平化图标 + 橙黄暖色系
   ======================================== */

/* 底部导航栏 - 立体效果 + 小程序/App 标准 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* 立体渐变背景 */
    background: linear-gradient(180deg, 
        #FFFFFF 0%, 
        #FFF9F0 60%, 
        #FFF3E0 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    /* 立体边框和阴影 */
    border-top: 2px solid rgba(255, 159, 67, 0.15);
    box-shadow: 
        0 -4px 20px rgba(255, 159, 67, 0.15),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
    z-index: 1000;
    /* 小程序安全区域 */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* 毛玻璃效果 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 导航项 - 立体效果 */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #B8A999;
    padding: 10px 14px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 64px;
    /* 立体阴影 */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 249, 240, 0.6) 100%);
    border: 1px solid rgba(255, 159, 67, 0.08);
}

.nav-item:hover {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 243, 224, 0.8) 100%);
    color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 16px rgba(255, 159, 67, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(255, 159, 67, 0.2);
}

.nav-item.active {
    color: var(--primary-orange);
    background: linear-gradient(180deg, 
        rgba(255, 179, 71, 0.15) 0%, 
        rgba(255, 159, 67, 0.1) 100%);
    box-shadow: 
        0 4px 12px rgba(255, 159, 67, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 159, 67, 0.25);
}

/* 立体图标 */
.nav-icon {
    font-size: 26px;
    margin-bottom: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 图标立体阴影 */
    filter: 
        drop-shadow(0 2px 4px rgba(255, 159, 67, 0.3))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.nav-item:hover .nav-icon {
    transform: scale(1.18) translateY(-2px);
    filter: 
        drop-shadow(0 4px 8px rgba(255, 159, 67, 0.4))
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.nav-item.active .nav-icon {
    transform: scale(1.22) translateY(-2px);
    filter: 
        drop-shadow(0 4px 8px rgba(255, 159, 67, 0.5))
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

/* 导航文字 */
.nav-item span:last-child {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* 发布按钮 - 正圆 + 无黑色 + 橙色底白色加号 */
.nav-item.publish-btn {
    /* 橙色底 */
    background: linear-gradient(180deg, 
        #FFC068 0%, 
        #FFB347 100%);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    margin: -28px 0;
    /* 橙色阴影，无黑色 */
    box-shadow: 
        0 6px 20px rgba(255, 179, 71, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
    border: 3px solid #FFFFFF;
    /* 呼吸动画 */
    animation: publish-breathe 2s ease-in-out infinite;
    /* 点击反馈 */
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* 呼吸动画（无黑色阴影） */
@keyframes publish-breathe {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 6px 20px rgba(255, 179, 71, 0.5),
            inset 0 2px 10px rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 
            0 10px 30px rgba(255, 179, 71, 0.7),
            inset 0 2px 10px rgba(255, 255, 255, 1);
    }
}

/* 按钮顶部高光 */
.nav-item.publish-btn::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
}

/* 加号图标 - 白色，无黑色阴影 */
.nav-item.publish-btn .nav-icon {
    font-size: 32px;
    color: white;
    margin-bottom: 0;
    /* 无阴影 */
    filter: none;
    animation: none;
}

.nav-item.publish-btn:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    box-shadow: 
        0 10px 30px rgba(255, 179, 71, 0.7),
        inset 0 2px 10px rgba(255, 255, 255, 1);
}

.nav-item.publish-btn:active {
    animation-play-state: paused;
    transform: scale(1.05);
    box-shadow: 
        0 4px 12px rgba(255, 179, 71, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.6);
}

/* 小程序点击反馈 */
.nav-item {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.nav-item:active {
    background: rgba(255, 159, 67, 0.15);
}

/* 手机适配 */
@media (max-width: 375px) {
    .nav-item {
        min-width: 55px;
        padding: 6px 10px;
    }
    
    .nav-icon {
        font-size: 22px;
    }
    
    .nav-item span:last-child {
        font-size: 10px;
    }
    
    .nav-item.publish-btn {
        width: 46px;
        height: 46px;
    }
}
