/* --- 底部导航栏修复版 --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* 固定高度 */
    background: rgba(255, 255, 255, 0.98); /* 稍微不透明一点，防止背景干扰 */
    border-top: 1px solid #eee; /* 加个细边框增加层次 */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050; /* 保证在Bootstrap模态框之下，普通内容之上 */
    padding-bottom: constant(safe-area-inset-bottom); /* 适配 iPhone X 底部黑条 */
    padding-bottom: env(safe-area-inset-bottom);
}

/* 改名：不再使用 .nav-item，改为 .footer-tab */
.footer-tab {
    display: flex;
    flex-direction: column; /* 强制垂直排列：图标在上，文字在下 */
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    text-decoration: none !important; /* 强制去掉下划线 */
    flex: 1; /* 平均分配宽度 */
    height: 100%;
    font-size: 12px; /* 文字小一点 */
}

.footer-tab:hover, .footer-tab:focus {
    text-decoration: none;
    color: #9CA3AF; /* 悬停颜色保持，点击才变色 */
}

.footer-tab.active {
    color: #2563EB;
    font-weight: 600;
}

.footer-tab i {
    font-size: 20px;
    margin-bottom: 2px;
    display: block; /* 确保图标独占一行 */
}

/* 中间悬浮大按钮容器 */
.footer-pub-wrapper {
    position: relative;
    top: -20px; /* 向上浮动 */
    flex: 1;
    display: flex;
    justify-content: center;
    height: 60px; /* 给一个高度防止塌陷 */
    pointer-events: none; /* 让容器不挡点击，只让里面的按钮响应 */
}

/* 实际的圆形按钮 */
.pub-btn-circle {
    pointer-events: auto; /* 恢复点击 */
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    border: 4px solid #fff; /* 白边让它看起来像浮在上面 */
    text-decoration: none !important;
    transition: transform 0.2s;
}

.pub-btn-circle:active {
    transform: scale(0.95);
}