#app {
    max-width: 500px;
    display: block;
    height: 100vh;
    position: relative;
    margin: 0 auto;
}

.home {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 固定头部-开始 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    box-sizing: border-box;
    z-index: 10;
    max-width: 500px;
    margin: 0 auto;
    right: 0;
}

.header.bg {
    background-color: #121212;
}

.header .head_logo {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.header .head_logo i {
    height: 25px;
}
.header .head_logo i:first-child img {
    border-radius: 6px;
}

.header .head_logo i:last-child {
    height: 14px;
}

.header .head_logo i img {
    height: 100%;
    vertical-align: unset !important;
    display: block;
}


.header .search-icon {
    width: 24px;
    height: 24px;
    display: flex;
}

.header .search-icon i {
    height: 24px;
    font-size: 24px;
    color: #fff;
}


/* ----- Tab Bar 核心样式 (完全复刻Vue组件) ----- */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    z-index: 200;
}

.tab-bar-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 58px;
    padding: 0 10px;
    background: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* 每个导航项 flex:1 平均分布 */
.tab-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    height: 100%;
    padding: 4px 0;
}

.tab-bar-item i {
    font-size: 20px;
    color: #5a5f6e;
    transition: color 0.2s ease;
    line-height: 1;
}

.tab-bar-item .label {
    font-size: 11px;
    color: #5a5f6e;
    font-weight: 400;
    transition: color 0.2s ease;
    line-height: 1.2;
}

/* 激活状态 (收藏/推荐/分类/我的) */
.tab-bar-item.tab-active i,
.tab-bar-item.tab-active .label {
    color: #e83a57;
}

/* ----- 中间凸起首页容器 ----- */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

/* 凸起首页按钮 */
.home-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    top: -14px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e2a2a, #0f1414);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    border: 2px solid rgba(232, 58, 87, 0.12);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 3px #121212;
}

.home-btn i {
    font-size: 22px;
    color: #5a5f6e;
    transition: color 0.2s ease;
    line-height: 1;
}

/* 首页激活 */
.home-btn.home-active {
    border-color: rgba(232, 58, 87, 0.3);
}

.home-btn.home-active i {
    color: #e83a57;
}