/* 顶部导航栏样式 */
.navbar {
    display: flex;
    background-color: var(--blur-bg-color);
    backdrop-filter: blur(var(--blur-radius));
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    margin-top: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 3px solid transparent;
    position: relative;
    z-index: 1;
}

.nav-item.active {
    color: #0071e3;
    background-color: var(--blur-bg-color-active);
}

.nav-item:not(.active):hover {
    background-color: var(--blur-bg-color);
}

/* 主导航活动指示器 */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #005bbd);
    transition: all 0.3s ease;
    z-index: 2;
}

.navbar[data-active-index="0"]::after {
    width: 33.333%;
    left: 0;
}

.navbar[data-active-index="1"]::after {
    width: 33.333%;
    left: 33.333%;
}

.navbar[data-active-index="2"]::after {
    width: 33.333%;
    left: 66.666%;
}

/* 子导航样式 */
.sub-navbar {
    display: flex;
    background-color: var(--blur-bg-color);
    backdrop-filter: blur(var(--blur-radius));
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 60px;
    z-index: 99;
    overflow: hidden;
    height: 50px;
    border: 1px solid #e0e0e0;
}

.sub-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #6e6e73;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    height: 100%;
}

.sub-nav-item.active {
    color: #0071e3;
    background-color: var(--blur-bg-color-active);
}

.sub-nav-item:not(.active):hover {
    color: #0071e3;
    background-color: var(--blur-bg-color);
}

/* 活动指示器 */
.sub-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #005bbd);
    transition: all 0.3s ease;
    z-index: 2;
}

.sub-navbar[data-active-index="0"]::after {
    width: 50%;
    left: 0;
}

.sub-navbar[data-active-index="1"]::after {
    width: 50%;
    left: 50%;
}

/* 统计部分子导航栏样式 */
.stats-sub-navbar {
    display: flex;
    background-color: var(--blur-bg-color);
    backdrop-filter: blur(var(--blur-radius));
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 110px;
    z-index: 98;
    overflow: hidden;
    height: 50px;
    border: 1px solid #e0e0e0;
}

.stats-sub-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #6e6e73;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    height: 100%;
}

.stats-sub-nav-item.active {
    color: #0071e3;
    background-color: #f8f9fa;
}

.stats-sub-nav-item:not(.active):hover {
    color: #0071e3;
    background-color: #f0f0f0;
}

/* 活动指示器 */
.stats-sub-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #005bbd);
    transition: all 0.3s ease;
    z-index: 2;
}

.stats-sub-navbar[data-active-index="0"]::after {
    width: 50%;
    left: 0;
}

.stats-sub-navbar[data-active-index="1"]::after {
    width: 50%;
    left: 50%;
}