/* ===== 市场头部 ===== */
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    height: 68px;
    box-sizing: border-box;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.market-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.market-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-username {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
}

.market-balance {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-accent);
    font-size: 18px;
    font-weight: 800;
    border: 1.5px solid var(--border-accent);
    border-radius: 12px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.market-balance-icon {
    display: none;
}

/* ===== 筛选标签 ===== */
.filter-tabs {
    display: flex;
    padding: 10px 16px;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99;
}

.filter-tab {
    flex: 1;
    padding: 10px 0 9px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    outline: none;
    transition: var(--transition-smooth);
    position: relative;
}

.filter-tab:hover {
    color: var(--accent);
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.filter-tab.active {
    color: var(--accent);
    font-weight: 800;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}
