.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgb(17, 24, 39);
    border-top: 1px solid rgba(31, 41, 55, 0.8);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    padding: 8px 14px;
}

.bottom-nav__grid {
    display: grid;
    gap: 2px;
    padding: 8px 8px 10px;
}

.bottom-nav__grid.has-batch {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bottom-nav__grid.no-batch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    gap: 4px;
    padding: 4px 2px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
}

.nav-button svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

.nav-button span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

/* 默认状态 */
.nav-button {
    color: #9ca3af;
}

/* 激活状态 */
.nav-button.active {
    color: #10b981;
}

/* 悬浮状态 */
.nav-button:not(.active):hover {
    color: #d1d5db;
}

@media (max-width: 360px) {
    .bottom-nav__grid {
        padding-left: 6px;
        padding-right: 6px;
    }

    .nav-button svg {
        width: 20px;
        height: 20px;
    }

    .nav-button span {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

/* 适配 iPhone 底部安全区域 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
