/* ==========================================
   两层导航菜单样式 - Navbar Subnav
   ========================================== */

/* 第二层菜单容器 */
.navbar-subnav {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
    position: relative;
    z-index: 30;
}

/* 滚动容器 - 移动端横向滑动 */
.navbar-subnav .container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
}

.navbar-subnav .container::-webkit-scrollbar {
    display: none;
}

/* 分类标签基础样式 */
.subnav-item {
    display: inline-block;
    padding: 6px 18px;
    margin-right: 10px;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.subnav-item:hover {
    background: #f5f5f5;
    color: #333;
}

/* 当前选中高亮 */
.subnav-item.is-active {
    background: #1a1a2e;
    color: #ffffff;
}

/* ==========================================
   第一层导航微调
   ========================================== */

/* 确保第一层和第二层之间没有间隙 */
.navbar-main {
    margin-bottom: 0 !important;
}

/* 调整第一层导航的内边距，使其更紧凑 */
.navbar-main .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ==========================================
   响应式适配
   ========================================== */

@media screen and (max-width: 768px) {
    .navbar-subnav .container {
        padding: 8px 15px;
    }
    
    .subnav-item {
        padding: 5px 14px;
        font-size: 13px;
        margin-right: 8px;
    }
}
